s3:param: split out loadparm_s3_global_substitution from lp_string()
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Oct 2019 10:07:17 +0000 (12:07 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:31 +0000 (10:25 +0000)
commit063c4b25b1529987eb2e59ac53cd0ad23a8f5669
treec0793735b8e697f42f627c39e9870a870bb2ef54
parent741bbfd252c272f796d535d653c39abee3569c93
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>
source3/include/proto.h
source3/param/loadparm.c