mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
libsmbconf: add "_global_" wrappers for get/set_includes.
These use the usual global_check like the other global wrappers. Michael
This commit is contained in:
parent
1ca5afe58c
commit
ce1b2f5508
@ -349,6 +349,21 @@ WERROR smbconf_get_includes(struct smbconf_ctx *ctx,
|
||||
includes);
|
||||
}
|
||||
|
||||
WERROR smbconf_get_global_includes(struct smbconf_ctx *ctx,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
uint32_t *num_includes, char ***includes)
|
||||
{
|
||||
WERROR werr;
|
||||
|
||||
werr = smbconf_global_check(ctx);
|
||||
if (W_ERROR_IS_OK(werr)) {
|
||||
werr = smbconf_get_includes(ctx, mem_ctx, GLOBAL_NAME,
|
||||
num_includes, includes);
|
||||
}
|
||||
|
||||
return werr;
|
||||
}
|
||||
|
||||
WERROR smbconf_set_includes(struct smbconf_ctx *ctx,
|
||||
const char *service,
|
||||
uint32_t num_includes, const char **includes)
|
||||
@ -359,3 +374,18 @@ WERROR smbconf_set_includes(struct smbconf_ctx *ctx,
|
||||
|
||||
return ctx->ops->set_includes(ctx, service, num_includes, includes);
|
||||
}
|
||||
|
||||
WERROR smbconf_set_global_includes(struct smbconf_ctx *ctx,
|
||||
uint32_t num_includes,
|
||||
const char **includes)
|
||||
{
|
||||
WERROR werr;
|
||||
|
||||
werr = smbconf_global_check(ctx);
|
||||
if (W_ERROR_IS_OK(werr)) {
|
||||
werr = smbconf_set_includes(ctx, GLOBAL_NAME,
|
||||
num_includes, includes);
|
||||
}
|
||||
|
||||
return werr;
|
||||
}
|
||||
|
@ -90,8 +90,14 @@ WERROR smbconf_get_includes(struct smbconf_ctx *ctx,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
const char *service,
|
||||
uint32_t *num_includes, char ***includes);
|
||||
WERROR smbconf_get_global_includes(struct smbconf_ctx *ctx,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
uint32_t *num_includes, char ***includes);
|
||||
WERROR smbconf_set_includes(struct smbconf_ctx *ctx,
|
||||
const char *service,
|
||||
uint32_t num_includes, const char **includes);
|
||||
WERROR smbconf_set_global_includes(struct smbconf_ctx *ctx,
|
||||
uint32_t num_includes,
|
||||
const char **includes);
|
||||
|
||||
#endif /* _LIBSMBCONF_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user