gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r27547 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r27547 - gnunet/src/transport
Date: Mon, 24 Jun 2013 14:12:11 +0200

Author: wachs
Date: 2013-06-24 14:12:11 +0200 (Mon, 24 Jun 2013)
New Revision: 27547

Modified:
   gnunet/src/transport/plugin_transport_template.c
Log:
update for plugin template 


Modified: gnunet/src/transport/plugin_transport_template.c
===================================================================
--- gnunet/src/transport/plugin_transport_template.c    2013-06-24 10:56:22 UTC 
(rev 27546)
+++ gnunet/src/transport/plugin_transport_template.c    2013-06-24 12:12:11 UTC 
(rev 27547)
@@ -33,7 +33,7 @@
 #include "gnunet_transport_service.h"
 #include "gnunet_transport_plugin.h"
 
-#define DEBUG_TEMPLATE GNUNET_EXTRA_LOGGING
+#define LOG(kind,...) GNUNET_log_from (kind, "transport-template",__VA_ARGS__)
 
 /**
  * After how long do we expire an address that we
@@ -298,7 +298,7 @@
  * Entry point for the plugin.
  */
 void *
-gnunet_plugin_transport_template_init (void *cls)
+libgnunet_plugin_transport_template_init (void *cls)
 {
   struct GNUNET_TRANSPORT_PluginEnvironment *env = cls;
   struct GNUNET_TRANSPORT_PluginFunctions *api;
@@ -327,7 +327,7 @@
   api->address_to_string = &template_plugin_address_to_string;
   api->string_to_address = &template_plugin_string_to_address;
   api->get_session = &template_plugin_get_session;
-
+  LOG (GNUNET_ERROR_TYPE_INFO, "Template plugin successfully loaded\n");
   return api;
 }
 
@@ -336,7 +336,7 @@
  * Exit point from the plugin.
  */
 void *
-gnunet_plugin_transport_template_done (void *cls)
+libgnunet_plugin_transport_template_done (void *cls)
 {
   struct GNUNET_TRANSPORT_PluginFunctions *api = cls;
   struct Plugin *plugin = api->cls;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]