Import bind 9.5.2 vendor sources.
[dragonfly.git] / contrib / bind-9.5.2 / lib / isccc / include / isccc / result.h
blob2d54969d71dd32f6ac12bb05bdad2e9750bf70b1
1 /*
2 * Portions Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
3 * Portions Copyright (C) 2001, 2003 Internet Software Consortium.
5 * Permission to use, copy, modify, and/or 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.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NOMINUM DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
11 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY
12 * 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 OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 * Portions Copyright (C) 2001 Nominum, Inc.
19 * Permission to use, copy, modify, and/or distribute this software for any
20 * purpose with or without fee is hereby granted, provided that the above
21 * copyright notice and this permission notice appear in all copies.
23 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NOMINUM DISCLAIMS ALL
24 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
25 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY
26 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
27 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
28 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
29 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
32 /* $Id: result.h,v 1.12 2007/08/28 07:20:43 tbox Exp $ */
34 #ifndef ISCCC_RESULT_H
35 #define ISCCC_RESULT_H 1
37 /*! \file isccc/result.h */
39 #include <isc/lang.h>
40 #include <isc/resultclass.h>
41 #include <isc/result.h>
43 #include <isccc/types.h>
45 /*% Unknown Version */
46 #define ISCCC_R_UNKNOWNVERSION (ISC_RESULTCLASS_ISCCC + 0)
47 /*% Syntax Error */
48 #define ISCCC_R_SYNTAX (ISC_RESULTCLASS_ISCCC + 1)
49 /*% Bad Authorization */
50 #define ISCCC_R_BADAUTH (ISC_RESULTCLASS_ISCCC + 2)
51 /*% Expired */
52 #define ISCCC_R_EXPIRED (ISC_RESULTCLASS_ISCCC + 3)
53 /*% Clock Skew */
54 #define ISCCC_R_CLOCKSKEW (ISC_RESULTCLASS_ISCCC + 4)
55 /*% Duplicate */
56 #define ISCCC_R_DUPLICATE (ISC_RESULTCLASS_ISCCC + 5)
58 #define ISCCC_R_NRESULTS 6 /*%< Number of results */
60 ISC_LANG_BEGINDECLS
62 const char *
63 isccc_result_totext(isc_result_t result);
64 /*%
65 * Convert a isccc_result_t into a string message describing the result.
68 void
69 isccc_result_register(void);
71 ISC_LANG_ENDDECLS
73 #endif /* ISCCC_RESULT_H */