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