-ensure external symbols have proper prefix for conversation service
[oweals/gnunet.git] / src / gns / gnunet-service-gns_resolver.h
index bc83b6b3d1383c1569426c76d45385e11de6433b..84d4c2bd7d82c93277a1fe06125f5d1c931d8be4 100644 (file)
  * @param dht handle to the dht
  * @param c configuration handle
  * @param max_bg_queries maximum amount of background queries
- * @param ignore_pending ignore records that still require user confirmation
- *        on lookup
- * @returns GNUNET_OK on success
  */
-int
+void
 GNS_resolver_init (struct GNUNET_NAMESTORE_Handle *nh,
                   struct GNUNET_DHT_Handle *dht,
                   const struct GNUNET_CONFIGURATION_Handle *c,
-                  unsigned long long max_bg_queries,
-                  int ignore_pending);
+                  unsigned long long max_bg_queries);
 
 
 /**
@@ -84,9 +80,10 @@ typedef void (*GNS_ResultProcessor)(void *cls,
  * @param only_cached GNUNET_NO to only check locally not DHT for performance
  * @param proc the processor to call
  * @param proc_cls the closure to pass to @a proc
+ * @return handle to cancel operation
  */
 struct GNS_ResolverHandle *
-GNS_resolver_lookup (const struct GNUNET_CRYPTO_EccPublicKey *zone,
+GNS_resolver_lookup (const struct GNUNET_CRYPTO_EccPublicSignKey *zone,
                     uint32_t record_type,
                     const char *name,
                     const struct GNUNET_CRYPTO_EccPrivateKey *shorten_key,
@@ -98,11 +95,10 @@ GNS_resolver_lookup (const struct GNUNET_CRYPTO_EccPublicKey *zone,
 /**
  * Cancel active resolution (i.e. client disconnected).
  *
- * @param h resolution to abort
+ * @param rh resolution to abort
  */
 void
-GNS_resolver_lookup_cancel (struct GNS_ResolverHandle *h);
-
+GNS_resolver_lookup_cancel (struct GNS_ResolverHandle *rh);
 
 
 
@@ -123,7 +119,7 @@ is_tld (const char *name,
 /**
  * Checks for gnu/zkey
  */
-#define is_gads_tld(name) is_tld(name, GNUNET_GNS_TLD)
+#define is_gnu_tld(name) is_tld(name, GNUNET_GNS_TLD)
 #define is_zkey_tld(name) is_tld(name, GNUNET_GNS_TLD_ZKEY)