XkbAllocKeyboard(3Xkb) XKB FUNCTION XkbAllocKeyboard(3Xkb)NAMEXkbAllocKeyboard - Creates a keyboard description from scratch
SYNOPSIS
XkbDescRec XkbAllocKeyboard ( void )
DESCRIPTION
Applications seldom need to directly allocate a keyboard description;
calling XkbGetKeyboard usually suffices. In the event you need to cre‐
ate a keyboard description from scratch, however, use XkbAllocKeyboard
rather than directly calling malloc.
If XkbAllocKeyboard fails to allocate the keyboard description, it
returns NULL. Otherwise, it returns a pointer to an empty 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 functions to obtain values for the structure components from
a keyboard device.
SEE ALSOmalloc(3F), XkbUseCoreKbd(3Xkb), XkbGetKeyboard(3Xkb)
X v11 Rel. 6.4 19 Jul 1999 XkbAllocKeyboard(3Xkb)