00001 /* 00002 * Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC") 00003 * Copyright (C) 1999-2001 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 DISCLAIMS ALL WARRANTIES WITH 00010 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 00011 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 00012 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 00013 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 00014 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00015 * PERFORMANCE OF THIS SOFTWARE. 00016 */ 00017 00018 /* $Id: lib.h,v 1.16 2009/09/02 23:48:03 tbox Exp $ */ 00019 00020 #ifndef ISC_LIB_H 00021 #define ISC_LIB_H 1 00022 00023 /*! \file isc/lib.h */ 00024 00025 #include <isc/types.h> 00026 #include <isc/lang.h> 00027 00028 ISC_LANG_BEGINDECLS 00029 00030 LIBISC_EXTERNAL_DATA extern isc_msgcat_t *isc_msgcat; 00031 00032 void 00033 isc_lib_initmsgcat(void); 00034 /*!< 00035 * \brief Initialize the ISC library's message catalog, isc_msgcat, if it 00036 * has not already been initialized. 00037 */ 00038 00039 void 00040 isc_lib_register(void); 00041 /*!< 00042 * \brief Register the ISC library implementations for some base services 00043 * such as memory or event management and handling socket or timer events. 00044 * An external application that wants to use the ISC library must call this 00045 * function very early in main(). 00046 */ 00047 00048 ISC_LANG_ENDDECLS 00049 00050 #endif /* ISC_LIB_H */