xref: /netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/include/isc/bind9.h (revision 4afad4b7fa6d4a0d3dedf41d1587a7250710ae54)
1 /*	$NetBSD: bind9.h,v 1.1 2024/02/18 20:57:51 christos Exp $	*/
2 
3 /*
4  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
5  *
6  * SPDX-License-Identifier: MPL-2.0
7  *
8  * This Source Code Form is subject to the terms of the Mozilla Public
9  * License, v. 2.0. If a copy of the MPL was not distributed with this
10  * file, you can obtain one at https://mozilla.org/MPL/2.0/.
11  *
12  * See the COPYRIGHT file distributed with this work for additional
13  * information regarding copyright ownership.
14  */
15 
16 #ifndef ISC_BIND9_H
17 #define ISC_BIND9_H 1
18 
19 #include <stdbool.h>
20 
21 #include <isc/platform.h>
22 
23 /*
24  * This determines whether we are using the libisc/libdns libraries
25  * in BIND9 or in some other application.  For BIND9 (named and related
26  * tools) it must be set to true at runtime.  Export library clients
27  * will call isc_lib_register(), which will set it to false.
28  */
29 LIBISC_EXTERNAL_DATA extern bool isc_bind9;
30 
31 #endif /* ISC_BIND9_H */
32