diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-01 10:30:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:09 -0500 |
commit | 90067934cd3195df80f8b1e614629d51fffcb38b (patch) | |
tree | 8229732147ad755c5015c9bc2c5a270d47f6c75e /source4/torture/rpc | |
parent | 668ecaa325e827f2875295b121bbfc083702b77e (diff) | |
download | samba-90067934cd3195df80f8b1e614629d51fffcb38b.tar.gz samba-90067934cd3195df80f8b1e614629d51fffcb38b.tar.bz2 samba-90067934cd3195df80f8b1e614629d51fffcb38b.zip |
r3428: switched to using minimal includes for the auto-generated RPC code.
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)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/atsvc.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/autoidl.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/bind.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/dcom.c | 2 | ||||
-rw-r--r-- | source4/torture/rpc/dfs.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/drsuapi.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/echo.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/epmapper.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/eventlog.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/lsa.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/mgmt.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/netlogon.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/oxidresolve.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/remact.c | 2 | ||||
-rw-r--r-- | source4/torture/rpc/samr.c | 2 | ||||
-rw-r--r-- | source4/torture/rpc/scanner.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/schannel.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/spoolss.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/srvsvc.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/svcctl.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/testjoin.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/winreg.c | 1 | ||||
-rw-r--r-- | source4/torture/rpc/wkssvc.c | 1 |
23 files changed, 26 insertions, 0 deletions
diff --git a/source4/torture/rpc/atsvc.c b/source4/torture/rpc/atsvc.c index 52ac53e58b..3d28fa775e 100644 --- a/source4/torture/rpc/atsvc.c +++ b/source4/torture/rpc/atsvc.c @@ -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) { diff --git a/source4/torture/rpc/autoidl.c b/source4/torture/rpc/autoidl.c index b8e18affb5..619779302b 100644 --- a/source4/torture/rpc/autoidl.c +++ b/source4/torture/rpc/autoidl.c @@ -21,6 +21,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_drsuapi.h" #if 1 diff --git a/source4/torture/rpc/bind.c b/source4/torture/rpc/bind.c index a4f3030bf6..61093d6a89 100644 --- a/source4/torture/rpc/bind.c +++ b/source4/torture/rpc/bind.c @@ -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 diff --git a/source4/torture/rpc/dcom.c b/source4/torture/rpc/dcom.c index 13f24c9d00..f44ce96658 100644 --- a/source4/torture/rpc/dcom.c +++ b/source4/torture/rpc/dcom.c @@ -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) { diff --git a/source4/torture/rpc/dfs.c b/source4/torture/rpc/dfs.c index ed7e3ec3a9..dd3227c2c1 100644 --- a/source4/torture/rpc/dfs.c +++ b/source4/torture/rpc/dfs.c @@ -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) diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c index 9981b24258..1b4c0d2305 100644 --- a/source4/torture/rpc/drsuapi.c +++ b/source4/torture/rpc/drsuapi.c @@ -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) diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c index 342255f102..441a4835f2 100644 --- a/source4/torture/rpc/echo.c +++ b/source4/torture/rpc/echo.c @@ -20,6 +20,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_echo.h" /* diff --git a/source4/torture/rpc/epmapper.c b/source4/torture/rpc/epmapper.c index b1076e64c6..fa0199a3c6 100644 --- a/source4/torture/rpc/epmapper.c +++ b/source4/torture/rpc/epmapper.c @@ -20,6 +20,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_epmapper.h" /* diff --git a/source4/torture/rpc/eventlog.c b/source4/torture/rpc/eventlog.c index dfa9fc7a51..a98b3e9e79 100644 --- a/source4/torture/rpc/eventlog.c +++ b/source4/torture/rpc/eventlog.c @@ -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) { diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index ed82c731bb..8c9675457e 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -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) { diff --git a/source4/torture/rpc/mgmt.c b/source4/torture/rpc/mgmt.c index 4340bde691..8cf8bfdf37 100644 --- a/source4/torture/rpc/mgmt.c +++ b/source4/torture/rpc/mgmt.c @@ -20,6 +20,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_mgmt.h" /* diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 7ddd8da0a7..6971193f92 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -23,6 +23,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_netlogon.h" static const char *machine_password; diff --git a/source4/torture/rpc/oxidresolve.c b/source4/torture/rpc/oxidresolve.c index a4ad897baa..ce7563bee8 100644 --- a/source4/torture/rpc/oxidresolve.c +++ b/source4/torture/rpc/oxidresolve.c @@ -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) { diff --git a/source4/torture/rpc/remact.c b/source4/torture/rpc/remact.c index 1136f68025..2fbb5de33e 100644 --- a/source4/torture/rpc/remact.c +++ b/source4/torture/rpc/remact.c @@ -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" diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index 544d147a17..b19c3e2993 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -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" diff --git a/source4/torture/rpc/scanner.c b/source4/torture/rpc/scanner.c index f93ea0419a..c0415c2058 100644 --- a/source4/torture/rpc/scanner.c +++ b/source4/torture/rpc/scanner.c @@ -21,6 +21,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_mgmt.h" /* work out how many calls there are for an interface diff --git a/source4/torture/rpc/schannel.c b/source4/torture/rpc/schannel.c index 1336eb0552..3355786d35 100644 --- a/source4/torture/rpc/schannel.c +++ b/source4/torture/rpc/schannel.c @@ -21,6 +21,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_samr.h" #define TEST_MACHINE_NAME "schanneltest" diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 3156ac7b3b..7d1718acaf 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -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) diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c index 53cf2a7b61..4ddbbc7289 100644 --- a/source4/torture/rpc/srvsvc.c +++ b/source4/torture/rpc/srvsvc.c @@ -20,6 +20,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_srvsvc.h" /**************************/ /* srvsvc_NetCharDev */ diff --git a/source4/torture/rpc/svcctl.c b/source4/torture/rpc/svcctl.c index 148ed38e5f..fd4dcf7894 100644 --- a/source4/torture/rpc/svcctl.c +++ b/source4/torture/rpc/svcctl.c @@ -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) { diff --git a/source4/torture/rpc/testjoin.c b/source4/torture/rpc/testjoin.c index b81199d74d..604c8e5267 100644 --- a/source4/torture/rpc/testjoin.c +++ b/source4/torture/rpc/testjoin.c @@ -26,6 +26,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_samr.h" struct test_join { struct dcerpc_pipe *p; diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c index fa08d1a69e..379653ddf7 100644 --- a/source4/torture/rpc/winreg.c +++ b/source4/torture/rpc/winreg.c @@ -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) { diff --git a/source4/torture/rpc/wkssvc.c b/source4/torture/rpc/wkssvc.c index d8552d5fa2..baa1f6bfd8 100644 --- a/source4/torture/rpc/wkssvc.c +++ b/source4/torture/rpc/wkssvc.c @@ -20,6 +20,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_wkssvc.h" static BOOL test_NetWkstaGetInfo(struct dcerpc_pipe *p, |