X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Fdbus.h;h=0164bdb776a785ed19237e0dd2abccfe70291ac3;hb=9642bac4b85de24ce62c53ad6a8e2ab4b2dd31ba;hp=3b27421136e960dad9e5129554aea701e2881759;hpb=ee4cc41fafaac0a2d76c1c791f6d43a6b6d937a7;p=catta 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 +#include 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