defs.h revision 79121
150471Speter/* $FreeBSD: head/bin/chio/defs.h 79121 2001-07-03 03:22:49Z mikeh $ */ 223449Sjoerg 323449Sjoerg/* 423449Sjoerg * Copyright (c) 1996 Jason R. Thorpe <thorpej@and.com> 523449Sjoerg * All rights reserved. 623449Sjoerg * 723449Sjoerg * Redistribution and use in source and binary forms, with or without 823449Sjoerg * modification, are permitted provided that the following conditions 923449Sjoerg * are met: 1023449Sjoerg * 1. Redistributions of source code must retain the above copyright 1123449Sjoerg * notice, this list of conditions and the following disclaimer. 1223449Sjoerg * 2. Redistributions in binary form must reproduce the above copyright 1323449Sjoerg * notice, this list of conditions and the following disclaimer in the 1423449Sjoerg * documentation and/or other materials provided with the distribution. 1523449Sjoerg * 3. All advertising materials mentioning features or use of this software 1623449Sjoerg * must display the following acknowledgements: 1723449Sjoerg * This product includes software developed by Jason R. Thorpe 1823449Sjoerg * for And Communications, http://www.and.com/ 1923449Sjoerg * 4. The name of the author may not be used to endorse or promote products 2023449Sjoerg * derived from this software without specific prior written permission. 2123449Sjoerg * 2223449Sjoerg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2323449Sjoerg * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2423449Sjoerg * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2523449Sjoerg * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2623449Sjoerg * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 2723449Sjoerg * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 2823449Sjoerg * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 2923449Sjoerg * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 3023449Sjoerg * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3123449Sjoerg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3223449Sjoerg * SUCH DAMAGE. 3323449Sjoerg */ 3423449Sjoerg 3523449Sjoergstruct element_type { 3679121Smikeh const char *et_name; /* name; i.e. "picker, "slot", etc. */ 3723449Sjoerg int et_type; /* type number */ 3823449Sjoerg}; 3923449Sjoerg 4023449Sjoergstruct changer_command { 4179121Smikeh const char *cc_name; /* command name */ 4223449Sjoerg /* command handler */ 4379121Smikeh int (*cc_handler) __P((const char *, int, char **)); 4423449Sjoerg}; 4523449Sjoerg 4623449Sjoergstruct special_word { 4779121Smikeh const char *sw_name; /* special word */ 4823449Sjoerg int sw_value; /* token value */ 4923449Sjoerg}; 5023449Sjoerg 5123449Sjoerg/* sw_value */ 5223449Sjoerg#define SW_INVERT 1 /* set "invert media" flag */ 5323449Sjoerg#define SW_INVERT1 2 /* set "invert media 1" flag */ 5423449Sjoerg#define SW_INVERT2 3 /* set "invert media 2" flag */ 5523449Sjoerg 5623449Sjoerg/* Environment variable to check for default changer. */ 5723449Sjoerg#define CHANGER_ENV_VAR "CHANGER" 58