aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gns_service.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-08 16:13:47 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-08 16:13:47 +0000
commit4803fd2b87550bb34fa8bd88ededb8f73d5d0b4d (patch)
tree7073934e2af4ce78f0b8a97357c2709f88e7f3fb /src/include/gnunet_gns_service.h
parent4d055043b4098d07f1900267d35f642bee83bc42 (diff)
downloadgnunet-4803fd2b87550bb34fa8bd88ededb8f73d5d0b4d.tar.gz
gnunet-4803fd2b87550bb34fa8bd88ededb8f73d5d0b4d.zip
-lookup now works in test, removed dns hijack from defaults
Diffstat (limited to 'src/include/gnunet_gns_service.h')
-rw-r--r--src/include/gnunet_gns_service.h15
1 files changed, 7 insertions, 8 deletions
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);
104/* *************** Standard API: lookup ******************* */ 104/* *************** Standard API: lookup ******************* */
105 105
106/** 106/**
107 * Iterator called on each result obtained for a GNS 107 * Iterator called on obtained result for a GNS
108 * lookup 108 * lookup
109 * 109 *
110 * @param cls closure 110 * @param cls closure
@@ -112,8 +112,7 @@ GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *handle);
112 * @param rd_count number of records 112 * @param rd_count number of records
113 * @param rd the records in reply 113 * @param rd the records in reply
114 */ 114 */
115typedef void (*GNUNET_GNS_LookupIterator) (void *cls, 115typedef void (*GNUNET_GNS_LookupResultProcessor) (void *cls,
116 const char * name,
117 uint32_t rd_count, 116 uint32_t rd_count,
118 const struct GNUNET_NAMESTORE_RecordData *rd); 117 const struct GNUNET_NAMESTORE_RecordData *rd);
119 118
@@ -125,17 +124,17 @@ typedef void (*GNUNET_GNS_LookupIterator) (void *cls,
125 * @param handle handle to the GNS service 124 * @param handle handle to the GNS service
126 * @param name the name to look up 125 * @param name the name to look up
127 * @param type the GNUNET_GNS_RecordType to look for 126 * @param type the GNUNET_GNS_RecordType to look for
128 * @param iter function to call on each result 127 * @param proc function to call on result
129 * @param iter_cls closure for iter 128 * @param proc_cls closure for iter
130 * 129 *
131 * @return handle to stop the async lookup 130 * @return handle to the queued request
132 */ 131 */
133struct GNUNET_GNS_QueueEntry * 132struct GNUNET_GNS_QueueEntry *
134GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, 133GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
135 const char * name, 134 const char * name,
136 enum GNUNET_GNS_RecordType type, 135 enum GNUNET_GNS_RecordType type,
137 GNUNET_GNS_LookupIterator iter, 136 GNUNET_GNS_LookupResultProcessor proc,
138 void *iter_cls); 137 void *proc_cls);
139 138
140 139
141/* *************** Standard API: shorten ******************* */ 140/* *************** Standard API: shorten ******************* */