s4-dns: added flags support for dlz_bind9
authorAndrew Tridgell <tridge@samba.org>
Mon, 6 Dec 2010 05:56:18 +0000 (16:56 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 6 Dec 2010 06:24:52 +0000 (17:24 +1100)
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
source4/dns_server/dlz_bind9.h

index 0260a79eea4602a191625bf2bdd5da023f98a472..0eb90b78c599392d534fd164f86831e4e3a8508d 100644 (file)
@@ -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;
 }
index 8cf06807c13ed28c7e8515e7f7480b0206d580b4..34f9605b12c6f8c865fa31169233bb338aa008b4 100644 (file)
@@ -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