aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_peerinfo_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_peerinfo_service.h')
-rw-r--r--src/include/gnunet_peerinfo_service.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/gnunet_peerinfo_service.h b/src/include/gnunet_peerinfo_service.h
index e84b2ca4e..553624b82 100644
--- a/src/include/gnunet_peerinfo_service.h
+++ b/src/include/gnunet_peerinfo_service.h
@@ -160,6 +160,8 @@ GNUNET_PEERINFO_iterate (const struct GNUNET_CONFIGURATION_Handle *cfg,
160 void *callback_cls); 160 void *callback_cls);
161 161
162 162
163struct GNUNET_PEERINFO_NewIteratorContext;
164
163 165
164/** 166/**
165 * Call a method for each known matching host and change its trust 167 * Call a method for each known matching host and change its trust
@@ -183,7 +185,7 @@ GNUNET_PEERINFO_iterate (const struct GNUNET_CONFIGURATION_Handle *cfg,
183 * @return NULL on error (in this case, 'callback' is never called!), 185 * @return NULL on error (in this case, 'callback' is never called!),
184 * otherwise an iterator context 186 * otherwise an iterator context
185 */ 187 */
186struct GNUNET_PEERINFO_IteratorContext * 188struct GNUNET_PEERINFO_NewIteratorContext *
187GNUNET_PEERINFO_iterate_new (struct GNUNET_PEERINFO_Handle *h, 189GNUNET_PEERINFO_iterate_new (struct GNUNET_PEERINFO_Handle *h,
188 const struct GNUNET_PeerIdentity *peer, 190 const struct GNUNET_PeerIdentity *peer,
189 int trust_delta, 191 int trust_delta,
@@ -199,6 +201,15 @@ GNUNET_PEERINFO_iterate_new (struct GNUNET_PEERINFO_Handle *h,
199 * @param ic context of the iterator to cancel 201 * @param ic context of the iterator to cancel
200 */ 202 */
201void 203void
204GNUNET_PEERINFO_iterate_cancel_new (struct GNUNET_PEERINFO_NewIteratorContext *ic);
205
206
207/**
208 * Cancel an iteration over peer information.
209 *
210 * @param ic context of the iterator to cancel
211 */
212void
202GNUNET_PEERINFO_iterate_cancel (struct GNUNET_PEERINFO_IteratorContext *ic); 213GNUNET_PEERINFO_iterate_cancel (struct GNUNET_PEERINFO_IteratorContext *ic);
203 214
204 215