pidl:Samba4/Python.pm: use PyString_FromStringOrNULL() from pyrpc_util
[Samba/gebeck_regimport.git] / source4 / dns_server / dlz_bind9.h
blob34f9605b12c6f8c865fa31169233bb338aa008b4
1 /*
2 Unix SMB/CIFS implementation.
4 bind9 dlz driver for Samba
6 Copyright (C) 2010 Andrew Tridgell
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.
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.
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/>.
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
27 typedef unsigned int isc_result_t;
28 typedef uint32_t dns_ttl_t;
30 #define DLZ_DLOPEN_VERSION 1
32 /* return this in flags to dlz_version() if thread safe */
33 #define DNS_SDLZFLAG_THREADSAFE 0x00000001U
35 /* result codes */
36 #define ISC_R_SUCCESS 0
37 #define ISC_R_NOMEMORY 1
38 #define ISC_R_NOTFOUND 23
39 #define ISC_R_FAILURE 25
41 /* log levels */
42 #define ISC_LOG_INFO (-1)
43 #define ISC_LOG_NOTICE (-2)
44 #define ISC_LOG_WARNING (-3)
45 #define ISC_LOG_ERROR (-4)
46 #define ISC_LOG_CRITICAL (-5)
48 /* a couple of opaque structures */
49 struct dns_sdlzlookup;
50 typedef struct dns_sdlzlookup dns_sdlzlookup_t;
51 struct dns_sdlzallnodes;
52 typedef struct dns_sdlzallnodes dns_sdlzallnodes_t;