X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Ferror.h;h=851c600ca376e7f99d5e7b50be556a55d9b9edf0;hb=8782ae678cf60713b5513016f16b039251c40870;hp=dc3f3330c85d605aab311df2264bcb6912abcd61;hpb=dad41109f1726a876dd918290187d0a5296b267d;p=catta diff --git a/avahi-common/error.h b/avahi-common/error.h index dc3f333..851c600 100644 --- a/avahi-common/error.h +++ b/avahi-common/error.h @@ -26,21 +26,6 @@ #include -/** \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 @@ -74,6 +59,12 @@ enum { 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 @@ -83,7 +74,7 @@ enum { **** 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 */