From 54437f1e8a9274cb7afa3b850d709568414dff71 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 12 Sep 2008 19:55:49 +0200 Subject: More improvements. --- source4/pidl/lib/Parse/Pidl/Samba4/COM/Header.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/pidl/lib/Parse') diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/COM/Header.pm b/source4/pidl/lib/Parse/Pidl/Samba4/COM/Header.pm index bc592e7f80..855798b70b 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/COM/Header.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/COM/Header.pm @@ -130,6 +130,13 @@ sub Parse($$) $res .= "#include \"librpc/gen_ndr/orpc.h\"\n" . "#include \"$ndr_header\"\n\n"; + foreach (@{$idl}) + { + if ($_->{TYPE} eq "INTERFACE" && has_property($_, "object")) { + $res .="struct $_->{NAME};\n"; + } + } + foreach (@{$idl}) { if ($_->{TYPE} eq "INTERFACE" && has_property($_, "object")) { -- cgit