1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

r14361: Support 'helper' attribute in pidl and use it.

Remove some headers from include/includes.h (they're now only included
in the file they are used)
(This used to be commit 7213b7498eacac2c2cd03cf6aace376ce153cc7c)
This commit is contained in:
Jelmer Vernooij 2006-03-14 00:12:58 +00:00 committed by Gerald (Jerry) Carter
parent 2b06074b25
commit 9865048bf4
9 changed files with 18 additions and 18 deletions

View File

@ -125,14 +125,7 @@ enum brl_type {
#include "libcli/nbt/libnbt.h" #include "libcli/nbt/libnbt.h"
#include "libcli/util/proto.h" #include "libcli/util/proto.h"
/* These headers are used by the NDR parsers. They are globally /* FIXME: This header should be included by pidl where necessary */
* included at the moment, but will be included by the autogenerated
* NDR parsers later on and removed from here. */
#include "libcli/nbt/nbtname.h"
#include "librpc/ndr/ndr_sec.h"
#include "librpc/ndr/ndr_drsuapi.h"
#include "librpc/ndr/ndr_spoolss_buf.h"
#include "librpc/ndr/ndr_krb5pac.h"
#include "librpc/ndr/ndr_compression.h" #include "librpc/ndr/ndr_compression.h"
#undef _PRINTF_ATTRIBUTE #undef _PRINTF_ATTRIBUTE

View File

@ -7,7 +7,8 @@
authservice("ldap"), authservice("ldap"),
helpstring("Active Directory Replication"), helpstring("Active Directory Replication"),
pointer_default(unique), pointer_default(unique),
depends(security) depends(security),
helper("librpc/ndr/ndr_drsuapi.h")
] ]
interface drsuapi interface drsuapi
{ {

View File

@ -7,7 +7,8 @@
[ [
version(0.0), version(0.0),
pointer_default(unique), pointer_default(unique),
depends(security,netlogon) depends(security,netlogon),
helper("librpc/ndr/ndr_krb5pac.h")
] ]
interface krb5pac interface krb5pac
{ {

View File

@ -9,7 +9,8 @@
*/ */
[ [
depends(security,svcctl) depends(security,svcctl),
helper("libcli/nbt/nbtname.h")
] interface nbt ] interface nbt
{ {
const int NBT_NAME_SERVICE_PORT = 137; const int NBT_NAME_SERVICE_PORT = 137;

View File

@ -6,7 +6,8 @@
[ [
pointer_default(unique), pointer_default(unique),
depends(misc) depends(misc),
helper("librpc/ndr/ndr_sec.h")
] ]
interface security interface security
{ {

View File

@ -10,7 +10,8 @@
pointer_default(unique), pointer_default(unique),
pointer_default_top(unique), pointer_default_top(unique),
helpstring("Spooler SubSystem"), helpstring("Spooler SubSystem"),
depends(security) depends(security),
helper("librpc/ndr/ndr_spoolss_buf.h")
] interface spoolss ] interface spoolss
{ {
typedef struct { typedef struct {

View File

@ -236,11 +236,6 @@ include/includes.h: \
param/param.h \ param/param.h \
libcli/util/proto.h \ libcli/util/proto.h \
librpc/ndr/ndr_orpc_proto.h \ librpc/ndr/ndr_orpc_proto.h \
libcli/nbt/nbtname.h \
librpc/ndr/ndr_sec.h \
librpc/ndr/ndr_drsuapi.h \
librpc/ndr/ndr_spoolss_buf.h \
librpc/ndr/ndr_krb5pac.h \
librpc/ndr/ndr_compression.h librpc/ndr/ndr_compression.h
clean_pch: clean_pch:

View File

@ -750,6 +750,7 @@ my %property_list = (
"pointer_default" => ["INTERFACE"], "pointer_default" => ["INTERFACE"],
"pointer_default_top" => ["INTERFACE"], "pointer_default_top" => ["INTERFACE"],
"depends" => ["INTERFACE"], "depends" => ["INTERFACE"],
"helper" => ["INTERFACE"],
"authservice" => ["INTERFACE"], "authservice" => ["INTERFACE"],
# dcom # dcom

View File

@ -2244,6 +2244,12 @@ sub HeaderInterface($)
} }
} }
if (defined $interface->{PROPERTIES}->{helper}) {
foreach (split / /, $interface->{PROPERTIES}->{helper}) {
pidl_hdr "#include $_";
}
}
if (defined $interface->{PROPERTIES}->{uuid}) { if (defined $interface->{PROPERTIES}->{uuid}) {
my $name = uc $interface->{NAME}; my $name = uc $interface->{NAME};
pidl_hdr "#define DCERPC_$name\_UUID " . pidl_hdr "#define DCERPC_$name\_UUID " .