aboutsummaryrefslogtreecommitdiff
path: root/src/gns/nss/nss_gns_query.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/nss/nss_gns_query.h')
-rw-r--r--src/gns/nss/nss_gns_query.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gns/nss/nss_gns_query.h b/src/gns/nss/nss_gns_query.h
index 65b0311fe..95c0d2f29 100644
--- a/src/gns/nss/nss_gns_query.h
+++ b/src/gns/nss/nss_gns_query.h
@@ -60,4 +60,32 @@ int gns_resolve_name(int af,
60 const char *name, 60 const char *name,
61 struct userdata *userdata); 61 struct userdata *userdata);
62 62
63#ifndef NSS_IPV6_ONLY
64/**
65 * Wrapper function that uses gnunet-namecache cli tool to resolve
66 * an hostnames from IPv4/6 addresses.
67 *
68 * @param addr the ip to resolve
69 * @param u the userdata (result struct)
70 * @return -1 on error else 0
71 */
72int
73namecache_resolve_ip4 (const ipv4_address_t* addr,
74 struct userdata *u);
75#endif
76
77#ifndef NSS_IPV4_ONLY
78/**
79 * Wrapper function that uses gnunet-namecache cli tool to resolve
80 * an hostnames from IPv4/6 addresses.
81 *
82 * @param addr the ip to resolve
83 * @param u the userdata (result struct)
84 * @return -1 on error else 0
85 */
86int
87namecache_resolve_ip6 (const ipv6_address_t* addr,
88 struct userdata *u);
89#endif
90
63#endif 91#endif