summaryrefslogtreecommitdiffstats
path: root/avahi-common/error.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-10-12 02:37:08 +0000
committerLennart Poettering <lennart@poettering.net>2005-10-12 02:37:08 +0000
commitbb14e0a8aa3173c8a6d80b1a9c8b300a452ee9f1 (patch)
treed29ec90346b7523aa877207ae29e461b767460c6 /avahi-common/error.c
parent7484feb19b10878042dcb8cea618d10df5440c1c (diff)
* drop AVAHI_RESOLVER_TIMEOUT, AVAHI_RESOLVER_NOT_FOUND and AVAHI_BROWSER_NOT_FOUND, use AVAHI_xxx_FAILURE instead
* set the client/server errno variable when AVAHI_xxx_FAILURE happens * update DBUS interface accordingly, pass errno value with Failure events * Pass DNS return codes to the app by wrapping them in avahi error codes git-svn-id: file:///home/lennart/svn/public/avahi/trunk@732 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/error.c')
-rw-r--r--avahi-common/error.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/avahi-common/error.c b/avahi-common/error.c
index 76a05fd..af10422 100644
--- a/avahi-common/error.c
+++ b/avahi-common/error.c
@@ -38,6 +38,7 @@ const char *avahi_strerror(int error) {
"Resource record key is pattern",
"Local name collision",
"Invalid record",
+
"Invalid service name",
"Invalid service type",
"Invalid port number",
@@ -48,6 +49,7 @@ const char *avahi_strerror(int error) {
"Too many objects",
"Too many entries",
"OS Error",
+
"Access denied",
"Invalid operation",
"An unexpected DBUS error occured",
@@ -58,10 +60,24 @@ const char *avahi_strerror(int error) {
"Invalid interface index",
"Invalid protocol specification",
"Invalid flags",
+
"Not found",
"Invalid configuration",
"Version mismatch",
- "Invalid service subtype"
+ "Invalid service subtype",
+ "Invalid packet",
+ "Invalid DNS return code",
+ "DNS failure: FORMERR",
+ "DNS failure: SERVFAIL",
+ "DNS failure: NXDOMAIN",
+ "DNS failure: NOTIMP",
+
+ "DNS failure: REFUSED",
+ "DNS failure: YXDOMAIN",
+ "DNS failure: YXRRSET",
+ "DNS failure: NXRRSET",
+ "DNS failure: NOTAUTH",
+ "DNS failure: NOTZONE"
};
if (-error < 0 || -error >= -AVAHI_ERR_MAX)