lib.c File Reference

#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <isc/app.h>
#include <isc/lib.h>
#include <isc/mem.h>
#include <isc/msgs.h>
#include <isc/once.h>
#include <isc/socket.h>
#include <isc/task.h>
#include <isc/timer.h>
#include <isc/util.h>

Go to the source code of this file.

Functions

static void open_msgcat (void)
void isc_lib_initmsgcat (void)
 Initialize the ISC library's message catalog, isc_msgcat, if it has not already been initialized.
static void do_register (void)
void isc_lib_register (void)
 Register the ISC library implementations for some base services such as memory or event management and handling socket or timer events. An external application that wants to use the ISC library must call this function very early in main().

Variables

LIBISC_EXTERNAL_DATA isc_msgcat_tisc_msgcat = NULL
static isc_once_t msgcat_once = ISC_ONCE_INIT
static isc_once_t register_once = ISC_ONCE_INIT


Detailed Description

Definition in file lib.c.


Function Documentation

static void open_msgcat ( void   )  [static]

Definition at line 55 of file lib.c.

References isc_msgcat_open().

Referenced by dns_lib_initmsgcat(), dst_lib_initmsgcat(), isc_lib_initmsgcat(), isccc_lib_initmsgcat(), and pk11_initmsgcat().

void isc_lib_initmsgcat ( void   ) 

Initialize the ISC library's message catalog, isc_msgcat, if it has not already been initialized.

Initialize the ISC library's message catalog, isc_msgcat, if it has not already been initialized.

Definition at line 60 of file lib.c.

References ISC_MSG_FAILED, ISC_MSG_FATALERROR, isc_msgcat_get(), ISC_MSGSET_GENERAL, isc_once_do, ISC_R_SUCCESS, msgcat_once, and open_msgcat().

Referenced by initialize().

static void do_register ( void   )  [static]

Definition at line 89 of file lib.c.

References isc__app_register(), isc__mem_register(), isc__socket_register(), isc__task_register(), isc__timer_register(), isc_bind9, ISC_FALSE, ISC_R_SUCCESS, and RUNTIME_CHECK.

Referenced by isc_lib_register().

void isc_lib_register ( void   ) 

Register the ISC library implementations for some base services such as memory or event management and handling socket or timer events. An external application that wants to use the ISC library must call this function very early in main().

Definition at line 100 of file lib.c.

References do_register(), isc_once_do, ISC_R_SUCCESS, register_once, and RUNTIME_CHECK.


Variable Documentation

LIBISC_EXTERNAL_DATA isc_msgcat_t* isc_msgcat = NULL

Definition at line 41 of file lib.c.

isc_once_t msgcat_once = ISC_ONCE_INIT [static]

Definition at line 48 of file lib.c.

Referenced by dns_lib_initmsgcat(), dst_lib_initmsgcat(), isc_lib_initmsgcat(), isccc_lib_initmsgcat(), and pk11_initmsgcat().

isc_once_t register_once = ISC_ONCE_INIT [static]

Definition at line 86 of file lib.c.

Referenced by isc_lib_register().


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