get rid of duplicate statistics handle in each plugin
authorNathan S. Evans <evans@in.tum.de>
Tue, 4 May 2010 12:36:12 +0000 (12:36 +0000)
committerNathan S. Evans <evans@in.tum.de>
Tue, 4 May 2010 12:36:12 +0000 (12:36 +0000)
src/transport/plugin_transport_tcp.c
src/transport/plugin_transport_template.c
src/transport/plugin_transport_udp.c
src/transport/plugin_transport_udp_nat.c

index d4212631af77d51db0a3c2a3c6e119b7a9b71589..e0e2b04f86a796041895dd2c25d94aeca5762273 100644 (file)
@@ -253,11 +253,6 @@ struct Plugin
    */
   struct Session *sessions;
 
-  /**
-   * Handle for the statistics service.
-   */
-  struct GNUNET_STATISTICS_Handle *statistics;
-
   /**
    * Handle to the network service.
    */
@@ -1552,7 +1547,6 @@ libgnunet_plugin_transport_tcp_init (void *cls)
   plugin->adv_port = aport;
   plugin->env = env;
   plugin->lsock = NULL;
-  plugin->statistics = NULL;
   api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions));
   api->cls = plugin;
   api->send = &tcp_plugin_send;
index f83329ffa692f788dcf288d36bc7e309b7699c7b..f5eec84d3f943cfea14eb415b69f6fb2fb177542 100644 (file)
@@ -122,11 +122,6 @@ struct Plugin
    */
   struct Session *sessions;
 
-  /**
-   * Handle for the statistics service.
-   */
-  struct GNUNET_STATISTICS_Handle *statistics;
-
 };
 
 /**
@@ -282,7 +277,6 @@ gnunet_plugin_transport_template_init (void *cls)
 
   plugin = GNUNET_malloc (sizeof (struct Plugin));
   plugin->env = env;
-  plugin->statistics = NULL;
   api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions));
   api->cls = plugin;
   api->send = &template_plugin_send;
index 689d75b747d0919b649930f44da7f994ad5b703f..5a5492858d4849b5de50f45b84bb99457b47984e 100644 (file)
@@ -139,11 +139,6 @@ struct Plugin
    */
   struct GNUNET_TRANSPORT_PluginEnvironment *env;
 
-  /**
-   * Handle for the statistics service.
-   */
-  struct GNUNET_STATISTICS_Handle *statistics;
-
   /**
    * Handle to the network service.
    */
@@ -945,7 +940,6 @@ libgnunet_plugin_transport_udp_init (void *cls)
   plugin->open_port = bport;
   plugin->adv_port = aport;
   plugin->env = env;
-  plugin->statistics = NULL;
   api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions));
   api->cls = plugin;
 
index 531f2ae100fe12ac72a9bee0bf999f8210587253..a48e958ba51ccff7f20d773d2c616a0cc6085cf3 100644 (file)
@@ -297,11 +297,6 @@ struct Plugin
    */
   struct GNUNET_TRANSPORT_PluginEnvironment *env;
 
-  /**
-   * Handle for the statistics service.
-   */
-  struct GNUNET_STATISTICS_Handle *statistics;
-
   /**
    * Handle to the network service.
    */
@@ -1697,7 +1692,6 @@ libgnunet_plugin_transport_udp_nat_init (void *cls)
     plugin->num_ports = UDP_NAT_LISTEN_PORTS;
 
   plugin->env = env;
-  plugin->statistics = NULL;
   api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions));
   api->cls = plugin;