From 8225c0ad6c5fbcb522912fa5f5af605f721e5216 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 22 Feb 2011 19:24:31 +0100 Subject: s3-printing: only include printing where really needed. Guenther --- source3/include/printing.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'source3/include/printing.h') diff --git a/source3/include/printing.h b/source3/include/printing.h index 9f0fcde28a..0316eb58c9 100644 --- a/source3/include/printing.h +++ b/source3/include/printing.h @@ -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_ */ -- cgit