diff options
Diffstat (limited to 'src/include/gnunet_peerinfo_service.h')
-rw-r--r-- | src/include/gnunet_peerinfo_service.h | 49 |
1 files changed, 20 insertions, 29 deletions
diff --git a/src/include/gnunet_peerinfo_service.h b/src/include/gnunet_peerinfo_service.h index 2013eb60f..50bbc458a 100644 --- a/src/include/gnunet_peerinfo_service.h +++ b/src/include/gnunet_peerinfo_service.h | |||
@@ -54,9 +54,8 @@ struct GNUNET_PEERINFO_Handle; | |||
54 | * @return NULL on error (configuration related, actual connection | 54 | * @return NULL on error (configuration related, actual connection |
55 | * etablishment may happen asynchronously). | 55 | * etablishment may happen asynchronously). |
56 | */ | 56 | */ |
57 | struct GNUNET_PEERINFO_Handle *GNUNET_PEERINFO_connect (const struct | 57 | struct GNUNET_PEERINFO_Handle * |
58 | GNUNET_CONFIGURATION_Handle | 58 | GNUNET_PEERINFO_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); |
59 | *cfg); | ||
60 | 59 | ||
61 | 60 | ||
62 | 61 | ||
@@ -69,7 +68,8 @@ struct GNUNET_PEERINFO_Handle *GNUNET_PEERINFO_connect (const struct | |||
69 | * | 68 | * |
70 | * @param h handle to disconnect | 69 | * @param h handle to disconnect |
71 | */ | 70 | */ |
72 | void GNUNET_PEERINFO_disconnect (struct GNUNET_PEERINFO_Handle *h); | 71 | void |
72 | GNUNET_PEERINFO_disconnect (struct GNUNET_PEERINFO_Handle *h); | ||
73 | 73 | ||
74 | 74 | ||
75 | /** | 75 | /** |
@@ -83,8 +83,9 @@ void GNUNET_PEERINFO_disconnect (struct GNUNET_PEERINFO_Handle *h); | |||
83 | * @param h handle to the peerinfo service | 83 | * @param h handle to the peerinfo service |
84 | * @param hello the verified (!) HELLO message | 84 | * @param hello the verified (!) HELLO message |
85 | */ | 85 | */ |
86 | void GNUNET_PEERINFO_add_peer (struct GNUNET_PEERINFO_Handle *h, | 86 | void |
87 | const struct GNUNET_HELLO_Message *hello); | 87 | GNUNET_PEERINFO_add_peer (struct GNUNET_PEERINFO_Handle *h, |
88 | const struct GNUNET_HELLO_Message *hello); | ||
88 | 89 | ||
89 | 90 | ||
90 | /** | 91 | /** |
@@ -126,19 +127,12 @@ struct GNUNET_PEERINFO_IteratorContext; | |||
126 | * @return NULL on error (in this case, 'callback' is never called!), | 127 | * @return NULL on error (in this case, 'callback' is never called!), |
127 | * otherwise an iterator context | 128 | * otherwise an iterator context |
128 | */ | 129 | */ |
129 | struct GNUNET_PEERINFO_IteratorContext *GNUNET_PEERINFO_iterate (struct | 130 | struct GNUNET_PEERINFO_IteratorContext * |
130 | GNUNET_PEERINFO_Handle | 131 | GNUNET_PEERINFO_iterate (struct GNUNET_PEERINFO_Handle *h, |
131 | *h, | 132 | const struct GNUNET_PeerIdentity *peer, |
132 | const struct | 133 | struct GNUNET_TIME_Relative timeout, |
133 | GNUNET_PeerIdentity | 134 | GNUNET_PEERINFO_Processor callback, |
134 | *peer, | 135 | void *callback_cls); |
135 | struct | ||
136 | GNUNET_TIME_Relative | ||
137 | timeout, | ||
138 | GNUNET_PEERINFO_Processor | ||
139 | callback, | ||
140 | void | ||
141 | *callback_cls); | ||
142 | 136 | ||
143 | 137 | ||
144 | 138 | ||
@@ -147,8 +141,8 @@ struct GNUNET_PEERINFO_IteratorContext *GNUNET_PEERINFO_iterate (struct | |||
147 | * | 141 | * |
148 | * @param ic context of the iterator to cancel | 142 | * @param ic context of the iterator to cancel |
149 | */ | 143 | */ |
150 | void GNUNET_PEERINFO_iterate_cancel (struct GNUNET_PEERINFO_IteratorContext | 144 | void |
151 | *ic); | 145 | GNUNET_PEERINFO_iterate_cancel (struct GNUNET_PEERINFO_IteratorContext *ic); |
152 | 146 | ||
153 | 147 | ||
154 | 148 | ||
@@ -170,13 +164,9 @@ struct GNUNET_PEERINFO_NotifyContext; | |||
170 | * @param callback_cls closure for callback | 164 | * @param callback_cls closure for callback |
171 | * @return NULL on error | 165 | * @return NULL on error |
172 | */ | 166 | */ |
173 | struct GNUNET_PEERINFO_NotifyContext *GNUNET_PEERINFO_notify (const struct | 167 | struct GNUNET_PEERINFO_NotifyContext * |
174 | GNUNET_CONFIGURATION_Handle | 168 | GNUNET_PEERINFO_notify (const struct GNUNET_CONFIGURATION_Handle *cfg, |
175 | *cfg, | 169 | GNUNET_PEERINFO_Processor callback, void *callback_cls); |
176 | GNUNET_PEERINFO_Processor | ||
177 | callback, | ||
178 | void | ||
179 | *callback_cls); | ||
180 | 170 | ||
181 | 171 | ||
182 | /** | 172 | /** |
@@ -184,7 +174,8 @@ struct GNUNET_PEERINFO_NotifyContext *GNUNET_PEERINFO_notify (const struct | |||
184 | * | 174 | * |
185 | * @param nc context to stop notifying | 175 | * @param nc context to stop notifying |
186 | */ | 176 | */ |
187 | void GNUNET_PEERINFO_notify_cancel (struct GNUNET_PEERINFO_NotifyContext *nc); | 177 | void |
178 | GNUNET_PEERINFO_notify_cancel (struct GNUNET_PEERINFO_NotifyContext *nc); | ||
188 | 179 | ||
189 | 180 | ||
190 | #if 0 /* keep Emacsens' auto-indent happy */ | 181 | #if 0 /* keep Emacsens' auto-indent happy */ |