2 Copyright 2009 Dan Nicholson
4 Permission is hereby granted, free of charge, to any person obtaining a
5 copy of this software and associated documentation files (the "Software"),
6 to deal in the Software without restriction, including without limitation
7 the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 and/or sell copies of the Software, and to permit persons to whom the
9 Software is furnished to do so, subject to the following conditions:
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
18 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 Except as contained in this notice, the names of the authors or their
22 institutions shall not be used in advertising or otherwise to promote the
23 sale, use or other dealings in this Software without prior written
24 authorization from the authors.
31 #include <X11/Xdefs.h>
32 #include <X11/extensions/XKBstrcommon.h>
33 #include <X11/extensions/XKBrulescommon.h>
34 #include "X11/extensions/XKBcommon.h"
37 XkbcAllocCompatMap(XkbcDescPtr xkb, unsigned which, unsigned nSI);
40 XkbcFreeCompatMap(XkbcDescPtr xkb, unsigned which, Bool freeMap);
43 XkbcAllocNames(XkbcDescPtr xkb, unsigned which, int nTotalRG,
47 XkbcFreeNames(XkbcDescPtr xkb, unsigned which, Bool freeMap);
50 XkbcAllocControls(XkbcDescPtr xkb, unsigned which);
53 XkbcFreeControls(XkbcDescPtr xkb, unsigned which, Bool freeMap);
56 XkbcAllocIndicatorMaps(XkbcDescPtr xkb);
59 XkbcFreeIndicatorMaps(XkbcDescPtr xkb);
62 XkbcAllocKeyboard(void);
65 XkbcFreeKeyboard(XkbcDescPtr xkb, unsigned which, Bool freeAll);
67 /***====================================================================***/
70 XkbcAllocClientMap(XkbcDescPtr xkb, unsigned which, unsigned nTotalTypes);
73 XkbcAllocServerMap(XkbcDescPtr xkb, unsigned which, unsigned nNewActions);
76 XkbcCopyKeyType(XkbKeyTypePtr from, XkbKeyTypePtr into);
79 XkbcCopyKeyTypes(XkbKeyTypePtr from, XkbKeyTypePtr into, int num_types);
82 XkbcResizeKeyType(XkbcDescPtr xkb, int type_ndx, int map_count,
83 Bool want_preserve, int new_num_lvls);
86 XkbcResizeKeySyms(XkbcDescPtr xkb, int key, int needed);
89 XkbcChangeKeycodeRange(XkbcDescPtr xkb, int minKC, int maxKC,
90 XkbChangesPtr changes);
93 XkbcResizeKeyActions(XkbcDescPtr xkb, int key, int needed);
96 XkbcFreeClientMap(XkbcDescPtr xkb, unsigned what, Bool freeMap);
99 XkbcFreeServerMap(XkbcDescPtr xkb, unsigned what, Bool freeMap);
101 #endif /* _XKBALLOC_H_ */