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 * 4. Neither the name of the University nor the names of its contributors 151553Srgrimes * may be used to endorse or promote products derived from this software 161553Srgrimes * without specific prior written permission. 171553Srgrimes * 181553Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 191553Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 201553Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 211553Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 221553Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 231553Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 241553Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 251553Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 261553Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 271553Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 281553Srgrimes * SUCH DAMAGE. 291553Srgrimes * 301553Srgrimes * @(#)extern.h 8.1 (Berkeley) 6/6/93 3178146Sgad * 3278146Sgad * $FreeBSD: releng/10.2/usr.sbin/lpr/lpc/extern.h 216372 2010-12-11 09:38:12Z joel $ 331553Srgrimes */ 341553Srgrimes 351553Srgrimes 3639084Swollman#include <sys/types.h> 37117599Sgad#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */ 381553Srgrimes 39100203Sgad/* 40100203Sgad * Options for setup_myprinter(). 41100203Sgad */ 42100203Sgad#define SUMP_NOHEADER 0x0001 /* Do not print a header line */ 43100203Sgad#define SUMP_CHDIR_SD 0x0002 /* chdir into the spool directory */ 441553Srgrimes 451553Srgrimes__BEGIN_DECLS 4698152Sgadvoid abort_q(struct printer *_pp); 47100203Sgadvoid bottomq_cmd(int _argc, char *_argv[]); 4898279Sgadvoid clean_gi(int _argc, char *_argv[]); 4978750Sgadvoid clean_q(struct printer *_pp); 5098152Sgadvoid disable_q(struct printer *_pp); 5198278Sgadvoid down_gi(int _argc, char *_argv[]); 5298278Sgadvoid down_q(struct printer *_pp); 5398152Sgadvoid enable_q(struct printer *_pp); 5498267Sgadvoid generic(void (*_specificrtn)(struct printer *_pp), int _cmdopts, 5578750Sgad void (*_initcmd)(int _argc, char *_argv[]), 5678750Sgad int _argc, char *_argv[]); 5778146Sgadvoid help(int _argc, char *_argv[]); 5878146Sgadvoid quit(int _argc, char *_argv[]); 5998152Sgadvoid restart_q(struct printer *_pp); 6098267Sgadvoid setstatus_gi(int _argc, char *_argv[]); 6198267Sgadvoid setstatus_q(struct printer *_pp); 6298152Sgadvoid start_q(struct printer *_pp); 6378146Sgadvoid status(struct printer *_pp); 6498152Sgadvoid stop_q(struct printer *_pp); 6598279Sgadvoid tclean_gi(int _argc, char *_argv[]); 66100203Sgadvoid topq_cmd(int _argc, char *_argv[]); 6798152Sgadvoid up_q(struct printer *_pp); 68100203Sgadvoid topq(int _argc, char *_argv[]); /* X-version */ 69100203Sgad 70100203Sgad/* from lpc.c: */ 71100203Sgadstruct printer *setup_myprinter(char *_pwanted, struct printer *_pp, 72100203Sgad int _sump_opts); 731553Srgrimes__END_DECLS 741553Srgrimes 751553Srgrimesextern int NCMDS; 761553Srgrimesextern struct cmd cmdtab[]; 7739084Swollmanextern uid_t uid, euid; 78