diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-22 16:36:39 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-22 16:36:39 +0000 |
commit | dd333f69e55bd7e2b94b4bb281e9b0c0b63c23f2 (patch) | |
tree | bdaa5f02741deb8695a347dcfc814657907d301d /src/gns/gnunet-service-gns_resolver.h | |
parent | 51191c78817e2634f52584b6830e4d792c239670 (diff) | |
download | gnunet-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.h | 15 |
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, | |||
88 | enum ResolutionStatus | 88 | enum 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 | */ |
249 | int | 252 | int |
250 | gns_resolver_init(struct GNUNET_NAMESTORE_Handle *nh, | 253 | gns_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 | */ | ||
261 | void | ||
262 | gns_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 |