]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:printing: Add spoolssd header file
authorSamuel Cabrero <scabrero@samba.org>
Tue, 1 Oct 2019 15:21:00 +0000 (17:21 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 18 Oct 2019 16:07:35 +0000 (16:07 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/printing/queue_process.c
source3/printing/spoolssd.c
source3/printing/spoolssd.h [new file with mode: 0644]

index 7ac609a318ae393e2bb29960841dce92b7d3c0a5..905fd63970b858306c34cd30f55da67982ab80a7 100644 (file)
 #include "smbd/smbd.h"
 #include "rpc_server/rpc_config.h"
 #include "printing/load.h"
+#include "printing/spoolssd.h"
 #include "rpc_server/spoolss/srv_spoolss_nt.h"
 #include "auth.h"
 #include "nt_printing.h"
 #include "util_event.h"
 
-extern pid_t start_spoolssd(struct tevent_context *ev_ctx,
-                           struct messaging_context *msg_ctx);
-
 /**
  * @brief Purge stale printers and reload from pre-populated pcap cache.
  *
index 0ab1bffbca90a97188ccf6db0ecd8d287a2428ab..427e31e0122ca8dde157caf5f56002ff7ea7f745 100644 (file)
@@ -25,6 +25,7 @@
 #include "printing/queue_process.h"
 #include "printing/pcap.h"
 #include "printing/load.h"
+#include "printing/spoolssd.h"
 #include "ntdomain.h"
 #include "librpc/gen_ndr/srv_winreg.h"
 #include "librpc/gen_ndr/srv_spoolss.h"
@@ -56,9 +57,6 @@ static struct pf_daemon_config default_pf_spoolss_cfg = {
 };
 static struct pf_daemon_config pf_spoolss_cfg = { 0 };
 
-pid_t start_spoolssd(struct tevent_context *ev_ctx,
-                    struct messaging_context *msg_ctx);
-
 static void spoolss_reopen_logs(int child_id)
 {
        char *lfile = lp_logfile(talloc_tos());
diff --git a/source3/printing/spoolssd.h b/source3/printing/spoolssd.h
new file mode 100644 (file)
index 0000000..e09fb5e
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+   Unix SMB/Netbios implementation.
+   SPOOLSS Daemon
+   Copyright (C) Simo Sorce <idra@samba.org> 2010-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/>.
+*/
+
+#ifndef _SOURCE3_PRINTING_SPOOLSSD_H_
+#define _SOURCE3_PRINTING_SPOOLSSD_H_
+
+#include "replace.h"
+#include "messages.h"
+
+pid_t start_spoolssd(struct tevent_context *ev_ctx,
+                    struct messaging_context *msg_ctx);
+
+#endif /* _SOURCE3_PRINTING_SPOOLSSD_H_ */