From: Samuel Cabrero Date: Tue, 1 Oct 2019 15:21:00 +0000 (+0200) Subject: s3:printing: Add spoolssd header file X-Git-Tag: talloc-2.3.1~321 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e70dbe7d8aad650c6f14e7d78dca522d1ac9d898;p=thirdparty%2Fsamba.git s3:printing: Add spoolssd header file Signed-off-by: Samuel Cabrero Reviewed-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- diff --git a/source3/printing/queue_process.c b/source3/printing/queue_process.c index 7ac609a318a..905fd63970b 100644 --- a/source3/printing/queue_process.c +++ b/source3/printing/queue_process.c @@ -31,14 +31,12 @@ #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. * diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c index 0ab1bffbca9..427e31e0122 100644 --- a/source3/printing/spoolssd.c +++ b/source3/printing/spoolssd.c @@ -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 index 00000000000..e09fb5ea7bc --- /dev/null +++ b/source3/printing/spoolssd.h @@ -0,0 +1,29 @@ +/* + Unix SMB/Netbios implementation. + SPOOLSS Daemon + Copyright (C) Simo Sorce 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 . +*/ + +#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_ */