summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-22 10:27:38 +0200
committerMichael Adam <obnox@samba.org>2013-09-24 07:44:28 +0200
commitc1be069be94b71c1d85471314c0971bd091af194 (patch)
treec61214120b43385d3c9daedd6dc2478f6790db20
parent4a65969e11d3bc7da62afec82de9f6d51d5e6a08 (diff)
downloadsamba-c1be069be94b71c1d85471314c0971bd091af194.tar.gz
samba-c1be069be94b71c1d85471314c0971bd091af194.tar.bz2
samba-c1be069be94b71c1d85471314c0971bd091af194.zip
libsmbconf:registry: publish smbconf_reg_parameter_is_valid()
So that this does not need to be duplicated.. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source3/lib/smbconf/smbconf_reg.c2
-rw-r--r--source3/lib/smbconf/smbconf_reg.h5
2 files changed, 6 insertions, 1 deletions
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_ */