1/* 2 * Portions Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC") 3 * Portions Copyright (C) 2001, 2003 Internet Software Consortium. 4 * 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. 8 * 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. 16 * 17 * Portions Copyright (C) 2001 Nominum, Inc. 18 * 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. 22 * 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. 30 */ 31 32/* $Id: result.h,v 1.12 2007/08/28 07:20:43 tbox Exp $ */ 33 34#ifndef ISCCC_RESULT_H 35#define ISCCC_RESULT_H 1 36 37/*! \file isccc/result.h */ 38 39#include <isc/lang.h> 40#include <isc/resultclass.h> 41#include <isc/result.h> 42 43#include <isccc/types.h> 44 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) 57 58#define ISCCC_R_NRESULTS 6 /*%< Number of results */ 59 60ISC_LANG_BEGINDECLS 61 62const char * 63isccc_result_totext(isc_result_t result); 64/*% 65 * Convert a isccc_result_t into a string message describing the result. 66 */ 67 68void 69isccc_result_register(void); 70 71ISC_LANG_ENDDECLS 72 73#endif /* ISCCC_RESULT_H */ 74