summaryrefslogtreecommitdiff
path: root/source3/printing/queue_process.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-08-01 16:50:51 -0400
committerGünther Deschner <gd@samba.org>2011-08-02 15:28:03 +0200
commit2e8a85ec72f2b23cc2b64caa129429971c2fa8c0 (patch)
treee82a80a21b2236fcf8f1b6d6cc6b666e9c18f816 /source3/printing/queue_process.h
parentac8096e69d7357bac5430cde1d713a04acf58b57 (diff)
downloadsamba-2e8a85ec72f2b23cc2b64caa129429971c2fa8c0.tar.gz
samba-2e8a85ec72f2b23cc2b64caa129429971c2fa8c0.tar.bz2
samba-2e8a85ec72f2b23cc2b64caa129429971c2fa8c0.zip
s3:smbd - Move printing queue stuff
This way we can properly deal with pcap updates in the background queue process if it is enabled (on by default) and not perform these actions in the main smbd process. Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/printing/queue_process.h')
-rw-r--r--source3/printing/queue_process.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/source3/printing/queue_process.h b/source3/printing/queue_process.h
new file mode 100644
index 0000000000..41305d85ab
--- /dev/null
+++ b/source3/printing/queue_process.h
@@ -0,0 +1,29 @@
+/*
+ Unix SMB/Netbios implementation.
+ Version 3.0
+ printing backend routines
+ Copyright (C) Andrew Tridgell 1992-2000
+ Copyright (C) Jeremy Allison 2002
+ Copyright (C) Simo Sorce 2011
+
+ 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 3 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, see <http://www.gnu.org/licenses/>.
+*/
+
+extern pid_t background_lpq_updater_pid;
+
+bool printing_subsystem_init(struct tevent_context *ev_ctx,
+ struct messaging_context *msg_ctx,
+ bool background_queue);
+void printing_subsystem_update(struct tevent_context *ev_ctx,
+ struct messaging_context *msg_ctx);