diff options
Diffstat (limited to 'backend/ipp.c')
-rw-r--r-- | backend/ipp.c | 45 |
1 files changed, 14 insertions, 31 deletions
diff --git a/backend/ipp.c b/backend/ipp.c index 92b9a79b..910b674b 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -1,36 +1,18 @@ /* - * "$Id: ipp.c 11089 2013-07-03 16:39:38Z msweet $" + * "$Id: ipp.c 11353 2013-10-23 19:53:08Z msweet $" * - * IPP backend for CUPS. + * IPP backend for CUPS. * - * Copyright 2007-2013 by Apple Inc. - * Copyright 1997-2007 by Easy Software Products, all rights reserved. + * Copyright 2007-2013 by Apple Inc. + * Copyright 1997-2007 by Easy Software Products, all rights reserved. * - * These coded instructions, statements, and computer programs are the - * property of Apple Inc. and are protected by Federal copyright - * law. Distribution and use rights are outlined in the file "LICENSE.txt" - * "LICENSE" which should have been included with this file. If this - * file is missing or damaged, see the license at "http://www.cups.org/". + * These coded instructions, statements, and computer programs are the + * property of Apple Inc. and are protected by Federal copyright + * law. Distribution and use rights are outlined in the file "LICENSE.txt" + * "LICENSE" which should have been included with this file. If this + * file is missing or damaged, see the license at "http://www.cups.org/". * - * This file is subject to the Apple OS-Developed Software exception. - * - * Contents: - * - * main() - Send a file to the printer or server. - * cancel_job() - Cancel a print job. - * check_printer_state() - Check the printer state. - * monitor_printer() - Monitor the printer state. - * new_request() - Create a new print creation or validation - * request. - * password_cb() - Disable the password prompt for - * cupsDoFileRequest(). - * quote_string() - Quote a string value. - * report_attr() - Report an IPP attribute value. - * report_printer_state() - Report the printer state. - * run_as_user() - Run the IPP backend as the printing user. - * sigterm_handler() - Handle 'terminate' signals that stop the backend. - * timeout_cb() - Handle HTTP timeouts. - * update_reasons() - Update the printer-state-reasons values. + * This file is subject to the Apple OS-Developed Software exception. */ /* @@ -133,6 +115,7 @@ static const char * const pattrs[] = /* Printer attributes we want */ "media-col-supported", "multiple-document-handling-supported", "operations-supported", + "print-color-mode-supported", "printer-alert", "printer-alert-description", "printer-is-accepting-jobs", @@ -1699,8 +1682,8 @@ main(int argc, /* I - Number of command-line args */ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, argv[2]); - if ((i + 1) >= num_files) - ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", 1); + ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", + (i + 1) >= num_files); if (document_format) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, @@ -3679,5 +3662,5 @@ update_reasons(ipp_attribute_t *attr, /* I - printer-state-reasons or NULL */ } /* - * End of "$Id: ipp.c 11089 2013-07-03 16:39:38Z msweet $". + * End of "$Id: ipp.c 11353 2013-10-23 19:53:08Z msweet $". */ |