|
libxkbcommon 1.13.0
Library implementing the XKB specification for parsing keyboard descriptions and handling keyboard state
|
Enumerations | |
| enum | xkb_error_code { XKB_ERROR_INVALID = -1 , XKB_SUCCESS = 0 , XKB_ERROR_UNSUPPORTED_MODIFIER_MASK = 60 , XKB_ERROR_UNSUPPORTED_LAYOUT_OUT_OF_RANGE_POLICY = 214 , XKB_ERROR_UNSUPPORTED_LAYOUT_INDEX = 237 , XKB_ERROR_UNSUPPORTED_A11Y_FLAGS = 371 , XKB_ERROR_ABI_INVALID_STRUCT_SIZE = 450 , XKB_ERROR_ABI_FORWARD_COMPAT = 876 , XKB_ERROR_ABI_BACKWARD_COMPAT = 914 } |
Error-handling related features.
| enum xkb_error_code |
Error codes returned by the API.
The numeric values are stable identifiers that are also used in logging. See the Error index for the full list of logging codes.
Codes are small positive integers assigned non-sequentially by design: it prevents callers from assuming adjacency implies relatedness.
See these guidelines for further details on the methodology.
The value -1 (XKB_ERROR_INVALID) is reserved for pre-1.14 functions and does not follow the above scheme.
| Enumerator | |
|---|---|
| XKB_ERROR_INVALID | An unspecified error occurred. Reserved for pre-1.14 functions, which signal errors via -1 return values documented per-function.
|
| XKB_SUCCESS | The operation completed successfully.
|
| XKB_ERROR_UNSUPPORTED_MODIFIER_MASK | Unsupported modifier mask. The modifier mask does not represent valid modifiers.
|
| XKB_ERROR_UNSUPPORTED_LAYOUT_OUT_OF_RANGE_POLICY | The given layout out-of-range policy is not supported. Use the following to check if the linked libxkbcommon library supports a given flag: XKB_EXPORT bool xkb_has_feature(enum xkb_feature feature, int value) Test feature availability. @ XKB_FEATURE_ENUM_LAYOUT_OUT_OF_RANGE_POLICY The enumeration xkb_layout_out_of_range_policy. Definition xkbcommon-features.h:116
|
| XKB_ERROR_UNSUPPORTED_LAYOUT_INDEX | Layout index is not supported. libxkbcommon supports different layout index ranges, depending on the target keymap format:
|
| XKB_ERROR_UNSUPPORTED_A11Y_FLAGS | Unsupported Use the following to check if the linked libxkbcommon library supports a given flag: @ XKB_FEATURE_ENUM_A11Y_FLAGS The enumeration xkb_a11y_flags. Definition xkbcommon-features.h:110
|
| XKB_ERROR_ABI_INVALID_STRUCT_SIZE | ABI struct size check failed. The .size = sizeof(struct xkb_foo)
|
| XKB_ERROR_ABI_FORWARD_COMPAT | ABI forward-compatibility check failed. The caller was compiled against a newer version of the library and is using fields unknown to this version.
|
| XKB_ERROR_ABI_BACKWARD_COMPAT | ABI backward-compatibility check failed. The caller was compiled against an older version of the library and is missing fields that are mandatory in this version.
|