aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/peerinfo_api.c
diff options
context:
space:
mode:
authorWillow Liquorice <willow@howhill.com>2022-08-31 22:20:53 +0100
committerWillow Liquorice <willow@howhill.com>2022-10-03 00:44:22 +0100
commitfff241df3642028f64d5aa2e39a4a4e30468f837 (patch)
treed303e66c9d4c57895cd4ad87b30c6856eb2b0704 /src/peerinfo/peerinfo_api.c
parent1e13d39e7c191b1bc6733b6505880ec34516b444 (diff)
downloadgnunet-fff241df3642028f64d5aa2e39a4a4e30468f837.tar.gz
gnunet-fff241df3642028f64d5aa2e39a4a4e30468f837.zip
-DOC: Pass through PEERINFO subsystem
Diffstat (limited to 'src/peerinfo/peerinfo_api.c')
-rw-r--r--src/peerinfo/peerinfo_api.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c
index b73d9d927..65e429bef 100644
--- a/src/peerinfo/peerinfo_api.c
+++ b/src/peerinfo/peerinfo_api.c
@@ -119,13 +119,6 @@ static void
119reconnect (struct GNUNET_PEERINFO_Handle *h); 119reconnect (struct GNUNET_PEERINFO_Handle *h);
120 120
121 121
122/**
123 * Connect to the peerinfo service.
124 *
125 * @param cfg configuration to use
126 * @return NULL on error (configuration related, actual connection
127 * establishment may happen asynchronously).
128 */
129struct GNUNET_PEERINFO_Handle * 122struct GNUNET_PEERINFO_Handle *
130GNUNET_PEERINFO_connect (const struct GNUNET_CONFIGURATION_Handle *cfg) 123GNUNET_PEERINFO_connect (const struct GNUNET_CONFIGURATION_Handle *cfg)
131{ 124{
@@ -467,22 +460,6 @@ reconnect (struct GNUNET_PEERINFO_Handle *h)
467} 460}
468 461
469 462
470/**
471 * Call a method for each known matching host. The callback method
472 * will be invoked once for each matching host and then finally once
473 * with a NULL pointer. After that final invocation, the iterator
474 * context must no longer be used.
475 *
476 * Instead of calling this function with `peer == NULL` it is often
477 * better to use #GNUNET_PEERINFO_notify().
478 *
479 * @param h handle to the peerinfo service
480 * @param include_friend_only include HELLO messages for friends only
481 * @param peer restrict iteration to this peer only (can be NULL)
482 * @param callback the method to call for each peer
483 * @param callback_cls closure for @a callback
484 * @return iterator context
485 */
486struct GNUNET_PEERINFO_IteratorContext * 463struct GNUNET_PEERINFO_IteratorContext *
487GNUNET_PEERINFO_iterate (struct GNUNET_PEERINFO_Handle *h, 464GNUNET_PEERINFO_iterate (struct GNUNET_PEERINFO_Handle *h,
488 int include_friend_only, 465 int include_friend_only,