From 8e9766289972ecf3f4bcaa1a9ed118bba5fea208 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 8 Apr 2008 01:56:32 +0200 Subject: 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) --- source3/lib/smbconf/smbconf_private.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/lib/smbconf/smbconf_private.h') diff --git a/source3/lib/smbconf/smbconf_private.h b/source3/lib/smbconf/smbconf_private.h index 44229e26ec..1f26fca1ea 100644 --- a/source3/lib/smbconf/smbconf_private.h +++ b/source3/lib/smbconf/smbconf_private.h @@ -51,6 +51,12 @@ struct smbconf_ops { char **valstr); WERROR (*delete_parameter)(struct smbconf_ctx *ctx, const char *service, const char *param); + WERROR (*get_includes)(struct smbconf_ctx *ctx, + const char *service, + uint32_t *num_includes, char ***includes); + WERROR (*set_includes)(struct smbconf_ctx *ctx, + const char *service, + uint32_t num_includes, const char **includes); }; struct smbconf_ctx { -- cgit