diff options
author | Günther Deschner <gd@samba.org> | 2010-05-05 01:39:16 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-05-06 00:22:59 +0200 |
commit | c6ebab846d25563d051b1a1248ea288ba7eb0bcb (patch) | |
tree | be093beb5dec7460403520dac6cef6205cfc1bb9 /source3/include | |
parent | d6a6362752b7a46178e80d36e4c3d69658d4f273 (diff) | |
download | samba-c6ebab846d25563d051b1a1248ea288ba7eb0bcb.tar.gz samba-c6ebab846d25563d051b1a1248ea288ba7eb0bcb.tar.bz2 samba-c6ebab846d25563d051b1a1248ea288ba7eb0bcb.zip |
s3: only include gen_ndr headers where needed.
This shrinks include/includes.h.gch by the size of 7 MB and reduces build time
as follows:
ccache build w/o patch
real 4m21.529s
ccache build with patch
real 3m6.402s
pch build w/o patch
real 4m26.318s
pch build with patch
real 3m6.932s
Guenther
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/includes.h | 5 | ||||
-rw-r--r-- | source3/include/ntlmssp.h | 2 | ||||
-rw-r--r-- | source3/include/proto.h | 18 | ||||
-rw-r--r-- | source3/include/smb.h | 23 |
4 files changed, 2 insertions, 46 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index 6b54001bb3..5b682bb4e3 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -648,7 +648,6 @@ struct smb_iconv_convenience *lp_iconv_convenience(void *lp_ctx); #include "privileges.h" #include "rpc_misc.h" #include "rpc_dce.h" -#include "../librpc/gen_ndr/schannel.h" #include "mapping.h" #include "passdb.h" #include "rpc_secdes.h" @@ -666,10 +665,6 @@ struct ntlmssp_state; #include "ntdomain.h" #include "reg_objects.h" #include "reg_db.h" -#include "librpc/gen_ndr/perfcount.h" -#include "librpc/gen_ndr/notify.h" -#include "librpc/gen_ndr/xattr.h" -#include "librpc/gen_ndr/messaging.h" #include "librpc/gen_ndr/ndr_nbt.h" #include "librpc/rpc/dcerpc.h" #include "nt_printing.h" diff --git a/source3/include/ntlmssp.h b/source3/include/ntlmssp.h index 3dc3810998..384eb22b20 100644 --- a/source3/include/ntlmssp.h +++ b/source3/include/ntlmssp.h @@ -19,6 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "../librpc/gen_ndr/ntlmssp.h" + /* NTLMSSP mode */ enum ntlmssp_role { diff --git a/source3/include/proto.h b/source3/include/proto.h index eae3d283d9..9c169ed11c 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2107,27 +2107,9 @@ WERROR reg_apply_registry_entry(TALLOC_CTX *mem_ctx, uint32_t flags); -#include "librpc/gen_ndr/ndr_dfs.h" -#include "librpc/gen_ndr/ndr_dssetup.h" -#include "librpc/gen_ndr/ndr_echo.h" #include "librpc/gen_ndr/ndr_eventlog.h" #include "librpc/gen_ndr/ndr_krb5pac.h" -#include "librpc/gen_ndr/ndr_lsa.h" -#include "librpc/gen_ndr/ndr_misc.h" -#include "librpc/gen_ndr/ndr_netlogon.h" -#include "librpc/gen_ndr/ndr_notify.h" -#include "librpc/gen_ndr/ndr_ntsvcs.h" -#include "librpc/gen_ndr/ndr_samr.h" -#include "librpc/gen_ndr/ndr_security.h" -#include "librpc/gen_ndr/ndr_srvsvc.h" -#include "librpc/gen_ndr/ndr_svcctl.h" -#include "librpc/gen_ndr/ndr_winreg.h" -#include "librpc/gen_ndr/ndr_wkssvc.h" -#include "librpc/gen_ndr/ndr_drsuapi.h" #include "librpc/gen_ndr/ndr_spoolss.h" -#include "librpc/gen_ndr/ndr_initshutdown.h" - -#include "librpc/ndr/libndr.h" /* The following definitions come from librpc/ndr/util.c */ diff --git a/source3/include/smb.h b/source3/include/smb.h index 780d79acb3..f8ec5d4983 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -228,32 +228,9 @@ struct id_map { enum id_mapping status; }; -#include "librpc/gen_ndr/misc.h" -#include "librpc/gen_ndr/security.h" -#include "librpc/ndr/libndr.h" -#include "librpc/gen_ndr/lsa.h" -#include "librpc/gen_ndr/dfs.h" -#include "librpc/gen_ndr/winreg.h" -#include "librpc/gen_ndr/initshutdown.h" -#include "librpc/gen_ndr/eventlog.h" -#include "librpc/gen_ndr/srvsvc.h" -#include "librpc/gen_ndr/wkssvc.h" -#include "librpc/gen_ndr/echo.h" -#include "librpc/gen_ndr/svcctl.h" -#include "librpc/gen_ndr/netlogon.h" -#include "librpc/gen_ndr/samr.h" -#include "librpc/gen_ndr/dssetup.h" #include "librpc/gen_ndr/epmapper.h" -#include "librpc/gen_ndr/libnet_join.h" #include "librpc/gen_ndr/krb5pac.h" -#include "librpc/gen_ndr/ntsvcs.h" -#include "librpc/gen_ndr/nbt.h" -#include "librpc/gen_ndr/drsuapi.h" -#include "librpc/gen_ndr/drsblobs.h" -#include "librpc/gen_ndr/spoolss.h" #include "librpc/gen_ndr/dcerpc.h" -#include "librpc/gen_ndr/ndr_dcerpc.h" -#include "librpc/gen_ndr/ntlmssp.h" struct lsa_dom_info { bool valid; |