xref: /onnv-gate/usr/src/cmd/print/bsd-sysv-commands/common.h (revision 9331:d77964aece3d)
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*9331SSonam.Gupta@Sun.COM  * Copyright 2009 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 #include <papi.h>
342264Sjacobs 
352264Sjacobs #include <config-site.h>
362264Sjacobs 
372264Sjacobs #ifdef	__cplusplus
382264Sjacobs extern "C" {
392264Sjacobs #endif
402264Sjacobs 
412264Sjacobs extern char **strsplit(char *string, const char *seperators);
422264Sjacobs extern char *verbose_papi_message(papi_service_t svc, papi_status_t status);
432264Sjacobs 
442264Sjacobs extern int berkeley_cancel_request(papi_service_t svc, FILE *fp, char *dest,
452264Sjacobs 		int ac, char *av[]);
462264Sjacobs 
472264Sjacobs extern int get_printer_id(char *name, char **printer, int *id);
482264Sjacobs 
492264Sjacobs extern int berkeley_queue_report(papi_service_t svc, FILE *fp, char *dest,
502264Sjacobs 		int fmt, int ac, char *av[]);
512264Sjacobs 
522264Sjacobs extern papi_status_t jobSubmitSTDIN(papi_service_t svc, char *printer,
537253Sjacobs 				char *prefetch, int len,
542264Sjacobs 				papi_attribute_t **list, papi_job_t *job);
552264Sjacobs 
562264Sjacobs extern char **interest_list(papi_service_t svc);
572264Sjacobs extern char *localhostname();
583125Sjacobs extern char *lp_type_to_mime_type(char *lp_type);
593125Sjacobs extern int is_postscript(const char *file);
607253Sjacobs extern int is_postscript_stream(int fd, char *buf, int *len);
612264Sjacobs 
622264Sjacobs extern int cli_auth_callback(papi_service_t svc, void *app_data);
632264Sjacobs 
64*9331SSonam.Gupta@Sun.COM extern int32_t job_to_be_queried(papi_service_t svc, char *printer, int32_t id);
65*9331SSonam.Gupta@Sun.COM 
662264Sjacobs #ifdef	__cplusplus
672264Sjacobs }
682264Sjacobs #endif
692264Sjacobs 
702264Sjacobs #endif /* _BSD_SYSV_COMMON_H */
71