From 6b2749f8a9f527c1d52ba76566c661cab30b59c6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 7 Jul 2011 20:33:55 +1000 Subject: 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 --- source4/script/mks3param.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/script/mks3param.pl') 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($$) -- cgit