Messages: add new messages to registry
[platform/upstream/libxkbcommon.git] / src / messages-codes.h.jinja
1 // NOTE: This file has been generated automatically by “{{script}}”.
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  * @added 1.6.0
13  *
14  */
15 #define XKB_LOG_MESSAGE_NO_ID 0
16
17 /**
18  * @name Codes of the log messages
19  *
20  * @added 1.6.0
21  *
22  */
23 enum xkb_message_code {
24     _XKB_LOG_MESSAGE_MIN_CODE = {{ entries[0].code }},
25     {% for entry in entries %}
26     /** {{ entry.description }} */
27     {{ entry.message_code_constant }} = {{ entry.code }},
28     {% endfor %}
29     _XKB_LOG_MESSAGE_MAX_CODE = {{ entries[-1].code }}
30 };
31
32 typedef uint32_t xkb_message_code_t;
33
34 #endif