mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
libsmbconf: add talloc context to the get_includes methods.
Michael
This commit is contained in:
parent
e86eb375d9
commit
ed535b6b30
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user