result.c File Reference

#include <config.h>
#include <isc/once.h>
#include <isc/util.h>
#include <isccc/result.h>
#include <isccc/lib.h>

Go to the source code of this file.

Defines

#define ISCCC_RESULT_RESULTSET   2

Functions

static void initialize_action (void)
static void initialize (void)
const char * isccc_result_totext (isc_result_t result)
void isccc_result_register (void)
 Convert a isccc_result_t into a string message describing the result.

Variables

static const char * text [ISCCC_R_NRESULTS]
static isc_once_t once = ISC_ONCE_INIT


Detailed Description

Definition in file result.c.


Define Documentation

#define ISCCC_RESULT_RESULTSET   2

Definition at line 53 of file result.c.

Referenced by initialize_action().


Function Documentation

static void initialize_action ( void   )  [static]

Definition at line 58 of file result.c.

References ISC_R_SUCCESS, isc_result_register(), ISC_RESULTCLASS_ISCCC, isccc_msgcat, ISCCC_R_NRESULTS, ISCCC_RESULT_RESULTSET, text, and UNEXPECTED_ERROR.

static void initialize ( void   )  [static]

Definition at line 70 of file result.c.

References initialize_action(), isc_once_do, ISC_R_SUCCESS, isccc_lib_initmsgcat(), once, and RUNTIME_CHECK.

const char* isccc_result_totext ( isc_result_t  result  ) 

Definition at line 76 of file result.c.

References initialize(), and isc_result_totext().

void isccc_result_register ( void   ) 

Convert a isccc_result_t into a string message describing the result.

Definition at line 83 of file result.c.

References initialize().

Referenced by main().


Variable Documentation

const char* text[ISCCC_R_NRESULTS] [static]

Initial value:

 {
        "unknown version",                      
        "syntax error",                         
        "bad auth",                             
        "expired",                              
        "clock skew",                           
        "duplicate"                             
}

Definition at line 44 of file result.c.

isc_once_t once = ISC_ONCE_INIT [static]

Definition at line 55 of file result.c.


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