avahi  0.6.31
error.h File Reference

Error codes and auxiliary functions. More...

#include <avahi-common/cdecl.h>

Go to the source code of this file.

Enumerations

enum  {
  AVAHI_OK = 0,
  AVAHI_ERR_FAILURE = -1,
  AVAHI_ERR_BAD_STATE = -2,
  AVAHI_ERR_INVALID_HOST_NAME = -3,
  AVAHI_ERR_INVALID_DOMAIN_NAME = -4,
  AVAHI_ERR_NO_NETWORK = -5,
  AVAHI_ERR_INVALID_TTL = -6,
  AVAHI_ERR_IS_PATTERN = -7,
  AVAHI_ERR_COLLISION = -8,
  AVAHI_ERR_INVALID_RECORD = -9,
  AVAHI_ERR_INVALID_SERVICE_NAME = -10,
  AVAHI_ERR_INVALID_SERVICE_TYPE = -11,
  AVAHI_ERR_INVALID_PORT = -12,
  AVAHI_ERR_INVALID_KEY = -13,
  AVAHI_ERR_INVALID_ADDRESS = -14,
  AVAHI_ERR_TIMEOUT = -15,
  AVAHI_ERR_TOO_MANY_CLIENTS = -16,
  AVAHI_ERR_TOO_MANY_OBJECTS = -17,
  AVAHI_ERR_TOO_MANY_ENTRIES = -18,
  AVAHI_ERR_OS = -19,
  AVAHI_ERR_ACCESS_DENIED = -20,
  AVAHI_ERR_INVALID_OPERATION = -21,
  AVAHI_ERR_DBUS_ERROR = -22,
  AVAHI_ERR_DISCONNECTED = -23,
  AVAHI_ERR_NO_MEMORY = -24,
  AVAHI_ERR_INVALID_OBJECT = -25,
  AVAHI_ERR_NO_DAEMON = -26,
  AVAHI_ERR_INVALID_INTERFACE = -27,
  AVAHI_ERR_INVALID_PROTOCOL = -28,
  AVAHI_ERR_INVALID_FLAGS = -29,
  AVAHI_ERR_NOT_FOUND = -30,
  AVAHI_ERR_INVALID_CONFIG = -31,
  AVAHI_ERR_VERSION_MISMATCH = -32,
  AVAHI_ERR_INVALID_SERVICE_SUBTYPE = -33,
  AVAHI_ERR_INVALID_PACKET = -34,
  AVAHI_ERR_INVALID_DNS_ERROR = -35,
  AVAHI_ERR_DNS_FORMERR = -36,
  AVAHI_ERR_DNS_SERVFAIL = -37,
  AVAHI_ERR_DNS_NXDOMAIN = -38,
  AVAHI_ERR_DNS_NOTIMP = -39,
  AVAHI_ERR_DNS_REFUSED = -40,
  AVAHI_ERR_DNS_YXDOMAIN = -41,
  AVAHI_ERR_DNS_YXRRSET = -42,
  AVAHI_ERR_DNS_NXRRSET = -43,
  AVAHI_ERR_DNS_NOTAUTH = -44,
  AVAHI_ERR_DNS_NOTZONE = -45,
  AVAHI_ERR_INVALID_RDATA = -46,
  AVAHI_ERR_INVALID_DNS_CLASS = -47,
  AVAHI_ERR_INVALID_DNS_TYPE = -48,
  AVAHI_ERR_NOT_SUPPORTED = -49,
  AVAHI_ERR_NOT_PERMITTED = -50,
  AVAHI_ERR_INVALID_ARGUMENT = -51,
  AVAHI_ERR_IS_EMPTY = -52,
  AVAHI_ERR_NO_CHANGE = -53,
  AVAHI_ERR_MAX = -54
}
 Error codes used by avahi. More...
 

Functions

const char * avahi_strerror (int error)
 Return a human readable error string for the specified error code. More...
 

Detailed Description

Error codes and auxiliary functions.

Definition in file error.h.

Enumeration Type Documentation

anonymous enum

Error codes used by avahi.

Enumerator
AVAHI_OK 

OK.

AVAHI_ERR_FAILURE 

Generic error code.

AVAHI_ERR_BAD_STATE 

