4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
31 /* $Id: papi_impl.h 161 2006-05-03 04:32:59Z njacobs $ */
33 #pragma ident "%Z%%M% %I% %E% SMI"
42 #include <sys/types.h>
50 * Implementation specific types/prototypes/definitions follow
56 TRANSFER_ENCODING_CHUNKED
,
57 TRANSFER_ENCODING_LENGTH
58 } http_transfer_encoding_t
;
61 papi_attribute_t
**attributes
;
65 int (*authCB
)(papi_service_t svc
, void *app_data
);
66 papi_encryption_t encryption
;
71 http_transfer_encoding_t transfer_encoding
;
75 papi_attribute_t
**attributes
;
79 papi_attribute_t
**attributes
;
82 /* IPP glue interfaces */
83 extern ssize_t
ipp_request_read(void *fd
, void *buffer
, size_t length
);
84 extern ssize_t
ipp_request_write(void *fd
, void *buffer
, size_t length
);
85 extern papi_status_t
ipp_send_request(service_t
*svc
,
86 papi_attribute_t
**request
,
87 papi_attribute_t
***response
);
88 extern papi_status_t
ipp_send_request_with_file(service_t
*svc
,
89 papi_attribute_t
**request
,
90 papi_attribute_t
***response
, char *file
);
91 extern papi_status_t
ipp_send_initial_request_block(service_t
*svc
,
92 papi_attribute_t
**request
, ssize_t file_size
);
93 extern papi_status_t
ipp_status_info(service_t
*svc
,
94 papi_attribute_t
**response
);
95 extern void ipp_initialize_request(service_t
*svc
,
96 papi_attribute_t
***request
, uint16_t type
);
97 extern void ipp_initialize_operational_attributes(service_t
*svc
,
98 papi_attribute_t
***op
,
99 char *printer
, int job_id
);
100 extern papi_status_t
ipp_to_papi_status(uint16_t status
);
101 extern papi_status_t
http_to_papi_status(http_status_t status
);
103 /* service related interfaces */
104 extern void detailed_error(service_t
*svc
, char *fmt
, ...);
105 extern papi_status_t
service_connect(service_t
*svc
, char *service_name
);
111 #endif /* _PAPI_IMPL_H */