summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-10-14 15:36:18 +1300
committerStefan Metzmacher <metze@samba.org>2013-10-16 09:29:54 +0200
commit22ca0404fc973a6f716f76e7b4bbfa4656f33ab3 (patch)
tree650c4e7f19afcd546cb5a1eb7805a1b12efa1bda /script
parentd711a011448718e055ffa2af3470f0d961234cd3 (diff)
downloadsamba-22ca0404fc973a6f716f76e7b4bbfa4656f33ab3.tar.gz
samba-22ca0404fc973a6f716f76e7b4bbfa4656f33ab3.tar.bz2
samba-22ca0404fc973a6f716f76e7b4bbfa4656f33ab3.zip
param: Skip generating hooks for local and string parameters
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'script')
-rw-r--r--script/mks3param.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/script/mks3param.pl b/script/mks3param.pl
index 4222ca5744..799958c0b0 100644
--- a/script/mks3param.pl
+++ b/script/mks3param.pl
@@ -108,7 +108,14 @@ sub handle_loadparm($$)
{
my ($file,$line) = @_;
- if ($line =~ /^FN_(GLOBAL|LOCAL)_(CONST_STRING|STRING|BOOL|bool|CHAR|INTEGER|LIST)\((\w+),.*\)/o) {
+ # Local parameters don't need the ->s3_fns because the struct
+ # loadparm_service is shared and lpcfg_service() checks the ->s3_fns
+ # hook
+ #
+ # STRING isn't handled as we do not yet have a way to pass in a memory context nor
+ # do we have a good way of dealing with the % macros yet.
+
+ if ($line =~ /^FN_(GLOBAL)_(CONST_STRING|BOOL|bool|CHAR|INTEGER|LIST)\((\w+),.*\)/o) {
my $scope = $1;
my $type = $2;
my $name = $3;