diff options
author | Günther Deschner <gd@samba.org> | 2011-02-22 19:24:31 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-02-22 21:52:18 +0100 |
commit | 8225c0ad6c5fbcb522912fa5f5af605f721e5216 (patch) | |
tree | 8de17449f45f2a25a56fb9367b8eb2683b43cf9c /source3/include | |
parent | 5a0cf0c77e033da68d9dedb048995aa2ade76460 (diff) | |
download | samba-8225c0ad6c5fbcb522912fa5f5af605f721e5216.tar.gz samba-8225c0ad6c5fbcb522912fa5f5af605f721e5216.tar.bz2 samba-8225c0ad6c5fbcb522912fa5f5af605f721e5216.zip |
s3-printing: only include printing where really needed.
Guenther
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/printing.h | 23 | ||||
-rw-r--r-- | source3/include/proto.h | 29 |
2 files changed, 23 insertions, 29 deletions
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_ */ diff --git a/source3/include/proto.h b/source3/include/proto.h index 8770145ef1..69585182eb 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -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); |