From 4803fd2b87550bb34fa8bd88ededb8f73d5d0b4d Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Thu, 8 Mar 2012 16:13:47 +0000 Subject: -lookup now works in test, removed dns hijack from defaults --- src/include/gnunet_gns_service.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/include/gnunet_gns_service.h') diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h index 60a2fb227..5ae7fbefe 100644 --- a/src/include/gnunet_gns_service.h +++ b/src/include/gnunet_gns_service.h @@ -104,7 +104,7 @@ GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *handle); /* *************** Standard API: lookup ******************* */ /** - * Iterator called on each result obtained for a GNS + * Iterator called on obtained result for a GNS * lookup * * @param cls closure @@ -112,8 +112,7 @@ GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *handle); * @param rd_count number of records * @param rd the records in reply */ -typedef void (*GNUNET_GNS_LookupIterator) (void *cls, - const char * name, +typedef void (*GNUNET_GNS_LookupResultProcessor) (void *cls, uint32_t rd_count, const struct GNUNET_NAMESTORE_RecordData *rd); @@ -125,17 +124,17 @@ typedef void (*GNUNET_GNS_LookupIterator) (void *cls, * @param handle handle to the GNS service * @param name the name to look up * @param type the GNUNET_GNS_RecordType to look for - * @param iter function to call on each result - * @param iter_cls closure for iter + * @param proc function to call on result + * @param proc_cls closure for iter * - * @return handle to stop the async lookup + * @return handle to the queued request */ struct GNUNET_GNS_QueueEntry * GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, const char * name, enum GNUNET_GNS_RecordType type, - GNUNET_GNS_LookupIterator iter, - void *iter_cls); + GNUNET_GNS_LookupResultProcessor proc, + void *proc_cls); /* *************** Standard API: shorten ******************* */ -- cgit v1.2.3