aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_monitoring_existing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-09 14:29:34 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-09 14:29:34 +0000
commit03374cc39814fa4bfb8d96e1165c688c44d8342f (patch)
treeed772250c49b39d82b9708ec8df0ee3e07e366d1 /src/namestore/test_namestore_api_monitoring_existing.c
parent0c13a1e6fb0baffd83d413f313742a5f2b420297 (diff)
downloadgnunet-03374cc39814fa4bfb8d96e1165c688c44d8342f.tar.gz
gnunet-03374cc39814fa4bfb8d96e1165c688c44d8342f.zip
make namestore API less brittle/sublte to use
Diffstat (limited to 'src/namestore/test_namestore_api_monitoring_existing.c')
-rw-r--r--src/namestore/test_namestore_api_monitoring_existing.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/namestore/test_namestore_api_monitoring_existing.c b/src/namestore/test_namestore_api_monitoring_existing.c
index eae10e2ae..cd1838b5c 100644
--- a/src/namestore/test_namestore_api_monitoring_existing.c
+++ b/src/namestore/test_namestore_api_monitoring_existing.c
@@ -59,6 +59,7 @@ struct GNUNET_NAMESTORE_QueueEntry * ns_ops[3];
59 59
60static char *directory; 60static char *directory;
61 61
62
62static void 63static void
63do_shutdown () 64do_shutdown ()
64{ 65{
@@ -204,7 +205,20 @@ zone_proc (void *cls,
204 else 205 else
205 GNUNET_SCHEDULER_add_now (&end, NULL); 206 GNUNET_SCHEDULER_add_now (&end, NULL);
206 } 207 }
208}
209
207 210
211static void
212fail_cb (void *cls)
213{
214 GNUNET_assert (0);
215}
216
217
218static void
219sync_cb (void *cls)
220{
221 /* do nothing */
208} 222}
209 223
210 224
@@ -240,8 +254,11 @@ put_cont (void *cls, int32_t success, const char *emsg)
240 zm = GNUNET_NAMESTORE_zone_monitor_start (cfg, 254 zm = GNUNET_NAMESTORE_zone_monitor_start (cfg,
241 privkey, 255 privkey,
242 GNUNET_YES, 256 GNUNET_YES,
257 &fail_cb,
258 NULL,
243 &zone_proc, 259 &zone_proc,
244 NULL, 260 NULL,
261 &sync_cb,
245 NULL); 262 NULL);
246 if (NULL == zm) 263 if (NULL == zm)
247 { 264 {