result.h

Go to the documentation of this file.
00001 /*
00002  * Portions Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
00003  * Portions Copyright (C) 2001, 2003  Internet Software Consortium.
00004  *
00005  * Permission to use, copy, modify, and/or distribute this software for any
00006  * purpose with or without fee is hereby granted, provided that the above
00007  * copyright notice and this permission notice appear in all copies.
00008  *
00009  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NOMINUM DISCLAIMS ALL
00010  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
00011  * OF MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY
00012  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
00013  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
00014  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
00015  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00016  *
00017  * Portions Copyright (C) 2001  Nominum, Inc.
00018  *
00019  * Permission to use, copy, modify, and/or distribute this software for any
00020  * purpose with or without fee is hereby granted, provided that the above
00021  * copyright notice and this permission notice appear in all copies.
00022  *
00023  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NOMINUM DISCLAIMS ALL
00024  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
00025  * OF MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY
00026  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
00027  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
00028  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
00029  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00030  */
00031 
00032 /* $Id: result.h,v 1.12 2007/08/28 07:20:43 tbox Exp $ */
00033 
00034 #ifndef ISCCC_RESULT_H
00035 #define ISCCC_RESULT_H 1
00036 
00037 /*! \file isccc/result.h */
00038 
00039 #include <isc/lang.h>
00040 #include <isc/resultclass.h>
00041 #include <isc/result.h>
00042 
00043 #include <isccc/types.h>
00044 
00045 /*% Unknown Version */
00046 #define ISCCC_R_UNKNOWNVERSION          (ISC_RESULTCLASS_ISCCC + 0)
00047 /*% Syntax Error */
00048 #define ISCCC_R_SYNTAX                  (ISC_RESULTCLASS_ISCCC + 1)
00049 /*% Bad Authorization */
00050 #define ISCCC_R_BADAUTH                 (ISC_RESULTCLASS_ISCCC + 2)
00051 /*% Expired */
00052 #define ISCCC_R_EXPIRED                 (ISC_RESULTCLASS_ISCCC + 3)
00053 /*% Clock Skew */
00054 #define ISCCC_R_CLOCKSKEW               (ISC_RESULTCLASS_ISCCC + 4)
00055 /*% Duplicate */
00056 #define ISCCC_R_DUPLICATE               (ISC_RESULTCLASS_ISCCC + 5)
00057 
00058 #define ISCCC_R_NRESULTS                6       /*%< Number of results */
00059 
00060 ISC_LANG_BEGINDECLS
00061 
00062 const char *
00063 isccc_result_totext(isc_result_t result);
00064 /*%
00065  * Convert a isccc_result_t into a string message describing the result.
00066  */
00067 
00068 void
00069 isccc_result_register(void);
00070 
00071 ISC_LANG_ENDDECLS
00072 
00073 #endif /* ISCCC_RESULT_H */

Generated on Tue Apr 28 17:41:04 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha