diff options
Diffstat (limited to 'src/regex/regex_api.c')
-rw-r--r-- | src/regex/regex_api.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/regex/regex_api.c b/src/regex/regex_api.c index afc028cdb..e18674d65 100644 --- a/src/regex/regex_api.c +++ b/src/regex/regex_api.c | |||
@@ -40,11 +40,11 @@ struct GNUNET_REGEX_Announcement | |||
40 | */ | 40 | */ |
41 | struct GNUNET_CLIENT_Connection *client; | 41 | struct GNUNET_CLIENT_Connection *client; |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * Our configuration. | 44 | * Our configuration. |
45 | */ | 45 | */ |
46 | const struct GNUNET_CONFIGURATION_Handle *cfg; | 46 | const struct GNUNET_CONFIGURATION_Handle *cfg; |
47 | 47 | ||
48 | /** | 48 | /** |
49 | * Message we're sending to the service. | 49 | * Message we're sending to the service. |
50 | */ | 50 | */ |
@@ -55,7 +55,7 @@ struct GNUNET_REGEX_Announcement | |||
55 | /** | 55 | /** |
56 | * We got a response (!?) or disconnect after asking regex | 56 | * We got a response (!?) or disconnect after asking regex |
57 | * to do the announcement. Retry. | 57 | * to do the announcement. Retry. |
58 | * | 58 | * |
59 | * @param cls the 'struct GNUNET_REGEX_Announcement' to retry | 59 | * @param cls the 'struct GNUNET_REGEX_Announcement' to retry |
60 | * @param msg NULL on disconnect | 60 | * @param msg NULL on disconnect |
61 | */ | 61 | */ |
@@ -65,7 +65,7 @@ handle_a_reconnect (void *cls, | |||
65 | 65 | ||
66 | 66 | ||
67 | /** | 67 | /** |
68 | * Try sending the announcement request to regex. On | 68 | * Try sending the announcement request to regex. On |
69 | * errors (i.e. regex died), try again. | 69 | * errors (i.e. regex died), try again. |
70 | * | 70 | * |
71 | * @param a the announcement to retry | 71 | * @param a the announcement to retry |
@@ -87,7 +87,7 @@ retry_announcement (struct GNUNET_REGEX_Announcement *a) | |||
87 | /** | 87 | /** |
88 | * We got a response (!?) or disconnect after asking regex | 88 | * We got a response (!?) or disconnect after asking regex |
89 | * to do the announcement. Retry. | 89 | * to do the announcement. Retry. |
90 | * | 90 | * |
91 | * @param cls the 'struct GNUNET_REGEX_Announcement' to retry | 91 | * @param cls the 'struct GNUNET_REGEX_Announcement' to retry |
92 | * @param msg NULL on disconnect | 92 | * @param msg NULL on disconnect |
93 | */ | 93 | */ |
@@ -107,7 +107,7 @@ handle_a_reconnect (void *cls, | |||
107 | * Announce the given peer under the given regular expression. Does | 107 | * Announce the given peer under the given regular expression. Does |
108 | * not free resources, must call GNUNET_REGEX_announce_cancel for | 108 | * not free resources, must call GNUNET_REGEX_announce_cancel for |
109 | * that. | 109 | * that. |
110 | * | 110 | * |
111 | * @param cfg configuration to use | 111 | * @param cfg configuration to use |
112 | * @param regex Regular expression to announce. | 112 | * @param regex Regular expression to announce. |
113 | * @param refresh_delay after what delay should the announcement be repeated? | 113 | * @param refresh_delay after what delay should the announcement be repeated? |
@@ -151,7 +151,7 @@ GNUNET_REGEX_announce (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
151 | 151 | ||
152 | /** | 152 | /** |
153 | * Stop announcing the regex specified by the given handle. | 153 | * Stop announcing the regex specified by the given handle. |
154 | * | 154 | * |
155 | * @param a handle returned by a previous GNUNET_REGEX_announce call. | 155 | * @param a handle returned by a previous GNUNET_REGEX_announce call. |
156 | */ | 156 | */ |
157 | void | 157 | void |
@@ -172,11 +172,11 @@ struct GNUNET_REGEX_Search | |||
172 | */ | 172 | */ |
173 | struct GNUNET_CLIENT_Connection *client; | 173 | struct GNUNET_CLIENT_Connection *client; |
174 | 174 | ||
175 | /** | 175 | /** |
176 | * Our configuration. | 176 | * Our configuration. |
177 | */ | 177 | */ |
178 | const struct GNUNET_CONFIGURATION_Handle *cfg; | 178 | const struct GNUNET_CONFIGURATION_Handle *cfg; |
179 | 179 | ||
180 | /** | 180 | /** |
181 | * Function to call with results. | 181 | * Function to call with results. |
182 | */ | 182 | */ |
@@ -186,7 +186,7 @@ struct GNUNET_REGEX_Search | |||
186 | * Closure for 'callback'. | 186 | * Closure for 'callback'. |
187 | */ | 187 | */ |
188 | void *callback_cls; | 188 | void *callback_cls; |
189 | 189 | ||
190 | /** | 190 | /** |
191 | * Search message to transmit to the service. | 191 | * Search message to transmit to the service. |
192 | */ | 192 | */ |
@@ -197,7 +197,7 @@ struct GNUNET_REGEX_Search | |||
197 | /** | 197 | /** |
198 | * We got a response or disconnect after asking regex | 198 | * We got a response or disconnect after asking regex |
199 | * to do the search. Handle it. | 199 | * to do the search. Handle it. |
200 | * | 200 | * |
201 | * @param cls the 'struct GNUNET_REGEX_Search' to retry | 201 | * @param cls the 'struct GNUNET_REGEX_Search' to retry |
202 | * @param msg NULL on disconnect | 202 | * @param msg NULL on disconnect |
203 | */ | 203 | */ |
@@ -207,7 +207,7 @@ handle_search_response (void *cls, | |||
207 | 207 | ||
208 | 208 | ||
209 | /** | 209 | /** |
210 | * Try sending the search request to regex. On | 210 | * Try sending the search request to regex. On |
211 | * errors (i.e. regex died), try again. | 211 | * errors (i.e. regex died), try again. |
212 | * | 212 | * |
213 | * @param s the search to retry | 213 | * @param s the search to retry |
@@ -229,7 +229,7 @@ retry_search (struct GNUNET_REGEX_Search *s) | |||
229 | /** | 229 | /** |
230 | * We got a response or disconnect after asking regex | 230 | * We got a response or disconnect after asking regex |
231 | * to do the search. Handle it. | 231 | * to do the search. Handle it. |
232 | * | 232 | * |
233 | * @param cls the 'struct GNUNET_REGEX_Search' to retry | 233 | * @param cls the 'struct GNUNET_REGEX_Search' to retry |
234 | * @param msg NULL on disconnect, otherwise presumably a response | 234 | * @param msg NULL on disconnect, otherwise presumably a response |
235 | */ | 235 | */ |
@@ -257,7 +257,7 @@ handle_search_response (void *cls, | |||
257 | result = (const struct ResultMessage *) msg; | 257 | result = (const struct ResultMessage *) msg; |
258 | gpl = ntohs (result->get_path_length); | 258 | gpl = ntohs (result->get_path_length); |
259 | ppl = ntohs (result->put_path_length); | 259 | ppl = ntohs (result->put_path_length); |
260 | if (size == (sizeof (struct ResultMessage) + | 260 | if (size == (sizeof (struct ResultMessage) + |
261 | (gpl + ppl) * sizeof (struct GNUNET_PeerIdentity))) | 261 | (gpl + ppl) * sizeof (struct GNUNET_PeerIdentity))) |
262 | { | 262 | { |
263 | const struct GNUNET_PeerIdentity *pid; | 263 | const struct GNUNET_PeerIdentity *pid; |
@@ -269,7 +269,7 @@ handle_search_response (void *cls, | |||
269 | s->callback (s->callback_cls, | 269 | s->callback (s->callback_cls, |
270 | pid, | 270 | pid, |
271 | &pid[1], gpl, | 271 | &pid[1], gpl, |
272 | &pid[1 + gpl], ppl); | 272 | &pid[1 + gpl], ppl); |
273 | return; | 273 | return; |
274 | } | 274 | } |
275 | } | 275 | } |
@@ -323,7 +323,7 @@ GNUNET_REGEX_search (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
323 | 323 | ||
324 | /** | 324 | /** |
325 | * Stop search and free all data used by a GNUNET_REGEX_search call. | 325 | * Stop search and free all data used by a GNUNET_REGEX_search call. |
326 | * | 326 | * |
327 | * @param s Handle returned by a previous GNUNET_REGEX_search call. | 327 | * @param s Handle returned by a previous GNUNET_REGEX_search call. |
328 | */ | 328 | */ |
329 | void | 329 | void |