vmod.h revision f46a6179
1/* $Xorg: vmod.h,v 1.3 2000/08/17 19:54:33 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 VMOD_H
30#define VMOD_H 1
31
32typedef struct _VModInfo {
33    XkbDescPtr		xkb;
34    unsigned		defined;
35    unsigned		available;
36    unsigned		newlyDefined;
37    int			errorCount;
38} VModInfo;
39
40extern void	InitVModInfo(
41    VModInfo *	/* info */,
42    XkbDescPtr	/* xkb */
43);
44
45extern void	ClearVModInfo(
46    VModInfo *	/* info */,
47    XkbDescPtr	/* xkb */
48);
49
50extern Bool	HandleVModDef(
51    VModDef *	/* stmt */,
52    unsigned	/* mergeMode */,
53    VModInfo *	/* info */
54);
55
56extern Bool	ApplyVModDefs(
57    VModInfo *	/* info */,
58    XkbDescPtr	/* xkb */
59);
60
61extern int	LookupVModIndex(
62    XPointer 		/* priv */,
63    Atom		/* elem */,
64    Atom		/* field */,
65    unsigned		/* type */,
66    ExprResult *	/* val_rtrn */
67);
68
69extern int	LookupVModMask(
70    XPointer 		/* priv */,
71    Atom		/* elem */,
72    Atom		/* field */,
73    unsigned		/* type */,
74    ExprResult *	/* val_rtrn */
75);
76
77extern int	FindKeypadVMod(
78    XkbDescPtr		/* xkb */
79);
80
81extern Bool	ResolveVirtualModifier(
82    ExprDef *		/* def */,
83    ExprResult *	/* value_rtrn */,
84    VModInfo *		/* info */
85);
86
87#endif /* VMOD_H */
88