- * @return -1 on error else 0
- */
-int gns_resolve_name(int af,
- const char *name,
- struct userdata *userdata);
-
-#ifndef NSS_IPV6_ONLY
-/**
- * Wrapper function that uses gnunet-namecache cli tool to resolve
- * an hostnames from IPv4/6 addresses.
- *
- * @param addr the ip to resolve
- * @param u the userdata (result struct)
- * @return -1 on error else 0
+ * @return -1 on internal error,
+ * -2 if request is not for GNS,
+ * -3 on timeout,
+ * else 0