XkbFreeKeyboard(3) XKB FUNCTIONS XkbFreeKeyboard(3)

# [NAME](#NAME)

XkbFreeKeyboard - Destroys either an entire XkbDescRec or just some of its members

# [SYNOPSIS](#SYNOPSIS)

**void XkbFreeKeyboard** **(XkbDescPtr xkb,** **unsigned int which,** **Bool free\_all);**

# [ARGUMENTS](#ARGUMENTS)

[*xkb*](#xkb)

keyboard description with components to free

[*which*](#which)

mask selecting components to free

[*free\_all*](#free_all)

True =&gt; free all components and *xkb*

# [DESCRIPTION](#DESCRIPTION)

*XkbFreeKeyboard* frees the components of *xkb* specified by *which* and sets the corresponding values to NULL. If *free\_all* is True, *XkbFreeKeyboard* frees every non-NULL component of *xkb* and then frees the *xkb* structure itself.

If kbd is NULL, no operation is performed.

# [SEE ALSO](#SEE_ALSO)

[**XkbFreeClientMap**(3)](/man/os/libx11/XkbFreeClientMap.3), [**XkbFreeServerMap**(3)](/man/os/libx11/XkbFreeServerMap.3), [**XkbFreeCompatMap**(3)](/man/os/libx11/XkbFreeCompatMap.3), [**XkbFreeIndicatorMaps**(3)](/man/os/libx11/XkbFreeIndicatorMaps.3), [**XkbFreeNames**(3)](/man/os/libx11/XkbFreeNames.3), [**XkbFreeGeometry**(3)](/man/os/libx11/XkbFreeGeometry.3), [**XkbFreeControls**(3)](/man/os/libx11/XkbFreeControls.3)

libX11 1.8.14 X Version 11

---

Document: XkbFreeKeyboard(3) from libx11 1.8.14-r2 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libx11.git
