diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-12-06 16:56:18 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-12-06 17:24:52 +1100 |
commit | c60ce7503cd3ce445612c8f8b5387b2d8cc98ba8 (patch) | |
tree | eb408578f0bf7bbc43cfee2719bdf088819d85d1 /source4/dns_server | |
parent | 9f6f1b009866b8f697bcfad8b1451395732b78c1 (diff) | |
download | samba-c60ce7503cd3ce445612c8f8b5387b2d8cc98ba8.tar.gz samba-c60ce7503cd3ce445612c8f8b5387b2d8cc98ba8.tar.bz2 samba-c60ce7503cd3ce445612c8f8b5387b2d8cc98ba8.zip |
s4-dns: added flags support for dlz_bind9
this will allow us to set the THREADSAFE flag if we make this
threadsafe. For now we don't set that flag, and let bind9 do the
locking for us.
Diffstat (limited to 'source4/dns_server')
-rw-r--r-- | source4/dns_server/dlz_bind9.c | 2 | ||||
-rw-r--r-- | source4/dns_server/dlz_bind9.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c index 0260a79eea..0eb90b78c5 100644 --- a/source4/dns_server/dlz_bind9.c +++ b/source4/dns_server/dlz_bind9.c @@ -44,7 +44,7 @@ struct dlz_bind9_data { /* return the version of the API */ -_PUBLIC_ int dlz_version(void) +_PUBLIC_ int dlz_version(unsigned int *flags) { return DLZ_DLOPEN_VERSION; } diff --git a/source4/dns_server/dlz_bind9.h b/source4/dns_server/dlz_bind9.h index 8cf06807c1..34f9605b12 100644 --- a/source4/dns_server/dlz_bind9.h +++ b/source4/dns_server/dlz_bind9.h @@ -29,6 +29,9 @@ typedef uint32_t dns_ttl_t; #define DLZ_DLOPEN_VERSION 1 +/* return this in flags to dlz_version() if thread safe */ +#define DNS_SDLZFLAG_THREADSAFE 0x00000001U + /* result codes */ #define ISC_R_SUCCESS 0 #define ISC_R_NOMEMORY 1 |