diff options
author | Samuel Cabrero <scabrero@samba.org> | 2019-10-01 17:21:00 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-10-18 16:07:35 +0000 |
commit | e70dbe7d8aad650c6f14e7d78dca522d1ac9d898 (patch) | |
tree | cc0c2ea86195cc267adfd3352b06ff7dfb800dbf /source3/printing | |
parent | 8b761b126c1a476a2ac36c90c87d0183ba34f4a8 (diff) | |
download | samba-e70dbe7d8aad650c6f14e7d78dca522d1ac9d898.tar.gz |
s3:printing: Add spoolssd header file
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/queue_process.c | 4 | ||||
-rw-r--r-- | source3/printing/spoolssd.c | 4 | ||||
-rw-r--r-- | source3/printing/spoolssd.h | 29 |
3 files changed, 31 insertions, 6 deletions
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 <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_ */ |