accept.c revision 999637b1fd707bd54b1bd63fa6979a3673826bd0
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
98f04078d5fc5800e80b21e0b18abe0024af1cbeGowtham Thommandra * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * Use is subject to license terms.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs/* $Id: accept.c 146 2006-03-24 00:26:54Z njacobs $ */
355b4669e025ff377602b6fc7caaf30dbc218371jacobs switch (c) {
355b4669e025ff377602b6fc7caaf30dbc218371jacobs status = papiServiceCreate(&svc, printer, NULL, NULL,
98f04078d5fc5800e80b21e0b18abe0024af1cbeGowtham Thommandra "Failed to contact service for %s: %s\n"),
98f04078d5fc5800e80b21e0b18abe0024af1cbeGowtham Thommandra printer, verbose_papi_message(svc, status));
98f04078d5fc5800e80b21e0b18abe0024af1cbeGowtham Thommandra "Destination \"%s\" now accepting requests\n"),
98f04078d5fc5800e80b21e0b18abe0024af1cbeGowtham Thommandra } else if (status == PAPI_NOT_ACCEPTING) {
98f04078d5fc5800e80b21e0b18abe0024af1cbeGowtham Thommandra "Destination \"%s\" was already "
999637b1fd707bd54b1bd63fa6979a3673826bd0"Nagaraj Yedathore - Sun Microsystems - Bangalore India" if (status == PAPI_OPERATION_NOT_SUPPORTED) {
999637b1fd707bd54b1bd63fa6979a3673826bd0"Nagaraj Yedathore - Sun Microsystems - Bangalore India" fprintf(stderr,
999637b1fd707bd54b1bd63fa6979a3673826bd0"Nagaraj Yedathore - Sun Microsystems - Bangalore India" verbose_papi_message(svc, status));
999637b1fd707bd54b1bd63fa6979a3673826bd0"Nagaraj Yedathore - Sun Microsystems - Bangalore India" } else {
999637b1fd707bd54b1bd63fa6979a3673826bd0"Nagaraj Yedathore - Sun Microsystems - Bangalore India" fprintf(stderr, gettext("accept: %s: %s\n"),
999637b1fd707bd54b1bd63fa6979a3673826bd0"Nagaraj Yedathore - Sun Microsystems - Bangalore India" printer, verbose_papi_message(svc, status));