alias.h revision f46a6179
1f46a6179Smrg/* $Xorg: alias.h,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ */ 2f46a6179Smrg/************************************************************ 3f46a6179Smrg Copyright (c) 1995 by Silicon Graphics Computer Systems, Inc. 4f46a6179Smrg 5f46a6179Smrg Permission to use, copy, modify, and distribute this 6f46a6179Smrg software and its documentation for any purpose and without 7f46a6179Smrg fee is hereby granted, provided that the above copyright 8f46a6179Smrg notice appear in all copies and that both that copyright 9f46a6179Smrg notice and this permission notice appear in supporting 10f46a6179Smrg documentation, and that the name of Silicon Graphics not be 11f46a6179Smrg used in advertising or publicity pertaining to distribution 12f46a6179Smrg of the software without specific prior written permission. 13f46a6179Smrg Silicon Graphics makes no representation about the suitability 14f46a6179Smrg of this software for any purpose. It is provided "as is" 15f46a6179Smrg without any express or implied warranty. 16f46a6179Smrg 17f46a6179Smrg SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 18f46a6179Smrg SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 19f46a6179Smrg AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON 20f46a6179Smrg GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 21f46a6179Smrg DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 22f46a6179Smrg DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 23f46a6179Smrg OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH 24f46a6179Smrg THE USE OR PERFORMANCE OF THIS SOFTWARE. 25f46a6179Smrg 26f46a6179Smrg ********************************************************/ 27f46a6179Smrg/* $XFree86$ */ 28f46a6179Smrg 29f46a6179Smrg#ifndef ALIAS_H 30f46a6179Smrg#define ALIAS_H 1 31f46a6179Smrg 32f46a6179Smrgtypedef struct _AliasInfo { 33f46a6179Smrg CommonInfo def; 34f46a6179Smrg char alias[XkbKeyNameLength+1]; 35f46a6179Smrg char real[XkbKeyNameLength+1]; 36f46a6179Smrg} AliasInfo; 37f46a6179Smrg 38f46a6179Smrgextern int HandleAliasDef( 39f46a6179Smrg KeyAliasDef * /* def */, 40f46a6179Smrg unsigned /* merge */, 41f46a6179Smrg unsigned /* file_id */, 42f46a6179Smrg AliasInfo ** /* info */ 43f46a6179Smrg); 44f46a6179Smrg 45f46a6179Smrgextern void ClearAliases( 46f46a6179Smrg AliasInfo ** /* info */ 47f46a6179Smrg); 48f46a6179Smrg 49f46a6179Smrgextern Bool MergeAliases( 50f46a6179Smrg AliasInfo ** /* into */, 51f46a6179Smrg AliasInfo ** /* merge */, 52f46a6179Smrg unsigned /* how_merge */ 53f46a6179Smrg); 54f46a6179Smrg 55f46a6179Smrgextern int ApplyAliases( 56f46a6179Smrg XkbDescPtr /* xkb */, 57f46a6179Smrg Bool /* toGeom */, 58f46a6179Smrg AliasInfo ** /* info */ 59f46a6179Smrg); 60f46a6179Smrg 61f46a6179Smrg#endif /* ALIAS_H */ 62