#include "libcli/nbt/libnbt.h"
#include "libcli/util/proto.h"
-/* These headers are used by the NDR parsers. They are globally
- * 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"
+/* FIXME: This header should be included by pidl where necessary */
#include "librpc/ndr/ndr_compression.h"
#undef _PRINTF_ATTRIBUTE
authservice("ldap"),
helpstring("Active Directory Replication"),
pointer_default(unique),
- depends(security)
+ depends(security),
+ helper("librpc/ndr/ndr_drsuapi.h")
]
interface drsuapi
{
[
version(0.0),
pointer_default(unique),
- depends(security,netlogon)
+ depends(security,netlogon),
+ helper("librpc/ndr/ndr_krb5pac.h")
]
interface krb5pac
{
*/
[
- depends(security,svcctl)
+ depends(security,svcctl),
+ helper("libcli/nbt/nbtname.h")
] interface nbt
{
const int NBT_NAME_SERVICE_PORT = 137;
[
pointer_default(unique),
- depends(misc)
+ depends(misc),
+ helper("librpc/ndr/ndr_sec.h")
]
interface security
{
pointer_default(unique),
pointer_default_top(unique),
helpstring("Spooler SubSystem"),
- depends(security)
+ depends(security),
+ helper("librpc/ndr/ndr_spoolss_buf.h")
] interface spoolss
{
typedef struct {
param/param.h \
libcli/util/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
clean_pch:
"pointer_default" => ["INTERFACE"],
"pointer_default_top" => ["INTERFACE"],
"depends" => ["INTERFACE"],
+ "helper" => ["INTERFACE"],
"authservice" => ["INTERFACE"],
# dcom
}
}
+ if (defined $interface->{PROPERTIES}->{helper}) {
+ foreach (split / /, $interface->{PROPERTIES}->{helper}) {
+ pidl_hdr "#include $_";
+ }
+ }
+
if (defined $interface->{PROPERTIES}->{uuid}) {
my $name = uc $interface->{NAME};
pidl_hdr "#define DCERPC_$name\_UUID " .