Merge from vendor branch TCSH:
[dragonfly.git] / contrib / bind-9.3 / lib / isccc / include / isccc / result.h
1 /*
2  * Portions Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
3  * Portions Copyright (C) 2001, 2003  Internet Software Consortium.
4  * Portions Copyright (C) 2001  Nominum, Inc.
5  *
6  * Permission to use, copy, modify, and distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NOMINUM DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
12  * OF MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY
13  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  */
18
19 /* $Id: result.h,v 1.3.2.2.2.1 2004/03/06 08:15:22 marka Exp $ */
20
21 #ifndef ISCCC_RESULT_H
22 #define ISCCC_RESULT_H 1
23
24 #include <isc/lang.h>
25 #include <isc/resultclass.h>
26 #include <isc/result.h>
27
28 #include <isccc/types.h>
29
30 #define ISCCC_R_UNKNOWNVERSION          (ISC_RESULTCLASS_ISCCC + 0)
31 #define ISCCC_R_SYNTAX                  (ISC_RESULTCLASS_ISCCC + 1)
32 #define ISCCC_R_BADAUTH                 (ISC_RESULTCLASS_ISCCC + 2)
33 #define ISCCC_R_EXPIRED                 (ISC_RESULTCLASS_ISCCC + 3)
34 #define ISCCC_R_CLOCKSKEW               (ISC_RESULTCLASS_ISCCC + 4)
35 #define ISCCC_R_DUPLICATE               (ISC_RESULTCLASS_ISCCC + 5)
36
37 #define ISCCC_R_NRESULTS                6       /* Number of results */
38
39 ISC_LANG_BEGINDECLS
40
41 const char *
42 isccc_result_totext(isc_result_t result);
43 /*
44  * Convert a isccc_result_t into a string message describing the result.
45  */
46
47 void
48 isccc_result_register(void);
49
50 ISC_LANG_ENDDECLS
51
52 #endif /* ISCCC_RESULT_H */