aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-service-gns_resolver.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-22 16:36:39 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-22 16:36:39 +0000
commitdd333f69e55bd7e2b94b4bb281e9b0c0b63c23f2 (patch)
treebdaa5f02741deb8695a347dcfc814657907d301d /src/gns/gnunet-service-gns_resolver.h
parent51191c78817e2634f52584b6830e4d792c239670 (diff)
downloadgnunet-dd333f69e55bd7e2b94b4bb281e9b0c0b63c23f2.tar.gz
gnunet-dd333f69e55bd7e2b94b4bb281e9b0c0b63c23f2.zip
-parallel background lookups
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.h')
-rw-r--r--src/gns/gnunet-service-gns_resolver.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.h b/src/gns/gnunet-service-gns_resolver.h
index e973b0c52..073c19192 100644
--- a/src/gns/gnunet-service-gns_resolver.h
+++ b/src/gns/gnunet-service-gns_resolver.h
@@ -88,7 +88,8 @@ typedef void (*ResolutionResultProcessor) (void *cls,
88enum ResolutionStatus 88enum ResolutionStatus
89{ 89{
90 EXISTS = 1, 90 EXISTS = 1,
91 EXPIRED = 2 91 EXPIRED = 2,
92 TIMED_OUT = 4
92}; 93};
93 94
94/** 95/**
@@ -244,11 +245,21 @@ struct GetPseuAuthorityHandle
244 * 245 *
245 * @param nh handle to the namestore 246 * @param nh handle to the namestore
246 * @param dh handle to the dht 247 * @param dh handle to the dht
248 * @param local_zone the local zone
249 * @param max_bg_queries maximum amount of background queries
247 * @returns GNUNET_OK on success 250 * @returns GNUNET_OK on success
248 */ 251 */
249int 252int
250gns_resolver_init(struct GNUNET_NAMESTORE_Handle *nh, 253gns_resolver_init(struct GNUNET_NAMESTORE_Handle *nh,
251 struct GNUNET_DHT_Handle *dh); 254 struct GNUNET_DHT_Handle *dh,
255 struct GNUNET_CRYPTO_ShortHashCode local_zone,
256 unsigned long long max_bg_queries);
257
258/**
259 * Cleanup resolver: Terminate pending lookups
260 */
261void
262gns_resolver_cleanup(void);
252 263
253/** 264/**
254 * Lookup of a record in a specific zone 265 * Lookup of a record in a specific zone