XKB FUNCTIONS XkbAllocKeyboard(3x11)
NAME
XkbAllocKeyboard - Creates a keyboard description from
scratchSYNOPSIS
cc [ flag... ] file... -lX11 [ library... ]
XkbDescRec XkbAllocKeyboard (void);
DESCRIPTION
Applications seldom need to directly allocate a keyboard description; calling XkbGetKeyboard usually suffices. In the event you need to create a keyboard description fromscratch, however, use XkbAllocKeyboard rather than directly
calling malloc.If XkbAllocKeyboard fails to allocate the keyboard descrip-
tion, it returns NULL. Otherwise, it returns a pointer to anempty keyboard description structure. The device_spec field
will have been initialized to XkbUseCoreKbd. You may then either fill in the structure components or use Xkb functionsto obtain values for the structure components from a key-
board device.SEE ALSO
malloc(3F), XkbUseCoreKbd(3x11), XkbGetKeyboard(3x11)ATTRIBUTES
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 1