mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
4a65969e11
commit
c1be069be9
@ -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[] = {
|
||||
|
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user