summaryrefslogtreecommitdiffstats
path: root/avahi-common
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-08-11 07:31:07 +0000
committerTrent Lloyd <lathiat@bur.st>2005-08-11 07:31:07 +0000
commit7231641e5c53a9d1c255e06a7a134fa60a919f88 (patch)
treeaed7db1bde5e7036c8f3ab224ce70cd5157d703d /avahi-common
parent8d8721a8d112e7aaf78cea118a9699b7bf9c28b6 (diff)
* Work on avahi-client
- Support for connecting and registering services works - Needs some more error handling (DBus Errors from the daemon) - Needs browser support yet * Fix avahi-utils to pass make dist-check * Add new error codes git-svn-id: file:///home/lennart/svn/public/avahi/trunk@288 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common')
-rw-r--r--avahi-common/error.c4
-rw-r--r--avahi-common/error.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/avahi-common/error.c b/avahi-common/error.c
index 8e29634..3dca208 100644
--- a/avahi-common/error.c
+++ b/avahi-common/error.c
@@ -45,7 +45,9 @@ const char *avahi_strerror(int error) {
"Too many entries",
"OS Error",
"Access denied",
- "Invalid operation"
+ "Invalid operation",
+ "An unexpected DBUS error occured",
+ "Could not get a connection to the daemon"
};
if (-error < 0 || -error >= -AVAHI_ERR_MAX)
diff --git a/avahi-common/error.h b/avahi-common/error.h
index ed7ced9..27256e6 100644
--- a/avahi-common/error.h
+++ b/avahi-common/error.h
@@ -46,7 +46,9 @@ enum {
AVAHI_ERR_OS = -19, /**< OS error */
AVAHI_ERR_ACCESS_DENIED = -20, /**< Access denied */
AVAHI_ERR_INVALID_OPERATION = -21, /**< Invalid operation */
- AVAHI_ERR_MAX = -22
+ AVAHI_ERR_DBUS_ERROR = -22, /**< An unexpected DBUS error occured */
+ AVAHI_ERR_NOT_CONNECTED = -23, /**< Could not get a connection to the daemon */
+ AVAHI_ERR_MAX = -24
};
/** Return a human readable error string for the specified error code */