s4 dns: Implement dns record comparison function
[mat/samba.git] / source4 / dns_server / dns_server.h
index 0339fff01fadc096eee16ce638ae1d124372639e..7387641c63101d7b86cf8125f63811136e6dd3cd 100644 (file)
@@ -23,6 +23,7 @@
 #define __DNS_SERVER_H__
 
 #include "librpc/gen_ndr/dns.h"
+#include "librpc/gen_ndr/ndr_dnsp.h"
 
 struct tsocket_address;
 
@@ -56,6 +57,8 @@ WERROR dns_server_process_update(struct dns_server *dns,
 uint8_t werr_to_dns_err(WERROR werror);
 bool dns_name_match(const char *zone, const char *name, size_t *host_part_len);
 bool dns_name_equal(const char *name1, const char *name2);
+bool dns_records_match(struct dnsp_DnssrvRpcRecord *rec1,
+                      struct dnsp_DnssrvRpcRecord *rec2);
 WERROR dns_name2dn(struct dns_server *dns,
                   TALLOC_CTX *mem_ctx,
                   const char *name,