diff options
author | Michael Adam <obnox@samba.org> | 2013-09-22 10:27:38 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-09-24 07:44:28 +0200 |
commit | c1be069be94b71c1d85471314c0971bd091af194 (patch) | |
tree | c61214120b43385d3c9daedd6dc2478f6790db20 /source3/lib/smbconf | |
parent | 4a65969e11d3bc7da62afec82de9f6d51d5e6a08 (diff) | |
download | samba-c1be069be94b71c1d85471314c0971bd091af194.tar.gz |
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>
Diffstat (limited to 'source3/lib/smbconf')
-rw-r--r-- | source3/lib/smbconf/smbconf_reg.c | 2 | ||||
-rw-r--r-- | source3/lib/smbconf/smbconf_reg.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c index 6848a731ca1..696dd1f8238 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 2c49057a946..a3f343f6946 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_ */ |