XKB FUNCTIONS XkbGetKeyboard(3x11)
NAME
XkbGetKeyboard - Retrieves one or more components of a
keyboard device descriptionSYNOPSIS
cc [ flag... ] file... -lX11 [ library... ]
XkbDescPtr XkbGetKeyboard (Display *display, unsigned int
which, unsigned int device_spec);
ARGUMENTS display connection to the X serverdevice_spec
device ID, or XkbUseCoreKbdbits_to_change
determines events to be selected / deselectedvalues_for_bits
1=>select, 0->deselect; for events in bits_to_change
DESCRIPTION
XkbGetKeyboard allocates and returns a pointer to a keyboard
description. It queries the server for those componentsspecified in the which parameter for device device_spec and
copies the results to the XkbDescRec it allocated. The remaining fields in the keyboard description are set to NULL. The valid masks for which are those listed in Table 1. Table 1 Mask Bits for XkbDescRec_________________________________________________
Mask Bit XkbDescRec Field Value_________________________________________________
XkbControlsMask ctrls (1L<<0) XkbServerMapMask server (1L<<1) XkbIClientMapMask map (1L<<2) XkbIndicatorMapMask indicators (1L<<3) XkbNamesMask names (1L<<4) XkbCompatMapMask compat (1L<<5) XkbGeometryMask geom (1L<<6) XkbAllComponentsMask All Fields (1L<<7)XkbGetKeyboard is used to read the current description for
one or more components of a keyboard device. It callsXkbGetKeyboardByName as follows:
XkbGetKeyboardByName(dpy, device_spec, NULL, which, which,
False). X Version 11 Last change: libX11 1.3.5 1XKB FUNCTIONS XkbGetKeyboard(3x11)
DIAGNOSTICS BadAlloc Unable to allocate storageATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | x11/library/libx11 ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | See XInitThreads(3X11) |
|_____________________________|_____________________________|
X Version 11 Last change: libX11 1.3.5 2