From 18c152f8aa5ab7b5463fa1f6daf72fbbe32eaddb Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Fri, 3 Aug 2012 17:59:17 +0200 Subject: [PATCH] lib/param: move enum dns_update_settings to lib/param --- lib/param/loadparm.c | 1 - lib/param/loadparm.h | 3 +++ source3/param/loadparm.c | 1 - source4/dns_server/dns_update.c | 2 +- source4/dns_server/dns_update.h | 25 ------------------------- 5 files changed, 4 insertions(+), 28 deletions(-) delete mode 100644 source4/dns_server/dns_update.h diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index 80733b4e29a..4751a06198a 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -66,7 +66,6 @@ #include "lib/param/s3_param.h" #include "lib/util/bitmap.h" #include "libcli/smb/smb_constants.h" -#include "source4/dns_server/dns_update.h" #define standard_sub_basic talloc_strdup diff --git a/lib/param/loadparm.h b/lib/param/loadparm.h index 8c4a7b172f6..591e6e5dbe1 100644 --- a/lib/param/loadparm.h +++ b/lib/param/loadparm.h @@ -176,6 +176,9 @@ enum printing_types {PRINT_BSD,PRINT_SYSV,PRINT_AIX,PRINT_HPUX, #define ADS_AUTH_SASL_FORCE 0x0080 #define ADS_AUTH_USER_CREDS 0x0100 +/* DNS update settings */ +enum dns_update_settings {DNS_UPDATE_OFF, DNS_UPDATE_ON, DNS_UPDATE_SIGNED}; + /* LDAP SSL options */ enum ldap_ssl_types {LDAP_SSL_OFF, LDAP_SSL_START_TLS}; diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index dc23868a999..1b766c3c468 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -68,7 +68,6 @@ #include "dbwrap/dbwrap.h" #include "dbwrap/dbwrap_rbt.h" #include "../lib/util/bitmap.h" -#include "../source4/dns_server/dns_update.h" #ifdef HAVE_SYS_SYSCTL_H #include diff --git a/source4/dns_server/dns_update.c b/source4/dns_server/dns_update.c index a09818d70a2..e7514acace0 100644 --- a/source4/dns_server/dns_update.c +++ b/source4/dns_server/dns_update.c @@ -26,11 +26,11 @@ #include "librpc/gen_ndr/ndr_dnsp.h" #include #include "param/param.h" +#include "param/loadparm.h" #include "dsdb/samdb/samdb.h" #include "dsdb/common/util.h" #include "smbd/service_task.h" #include "dns_server/dns_server.h" -#include "dns_server/dns_update.h" static WERROR dns_rr_to_dnsp(TALLOC_CTX *mem_ctx, const struct dns_res_rec *rrec, diff --git a/source4/dns_server/dns_update.h b/source4/dns_server/dns_update.h deleted file mode 100644 index 71ff85eda14..00000000000 --- a/source4/dns_server/dns_update.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - Unix SMB/CIFS implementation. - - DNS update settings - - Copyright (C) 2011 Kai Blin - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . -*/ -enum dns_update_settings { - DNS_UPDATE_OFF=0, - DNS_UPDATE_ON=1, - DNS_UPDATE_SIGNED=2 -}; -- 2.11.4.GIT