diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-07-20 20:18:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-07-20 20:18:49 +0000 |
commit | a3aecc1584246fef20413c9b4a6097f2a9f3e64b (patch) | |
tree | 781599b992224f49e1c60937a7a4c808ff981e77 /src/include | |
parent | 2687ea5fca3effa07f9b58aa41dfeac203dfb65f (diff) | |
download | gnunet-a3aecc1584246fef20413c9b4a6097f2a9f3e64b.tar.gz gnunet-a3aecc1584246fef20413c9b4a6097f2a9f3e64b.zip |
-cleanup
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_gns_service.h | 39 | ||||
-rw-r--r-- | src/include/gnunet_network_lib.h | 2 |
2 files changed, 22 insertions, 19 deletions
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h index 618d3c2c2..5eaf8b058 100644 --- a/src/include/gnunet_gns_service.h +++ b/src/include/gnunet_gns_service.h | |||
@@ -116,6 +116,7 @@ enum GNUNET_GNS_RecordType | |||
116 | GNUNET_GNS_RECORD_REV = GNUNET_NAMESTORE_TYPE_REV | 116 | GNUNET_GNS_RECORD_REV = GNUNET_NAMESTORE_TYPE_REV |
117 | }; | 117 | }; |
118 | 118 | ||
119 | |||
119 | /** | 120 | /** |
120 | * Initialize the connection with the GNS service. | 121 | * Initialize the connection with the GNS service. |
121 | * | 122 | * |
@@ -169,12 +170,13 @@ typedef void (*GNUNET_GNS_LookupResultProcessor) (void *cls, | |||
169 | */ | 170 | */ |
170 | struct GNUNET_GNS_LookupRequest* | 171 | struct GNUNET_GNS_LookupRequest* |
171 | GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, | 172 | GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, |
172 | const char * name, | 173 | const char * name, |
173 | enum GNUNET_GNS_RecordType type, | 174 | enum GNUNET_GNS_RecordType type, |
174 | int only_cached, | 175 | int only_cached, |
175 | struct GNUNET_CRYPTO_RsaPrivateKey *shorten_key, | 176 | struct GNUNET_CRYPTO_RsaPrivateKey *shorten_key, |
176 | GNUNET_GNS_LookupResultProcessor proc, | 177 | GNUNET_GNS_LookupResultProcessor proc, |
177 | void *proc_cls); | 178 | void *proc_cls); |
179 | |||
178 | 180 | ||
179 | /** | 181 | /** |
180 | * Perform an asynchronous lookup operation on the GNS | 182 | * Perform an asynchronous lookup operation on the GNS |
@@ -193,13 +195,13 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, | |||
193 | */ | 195 | */ |
194 | struct GNUNET_GNS_LookupRequest* | 196 | struct GNUNET_GNS_LookupRequest* |
195 | GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, | 197 | GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, |
196 | const char * name, | 198 | const char * name, |
197 | struct GNUNET_CRYPTO_ShortHashCode *zone, | 199 | struct GNUNET_CRYPTO_ShortHashCode *zone, |
198 | enum GNUNET_GNS_RecordType type, | 200 | enum GNUNET_GNS_RecordType type, |
199 | int only_cached, | 201 | int only_cached, |
200 | struct GNUNET_CRYPTO_RsaPrivateKey *shorten_key, | 202 | struct GNUNET_CRYPTO_RsaPrivateKey *shorten_key, |
201 | GNUNET_GNS_LookupResultProcessor proc, | 203 | GNUNET_GNS_LookupResultProcessor proc, |
202 | void *proc_cls); | 204 | void *proc_cls); |
203 | 205 | ||
204 | 206 | ||
205 | /** | 207 | /** |
@@ -221,7 +223,7 @@ GNUNET_GNS_cancel_lookup_request (struct GNUNET_GNS_LookupRequest *lr); | |||
221 | * @param short_name the shortened name or NULL if no result | 223 | * @param short_name the shortened name or NULL if no result |
222 | */ | 224 | */ |
223 | typedef void (*GNUNET_GNS_ShortenResultProcessor) (void *cls, | 225 | typedef void (*GNUNET_GNS_ShortenResultProcessor) (void *cls, |
224 | const char* short_name); | 226 | const char* short_name); |
225 | 227 | ||
226 | 228 | ||
227 | /** | 229 | /** |
@@ -274,6 +276,7 @@ GNUNET_GNS_shorten_zone (struct GNUNET_GNS_Handle *handle, | |||
274 | void | 276 | void |
275 | GNUNET_GNS_cancel_shorten_request (struct GNUNET_GNS_ShortenRequest *sr); | 277 | GNUNET_GNS_cancel_shorten_request (struct GNUNET_GNS_ShortenRequest *sr); |
276 | 278 | ||
279 | |||
277 | /* *************** Standard API: get authority ******************* */ | 280 | /* *************** Standard API: get authority ******************* */ |
278 | 281 | ||
279 | 282 | ||
@@ -285,7 +288,7 @@ GNUNET_GNS_cancel_shorten_request (struct GNUNET_GNS_ShortenRequest *sr); | |||
285 | * @param auth_name the name of the auhtority or NULL | 288 | * @param auth_name the name of the auhtority or NULL |
286 | */ | 289 | */ |
287 | typedef void (*GNUNET_GNS_GetAuthResultProcessor) (void *cls, | 290 | typedef void (*GNUNET_GNS_GetAuthResultProcessor) (void *cls, |
288 | const char* short_name); | 291 | const char* short_name); |
289 | 292 | ||
290 | 293 | ||
291 | /** | 294 | /** |
@@ -299,9 +302,9 @@ typedef void (*GNUNET_GNS_GetAuthResultProcessor) (void *cls, | |||
299 | */ | 302 | */ |
300 | struct GNUNET_GNS_GetAuthRequest* | 303 | struct GNUNET_GNS_GetAuthRequest* |
301 | GNUNET_GNS_get_authority (struct GNUNET_GNS_Handle *handle, | 304 | GNUNET_GNS_get_authority (struct GNUNET_GNS_Handle *handle, |
302 | const char * name, | 305 | const char * name, |
303 | GNUNET_GNS_GetAuthResultProcessor proc, | 306 | GNUNET_GNS_GetAuthResultProcessor proc, |
304 | void *proc_cls); | 307 | void *proc_cls); |
305 | 308 | ||
306 | 309 | ||
307 | /** | 310 | /** |
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index 762e2faca..06a5ce903 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h | |||
@@ -197,7 +197,7 @@ GNUNET_NETWORK_socket_recvfrom_amount (const struct GNUNET_NETWORK_Handle | |||
197 | ssize_t | 197 | ssize_t |
198 | GNUNET_NETWORK_socket_recvfrom (const struct GNUNET_NETWORK_Handle *desc, | 198 | GNUNET_NETWORK_socket_recvfrom (const struct GNUNET_NETWORK_Handle *desc, |
199 | void *buffer, size_t length, | 199 | void *buffer, size_t length, |
200 | struct sockaddr *src_addr, socklen_t * addrlen); | 200 | struct sockaddr *src_addr, socklen_t *addrlen); |
201 | 201 | ||
202 | 202 | ||
203 | /** | 203 | /** |