summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-06 16:47:32 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-06 10:48:53 +0200
commitb9108cac529dac4b4b392fab4bac4fd0e6da1b4b (patch)
tree6afa91bd75615e3f41e5865f36723fc5d1242a27 /source4
parentd72b05cfe7d5c020fa32c8906f6185e1427e0a88 (diff)
downloadsamba-b9108cac529dac4b4b392fab4bac4fd0e6da1b4b.tar.gz
samba-b9108cac529dac4b4b392fab4bac4fd0e6da1b4b.tar.bz2
samba-b9108cac529dac4b4b392fab4bac4fd0e6da1b4b.zip
s3-s4-param: Add hooks for parametric options in the s3/s4 glue layer
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 6 10:48:53 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/param/loadparm.c5
-rw-r--r--source4/script/mks3param.pl1
2 files changed, 6 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 2e60ef93b2..fba09fa2c4 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -815,6 +815,11 @@ const char *lpcfg_get_parametric(struct loadparm_context *lp_ctx,
if (lp_ctx == NULL)
return NULL;
+ if (lp_ctx->s3_fns) {
+ SMB_ASSERT(service == NULL);
+ return lp_ctx->s3_fns->get_parametric(type, option);
+ }
+
data = (service == NULL ? lp_ctx->globals->param_opt : service->param_opt);
vfskey_tmp = talloc_asprintf(NULL, "%s:%s", type, option);
diff --git a/source4/script/mks3param.pl b/source4/script/mks3param.pl
index db494e7eb4..76322b1076 100644
--- a/source4/script/mks3param.pl
+++ b/source4/script/mks3param.pl
@@ -84,6 +84,7 @@ sub print_header($$)
$file->("/* This file was automatically generated by mks3param.pl. DO NOT EDIT */\n\n");
$file->("struct loadparm_s3_context\n");
$file->("{\n");
+ $file->("\tconst char * (*get_parametric)(const char *type, const char *option);");
}
sub print_footer($$)