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: lpstat.h,v 1.1.1.1 2008/10/15 03:28:27 james26_jang Exp $
24 ***************************************************************************/
25
26
27
28#ifndef _LPSTAT_H_
29#define _LPSTAT_H_ 1
30EXTERN int LP_mode;			/* LP mode */
31EXTERN int Longformat;      /* Long format */
32EXTERN int Displayformat;   /* Display format */
33EXTERN int All_printers;    /* show all printers */
34EXTERN int Status_line_count; /* number of status lines */
35EXTERN int Clear_scr;       /* clear screen */
36EXTERN int Interval;        /* display interval */
37
38/* PROTOTYPES */
39int main(int argc, char *argv[], char *envp[]);
40void Show_status(char **argv, int display_format);
41int Read_status_info( char *host, int sock,
42	int output, int timeout, int display_format,
43	int status_line_count );
44int Add_val( char **var, char *val );
45void Get_parms(int argc, char *argv[] );
46void usage(void);
47
48#endif
49