PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
element_id.h
Go to the documentation of this file.
1#ifndef PATCHWORK_ELEMENT_ID_H
2#define PATCHWORK_ELEMENT_ID_H 1
3
4#include <stdint.h>
5
6#if defined(__cplusplus)
7extern "C"
8{
9#endif
10
11/**
12 * @addtogroup libpatchwork_element
13 * @{
14 */
15
16/**
17 * @brief Element identifier type.
18 * @typedef element_id_t
19 *
20 * Used to send events to specific elements and to know which element sent an event, for example to know which button
21 * was pressed in a `EVENT_LIB_ACTION` event.
22 */
24
25/**
26 * @brief Element ID indicating no element.
27 */
28#define ELEMENT_ID_NONE UINT64_MAX
29
30/** @} */
31
32#if defined(__cplusplus)
33}
34#endif
35
36#endif
uint64_t element_id_t
Element identifier type.
Definition element_id.h:23
__UINT64_TYPE__ uint64_t
Definition stdint.h:17