mirror of
https://github.com/samba-team/samba.git
synced 2025-12-03 04:23:50 +03:00
r25804: move including ndr_compression.h into HeaderInterface()
metze
This commit is contained in:
@@ -2392,14 +2392,18 @@ sub HeaderInclude
|
|||||||
# generate prototypes and defines for the interface definitions
|
# generate prototypes and defines for the interface definitions
|
||||||
# FIXME: these prototypes are for the DCE/RPC client functions, not the
|
# FIXME: these prototypes are for the DCE/RPC client functions, not the
|
||||||
# NDR parser and so do not belong here, technically speaking
|
# NDR parser and so do not belong here, technically speaking
|
||||||
sub HeaderInterface($$)
|
sub HeaderInterface($$$)
|
||||||
{
|
{
|
||||||
my($self,$interface) = @_;
|
my($self,$interface,$needed) = @_;
|
||||||
|
|
||||||
my $count = 0;
|
my $count = 0;
|
||||||
|
|
||||||
$self->pidl_hdr(choose_header("librpc/ndr/libndr.h", "ndr.h"));
|
$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")) {
|
if (has_property($interface, "object")) {
|
||||||
$self->pidl(choose_header("librpc/gen_ndr/ndr_orpc.h", "ndr/orpc.h"));
|
$self->pidl(choose_header("librpc/gen_ndr/ndr_orpc.h", "ndr/orpc.h"));
|
||||||
}
|
}
|
||||||
@@ -2559,11 +2563,7 @@ sub ParseInterface($$$)
|
|||||||
|
|
||||||
$self->pidl_hdr("");
|
$self->pidl_hdr("");
|
||||||
|
|
||||||
if ($needed->{"compression"}) {
|
$self->HeaderInterface($interface, $needed);
|
||||||
$self->pidl(choose_header("librpc/ndr/ndr_compression.h", "ndr/compression.h"));
|
|
||||||
}
|
|
||||||
|
|
||||||
$self->HeaderInterface($interface);
|
|
||||||
|
|
||||||
# Typedefs
|
# Typedefs
|
||||||
foreach my $d (@{$interface->{TYPES}}) {
|
foreach my $d (@{$interface->{TYPES}}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user