1/*-2* Copyright (c) 1996 Jason R. Thorpe <[email protected]>3* All rights reserved.4*5* Redistribution and use in source and binary forms, with or without6* modification, are permitted provided that the following conditions7* are met:8* 1. Redistributions of source code must retain the above copyright9* notice, this list of conditions and the following disclaimer.10* 2. Redistributions in binary form must reproduce the above copyright11* notice, this list of conditions and the following disclaimer in the12* documentation and/or other materials provided with the distribution.13* 3. All advertising materials mentioning features or use of this software14* must display the following acknowledgements:15* This product includes software developed by Jason R. Thorpe16* for And Communications, http://www.and.com/17* 4. The name of the author may not be used to endorse or promote products18* derived from this software without specific prior written permission.19*20* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR21* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES22* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.23* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,24* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,25* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;26* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED27* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,28* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY29* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF30* SUCH DAMAGE.31*/3233struct element_type {34const char *et_name; /* name; i.e. "picker, "slot", etc. */35int et_type; /* type number */36};3738struct changer_command {39const char *cc_name; /* command name */40/* command handler */41int (*cc_handler)(const char *, int, char **);42};4344struct special_word {45const char *sw_name; /* special word */46int sw_value; /* token value */47};4849/* sw_value */50#define SW_INVERT 1 /* set "invert media" flag */51#define SW_INVERT1 2 /* set "invert media 1" flag */52#define SW_INVERT2 3 /* set "invert media 2" flag */5354/* Environment variable to check for default changer. */55#define CHANGER_ENV_VAR "CHANGER"565758