summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-07 20:33:55 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-08 11:23:23 +0200
commit6b2749f8a9f527c1d52ba76566c661cab30b59c6 (patch)
treee2a07d6c5bd59d387c27ebd926841dad701f9a01 /source4/script
parent198ad4df31e5e4ab177d0abb851cb5c0c527f8d4 (diff)
downloadsamba-6b2749f8a9f527c1d52ba76566c661cab30b59c6.tar.gz
samba-6b2749f8a9f527c1d52ba76566c661cab30b59c6.tar.bz2
samba-6b2749f8a9f527c1d52ba76566c661cab30b59c6.zip
param: Add hooks to s3 parm_struct and the parameters void * pointer
This is to that the pyparam hooks can use the hooks to connect with the s3 loadparm system. This now also includes per-service parameters. Andrew Bartlett
Diffstat (limited to 'source4/script')
-rw-r--r--source4/script/mks3param.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/script/mks3param.pl b/source4/script/mks3param.pl
index 2d99ad59a9..dee3da192f 100644
--- a/source4/script/mks3param.pl
+++ b/source4/script/mks3param.pl
@@ -85,7 +85,10 @@ 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);");
+ $file->("\tconst char * (*get_parametric)(struct loadparm_service *, const char *type, const char *option);\n");
+ $file->("\tstruct parm_struct * (*get_parm_struct)(const char *param_name);\n");
+ $file->("\tvoid * (*get_parm_ptr)(struct loadparm_service *service, struct parm_struct *parm);\n");
+ $file->("\tstruct loadparm_service * (*get_service)(const char *service_name);\n");
}
sub print_footer($$)