summaryrefslogtreecommitdiff
path: root/scheduler/job.h
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-07-31 00:02:30 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-07-31 00:02:30 +0000
commitf16ea703e17a409484dae572e88caa844502186f (patch)
treef5379a49a1fe020d730465bc07e51eedc256c071 /scheduler/job.h
parenteec1fbc36f5671b432c3c5340d25e69d3b11e3de (diff)
downloadcups-f16ea703e17a409484dae572e88caa844502186f.tar.gz
Performance fixes for Get-Jobs (STR #2913)
Cache a few additional job attributes so that we normally do not need to load the job attributes from the 'c' files. If we do need to load them, limit the returned jobs to 500 at a time. Implement first-index operation attribute. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12067 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'scheduler/job.h')
-rw-r--r--scheduler/job.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scheduler/job.h b/scheduler/job.h
index ef66078e1..37b20dadd 100644
--- a/scheduler/job.h
+++ b/scheduler/job.h
@@ -39,6 +39,8 @@ struct cupsd_job_s /**** Job request ****/
* waiting on files */
char *username; /* Printing user */
char *dest; /* Destination printer or class */
+ char *name; /* Job name/title */
+ int koctets; /* job-k-octets */
cups_ptype_t dtype; /* Destination type */
cupsd_printer_t *printer; /* Printer this job is assigned to */
int num_files; /* Number of files in job */
@@ -47,6 +49,7 @@ struct cupsd_job_s /**** Job request ****/
ipp_attribute_t *sheets; /* job-media-sheets-completed */
time_t access_time, /* Last access time */
cancel_time, /* When to cancel/send SIGTERM */
+ creation_time, /* When job was created */
completed_time, /* When job was completed (0 if not) */
file_time, /* Job file retain time */
history_time, /* Job history retain time */