r3428: switched to using minimal includes for the auto-generated RPC code.
authorAndrew Tridgell <tridge@samba.org>
Mon, 1 Nov 2004 10:30:34 +0000 (10:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:09 +0000 (13:05 -0500)
The thing that finally convinced me that minimal includes was worth
pursuing for rpc was a compiler (tcc) that failed to build Samba due
to reaching internal limits of the size of include files. Also the
fact that includes.h.gch was 16MB, which really seems excessive. This
patch brings it back to 12M, which is still too large, but
better. Note that this patch speeds up compile times for both the pch
and non-pch case.

This change also includes the addition iof a "depends()" option in our
IDL files, allowing you to specify that one IDL file depends on
another. This capability was needed for the auto-includes generation.
(This used to be commit b8f5fa8ac8e8725f3d321004f0aedf4246fc6b49)

69 files changed:
source4/auth/auth_sam.c
source4/auth/auth_util.c
source4/auth/auth_winbind.c
source4/build/pidl/header.pm
source4/build/pidl/parser.pm
source4/build/pidl/tables.pl
source4/client/client.c
source4/gtk/common/select.c
source4/gtk/tools/gepdump.c
source4/gtk/tools/gwcrontab.c
source4/gtk/tools/gwsam.c
source4/include/includes.h
source4/include/structs.h [new file with mode: 0644]
source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c
source4/libcli/auth/gensec_krb5.c
source4/libnet/libnet_passwd.c
source4/libnet/libnet_time.c
source4/librpc/idl/misc.idl
source4/librpc/idl/netlogon.idl
source4/librpc/idl/oxidresolver.idl
source4/librpc/idl/remact.idl
source4/librpc/idl/samr.idl
source4/librpc/idl/schannel.idl
source4/librpc/idl/winreg.idl
source4/librpc/ndr/ndr_spoolss_buf.c
source4/librpc/rpc/dcerpc.c
source4/librpc/rpc/dcerpc_schannel.c
source4/librpc/rpc/dcerpc_sock.c
source4/librpc/rpc/dcerpc_util.c
source4/param/loadparm.c
source4/rpc_server/dcerpc_server.c
source4/rpc_server/dcom/oxidresolver.c
source4/rpc_server/drsuapi/dcesrv_drsuapi.c
source4/rpc_server/drsuapi/drsuapi_cracknames.c
source4/rpc_server/echo/rpc_echo.c
source4/rpc_server/epmapper/rpc_epmapper.c
source4/rpc_server/lsa/dcesrv_lsa.c
source4/rpc_server/netlogon/dcerpc_netlogon.c
source4/rpc_server/samr/dcesrv_samr.c
source4/rpc_server/samr/samr_password.c
source4/rpc_server/samr/samr_utils.c
source4/rpc_server/spoolss/dcesrv_spoolss.c
source4/rpc_server/srvsvc/dcesrv_srvsvc.c
source4/rpc_server/winreg/rpc_winreg.c
source4/rpc_server/wkssvc/dcesrv_wkssvc.c
source4/torture/local/binding_string.c
source4/torture/rpc/atsvc.c
source4/torture/rpc/autoidl.c
source4/torture/rpc/bind.c
source4/torture/rpc/dcom.c
source4/torture/rpc/dfs.c
source4/torture/rpc/drsuapi.c
source4/torture/rpc/echo.c
source4/torture/rpc/epmapper.c
source4/torture/rpc/eventlog.c
source4/torture/rpc/lsa.c
source4/torture/rpc/mgmt.c
source4/torture/rpc/netlogon.c
source4/torture/rpc/oxidresolve.c
source4/torture/rpc/remact.c
source4/torture/rpc/samr.c
source4/torture/rpc/scanner.c
source4/torture/rpc/schannel.c
source4/torture/rpc/spoolss.c
source4/torture/rpc/srvsvc.c
source4/torture/rpc/svcctl.c
source4/torture/rpc/testjoin.c
source4/torture/rpc/winreg.c
source4/torture/rpc/wkssvc.c

index bae13bd996b36523cb67677f1700ff3a601be349..1530165eb1b246d90ad8d68cbc55e2ca5b3e6690 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_AUTH
index ef008d62c5fbda17f83403da33218bde509c4253..3565fbd0dc5e5c56a57385e2d4c2e466e5cf3cc0 100644 (file)
@@ -22,6 +22,8 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_samr.h"
+#include "librpc/gen_ndr/ndr_netlogon.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_AUTH
index c37f65f44152844da828db7721031d86838bb199..2f54adcdfd9a8e124d2611febacf1adf61676708 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_netlogon.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_AUTH
index 58707a90a574162af23e345f732567b9d63e71df..cc14942f0c284372c4a660a2f70e1e3f25022dc9 100644 (file)
@@ -320,6 +320,13 @@ sub HeaderInterface($)
     $res .= "#ifndef _HEADER_NDR_$interface->{NAME}\n";
     $res .= "#define _HEADER_NDR_$interface->{NAME}\n\n";
 
+    if (defined $interface->{PROPERTIES}->{depends}) {
+           my @d = split / /, $interface->{PROPERTIES}->{depends};
+           foreach my $i (@d) {
+                   $res .= "#include \"librpc/gen_ndr/ndr_$i\.h\"\n";
+           }
+    }
+
     if (defined $interface->{PROPERTIES}->{uuid}) {
            my $name = uc $interface->{NAME};
            $res .= "#define DCERPC_$name\_UUID " . 
index cec972911ee1f22e78184d4542c9a31c78455615..c52be637ec5d42ef030cff44c5c3a3009a9a565c 100644 (file)
@@ -1563,11 +1563,18 @@ sub Parse($$)
 {
        my($idl) = shift;
        my($filename) = shift;
+       my $h_filename = $filename;
+
+       if ($h_filename =~ /(.*)\.c/) {
+               $h_filename = "$1.h";
+       }
 
        open(OUT, ">$filename") || die "can't open $filename";    
 
        pidl "/* parser auto-generated by pidl */\n\n";
-       pidl "#include \"includes.h\"\n\n";
+       pidl "#include \"includes.h\"\n";
+       pidl "#include \"$h_filename\"\n\n";
+
        foreach my $x (@{$idl}) {
                if ($x->{TYPE} eq "INTERFACE") { 
                        needed::BuildNeeded($x);
index 5f760d4403fef9fda595065474a910ca0b37a176..8d43dff1461585e4f25625ad62cac5ba6cf68cfd 100755 (executable)
@@ -42,6 +42,14 @@ if ($opt_help) {
 }
 
 
+###################################
+# add include lines to tables.c
+sub process_include($)
+{
+       my $name = shift;
+       print TABLEC "#include \"$name\"\n";
+}
+
 ###################################
 # extract table entries from 1 file
 sub process_file($)
@@ -49,11 +57,10 @@ sub process_file($)
        my $filename = shift;
        open(FILE, $filename) || die "unable to open $filename\n";
 
-       print TABLEH "#include \"$filename\"\n";
-
        while (my $line = <FILE>) {
-               if ($line =~ /extern const struct dcerpc_interface_table (\w+);/) {
-                       print TABLEC "\t&$1,\n";
+               if ($line =~ /extern const struct dcerpc_interface_table dcerpc_table_(\w+);/) {
+                       print TABLEC "\t&dcerpc_table_$1,\n";
+                       print TABLEH "NTSTATUS dcerpc_$1\_init(void);\n";
                }
        }
 
@@ -70,7 +77,14 @@ open(TABLEC, ">$opt_output.c") || die "failed to open $opt_output.c\n";
 
 print TABLEC "
 #include \"includes.h\"
+";
 
+foreach my $filename (@ARGV) {
+       process_include($filename);
+}
+
+
+print TABLEC "
 /*
   generated by pidl IDL table generator
 */
index 3958f078e5cdf629a5bdc393f4b77f81f72deae6..bced80d596d224e974b4847cae6c4ffdb7b72d3d 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_srvsvc.h"
 #include "libcli/raw/libcliraw.h"
 
 #ifndef REGISTER
index ba17092cb97d0b2a0b3ba55680ded656b09f3308..bab21d38fe24ad99eb5c2738809fe2fb149de8d5 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 #include "gtk-smb.h"
 
 /* GtkSelectDomainDialog */
index 5232187644fd0fbc9c777eb3c8b49c32843b6888..c5c378c4656957b7533c739f8579f73c805e5e35 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_epmapper.h"
 #include "gtk/common/gtk-smb.h"
 
 /* 
index e651b78219d516d82397ac101cf76d374e3e06a7..f06b4fcbe8cad5e52079ee731c499f444c4edf11 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_atsvc.h"
 #include "gtk/common/gtk-smb.h"
 
 struct dcerpc_pipe *at_pipe = NULL;
index be9c5d1257cd80f94f13c806ba26a61e25448a89..829d4d50f6a165be2da994f2b82d0f9ea5ed28e7 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 #include "gtk/common/gtk-smb.h"
 
 struct policy_handle sam_handle;
index 7ff466b7d73af5a812214bb36b833fb4257b8768..b61429edd6f0c2ff2336a15a35fe8f5f1f32cc7d 100644 (file)
@@ -658,11 +658,12 @@ extern int errno;
 
 #include "mutex.h"
 
+#include "structs.h"
 #include "librpc/ndr/libndr.h"
+#include "librpc/ndr/ndr_sec.h"
 #include "librpc/gen_ndr/ndr_misc.h"
 #include "librpc/gen_ndr/ndr_dcerpc.h"
 #include "librpc/rpc/dcerpc.h"
-#include "librpc/ndr/ndr_sec.h"
 #include "librpc/gen_ndr/tables.h"
 
 #include "libcli/auth/ntlmssp.h"
diff --git a/source4/include/structs.h b/source4/include/structs.h
new file mode 100644 (file)
index 0000000..2757e6d
--- /dev/null
@@ -0,0 +1,50 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   Copyright (C) Andrew Tridgell 2004
+   
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+   
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+   
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+/*
+  this file contains pre-declarations of private structures to avoid the
+  "scope is only this definition or declaration" warning
+*/
+
+union spoolss_PrinterInfo;
+union spoolss_FormInfo;
+union spoolss_JobInfo;
+union spoolss_DriverInfo;
+union spoolss_PortInfo;
+
+struct MULTI_QI;
+struct COSERVERINFO;
+
+
+struct epm_floor;
+struct epm_tower;
+
+struct drsuapi_DsCrackNames;
+
+struct samr_ChangePasswordUser;
+struct samr_OemChangePasswordUser2;
+struct samr_ChangePasswordUser3;
+struct samr_ChangePasswordUser2;
+struct samr_CryptPassword;
+struct samr_CryptPasswordEx;
+
+struct netr_SamInfo3;
+struct netr_Authenticator;
+
index 27bd3ff957ef0181487d7d2827ae0f451f252dc6..f90b123bfc5681defb85b14c2fea29767362f915 100644 (file)
@@ -18,6 +18,7 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_winreg.h"
 
 /**
  * This is the RPC backend for the registry library.
index ea70b471e5eef6d46379ee22ab6d96850865e1bb..95cc6bacbe650d48729f8d308c5a895fa30ec0bd 100644 (file)
@@ -24,6 +24,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_krb5pac.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_AUTH
index 314ab5028a6b3d9721551fb4cedefb9375b0d19e..877dacfd04dcc32e17388492444a671295d3733f 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 
 /*
  * do a password change using DCERPC/SAMR calls
index f56e6480e9476d4a273da610c77c685e3933c945..6a5eec7c26979684dd3d803262040474535f512b 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_srvsvc.h"
 
 /*
  * get the remote time of a server via srvsvc_NetRemoteTOD
index 7fed02f5b13d06935e05bbe233d3ca12da1f324b..ce884b6c5ce8266c7d4bbe0522a684ebd03e5f74 100644 (file)
@@ -37,7 +37,16 @@ interface misc
        const string SID_BUILTIN_BACKUP_OPERATORS  = "S-1-5-32-551";
        const string SID_BUILTIN_REPLICATOR        = "S-1-5-32-552";
 
-       typedef [public,noprint] struct {
+       /* server roles */
+       typedef enum {
+               ROLE_STANDALONE    = 0,
+               ROLE_DOMAIN_MEMBER = 1,
+               ROLE_DOMAIN_BDC    = 2,
+               ROLE_DOMAIN_PDC    = 3
+       } samr_Role;
+
+
+       typedef [public,noprint,gensize] struct {
                uint32 time_low;
                uint16 time_mid;
                uint16 time_hi_and_version;
@@ -123,4 +132,22 @@ interface misc
        typedef [public, flag(NDR_PAHEX)] struct {
                uint8 hash[16];
        } samr_Password;
+
+       typedef [public,flag(NDR_PAHEX)] struct {
+               uint8 key[16];
+       } netr_UserSessionKey;
+
+       typedef [public,flag(NDR_PAHEX)] struct {
+               uint8 key[8];
+       } netr_LMSessionKey;
+
+       typedef [public, flag(NDR_PAHEX)] struct {
+               uint8 data[8];
+       } netr_Credential;
+
+       typedef [public] struct {
+               netr_Credential cred;
+               time_t timestamp;
+       } netr_Authenticator;
+
 }
index c98fa8f1e6a193d5d3728e9a6ee21695860b6ce3..b880698ffd3de22ace7dd43fdcad54409425c73f 100644 (file)
   uuid("12345678-1234-abcd-ef00-01234567cffb"),
   version(1.0),
   endpoint("ncacn_np:[\\pipe\\netlogon]","ncacn_ip_tcp:","ncalrpc:"),
-  pointer_default(unique)
+  pointer_default(unique),
+  depends(lsa,samr)
 ]
 
 interface netlogon
 {
-
+       typedef [public] struct {
+               [value(strlen_m(r->string)*2)]  uint16 size;
+               [value(r->size)]                uint16 length;
+               unistr_noterm *string;
+       } netr_String;
+       
        /*****************/
        /* Function 0x00 */
 
@@ -65,16 +71,6 @@ interface netlogon
        /*****************/
        /* Function 0x02 */
 
-       typedef [flag(NDR_PAHEX)] struct {
-               uint8 data[8];
-       } netr_Credential;
-
-       typedef struct {
-               [value(strlen_m(r->string)*2)]  uint16 size;
-               [value(r->size)]                uint16 length;
-               unistr_noterm *string;
-       } netr_String;
-       
        /* in netr_AcctLockStr size seems to be be 24, and rrenard thinks 
           that the structure of the bindata looks like this:
 
@@ -128,25 +124,12 @@ interface netlogon
                [case(6)] netr_NetworkInfo  *network;
        } netr_LogonLevel;
 
-       typedef struct {
-               netr_Credential cred;
-               time_t timestamp;
-       } netr_Authenticator;
-
-       typedef struct {
+       typedef [public] struct {
                uint32 rid;
                uint32 attributes;
        } netr_GroupMembership;
 
-       typedef [flag(NDR_PAHEX)] struct {
-               uint8 key[16];
-       } netr_UserSessionKey;
-
-       typedef [flag(NDR_PAHEX)] struct {
-               uint8 key[8];
-       } netr_LMSessionKey;
-
-       typedef struct {
+       typedef [public] struct {
                NTTIME last_logon;
                NTTIME last_logoff;
                NTTIME acct_expiry;
@@ -175,11 +158,11 @@ interface netlogon
                uint32 unknown[7];
        } netr_SamBaseInfo;
 
-       typedef struct {
+       typedef [public] struct {
                netr_SamBaseInfo base;
        } netr_SamInfo2;
 
-       typedef struct {
+       typedef [public] struct {
                dom_sid2 *sid;
                uint32 attribute;
        } netr_SidAttr;
index 4da6f9aa20d3d5f55e0788de876ff952e1fb7717..4e33b5a6391c03c18889f4bb11e4b1cf8aebea44 100644 (file)
@@ -16,7 +16,8 @@
        uuid("99fcfec4-5260-101b-bbcb-00aa0021347a"),
        helpstring("Object Exporter ID Resolver"),
        endpoint("ncacn_np:[\\pipe\\epmapper]", "ncacn_ip_tcp:[135]", "ncalrpc:"),
-       pointer_default(unique)
+       pointer_default(unique),
+       depends(dcom)
 ]
 interface IOXIDResolver
 {
index b9e73a2b14bc9a34bcdd0cfb0398c4391d765498..51e2b6d7359e2d482c39ba3ff739b19adf637703 100644 (file)
@@ -10,7 +10,8 @@
 
 [
        uuid("4d9f4ab8-7d1c-11cf-861e-0020af6e7c57"),
-       pointer_default(unique)
+       pointer_default(unique),
+       depends(dcom)
 ]
 interface IRemoteActivation
 {
index 0a6f53ff78e7e8d916ab9ce820b90147ea3fc058..4d41e389e6eb09505389529f827c4274af64801e 100644 (file)
@@ -11,7 +11,8 @@
 [ uuid("12345778-1234-abcd-ef00-0123456789ac"),
   version(1.0),
   endpoint("ncacn_np:[\\pipe\\samr]","ncacn_ip_tcp:", "ncalrpc:"),
-  pointer_default(unique)
+  pointer_default(unique),
+  depends(lsa)
 ] interface samr
 {
        /* account control (acct_flags) bits */
        /************************/
        /* Function    0x08     */
 
-       /* server roles */
-       typedef enum {
-               ROLE_STANDALONE    = 0,
-               ROLE_DOMAIN_MEMBER = 1,
-               ROLE_DOMAIN_BDC    = 2,
-               ROLE_DOMAIN_PDC    = 3
-       } samr_Role;
-
        typedef struct {
                uint16 min_password_len;
                uint16 password_history;
index 157634ef766560207c60dacb1d7f518f49e2e16e..d840d78ef9993fd51cca0638870a4786872cd346 100644 (file)
@@ -4,6 +4,9 @@
   schannel structures
 */
 
+[
+       depends(netlogon)
+]
 interface schannel
 {
        /*
index 05c0a3eaae0ad5430ba2bffc01fb076c9ed19b31..03b48be02a749bb36620f6e933d5d16eaef45c26 100644 (file)
@@ -8,7 +8,8 @@
   version(1.0),
   endpoint("ncacn_np:[\\pipe\\winreg]","ncacn_ip_tcp:","ncalrpc:"),
   pointer_default(unique),
-  helpstring("Remote Registry Service")
+  helpstring("Remote Registry Service"),
+  depends(lsa)
 ] interface winreg
 {
        typedef struct {
index 9b68ec7883943f7fcfecde024020ba30100bd181..0e515339415879b76f3d65dcc6e2a8d5e68d506a 100644 (file)
@@ -23,6 +23,7 @@
 
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_spoolss.h"
 
 NTSTATUS pull_spoolss_PrinterInfoArray(DATA_BLOB *blob, TALLOC_CTX *mem_ctx,
                                       uint32_t level, uint32_t count,
index 0375382ea6c4ca4895c0ff08704c0c3d9827dad4..2ba7c4fff3e464413f8d9c5cc9fc89c6802ef115 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_epmapper.h"
 
 /* initialise a dcerpc pipe. */
 struct dcerpc_pipe *dcerpc_pipe_init(void)
index b7eac60dbcdffde58cb2fe29840aee87d8a44966..d6fc7ad5116db1a6a7bed9657a863f7a4f9497c0 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_schannel.h"
 
 enum schannel_position {
        DCERPC_SCHANNEL_STATE_START = 0,
index e1dca6a6d9fd84f71bbb2bc87276e1a13a4c7feb..11d016d8819a86501757fa2b61c3fc658e538ade 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_epmapper.h"
 
 #define MIN_HDR_SIZE 16
 
index 4126dd9aa6e083137e701de97eae5cc3a27e5389..c484a2618c12b32007667d1b85b85aa73632c00b 100644 (file)
@@ -22,7 +22,7 @@
 */
 
 #include "includes.h"
-
+#include "librpc/gen_ndr/ndr_epmapper.h"
 
 /*
   find the pipe name for a local IDL interface
index e1f006d889abdf406859e73632fda23dad740c18..c4518d620f29d4e18a8d350180e35259968e2bc9 100644 (file)
@@ -53,6 +53,7 @@
  */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_svcctl.h"
 
 BOOL in_client = False;                /* Not in the client by default */
 static BOOL bLoaded = False;
index 59ea8321ff49697c630c93a0e3a1cc9eadfd1caa..652aa87f5a8a088ab7535c4774c33f480f24210e 100644 (file)
@@ -22,6 +22,9 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_epmapper.h"
+#include "librpc/gen_ndr/ndr_dcom.h"
+#include "librpc/gen_ndr/ndr_oxidresolver.h"
 
 /*
   see if two endpoints match
index 23de6a5d66c43a3c157138fec8603a457d37be87..ee6ce0718929fda42ee71279b125f94a005671e0 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_oxidresolver.h"
 
 
 /* 
index 42022dea016285a51ebe3a1a9dc867232f752adf..56d0acc88cc48aba9e4b4a8723429d5163c82f5a 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_drsuapi.h"
 #include "rpc_server/common/common.h"
 #include "rpc_server/drsuapi/dcesrv_drsuapi.h"
 
index 45b1b362c74f00af1878c10e57bf161e6724fe6e..b19bf22b782f5102131315dce15f12c2eb320239 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_drsuapi.h"
 #include "rpc_server/common/common.h"
 #include "rpc_server/drsuapi/dcesrv_drsuapi.h"
 
index 066bb2cdc1ef01569cc5753921b23b3660967acb..fe5e76fb947dcc5feee5de08cb9523ae50f1d60e 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_echo.h"
 
 
 static NTSTATUS echo_AddOne(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct echo_AddOne *r)
index 838b8abf2b903fcae85b1db357e4ac0313069f1e..dd2c74e836c0b1906656e572d9cc2e7eb3450594 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_epmapper.h"
 #include "rpc_server/common/common.h"
 
 typedef uint32_t error_status_t;
index f5bcae719b37a21fdeab520e170d00f5297d62d1..2c972db8ab60dfca0b57402e44eeaf2f5db8fff4 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_lsa.h"
 #include "rpc_server/common/common.h"
 
 /*
index bad0b36077b3791d1a4deedfdb40060d6a8babeb..61f0f58fbaf7a07c00f4bf8f3323e6b04cd65818 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_netlogon.h"
 #include "rpc_server/common/common.h"
 
 struct server_pipe_state {
index 00513cd0e622f7d8876fc5d918708fec901cdf87..572f5b08161aebf26e70745a8b947a0879c7c970 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 #include "rpc_server/common/common.h"
 #include "rpc_server/samr/dcesrv_samr.h"
 
index 282d83a1904013eb6fdde76aea623554565b4f96..60d5927207d8b1913d2b5827ccb0ca5c592bf6b7 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 #include "rpc_server/common/common.h"
 #include "rpc_server/samr/dcesrv_samr.h"
 
index f67f828b68d9e67b84a398ad29fdd0192394859f..30c5b0cf13e9d44344723f0a3da8c66906fdc901 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 
 /* 
 translated the ACB_CTRL Flags to UserFlags (userAccountControl) 
index ed9cd01842795cdfac96f41175f5525cd658c5cc..4654674744c65fd23a480df8145fe6b35b856201 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_spoolss.h"
 #include "rpc_server/common/common.h"
 #include "rpc_server/spoolss/dcesrv_spoolss.h"
 
index ad8a7f6db06f20b59e7c24c3f966708ea78ab438..ead0fba07d51ca8fea39d464760682f4672c3a1c 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_srvsvc.h"
 #include "rpc_server/common/common.h"
 
 /* 
index fcbbf124c04fb99080aa9b39083fefee02dcb1aa..39e5fe7ee5b8b6b087cad913ddf449a5fd0e9d8b 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_winreg.h"
 #include "rpc_server/common/common.h"
 
 enum handle_types { HTYPE_REGVAL, HTYPE_REGKEY };
index 1ba0f5fc6de3821020dd1233e531b76859f3d2c3..e3e446ef2c14f08e2e0984371d4592e0c1875352 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_wkssvc.h"
 #include "rpc_server/common/common.h"
 
 /* 
index da9478c6d8ed09e3f0547aae72d0dc4431cf4812..abf4555a229896031a06c44c02fcceffeb8e2316 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_epmapper.h"
 
 static BOOL test_BindingString(TALLOC_CTX *mem_ctx, const char *binding)
 {
index 52ac53e58bfccddf7c6f7a4adfbecd2853b8353a..3d28fa775e26254b541d9ef1bd946d4210580106 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_atsvc.h"
 
 static BOOL test_JobGetInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, uint32_t job_id)
 {
index b8e18affb532b42785b90a4c63f120f03439de8a..619779302bee38f8aa8f16e9873dd4d013e631ed 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_drsuapi.h"
 
 
 #if 1
index a4f3030bf62702aec649b8b16f0dc14876df45f6..61093d6a89b9c8174d8c52578e20ee52eab36de4 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_lsa.h"
 
 /*
   This test is 'bogus' in that it doesn't actually perform to the
index 13f24c9d00c66678fb2368a2f4c7380452456c3f..f44ce96658735ad16aa5523ac5d9e14b5254225a 100644 (file)
@@ -20,6 +20,8 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_dcom.h"
+#include "librpc/gen_ndr/ndr_oxidresolver.h"
 
 BOOL torture_rpc_dcom(void)
 {
index ed7e3ec3a9a07834c6e5f94a42b7468a745f4b5a..dd3227c2c16ee284ae2e7ce40acff4e2c46f99e4 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_dfs.h"
 
 
 static BOOL test_GetManagerVersion(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
index 9981b24258e7ff5305e6a67ae914ba6e1262d445..1b4c0d23053c0107ed9dcc743c75d6e89f10a736 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_drsuapi.h"
 
 static BOOL test_DsBind(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, 
                      struct policy_handle *bind_handle)
index 342255f102f1bb3e3828999f6b5e2d28bad1ec69..441a4835f2bf41e31f0c99b24d42f4b335460c23 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_echo.h"
 
 
 /*
index b1076e64c6e94e46d5b024ac84ccf6e39eb12855..fa0199a3c6083065a0a520aa788e8125e21f14fa 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_epmapper.h"
 
 
 /*
index dfa9fc7a51a2fe083cf979cc7ee85b414425fbfb..a98b3e9e79ff8ccdc8fb840fc772df3919df22e1 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_eventlog.h"
 
 static void init_eventlog_String(struct eventlog_String *name, const char *s)
 {
index ed82c731bbe7cbe7d1fa86971dec75939c99ada7..8c9675457e7655abbc72cff7eba20f81420b3170 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_lsa.h"
 
 static void init_lsa_Name(struct lsa_Name *name, const char *s)
 {
index 4340bde691368be50dc6d77a5b856eaaa7f40086..8cf8bfdf371dc470014f8a6d051ce912c0dfcbf4 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_mgmt.h"
 
 
 /*
index 7ddd8da0a7e719463ea8d5dc8f98297e890e951b..6971193f92ccf18120055eea5818eef7991eb584 100644 (file)
@@ -23,6 +23,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_netlogon.h"
 
 
 static const char *machine_password;
index a4ad897baa07c99b510666e5fd401a4442e305de..ce7563bee8725e795cbe01206f2ecc597b7c4f1f 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_oxidresolver.h"
 
 static int test_SimplePing(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, HYPER_T setid)
 {
index 1136f680252009289644fcb7565e9225e0c26564..2fbb5de33eae63182efa65ec85053d42cd0ffc86 100644 (file)
@@ -20,6 +20,8 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_remact.h"
+#include "librpc/gen_ndr/ndr_epmapper.h"
 
 #define CLSID_TEST "00000316-0000-0000-C000-000000000046"
 #define CLSID_SIMPLE "5e9ddec7-5767-11cf-beab-00aa006c3606"
index 544d147a1730aba320299fbca28741226e11b1d6..b19c3e2993704cd44887f385f9e85e4b17374f9b 100644 (file)
@@ -21,6 +21,8 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_lsa.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 
 #define TEST_ACCOUNT_NAME "samrtorturetest"
 #define TEST_ALIASNAME "samrtorturetestalias"
index f93ea0419a875b3975aff839f14dc0845edd2d6a..c0415c2058a19ca4c3ffb9122f5a5d18e88008ea 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_mgmt.h"
 
 /*
   work out how many calls there are for an interface
index 1336eb05524a4de4532574568666d2772ec3ed4e..3355786d3558ddaf7f870420b773969f9fdc8d2e 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 
 #define TEST_MACHINE_NAME "schanneltest"
 
index 3156ac7b3b65d0f00e98f220a5abb217b5ba10fe..7d1718acaf2119dca04e06dd4f90f157c36668ce 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_spoolss.h"
 
 static BOOL test_GetPrinter(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
                     struct policy_handle *handle)
index 53cf2a7b61c4751a47aaab567861a11d56d63479..4ddbbc72891b8efcebd59b5a2d63492c1999d7af 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_srvsvc.h"
 
 /**************************/
 /* srvsvc_NetCharDev      */
index 148ed38e5fcc3eb4878b4ae7c11bdaaeb1ff1423..fd4dcf7894ea72fc0ccbd75010c9ecd74cdf2115 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_svcctl.h"
 
 static BOOL test_EnumServicesStatus(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *h)
 {
index b81199d74de0797647099e9021ef1c3936444258..604c8e5267964ab1b7c078d08dfc73d27f3bb0d2 100644 (file)
@@ -26,6 +26,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 
 struct test_join {
        struct dcerpc_pipe *p;
index fa08d1a69e448b71ed6d487a5e1aafc850c7f597..379653ddf794d2e33ba232e05df4fd2711184ca9 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_winreg.h"
 
 static void init_winreg_String(struct winreg_String *name, const char *s)
 {
index d8552d5fa2b55b6248a66d8bb33eecd0f80dc9ee..baa1f6bfd88d96d29a368996398e61cf0d6883ee 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_wkssvc.h"
 
 
 static BOOL test_NetWkstaGetInfo(struct dcerpc_pipe *p,