From 1a04f21bca1c5410019b29c2b7305796ecb5a8b8 Mon Sep 17 00:00:00 2001 From: Trent Lloyd Date: Thu, 27 Oct 2005 17:49:41 +0000 Subject: * avahi-daemon: Implement EntryGroup::AddRecord for arbitrary record additions * avahi-client: Wrap AddRecord, add simple test to client-test git-svn-id: file:///home/lennart/svn/public/avahi/trunk@890 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-common/dbus.c | 1 + avahi-common/dbus.h | 1 + avahi-common/error.c | 4 +++- avahi-common/error.h | 4 +++- 4 files changed, 8 insertions(+), 2 deletions(-) (limited to 'avahi-common') diff --git a/avahi-common/dbus.c b/avahi-common/dbus.c index 058b819..d8a6f48 100644 --- a/avahi-common/dbus.c +++ b/avahi-common/dbus.c @@ -77,6 +77,7 @@ static const char * const table[- AVAHI_ERR_MAX] = { AVAHI_DBUS_ERR_DNS_NXRRSET, AVAHI_DBUS_ERR_DNS_NOTAUTH, AVAHI_DBUS_ERR_DNS_NOTZONE, + AVAHI_DBUS_ERR_INVALID_RDATA }; int avahi_error_dbus_to_number(const char *s) { diff --git a/avahi-common/dbus.h b/avahi-common/dbus.h index 56f9d91..16582d0 100644 --- a/avahi-common/dbus.h +++ b/avahi-common/dbus.h @@ -86,6 +86,7 @@ AVAHI_C_DECL_BEGIN #define AVAHI_DBUS_ERR_DNS_NXRRSET "org.freedesktop.Avahi.DNSNXRRSET" #define AVAHI_DBUS_ERR_DNS_NOTAUTH "org.freedesktop.Avahi.DNSNOTAUTH" #define AVAHI_DBUS_ERR_DNS_NOTZONE "org.freedesktop.Avahi.DNSNOTZONE" +#define AVAHI_DBUS_ERR_INVALID_RDATA "org.freedesktop.Avahi.InvalidRDATA" /** Convert a DBus error string into an Avahi error number */ int avahi_error_dbus_to_number(const char *s); diff --git a/avahi-common/error.c b/avahi-common/error.c index af10422..f2216b4 100644 --- a/avahi-common/error.c +++ b/avahi-common/error.c @@ -77,7 +77,9 @@ const char *avahi_strerror(int error) { "DNS failure: YXRRSET", "DNS failure: NXRRSET", "DNS failure: NOTAUTH", - "DNS failure: NOTZONE" + "DNS failure: NOTZONE", + + "Invalid RDATA" }; if (-error < 0 || -error >= -AVAHI_ERR_MAX) diff --git a/avahi-common/error.h b/avahi-common/error.h index a7c97a7..f1a019d 100644 --- a/avahi-common/error.h +++ b/avahi-common/error.h @@ -80,6 +80,8 @@ enum { AVAHI_ERR_DNS_NXRRSET = -43, AVAHI_ERR_DNS_NOTAUTH = -44, AVAHI_ERR_DNS_NOTZONE = -45, + + AVAHI_ERR_INVALID_RDATA = -46, /**** **** IF YOU ADD A NEW ERROR CODE HERE, PLEASE DON'T FORGET TO ADD @@ -89,7 +91,7 @@ enum { **** Also remember to update the MAX value below. ****/ - AVAHI_ERR_MAX = -46 + AVAHI_ERR_MAX = -47 }; /** Return a human readable error string for the specified error code */ -- cgit