/*
- * "$Id: ipp.c,v 1.127.2.68 2003/05/12 15:10:07 mike Exp $"
+ * "$Id: ipp.c,v 1.127.2.69 2003/05/12 21:13:22 mike Exp $"
*
* IPP routines for the Common UNIX Printing System (CUPS) scheduler.
*
job->state->values[0].integer = IPP_JOB_HELD;
- if (!(printer->type & CUPS_PRINTER_REMOTE) || Classification)
+ if (!(printer->type & (CUPS_PRINTER_REMOTE | CUPS_PRINTER_IMPLICIT)) ||
+ Classification)
{
/*
* Add job sheets options...
* See if we need to add the starting sheet...
*/
- if (!(printer->type & CUPS_PRINTER_REMOTE))
+ if (!(printer->type & (CUPS_PRINTER_REMOTE | CUPS_PRINTER_IMPLICIT)))
{
+ LogMessage(L_INFO, "Adding start banner page \"%s\" to job %d.",
+ attr->values[0].string.text, job->id);
+
kbytes = copy_banner(con, job, attr->values[0].string.text);
UpdateQuota(printer, job->username, 0, kbytes);
SetJobHoldUntil(job->id, attr->values[0].string.text);
}
- if (!(printer->type & CUPS_PRINTER_REMOTE) || Classification)
+ if (!(printer->type & (CUPS_PRINTER_REMOTE | CUPS_PRINTER_IMPLICIT)) ||
+ Classification)
{
/*
* Add job sheets options...
* Add the starting sheet...
*/
- if (!(printer->type & CUPS_PRINTER_REMOTE))
+ if (!(printer->type & (CUPS_PRINTER_REMOTE | CUPS_PRINTER_IMPLICIT)))
{
+ LogMessage(L_INFO, "Adding start banner page \"%s\" to job %d.",
+ attr->values[0].string.text, job->id);
+
kbytes = copy_banner(con, job, attr->values[0].string.text);
UpdateQuota(printer, job->username, 0, kbytes);
* See if we need to add the ending sheet...
*/
- if (!(printer->type & CUPS_PRINTER_REMOTE) && attr->num_values > 1)
+ if (!(printer->type & (CUPS_PRINTER_REMOTE | CUPS_PRINTER_IMPLICIT)) &&
+ attr->num_values > 1)
{
/*
* Yes...
*/
+ LogMessage(L_INFO, "Adding end banner page \"%s\" to job %d.",
+ attr->values[1].string.text, job->id);
+
kbytes = copy_banner(con, job, attr->values[1].string.text);
+
UpdateQuota(printer, job->username, 0, kbytes);
}
* See if we need to add the ending sheet...
*/
- if (printer != NULL && !(printer->type & CUPS_PRINTER_REMOTE) &&
+ if (printer != NULL &&
+ !(printer->type & (CUPS_PRINTER_REMOTE | CUPS_PRINTER_IMPLICIT)) &&
(attr = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_ZERO)) != NULL &&
attr->num_values > 1)
{
* Yes...
*/
+ LogMessage(L_INFO, "Adding end banner page \"%s\" to job %d.",
+ attr->values[1].string.text, job->id);
+
kbytes = copy_banner(con, job, attr->values[1].string.text);
+
UpdateQuota(printer, job->username, 0, kbytes);
}
/*
- * End of "$Id: ipp.c,v 1.127.2.68 2003/05/12 15:10:07 mike Exp $".
+ * End of "$Id: ipp.c,v 1.127.2.69 2003/05/12 21:13:22 mike Exp $".
*/