1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-02 00:23:50 +03:00

r25804: move including ndr_compression.h into HeaderInterface()

metze
This commit is contained in:
Stefan Metzmacher
2007-11-02 13:02:25 +01:00
parent 947fff9941
commit 2aecc1e9fd

View File

@@ -2392,14 +2392,18 @@ sub HeaderInclude
# generate prototypes and defines for the interface definitions
# FIXME: these prototypes are for the DCE/RPC client functions, not the
# NDR parser and so do not belong here, technically speaking
sub HeaderInterface($$)
sub HeaderInterface($$$)
{
my($self,$interface) = @_;
my($self,$interface,$needed) = @_;
my $count = 0;
$self->pidl_hdr(choose_header("librpc/ndr/libndr.h", "ndr.h"));
if ($needed->{"compression"}) {
$self->pidl(choose_header("librpc/ndr/ndr_compression.h", "ndr/compression.h"));
}
if (has_property($interface, "object")) {
$self->pidl(choose_header("librpc/gen_ndr/ndr_orpc.h", "ndr/orpc.h"));
}
@@ -2559,11 +2563,7 @@ sub ParseInterface($$$)
$self->pidl_hdr("");
if ($needed->{"compression"}) {
$self->pidl(choose_header("librpc/ndr/ndr_compression.h", "ndr/compression.h"));
}
$self->HeaderInterface($interface);
$self->HeaderInterface($interface, $needed);
# Typedefs
foreach my $d (@{$interface->{TYPES}}) {