12264Sjacobs /*
22264Sjacobs  * CDDL HEADER START
32264Sjacobs  *
42264Sjacobs  * The contents of this file are subject to the terms of the
52264Sjacobs  * Common Development and Distribution License (the "License").
62264Sjacobs  * You may not use this file except in compliance with the License.
72264Sjacobs  *
82264Sjacobs  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92264Sjacobs  * or http://www.opensolaris.org/os/licensing.
102264Sjacobs  * See the License for the specific language governing permissions
112264Sjacobs  * and limitations under the License.
122264Sjacobs  *
132264Sjacobs  * When distributing Covered Code, include this CDDL HEADER in each
142264Sjacobs  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152264Sjacobs  * If applicable, add the following below this CDDL HEADER, with the
162264Sjacobs  * fields enclosed by brackets "[]" replaced with your own identifying
172264Sjacobs  * information: Portions Copyright [yyyy] [name of copyright owner]
182264Sjacobs  *
192264Sjacobs  * CDDL HEADER END
202264Sjacobs  */
212264Sjacobs 
222264Sjacobs /*
23*7253Sjacobs  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
242264Sjacobs  * Use is subject to license terms.
252264Sjacobs  *
262264Sjacobs  */
272264Sjacobs 
282264Sjacobs #ifndef _BSD_SYSV_COMMON_H
292264Sjacobs #define	_BSD_SYSV_COMMON_H
302264Sjacobs 
312264Sjacobs /* $Id: common.h 162 2006-05-08 14:17:44Z njacobs $ */
322264Sjacobs 
332264Sjacobs #pragma ident	"%Z%%M%	%I%	%E% SMI"
342264Sjacobs 
352264Sjacobs #include <papi.h>
362264Sjacobs 
372264Sjacobs #include <config-site.h>
382264Sjacobs 
392264Sjacobs #ifdef	__cplusplus
402264Sjacobs extern "C" {
412264Sjacobs #endif
422264Sjacobs 
432264Sjacobs extern char **strsplit(char *string, const char *seperators);
442264Sjacobs extern char *verbose_papi_message(papi_service_t svc, papi_status_t status);
452264Sjacobs 
462264Sjacobs extern int berkeley_cancel_request(papi_service_t svc, FILE *fp, char *dest,
472264Sjacobs 		int ac, char *av[]);
482264Sjacobs 
492264Sjacobs extern int get_printer_id(char *name, char **printer, int *id);
502264Sjacobs 
512264Sjacobs extern int berkeley_queue_report(papi_service_t svc, FILE *fp, char *dest,
522264Sjacobs 		int fmt, int ac, char *av[]);
532264Sjacobs 
542264Sjacobs extern papi_status_t jobSubmitSTDIN(papi_service_t svc, char *printer,
55*7253Sjacobs 				char *prefetch, int len,
562264Sjacobs 				papi_attribute_t **list, papi_job_t *job);
572264Sjacobs 
582264Sjacobs extern char **interest_list(papi_service_t svc);
592264Sjacobs extern char *localhostname();
603125Sjacobs extern char *lp_type_to_mime_type(char *lp_type);
613125Sjacobs extern int is_postscript(const char *file);
62*7253Sjacobs extern int is_postscript_stream(int fd, char *buf, int *len);
632264Sjacobs 
642264Sjacobs extern int cli_auth_callback(papi_service_t svc, void *app_data);
652264Sjacobs 
662264Sjacobs #ifdef	__cplusplus
672264Sjacobs }
682264Sjacobs #endif
692264Sjacobs 
702264Sjacobs #endif /* _BSD_SYSV_COMMON_H */
71