extern.h revision 98152
1215976Sjmallett/*
2232812Sjmallett * Copyright (c) 1989, 1993
3215976Sjmallett *	The Regents of the University of California.  All rights reserved.
4215976Sjmallett *
5215976Sjmallett *
6215976Sjmallett * Redistribution and use in source and binary forms, with or without
7215976Sjmallett * modification, are permitted provided that the following conditions
8215976Sjmallett * are met:
9215976Sjmallett * 1. Redistributions of source code must retain the above copyright
10215976Sjmallett *    notice, this list of conditions and the following disclaimer.
11215976Sjmallett * 2. Redistributions in binary form must reproduce the above copyright
12215976Sjmallett *    notice, this list of conditions and the following disclaimer in the
13215976Sjmallett *    documentation and/or other materials provided with the distribution.
14215976Sjmallett * 3. All advertising materials mentioning features or use of this software
15215976Sjmallett *    must display the following acknowledgement:
16215976Sjmallett *	This product includes software developed by the University of
17215976Sjmallett *	California, Berkeley and its contributors.
18232812Sjmallett * 4. Neither the name of the University nor the names of its contributors
19215976Sjmallett *    may be used to endorse or promote products derived from this software
20215976Sjmallett *    without specific prior written permission.
21215976Sjmallett *
22215976Sjmallett * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23215976Sjmallett * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24215976Sjmallett * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25215976Sjmallett * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26215976Sjmallett * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27215976Sjmallett * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28215976Sjmallett * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29232812Sjmallett * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30215976Sjmallett * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31215976Sjmallett * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32215976Sjmallett * SUCH DAMAGE.
33215976Sjmallett *
34215976Sjmallett *      @(#)extern.h	8.1 (Berkeley) 6/6/93
35215976Sjmallett *
36215976Sjmallett * $FreeBSD: head/usr.sbin/lpr/lpc/extern.h 98152 2002-06-13 01:55:48Z gad $
37215976Sjmallett */
38215976Sjmallett
39215976Sjmallett
40215976Sjmallett#include <sys/types.h>
41215976Sjmallett#include <sys/cdefs.h>
42215976Sjmallett
43215976Sjmallett
44215976Sjmallett__BEGIN_DECLS
45215976Sjmallettvoid	 abort_q(struct printer *_pp);
46215976Sjmallettvoid	 clean_q(struct printer *_pp);
47215976Sjmallettvoid	 disable_q(struct printer *_pp);
48215976Sjmallettvoid	 down(int _argc, char *_argv[]);
49215976Sjmallettvoid	 enable_q(struct printer *_pp);
50215976Sjmallettvoid	 generic(void (*_specificrtn)(struct printer *_pp),
51215976Sjmallett	    void (*_initcmd)(int _argc, char *_argv[]),
52232812Sjmallett	    int _argc, char *_argv[]);
53232812Sjmallettvoid	 help(int _argc, char *_argv[]);
54215976Sjmallettvoid	 init_clean(int _argc, char *_argv[]);
55215976Sjmallettvoid	 init_tclean(int _argc, char *_argv[]);
56215976Sjmallettvoid	 quit(int _argc, char *_argv[]);
57215976Sjmallettvoid	 restart_q(struct printer *_pp);
58215976Sjmallettvoid	 start_q(struct printer *_pp);
59215976Sjmallettvoid	 status(struct printer *_pp);
60215976Sjmallettvoid	 stop_q(struct printer *_pp);
61215976Sjmallettvoid	 topq(int _argc, char *_argv[]);
62215976Sjmallettvoid	 up_q(struct printer *_pp);
63215976Sjmallettvoid	 disable(struct printer *_pp);		/* X-version */
64215976Sjmallettvoid	 doabort(struct printer *_pp);		/* X-version */
65215976Sjmallettvoid	 enable(struct printer *_pp);		/* X-version */
66215976Sjmallettvoid	 restart(struct printer *_pp);		/* X-version */
67215976Sjmallettvoid	 startcmd(struct printer *_pp);		/* X-version */
68215976Sjmallettvoid	 stop(struct printer *_pp);		/* X-version */
69215976Sjmallettvoid	 up(struct printer *_pp);		/* X-version */
70215976Sjmallett__END_DECLS
71215976Sjmallett
72215976Sjmallettextern int NCMDS;
73215976Sjmallettextern struct cmd cmdtab[];
74215976Sjmallettextern uid_t	uid, euid;
75215976Sjmallett