xref: /minix/external/bsd/bind/dist/lib/dns/include/dns/lib.h (revision bb9622b5)
1 /*	$NetBSD: lib.h,v 1.4 2014/12/10 04:37:58 christos Exp $	*/
2 
3 /*
4  * Copyright (C) 2004-2007, 2009  Internet Systems Consortium, Inc. ("ISC")
5  * Copyright (C) 1999-2001  Internet Software Consortium.
6  *
7  * Permission to use, copy, modify, and/or distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /* Id: lib.h,v 1.18 2009/09/02 23:48:02 tbox Exp  */
21 
22 #ifndef DNS_LIB_H
23 #define DNS_LIB_H 1
24 
25 /*! \file dns/lib.h */
26 
27 #include <isc/types.h>
28 #include <isc/lang.h>
29 
30 ISC_LANG_BEGINDECLS
31 
32 /*%
33  * Tuning: external query load in packets per seconds.
34  */
35 LIBDNS_EXTERNAL_DATA extern unsigned int dns_pps;
36 LIBDNS_EXTERNAL_DATA extern isc_msgcat_t *dns_msgcat;
37 
38 void
39 dns_lib_initmsgcat(void);
40 /*%<
41  * Initialize the DNS library's message catalog, dns_msgcat, if it
42  * has not already been initialized.
43  */
44 
45 isc_result_t
46 dns_lib_init(void);
47 /*%<
48  * A set of initialization procedure used in the DNS library.  This function
49  * is provided for an application that is not aware of the underlying ISC or
50  * DNS libraries much.
51  */
52 
53 void
54 dns_lib_shutdown(void);
55 /*%<
56  * Free temporary resources allocated in dns_lib_init().
57  */
58 
59 ISC_LANG_ENDDECLS
60 
61 #endif /* DNS_LIB_H */
62