s4-dns: a dlz module for bind9
[samba.git] / source4 / dns_server / dlz_bind9.h
1 /*
2    Unix SMB/CIFS implementation.
3
4    bind9 dlz driver for Samba
5
6    Copyright (C) 2010 Andrew Tridgell
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 /*
23   provide the minimal set of prototypes and defines for bind9 interop
24   The aim is to not require the bind9 source when building the
25   dlz_bind9 module
26  */
27 typedef unsigned int isc_result_t;
28 typedef uint32_t dns_ttl_t;
29
30 #define DLZ_DLOPEN_VERSION 1
31
32 /* result codes */
33 #define ISC_R_SUCCESS                   0
34 #define ISC_R_NOMEMORY                  1
35 #define ISC_R_NOTFOUND                  23
36 #define ISC_R_FAILURE                   25
37
38 /* log levels */
39 #define ISC_LOG_INFO            (-1)
40 #define ISC_LOG_NOTICE          (-2)
41 #define ISC_LOG_WARNING         (-3)
42 #define ISC_LOG_ERROR           (-4)
43 #define ISC_LOG_CRITICAL        (-5)
44
45 /* a couple of opaque structures */
46 struct dns_sdlzlookup;
47 typedef struct dns_sdlzlookup dns_sdlzlookup_t;
48 struct dns_sdlzallnodes;
49 typedef struct dns_sdlzallnodes dns_sdlzallnodes_t;