355b4669e025ff377602b6fc7caaf30dbc218371jacobs * CDDL HEADER START
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * The contents of this file are subject to the terms of the
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * Common Development and Distribution License (the "License").
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * You may not use this file except in compliance with the License.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * See the License for the specific language governing permissions
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * and limitations under the License.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * When distributing Covered Code, include this CDDL HEADER in each
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * If applicable, add the following below this CDDL HEADER, with the
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * fields enclosed by brackets "[]" replaced with your own identifying
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * information: Portions Copyright [yyyy] [name of copyright owner]
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * CDDL HEADER END
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * Use is subject to license terms.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs/* $Id: set-job-attributes.c 146 2006-03-24 00:26:54Z njacobs $ */
355b4669e025ff377602b6fc7caaf30dbc218371jacobs#pragma ident "%Z%%M% %I% %E% SMI"
355b4669e025ff377602b6fc7caaf30dbc218371jacobsipp_set_job_attributes(papi_service_t svc, papi_attribute_t **request,
355b4669e025ff377602b6fc7caaf30dbc218371jacobs papi_attribute_t ***response, ipp_reader_t iread, void *fd)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs /* Get operational attributes from the request */
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * The operational-attributes-group must contain:
355b4669e025ff377602b6fc7caaf30dbc218371jacobs if (id < 0) {
355b4669e025ff377602b6fc7caaf30dbc218371jacobs "missing job-uri or job-id");
355b4669e025ff377602b6fc7caaf30dbc218371jacobs "missing printer-uri or job-uri");
355b4669e025ff377602b6fc7caaf30dbc218371jacobs /* get the job-attributes-group attributes for the PAPI call */
355b4669e025ff377602b6fc7caaf30dbc218371jacobs /* request job modification */
355b4669e025ff377602b6fc7caaf30dbc218371jacobs status = papiJobModify(svc, queue, id, job_attributes, &j);
355b4669e025ff377602b6fc7caaf30dbc218371jacobs ipp_set_status(response, status, "job modification: %s",
355b4669e025ff377602b6fc7caaf30dbc218371jacobs /* add the job attributes to the response in a job-attributes-group */
355b4669e025ff377602b6fc7caaf30dbc218371jacobs if (j != NULL) {