Messages: merge macros with and without message code
[platform/upstream/libxkbcommon.git] / src / messages-codes.h
1 // NOTE: This file has been generated automatically by “update-message-registry.py”.
2 //       Do not edit manually!
3
4 #ifndef MESSAGES_H
5 #define MESSAGES_H
6
7 #include <stdint.h>
8
9 /**
10  * Special case when no message identifier is defined.
11  */
12 #define XKB_LOG_MESSAGE_NO_ID 0
13
14 /**
15  * @name Codes of the log messages
16  */
17 enum xkb_message_code {
18     _XKB_LOG_MESSAGE_MIN_CODE = 34,
19     /** Warn on malformed number literals */
20     XKB_ERROR_MALFORMED_NUMBER_LITERAL = 34,
21     /** Conflicting “preserve” entries in a key type */
22     XKB_WARNING_CONFLICTING_KEY_TYPE_PRESERVE_ENTRIES = 43,
23     /** Warn on unsupported modifier mask */
24     XKB_ERROR_UNSUPPORTED_MODIFIER_MASK = 60,
25     /** Expected an array entry, but the index is missing */
26     XKB_ERROR_EXPECTED_ARRAY_ENTRY = 77,
27     /** Illegal keycode alias with the name of a real key */
28     XKB_WARNING_ILLEGAL_KEYCODE_ALIAS = 101,
29     /** Warn on unrecognized keysyms */
30     XKB_WARNING_UNRECOGNIZED_KEYSYM = 107,
31     /** A virtual modifier is used before being declared */
32     XKB_ERROR_UNDECLARED_VIRTUAL_MODIFIER = 123,
33     /** The type of the statement is not allowed in the context */
34     XKB_ERROR_WRONG_STATEMENT_TYPE = 150,
35     /** Geometry sections are not supported */
36     XKB_WARNING_UNSUPPORTED_GEOMETRY_SECTION = 172,
37     /** Warn if no key type can be inferred */
38     XKB_WARNING_CANNOT_INFER_KEY_TYPE = 183,
39     /** The result of a key type “preserve” entry must be a subset of its input modifiers. */
40     XKB_WARNING_ILLEGAL_KEY_TYPE_PRESERVE_RESULT = 195,
41     /** Syntax error in the include statement */
42     XKB_ERROR_INVALID_INCLUDE_STATEMENT = 203,
43     /** A modmap entry is invalid */
44     XKB_ERROR_INVALID_MODMAP_ENTRY = 206,
45     /** Warn when a group index is not supported */
46     XKB_ERROR_UNSUPPORTED_GROUP_INDEX = 237,
47     /** The name of a key type level is defined multiple times. */
48     XKB_WARNING_CONFLICTING_KEY_TYPE_LEVEL_NAMES = 239,
49     /** Invalid statement setting default values */
50     XKB_ERROR_INVALID_SET_DEFAULT_STATEMENT = 254,
51     /** Conflicting “map” entries in type definition */
52     XKB_WARNING_CONFLICTING_KEY_TYPE_MAP_ENTRY = 266,
53     /** Warn if using an undefined key type */
54     XKB_WARNING_UNDEFINED_KEY_TYPE = 286,
55     /** Warn if a group name was defined for group other than the first one */
56     XKB_WARNING_NON_BASE_GROUP_NAME = 305,
57     /** Warn when a shift level is not supported */
58     XKB_ERROR_UNSUPPORTED_SHIFT_LEVEL = 312,
59     /** Could not find a file used in an include statement */
60     XKB_ERROR_INCLUDED_FILE_NOT_FOUND = 338,
61     /** Use of an operator that is unknown and thus unsupported */
62     XKB_ERROR_UNKNOWN_OPERATOR = 345,
63     /** An entry is duplicated and will be ignored */
64     XKB_WARNING_DUPLICATE_ENTRY = 378,
65     /** Conflicting definitions of a key type */
66     XKB_WARNING_CONFLICTING_KEY_TYPE_DEFINITIONS = 407,
67     /** A statement is in a wrong scope and should be moved */
68     XKB_ERROR_WRONG_SCOPE = 428,
69     /** Missing default section in included file */
70     XKB_WARNING_MISSING_DEFAULT_SECTION = 433,
71     /** Warn if there are conflicting keysyms while merging keys */
72     XKB_WARNING_CONFLICTING_KEY_SYMBOL = 461,
73     /** The operation is invalid in the context */
74     XKB_ERROR_INVALID_OPERATION = 478,
75     /** Warn on numeric keysym (other than 0-9) */
76     XKB_WARNING_NUMERIC_KEYSYM = 489,
77     /** TODO: add description */
78     XKB_WARNING_EXTRA_SYMBOLS_IGNORED = 516,
79     /** Conflicting definitions of a key name or alias */
80     XKB_WARNING_CONFLICTING_KEY_NAME = 523,
81     /** Cannot allocate memory */
82     XKB_ERROR_ALLOCATION_ERROR = 550,
83     /** Warn when a field has not the expected type */
84     XKB_ERROR_WRONG_FIELD_TYPE = 578,
85     /** Invalid _real_ modifier */
86     XKB_ERROR_INVALID_REAL_MODIFIER = 623,
87     /** Warn on unknown escape sequence in string literal */
88     XKB_WARNING_UNKNOWN_CHAR_ESCAPE_SEQUENCE = 645,
89     /** The target file of an include statement could not be processed */
90     XKB_ERROR_INVALID_INCLUDED_FILE = 661,
91     /** Warn if a key defines multiple groups at once */
92     XKB_WARNING_MULTIPLE_GROUPS_AT_ONCE = 700,
93     /** A legacy X11 symbol field is not supported */
94     XKB_WARNING_UNSUPPORTED_SYMBOLS_FIELD = 711,
95     /** The syntax is invalid and the file cannot be parsed */
96     XKB_ERROR_INVALID_SYNTAX = 769,
97     /** Reference to an undefined keycode */
98     XKB_WARNING_UNDEFINED_KEYCODE = 770,
99     /** An expression has not the expected type */
100     XKB_ERROR_INVALID_EXPRESSION_TYPE = 784,
101     /** A value is invalid and will be ignored */
102     XKB_ERROR_INVALID_VALUE = 796,
103     /** Warn if there are conflicting modmap definitions */
104     XKB_WARNING_CONFLICTING_MODMAP = 800,
105     /** A field is unknown and will be ignored */
106     XKB_ERROR_UNKNOWN_FIELD = 812,
107     /** Warn if there are conflicting actions while merging keys */
108     XKB_WARNING_CONFLICTING_KEY_ACTION = 883,
109     /** Warn if there are conflicting key types while merging groups */
110     XKB_WARNING_CONFLICTING_KEY_TYPE_MERGING_GROUPS = 893,
111     /** Conflicting symbols entry for a key */
112     XKB_ERROR_CONFLICTING_KEY_SYMBOLS_ENTRY = 901,
113     /** Missing group index in a group name entry */
114     XKB_WARNING_MISSING_SYMBOLS_GROUP_NAME_INDEX = 903,
115     /** Warn if there are conflicting fields while merging keys */
116     XKB_WARNING_CONFLICTING_KEY_FIELDS = 935,
117     /** An identifier is used but is not built-in */
118     XKB_ERROR_INVALID_IDENTIFIER = 949,
119     /** Warn if using a symbol not defined in the keymap */
120     XKB_WARNING_UNRESOLVED_KEYMAP_SYMBOL = 965,
121     /** Some modifiers used in a key type “map” or “preserve” entry are not declared */
122     XKB_WARNING_UNDECLARED_MODIFIERS_IN_KEY_TYPE = 971,
123     _XKB_LOG_MESSAGE_MAX_CODE = 971
124 };
125
126 typedef uint32_t xkb_message_code_t;
127
128 #endif