summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2012-01-26 15:28:34 +0100
committerDavid Disseldorp <ddiss@samba.org>2012-06-26 16:10:39 +0200
commita2d880ddcda4c0f5227945b644f8abe6af4a276d (patch)
tree3408f1c53ffda3bfa05d456617652249d14b5051 /source3/include
parent33f08906c66fd28383d9ffad6f3916086a9f517d (diff)
downloadsamba-a2d880ddcda4c0f5227945b644f8abe6af4a276d.tar.gz
samba-a2d880ddcda4c0f5227945b644f8abe6af4a276d.tar.bz2
samba-a2d880ddcda4c0f5227945b644f8abe6af4a276d.zip
s3-printing: store print jobid as part of struct printjob
Printing code in some places relies upon the spool-file format to retrieve the print jobid. By storing the jobid as part of struct printjob, and hence in the printing TDB, we can move away from this ugly behaviour.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/printing.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/include/printing.h b/source3/include/printing.h
index cfdf3a4a8c..aa28b78fdd 100644
--- a/source3/include/printing.h
+++ b/source3/include/printing.h
@@ -69,6 +69,7 @@ typedef struct {
/* Information for print jobs */
struct printjob {
pid_t pid; /* which process launched the job */
+ uint32_t jobid; /* the spoolss print job identifier */
int sysjob; /* the system (lp) job number */
int fd; /* file descriptor of open file if open */
time_t starttime; /* when the job started spooling */
@@ -124,7 +125,7 @@ extern struct printif iprint_printif;
#ifndef PRINT_SPOOL_PREFIX
#define PRINT_SPOOL_PREFIX "smbprn."
#endif
-#define PRINT_DATABASE_VERSION 7
+#define PRINT_DATABASE_VERSION 8
#ifdef AIX
#define DEFAULT_PRINTING PRINT_AIX