#ifndef _X11_XKBLIB_H_
#define _X11_XKBLIB_H_
#include <X11/Xlib.h>
#include <X11/extensions/XKBstr.h>
XkbAnyEvent;
XkbNewKeyboardNotifyEvent;
XkbMapNotifyEvent;
XkbStateNotifyEvent;
XkbControlsNotifyEvent;
XkbIndicatorNotifyEvent;
XkbNamesNotifyEvent;
XkbCompatMapNotifyEvent;
XkbBellNotifyEvent;
XkbActionMessageEvent;
XkbAccessXNotifyEvent;
XkbExtensionDeviceNotifyEvent;
XkbEvent;
XkbKbdDpyStatePtr;
#define XkbOD_Success …
#define XkbOD_BadLibraryVersion …
#define XkbOD_ConnectionRefused …
#define XkbOD_NonXkbServer …
#define XkbOD_BadServerVersion …
#define XkbLC_ForceLatin1Lookup …
#define XkbLC_ConsumeLookupMods …
#define XkbLC_AlwaysConsumeShiftAndLock …
#define XkbLC_IgnoreNewKeyboards …
#define XkbLC_ControlFallback …
#define XkbLC_ConsumeKeysOnComposeFail …
#define XkbLC_ComposeLED …
#define XkbLC_BeepOnComposeFail …
#define XkbLC_AllComposeControls …
#define XkbLC_AllControls …
_XFUNCPROTOBEGIN
extern Bool XkbIgnoreExtension(
Bool
);
extern Display *XkbOpenDisplay(
char * ,
int * ,
int * ,
int * ,
int * ,
int *
);
extern Bool XkbQueryExtension(
Display * ,
int * ,
int * ,
int * ,
int * ,
int *
);
extern Bool XkbUseExtension(
Display * ,
int * ,
int *
);
extern Bool XkbLibraryVersion(
int * ,
int *
);
extern unsigned int XkbSetXlibControls(
Display* ,
unsigned int ,
unsigned int
);
extern unsigned int XkbGetXlibControls(
Display*
);
extern unsigned int XkbXlibControlsImplemented(void);
XkbInternAtomFunc;
XkbGetAtomNameFunc;
extern void XkbSetAtomFuncs(
XkbInternAtomFunc ,
XkbGetAtomNameFunc
);
extern KeySym XkbKeycodeToKeysym(
Display * ,
#if NeedWidePrototypes
unsigned int ,
#else
KeyCode ,
#endif
int ,
int
);
extern unsigned int XkbKeysymToModifiers(
Display * ,
KeySym
);
extern Bool XkbLookupKeySym(
Display * ,
KeyCode ,
unsigned int ,
unsigned int * ,
KeySym *
);
extern int XkbLookupKeyBinding(
Display * ,
KeySym ,
unsigned int ,
char * ,
int ,
int *
);
extern Bool XkbTranslateKeyCode(
XkbDescPtr ,
KeyCode ,
unsigned int ,
unsigned int * ,
KeySym *
);
extern int XkbTranslateKeySym(
Display * ,
KeySym * ,
unsigned int ,
char * ,
int ,
int *
);
extern Bool XkbSetAutoRepeatRate(
Display * ,
unsigned int ,
unsigned int ,
unsigned int
);
extern Bool XkbGetAutoRepeatRate(
Display * ,
unsigned int ,
unsigned int * ,
unsigned int *
);
extern Bool XkbChangeEnabledControls(
Display * ,
unsigned int ,
unsigned int ,
unsigned int
);
extern Bool XkbDeviceBell(
Display * ,
Window ,
int ,
int ,
int ,
int ,
Atom
);
extern Bool XkbForceDeviceBell(
Display * ,
int ,
int ,
int ,
int
);
extern Bool XkbDeviceBellEvent(
Display * ,
Window ,
int ,
int ,
int ,
int ,
Atom
);
extern Bool XkbBell(
Display * ,
Window ,
int ,
Atom
);
extern Bool XkbForceBell(
Display * ,
int
);
extern Bool XkbBellEvent(
Display * ,
Window ,
int ,
Atom
);
extern Bool XkbSelectEvents(
Display * ,
unsigned int ,
unsigned int ,
unsigned int
);
extern Bool XkbSelectEventDetails(
Display * ,
unsigned int ,
unsigned int ,
unsigned long ,
unsigned long
);
extern void XkbNoteMapChanges(
XkbMapChangesPtr ,
XkbMapNotifyEvent * ,
unsigned int
);
extern void XkbNoteNameChanges(
XkbNameChangesPtr ,
XkbNamesNotifyEvent * ,
unsigned int
);
extern Status XkbGetIndicatorState(
Display * ,
unsigned int ,
unsigned int *
);
extern Status XkbGetDeviceIndicatorState(
Display * ,
unsigned int ,
unsigned int ,
unsigned int ,
unsigned int *
);
extern Status XkbGetIndicatorMap(
Display * ,
unsigned long ,
XkbDescPtr
);
extern Bool XkbSetIndicatorMap(
Display * ,
unsigned long ,
XkbDescPtr
);
#define XkbNoteIndicatorMapChanges(o,n,w) …
#define XkbNoteIndicatorStateChanges(o,n,w) …
#define XkbGetIndicatorMapChanges(d,x,c) …
#define XkbChangeIndicatorMaps(d,x,c) …
extern Bool XkbGetNamedIndicator(
Display * ,
Atom ,
int * ,
Bool * ,
XkbIndicatorMapPtr ,
Bool *
);
extern Bool XkbGetNamedDeviceIndicator(
Display * ,
unsigned int ,
unsigned int ,
unsigned int ,
Atom ,
int * ,
Bool * ,
XkbIndicatorMapPtr ,
Bool *
);
extern Bool XkbSetNamedIndicator(
Display * ,
Atom ,
Bool ,
Bool ,
Bool ,
XkbIndicatorMapPtr
);
extern Bool XkbSetNamedDeviceIndicator(
Display * ,
unsigned int ,
unsigned int ,
unsigned int ,
Atom ,
Bool ,
Bool ,
Bool ,
XkbIndicatorMapPtr
);
extern Bool XkbLockModifiers(
Display * ,
unsigned int ,
unsigned int ,
unsigned int
);
extern Bool XkbLatchModifiers(
Display * ,
unsigned int ,
unsigned int ,
unsigned int
);
extern Bool XkbLockGroup(
Display * ,
unsigned int ,
unsigned int
);
extern Bool XkbLatchGroup(
Display * ,
unsigned int ,
unsigned int
);
extern Bool XkbSetServerInternalMods(
Display * ,
unsigned int ,
unsigned int ,
unsigned int ,
unsigned int ,
unsigned int
);
extern Bool XkbSetIgnoreLockMods(
Display * ,
unsigned int ,
unsigned int ,
unsigned int ,
unsigned int ,
unsigned int
);
extern Bool XkbVirtualModsToReal(
XkbDescPtr ,
unsigned int ,
unsigned int *
);
extern Bool XkbComputeEffectiveMap(
XkbDescPtr ,
XkbKeyTypePtr ,
unsigned char *
);
extern Status XkbInitCanonicalKeyTypes(
XkbDescPtr ,
unsigned int ,
int
);
extern XkbDescPtr XkbAllocKeyboard(
void
);
extern void XkbFreeKeyboard(
XkbDescPtr ,
unsigned int ,
Bool
);
extern Status XkbAllocClientMap(
XkbDescPtr ,
unsigned int ,
unsigned int
);
extern Status XkbAllocServerMap(
XkbDescPtr ,
unsigned int ,
unsigned int
);
extern void XkbFreeClientMap(
XkbDescPtr ,
unsigned int ,
Bool
);
extern void XkbFreeServerMap(
XkbDescPtr ,
unsigned int ,
Bool
);
extern XkbKeyTypePtr XkbAddKeyType(
XkbDescPtr ,
Atom ,
int ,
Bool ,
int
);
extern Status XkbAllocIndicatorMaps(
XkbDescPtr
);
extern void XkbFreeIndicatorMaps(
XkbDescPtr
);
extern XkbDescPtr XkbGetMap(
Display * ,
unsigned int ,
unsigned int
);
extern Status XkbGetUpdatedMap(
Display * ,
unsigned int ,
XkbDescPtr
);
extern Status XkbGetMapChanges(
Display * ,
XkbDescPtr ,
XkbMapChangesPtr
);
extern Status XkbRefreshKeyboardMapping(
XkbMapNotifyEvent *
);
extern Status XkbGetKeyTypes(
Display * ,
unsigned int ,
unsigned int ,
XkbDescPtr
);
extern Status XkbGetKeySyms(
Display * ,
unsigned int ,
unsigned int ,
XkbDescPtr
);
extern Status XkbGetKeyActions(
Display * ,
unsigned int ,
unsigned int ,
XkbDescPtr
);
extern Status XkbGetKeyBehaviors(
Display * ,
unsigned int ,
unsigned int ,
XkbDescPtr
);
extern Status XkbGetVirtualMods(
Display * ,
unsigned int ,
XkbDescPtr
);
extern Status XkbGetKeyExplicitComponents(
Display * ,
unsigned int ,
unsigned int ,
XkbDescPtr
);
extern Status XkbGetKeyModifierMap(
Display * ,
unsigned int ,
unsigned int ,
XkbDescPtr
);
extern Status XkbGetKeyVirtualModMap(
Display * ,
unsigned int ,
unsigned int ,
XkbDescPtr
);
extern Status XkbAllocControls(
XkbDescPtr ,
unsigned int
);
extern void XkbFreeControls(
XkbDescPtr ,
unsigned int ,
Bool
);
extern Status XkbGetControls(
Display * ,
unsigned long ,
XkbDescPtr
);
extern Bool XkbSetControls(
Display * ,
unsigned long ,
XkbDescPtr
);
extern void XkbNoteControlsChanges(
XkbControlsChangesPtr ,
XkbControlsNotifyEvent * ,
unsigned int
);
#define XkbGetControlsChanges(d,x,c) …
#define XkbChangeControls(d,x,c) …
extern Status XkbAllocCompatMap(
XkbDescPtr ,
unsigned int ,
unsigned int
);
extern void XkbFreeCompatMap(
XkbDescPtr ,
unsigned int ,
Bool
);
extern Status XkbGetCompatMap(
Display * ,
unsigned int ,
XkbDescPtr
);
extern Bool XkbSetCompatMap(
Display * ,
unsigned int ,
XkbDescPtr ,
Bool
);
extern XkbSymInterpretPtr XkbAddSymInterpret(
XkbDescPtr ,
XkbSymInterpretPtr ,
Bool ,
XkbChangesPtr
);
extern Status XkbAllocNames(
XkbDescPtr ,
unsigned int ,
int ,
int
);
extern Status XkbGetNames(
Display * ,
unsigned int ,
XkbDescPtr
);
extern Bool XkbSetNames(
Display * ,
unsigned int ,
unsigned int ,
unsigned int ,
XkbDescPtr
);
extern Bool XkbChangeNames(
Display * ,
XkbDescPtr ,
XkbNameChangesPtr
);
extern void XkbFreeNames(
XkbDescPtr ,
unsigned int ,
Bool
);
extern Status XkbGetState(
Display * ,
unsigned int ,
XkbStatePtr
);
extern Bool XkbSetMap(
Display * ,
unsigned int ,
XkbDescPtr
);
extern Bool XkbChangeMap(
Display* ,
XkbDescPtr ,
XkbMapChangesPtr
);
extern Bool XkbSetDetectableAutoRepeat(
Display * ,
Bool ,
Bool *
);
extern Bool XkbGetDetectableAutoRepeat(
Display * ,
Bool *
);
extern Bool XkbSetAutoResetControls(
Display * ,
unsigned int ,
unsigned int * ,
unsigned int *
);
extern Bool XkbGetAutoResetControls(
Display * ,
unsigned int * ,
unsigned int *
);
extern Bool XkbSetPerClientControls(
Display * ,
unsigned int ,
unsigned int *
);
extern Bool XkbGetPerClientControls(
Display * ,
unsigned int *
);
extern Status XkbCopyKeyType(
XkbKeyTypePtr ,
XkbKeyTypePtr
);
extern Status XkbCopyKeyTypes(
XkbKeyTypePtr ,
XkbKeyTypePtr ,
int
);
extern Status XkbResizeKeyType(
XkbDescPtr ,
int ,
int ,
Bool ,
int
);
extern KeySym *XkbResizeKeySyms(
XkbDescPtr ,
int ,
int
);
extern XkbAction *XkbResizeKeyActions(
XkbDescPtr ,
int ,
int
);
extern Status XkbChangeTypesOfKey(
XkbDescPtr ,
int ,
int ,
unsigned int ,
int * ,
XkbMapChangesPtr
);
extern Status XkbChangeKeycodeRange(
XkbDescPtr ,
int ,
int ,
XkbChangesPtr
);
extern XkbComponentListPtr XkbListComponents(
Display * ,
unsigned int ,
XkbComponentNamesPtr ,
int *
);
extern void XkbFreeComponentList(
XkbComponentListPtr
);
extern XkbDescPtr XkbGetKeyboard(
Display * ,
unsigned int ,
unsigned int
);
extern XkbDescPtr XkbGetKeyboardByName(
Display * ,
unsigned int ,
XkbComponentNamesPtr ,
unsigned int ,
unsigned int ,
Bool
);
extern int XkbKeyTypesForCoreSymbols(
XkbDescPtr ,
int ,
KeySym * ,
unsigned int ,
int * ,
KeySym *
);
extern Bool XkbApplyCompatMapToKey(
XkbDescPtr ,
KeyCode ,
XkbChangesPtr
);
extern Bool XkbUpdateMapFromCore(
XkbDescPtr ,
KeyCode ,
int ,
int ,
KeySym * ,
XkbChangesPtr
);
extern XkbDeviceLedInfoPtr XkbAddDeviceLedInfo(
XkbDeviceInfoPtr ,
unsigned int ,
unsigned int
);
extern Status XkbResizeDeviceButtonActions(
XkbDeviceInfoPtr ,
unsigned int
);
extern XkbDeviceInfoPtr XkbAllocDeviceInfo(
unsigned int ,
unsigned int ,
unsigned int
);
extern void XkbFreeDeviceInfo(
XkbDeviceInfoPtr ,
unsigned int ,
Bool
);
extern void XkbNoteDeviceChanges(
XkbDeviceChangesPtr ,
XkbExtensionDeviceNotifyEvent * ,
unsigned int
);
extern XkbDeviceInfoPtr XkbGetDeviceInfo(
Display * ,
unsigned int ,
unsigned int ,
unsigned int ,
unsigned int
);
extern Status XkbGetDeviceInfoChanges(
Display * ,
XkbDeviceInfoPtr ,
XkbDeviceChangesPtr
);
extern Status XkbGetDeviceButtonActions(
Display * ,
XkbDeviceInfoPtr ,
Bool ,
unsigned int ,
unsigned int
);
extern Status XkbGetDeviceLedInfo(
Display * ,
XkbDeviceInfoPtr ,
unsigned int ,
unsigned int ,
unsigned int
);
extern Bool XkbSetDeviceInfo(
Display * ,
unsigned int ,
XkbDeviceInfoPtr
);
extern Bool XkbChangeDeviceInfo(
Display* ,
XkbDeviceInfoPtr ,
XkbDeviceChangesPtr
);
extern Bool XkbSetDeviceLedInfo(
Display * ,
XkbDeviceInfoPtr ,
unsigned int ,
unsigned int ,
unsigned int
);
extern Bool XkbSetDeviceButtonActions(
Display * ,
XkbDeviceInfoPtr ,
unsigned int ,
unsigned int
);
extern char XkbToControl(
char
);
extern Bool XkbSetDebuggingFlags(
Display * ,
unsigned int ,
unsigned int ,
char * ,
unsigned int ,
unsigned int ,
unsigned int * ,
unsigned int *
);
extern Bool XkbApplyVirtualModChanges(
XkbDescPtr ,
unsigned int ,
XkbChangesPtr
);
extern Bool XkbUpdateActionVirtualMods(
XkbDescPtr ,
XkbAction * ,
unsigned int
);
extern void XkbUpdateKeyTypeVirtualMods(
XkbDescPtr ,
XkbKeyTypePtr ,
unsigned int ,
XkbChangesPtr
);
_XFUNCPROTOEND
#endif