xref: /titanic_50/usr/src/cmd/print/bsd-sysv-commands/common.h (revision f0b87b902adb4cdfe4ad24ea596a7311ddbb2953)
1355b4669Sjacobs /*
2355b4669Sjacobs  * CDDL HEADER START
3355b4669Sjacobs  *
4355b4669Sjacobs  * The contents of this file are subject to the terms of the
5355b4669Sjacobs  * Common Development and Distribution License (the "License").
6355b4669Sjacobs  * You may not use this file except in compliance with the License.
7355b4669Sjacobs  *
8355b4669Sjacobs  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9355b4669Sjacobs  * or http://www.opensolaris.org/os/licensing.
10355b4669Sjacobs  * See the License for the specific language governing permissions
11355b4669Sjacobs  * and limitations under the License.
12355b4669Sjacobs  *
13355b4669Sjacobs  * When distributing Covered Code, include this CDDL HEADER in each
14355b4669Sjacobs  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15355b4669Sjacobs  * If applicable, add the following below this CDDL HEADER, with the
16355b4669Sjacobs  * fields enclosed by brackets "[]" replaced with your own identifying
17355b4669Sjacobs  * information: Portions Copyright [yyyy] [name of copyright owner]
18355b4669Sjacobs  *
19355b4669Sjacobs  * CDDL HEADER END
20355b4669Sjacobs  */
21355b4669Sjacobs 
22355b4669Sjacobs /*
23*f0b87b90Ssonam gupta - Sun Microsystems - Bangalore India  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24355b4669Sjacobs  * Use is subject to license terms.
25355b4669Sjacobs  *
26355b4669Sjacobs  */
27355b4669Sjacobs 
28355b4669Sjacobs #ifndef _BSD_SYSV_COMMON_H
29355b4669Sjacobs #define	_BSD_SYSV_COMMON_H
30355b4669Sjacobs 
31355b4669Sjacobs /* $Id: common.h 162 2006-05-08 14:17:44Z njacobs $ */
32355b4669Sjacobs 
33355b4669Sjacobs #include <papi.h>
34355b4669Sjacobs 
35355b4669Sjacobs #include <config-site.h>
36355b4669Sjacobs 
37355b4669Sjacobs #ifdef	__cplusplus
38355b4669Sjacobs extern "C" {
39355b4669Sjacobs #endif
40355b4669Sjacobs 
41355b4669Sjacobs extern char **strsplit(char *string, const char *seperators);
42355b4669Sjacobs extern char *verbose_papi_message(papi_service_t svc, papi_status_t status);
43355b4669Sjacobs 
44355b4669Sjacobs extern int berkeley_cancel_request(papi_service_t svc, FILE *fp, char *dest,
45355b4669Sjacobs 		int ac, char *av[]);
46355b4669Sjacobs 
47355b4669Sjacobs extern int get_printer_id(char *name, char **printer, int *id);
48355b4669Sjacobs 
49355b4669Sjacobs extern int berkeley_queue_report(papi_service_t svc, FILE *fp, char *dest,
50355b4669Sjacobs 		int fmt, int ac, char *av[]);
51355b4669Sjacobs 
52355b4669Sjacobs extern papi_status_t jobSubmitSTDIN(papi_service_t svc, char *printer,
53c1ecd8b9Sjacobs 				char *prefetch, int len,
54355b4669Sjacobs 				papi_attribute_t **list, papi_job_t *job);
55355b4669Sjacobs 
56355b4669Sjacobs extern char **interest_list(papi_service_t svc);
57355b4669Sjacobs extern char *localhostname();
580a44ef6dSjacobs extern char *lp_type_to_mime_type(char *lp_type);
590a44ef6dSjacobs extern int is_postscript(const char *file);
60c1ecd8b9Sjacobs extern int is_postscript_stream(int fd, char *buf, int *len);
61355b4669Sjacobs 
62355b4669Sjacobs extern int cli_auth_callback(papi_service_t svc, void *app_data);
63355b4669Sjacobs 
64*f0b87b90Ssonam gupta - Sun Microsystems - Bangalore India extern int32_t job_to_be_queried(papi_service_t svc, char *printer, int32_t id);
65*f0b87b90Ssonam gupta - Sun Microsystems - Bangalore India 
66355b4669Sjacobs #ifdef	__cplusplus
67355b4669Sjacobs }
68355b4669Sjacobs #endif
69355b4669Sjacobs 
70355b4669Sjacobs #endif /* _BSD_SYSV_COMMON_H */
71