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

s3-printing: only include printing where really needed.

Guenther
This commit is contained in:
Günther Deschner 2011-02-22 19:24:31 +01:00
parent 5a0cf0c77e
commit 8225c0ad6c
9 changed files with 33 additions and 30 deletions

View File

@ -101,6 +101,8 @@ struct tdb_print_db {
#define NOTIFY_PID_LIST_KEY "NOTIFY_PID_LIST"
/* The following definitions come from printing/printspoolss.c */
NTSTATUS print_spool_open(files_struct *fsp,
const char *fname,
uint16_t current_vuid);
@ -157,5 +159,26 @@ WERROR print_queue_resume(const struct auth_serversupplied_info *server_info,
struct messaging_context *msg_ctx, int snum);
WERROR print_queue_purge(const struct auth_serversupplied_info *server_info,
struct messaging_context *msg_ctx, int snum);
uint16 pjobid_to_rap(const char* sharename, uint32 jobid);
bool rap_to_pjobid(uint16 rap_jobid, fstring sharename, uint32 *pjobid);
void rap_jobid_delete(const char* sharename, uint32 jobid);
bool print_backend_init(struct messaging_context *msg_ctx);
void start_background_queue(struct tevent_context *ev,
struct messaging_context *msg);
void printing_end(void);
/* The following definitions come from printing/lpq_parse.c */
bool parse_lpq_entry(enum printing_types printing_type,char *line,
print_queue_struct *buf,
print_status_struct *status,bool first);
uint32_t print_parse_jobid(const char *fname);
/* The following definitions come from printing/printing_db.c */
struct tdb_print_db *get_print_db_byname(const char *printername);
void release_print_db( struct tdb_print_db *pdb);
void close_all_print_db(void);
TDB_DATA get_printer_notify_pid_list(TDB_CONTEXT *tdb, const char *printer_name, bool cleanlist);
#endif /* PRINTING_H_ */

View File

@ -3948,35 +3948,6 @@ bool lookup_wellknown_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
bool lookup_wellknown_name(TALLOC_CTX *mem_ctx, const char *name,
struct dom_sid *sid, const char **domain);
/* The following definitions come from printing/load.c */
void load_printers(struct tevent_context *ev,
struct messaging_context *msg_ctx);
/* The following definitions come from printing/lpq_parse.c */
bool parse_lpq_entry(enum printing_types printing_type,char *line,
print_queue_struct *buf,
print_status_struct *status,bool first);
uint32_t print_parse_jobid(const char *fname);
/* The following definitions come from printing/printing.c */
uint16 pjobid_to_rap(const char* sharename, uint32 jobid);
bool rap_to_pjobid(uint16 rap_jobid, fstring sharename, uint32 *pjobid);
void rap_jobid_delete(const char* sharename, uint32 jobid);
bool print_backend_init(struct messaging_context *msg_ctx);
void start_background_queue(struct tevent_context *ev,
struct messaging_context *msg);
void printing_end(void);
/* The following definitions come from printing/printing_db.c */
struct tdb_print_db *get_print_db_byname(const char *printername);
void release_print_db( struct tdb_print_db *pdb);
void close_all_print_db(void);
TDB_DATA get_printer_notify_pid_list(TDB_CONTEXT *tdb, const char *printer_name, bool cleanlist);
/* The following definitions come from profile/profile.c */
void set_profile_level(int level, struct server_id src);

View File

@ -19,7 +19,7 @@
#include "includes.h"
#include "printing/pcap.h"
#include "printing/load.h"
/***************************************************************************
auto-load some homes and printer services

4
source3/printing/load.h Normal file
View File

@ -0,0 +1,4 @@
/* The following definitions come from printing/load.c */
void load_printers(struct tevent_context *ev,
struct messaging_context *msg_ctx);

View File

@ -40,6 +40,7 @@
#include "rpc_client/init_lsa.h"
#include "rpc_server/rpc_ncacn_np.h"
#include "../libcli/security/security.h"
#include "printing.h"
#ifdef CHECK_TYPES
#undef CHECK_TYPES

View File

@ -34,6 +34,7 @@
#include "printing/printer_list.h"
#include "rpc_server/rpc_ep_setup.h"
#include "printing/pcap.h"
#include "printing.h"
#ifdef WITH_DFS
extern int dcelogin_atmost_once;

View File

@ -41,6 +41,7 @@
#include "../librpc/gen_ndr/srv_winreg.h"
#include "../librpc/gen_ndr/srv_wkssvc.h"
#include "printing/notify.h"
#include "printing.h"
static struct files_struct *log_writeable_file_fn(
struct files_struct *fsp, void *private_data)

View File

@ -26,6 +26,7 @@
#include "librpc/gen_ndr/messaging.h"
#include "nt_printing.h"
#include "printing/pcap.h"
#include "printing/load.h"
/****************************************************************************
purge stale printers and reload from pre-populated pcap cache

View File

@ -31,6 +31,7 @@
#include "popt_common.h"
#include "web/swat_proto.h"
#include "printing/pcap.h"
#include "printing/load.h"
static int demo_mode = False;
static int passwd_only = False;