summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-05-01 17:42:52 -0400
committerSimo Sorce <idra@samba.org>2010-07-27 10:27:13 -0400
commit94ee35f9cc0880c267bee14047d559948eb14ede (patch)
tree61302ba298a2bfa4358f9ae445c2c9267a4f1a4a /source3/include/proto.h
parent4761498c9e40d8b00060d2949bfcff32c6cf7f99 (diff)
downloadsamba-94ee35f9cc0880c267bee14047d559948eb14ede.tar.gz
samba-94ee35f9cc0880c267bee14047d559948eb14ede.tar.bz2
samba-94ee35f9cc0880c267bee14047d559948eb14ede.zip
s3-printing: Made print_job_start more robust.
Explicitly return ntstatus errors instead of relying on elusive errno. Split the function to make it easier to follow. Signed-off-by: Jim McDonough <jmcd@samba.org>
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r--source3/include/proto.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 32ccc48e14..8912e5e46e 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4759,8 +4759,9 @@ bool print_job_resume(struct auth_serversupplied_info *server_info, int snum,
uint32 jobid, WERROR *errcode);
ssize_t print_job_write(int snum, uint32 jobid, const char *buf, SMB_OFF_T pos, size_t size);
int print_queue_length(int snum, print_status_struct *pstatus);
-uint32 print_job_start(struct auth_serversupplied_info *server_info, int snum,
- const char *jobname, struct spoolss_DeviceMode *devmode );
+WERROR print_job_start(struct auth_serversupplied_info *server_info,
+ int snum, const char *docname, const char *filename,
+ struct spoolss_DeviceMode *devmode, uint32_t *_jobid);
void print_job_endpage(int snum, uint32 jobid);
bool print_job_end(int snum, uint32 jobid, enum file_close_type close_type);
int print_queue_status(int snum,