summaryrefslogtreecommitdiffstats
path: root/avahi-common/address.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-10-23 20:21:39 +0000
committerLennart Poettering <lennart@poettering.net>2005-10-23 20:21:39 +0000
commite865e3dba3c6ee5de5581dbfbafc025aa5c9947e (patch)
tree7630d4d1b2f9982d1c5df4dad767ea7511ad33ee /avahi-common/address.h
parent0d0c9486e3fe26fdd67624ee57961ba2d5846ebb (diff)
* correctly handle empty domain names (i.e. the root zone)
* fix memory initialization error in wide-area.c * make server_add_xx() functions atomic, i.e. clean up half-created entries on failure * add some more validity checking macros and change everything to make use of them * clean up avahi_server_add_address() * change some functions from domain.[ch] to work on a stack buffer instead of malloced memory * update avahi-test.c a little * replace avahi_reverse_lookup_name_{ipv4,ipv6}() with a single function avahi_reverse_lookup_name() * remove avahi_server_add_dns_server_name() from public API git-svn-id: file:///home/lennart/svn/public/avahi/trunk@845 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/address.h')
-rw-r--r--avahi-common/address.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/avahi-common/address.h b/avahi-common/address.h
index f1ac428..c383250 100644
--- a/avahi-common/address.h
+++ b/avahi-common/address.h
@@ -102,11 +102,8 @@ AvahiAddress *avahi_address_from_sockaddr(const struct sockaddr* sa, AvahiAddres
/** Return the port number of a sockaddr structure (either IPv4 or IPv6) */
uint16_t avahi_port_from_sockaddr(const struct sockaddr* sa);
-/** Generate the DNS reverse lookup name for an IPv4 address. avahi_free() the result! */
-char* avahi_reverse_lookup_name_ipv4(const AvahiIPv4Address *a);
-
-/** Generate the modern DNS reverse lookup name for an IPv6 address, ending in ipv6.arpa. avahi_free() the result! */
-char* avahi_reverse_lookup_name_ipv6(const AvahiIPv6Address *a);
+/** Generate the DNS reverse lookup name for an IPv4 or IPv6 address. */
+char* avahi_reverse_lookup_name(char *ret_s, size_t length, const AvahiAddress *a);
/** Check whether the specified IPv6 address is in fact an
* encapsulated IPv4 address, returns 1 if yes, 0 otherwise */