summaryrefslogtreecommitdiffstats
path: root/avahi-common
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-10-26 01:34:48 +0000
committerLennart Poettering <lennart@poettering.net>2005-10-26 01:34:48 +0000
commit182da3ab7be8f813a09f1807c1c76747eff02af6 (patch)
tree78290574d9052dd1778b5244fd77350a991ab259 /avahi-common
parent8e1c41a6b493a4180fcad14ab885f40d88cf207f (diff)
reorder arguments of avahi_reverse_lookup_name() to make them more natural
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@874 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common')
-rw-r--r--avahi-common/address.c2
-rw-r--r--avahi-common/address.h2
-rw-r--r--avahi-common/alternative.h6
3 files changed, 5 insertions, 5 deletions
diff --git a/avahi-common/address.c b/avahi-common/address.c
index 56b4058..640aa06 100644
--- a/avahi-common/address.c
+++ b/avahi-common/address.c
@@ -66,7 +66,7 @@ char *avahi_address_snprint(char *s, size_t length, const AvahiAddress *a) {
return s;
}
-char* avahi_reverse_lookup_name(char *ret_s, size_t length, const AvahiAddress *a) {
+char* avahi_reverse_lookup_name(const AvahiAddress *a, char *ret_s, size_t length) {
assert(ret_s);
assert(length > 0);
assert(a);
diff --git a/avahi-common/address.h b/avahi-common/address.h
index 53f8d06..6315d31 100644
--- a/avahi-common/address.h
+++ b/avahi-common/address.h
@@ -91,7 +91,7 @@ char *avahi_address_snprint(char *ret_s, size_t length, const AvahiAddress *a);
AvahiAddress *avahi_address_parse(const char *s, AvahiProtocol af, AvahiAddress *ret_addr);
/** 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);
+char* avahi_reverse_lookup_name(const AvahiAddress *a, char *ret_s, size_t length);
/** Map AVAHI_PROTO_xxx constants to Unix AF_xxx constants */
int avahi_proto_to_af(AvahiProtocol proto);
diff --git a/avahi-common/alternative.h b/avahi-common/alternative.h
index 4f0e58b..d171540 100644
--- a/avahi-common/alternative.h
+++ b/avahi-common/alternative.h
@@ -35,9 +35,9 @@ AVAHI_C_DECL_BEGIN
char *avahi_alternative_host_name(const char *s);
/** Find an alternative for the specified service name. If called with
- an original service name, " #2" is appended. Afterwards the number
- is increased on each call (i.e. "foo" becomes "foo #2" becomes
- "foo #3" and so on.) avahi_free() the result. */
+ * an original service name, " #2" is appended. Afterwards the number
+ * is increased on each call (i.e. "foo" becomes "foo #2" becomes "foo
+ * #3" and so on.) avahi_free() the result. */
char *avahi_alternative_service_name(const char *s);
AVAHI_C_DECL_END