diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-04-03 20:00:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-04-03 20:00:42 +0000 |
commit | e8f35bb025c25839a52fb502e452393831e4e6f0 (patch) | |
tree | 7a056253bddc61b1e6a3258567e176af128c2b67 /src/datastore/test_datastore_api_management.c | |
parent | 9f871785d57da57ba128ac2279fda1db1d9b8bfb (diff) | |
download | gnunet-e8f35bb025c25839a52fb502e452393831e4e6f0.tar.gz gnunet-e8f35bb025c25839a52fb502e452393831e4e6f0.zip |
improving datastore API --- not working yet
Diffstat (limited to 'src/datastore/test_datastore_api_management.c')
-rw-r--r-- | src/datastore/test_datastore_api_management.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/datastore/test_datastore_api_management.c b/src/datastore/test_datastore_api_management.c index 50a426af6..5dfb5cea7 100644 --- a/src/datastore/test_datastore_api_management.c +++ b/src/datastore/test_datastore_api_management.c | |||
@@ -181,7 +181,7 @@ check_value (void *cls, | |||
181 | GNUNET_assert (priority == get_priority (i)); | 181 | GNUNET_assert (priority == get_priority (i)); |
182 | GNUNET_assert (anonymity == get_anonymity(i)); | 182 | GNUNET_assert (anonymity == get_anonymity(i)); |
183 | GNUNET_assert (expiration.abs_value == get_expiration(i).abs_value); | 183 | GNUNET_assert (expiration.abs_value == get_expiration(i).abs_value); |
184 | GNUNET_DATASTORE_get_next (datastore); | 184 | GNUNET_DATASTORE_iterate_get_next (datastore); |
185 | } | 185 | } |
186 | 186 | ||
187 | 187 | ||
@@ -254,12 +254,12 @@ run_continuation (void *cls, | |||
254 | crc->i); | 254 | crc->i); |
255 | #endif | 255 | #endif |
256 | GNUNET_CRYPTO_hash (&crc->i, sizeof (int), &crc->key); | 256 | GNUNET_CRYPTO_hash (&crc->i, sizeof (int), &crc->key); |
257 | GNUNET_DATASTORE_get (datastore, | 257 | GNUNET_DATASTORE_iterate_key (datastore, |
258 | &crc->key, | 258 | &crc->key, |
259 | get_type (crc->i), | 259 | get_type (crc->i), |
260 | 1, 1, TIMEOUT, | 260 | 1, 1, TIMEOUT, |
261 | &check_value, | 261 | &check_value, |
262 | crc); | 262 | crc); |
263 | break; | 263 | break; |
264 | case RP_GET_FAIL: | 264 | case RP_GET_FAIL: |
265 | #if VERBOSE | 265 | #if VERBOSE |
@@ -269,12 +269,12 @@ run_continuation (void *cls, | |||
269 | crc->i); | 269 | crc->i); |
270 | #endif | 270 | #endif |
271 | GNUNET_CRYPTO_hash (&crc->i, sizeof (int), &crc->key); | 271 | GNUNET_CRYPTO_hash (&crc->i, sizeof (int), &crc->key); |
272 | GNUNET_DATASTORE_get (datastore, | 272 | GNUNET_DATASTORE_iterate_key (datastore, |
273 | &crc->key, | 273 | &crc->key, |
274 | get_type (crc->i), | 274 | get_type (crc->i), |
275 | 1, 1, TIMEOUT, | 275 | 1, 1, TIMEOUT, |
276 | &check_nothing, | 276 | &check_nothing, |
277 | crc); | 277 | crc); |
278 | break; | 278 | break; |
279 | case RP_DONE: | 279 | case RP_DONE: |
280 | GNUNET_assert (0 == crc->i); | 280 | GNUNET_assert (0 == crc->i); |