aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-service-gns_resolver.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-16 08:39:00 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-16 08:39:00 +0000
commit82e1974e76ae1c4a0002dfc2b81d3b3f07d50637 (patch)
treec87ab048480669993b61ff753449f32fefbd10fe /src/gns/gnunet-service-gns_resolver.h
parentbb96d65cd41acd46e8f82070ecd1408e93a1e1a1 (diff)
downloadgnunet-82e1974e76ae1c4a0002dfc2b81d3b3f07d50637.tar.gz
gnunet-82e1974e76ae1c4a0002dfc2b81d3b3f07d50637.zip
-fixes
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.h')
-rw-r--r--src/gns/gnunet-service-gns_resolver.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.h b/src/gns/gnunet-service-gns_resolver.h
index 2b0c4755d..79e916015 100644
--- a/src/gns/gnunet-service-gns_resolver.h
+++ b/src/gns/gnunet-service-gns_resolver.h
@@ -2,6 +2,7 @@
2#define GNS_RESOLVER_H 2#define GNS_RESOLVER_H
3 3
4#include "gns.h" 4#include "gns.h"
5#include "gnunet_dht_service.h"
5 6
6#define DHT_OPERATION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3) 7#define DHT_OPERATION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3)
7#define DHT_LOOKUP_TIMEOUT DHT_OPERATION_TIMEOUT 8#define DHT_LOOKUP_TIMEOUT DHT_OPERATION_TIMEOUT
@@ -185,6 +186,16 @@ struct GetNameAuthorityHandle
185 186
186}; 187};
187 188
189/**
190 * Initialize the resolver
191 *
192 * @param nh handle to the namestore
193 * @param dh handle to the dht
194 * @returns GNUNET_OK on success
195 */
196int
197gns_resolver_init(struct GNUNET_NAMESTORE_Handle *nh,
198 struct GNUNET_DHT_Handle *dh);
188 199
189/** 200/**
190 * Lookup of a record in a specific zone 201 * Lookup of a record in a specific zone