diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-06-04 16:03:17 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-06-04 16:03:17 +0000 |
commit | f286cd0b87731774b9448a0cdc82f7c8682c4efe (patch) | |
tree | d84ace0bf67dd4f8a99888548f6ab635206eab4f /src/peerstore/peerstore_api.c | |
parent | 7d18e9d89d2c920f9139bec7f55f01b00b5fd81a (diff) | |
download | gnunet-f286cd0b87731774b9448a0cdc82f7c8682c4efe.tar.gz gnunet-f286cd0b87731774b9448a0cdc82f7c8682c4efe.zip |
peerstore: added 'replace' option and other fixes
Diffstat (limited to 'src/peerstore/peerstore_api.c')
-rw-r--r-- | src/peerstore/peerstore_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c index 238c7be19..8797d7818 100644 --- a/src/peerstore/peerstore_api.c +++ b/src/peerstore/peerstore_api.c | |||
@@ -419,6 +419,7 @@ GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h, | |||
419 | const void *value, | 419 | const void *value, |
420 | size_t size, | 420 | size_t size, |
421 | struct GNUNET_TIME_Absolute expiry, | 421 | struct GNUNET_TIME_Absolute expiry, |
422 | enum GNUNET_PEERSTORE_StoreOption options, | ||
422 | GNUNET_PEERSTORE_Continuation cont, | 423 | GNUNET_PEERSTORE_Continuation cont, |
423 | void *cont_cls) | 424 | void *cont_cls) |
424 | { | 425 | { |
@@ -434,6 +435,7 @@ GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h, | |||
434 | value, | 435 | value, |
435 | size, | 436 | size, |
436 | &expiry, | 437 | &expiry, |
438 | options, | ||
437 | GNUNET_MESSAGE_TYPE_PEERSTORE_STORE); | 439 | GNUNET_MESSAGE_TYPE_PEERSTORE_STORE); |
438 | sc = GNUNET_new(struct GNUNET_PEERSTORE_StoreContext); | 440 | sc = GNUNET_new(struct GNUNET_PEERSTORE_StoreContext); |
439 | sc->ev = ev; | 441 | sc->ev = ev; |
@@ -595,6 +597,7 @@ GNUNET_PEERSTORE_iterate (struct GNUNET_PEERSTORE_Handle *h, | |||
595 | NULL, | 597 | NULL, |
596 | 0, | 598 | 0, |
597 | NULL, | 599 | NULL, |
600 | 0, | ||
598 | GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE); | 601 | GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE); |
599 | ic = GNUNET_new(struct GNUNET_PEERSTORE_IterateContext); | 602 | ic = GNUNET_new(struct GNUNET_PEERSTORE_IterateContext); |
600 | ic->callback = callback; | 603 | ic->callback = callback; |