diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-07-09 14:46:56 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-07-09 14:46:56 +0000 |
commit | e5d7c67c647e9620c5c1ae77e133a74698443ee1 (patch) | |
tree | 1f49323d5963cc4a77e2648b29744ad5cf6291bf /src/include/gnunet_peerstore_service.h | |
parent | 696df0a02abec9683b34c3097cff4448ad154367 (diff) | |
download | gnunet-e5d7c67c647e9620c5c1ae77e133a74698443ee1.tar.gz gnunet-e5d7c67c647e9620c5c1ae77e133a74698443ee1.zip |
Added flag to API disconnect method to send pending store requests before disconnecting.
Added a test case for it.
Diffstat (limited to 'src/include/gnunet_peerstore_service.h')
-rw-r--r-- | src/include/gnunet_peerstore_service.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/gnunet_peerstore_service.h b/src/include/gnunet_peerstore_service.h index 7a79a8b56..c2d55dd84 100644 --- a/src/include/gnunet_peerstore_service.h +++ b/src/include/gnunet_peerstore_service.h | |||
@@ -133,12 +133,14 @@ struct GNUNET_PEERSTORE_Handle * | |||
133 | GNUNET_PEERSTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); | 133 | GNUNET_PEERSTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); |
134 | 134 | ||
135 | /** | 135 | /** |
136 | * Disconnect from the PEERSTORE service | 136 | * Disconnect from the PEERSTORE service. Any pending ITERATE and WATCH requests |
137 | * will be canceled. Any pending STORE requests will depend on @snyc_first flag. | ||
137 | * | 138 | * |
138 | * @param h handle to disconnect | 139 | * @param h handle to disconnect |
140 | * @param sync_first send any pending STORE requests before disconnecting | ||
139 | */ | 141 | */ |
140 | void | 142 | void |
141 | GNUNET_PEERSTORE_disconnect(struct GNUNET_PEERSTORE_Handle *h); | 143 | GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h, int sync_first); |
142 | 144 | ||
143 | /** | 145 | /** |
144 | * Store a new entry in the PEERSTORE | 146 | * Store a new entry in the PEERSTORE |