summaryrefslogtreecommitdiffstats
path: root/avahi-common/dbus.h
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-08-19 12:45:14 +0000
committerTrent Lloyd <lathiat@bur.st>2005-08-19 12:45:14 +0000
commit9642bac4b85de24ce62c53ad6a8e2ab4b2dd31ba (patch)
treeca85864b7dc95fec7f02f92b52679aae8dfdf848 /avahi-common/dbus.h
parent6d6776d11fdb11f94331ffe7e1060f1ac555114b (diff)
* Improve and reorganise DBus error handling, see avahi-common/dbus.h
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@354 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/dbus.h')
-rw-r--r--avahi-common/dbus.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/avahi-common/dbus.h b/avahi-common/dbus.h
index 3b27421..0164bdb 100644
--- a/avahi-common/dbus.h
+++ b/avahi-common/dbus.h
@@ -25,6 +25,7 @@
/** \file dbus.h Some definitions for the DBUS interface */
#include <avahi-common/cdecl.h>
+#include <dbus/dbus.h>
AVAHI_C_DECL_BEGIN
@@ -63,6 +64,13 @@ AVAHI_C_DECL_BEGIN
#define AVAHI_DBUS_ERR_INVALID_OBJECT "org.freedesktop.Avahi.InvalidObjectError"
#define AVAHI_DBUS_ERR_NO_DAEMON "org.freedesktop.Avahi.NoDaemonError"
+
+/** Convert a DBus error string into an Avahi error number */
+int avahi_error_dbus_to_number (const char *s);
+
+/** Convert an Avahi error number into a DBus error string. Result should not be freed */
+const char * avahi_error_number_to_dbus (int error);
+
AVAHI_C_DECL_END
#endif