aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/test_plugin_datastore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datastore/test_plugin_datastore.c')
-rw-r--r--src/datastore/test_plugin_datastore.c31
1 files changed, 25 insertions, 6 deletions
diff --git a/src/datastore/test_plugin_datastore.c b/src/datastore/test_plugin_datastore.c
index b367b1a7f..d60dc3cc2 100644
--- a/src/datastore/test_plugin_datastore.c
+++ b/src/datastore/test_plugin_datastore.c
@@ -84,12 +84,25 @@ disk_utilization_change_cb (void *cls, int delta)
84 84
85 85
86static void 86static void
87test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); 87test (void *cls,
88 const struct GNUNET_SCHEDULER_TaskContext *tc);
88 89
89 90
91/**
92 * Put continuation.
93 *
94 * @param cls closure
95 * @param key key for the item stored
96 * @param size size of the item stored
97 * @param status #GNUNET_OK or #GNUNET_SYSERROR
98 * @param msg error message on error
99 */
90static void 100static void
91put_continuation (void *cls, const struct GNUNET_HashCode *key, 101put_continuation (void *cls,
92 uint32_t size, int status, char *msg) 102 const struct GNUNET_HashCode *key,
103 uint32_t size,
104 int status,
105 const char *msg)
93{ 106{
94 struct CpsRunContext *crc = cls; 107 struct CpsRunContext *crc = cls;
95 static unsigned long long os; 108 static unsigned long long os;
@@ -238,7 +251,9 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
238 251
239 252
240static void 253static void
241update_continuation (void *cls, int status, char *msg) 254update_continuation (void *cls,
255 int status,
256 const char *msg)
242{ 257{
243 struct CpsRunContext *crc = cls; 258 struct CpsRunContext *crc = cls;
244 259
@@ -285,8 +300,12 @@ test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
285 GNUNET_BLOCK_TYPE_ANY, &iterate_one_shot, crc); 300 GNUNET_BLOCK_TYPE_ANY, &iterate_one_shot, crc);
286 break; 301 break;
287 case RP_UPDATE: 302 case RP_UPDATE:
288 crc->api->update (crc->api->cls, guid, 1, GNUNET_TIME_UNIT_ZERO_ABS, 303 crc->api->update (crc->api->cls,
289 update_continuation, crc); 304 guid,
305 1,
306 GNUNET_TIME_UNIT_ZERO_ABS,
307 &update_continuation,
308 crc);
290 break; 309 break;
291 310
292 case RP_ITER_ZERO: 311 case RP_ITER_ZERO: