aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-service-gns_resolver.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-11 15:50:40 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-11 15:50:40 +0000
commit366546f576315e0de97a700546d108a974161734 (patch)
tree87232a31739b479c7cde5b49b005923bc487fd42 /src/gns/gnunet-service-gns_resolver.h
parent16cf819a0feb38c36b046c59febae5bc511a3d1b (diff)
downloadgnunet-366546f576315e0de97a700546d108a974161734.tar.gz
gnunet-366546f576315e0de97a700546d108a974161734.zip
-add cached flag for performance
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.h')
-rw-r--r--src/gns/gnunet-service-gns_resolver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.h b/src/gns/gnunet-service-gns_resolver.h
index 8222397c4..f1f25a5c1 100644
--- a/src/gns/gnunet-service-gns_resolver.h
+++ b/src/gns/gnunet-service-gns_resolver.h
@@ -114,6 +114,9 @@ struct ResolverHandle
114 /* has this query been answered? how many matches */ 114 /* has this query been answered? how many matches */
115 int answered; 115 int answered;
116 116
117 /* Use only cache */
118 int only_cached;
119
117 /* the authoritative zone to query */ 120 /* the authoritative zone to query */
118 struct GNUNET_CRYPTO_ShortHashCode authority; 121 struct GNUNET_CRYPTO_ShortHashCode authority;
119 122
@@ -284,6 +287,7 @@ gns_resolver_cleanup(ResolverCleanupContinuation cont);
284 * @param name the name to look up 287 * @param name the name to look up
285 * @param key optional private key for authority caching 288 * @param key optional private key for authority caching
286 * @param timeout timeout for the resolution 289 * @param timeout timeout for the resolution
290 * @param only_cached GNUNET_NO to only check locally not DHT for performance
287 * @param proc the processor to call 291 * @param proc the processor to call
288 * @param cls the closure to pass to proc 292 * @param cls the closure to pass to proc
289 */ 293 */
@@ -294,6 +298,7 @@ gns_resolver_lookup_record(struct GNUNET_CRYPTO_ShortHashCode zone,
294 const char* name, 298 const char* name,
295 struct GNUNET_CRYPTO_RsaPrivateKey *key, 299 struct GNUNET_CRYPTO_RsaPrivateKey *key,
296 struct GNUNET_TIME_Relative timeout, 300 struct GNUNET_TIME_Relative timeout,
301 int only_cached,
297 RecordLookupProcessor proc, 302 RecordLookupProcessor proc,
298 void* cls); 303 void* cls);
299 304