xref: /titanic_50/usr/src/cmd/print/bsd-sysv-commands/common.h (revision 2a8164df8a5f42c8a00f10c67d7bc84f80ae9c41)
1 /*
2  * CDDL HEADER START
3  *
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.
7  *
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.
12  *
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]
18  *
19  * CDDL HEADER END
20  */
21 
22 /*
23  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  *
26  */
27 
28 #ifndef _BSD_SYSV_COMMON_H
29 #define	_BSD_SYSV_COMMON_H
30 
31 /* $Id: common.h 162 2006-05-08 14:17:44Z njacobs $ */
32 
33 #pragma ident	"%Z%%M%	%I%	%E% SMI"
34 
35 #include <papi.h>
36 
37 #include <config-site.h>
38 
39 #ifdef	__cplusplus
40 extern "C" {
41 #endif
42 
43 extern char **strsplit(char *string, const char *seperators);
44 extern char *verbose_papi_message(papi_service_t svc, papi_status_t status);
45 
46 extern int berkeley_cancel_request(papi_service_t svc, FILE *fp, char *dest,
47 		int ac, char *av[]);
48 
49 extern int get_printer_id(char *name, char **printer, int *id);
50 
51 extern int berkeley_queue_report(papi_service_t svc, FILE *fp, char *dest,
52 		int fmt, int ac, char *av[]);
53 
54 extern papi_status_t jobSubmitSTDIN(papi_service_t svc, char *printer,
55 				char *prefetch, int len,
56 				papi_attribute_t **list, papi_job_t *job);
57 
58 extern char **interest_list(papi_service_t svc);
59 extern char *localhostname();
60 extern char *lp_type_to_mime_type(char *lp_type);
61 extern int is_postscript(const char *file);
62 extern int is_postscript_stream(int fd, char *buf, int *len);
63 
64 extern int cli_auth_callback(papi_service_t svc, void *app_data);
65 
66 #ifdef	__cplusplus
67 }
68 #endif
69 
70 #endif /* _BSD_SYSV_COMMON_H */
71