extern.h revision 117599
114331Speter/* 214331Speter * Copyright (c) 1989, 1993 314331Speter * The Regents of the University of California. All rights reserved. 414331Speter * 514331Speter * 614331Speter * Redistribution and use in source and binary forms, with or without 714331Speter * modification, are permitted provided that the following conditions 814331Speter * are met: 914331Speter * 1. Redistributions of source code must retain the above copyright 1014331Speter * notice, this list of conditions and the following disclaimer. 1114331Speter * 2. Redistributions in binary form must reproduce the above copyright 1214331Speter * notice, this list of conditions and the following disclaimer in the 1314331Speter * documentation and/or other materials provided with the distribution. 1414331Speter * 3. All advertising materials mentioning features or use of this software 1514331Speter * must display the following acknowledgement: 1614331Speter * This product includes software developed by the University of 1714331Speter * California, Berkeley and its contributors. 1814331Speter * 4. Neither the name of the University nor the names of its contributors 1914331Speter * may be used to endorse or promote products derived from this software 2014331Speter * without specific prior written permission. 2114331Speter * 2214331Speter * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2314331Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2414331Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2514331Speter * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2614331Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2714331Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2814331Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2914331Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3014331Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3114331Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32116173Sobrien * SUCH DAMAGE. 33116173Sobrien * 34116173Sobrien * @(#)extern.h 8.1 (Berkeley) 6/6/93 3514331Speter * 3614331Speter * $FreeBSD: head/usr.sbin/lpr/lpc/extern.h 117599 2003-07-14 22:24:28Z gad $ 3714331Speter */ 3814331Speter 3914331Speter 4014331Speter#include <sys/types.h> 4114331Speter#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */ 42108541Salfred 43108541Salfred/* 4464913Smarcel * Options for setup_myprinter(). 4514331Speter */ 4614331Speter#define SUMP_NOHEADER 0x0001 /* Do not print a header line */ 4714331Speter#define SUMP_CHDIR_SD 0x0002 /* chdir into the spool directory */ 4814331Speter 4914331Speter__BEGIN_DECLS 5072091Sasmodaivoid abort_q(struct printer *_pp); 5114331Spetervoid bottomq_cmd(int _argc, char *_argv[]); 5214331Spetervoid clean_gi(int _argc, char *_argv[]); 5314331Spetervoid clean_q(struct printer *_pp); 5414331Spetervoid disable_q(struct printer *_pp); 5514331Spetervoid down_gi(int _argc, char *_argv[]); 5614331Spetervoid down_q(struct printer *_pp); 5785599Sdesvoid enable_q(struct printer *_pp); 5883366Sjulianvoid generic(void (*_specificrtn)(struct printer *_pp), int _cmdopts, 5914331Speter void (*_initcmd)(int _argc, char *_argv[]), 6014331Speter int _argc, char *_argv[]); 6114331Spetervoid help(int _argc, char *_argv[]); 6214331Spetervoid quit(int _argc, char *_argv[]); 6314331Spetervoid restart_q(struct printer *_pp); 64102803Siedowsevoid setstatus_gi(int _argc, char *_argv[]); 65102803Siedowsevoid setstatus_q(struct printer *_pp); 66102803Siedowsevoid start_q(struct printer *_pp); 67102803Siedowsevoid status(struct printer *_pp); 68102803Siedowsevoid stop_q(struct printer *_pp); 69102803Siedowsevoid tclean_gi(int _argc, char *_argv[]); 70102803Siedowsevoid topq_cmd(int _argc, char *_argv[]); 71102803Siedowsevoid up_q(struct printer *_pp); 72102803Siedowsevoid topq(int _argc, char *_argv[]); /* X-version */ 73102803Siedowse 74102803Siedowse/* from lpc.c: */ 75102803Siedowsestruct printer *setup_myprinter(char *_pwanted, struct printer *_pp, 76102803Siedowse int _sump_opts); 77102803Siedowse__END_DECLS 78102803Siedowse 79102803Siedowseextern int NCMDS; 80102803Siedowseextern struct cmd cmdtab[]; 81102803Siedowseextern uid_t uid, euid; 82102803Siedowse