From 2a93814592f8177da38a6459bd447fab8575f4e3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 11 Aug 2010 13:36:48 +1000 Subject: s4-param: move back to auto-generation of loadparm prototypes --- source4/script/mkproto.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/script') diff --git a/source4/script/mkproto.pl b/source4/script/mkproto.pl index 59307881c4..4760e63bda 100755 --- a/source4/script/mkproto.pl +++ b/source4/script/mkproto.pl @@ -128,7 +128,7 @@ sub handle_loadparm($$) { my ($file,$line) = @_; - if ($line =~ /^_PUBLIC_ FN_(GLOBAL|LOCAL)_(CONST_STRING|STRING|BOOL|bool|CHAR|INTEGER|LIST)\((\w+),.*\)/o) { + if ($line =~ /^FN_(GLOBAL|LOCAL)_(CONST_STRING|STRING|BOOL|bool|CHAR|INTEGER|LIST)\((\w+),.*\)/o) { my $scope = $1; my $type = $2; my $name = $3; @@ -147,7 +147,7 @@ sub handle_loadparm($$) "LOCAL" => "struct loadparm_service *, struct loadparm_service *" ); - $file->("$tmap{$type}$name($smap{$scope});\n"); + $file->("$tmap{$type}lpcfg_$name($smap{$scope});\n"); } } @@ -190,7 +190,7 @@ sub process_file($$$) next if ($line =~ /^\/|[;]/); - if ($line =~ /^_PUBLIC_ FN_/) { + if ($line =~ /^FN_/) { handle_loadparm($public_file, $line); handle_loadparm($private_file, $line); next; -- cgit