From c60ce7503cd3ce445612c8f8b5387b2d8cc98ba8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 6 Dec 2010 16:56:18 +1100 Subject: 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. --- source4/dns_server/dlz_bind9.c | 2 +- source4/dns_server/dlz_bind9.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/dns_server') 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 -- cgit