HAMMER utility - Add ^C support, improve verbosity.
[dragonfly.git] / bin / chio / defs.h
blobd4a342b0024f4ea08f193eaeffae50aa3d7c990c
1 /* $FreeBSD: src/bin/chio/defs.h,v 1.2.2.1 2001/07/28 19:22:01 mikeh Exp $ */
2 /* $DragonFly: src/bin/chio/defs.h,v 1.4 2004/08/25 01:13:05 dillon Exp $ */
4 /*
5 * Copyright (c) 1996 Jason R. Thorpe <thorpej@and.com>
6 * All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgements:
18 * This product includes software developed by Jason R. Thorpe
19 * for And Communications, http://www.and.com/
20 * 4. The name of the author may not be used to endorse or promote products
21 * derived from this software without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
30 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
35 /* sw_value */
36 #define SW_INVERT 1 /* set "invert media" flag */
37 #define SW_INVERT1 2 /* set "invert media 1" flag */
38 #define SW_INVERT2 3 /* set "invert media 2" flag */
40 /* Environment variable to check for default changer. */
41 #define CHANGER_ENV_VAR "CHANGER"
43 struct element_type {
44 const char *et_name; /* name; i.e. "picker, "slot", etc. */
45 int et_type; /* type number */
48 struct changer_command {
49 const char *cc_name; /* command name */
50 /* command handler */
51 int (*cc_handler) (const char *, int, char **);
54 struct special_word {
55 const char *sw_name; /* special word */
56 int sw_value; /* token value */