s4 dns: Allow changing the dns operation flags in handlers
[bbaumbach/samba-autobuild/.git] / source4 / dns_server / dns_server.h
index 718df00dd8bf6e783c693a8858736d3c7bb17371..c6f5fb319e176e994b3e5cdcd9d53088c11f12ee 100644 (file)
@@ -39,8 +39,12 @@ struct dns_server {
        struct dns_server_zone *zones;
 };
 
+struct dns_request_state {
+       uint16_t flags;
+};
 
 WERROR dns_server_process_query(struct dns_server *dns,
+                               struct dns_request_state *state,
                                TALLOC_CTX *mem_ctx,
                                struct dns_name_packet *in,
                                struct dns_res_rec **answers,    uint16_t *ancount,
@@ -48,6 +52,7 @@ WERROR dns_server_process_query(struct dns_server *dns,
                                struct dns_res_rec **additional, uint16_t *arcount);
 
 WERROR dns_server_process_update(struct dns_server *dns,
+                                struct dns_request_state *state,
                                 TALLOC_CTX *mem_ctx,
                                 struct dns_name_packet *in,
                                 struct dns_res_rec **prereqs,    uint16_t *prereq_count,