gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r11177 - gnunet/src/transport
Date: Tue, 4 May 2010 14:36:13 +0200

Author: nevans
Date: 2010-05-04 14:36:12 +0200 (Tue, 04 May 2010)
New Revision: 11177

Modified:
   gnunet/src/transport/plugin_transport_tcp.c
   gnunet/src/transport/plugin_transport_template.c
   gnunet/src/transport/plugin_transport_udp.c
   gnunet/src/transport/plugin_transport_udp_nat.c
Log:
get rid of duplicate statistics handle in each plugin

Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2010-05-04 11:55:52 UTC (rev 
11176)
+++ gnunet/src/transport/plugin_transport_tcp.c 2010-05-04 12:36:12 UTC (rev 
11177)
@@ -254,11 +254,6 @@
   struct Session *sessions;
 
   /**
-   * Handle for the statistics service.
-   */
-  struct GNUNET_STATISTICS_Handle *statistics;
-
-  /**
    * Handle to the network service.
    */
   struct GNUNET_SERVICE_Context *service;
@@ -1552,7 +1547,6 @@
   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;

Modified: gnunet/src/transport/plugin_transport_template.c
===================================================================
--- gnunet/src/transport/plugin_transport_template.c    2010-05-04 11:55:52 UTC 
(rev 11176)
+++ gnunet/src/transport/plugin_transport_template.c    2010-05-04 12:36:12 UTC 
(rev 11177)
@@ -122,11 +122,6 @@
    */
   struct Session *sessions;
 
-  /**
-   * Handle for the statistics service.
-   */
-  struct GNUNET_STATISTICS_Handle *statistics;
-
 };
 
 /**
@@ -282,7 +277,6 @@
 
   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;

Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2010-05-04 11:55:52 UTC (rev 
11176)
+++ gnunet/src/transport/plugin_transport_udp.c 2010-05-04 12:36:12 UTC (rev 
11177)
@@ -140,11 +140,6 @@
   struct GNUNET_TRANSPORT_PluginEnvironment *env;
 
   /**
-   * Handle for the statistics service.
-   */
-  struct GNUNET_STATISTICS_Handle *statistics;
-
-  /**
    * Handle to the network service.
    */
   struct GNUNET_SERVICE_Context *service;
@@ -945,7 +940,6 @@
   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;
 

Modified: gnunet/src/transport/plugin_transport_udp_nat.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp_nat.c     2010-05-04 11:55:52 UTC 
(rev 11176)
+++ gnunet/src/transport/plugin_transport_udp_nat.c     2010-05-04 12:36:12 UTC 
(rev 11177)
@@ -298,11 +298,6 @@
   struct GNUNET_TRANSPORT_PluginEnvironment *env;
 
   /**
-   * Handle for the statistics service.
-   */
-  struct GNUNET_STATISTICS_Handle *statistics;
-
-  /**
    * Handle to the network service.
    */
   struct GNUNET_SERVICE_Context *service;
@@ -1697,7 +1692,6 @@
     plugin->num_ports = UDP_NAT_LISTEN_PORTS;
 
   plugin->env = env;
-  plugin->statistics = NULL;
   api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions));
   api->cls = plugin;
 





reply via email to

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