diff options
author | Tim Potter <tpot@samba.org> | 2005-08-25 11:39:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:34 -0500 |
commit | 05065108f4da76e6152b9f75fc266d15c316c32d (patch) | |
tree | d66019327136f588551d372e03e05fd435fa4975 /source4/pidl/lib/Parse/Pidl | |
parent | 50004c6905613f66a112717e604bc6eaf93cb38d (diff) | |
download | samba-05065108f4da76e6152b9f75fc266d15c316c32d.tar.gz samba-05065108f4da76e6152b9f75fc266d15c316c32d.tar.bz2 samba-05065108f4da76e6152b9f75fc266d15c316c32d.zip |
r9612: Don't generate handoff code for idl files that don't implement a pipe
(e.g security.idl)
(This used to be commit 178d040dbb07f53c29e945a2109bb3c8f355e3d3)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm b/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm index a4c6ecdba0..016a95e01b 100644 --- a/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm +++ b/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm @@ -572,14 +572,17 @@ sub RegisterInterface($) 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($) |