diff options
author | Simo Sorce <idra@samba.org> | 2010-04-28 18:55:20 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-07-27 10:27:12 -0400 |
commit | 38d6274864ebb4d31333946379496d67745cd3c5 (patch) | |
tree | a4db449076a6d100f788e2839506cc7ea70a3381 /source3/include | |
parent | 8d44b11c6bf90f4698e472b46d4f47a136b960ba (diff) | |
download | samba-38d6274864ebb4d31333946379496d67745cd3c5.tar.gz samba-38d6274864ebb4d31333946379496d67745cd3c5.tar.bz2 samba-38d6274864ebb4d31333946379496d67745cd3c5.zip |
s3-smbd: Added code to print via spoolss.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/printing.h | 12 | ||||
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/include/smb.h | 5 |
3 files changed, 18 insertions, 0 deletions
diff --git a/source3/include/printing.h b/source3/include/printing.h index ac2ee05a93..34fbd58223 100644 --- a/source3/include/printing.h +++ b/source3/include/printing.h @@ -100,4 +100,16 @@ struct tdb_print_db { #define NOTIFY_PID_LIST_KEY "NOTIFY_PID_LIST" +NTSTATUS print_spool_open(files_struct *fsp, + const char *fname, + uint16_t current_vuid); + +int print_spool_write(files_struct *fsp, const char *data, uint32_t size, + SMB_OFF_T offset, uint32_t *written); + +void print_spool_end(files_struct *fsp, enum file_close_type close_type); + +void print_spool_terminate(struct connection_struct *conn, + struct print_file_data *print_file); + #endif /* PRINTING_H_ */ diff --git a/source3/include/proto.h b/source3/include/proto.h index 876d1d0038..3b7b6d58a5 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4785,6 +4785,7 @@ SMB_OFF_T printfile_offset(files_struct *fsp, SMB_OFF_T offset); 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 printing_end(void); int unpack_pjob( uint8 *buf, int buflen, struct printjob *pjob ); diff --git a/source3/include/smb.h b/source3/include/smb.h index 507aeac53d..4d60a3ad11 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -338,6 +338,11 @@ struct notify_change_buf { }; struct print_file_data { + char *svcname; + char *docname; + char *filename; + struct policy_handle handle; + uint32_t jobid; uint16 rap_jobid; }; |