diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-12 11:51:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-12 11:51:03 +0000 |
commit | 95659c78f10bb8a925bd2ba2e5287fa36562633b (patch) | |
tree | 954c4044c3d154ec82b0f0ec9b58d08ab43da67d /src/transport/gnunet-service-transport_plugins.c | |
parent | cee16bdcf34ba0ea19b190464e41c62f1c467832 (diff) | |
download | gnunet-95659c78f10bb8a925bd2ba2e5287fa36562633b.tar.gz gnunet-95659c78f10bb8a925bd2ba2e5287fa36562633b.zip |
-extend transport plugin API with capability to just disconnect a single session (not yet used)
Diffstat (limited to 'src/transport/gnunet-service-transport_plugins.c')
-rw-r--r-- | src/transport/gnunet-service-transport_plugins.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_plugins.c b/src/transport/gnunet-service-transport_plugins.c index 83c062ec3..34f409255 100644 --- a/src/transport/gnunet-service-transport_plugins.c +++ b/src/transport/gnunet-service-transport_plugins.c | |||
@@ -219,12 +219,20 @@ GST_plugins_load (GNUNET_TRANSPORT_PluginReceiveCallback recv_cb, | |||
219 | "send", | 219 | "send", |
220 | plug->lib_name); | 220 | plug->lib_name); |
221 | } | 221 | } |
222 | if (NULL == plug->api->disconnect) | 222 | if (NULL == plug->api->disconnect_peer) |
223 | { | 223 | { |
224 | fail = GNUNET_YES; | 224 | fail = GNUNET_YES; |
225 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 225 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
226 | _("Missing function `%s' in transport plugin for `%s'\n"), | 226 | _("Missing function `%s' in transport plugin for `%s'\n"), |
227 | "disconnect", | 227 | "disconnect_peer", |
228 | plug->lib_name); | ||
229 | } | ||
230 | if (NULL == plug->api->disconnect_session) | ||
231 | { | ||
232 | fail = GNUNET_YES; | ||
233 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
234 | _("Missing function `%s' in transport plugin for `%s'\n"), | ||
235 | "disconnect_session", | ||
228 | plug->lib_name); | 236 | plug->lib_name); |
229 | } | 237 | } |
230 | if (GNUNET_YES == fail) | 238 | if (GNUNET_YES == fail) |