libsmbconf:registry: publish smbconf_reg_parameter_is_valid()
authorMichael Adam <obnox@samba.org>
Sun, 22 Sep 2013 08:27:38 +0000 (10:27 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 24 Sep 2013 05:44:28 +0000 (07:44 +0200)
So that this does not need to be duplicated..

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/smbconf/smbconf_reg.c
source3/lib/smbconf/smbconf_reg.h

index 6848a731ca1958fbe3db70475721c1924a405605..696dd1f82382bb0caa08d2224e0d877485efc1fd 100644 (file)
@@ -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[] = {
index 2c49057a94672f1a42fd2a3a5d42372bcfe4452c..a3f343f6946c0a2dc17633bc45e45822611d6368 100644 (file)
@@ -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_  */