[SCM] Samba Shared Repository - branch master updated - 216c788b0cef379cf0e3edff7b28819ffe06a740

Günther Deschner gd at samba.org
Fri Nov 14 23:33:38 GMT 2008


The branch, master has been updated
       via  216c788b0cef379cf0e3edff7b28819ffe06a740 (commit)
       via  cf06b75f0a0e7d0513ab1128a4d189c74097216f (commit)
      from  3c98d5bd987358b1cbeb81fa8db37b97492cf0cc (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 216c788b0cef379cf0e3edff7b28819ffe06a740
Author: Günther Deschner <gd at samba.org>
Date:   Fri Nov 14 23:28:07 2008 +0100

    pidl: skip generation of noopnum functions in generated s3 server.
    
    Guenther

commit cf06b75f0a0e7d0513ab1128a4d189c74097216f
Author: Günther Deschner <gd at samba.org>
Date:   Fri Nov 14 22:15:30 2008 +0100

    pidl: do not generate cli_ functions for noopnum flaged functions.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm |    5 ++++-
 pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm |    7 ++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
index 2a23fad..4109ce9 100644
--- a/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
+++ b/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
@@ -215,7 +215,10 @@ sub ParseInterface($$)
 
 	$self->pidl_hdr("#ifndef __CLI_$uif\__");
 	$self->pidl_hdr("#define __CLI_$uif\__");
-	$self->ParseFunction($if->{NAME}, $_) foreach (@{$if->{FUNCTIONS}});
+	foreach (@{$if->{FUNCTIONS}}) {
+		next if ($_->{PROPERTIES}{noopnum});
+		$self->ParseFunction($if->{NAME}, $_);
+	}
 	$self->pidl_hdr("#endif /* __CLI_$uif\__ */");
 }
 
diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index 6034fb6..e5d8f1c 100644
--- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
@@ -205,7 +205,11 @@ sub ParseInterface($)
 
 	pidl_hdr "#ifndef __SRV_$uif\__";
 	pidl_hdr "#define __SRV_$uif\__";
-	ParseFunction($if, $_) foreach (@{$if->{FUNCTIONS}});
+
+	foreach (@{$if->{FUNCTIONS}}) {
+		next if ($_->{PROPERTIES}{noopnum});
+		ParseFunction($if, $_);
+	}
 
 	pidl "";
 	pidl "/* Tables */";
@@ -214,6 +218,7 @@ sub ParseInterface($)
 	indent;
 
 	foreach (@{$if->{FUNCTIONS}}) {
+		next if ($_->{PROPERTIES}{noopnum});
 		pidl "{\"" . uc($_->{NAME}) . "\", NDR_" . uc($_->{NAME}) . ", api_$_->{NAME}},";
 	}
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list