From c1be069be94b71c1d85471314c0971bd091af194 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 22 Sep 2013 10:27:38 +0200 Subject: libsmbconf:registry: publish smbconf_reg_parameter_is_valid() So that this does not need to be duplicated.. Signed-off-by: Michael Adam Reviewed-by: Andrew Bartlett --- source3/lib/smbconf/smbconf_reg.c | 2 +- source3/lib/smbconf/smbconf_reg.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/lib') diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c index 6848a731ca..696dd1f823 100644 --- a/source3/lib/smbconf/smbconf_reg.c +++ b/source3/lib/smbconf/smbconf_reg.c @@ -54,7 +54,7 @@ static struct reg_private_data *rpd(struct smbconf_ctx *ctx) * Check whether a given parameter name is valid in the * smbconf registry backend. */ -static bool smbconf_reg_parameter_is_valid(const char *param_name) +bool smbconf_reg_parameter_is_valid(const char *param_name) { /* hard code the list of forbidden names here for now */ const char *forbidden_names[] = { diff --git a/source3/lib/smbconf/smbconf_reg.h b/source3/lib/smbconf/smbconf_reg.h index 2c49057a94..a3f343f694 100644 --- a/source3/lib/smbconf/smbconf_reg.h +++ b/source3/lib/smbconf/smbconf_reg.h @@ -29,5 +29,10 @@ struct smbconf_ctx; sbcErr smbconf_init_reg(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx, const char *path); +/** + * Check whether a given parameter name is valid in the + * smbconf registry backend. + */ +bool smbconf_reg_parameter_is_valid(const char *param_name); #endif /* _LIBSMBCONF_REG_H_ */ -- cgit