add logic to handle SRV/DANE names (#3003 and 2526) in GNS resolver
[oweals/gnunet.git] / src / gns / gnunet-service-gns_shorten.h
index 5f583eeb55c321073e1b57feae70eecf73176254..1e55a89d709071525d59ed85cdc16a9653769c46 100644 (file)
@@ -26,6 +26,7 @@
 #define GNS_SHORTEN_H
 #include "gns.h"
 #include "gnunet_dht_service.h"
+#include "gnunet_namecache_service.h"
 #include "gnunet_namestore_service.h"
 
 
  * MUST be called before #GNS_shorten_start.
  *
  * @param nh handle to the namestore
+ * @param nc the namecache handle
  * @param dht handle to the dht
  */
 void
 GNS_shorten_init (struct GNUNET_NAMESTORE_Handle *nh,
+                  struct GNUNET_NAMECACHE_Handle *nc,
                  struct GNUNET_DHT_Handle *dht);
 
 
@@ -59,8 +62,9 @@ GNS_shorten_done (void);
  */
 void
 GNS_shorten_start (const char *original_label,
-                  const struct GNUNET_CRYPTO_EcdsaPublicKey *pub,
-                  const struct GNUNET_CRYPTO_EcdsaPrivateKey *shorten_zone);
+                   const char *suggested_label,
+                   const struct GNUNET_CRYPTO_EcdsaPublicKey *pub,
+                   const struct GNUNET_CRYPTO_EcdsaPrivateKey *shorten_zone);
 
 
 #endif