aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gns_service.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/include/gnunet_gns_service.h
parent16cf819a0feb38c36b046c59febae5bc511a3d1b (diff)
downloadgnunet-366546f576315e0de97a700546d108a974161734.tar.gz
gnunet-366546f576315e0de97a700546d108a974161734.zip
-add cached flag for performance
Diffstat (limited to 'src/include/gnunet_gns_service.h')
-rw-r--r--src/include/gnunet_gns_service.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h
index 1906aba45..4d04addf9 100644
--- a/src/include/gnunet_gns_service.h
+++ b/src/include/gnunet_gns_service.h
@@ -127,6 +127,7 @@ typedef void (*GNUNET_GNS_LookupResultProcessor) (void *cls,
127 * @param handle handle to the GNS service 127 * @param handle handle to the GNS service
128 * @param name the name to look up 128 * @param name the name to look up
129 * @param type the GNUNET_GNS_RecordType to look for 129 * @param type the GNUNET_GNS_RecordType to look for
130 * @param only_cached GNUNET_NO to only check locally not DHT for performance
130 * @param proc function to call on result 131 * @param proc function to call on result
131 * @param proc_cls closure for processor 132 * @param proc_cls closure for processor
132 * 133 *
@@ -136,6 +137,7 @@ struct GNUNET_GNS_QueueEntry *
136GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, 137GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
137 const char * name, 138 const char * name,
138 enum GNUNET_GNS_RecordType type, 139 enum GNUNET_GNS_RecordType type,
140 int only_cached,
139 GNUNET_GNS_LookupResultProcessor proc, 141 GNUNET_GNS_LookupResultProcessor proc,
140 void *proc_cls); 142 void *proc_cls);
141 143
@@ -148,6 +150,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
148 * @param zone the zone to start the resolution in 150 * @param zone the zone to start the resolution in
149 * @param shorten_zone the zone where to shorten names into 151 * @param shorten_zone the zone where to shorten names into
150 * @param type the GNUNET_GNS_RecordType to look for 152 * @param type the GNUNET_GNS_RecordType to look for
153 * @param only_cached GNUNET_NO to only check locally not DHT for performance
151 * @param proc function to call on result 154 * @param proc function to call on result
152 * @param proc_cls closure for processor 155 * @param proc_cls closure for processor
153 * 156 *
@@ -159,6 +162,7 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle,
159 struct GNUNET_CRYPTO_ShortHashCode *zone, 162 struct GNUNET_CRYPTO_ShortHashCode *zone,
160 struct GNUNET_CRYPTO_ShortHashCode *shorten_zone, 163 struct GNUNET_CRYPTO_ShortHashCode *shorten_zone,
161 enum GNUNET_GNS_RecordType type, 164 enum GNUNET_GNS_RecordType type,
165 int only_cached,
162 GNUNET_GNS_LookupResultProcessor proc, 166 GNUNET_GNS_LookupResultProcessor proc,
163 void *proc_cls); 167 void *proc_cls);
164 168