summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf/smbconf_reg.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-08 01:56:32 +0200
committerMichael Adam <obnox@samba.org>2008-04-10 01:28:57 +0200
commit8e9766289972ecf3f4bcaa1a9ed118bba5fea208 (patch)
treec598d5fde42d7f62601c5512cd9ad4bb06957dfc /source3/lib/smbconf/smbconf_reg.c
parentdf6b68b07352a7265a3b6197a9334df77e44d0d2 (diff)
downloadsamba-8e9766289972ecf3f4bcaa1a9ed118bba5fea208.tar.gz
samba-8e9766289972ecf3f4bcaa1a9ed118bba5fea208.tar.bz2
samba-8e9766289972ecf3f4bcaa1a9ed118bba5fea208.zip
libsmbconf: add get_includes() and set_includes() to the API.
Includes have to get a special treatment, at least for registry. Includes are not like other smbconf parameters: they are some kind of metainformation. "include" has two effects when stated twice so it can not be stored boldly into registry, since there can only be one value named "include" in registry per key. I will provide special handling for includes for the registry backend. This patch provides the necessary methods in the smbconf API. Michael (This used to be commit e86eb375d9f83f73aeea0a16c8b43e2ef21a6e20)
Diffstat (limited to 'source3/lib/smbconf/smbconf_reg.c')
-rw-r--r--source3/lib/smbconf/smbconf_reg.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c
index 6d24aecbff..0f499e3146 100644
--- a/source3/lib/smbconf/smbconf_reg.c
+++ b/source3/lib/smbconf/smbconf_reg.c
@@ -776,6 +776,23 @@ done:
return werr;
}
+static WERROR smbconf_reg_get_includes(struct smbconf_ctx *ctx,
+ const char *service,
+ uint32_t *num_includes,
+ char ***includes)
+{
+ return WERR_NOT_SUPPORTED;
+}
+
+static WERROR smbconf_reg_set_includes(struct smbconf_ctx *ctx,
+ const char *service,
+ uint32_t num_includes,
+ const char **includes)
+{
+ return WERR_NOT_SUPPORTED;
+}
+
+
struct smbconf_ops smbconf_ops_reg = {
.init = smbconf_reg_init,
.shutdown = smbconf_reg_shutdown,
@@ -790,7 +807,9 @@ struct smbconf_ops smbconf_ops_reg = {
.delete_share = smbconf_reg_delete_share,
.set_parameter = smbconf_reg_set_parameter,
.get_parameter = smbconf_reg_get_parameter,
- .delete_parameter = smbconf_reg_delete_parameter
+ .delete_parameter = smbconf_reg_delete_parameter,
+ .get_includes = smbconf_reg_get_includes,
+ .set_includes = smbconf_reg_set_includes,
};