|
xkbcommon 1.14.0-beta2
Reference 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_STATE_MODE = 86 , XKB_ERROR_UNSUPPORTED_KEY_ITERATOR_FLAGS = 138 , XKB_ERROR_UNSUPPORTED_LAYOUT_OUT_OF_RANGE_POLICY = 214 , XKB_ERROR_UNSUPPORTED_LAYOUT_INDEX = 237 , XKB_ERROR_UNSUPPORTED_KEYMAP_FORMAT = 277 , XKB_ERROR_LAYOUT_COUNT_LIMIT_EXCEEDED = 366 , XKB_ERROR_UNSUPPORTED_A11Y_FLAGS = 371 , XKB_ERROR_UNEXPECTED_STATE_MODE = 399 , XKB_ERROR_ABI_INVALID_STRUCT_SIZE = 450 , XKB_ERROR_ALLOCATION_FAILURE = 550 , XKB_ERROR_UNSUPPORTED_EVENTS_FLAGS = 611 , XKB_ERROR_UNSUPPORTED_MACHINE_FLAGS = 755 , XKB_ERROR_UNSUPPORTED_KEYMAP_SERIALIZATION_FLAGS = 829 , XKB_ERROR_ABI_FORWARD_COMPAT = 876 , XKB_ERROR_UNSUPPORTED_MACHINE_BUILDER_FLAGS = 899 , 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_STATE_MODE | Unsupported Use the following to check if the linked libxkbcommon supports a given mode: XKB_EXPORT bool xkb_feature_supported(enum xkb_feature feature, uint32_t value) Test feature support. @ XKB_FEATURE_ENUM_STATE_MODE The enumeration xkb_state_mode. Definition xkbcommon-features.h:188
|
| XKB_ERROR_UNSUPPORTED_KEY_ITERATOR_FLAGS | Unsupported Use the following to check if the linked libxkbcommon supports a given flag: @ XKB_FEATURE_ENUM_KEYMAP_KEY_ITERATOR_FLAGS The enumeration xkb_keymap_key_iterator_flags. Definition xkbcommon-features.h:158
|
| 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 supports a given flag: @ XKB_FEATURE_ENUM_LAYOUT_OUT_OF_RANGE_POLICY The enumeration xkb_layout_out_of_range_policy. Definition xkbcommon-features.h:170
|
| XKB_ERROR_UNSUPPORTED_LAYOUT_INDEX | Layout index is not supported. xkbcommon supports different layout index ranges, depending on the target keymap format:
|
| XKB_ERROR_UNSUPPORTED_KEYMAP_FORMAT | Unsupported keymap format. See
|
| XKB_ERROR_LAYOUT_COUNT_LIMIT_EXCEEDED | Layout count limit exceeded for the corresponding keymap format.
|
| XKB_ERROR_UNSUPPORTED_A11Y_FLAGS | Unsupported Use the following to check if the linked libxkbcommon supports a given flag: @ XKB_FEATURE_ENUM_A11Y_FLAGS The enumeration xkb_a11y_flags. Definition xkbcommon-features.h:176
|
| XKB_ERROR_UNEXPECTED_STATE_MODE | A
|
| XKB_ERROR_ABI_INVALID_STRUCT_SIZE | ABI struct size check failed. The .size = sizeof(struct xkb_foo)
|
| XKB_ERROR_ALLOCATION_FAILURE | Cannot allocate memory.
|
| XKB_ERROR_UNSUPPORTED_EVENTS_FLAGS | Unsupported Use the following to check if the linked libxkbcommon supports a given flag: @ XKB_FEATURE_ENUM_EVENTS_FLAGS The enumeration xkb_events_flags. Definition xkbcommon-features.h:242
|
| XKB_ERROR_UNSUPPORTED_MACHINE_FLAGS | Unsupported Use the following to check if the linked libxkbcommon supports a given flag: @ XKB_FEATURE_ENUM_MACHINE_FLAGS The enumeration xkb_machine_flags. Definition xkbcommon-features.h:212
|
| XKB_ERROR_UNSUPPORTED_KEYMAP_SERIALIZATION_FLAGS | Unsupported keymap serialization flags. See
|
| 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_UNSUPPORTED_MACHINE_BUILDER_FLAGS | Unsupported Use the following to check if the linked libxkbcommon supports a given flag: @ XKB_FEATURE_ENUM_MACHINE_BUILDER_FLAGS The enumeration xkb_machine_builder_flags. Definition xkbcommon-features.h:206
|
| 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.
|