]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/statbuf.c
Import CUPS v1.7.1
[thirdparty/cups.git] / scheduler / statbuf.c
index e719aebdba29b3fb89ae1f246189eeffce450063..a3f32f09d3b08af2067afe96f1e51907b9ff4593 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: statbuf.c 7674 2008-06-18 23:18:32Z mike $"
+ * "$Id: statbuf.c 10996 2013-05-29 11:51:34Z msweet $"
  *
  *   Status buffer routines for the CUPS scheduler.
  *
- *   Copyright 2007-2010 by Apple Inc.
+ *   Copyright 2007-2012 by Apple Inc.
  *   Copyright 1997-2006 by Easy Software Products, all rights reserved.
  *
  *   These coded instructions, statements, and computer programs are the
@@ -119,7 +119,7 @@ cupsdStatBufNew(int        fd,              /* I - File descriptor of pipe */
 char *                                 /* O - Line from buffer, "", or NULL */
 cupsdStatBufUpdate(
     cupsd_statbuf_t *sb,               /* I - Status buffer */
-    int             *loglevel,         /* O - Log level */ 
+    int             *loglevel,         /* O - Log level */
     char            *line,             /* I - Line buffer */
     int             linelen)           /* I - Size of line buffer */
 {
@@ -258,6 +258,11 @@ cupsdStatBufUpdate(
     *loglevel = CUPSD_LOG_STATE;
     message   = sb->buffer + 6;
   }
+  else if (!strncmp(sb->buffer, "JOBSTATE:", 9))
+  {
+    *loglevel = CUPSD_LOG_JOBSTATE;
+    message   = sb->buffer + 9;
+  }
   else if (!strncmp(sb->buffer, "ATTR:", 5))
   {
     *loglevel = CUPSD_LOG_ATTR;
@@ -326,5 +331,5 @@ cupsdStatBufUpdate(
 
 
 /*
- * End of "$Id: statbuf.c 7674 2008-06-18 23:18:32Z mike $".
+ * End of "$Id: statbuf.c 10996 2013-05-29 11:51:34Z msweet $".
  */