Object was in a bad state.

AVAHI_ERR_INVALID_HOST_NAME 

Invalid host name.

AVAHI_ERR_INVALID_DOMAIN_NAME 

Invalid domain name.

AVAHI_ERR_NO_NETWORK 

No suitable network protocol available.

AVAHI_ERR_INVALID_TTL 

Invalid DNS TTL.

AVAHI_ERR_IS_PATTERN 

RR key is pattern.

AVAHI_ERR_COLLISION 

Name collision.

AVAHI_ERR_INVALID_RECORD 

Invalid RR.

AVAHI_ERR_INVALID_SERVICE_NAME 

Invalid service name.

AVAHI_ERR_INVALID_SERVICE_TYPE 

Invalid service type.

AVAHI_ERR_INVALID_PORT 

Invalid port number.

AVAHI_ERR_INVALID_KEY 

Invalid key.

AVAHI_ERR_INVALID_ADDRESS 

Invalid address.

AVAHI_ERR_TIMEOUT 

Timeout reached.

AVAHI_ERR_TOO_MANY_CLIENTS 

Too many clients.

AVAHI_ERR_TOO_MANY_OBJECTS 

Too many objects.

AVAHI_ERR_TOO_MANY_ENTRIES 

Too many entries.

AVAHI_ERR_OS 

OS error.

AVAHI_ERR_ACCESS_DENIED 

Access denied.

AVAHI_ERR_INVALID_OPERATION 

Invalid operation.

AVAHI_ERR_DBUS_ERROR 

An unexpected D-Bus error occurred.

AVAHI_ERR_DISCONNECTED 

Daemon connection failed.

AVAHI_ERR_NO_MEMORY 

Memory exhausted.

AVAHI_ERR_INVALID_OBJECT 

The object passed to this function was invalid.

AVAHI_ERR_NO_DAEMON 

Daemon not running.

AVAHI_ERR_INVALID_INTERFACE 

Invalid interface.

AVAHI_ERR_INVALID_PROTOCOL 

Invalid protocol.

AVAHI_ERR_INVALID_FLAGS 

Invalid flags.

AVAHI_ERR_NOT_FOUND 

Not found.

AVAHI_ERR_INVALID_CONFIG 

Configuration error.

AVAHI_ERR_VERSION_MISMATCH 

Verson mismatch.

AVAHI_ERR_INVALID_SERVICE_SUBTYPE 

Invalid service subtype.

AVAHI_ERR_INVALID_PACKET 

Invalid packet.

AVAHI_ERR_INVALID_DNS_ERROR 

Invlaid DNS return code.

AVAHI_ERR_DNS_FORMERR 

DNS Error: Form error.

AVAHI_ERR_DNS_SERVFAIL 

DNS Error: Server Failure.

AVAHI_ERR_DNS_NXDOMAIN 

DNS Error: No such domain.

AVAHI_ERR_DNS_NOTIMP 

DNS Error: Not implemented.

AVAHI_ERR_DNS_REFUSED 

DNS Error: Operation refused.

AVAHI_ERR_DNS_YXDOMAIN 
AVAHI_ERR_DNS_YXRRSET 
AVAHI_ERR_DNS_NXRRSET 
AVAHI_ERR_DNS_NOTAUTH 

DNS Error: Not authorized.

AVAHI_ERR_DNS_NOTZONE 
AVAHI_ERR_INVALID_RDATA 

Invalid RDATA.

AVAHI_ERR_INVALID_DNS_CLASS 

Invalid DNS class.

AVAHI_ERR_INVALID_DNS_TYPE 

Invalid DNS type.

AVAHI_ERR_NOT_SUPPORTED 

Not supported.

AVAHI_ERR_NOT_PERMITTED 

Operation not permitted.

AVAHI_ERR_INVALID_ARGUMENT 

Invalid argument.

AVAHI_ERR_IS_EMPTY 

Is empty.

AVAHI_ERR_NO_CHANGE 

The requested operation is invalid because it is redundant.

AVAHI_ERR_MAX 

Definition at line 30 of file error.h.

Function Documentation

const char* avahi_strerror ( int  error)

Return a human readable error string for the specified error code.

Examples:
client-browse-services.c, client-publish-service.c, and glib-integration.c.