diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-06-02 11:28:28 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-06-02 11:28:28 +0000 |
commit | de1aaa644561422018cadb81a843760ef4b43700 (patch) | |
tree | b007a318a79cf58a28ef5d8503592815736a3aba /src/include/gnunet_peerstore_service.h | |
parent | 800c3b54ba9a67ad995d6b5c1ecbffe224f4676d (diff) | |
download | gnunet-de1aaa644561422018cadb81a843760ef4b43700.tar.gz gnunet-de1aaa644561422018cadb81a843760ef4b43700.zip |
header file changes
Diffstat (limited to 'src/include/gnunet_peerstore_service.h')
-rw-r--r-- | src/include/gnunet_peerstore_service.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/src/include/gnunet_peerstore_service.h b/src/include/gnunet_peerstore_service.h index 4ede69d93..acb7e0492 100644 --- a/src/include/gnunet_peerstore_service.h +++ b/src/include/gnunet_peerstore_service.h | |||
@@ -166,7 +166,7 @@ GNUNET_PEERSTORE_store_cancel (struct GNUNET_PEERSTORE_StoreContext *sc); | |||
166 | */ | 166 | */ |
167 | struct GNUNET_PEERSTORE_IterateContext * | 167 | struct GNUNET_PEERSTORE_IterateContext * |
168 | GNUNET_PEERSTORE_iterate (struct GNUNET_PEERSTORE_Handle *h, | 168 | GNUNET_PEERSTORE_iterate (struct GNUNET_PEERSTORE_Handle *h, |
169 | char *sub_system, | 169 | const char *sub_system, |
170 | const struct GNUNET_PeerIdentity *peer, | 170 | const struct GNUNET_PeerIdentity *peer, |
171 | const char *key, | 171 | const char *key, |
172 | struct GNUNET_TIME_Relative timeout, | 172 | struct GNUNET_TIME_Relative timeout, |
@@ -181,6 +181,33 @@ GNUNET_PEERSTORE_iterate (struct GNUNET_PEERSTORE_Handle *h, | |||
181 | void | 181 | void |
182 | GNUNET_PEERSTORE_iterate_cancel (struct GNUNET_PEERSTORE_IterateContext *ic); | 182 | GNUNET_PEERSTORE_iterate_cancel (struct GNUNET_PEERSTORE_IterateContext *ic); |
183 | 183 | ||
184 | /** | ||
185 | * Request watching a given key | ||
186 | * User will be notified with any new values added to key | ||
187 | * | ||
188 | * @param h handle to the PEERSTORE service | ||
189 | * @param sub_system name of sub system | ||
190 | * @param peer Peer identity | ||
191 | * @param key entry key string | ||
192 | * @param callback function called with each new value | ||
193 | * @param callback_cls closure for @a callback | ||
194 | * @return Handle to watch request | ||
195 | */ | ||
196 | struct GNUNET_PEERSTORE_WatchContext * | ||
197 | GNUNET_PEERSTORE_watch (struct GNUNET_PEERSTORE_Handle *h, | ||
198 | const char *sub_system, | ||
199 | const struct GNUNET_PeerIdentity *peer, | ||
200 | const char *key, | ||
201 | GNUNET_PEERSTORE_Processor callback, void *callback_cls); | ||
202 | |||
203 | /** | ||
204 | * Cancel a watch request | ||
205 | * | ||
206 | * @wc handle to the watch request | ||
207 | */ | ||
208 | void | ||
209 | GNUNET_PEERSTORE_watch_cancel(struct GNUNET_PEERSTORE_WatchContext *wc); | ||
210 | |||
184 | #if 0 /* keep Emacsens' auto-indent happy */ | 211 | #if 0 /* keep Emacsens' auto-indent happy */ |
185 | { | 212 | { |
186 | #endif | 213 | #endif |