1*355b4669Sjacobs /* 2*355b4669Sjacobs * CDDL HEADER START 3*355b4669Sjacobs * 4*355b4669Sjacobs * The contents of this file are subject to the terms of the 5*355b4669Sjacobs * Common Development and Distribution License (the "License"). 6*355b4669Sjacobs * You may not use this file except in compliance with the License. 7*355b4669Sjacobs * 8*355b4669Sjacobs * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*355b4669Sjacobs * or http://www.opensolaris.org/os/licensing. 10*355b4669Sjacobs * See the License for the specific language governing permissions 11*355b4669Sjacobs * and limitations under the License. 12*355b4669Sjacobs * 13*355b4669Sjacobs * When distributing Covered Code, include this CDDL HEADER in each 14*355b4669Sjacobs * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*355b4669Sjacobs * If applicable, add the following below this CDDL HEADER, with the 16*355b4669Sjacobs * fields enclosed by brackets "[]" replaced with your own identifying 17*355b4669Sjacobs * information: Portions Copyright [yyyy] [name of copyright owner] 18*355b4669Sjacobs * 19*355b4669Sjacobs * CDDL HEADER END 20*355b4669Sjacobs */ 21*355b4669Sjacobs 22*355b4669Sjacobs /* 23*355b4669Sjacobs * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*355b4669Sjacobs * Use is subject to license terms. 25*355b4669Sjacobs * 26*355b4669Sjacobs */ 27*355b4669Sjacobs 28*355b4669Sjacobs #ifndef _IPP_LISTENER_H 29*355b4669Sjacobs #define _IPP_LISTENER_H 30*355b4669Sjacobs 31*355b4669Sjacobs /* $Id: ipp-listener.h 146 2006-03-24 00:26:54Z njacobs $ */ 32*355b4669Sjacobs 33*355b4669Sjacobs #ifdef __cplusplus 34*355b4669Sjacobs extern "C" { 35*355b4669Sjacobs #endif 36*355b4669Sjacobs 37*355b4669Sjacobs #include <ipp.h> 38*355b4669Sjacobs 39*355b4669Sjacobs /* exported functions */ 40*355b4669Sjacobs extern papi_status_t ipp_configure_operation(papi_attribute_t ***list, 41*355b4669Sjacobs char *operation, char *type); 42*355b4669Sjacobs extern papi_status_t ipp_process_request(papi_attribute_t **request, 43*355b4669Sjacobs papi_attribute_t ***response, 44*355b4669Sjacobs ipp_reader_t iread, void *fd); 45*355b4669Sjacobs 46*355b4669Sjacobs /* shared internal functions */ 47*355b4669Sjacobs extern char *ipp_svc_status_mesg(papi_service_t svc, papi_status_t status); 48*355b4669Sjacobs extern char *destination_from_printer_uri(char *); 49*355b4669Sjacobs extern void get_printer_id(papi_attribute_t **attributes, char **printer, 50*355b4669Sjacobs int *id); 51*355b4669Sjacobs extern void ipp_operations_supported(papi_attribute_t ***list, 52*355b4669Sjacobs papi_attribute_t **request); 53*355b4669Sjacobs extern void get_string_list(papi_attribute_t **attributes, char *name, 54*355b4669Sjacobs char ***values); 55*355b4669Sjacobs extern void add_default_attributes(papi_attribute_t ***attributes); 56*355b4669Sjacobs extern void papi_to_ipp_printer_group(papi_attribute_t ***response, 57*355b4669Sjacobs papi_attribute_t **request, int flags, 58*355b4669Sjacobs papi_printer_t p); 59*355b4669Sjacobs extern void papi_to_ipp_job_group(papi_attribute_t ***response, 60*355b4669Sjacobs papi_attribute_t **request, int flags, papi_job_t j); 61*355b4669Sjacobs extern void massage_response(papi_attribute_t **request, 62*355b4669Sjacobs papi_attribute_t **response); 63*355b4669Sjacobs 64*355b4669Sjacobs #ifdef __cplusplus 65*355b4669Sjacobs } 66*355b4669Sjacobs #endif 67*355b4669Sjacobs 68*355b4669Sjacobs #endif /* _IPP_LISTENER_H */ 69