1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

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>
This commit is contained in:
Samuel Cabrero 2019-10-01 17:21:00 +02:00 committed by Andreas Schneider
parent 8b761b126c
commit e70dbe7d8a
3 changed files with 31 additions and 6 deletions

View File

@ -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.
*

View 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());

View File

@ -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_ */