"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/lib/isccc/include/isccc/result.h" (7 Sep 2020, 2104 Bytes) of package /linux/misc/dns/bind9/9.11.23/bind-9.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "result.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Portions Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  *
   11  * Portions Copyright (C) 2001 Nominum, Inc.
   12  *
   13  * Permission to use, copy, modify, and/or distribute this software for any
   14  * purpose with or without fee is hereby granted, provided that the above
   15  * copyright notice and this permission notice appear in all copies.
   16  *
   17  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NOMINUM DISCLAIMS ALL
   18  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
   19  * OF MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY
   20  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
   21  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
   22  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
   23  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
   24  */
   25 
   26 
   27 #ifndef ISCCC_RESULT_H
   28 #define ISCCC_RESULT_H 1
   29 
   30 /*! \file isccc/result.h */
   31 
   32 #include <isc/lang.h>
   33 #include <isc/resultclass.h>
   34 #include <isc/result.h>
   35 
   36 #include <isccc/types.h>
   37 
   38 /*% Unknown Version */
   39 #define ISCCC_R_UNKNOWNVERSION      (ISC_RESULTCLASS_ISCCC + 0)
   40 /*% Syntax Error */
   41 #define ISCCC_R_SYNTAX          (ISC_RESULTCLASS_ISCCC + 1)
   42 /*% Bad Authorization */
   43 #define ISCCC_R_BADAUTH         (ISC_RESULTCLASS_ISCCC + 2)
   44 /*% Expired */
   45 #define ISCCC_R_EXPIRED         (ISC_RESULTCLASS_ISCCC + 3)
   46 /*% Clock Skew */
   47 #define ISCCC_R_CLOCKSKEW       (ISC_RESULTCLASS_ISCCC + 4)
   48 /*% Duplicate */
   49 #define ISCCC_R_DUPLICATE       (ISC_RESULTCLASS_ISCCC + 5)
   50 
   51 #define ISCCC_R_NRESULTS        6   /*%< Number of results */
   52 
   53 ISC_LANG_BEGINDECLS
   54 
   55 const char *
   56 isccc_result_totext(isc_result_t result);
   57 /*%
   58  * Convert a isccc_result_t into a string message describing the result.
   59  */
   60 
   61 void
   62 isccc_result_register(void);
   63 
   64 ISC_LANG_ENDDECLS
   65 
   66 #endif /* ISCCC_RESULT_H */