summaryrefslogtreecommitdiffstats
path: root/avahi-common
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-10-27 17:49:41 +0000
committerTrent Lloyd <lathiat@bur.st>2005-10-27 17:49:41 +0000
commit1a04f21bca1c5410019b29c2b7305796ecb5a8b8 (patch)
tree3aea580df7a3251834c5c27f2b51c94bdeaf5319 /avahi-common
parent6e6fde9ac338d241488f3981a76dfc85ddec12d6 (diff)
* 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
Diffstat (limited to 'avahi-common')
-rw-r--r--avahi-common/dbus.c1
-rw-r--r--avahi-common/dbus.h1
-rw-r--r--avahi-common/error.c4
-rw-r--r--avahi-common/error.h4
4 files changed, 8 insertions, 2 deletions
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 */