summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-05-05 11:25:29 +0200
committerGünther Deschner <gd@samba.org>2011-05-06 10:48:10 +0200
commitd8cfca3a9bd2b6b6c562fd202377d95a98eb5472 (patch)
tree96fc9d454a01cbb2c26a8db22f41b8bf0dc40879 /source3/printing
parent8aae59a277fe4bf5a1a84cb4730e5772c9ffca8c (diff)
downloadsamba-d8cfca3a9bd2b6b6c562fd202377d95a98eb5472.tar.gz
samba-d8cfca3a9bd2b6b6c562fd202377d95a98eb5472.tar.bz2
samba-d8cfca3a9bd2b6b6c562fd202377d95a98eb5472.zip
s3: only include tdb headers where needed.
Guenther
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/notify.c1
-rw-r--r--source3/printing/nt_printing_migrate.c1
-rw-r--r--source3/printing/nt_printing_tdb.c1
-rw-r--r--source3/printing/printer_list.c1
-rw-r--r--source3/printing/printing.c1
-rw-r--r--source3/printing/printing_db.c3
-rw-r--r--source3/printing/tests/vlp.c1
7 files changed, 8 insertions, 1 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index 9e4b740859..0c7236ef3b 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -25,6 +25,7 @@
#include "nt_printing.h"
#include "printing/notify.h"
#include "messages.h"
+#include "util_tdb.h"
static TALLOC_CTX *send_ctx;
diff --git a/source3/printing/nt_printing_migrate.c b/source3/printing/nt_printing_migrate.c
index 7c8736875b..5fd0aae7fc 100644
--- a/source3/printing/nt_printing_migrate.c
+++ b/source3/printing/nt_printing_migrate.c
@@ -28,6 +28,7 @@
#include "librpc/gen_ndr/ndr_security.h"
#include "rpc_server/rpc_ncacn_np.h"
#include "auth.h"
+#include "util_tdb.h"
#define FORMS_PREFIX "FORMS/"
#define DRIVERS_PREFIX "DRIVERS/"
diff --git a/source3/printing/nt_printing_tdb.c b/source3/printing/nt_printing_tdb.c
index 98ac46797f..e321b905d5 100644
--- a/source3/printing/nt_printing_tdb.c
+++ b/source3/printing/nt_printing_tdb.c
@@ -26,6 +26,7 @@
#include "librpc/gen_ndr/spoolss.h"
#include "librpc/gen_ndr/ndr_security.h"
#include "libcli/security/security.h"
+#include "util_tdb.h"
#define FORMS_PREFIX "FORMS/"
#define DRIVERS_PREFIX "DRIVERS/"
diff --git a/source3/printing/printer_list.c b/source3/printing/printer_list.c
index 417eea777b..d8be89363e 100644
--- a/source3/printing/printer_list.c
+++ b/source3/printing/printer_list.c
@@ -20,6 +20,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "dbwrap.h"
+#include "util_tdb.h"
#include "printer_list.h"
#define PL_DB_NAME() lock_path("printer_list.tdb")
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 785e893d3a..f15bd4f754 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -32,6 +32,7 @@
#include "smbd/smbd.h"
#include "auth.h"
#include "messages.h"
+#include "util_tdb.h"
extern struct current_user current_user;
extern userdom_struct current_user_info;
diff --git a/source3/printing/printing_db.c b/source3/printing/printing_db.c
index 70accab935..b836c2145b 100644
--- a/source3/printing/printing_db.c
+++ b/source3/printing/printing_db.c
@@ -22,6 +22,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "printing.h"
+#include "util_tdb.h"
static struct tdb_print_db *print_db_head;
@@ -159,7 +160,7 @@ void close_all_print_db(void)
messages. data needs freeing on exit.
****************************************************************************/
-TDB_DATA get_printer_notify_pid_list(TDB_CONTEXT *tdb, const char *printer_name, bool cleanlist)
+struct TDB_DATA get_printer_notify_pid_list(struct tdb_context *tdb, const char *printer_name, bool cleanlist)
{
TDB_DATA data;
size_t i;
diff --git a/source3/printing/tests/vlp.c b/source3/printing/tests/vlp.c
index 4bff290e28..b22050632e 100644
--- a/source3/printing/tests/vlp.c
+++ b/source3/printing/tests/vlp.c
@@ -23,6 +23,7 @@
#include "system/passwd.h"
#include "system/filesys.h"
#include "printing.h"
+#include "util_tdb.h"
#ifdef malloc
#undef malloc