aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gns_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-07-20 20:18:49 +0000
committerChristian Grothoff <christian@grothoff.org>2012-07-20 20:18:49 +0000
commita3aecc1584246fef20413c9b4a6097f2a9f3e64b (patch)
tree781599b992224f49e1c60937a7a4c808ff981e77 /src/include/gnunet_gns_service.h
parent2687ea5fca3effa07f9b58aa41dfeac203dfb65f (diff)
downloadgnunet-a3aecc1584246fef20413c9b4a6097f2a9f3e64b.tar.gz
gnunet-a3aecc1584246fef20413c9b4a6097f2a9f3e64b.zip
-cleanup
Diffstat (limited to 'src/include/gnunet_gns_service.h')
-rw-r--r--src/include/gnunet_gns_service.h39
1 files changed, 21 insertions, 18 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 */
170struct GNUNET_GNS_LookupRequest* 171struct GNUNET_GNS_LookupRequest*
171GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, 172GNUNET_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 */
194struct GNUNET_GNS_LookupRequest* 196struct GNUNET_GNS_LookupRequest*
195GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, 197GNUNET_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 */
223typedef void (*GNUNET_GNS_ShortenResultProcessor) (void *cls, 225typedef 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,
274void 276void
275GNUNET_GNS_cancel_shorten_request (struct GNUNET_GNS_ShortenRequest *sr); 277GNUNET_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 */
287typedef void (*GNUNET_GNS_GetAuthResultProcessor) (void *cls, 290typedef 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 */
300struct GNUNET_GNS_GetAuthRequest* 303struct GNUNET_GNS_GetAuthRequest*
301GNUNET_GNS_get_authority (struct GNUNET_GNS_Handle *handle, 304GNUNET_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/**