|
avahi 0.6.30
|
00001 #ifndef fooerrorhfoo 00002 #define fooerrorhfoo 00003 00004 /*** 00005 This file is part of avahi. 00006 00007 avahi is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU Lesser General Public License as 00009 published by the Free Software Foundation; either version 2.1 of the 00010 License, or (at your option) any later version. 00011 00012 avahi is distributed in the hope that it will be useful, but WITHOUT 00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00014 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General 00015 Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public 00018 License along with avahi; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00020 USA. 00021 ***/ 00022 00025 #include <avahi-common/cdecl.h> 00026 00027 AVAHI_C_DECL_BEGIN 00028 00030 enum { 00031 AVAHI_OK = 0, 00032 AVAHI_ERR_FAILURE = -1, 00033 AVAHI_ERR_BAD_STATE = -2, 00034 AVAHI_ERR_INVALID_HOST_NAME = -3, 00035 AVAHI_ERR_INVALID_DOMAIN_NAME = -4, 00036 AVAHI_ERR_NO_NETWORK = -5, 00037 AVAHI_ERR_INVALID_TTL = -6, 00038 AVAHI_ERR_IS_PATTERN = -7, 00039 AVAHI_ERR_COLLISION = -8, 00040 AVAHI_ERR_INVALID_RECORD = -9, 00042 AVAHI_ERR_INVALID_SERVICE_NAME = -10, 00043 AVAHI_ERR_INVALID_SERVICE_TYPE = -11, 00044 AVAHI_ERR_INVALID_PORT = -12, 00045 AVAHI_ERR_INVALID_KEY = -13, 00046 AVAHI_ERR_INVALID_ADDRESS = -14, 00047 AVAHI_ERR_TIMEOUT = -15, 00048 AVAHI_ERR_TOO_MANY_CLIENTS = -16, 00049 AVAHI_ERR_TOO_MANY_OBJECTS = -17, 00050 AVAHI_ERR_TOO_MANY_ENTRIES = -18, 00051 AVAHI_ERR_OS = -19, 00053 AVAHI_ERR_ACCESS_DENIED = -20, 00054 AVAHI_ERR_INVALID_OPERATION = -21, 00055 AVAHI_ERR_DBUS_ERROR = -22, 00056 AVAHI_ERR_DISCONNECTED = -23, 00057 AVAHI_ERR_NO_MEMORY = -24, 00058 AVAHI_ERR_INVALID_OBJECT = -25, 00059 AVAHI_ERR_NO_DAEMON = -26, 00060 AVAHI_ERR_INVALID_INTERFACE = -27, 00061 AVAHI_ERR_INVALID_PROTOCOL = -28, 00062 AVAHI_ERR_INVALID_FLAGS = -29, 00064 AVAHI_ERR_NOT_FOUND = -30, 00065 AVAHI_ERR_INVALID_CONFIG = -31, 00066 AVAHI_ERR_VERSION_MISMATCH = -32, 00067 AVAHI_ERR_INVALID_SERVICE_SUBTYPE = -33, 00068 AVAHI_ERR_INVALID_PACKET = -34, 00069 AVAHI_ERR_INVALID_DNS_ERROR = -35, 00070 AVAHI_ERR_DNS_FORMERR = -36, 00071 AVAHI_ERR_DNS_SERVFAIL = -37, 00072 AVAHI_ERR_DNS_NXDOMAIN = -38, 00073 AVAHI_ERR_DNS_NOTIMP = -39, 00075 AVAHI_ERR_DNS_REFUSED = -40, 00076 AVAHI_ERR_DNS_YXDOMAIN = -41, 00077 AVAHI_ERR_DNS_YXRRSET = -42, 00078 AVAHI_ERR_DNS_NXRRSET = -43, 00079 AVAHI_ERR_DNS_NOTAUTH = -44, 00080 AVAHI_ERR_DNS_NOTZONE = -45, 00081 AVAHI_ERR_INVALID_RDATA = -46, 00082 AVAHI_ERR_INVALID_DNS_CLASS = -47, 00083 AVAHI_ERR_INVALID_DNS_TYPE = -48, 00084 AVAHI_ERR_NOT_SUPPORTED = -49, 00086 AVAHI_ERR_NOT_PERMITTED = -50, 00087 AVAHI_ERR_INVALID_ARGUMENT = -51, 00088 AVAHI_ERR_IS_EMPTY = -52, 00089 AVAHI_ERR_NO_CHANGE = -53, 00091 /**** 00092 **** IF YOU ADD A NEW ERROR CODE HERE, PLEASE DON'T FORGET TO ADD 00093 **** IT TO THE STRING ARRAY IN avahi_strerror() IN error.c AND 00094 **** TO THE ARRAY IN dbus.c AND FINALLY TO dbus.h! 00095 **** 00096 **** Also remember to update the MAX value below. 00097 ****/ 00098 00099 AVAHI_ERR_MAX = -54 00100 }; 00101 00103 const char *avahi_strerror(int error); 00104 00105 AVAHI_C_DECL_END 00106 00107 #endif