From ed535b6b30b5c9412803f6373eadc704de6de2f9 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 8 Apr 2008 10:16:03 +0200 Subject: [PATCH] libsmbconf: add talloc context to the get_includes methods. Michael --- source/lib/smbconf/smbconf.c | 4 +++- source/lib/smbconf/smbconf.h | 1 + source/lib/smbconf/smbconf_private.h | 1 + source/lib/smbconf/smbconf_reg.c | 1 + source/lib/smbconf/smbconf_txt_simple.c | 1 + 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/source/lib/smbconf/smbconf.c b/source/lib/smbconf/smbconf.c index 1ce761ebd4e..d5a334b9287 100644 --- a/source/lib/smbconf/smbconf.c +++ b/source/lib/smbconf/smbconf.c @@ -337,6 +337,7 @@ WERROR smbconf_delete_global_parameter(struct smbconf_ctx *ctx, } WERROR smbconf_get_includes(struct smbconf_ctx *ctx, + TALLOC_CTX *mem_ctx, const char *service, uint32_t *num_includes, char ***includes) { @@ -344,7 +345,8 @@ WERROR smbconf_get_includes(struct smbconf_ctx *ctx, return WERR_NO_SUCH_SERVICE; } - return ctx->ops->get_includes(ctx, service, num_includes, includes); + return ctx->ops->get_includes(ctx, mem_ctx, service, num_includes, + includes); } WERROR smbconf_set_includes(struct smbconf_ctx *ctx, diff --git a/source/lib/smbconf/smbconf.h b/source/lib/smbconf/smbconf.h index 626d48e9620..cd39758d3e7 100644 --- a/source/lib/smbconf/smbconf.h +++ b/source/lib/smbconf/smbconf.h @@ -87,6 +87,7 @@ WERROR smbconf_delete_parameter(struct smbconf_ctx *ctx, WERROR smbconf_delete_global_parameter(struct smbconf_ctx *ctx, const char *param); WERROR smbconf_get_includes(struct smbconf_ctx *ctx, + TALLOC_CTX *mem_ctx, const char *service, uint32_t *num_includes, char ***includes); WERROR smbconf_set_includes(struct smbconf_ctx *ctx, diff --git a/source/lib/smbconf/smbconf_private.h b/source/lib/smbconf/smbconf_private.h index 1f26fca1ea5..bed8f8e5edb 100644 --- a/source/lib/smbconf/smbconf_private.h +++ b/source/lib/smbconf/smbconf_private.h @@ -52,6 +52,7 @@ struct smbconf_ops { WERROR (*delete_parameter)(struct smbconf_ctx *ctx, const char *service, const char *param); WERROR (*get_includes)(struct smbconf_ctx *ctx, + TALLOC_CTX *mem_ctx, const char *service, uint32_t *num_includes, char ***includes); WERROR (*set_includes)(struct smbconf_ctx *ctx, diff --git a/source/lib/smbconf/smbconf_reg.c b/source/lib/smbconf/smbconf_reg.c index 0f499e3146d..5651357d0bc 100644 --- a/source/lib/smbconf/smbconf_reg.c +++ b/source/lib/smbconf/smbconf_reg.c @@ -777,6 +777,7 @@ done: } static WERROR smbconf_reg_get_includes(struct smbconf_ctx *ctx, + TALLOC_CTX *mem_ctx, const char *service, uint32_t *num_includes, char ***includes) diff --git a/source/lib/smbconf/smbconf_txt_simple.c b/source/lib/smbconf/smbconf_txt_simple.c index 9273b7947b9..faf7ebb2537 100644 --- a/source/lib/smbconf/smbconf_txt_simple.c +++ b/source/lib/smbconf/smbconf_txt_simple.c @@ -495,6 +495,7 @@ static WERROR smbconf_txt_delete_parameter(struct smbconf_ctx *ctx, } static WERROR smbconf_txt_get_includes(struct smbconf_ctx *ctx, + TALLOC_CTX *mem_ctx, const char *service, uint32_t *num_includes, char ***includes)