summaryrefslogtreecommitdiffstats
path: root/avahi-common/dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-10-27 19:11:34 +0000
committerLennart Poettering <lennart@poettering.net>2005-10-27 19:11:34 +0000
commitf6712902a92eb82b6c8d7e7fd0980a20a716fa0d (patch)
tree039df978bd7ea226c54fdce3aa6b17ee5728d492 /avahi-common/dbus.c
parenta950fddba0cc84e64bc72eb621429ba05540e98e (diff)
* format unknown DNS records according to RFC3597
* add some DNS class and type validity checks to avahi_server_add() * move DNS type and class definitions to avahi-common/defs.h git-svn-id: file:///home/lennart/svn/public/avahi/trunk@896 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/dbus.c')
-rw-r--r--avahi-common/dbus.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/avahi-common/dbus.c b/avahi-common/dbus.c
index d8a6f48..cebf56d 100644
--- a/avahi-common/dbus.c
+++ b/avahi-common/dbus.c
@@ -41,6 +41,7 @@ static const char * const table[- AVAHI_ERR_MAX] = {
AVAHI_DBUS_ERR_IS_PATTERN,
AVAHI_DBUS_ERR_COLLISION,
AVAHI_DBUS_ERR_INVALID_RECORD,
+
AVAHI_DBUS_ERR_INVALID_SERVICE_NAME,
AVAHI_DBUS_ERR_INVALID_SERVICE_TYPE,
AVAHI_DBUS_ERR_INVALID_PORT,
@@ -51,6 +52,7 @@ static const char * const table[- AVAHI_ERR_MAX] = {
AVAHI_DBUS_ERR_TOO_MANY_OBJECTS,
AVAHI_DBUS_ERR_TOO_MANY_ENTRIES,
AVAHI_DBUS_ERR_OS,
+
AVAHI_DBUS_ERR_ACCESS_DENIED,
AVAHI_DBUS_ERR_INVALID_OPERATION,
AVAHI_DBUS_ERR_DBUS_ERROR,
@@ -61,6 +63,7 @@ static const char * const table[- AVAHI_ERR_MAX] = {
AVAHI_DBUS_ERR_INVALID_INTERFACE,
AVAHI_DBUS_ERR_INVALID_PROTOCOL,
AVAHI_DBUS_ERR_INVALID_FLAGS,
+
AVAHI_DBUS_ERR_NOT_FOUND,
AVAHI_DBUS_ERR_INVALID_CONFIG,
AVAHI_DBUS_ERR_VERSION_MISMATCH,
@@ -71,13 +74,16 @@ static const char * const table[- AVAHI_ERR_MAX] = {
AVAHI_DBUS_ERR_DNS_SERVFAIL,
AVAHI_DBUS_ERR_DNS_NXDOMAIN,
AVAHI_DBUS_ERR_DNS_NOTIMP,
+
AVAHI_DBUS_ERR_DNS_REFUSED,
AVAHI_DBUS_ERR_DNS_YXDOMAIN,
AVAHI_DBUS_ERR_DNS_YXRRSET,
AVAHI_DBUS_ERR_DNS_NXRRSET,
AVAHI_DBUS_ERR_DNS_NOTAUTH,
AVAHI_DBUS_ERR_DNS_NOTZONE,
- AVAHI_DBUS_ERR_INVALID_RDATA
+ AVAHI_DBUS_ERR_INVALID_RDATA,
+ AVAHI_DBUS_ERR_INVALID_DNS_CLASS,
+ AVAHI_DBUS_ERR_INVALID_DNS_TYPE
};
int avahi_error_dbus_to_number(const char *s) {