xref: /titanic_51/usr/src/cmd/print/bsd-sysv-commands/common.h (revision 356f72340a69936724c69f2f87fffa6f5887f885)
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 2009 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 #include <papi.h>
34 
35 #include <config-site.h>
36 
37 #ifdef	__cplusplus
38 extern "C" {
39 #endif
40 
41 extern char **strsplit(char *string, const char *seperators);
42 extern char *verbose_papi_message(papi_service_t svc, papi_status_t status);
43 
44 extern int berkeley_cancel_request(papi_service_t svc, FILE *fp, char *dest,
45 		int ac, char *av[]);
46 
47 extern int get_printer_id(char *name, char **printer, int *id);
48 
49 extern int berkeley_queue_report(papi_service_t svc, FILE *fp, char *dest,
50 		int fmt, int ac, char *av[]);
51 
52 extern papi_status_t jobSubmitSTDIN(papi_service_t svc, char *printer,
53 				char *prefetch, int len,
54 				papi_attribute_t **list, papi_job_t *job);
55 
56 extern char **interest_list(papi_service_t svc);
57 extern char *localhostname();
58 extern char *lp_type_to_mime_type(char *lp_type);
59 extern int is_postscript(const char *file);
60 extern int is_postscript_stream(int fd, char *buf, int *len);
61 
62 extern int cli_auth_callback(papi_service_t svc, void *app_data);
63 
64 extern int32_t job_to_be_queried(papi_service_t svc, char *printer, int32_t id);
65 
66 #ifdef	__cplusplus
67 }
68 #endif
69 
70 #endif /* _BSD_SYSV_COMMON_H */
71