AVAHI_DBUS_ERR_NOT_CONNECTED,
AVAHI_DBUS_ERR_NO_MEMORY,
AVAHI_DBUS_ERR_INVALID_OBJECT,
- AVAHI_DBUS_ERR_NO_DAEMON
+ AVAHI_DBUS_ERR_NO_DAEMON,
+ AVAHI_DBUS_ERR_INVALID_INTERFACE,
+ AVAHI_DBUS_ERR_INVALID_PROTOCOL,
+ AVAHI_DBUS_ERR_INVALID_FLAGS,
+ AVAHI_DBUS_ERR_NOT_FOUND,
+ AVAHI_DBUS_ERR_INVALID_CONFIG
};
int avahi_error_dbus_to_number(const char *s) {
#define AVAHI_DBUS_ERR_NO_MEMORY "org.freedesktop.Avahi.NoMemoryError"
#define AVAHI_DBUS_ERR_INVALID_OBJECT "org.freedesktop.Avahi.InvalidObjectError"
#define AVAHI_DBUS_ERR_NO_DAEMON "org.freedesktop.Avahi.NoDaemonError"
+#define AVAHI_DBUS_ERR_INVALID_INTERFACE "org.freedesktop.Avahi.InvalidInterfaceError"
+#define AVAHI_DBUS_ERR_INVALID_PROTOCOL "org.freedesktop.Avahi.InvalidInterfaceProtocol"
+#define AVAHI_DBUS_ERR_INVALID_FLAGS "org.freedesktop.Avahi.InvalidFlags"
+#define AVAHI_DBUS_ERR_NOT_FOUND "org.freedesktop.Avahi.NotFound"
+#define AVAHI_DBUS_ERR_INVALID_CONFIG "org.freedesktop.Avahi.InvalidConfiguration"
/** Convert a DBus error string into an Avahi error number */
int avahi_error_dbus_to_number(const char *s);
USA.
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "error.h"
const char *avahi_strerror(int error) {
"Memory exhausted",
"The object passed in was not valid",
"Daemon not running",
+ "Invalid interface index",
+ "Invalid protocol specification",
+ "Invalid flags",
+ "Not found",
+ "Invalid configuration"
};
if (-error < 0 || -error >= -AVAHI_ERR_MAX)
AVAHI_ERR_NO_MEMORY = -24, /**< Memory exhausted */
AVAHI_ERR_INVALID_OBJECT = -25, /**< The object passed to this function was invalid */
AVAHI_ERR_NO_DAEMON = -26, /**< Daemon not running */
+ AVAHI_ERR_INVALID_INTERFACE = -27, /**< Invalid interface */
+ AVAHI_ERR_INVALID_PROTOCOL = -28, /**< Invalid protocol */
+ AVAHI_ERR_INVALID_FLAGS = -29, /**< Invalid flags */
+ AVAHI_ERR_NOT_FOUND = -30, /**< Not found */
+ AVAHI_ERR_INVALID_CONFIG = -31, /**< Configuration error */
/****
**** IF YOU ADD A NEW ERROR CODE HERE, PLEASE DON'T FORGET TO ADD
**** Also remember to update the MAX value below.
****/
- AVAHI_ERR_MAX = -27
+ AVAHI_ERR_MAX = -32
};
/** Return a human readable error string for the specified error code */