summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-08-11 13:36:48 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 22:32:43 +1000
commit2a93814592f8177da38a6459bd447fab8575f4e3 (patch)
treee462625818698211cccb36e93b7a6b7e8f8fa60d /source4/script
parent837230f85e12e72186dacfb97fe2dbf8a37d28f0 (diff)
downloadsamba-2a93814592f8177da38a6459bd447fab8575f4e3.tar.gz
samba-2a93814592f8177da38a6459bd447fab8575f4e3.tar.bz2
samba-2a93814592f8177da38a6459bd447fab8575f4e3.zip
s4-param: move back to auto-generation of loadparm prototypes
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/mkproto.pl6
1 files changed, 3 insertions, 3 deletions
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;