#include <avahi-common/cdecl.h>
-/** \mainpage
- *
- * \section Error Reporting
- *
- * Some notes on the Avahai erro handling:
- *
- * \li Error codes are negative integers and defined in the enum AVAHI_ERR_xx
- * \li If a function returns some kind of non-negative integer value on success, a failure is indicated by returning the error code directly.
- * \li If a function returns a pointer of some kind on success, a failure is indicated by returning NULL
- * \li The last error number may be retrieved by calling avahi_server_errno() (for the server API) or avahi_client_errno() (for the client API)
- * \li Just like the libc errno the Avahi errno is NOT reset to AVAHI_OK if a function call succeeds.
- * \li You may convert a numeric error code into a human readable string using avahi_strerror.c
- *
- */
-
#ifndef DOXYGEN_SHOULD_SKIP_THIS
AVAHI_C_DECL_BEGIN
#endif
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 */
+ AVAHI_ERR_VERSION_MISMATCH = -32, /**< Verson mismatch */
/****
**** 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 = -33
};
/** Return a human readable error string for the specified error code */