extern.h revision 98267
11553Srgrimes/*
21553Srgrimes * Copyright (c) 1989, 1993
31553Srgrimes *	The Regents of the University of California.  All rights reserved.
41553Srgrimes *
51553Srgrimes *
61553Srgrimes * Redistribution and use in source and binary forms, with or without
71553Srgrimes * modification, are permitted provided that the following conditions
81553Srgrimes * are met:
91553Srgrimes * 1. Redistributions of source code must retain the above copyright
101553Srgrimes *    notice, this list of conditions and the following disclaimer.
111553Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
121553Srgrimes *    notice, this list of conditions and the following disclaimer in the
131553Srgrimes *    documentation and/or other materials provided with the distribution.
141553Srgrimes * 3. All advertising materials mentioning features or use of this software
151553Srgrimes *    must display the following acknowledgement:
161553Srgrimes *	This product includes software developed by the University of
171553Srgrimes *	California, Berkeley and its contributors.
181553Srgrimes * 4. Neither the name of the University nor the names of its contributors
191553Srgrimes *    may be used to endorse or promote products derived from this software
201553Srgrimes *    without specific prior written permission.
211553Srgrimes *
221553Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
231553Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
241553Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
251553Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
261553Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
271553Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
281553Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
291553Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
301553Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
311553Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
321553Srgrimes * SUCH DAMAGE.
331553Srgrimes *
341553Srgrimes *      @(#)extern.h	8.1 (Berkeley) 6/6/93
3578146Sgad *
3678146Sgad * $FreeBSD: head/usr.sbin/lpr/lpc/extern.h 98267 2002-06-15 22:51:58Z gad $
371553Srgrimes */
381553Srgrimes
391553Srgrimes
4039084Swollman#include <sys/types.h>
411553Srgrimes#include <sys/cdefs.h>
421553Srgrimes
431553Srgrimes
441553Srgrimes__BEGIN_DECLS
4598152Sgadvoid	 abort_q(struct printer *_pp);
4678750Sgadvoid	 clean_q(struct printer *_pp);
4798152Sgadvoid	 disable_q(struct printer *_pp);
4878146Sgadvoid	 down(int _argc, char *_argv[]);
4998152Sgadvoid	 enable_q(struct printer *_pp);
5098267Sgadvoid	 generic(void (*_specificrtn)(struct printer *_pp), int _cmdopts,
5178750Sgad	    void (*_initcmd)(int _argc, char *_argv[]),
5278750Sgad	    int _argc, char *_argv[]);
5378146Sgadvoid	 help(int _argc, char *_argv[]);
5478750Sgadvoid	 init_clean(int _argc, char *_argv[]);
5578750Sgadvoid	 init_tclean(int _argc, char *_argv[]);
5678146Sgadvoid	 quit(int _argc, char *_argv[]);
5798152Sgadvoid	 restart_q(struct printer *_pp);
5898267Sgadvoid	 setstatus_gi(int _argc, char *_argv[]);
5998267Sgadvoid	 setstatus_q(struct printer *_pp);
6098152Sgadvoid	 start_q(struct printer *_pp);
6178146Sgadvoid	 status(struct printer *_pp);
6298152Sgadvoid	 stop_q(struct printer *_pp);
6378146Sgadvoid	 topq(int _argc, char *_argv[]);
6498152Sgadvoid	 up_q(struct printer *_pp);
6598152Sgadvoid	 disable(struct printer *_pp);		/* X-version */
6698152Sgadvoid	 doabort(struct printer *_pp);		/* X-version */
6798152Sgadvoid	 enable(struct printer *_pp);		/* X-version */
6898152Sgadvoid	 restart(struct printer *_pp);		/* X-version */
6998152Sgadvoid	 startcmd(struct printer *_pp);		/* X-version */
7098152Sgadvoid	 stop(struct printer *_pp);		/* X-version */
7198152Sgadvoid	 up(struct printer *_pp);		/* X-version */
721553Srgrimes__END_DECLS
731553Srgrimes
741553Srgrimesextern int NCMDS;
751553Srgrimesextern struct cmd cmdtab[];
7639084Swollmanextern uid_t	uid, euid;
77