aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_template.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-06-24 12:12:11 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-06-24 12:12:11 +0000
commit3d046f081a476705931e0e27fe678936b2ed2f05 (patch)
tree79d0401e3297cb61e0a82de947e0f10ec6eaa163 /src/transport/plugin_transport_template.c
parente31f1725d8aa2cc0e08aa8501ca961761f04c764 (diff)
downloadgnunet-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.c8
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 */
300void * 300void *
301gnunet_plugin_transport_template_init (void *cls) 301libgnunet_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 */
338void * 338void *
339gnunet_plugin_transport_template_done (void *cls) 339libgnunet_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;