svn commit: samba r9612 - in
branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal: .
tpot at samba.org
tpot at samba.org
Thu Aug 25 11:39:24 GMT 2005
Author: tpot
Date: 2005-08-25 11:39:23 +0000 (Thu, 25 Aug 2005)
New Revision: 9612
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9612
Log:
Don't generate handoff code for idl files that don't implement a pipe
(e.g security.idl)
Modified:
branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm
Changeset:
Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm
===================================================================
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm 2005-08-25 11:05:49 UTC (rev 9611)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm 2005-08-25 11:39:23 UTC (rev 9612)
@@ -572,14 +572,17 @@
sub RegisterInterfaceHandoff($)
{
my $x = shift;
- pidl_code "void proto_reg_handoff_dcerpc_$x->{NAME}(void)";
- pidl_code "{";
- indent;
- pidl_code "dcerpc_init_uuid(proto_dcerpc_$x->{NAME}, ett_dcerpc_$x->{NAME},";
- pidl_code "\t&uuid_dcerpc_$x->{NAME}, ver_dcerpc_$x->{NAME},";
- pidl_code "\t$x->{NAME}_dissectors, hf_$x->{NAME}_opnum);";
- deindent;
- pidl_code "}";
+
+ if (defined($x->{UUID})) {
+ pidl_code "void proto_reg_handoff_dcerpc_$x->{NAME}(void)";
+ pidl_code "{";
+ indent;
+ pidl_code "dcerpc_init_uuid(proto_dcerpc_$x->{NAME}, ett_dcerpc_$x->{NAME},";
+ pidl_code "\t&uuid_dcerpc_$x->{NAME}, ver_dcerpc_$x->{NAME},";
+ pidl_code "\t$x->{NAME}_dissectors, hf_$x->{NAME}_opnum);";
+ deindent;
+ pidl_code "}";
+ }
}
sub ProcessInterface($)
More information about the samba-cvs
mailing list