diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-08 14:06:30 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-08 14:06:30 +0000 |
commit | ede5e3950ffad6c6b812d1f210f90cd066961cad (patch) | |
tree | 973a2067d6b80bf3c5fd1503a05117a3d37d0c40 /src/mesh/gnunet-service-mesh_dht.c | |
parent | b8cfe698546bd64e4e8a062cf923cf5351f2a49a (diff) | |
download | gnunet-ede5e3950ffad6c6b812d1f210f90cd066961cad.tar.gz gnunet-ede5e3950ffad6c6b812d1f210f90cd066961cad.zip |
- share one statistics handle across all subsystems
Diffstat (limited to 'src/mesh/gnunet-service-mesh_dht.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_dht.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_dht.c b/src/mesh/gnunet-service-mesh_dht.c index e09c6b65e..3beb2da8a 100644 --- a/src/mesh/gnunet-service-mesh_dht.c +++ b/src/mesh/gnunet-service-mesh_dht.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include "gnunet_util_lib.h" | 23 | #include "gnunet_util_lib.h" |
24 | 24 | ||
25 | #include "gnunet_dht_service.h" | 25 | #include "gnunet_dht_service.h" |
26 | #include "gnunet_statistics_service.h" | ||
26 | 27 | ||
27 | #include "mesh_path.h" | 28 | #include "mesh_path.h" |
28 | #include "gnunet-service-mesh_dht.h" | 29 | #include "gnunet-service-mesh_dht.h" |
@@ -56,6 +57,11 @@ struct GMD_search_handle | |||
56 | /******************************************************************************/ | 57 | /******************************************************************************/ |
57 | 58 | ||
58 | /** | 59 | /** |
60 | * Global handle to the statistics service. | ||
61 | */ | ||
62 | extern struct GNUNET_STATISTICS_Handle *stats; | ||
63 | |||
64 | /** | ||
59 | * Handle to use DHT. | 65 | * Handle to use DHT. |
60 | */ | 66 | */ |
61 | static struct GNUNET_DHT_Handle *dht_handle; | 67 | static struct GNUNET_DHT_Handle *dht_handle; |