diff options
Diffstat (limited to 'src/include/gnunet_peerinfo_service.h')
-rw-r--r-- | src/include/gnunet_peerinfo_service.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/include/gnunet_peerinfo_service.h b/src/include/gnunet_peerinfo_service.h index db5cc37ba..d88c6fb41 100644 --- a/src/include/gnunet_peerinfo_service.h +++ b/src/include/gnunet_peerinfo_service.h | |||
@@ -20,8 +20,7 @@ | |||
20 | /** | 20 | /** |
21 | * @file include/gnunet_peerinfo_service.h | 21 | * @file include/gnunet_peerinfo_service.h |
22 | * @brief Code to maintain the list of currently known hosts | 22 | * @brief Code to maintain the list of currently known hosts |
23 | * (in memory structure of data/hosts) and their trust ratings | 23 | * (in memory structure of data/hosts). |
24 | * (in memory structure of data/trust) | ||
25 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
26 | */ | 25 | */ |
27 | 26 | ||
@@ -98,13 +97,11 @@ GNUNET_PEERINFO_add_peer (struct GNUNET_PEERINFO_Handle *h, | |||
98 | * @param cls closure | 97 | * @param cls closure |
99 | * @param peer id of the peer, NULL for last call | 98 | * @param peer id of the peer, NULL for last call |
100 | * @param hello hello message for the peer (can be NULL) | 99 | * @param hello hello message for the peer (can be NULL) |
101 | * @param trust amount of trust we have in the peer | ||
102 | */ | 100 | */ |
103 | typedef void | 101 | typedef void |
104 | (*GNUNET_PEERINFO_Processor) (void *cls, | 102 | (*GNUNET_PEERINFO_Processor) (void *cls, |
105 | const struct GNUNET_PeerIdentity * peer, | 103 | const struct GNUNET_PeerIdentity * peer, |
106 | const struct GNUNET_HELLO_Message * hello, | 104 | const struct GNUNET_HELLO_Message * hello); |
107 | uint32_t trust); | ||
108 | 105 | ||
109 | 106 | ||
110 | /** | 107 | /** |
@@ -123,12 +120,11 @@ struct GNUNET_PEERINFO_IteratorContext; | |||
123 | * being done; however, the trust argument will be set to zero if we | 120 | * being done; however, the trust argument will be set to zero if we |
124 | * are done, 1 if we timed out and 2 for fatal error. | 121 | * are done, 1 if we timed out and 2 for fatal error. |
125 | * | 122 | * |
126 | * Instead of calling this function with 'peer == NULL' and 'trust == | 123 | * Instead of calling this function with 'peer == NULL' |
127 | * 0', it is often better to use 'GNUNET_PEERINFO_notify'. | 124 | * it is often better to use 'GNUNET_PEERINFO_notify'. |
128 | * | 125 | * |
129 | * @param h handle to the peerinfo service | 126 | * @param h handle to the peerinfo service |
130 | * @param peer restrict iteration to this peer only (can be NULL) | 127 | * @param peer restrict iteration to this peer only (can be NULL) |
131 | * @param trust_delta how much to change the trust in all matching peers | ||
132 | * @param timeout how long to wait until timing out | 128 | * @param timeout how long to wait until timing out |
133 | * @param callback the method to call for each peer | 129 | * @param callback the method to call for each peer |
134 | * @param callback_cls closure for callback | 130 | * @param callback_cls closure for callback |
@@ -138,7 +134,6 @@ struct GNUNET_PEERINFO_IteratorContext; | |||
138 | struct GNUNET_PEERINFO_IteratorContext * | 134 | struct GNUNET_PEERINFO_IteratorContext * |
139 | GNUNET_PEERINFO_iterate (struct GNUNET_PEERINFO_Handle *h, | 135 | GNUNET_PEERINFO_iterate (struct GNUNET_PEERINFO_Handle *h, |
140 | const struct GNUNET_PeerIdentity *peer, | 136 | const struct GNUNET_PeerIdentity *peer, |
141 | int trust_delta, | ||
142 | struct GNUNET_TIME_Relative timeout, | 137 | struct GNUNET_TIME_Relative timeout, |
143 | GNUNET_PEERINFO_Processor callback, | 138 | GNUNET_PEERINFO_Processor callback, |
144 | void *callback_cls); | 139 | void *callback_cls); |