time fields for GnomeCupsJob
Matthias Clasen <[email protected]>
| Newsgroups | gmane.comp.gnome.print |
|---|---|
| Message-ID | <[email protected]> |
Here is a patch which adds the same time fields found in cups_job_t to the GnomeCupsJob struct. If nobody objects, I'm going to commit it in a few days. Regards, Matthias _______________________________________________ gnome-print-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-print-list
time_fields.diff
(text/x-patch, 2.4 KB)
? time_fields.diff Index: ChangeLog =================================================================== RCS file: /cvs/gnome/libgnomecups/ChangeLog,v retrieving revision 1.53 diff -u -r1.53 ChangeLog --- ChangeLog 17 May 2004 16:46:17 -0000 1.53 +++ ChangeLog 25 May 2004 17:47:15 -0000 @@ -1,3 +1,12 @@ +2004-05-25 Matthias Clasen <[email protected]> + + * libgnomecups/gnome-cups-queue.c (get_jobs): Fill the + new time fields. + + * libgnomecups/gnome-cups-queue.h: Add creation_time, + processing_time and completed_time fields to GnomeCupsJobs, + similar to the fields of the same name found in cups_job_t. + 2004-05-17 Jody Goldberg <[email protected]> * libgnomecups/gnome-cups-request.c (get_error_string) : typo as Index: libgnomecups/gnome-cups-queue.c =================================================================== RCS file: /cvs/gnome/libgnomecups/libgnomecups/gnome-cups-queue.c,v retrieving revision 1.7 diff -u -r1.7 gnome-cups-queue.c --- libgnomecups/gnome-cups-queue.c 14 Jan 2004 22:17:40 -0000 1.7 +++ libgnomecups/gnome-cups-queue.c 25 May 2004 17:47:15 -0000 @@ -213,7 +213,7 @@ if (!g_ascii_strcasecmp (attr->name, "attributes-charset") || !g_ascii_strcasecmp (attr->name, "attributes-charset")) { continue; } - + MAP_STR (job->name, "job-name"); MAP_INT (job->id, "job-id"); MAP_STR (job->owner, "job-originating-user-name"); @@ -222,8 +222,11 @@ MAP_STR (job->state_reason, "job-state-reasons"); MAP_INT (job->pages, "job-sheets"); MAP_INT (job->pages_complete, "job-media-sheets-complete"); + MAP_INT (job->creation_time, "time-at-creation"); + MAP_INT (job->processing_time, "time-at-processing"); + MAP_INT (job->completed_time, "time-at-completed"); } - + if (job->name) { finish_job (job); jobs = g_list_prepend (jobs, job); Index: libgnomecups/gnome-cups-queue.h =================================================================== RCS file: /cvs/gnome/libgnomecups/libgnomecups/gnome-cups-queue.h,v retrieving revision 1.2 diff -u -r1.2 gnome-cups-queue.h --- libgnomecups/gnome-cups-queue.h 27 Mar 2003 22:10:44 -0000 1.2 +++ libgnomecups/gnome-cups-queue.h 25 May 2004 17:47:15 -0000 @@ -48,6 +48,9 @@ unsigned long size; int pages; int pages_complete; + time_t creation_time; + time_t processing_time; + time_t completed_time; }; gboolean gnome_cups_jobs_equal (GnomeCupsJob *a,