]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/job.h
The scheduler now returns completed jobs in the correct newest-to-oldest order
[thirdparty/cups.git] / scheduler / job.h
index c5d723e0ba7ba47b589ae7113334297a3b57fbce..ef66078e1f8e7982e785b0eae4028c3087acd430 100644 (file)
@@ -47,6 +47,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 */
+                       completed_time, /* When job was completed (0 if not) */
                        file_time,      /* Job file retain time */
                        history_time,   /* Job history retain time */
                        hold_until,     /* Hold expiration date/time */
@@ -148,6 +149,7 @@ extern void         cupsdDeleteJob(cupsd_job_t *job,
                                       cupsd_jobaction_t action);
 extern cupsd_job_t     *cupsdFindJob(int id);
 extern void            cupsdFreeAllJobs(void);
+extern cups_array_t    *cupsdGetCompletedJobs(cupsd_printer_t *p);
 extern int             cupsdGetPrinterJobCount(const char *dest);
 extern int             cupsdGetUserJobCount(const char *username);
 extern void            cupsdLoadAllJobs(void);