1135446Strhodes/*
2193149Sdougb * Portions Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
3135446Strhodes * Portions Copyright (C) 2001, 2003  Internet Software Consortium.
4193149Sdougb *
5193149Sdougb * Permission to use, copy, modify, and/or distribute this software for any
6193149Sdougb * purpose with or without fee is hereby granted, provided that the above
7193149Sdougb * copyright notice and this permission notice appear in all copies.
8193149Sdougb *
9193149Sdougb * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NOMINUM DISCLAIMS ALL
10193149Sdougb * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
11193149Sdougb * OF MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY
12193149Sdougb * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13193149Sdougb * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14193149Sdougb * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15193149Sdougb * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16193149Sdougb *
17135446Strhodes * Portions Copyright (C) 2001  Nominum, Inc.
18135446Strhodes *
19193149Sdougb * Permission to use, copy, modify, and/or distribute this software for any
20135446Strhodes * purpose with or without fee is hereby granted, provided that the above
21135446Strhodes * copyright notice and this permission notice appear in all copies.
22135446Strhodes *
23135446Strhodes * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NOMINUM DISCLAIMS ALL
24135446Strhodes * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
25135446Strhodes * OF MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY
26135446Strhodes * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
27135446Strhodes * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
28135446Strhodes * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
29135446Strhodes * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
30135446Strhodes */
31135446Strhodes
32234010Sdougb/* $Id: result.h,v 1.12 2007/08/28 07:20:43 tbox Exp $ */
33135446Strhodes
34135446Strhodes#ifndef ISCCC_RESULT_H
35135446Strhodes#define ISCCC_RESULT_H 1
36135446Strhodes
37193149Sdougb/*! \file isccc/result.h */
38170222Sdougb
39135446Strhodes#include <isc/lang.h>
40135446Strhodes#include <isc/resultclass.h>
41135446Strhodes#include <isc/result.h>
42135446Strhodes
43135446Strhodes#include <isccc/types.h>
44135446Strhodes
45170222Sdougb/*% Unknown Version */
46135446Strhodes#define ISCCC_R_UNKNOWNVERSION		(ISC_RESULTCLASS_ISCCC + 0)
47170222Sdougb/*% Syntax Error */
48135446Strhodes#define ISCCC_R_SYNTAX			(ISC_RESULTCLASS_ISCCC + 1)
49170222Sdougb/*% Bad Authorization */
50135446Strhodes#define ISCCC_R_BADAUTH			(ISC_RESULTCLASS_ISCCC + 2)
51170222Sdougb/*% Expired */
52135446Strhodes#define ISCCC_R_EXPIRED			(ISC_RESULTCLASS_ISCCC + 3)
53170222Sdougb/*% Clock Skew */
54135446Strhodes#define ISCCC_R_CLOCKSKEW		(ISC_RESULTCLASS_ISCCC + 4)
55170222Sdougb/*% Duplicate */
56135446Strhodes#define ISCCC_R_DUPLICATE		(ISC_RESULTCLASS_ISCCC + 5)
57135446Strhodes
58170222Sdougb#define ISCCC_R_NRESULTS 		6	/*%< Number of results */
59135446Strhodes
60135446StrhodesISC_LANG_BEGINDECLS
61135446Strhodes
62135446Strhodesconst char *
63135446Strhodesisccc_result_totext(isc_result_t result);
64170222Sdougb/*%
65135446Strhodes * Convert a isccc_result_t into a string message describing the result.
66135446Strhodes */
67135446Strhodes
68135446Strhodesvoid
69135446Strhodesisccc_result_register(void);
70135446Strhodes
71135446StrhodesISC_LANG_ENDDECLS
72135446Strhodes
73135446Strhodes#endif /* ISCCC_RESULT_H */
74