diff options
author | Robert Mustacchi <rm@joyent.com> | 2014-01-16 00:18:13 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2014-01-16 19:11:52 +0000 |
commit | c69ce773d7d725c37d6e6c7698e7f7f891f8fbfc (patch) | |
tree | 8ebda0b51d3294ca45734acbf8aa31b351caebd9 /usr/src/cmd/print/bsd-sysv-commands/common.h | |
parent | d1d51e78b243321127b2eb6a052c6ddea380abfb (diff) | |
download | illumos-joyent-c69ce773d7d725c37d6e6c7698e7f7f891f8fbfc.tar.gz |
OS-2713 don't build printing in a more diff friendly way
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/common.h')
-rw-r--r-- | usr/src/cmd/print/bsd-sysv-commands/common.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/common.h b/usr/src/cmd/print/bsd-sysv-commands/common.h new file mode 100644 index 0000000000..a729930bd5 --- /dev/null +++ b/usr/src/cmd/print/bsd-sysv-commands/common.h @@ -0,0 +1,70 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ + +/* + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + * + */ + +#ifndef _BSD_SYSV_COMMON_H +#define _BSD_SYSV_COMMON_H + +/* $Id: common.h 162 2006-05-08 14:17:44Z njacobs $ */ + +#include <papi.h> + +#include <config-site.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern char **strsplit(char *string, const char *seperators); +extern char *verbose_papi_message(papi_service_t svc, papi_status_t status); + +extern int berkeley_cancel_request(papi_service_t svc, FILE *fp, char *dest, + int ac, char *av[]); + +extern int get_printer_id(char *name, char **printer, int *id); + +extern int berkeley_queue_report(papi_service_t svc, FILE *fp, char *dest, + int fmt, int ac, char *av[]); + +extern papi_status_t jobSubmitSTDIN(papi_service_t svc, char *printer, + char *prefetch, int len, + papi_attribute_t **list, papi_job_t *job); + +extern char **interest_list(papi_service_t svc); +extern char *localhostname(); +extern char *lp_type_to_mime_type(char *lp_type); +extern int is_postscript(const char *file); +extern int is_postscript_stream(int fd, char *buf, int *len); + +extern int cli_auth_callback(papi_service_t svc, void *app_data); + +extern int32_t job_to_be_queried(papi_service_t svc, char *printer, int32_t id); + +#ifdef __cplusplus +} +#endif + +#endif /* _BSD_SYSV_COMMON_H */ |