1/*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License as
4 * published by the Free Software Foundation; either version 2 of
5 * the License, or (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
15 * MA 02111-1307 USA
16 */
17/***************************************************************************
18 * LPRng - An Extended Print Spooler System
19 *
20 * Copyright 1988-2003, Patrick Powell, San Diego, CA
21 *     papowell@lprng.com
22 * See LICENSE for conditions of use.
23 * $Id: printjob.h,v 1.1.1.1 2008/10/15 03:28:27 james26_jang Exp $
24 ***************************************************************************/
25
26
27
28#ifndef _PRINTJOB_H_
29#define _PRINTJOB_H_ 1
30
31/* PROTOTYPES */
32int Print_job( int output, int status_device, struct job *job,
33	int send_job_rw_timeout, int poll_for_status, char *user_filter );
34int Run_OF_filter( int send_job_rw_timeout, int *of_pid, int *of_stdin, int *of_stderr,
35	int output, char **outbuf, int *outmax, int *outlen,
36	struct job *job, char *id, int terminate_of,
37	char *msgbuffer, int msglen );
38void Print_banner( char *name, char *pgm, struct job *job );
39int Write_outbuf_to_OF( struct job *job, char *title,
40	int of_fd, char *buffer, int outlen,
41	int of_error, char *msg, int msgmax,
42	int timeout, int poll_for_status, char *status_file );
43int Get_status_from_OF( struct job *job, char *title, int of_pid,
44	int of_error, char *msg, int msgmax,
45	int timeout, int suspend, int max_wait, char *status_file );
46int Wait_for_pid( int of_pid, char *name, int suspend, int timeout );
47
48#endif
49