From 7231641e5c53a9d1c255e06a7a134fa60a919f88 Mon Sep 17 00:00:00 2001 From: Trent Lloyd Date: Thu, 11 Aug 2005 07:31:07 +0000 Subject: * 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 --- avahi-common/error.c | 4 +++- avahi-common/error.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'avahi-common') 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 */ -- cgit