diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-10-15 12:07:17 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-11-27 10:25:31 +0000 |
commit | 063c4b25b1529987eb2e59ac53cd0ad23a8f5669 (patch) | |
tree | c0793735b8e697f42f627c39e9870a870bb2ef54 /source3/include | |
parent | 741bbfd252c272f796d535d653c39abee3569c93 (diff) | |
download | samba-063c4b25b1529987eb2e59ac53cd0ad23a8f5669.tar.gz |
s3:param: split out loadparm_s3_global_substitution from lp_string()
The idea is to get rid of the global state that's
currently used for the substitution in lp_string().
In the end all callers need to pass an explicit
const struct loadparm_substitution *sub_ctx,
which contains all relevant information
for the substitution. At that point lp_string() can be removed.
For now we provide loadparm_s3_global_substitution()
for callers to keep the current bahavior unchanged.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index c097ab19d14..15ed176d11c 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -731,6 +731,8 @@ NTSTATUS trust_pw_change(struct netlogon_creds_cli_context *context, /* The following definitions come from param/loadparm.c */ +const struct loadparm_substitution *loadparm_s3_global_substitution(void); + #include "source3/param/param_proto.h" char *lp_servicename(TALLOC_CTX *ctx, int); |