xref: /freebsd/usr.sbin/lpr/lpc/extern.h (revision 004c9c5da2723f154106e8955ce5d05250f8e94e)
1dea673e9SRodney W. Grimes /*
2dea673e9SRodney W. Grimes  * Copyright (c) 1989, 1993
3dea673e9SRodney W. Grimes  *	The Regents of the University of California.  All rights reserved.
4dea673e9SRodney W. Grimes  *
5dea673e9SRodney W. Grimes  *
6dea673e9SRodney W. Grimes  * Redistribution and use in source and binary forms, with or without
7dea673e9SRodney W. Grimes  * modification, are permitted provided that the following conditions
8dea673e9SRodney W. Grimes  * are met:
9dea673e9SRodney W. Grimes  * 1. Redistributions of source code must retain the above copyright
10dea673e9SRodney W. Grimes  *    notice, this list of conditions and the following disclaimer.
11dea673e9SRodney W. Grimes  * 2. Redistributions in binary form must reproduce the above copyright
12dea673e9SRodney W. Grimes  *    notice, this list of conditions and the following disclaimer in the
13dea673e9SRodney W. Grimes  *    documentation and/or other materials provided with the distribution.
14dea673e9SRodney W. Grimes  * 3. All advertising materials mentioning features or use of this software
15dea673e9SRodney W. Grimes  *    must display the following acknowledgement:
16dea673e9SRodney W. Grimes  *	This product includes software developed by the University of
17dea673e9SRodney W. Grimes  *	California, Berkeley and its contributors.
18dea673e9SRodney W. Grimes  * 4. Neither the name of the University nor the names of its contributors
19dea673e9SRodney W. Grimes  *    may be used to endorse or promote products derived from this software
20dea673e9SRodney W. Grimes  *    without specific prior written permission.
21dea673e9SRodney W. Grimes  *
22dea673e9SRodney W. Grimes  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23dea673e9SRodney W. Grimes  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24dea673e9SRodney W. Grimes  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25dea673e9SRodney W. Grimes  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26dea673e9SRodney W. Grimes  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27dea673e9SRodney W. Grimes  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28dea673e9SRodney W. Grimes  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29dea673e9SRodney W. Grimes  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30dea673e9SRodney W. Grimes  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31dea673e9SRodney W. Grimes  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32dea673e9SRodney W. Grimes  * SUCH DAMAGE.
33dea673e9SRodney W. Grimes  *
34dea673e9SRodney W. Grimes  *      @(#)extern.h	8.1 (Berkeley) 6/6/93
35ba7a1ad7SGarance A Drosehn  *
36ba7a1ad7SGarance A Drosehn  * $FreeBSD$
37dea673e9SRodney W. Grimes  */
38dea673e9SRodney W. Grimes 
39dea673e9SRodney W. Grimes 
4090cf373dSGarrett Wollman #include <sys/types.h>
41dea673e9SRodney W. Grimes #include <sys/cdefs.h>
42dea673e9SRodney W. Grimes 
43dea673e9SRodney W. Grimes 
44dea673e9SRodney W. Grimes __BEGIN_DECLS
45004c9c5dSGarance A Drosehn void	 clean_q(struct printer *_pp);
46ba7a1ad7SGarance A Drosehn void	 disable(struct printer *_pp);
47ba7a1ad7SGarance A Drosehn void	 doabort(struct printer *_pp);
48ba7a1ad7SGarance A Drosehn void	 down(int _argc, char *_argv[]);
49ba7a1ad7SGarance A Drosehn void	 enable(struct printer *_pp);
50004c9c5dSGarance A Drosehn void	 generic(void (*_specificrtn)(struct printer *_pp),
51004c9c5dSGarance A Drosehn 	    void (*_initcmd)(int _argc, char *_argv[]),
52004c9c5dSGarance A Drosehn 	    int _argc, char *_argv[]);
53ba7a1ad7SGarance A Drosehn void	 help(int _argc, char *_argv[]);
54004c9c5dSGarance A Drosehn void	 init_clean(int _argc, char *_argv[]);
55004c9c5dSGarance A Drosehn void	 init_tclean(int _argc, char *_argv[]);
56ba7a1ad7SGarance A Drosehn void	 quit(int _argc, char *_argv[]);
57ba7a1ad7SGarance A Drosehn void	 restart(struct printer *_pp);
58ba7a1ad7SGarance A Drosehn void	 startcmd(struct printer *_pp);
59ba7a1ad7SGarance A Drosehn void	 status(struct printer *_pp);
60ba7a1ad7SGarance A Drosehn void	 stop(struct printer *_pp);
61ba7a1ad7SGarance A Drosehn void	 topq(int _argc, char *_argv[]);
62ba7a1ad7SGarance A Drosehn void	 up(struct printer *_pp);
63dea673e9SRodney W. Grimes __END_DECLS
64dea673e9SRodney W. Grimes 
65dea673e9SRodney W. Grimes extern int NCMDS;
66dea673e9SRodney W. Grimes extern struct cmd cmdtab[];
6790cf373dSGarrett Wollman extern uid_t	uid, euid;
68