diff options
Diffstat (limited to 'src/service/peerstore/peerstore_api_monitor.c')
-rw-r--r-- | src/service/peerstore/peerstore_api_monitor.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/service/peerstore/peerstore_api_monitor.c b/src/service/peerstore/peerstore_api_monitor.c index fff0b3eb0..2c527103c 100644 --- a/src/service/peerstore/peerstore_api_monitor.c +++ b/src/service/peerstore/peerstore_api_monitor.c | |||
@@ -22,10 +22,9 @@ | |||
22 | * @brief API for peerstore | 22 | * @brief API for peerstore |
23 | * @author Martin Schanzenbach | 23 | * @author Martin Schanzenbach |
24 | */ | 24 | */ |
25 | #include "gnunet_common.h" | ||
26 | #include "gnunet_protocols.h" | ||
27 | #include "platform.h" | 25 | #include "platform.h" |
28 | #include "gnunet_util_lib.h" | 26 | #include "gnunet_util_lib.h" |
27 | #include "gnunet_protocols.h" | ||
29 | #include "peerstore.h" | 28 | #include "peerstore.h" |
30 | #include "peerstore_common.h" | 29 | #include "peerstore_common.h" |
31 | #include "gnunet_peerstore_service.h" | 30 | #include "gnunet_peerstore_service.h" |
@@ -85,7 +84,7 @@ struct GNUNET_PEERSTORE_Monitor | |||
85 | /** | 84 | /** |
86 | * The sub system requested the watch. | 85 | * The sub system requested the watch. |
87 | */ | 86 | */ |
88 | const char *sub_system; | 87 | char *sub_system; |
89 | 88 | ||
90 | /** | 89 | /** |
91 | * Request ID | 90 | * Request ID |
@@ -237,17 +236,18 @@ reconnect (struct GNUNET_PEERSTORE_Monitor *mc) | |||
237 | 236 | ||
238 | 237 | ||
239 | struct GNUNET_PEERSTORE_Monitor * | 238 | struct GNUNET_PEERSTORE_Monitor * |
240 | GNUNET_PEERSTORE_monitor_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | 239 | GNUNET_PEERSTORE_monitor_start ( |
241 | int iterate_first, | 240 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
242 | const char *sub_system, | 241 | int iterate_first, |
243 | const struct GNUNET_PeerIdentity *peer, | 242 | const char *sub_system, |
244 | const char *key, | 243 | const struct GNUNET_PeerIdentity *peer, |
245 | GNUNET_SCHEDULER_TaskCallback error_cb, | 244 | const char *key, |
246 | void *error_cb_cls, | 245 | GNUNET_SCHEDULER_TaskCallback error_cb, |
247 | GNUNET_SCHEDULER_TaskCallback sync_cb, | 246 | void *error_cb_cls, |
248 | void *sync_cb_cls, | 247 | GNUNET_SCHEDULER_TaskCallback sync_cb, |
249 | GNUNET_PEERSTORE_Processor callback, | 248 | void *sync_cb_cls, |
250 | void *callback_cls) | 249 | GNUNET_PEERSTORE_Processor callback, |
250 | void *callback_cls) | ||
251 | { | 251 | { |
252 | struct GNUNET_PEERSTORE_Monitor *mc; | 252 | struct GNUNET_PEERSTORE_Monitor *mc; |
253 | 253 | ||
@@ -286,6 +286,7 @@ GNUNET_PEERSTORE_monitor_stop (struct GNUNET_PEERSTORE_Monitor *zm) | |||
286 | GNUNET_MQ_destroy (zm->mq); | 286 | GNUNET_MQ_destroy (zm->mq); |
287 | zm->mq = NULL; | 287 | zm->mq = NULL; |
288 | } | 288 | } |
289 | GNUNET_free (zm->sub_system); | ||
289 | GNUNET_free (zm); | 290 | GNUNET_free (zm); |
290 | } | 291 | } |
291 | 292 | ||