(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 7 May 2010 15:38:19 +0000 (15:38 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 7 May 2010 15:38:19 +0000 (15:38 +0000)
src/transport/plugin_transport_http.c
src/transport/test_plugin_transport_http.c

index 6699902231a2d0ebce3dc6a174c8d1c1db9b0dd9..ab7c0850f533ddba9c4c40cf026b0b0232fde616 100644 (file)
@@ -158,7 +158,7 @@ template_plugin_send (void *cls,
                       size_t msgbuf_size,
                       unsigned int priority,
                       struct GNUNET_TIME_Relative timeout,
-                     struct Session *session,
+                      struct Session *session,
                       const void *addr,
                       size_t addrlen,
                       int force_address,
@@ -255,8 +255,8 @@ template_plugin_address_suggested (void *cls,
  */
 static const char*
 template_plugin_address_to_string (void *cls,
-                                  const void *addr,
-                                  size_t addrlen)
+                                   const void *addr,
+                                   size_t addrlen)
 {
   GNUNET_break (0);
   return NULL;
@@ -275,8 +275,6 @@ libgnunet_plugin_transport_http_init (void *cls)
   struct GNUNET_TRANSPORT_PluginFunctions *api;
   struct Plugin *plugin;
 
-  GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Init HTTP transport plugin\n"));
-
   plugin = GNUNET_malloc (sizeof (struct Plugin));
   plugin->env = env;
   api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions));
@@ -299,8 +297,6 @@ libgnunet_plugin_transport_http_done (void *cls)
   struct GNUNET_TRANSPORT_PluginFunctions *api = cls;
   struct Plugin *plugin = api->cls;
 
-  GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Shutting down HTTP transport plugin\n"));
-
   GNUNET_free (plugin);
   GNUNET_free (api);
   return NULL;
index 0e4f9c64eba3741c6376629b428f93fcb985a070..8d910e0c17e674ff390794d356caacbf4ccd8af2 100644 (file)
@@ -42,6 +42,8 @@
 #define VERBOSE GNUNET_YES
 #define DEBUG GNUNET_YES
 
+#define PLUGIN libgnunet_plugin_transport_template
+
 /**
  * How long until we give up on transmitting the message?
  */
@@ -162,7 +164,7 @@ shutdown_clean ()
     GNUNET_SCHEDULER_cancel(sched,ti_check_stat);
   ti_check_stat = GNUNET_SCHEDULER_NO_TASK;
 
-  GNUNET_assert (NULL == GNUNET_PLUGIN_unload ("libgnunet_plugin_transport_http", api));
+  GNUNET_assert (NULL == GNUNET_PLUGIN_unload ("libgnunet_plugin_transport_template", api));
   GNUNET_SCHEDULER_shutdown(sched);
   /* FIXME: */ fail = GNUNET_NO;
   return;
@@ -276,8 +278,8 @@ run (void *cls,
 
   /* load plugins... */
   setup_plugin_environment ();
-  GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Loading HTTP transport plugin\n"));
-  GNUNET_asprintf (&libname, "libgnunet_plugin_transport_http");
+  GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Loading HTTP transport plugin `%s'\n"),"libgnunet_plugin_transport_template");
+  GNUNET_asprintf (&libname, "libgnunet_plugin_transport_template");
   api = GNUNET_PLUGIN_load (libname, &env);
   GNUNET_free (libname);
   if (api == NULL)