diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-24 12:12:11 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-24 12:12:11 +0000 |
commit | 3d046f081a476705931e0e27fe678936b2ed2f05 (patch) | |
tree | 79d0401e3297cb61e0a82de947e0f10ec6eaa163 /src/transport/plugin_transport_template.c | |
parent | e31f1725d8aa2cc0e08aa8501ca961761f04c764 (diff) | |
download | gnunet-3d046f081a476705931e0e27fe678936b2ed2f05.tar.gz gnunet-3d046f081a476705931e0e27fe678936b2ed2f05.zip |
update for plugin template
Diffstat (limited to 'src/transport/plugin_transport_template.c')
-rw-r--r-- | src/transport/plugin_transport_template.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c index 8c15f8778..fd2f70c57 100644 --- a/src/transport/plugin_transport_template.c +++ b/src/transport/plugin_transport_template.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include "gnunet_transport_service.h" | 33 | #include "gnunet_transport_service.h" |
34 | #include "gnunet_transport_plugin.h" | 34 | #include "gnunet_transport_plugin.h" |
35 | 35 | ||
36 | #define DEBUG_TEMPLATE GNUNET_EXTRA_LOGGING | 36 | #define LOG(kind,...) GNUNET_log_from (kind, "transport-template",__VA_ARGS__) |
37 | 37 | ||
38 | /** | 38 | /** |
39 | * After how long do we expire an address that we | 39 | * After how long do we expire an address that we |
@@ -298,7 +298,7 @@ template_plugin_get_session (void *cls, | |||
298 | * Entry point for the plugin. | 298 | * Entry point for the plugin. |
299 | */ | 299 | */ |
300 | void * | 300 | void * |
301 | gnunet_plugin_transport_template_init (void *cls) | 301 | libgnunet_plugin_transport_template_init (void *cls) |
302 | { | 302 | { |
303 | struct GNUNET_TRANSPORT_PluginEnvironment *env = cls; | 303 | struct GNUNET_TRANSPORT_PluginEnvironment *env = cls; |
304 | struct GNUNET_TRANSPORT_PluginFunctions *api; | 304 | struct GNUNET_TRANSPORT_PluginFunctions *api; |
@@ -327,7 +327,7 @@ gnunet_plugin_transport_template_init (void *cls) | |||
327 | api->address_to_string = &template_plugin_address_to_string; | 327 | api->address_to_string = &template_plugin_address_to_string; |
328 | api->string_to_address = &template_plugin_string_to_address; | 328 | api->string_to_address = &template_plugin_string_to_address; |
329 | api->get_session = &template_plugin_get_session; | 329 | api->get_session = &template_plugin_get_session; |
330 | 330 | LOG (GNUNET_ERROR_TYPE_INFO, "Template plugin successfully loaded\n"); | |
331 | return api; | 331 | return api; |
332 | } | 332 | } |
333 | 333 | ||
@@ -336,7 +336,7 @@ gnunet_plugin_transport_template_init (void *cls) | |||
336 | * Exit point from the plugin. | 336 | * Exit point from the plugin. |
337 | */ | 337 | */ |
338 | void * | 338 | void * |
339 | gnunet_plugin_transport_template_done (void *cls) | 339 | libgnunet_plugin_transport_template_done (void *cls) |
340 | { | 340 | { |
341 | struct GNUNET_TRANSPORT_PluginFunctions *api = cls; | 341 | struct GNUNET_TRANSPORT_PluginFunctions *api = cls; |
342 | struct Plugin *plugin = api->cls; | 342 | struct Plugin *plugin = api->cls; |