logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

XkbAllocKeyboard - Creates a keyboard description from scratch

Description

       Applications  seldom  need  to  directly  allocate a keyboard description; calling XkbGetKeyboard usually
       suffices.  In  the  event  you  need  to  create  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.

Name

       XkbAllocKeyboard -  Creates a keyboard description from scratch

See Also

malloc(3F), XkbUseCoreKbd(3), XkbGetKeyboard(3)

X Version 11                                      libX11 1.8.12                              XkbAllocKeyboard(3)

Synopsis

XkbDescRecXkbAllocKeyboard(void);

See Also