diff options
Diffstat (limited to 'src/include/gnunet_peerstore_service.h')
-rw-r--r-- | src/include/gnunet_peerstore_service.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/include/gnunet_peerstore_service.h b/src/include/gnunet_peerstore_service.h index a3e28e6f0..4ede69d93 100644 --- a/src/include/gnunet_peerstore_service.h +++ b/src/include/gnunet_peerstore_service.h | |||
@@ -153,6 +153,34 @@ GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h, | |||
153 | void | 153 | void |
154 | GNUNET_PEERSTORE_store_cancel (struct GNUNET_PEERSTORE_StoreContext *sc); | 154 | GNUNET_PEERSTORE_store_cancel (struct GNUNET_PEERSTORE_StoreContext *sc); |
155 | 155 | ||
156 | /** | ||
157 | * Iterate over records matching supplied key information | ||
158 | * | ||
159 | * @param h handle to the PEERSTORE service | ||
160 | * @param sub_system name of sub system | ||
161 | * @param peer Peer identity (can be NULL) | ||
162 | * @param key entry key string (can be NULL) | ||
163 | * @param timeout time after which the iterate request is canceled | ||
164 | * @param callback function called with each matching record, all NULL's on end | ||
165 | * @param callback_cls closure for @a callback | ||
166 | */ | ||
167 | struct GNUNET_PEERSTORE_IterateContext * | ||
168 | GNUNET_PEERSTORE_iterate (struct GNUNET_PEERSTORE_Handle *h, | ||
169 | char *sub_system, | ||
170 | const struct GNUNET_PeerIdentity *peer, | ||
171 | const char *key, | ||
172 | struct GNUNET_TIME_Relative timeout, | ||
173 | GNUNET_PEERSTORE_Processor callback, void *callback_cls); | ||
174 | |||
175 | /** | ||
176 | * Cancel an iterate request | ||
177 | * Please do not call after the iterate request is done | ||
178 | * | ||
179 | * @param ic Iterate request context as returned by GNUNET_PEERSTORE_iterate() | ||
180 | */ | ||
181 | void | ||
182 | GNUNET_PEERSTORE_iterate_cancel (struct GNUNET_PEERSTORE_IterateContext *ic); | ||
183 | |||
156 | #if 0 /* keep Emacsens' auto-indent happy */ | 184 | #if 0 /* keep Emacsens' auto-indent happy */ |
157 | { | 185 | { |
158 | #endif | 186 | #endif |