PatchworkOS
966e257
A non-POSIX operating system.
Theme:
Default
Round
Robot
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)
7
extern
"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
*/
23
typedef
uint64_t
element_id_t
;
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
element_id_t
uint64_t element_id_t
Element identifier type.
Definition
element_id.h:23
stdint.h
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:17
include
libpatchwork
element_id.h
Generated on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8