1 /* $OpenBSD: defs.h,v 1.4 2002/02/16 21:27:06 millert Exp $ */ 2 /* $NetBSD: defs.h,v 1.1.1.1 1996/04/03 00:34:38 thorpej Exp $ */ 3 4 /* 5 * Copyright (c) 1996 Jason R. Thorpe <thorpej@and.com> 6 * All rights reserved. 7 * 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 acknowledgments: 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. 22 * 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. 34 */ 35 36 struct element_type { 37 char *et_name; /* name; i.e. "picker, "slot", etc. */ 38 int et_type; /* type number */ 39 }; 40 41 struct changer_command { 42 char *cc_name; /* command name */ 43 /* command handler */ 44 int (*cc_handler)(char *, int, char **); 45 }; 46 47 struct special_word { 48 char *sw_name; /* special word */ 49 int sw_value; /* token value */ 50 }; 51 52 /* sw_value */ 53 #define SW_INVERT 1 /* set "invert media" flag */ 54 #define SW_INVERT1 2 /* set "invert media 1" flag */ 55 #define SW_INVERT2 3 /* set "invert media 2" flag */ 56 57 /* Environment variable to check for default changer. */ 58 #define CHANGER_ENV_VAR "CHANGER" 59