aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gns_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_gns_service.h')
-rw-r--r--src/include/gnunet_gns_service.h40
1 files changed, 39 insertions, 1 deletions
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h
index 5528532cd..4e040f777 100644
--- a/src/include/gnunet_gns_service.h
+++ b/src/include/gnunet_gns_service.h
@@ -120,7 +120,8 @@ typedef void (*GNUNET_GNS_LookupResultProcessor) (void *cls,
120 120
121 121
122/** 122/**
123 * Perform an asynchronous lookup operation on the GNS. 123 * Perform an asynchronous lookup operation on the GNS
124 * in the default zone.
124 * 125 *
125 * @param handle handle to the GNS service 126 * @param handle handle to the GNS service
126 * @param name the name to look up 127 * @param name the name to look up
@@ -137,6 +138,26 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
137 GNUNET_GNS_LookupResultProcessor proc, 138 GNUNET_GNS_LookupResultProcessor proc,
138 void *proc_cls); 139 void *proc_cls);
139 140
141/**
142 * Perform an asynchronous lookup operation on the GNS
143 * in the zone specified by 'zone'.
144 *
145 * @param handle handle to the GNS service
146 * @param name the name to look up
147 * @param zone the zone to start the resolution in
148 * @param type the GNUNET_GNS_RecordType to look for
149 * @param proc function to call on result
150 * @param proc_cls closure for processor
151 *
152 * @return handle to the queued request
153 */
154struct GNUNET_GNS_QueueEntry *
155GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle,
156 const char * name,
157 struct GNUNET_CRYPTO_ShortHashCode *zone,
158 enum GNUNET_GNS_RecordType type,
159 GNUNET_GNS_LookupResultProcessor proc,
160 void *proc_cls);
140 161
141/* *************** Standard API: shorten ******************* */ 162/* *************** Standard API: shorten ******************* */
142 163
@@ -168,6 +189,23 @@ GNUNET_GNS_shorten (struct GNUNET_GNS_Handle *handle,
168 void *proc_cls); 189 void *proc_cls);
169 190
170 191
192/**
193 * Perform a name shortening operation on the GNS.
194 *
195 * @param handle handle to the GNS service
196 * @param name the name to look up
197 * @param zone the zone to start the resolution in
198 * @param proc function to call on result
199 * @param proc_cls closure for processor
200 * @return handle to the operation
201 */
202struct GNUNET_GNS_QueueEntry *
203GNUNET_GNS_shorten_zone (struct GNUNET_GNS_Handle *handle,
204 const char * name,
205 struct GNUNET_CRYPTO_ShortHashCode *zone,
206 GNUNET_GNS_ShortenResultProcessor proc,
207 void *proc_cls);
208
171/* *************** Standard API: get authority ******************* */ 209/* *************** Standard API: get authority ******************* */
172 210
173 211