Annotation of embedaddon/dhcp/includes/isc-dhcp/result.h, revision 1.1
1.1 ! misho 1: /*
! 2: * Copyright (c) 2004,2009 by Internet Systems Consortium, Inc. ("ISC")
! 3: * Copyright (c) 1998-2003 by Internet Software Consortium
! 4: *
! 5: * Permission to use, copy, modify, and distribute this software for any
! 6: * purpose with or without fee is hereby granted, provided that the above
! 7: * copyright notice and this permission notice appear in all copies.
! 8: *
! 9: * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
! 10: * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
! 11: * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
! 12: * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
! 13: * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
! 14: * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
! 15: * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
! 16: *
! 17: * Internet Systems Consortium, Inc.
! 18: * 950 Charter Street
! 19: * Redwood City, CA 94063
! 20: * <info@isc.org>
! 21: * https://www.isc.org/
! 22: */
! 23:
! 24: #ifndef ISC_RESULT_H
! 25: #define ISC_RESULT_H 1
! 26:
! 27: #include <isc-dhcp/boolean.h>
! 28: #include <isc-dhcp/lang.h>
! 29: #include <isc-dhcp/list.h>
! 30: #include <isc-dhcp/types.h>
! 31:
! 32: ISC_LANG_BEGINDECLS
! 33:
! 34: typedef enum {
! 35: ISC_R_SUCCESS = 0,
! 36: ISC_R_NOMEMORY = 1,
! 37: ISC_R_TIMEDOUT = 2,
! 38: ISC_R_NOTHREADS = 3,
! 39: ISC_R_ADDRNOTAVAIL = 4,
! 40: ISC_R_ADDRINUSE = 5,
! 41: ISC_R_NOPERM = 6,
! 42: ISC_R_NOCONN = 7,
! 43: ISC_R_NETUNREACH = 8,
! 44: ISC_R_HOSTUNREACH = 9,
! 45: ISC_R_NETDOWN = 10,
! 46: ISC_R_HOSTDOWN = 11,
! 47: ISC_R_CONNREFUSED = 12,
! 48: ISC_R_NORESOURCES = 13,
! 49: ISC_R_EOF = 14,
! 50: ISC_R_BOUND = 15,
! 51: ISC_R_TASKDONE = 16,
! 52: ISC_R_LOCKBUSY = 17,
! 53: ISC_R_EXISTS = 18,
! 54: ISC_R_NOSPACE = 19,
! 55: ISC_R_CANCELED = 20,
! 56: ISC_R_TASKNOSEND = 21,
! 57: ISC_R_SHUTTINGDOWN = 22,
! 58: ISC_R_NOTFOUND = 23,
! 59: ISC_R_UNEXPECTEDEND = 24,
! 60: ISC_R_FAILURE = 25,
! 61: ISC_R_IOERROR = 26,
! 62: ISC_R_NOTIMPLEMENTED = 27,
! 63: ISC_R_UNBALANCED = 28,
! 64: ISC_R_NOMORE = 29,
! 65: ISC_R_INVALIDFILE = 30,
! 66: ISC_R_BADBASE64 = 31,
! 67: ISC_R_UNEXPECTEDTOKEN = 32,
! 68: ISC_R_QUOTA = 33,
! 69: ISC_R_UNEXPECTED = 34,
! 70: ISC_R_ALREADYRUNNING = 35,
! 71: ISC_R_HOSTUNKNOWN = 36,
! 72: ISC_R_VERSIONMISMATCH = 37,
! 73: ISC_R_PROTOCOLERROR = 38,
! 74: ISC_R_INVALIDARG = 39,
! 75: ISC_R_NOTCONNECTED = 40,
! 76: ISC_R_NOTYET = 41,
! 77: ISC_R_UNCHANGED = 42,
! 78: ISC_R_MULTIPLE = 43,
! 79: ISC_R_KEYCONFLICT = 44,
! 80: ISC_R_BADPARSE = 45,
! 81: ISC_R_NOKEYS = 46,
! 82: ISC_R_KEY_UNKNOWN = 47,
! 83: ISC_R_INVALIDKEY = 48,
! 84: ISC_R_INCOMPLETE = 49,
! 85: ISC_R_FORMERR = 50,
! 86: ISC_R_SERVFAIL = 51,
! 87: ISC_R_NXDOMAIN = 52,
! 88: ISC_R_NOTIMPL = 53,
! 89: ISC_R_REFUSED = 54,
! 90: ISC_R_YXDOMAIN = 55,
! 91: ISC_R_YXRRSET = 56,
! 92: ISC_R_NXRRSET = 57,
! 93: ISC_R_NOTAUTH = 58,
! 94: ISC_R_NOTZONE = 59,
! 95: ISC_R_BADSIG = 60,
! 96: ISC_R_BADKEY = 61,
! 97: ISC_R_BADTIME = 62,
! 98: ISC_R_NOROOTZONE = 63,
! 99: ISC_R_DESTADDRREQ = 64,
! 100: ISC_R_CROSSZONE = 65,
! 101: ISC_R_NO_TSIG = 66,
! 102: ISC_R_NOT_EQUAL = 67,
! 103: ISC_R_CONNRESET = 68,
! 104: ISC_R_UNKNOWNATTRIBUTE = 69
! 105: } isc_result_t;
! 106:
! 107:
! 108: #define ISC_R_NRESULTS 70 /* Number of results */
! 109:
! 110: const char * isc_result_totext(isc_result_t);
! 111: isc_result_t isc_result_register(unsigned int base,
! 112: unsigned int nresults,
! 113: char **text,
! 114: isc_msgcat_t *msgcat,
! 115: int set);
! 116:
! 117: ISC_LANG_ENDDECLS
! 118:
! 119: #endif /* ISC_RESULT_H */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>