summaryrefslogtreecommitdiff
path: root/avahi-core/core.h
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-08-09 14:18:10 +0000
committerTrent Lloyd <lathiat@bur.st>2005-08-09 14:18:10 +0000
commitbeb3eff6ff01d12230e7b21d147392854a07c634 (patch)
tree402cd1b1cc146eff480074630459e4c9cb6b7f66 /avahi-core/core.h
parenta48e94008dd33abc4f4b07012155e48f977a2e45 (diff)
downloadavahi-beb3eff6ff01d12230e7b21d147392854a07c634.tar.gz
* Split out error code handling to avahi-common/error.[ch]
* Redefine states/evvents in avahi-common/defs.h not to have -1 values - Update avahi-utils/avahi/__init__.py to reflect this git-svn-id: file:///home/lennart/svn/public/avahi/trunk@283 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/core.h')
-rw-r--r--avahi-core/core.h31
1 files changed, 1 insertions, 30 deletions
diff --git a/avahi-core/core.h b/avahi-core/core.h
index 59f2852..ec0b981 100644
--- a/avahi-core/core.h
+++ b/avahi-core/core.h
@@ -56,38 +56,12 @@ AVAHI_C_DECL_END
#include <avahi-common/address.h>
#include <avahi-common/rr.h>
#include <avahi-common/alternative.h>
+#include <avahi-common/error.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
AVAHI_C_DECL_BEGIN
#endif
-/** Error codes used by avahi */
-enum {
- AVAHI_OK = 0, /**< OK */
- AVAHI_ERR_FAILURE = -1, /**< Generic error code */
- AVAHI_ERR_BAD_STATE = -2, /**< Object was in a bad state */
- AVAHI_ERR_INVALID_HOST_NAME = -3, /**< Invalid host name */
- AVAHI_ERR_INVALID_DOMAIN_NAME = -4, /**< Invalid domain name */
- AVAHI_ERR_NO_NETWORK = -5, /**< No suitable network protocol available */
- AVAHI_ERR_INVALID_TTL = -6, /**< Invalid DNS TTL */
- AVAHI_ERR_IS_PATTERN = -7, /**< RR key is pattern */
- AVAHI_ERR_LOCAL_COLLISION = -8, /**< Local name collision */
- AVAHI_ERR_INVALID_RECORD = -9, /**< Invalid RR */
- AVAHI_ERR_INVALID_SERVICE_NAME = -10, /**< Invalid service name */
- AVAHI_ERR_INVALID_SERVICE_TYPE = -11, /**< Invalid service type */
- AVAHI_ERR_INVALID_PORT = -12, /**< Invalid port number */
- AVAHI_ERR_INVALID_KEY = -13, /**< Invalid key */
- AVAHI_ERR_INVALID_ADDRESS = -14, /**< Invalid address */
- AVAHI_ERR_TIMEOUT = -15, /**< Timeout reached */
- AVAHI_ERR_TOO_MANY_CLIENTS = -16, /**< Too many clients */
- AVAHI_ERR_TOO_MANY_OBJECTS = -17, /**< Too many objects */
- AVAHI_ERR_TOO_MANY_ENTRIES = -18, /**< Too many entries */
- AVAHI_ERR_OS = -19, /**< OS error */
- AVAHI_ERR_ACCESS_DENIED = -20, /**< Access denied */
- AVAHI_ERR_INVALID_OPERATION = -21, /**< Invalid operation */
- AVAHI_ERR_MAX = -22
-};
-
/** Flags for server entries */
typedef enum {
AVAHI_ENTRY_NULL = 0, /**< No special flags */
@@ -593,9 +567,6 @@ AvahiDNSServerBrowser *avahi_dns_server_browser_new(
/** Free an AvahiDNSServerBrowser object */
void avahi_dns_server_browser_free(AvahiDNSServerBrowser *b);
-/** Return a human readable error string for the specified error code */
-const gchar *avahi_strerror(gint error);
-
/** Return the last error code */
gint avahi_server_errno(AvahiServer *s);