result.h revision 170222
1/*
2 * Portions Copyright (C) 2004, 2005  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.5.18.2 2005/04/29 00:17:14 marka Exp $ */
20
21#ifndef ISCCC_RESULT_H
22#define ISCCC_RESULT_H 1
23
24/*! \file */
25
26#include <isc/lang.h>
27#include <isc/resultclass.h>
28#include <isc/result.h>
29
30#include <isccc/types.h>
31
32/*% Unknown Version */
33#define ISCCC_R_UNKNOWNVERSION		(ISC_RESULTCLASS_ISCCC + 0)
34/*% Syntax Error */
35#define ISCCC_R_SYNTAX			(ISC_RESULTCLASS_ISCCC + 1)
36/*% Bad Authorization */
37#define ISCCC_R_BADAUTH			(ISC_RESULTCLASS_ISCCC + 2)
38/*% Expired */
39#define ISCCC_R_EXPIRED			(ISC_RESULTCLASS_ISCCC + 3)
40/*% Clock Skew */
41#define ISCCC_R_CLOCKSKEW		(ISC_RESULTCLASS_ISCCC + 4)
42/*% Duplicate */
43#define ISCCC_R_DUPLICATE		(ISC_RESULTCLASS_ISCCC + 5)
44
45#define ISCCC_R_NRESULTS 		6	/*%< Number of results */
46
47ISC_LANG_BEGINDECLS
48
49const char *
50isccc_result_totext(isc_result_t result);
51/*%
52 * Convert a isccc_result_t into a string message describing the result.
53 */
54
55void
56isccc_result_register(void);
57
58ISC_LANG_ENDDECLS
59
60#endif /* ISCCC_RESULT_H */
61