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.18 2009/09/02 23:48:02 tbox Exp $ */ 00019 00020 #ifndef DNS_LIB_H 00021 #define DNS_LIB_H 1 00022 00023 /*! \file dns/lib.h */ 00024 00025 #include <isc/types.h> 00026 #include <isc/lang.h> 00027 00028 ISC_LANG_BEGINDECLS 00029 00030 /*% 00031 * Tuning: external query load in packets per seconds. 00032 */ 00033 LIBDNS_EXTERNAL_DATA extern unsigned int dns_pps; 00034 LIBDNS_EXTERNAL_DATA extern isc_msgcat_t *dns_msgcat; 00035 00036 void 00037 dns_lib_initmsgcat(void); 00038 /*%< 00039 * Initialize the DNS library's message catalog, dns_msgcat, if it 00040 * has not already been initialized. 00041 */ 00042 00043 isc_result_t 00044 dns_lib_init(void); 00045 /*%< 00046 * A set of initialization procedure used in the DNS library. This function 00047 * is provided for an application that is not aware of the underlying ISC or 00048 * DNS libraries much. 00049 */ 00050 00051 void 00052 dns_lib_shutdown(void); 00053 /*%< 00054 * Free temporary resources allocated in dns_lib_init(). 00055 */ 00056 00057 ISC_LANG_ENDDECLS 00058 00059 #endif /* DNS_LIB_H */