1. NAME

XkbAllocKeyboard - Creates a keyboard description from scratch

2. SYNOPSIS

XkbDescRec XkbAllocKeyboard (void);

3. DESCRIPTION

Applications seldom need to directly allocate a keyboard description; calling XkbGetKeyboardusually suffices. In the event you need to create a keyboard description from scratch, however, use XkbAllocKeyboardrather than directly calling malloc. If XkbAllocKeyboardfails to allocate the keyboard description, it returns NULL. Otherwise, it returns a pointer to an empty keyboard description structure. The device_specfield 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.

4. SEE ALSO

R malloc (3F),

R XkbUseCoreKbd (3),

R XkbGetKeyboard (3)