summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2014-02-28 09:59:05 +1300
committerAndrew Bartlett <abartlet@samba.org>2014-07-07 23:32:36 +0200
commit5a17187583f644bea743f1b2457a506c42de51b4 (patch)
tree18588dac7d4be4efc3e2a91d8475d241cb25c11f
parentacc7f79ee4f7bd26cae975cda8f859a6ae4e4df2 (diff)
downloadsamba-5a17187583f644bea743f1b2457a506c42de51b4.tar.gz
samba-5a17187583f644bea743f1b2457a506c42de51b4.tar.xz
samba-5a17187583f644bea743f1b2457a506c42de51b4.zip
param: add do_section to s3 helpers
Change-Id: Ib9cee580f46fcb6d5046e606b4bfbf9e68dab76a Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
-rw-r--r--lib/param/loadparm.h1
-rw-r--r--lib/param/s3_param.h1
-rw-r--r--source3/param/loadparm.c3
-rw-r--r--source3/param/loadparm_ctx.c1
4 files changed, 4 insertions, 2 deletions
diff --git a/lib/param/loadparm.h b/lib/param/loadparm.h
index 581832b20e..ebb3417962 100644
--- a/lib/param/loadparm.h
+++ b/lib/param/loadparm.h
@@ -283,6 +283,7 @@ bool lp_string_set(char **, const char *);
int getservicebyname(const char *, struct loadparm_service *);
bool lp_include(struct loadparm_context *, int, const char *, char **);
void init_printer_values(TALLOC_CTX *, struct loadparm_service *);
+bool lp_do_section(const char *pszSectionName, void *userdata);
int num_parameters(void);
diff --git a/lib/param/s3_param.h b/lib/param/s3_param.h
index 75f9eda9d4..77d8599db7 100644
--- a/lib/param/s3_param.h
+++ b/lib/param/s3_param.h
@@ -20,6 +20,7 @@ struct loadparm_s3_helpers
void (*init_ldap_debugging)(void);
bool (*set_netbios_aliases)(const char **);
bool (*lp_do_parameter)(int, const char *, const char *);
+ bool (*do_section)(const char *pszSectionName, void *userdata);
struct loadparm_global *globals;
};
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index f31fd3c00f..a0afa5d49a 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -1161,7 +1161,6 @@ static int map_parameter_canonical(const char *pszParmName, bool *inverse);
static const char *get_boolean(bool bool_value);
static bool do_parameter(const char *pszParmName, const char *pszParmValue,
void *userdata);
-static bool lp_do_section(const char *pszSectionName, void *userdata);
static bool hash_a_service(const char *name, int number);
static void free_service_byindex(int iService);
static void show_parameter(int parmIndex);
@@ -2773,7 +2772,7 @@ static void init_locals(void)
Returns true on success, false on failure.
***************************************************************************/
-static bool lp_do_section(const char *pszSectionName, void *userdata)
+bool lp_do_section(const char *pszSectionName, void *userdata)
{
bool bRetval;
bool isglobal = ((strwicmp(pszSectionName, GLOBAL_NAME) == 0) ||
diff --git a/source3/param/loadparm_ctx.c b/source3/param/loadparm_ctx.c
index 32df1836f3..8fffe13cec 100644
--- a/source3/param/loadparm_ctx.c
+++ b/source3/param/loadparm_ctx.c
@@ -75,6 +75,7 @@ static struct loadparm_s3_helpers s3_fns =
.init_ldap_debugging = init_ldap_debugging,
.set_netbios_aliases = set_netbios_aliases,
.lp_do_parameter = lp_do_parameter,
+ .do_section = lp_do_section,
};
const struct loadparm_s3_helpers *loadparm_s3_helpers(void)