Add xkbc_free_keymap helper
Which just calls XkbcFreeKeyboard with the only arguments you'd ever pass it. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com> Signed-off-by: Daniel Stone <daniel@fooishbar.org>master
parent
99e29de22d
commit
c19661b965
|
@ -795,6 +795,9 @@ xkb_compile_keymap_from_file(FILE *inputFile, const char *mapName);
|
|||
_X_EXPORT extern struct xkb_desc *
|
||||
xkb_compile_keymap_from_string(const char *string, const char *mapName);
|
||||
|
||||
_X_EXPORT extern void
|
||||
xkb_free_keymap(struct xkb_desc *xkb);
|
||||
|
||||
_X_EXPORT extern struct xkb_component_list *
|
||||
xkb_list_components(struct xkb_component_names * ptrns, int *maxMatch);
|
||||
|
||||
|
|
|
@ -324,3 +324,9 @@ xkb_compile_keymap_from_file(FILE *inputFile, const char *mapName)
|
|||
|
||||
return compile_keymap(file, mapName);
|
||||
}
|
||||
|
||||
void
|
||||
xkb_free_keymap(struct xkb_desc *xkb)
|
||||
{
|
||||
XkbcFreeKeyboard(xkb, 0, True);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue