result.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2014  Internet Systems Consortium, Inc. ("ISC")
00003  *
00004  * Permission to use, copy, modify, and/or distribute this software for any
00005  * purpose with or without fee is hereby granted, provided that the above
00006  * copyright notice and this permission notice appear in all copies.
00007  *
00008  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00009  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00010  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00011  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00012  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00013  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00014  * PERFORMANCE OF THIS SOFTWARE.
00015  */
00016 
00017 #ifndef PK11_RESULT_H
00018 #define PK11_RESULT_H 1
00019 
00020 /*! \file pk11/result.h */
00021 
00022 #include <isc/lang.h>
00023 #include <isc/resultclass.h>
00024 
00025 /*
00026  * Nothing in this file truly depends on <isc/result.h>, but the
00027  * PK11 result codes are considered to be publicly derived from
00028  * the ISC result codes, so including this file buys you the ISC_R_
00029  * namespace too.
00030  */
00031 #include <isc/result.h>         /* Contractual promise. */
00032 
00033 #define PK11_R_INITFAILED               (ISC_RESULTCLASS_PK11 + 0)
00034 #define PK11_R_NOPROVIDER               (ISC_RESULTCLASS_PK11 + 1)
00035 #define PK11_R_NORANDOMSERVICE          (ISC_RESULTCLASS_PK11 + 2)
00036 #define PK11_R_NODIGESTSERVICE          (ISC_RESULTCLASS_PK11 + 3)
00037 #define PK11_R_NOAESSERVICE             (ISC_RESULTCLASS_PK11 + 4)
00038 
00039 #define PK11_R_NRESULTS                 5       /* Number of results */
00040 
00041 ISC_LANG_BEGINDECLS
00042 
00043 LIBISC_EXTERNAL_DATA extern isc_msgcat_t *pk11_msgcat;
00044 
00045 void
00046 pk11_initmsgcat(void);
00047 
00048 const char *
00049 pk11_result_totext(isc_result_t);
00050 
00051 void
00052 pk11_result_register(void);
00053 
00054 ISC_LANG_ENDDECLS
00055 
00056 #endif /* PK11_RESULT_H */

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