summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-07-31 00:47:20 +0200
committerGünther Deschner <gd@samba.org>2010-07-31 00:50:31 +0200
commit813fbbd68c50811ad3776140e409d31b60dba76f (patch)
tree3101a4fa7300ade4dc14d4ac0c32a8d81e4bb3a7 /source3/printing
parent28c74564c5bd3c972745deaa904ec8695f21ea1f (diff)
downloadsamba-813fbbd68c50811ad3776140e409d31b60dba76f.tar.gz
samba-813fbbd68c50811ad3776140e409d31b60dba76f.tar.bz2
samba-813fbbd68c50811ad3776140e409d31b60dba76f.zip
s3-build: avoid to globally include printing and spoolss headers.
This shrinks precompiled headers by 3MB and will slightly speed up any build. Guenther
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/notify.c2
-rw-r--r--source3/printing/nt_printing.c3
-rw-r--r--source3/printing/nt_printing_tdb.c2
-rw-r--r--source3/printing/printing.c2
4 files changed, 7 insertions, 2 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index 1d155bb3a4..df9a15073d 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -22,6 +22,8 @@
#include "includes.h"
#include "printing.h"
#include "librpc/gen_ndr/messaging.h"
+#include "../librpc/gen_ndr/spoolss.h"
+#include "nt_printing.h"
static TALLOC_CTX *send_ctx;
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 1186c6710c..c9ce969b88 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -27,8 +27,9 @@
#include "registry.h"
#include "registry/reg_objects.h"
#include "../librpc/gen_ndr/ndr_security.h"
+#include "../librpc/gen_ndr/ndr_spoolss.h"
#include "rpc_server/srv_spoolss_util.h"
-
+#include "nt_printing.h"
#include "../rpc_server/srv_spoolss_util.h"
/* Map generic permissions to printer object specific permissions */
diff --git a/source3/printing/nt_printing_tdb.c b/source3/printing/nt_printing_tdb.c
index 29f6463ff8..90f11eee74 100644
--- a/source3/printing/nt_printing_tdb.c
+++ b/source3/printing/nt_printing_tdb.c
@@ -22,7 +22,7 @@
#include "includes.h"
#include "printing/nt_printing_tdb.h"
-
+#include "librpc/gen_ndr/spoolss.h"
#include "librpc/gen_ndr/ndr_security.h"
#define FORMS_PREFIX "FORMS/"
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 3635e59c34..a2737105c4 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -22,6 +22,8 @@
#include "includes.h"
#include "printing.h"
#include "librpc/gen_ndr/messaging.h"
+#include "../librpc/gen_ndr/ndr_spoolss.h"
+#include "nt_printing.h"
extern struct current_user current_user;
extern userdom_struct current_user_info;