indicators.h revision f46a6179
1/* $Xorg: indicators.h,v 1.3 2000/08/17 19:54:32 cpqbld Exp $ */ 2/************************************************************ 3 Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc. 4 5 Permission to use, copy, modify, and distribute this 6 software and its documentation for any purpose and without 7 fee is hereby granted, provided that the above copyright 8 notice appear in all copies and that both that copyright 9 notice and this permission notice appear in supporting 10 documentation, and that the name of Silicon Graphics not be 11 used in advertising or publicity pertaining to distribution 12 of the software without specific prior written permission. 13 Silicon Graphics makes no representation about the suitability 14 of this software for any purpose. It is provided "as is" 15 without any express or implied warranty. 16 17 SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 18 SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 19 AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON 20 GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 21 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 22 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 23 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH 24 THE USE OR PERFORMANCE OF THIS SOFTWARE. 25 26 ********************************************************/ 27/* $XFree86$ */ 28 29#ifndef INDICATORS_H 30#define INDICATORS_H 1 31 32#define _LED_Index (1<<0) 33#define _LED_Mods (1<<1) 34#define _LED_Groups (1<<2) 35#define _LED_Ctrls (1<<3) 36#define _LED_Explicit (1<<4) 37#define _LED_Automatic (1<<5) 38#define _LED_DrivesKbd (1<<6) 39 40#define _LED_NotBound 255 41 42typedef struct _LEDInfo { 43 CommonInfo defs; 44 Atom name; 45 unsigned char indicator; 46 unsigned char flags; 47 unsigned char which_mods; 48 unsigned char real_mods; 49 unsigned short vmods; 50 unsigned char which_groups; 51 unsigned char groups; 52 unsigned int ctrls; 53} LEDInfo; 54 55extern void ClearIndicatorMapInfo( 56 Display * /* dpy */, 57 LEDInfo * /* info */ 58); 59 60 61extern LEDInfo *AddIndicatorMap( 62 LEDInfo * /* oldLEDs */, 63 LEDInfo * /* newLED */ 64); 65 66extern int SetIndicatorMapField( 67 LEDInfo * /* led */, 68 XkbDescPtr /* xkb */, 69 char * /* field */, 70 ExprDef * /* arrayNdx */, 71 ExprDef * /* value */ 72); 73 74extern LEDInfo *HandleIndicatorMapDef( 75 IndicatorMapDef * /* stmt */, 76 XkbDescPtr /* xkb */, 77 LEDInfo * /* dflt */, 78 LEDInfo * /* oldLEDs */, 79 unsigned /* mergeMode */ 80); 81 82extern Bool CopyIndicatorMapDefs( 83 XkbFileInfo * /* result */, 84 LEDInfo * /* leds */, 85 LEDInfo ** /* unboundRtrn */ 86); 87 88extern Bool BindIndicators( 89 XkbFileInfo * /* result */, 90 Bool /* force */, 91 LEDInfo * /* unbound */, 92 LEDInfo ** /* unboundRtrn */ 93); 94 95#endif /* INDICATORS_H */ 96