distortos  v0.6.0
object-oriented C++ RTOS for microcontrollers
IntrusiveListNode.h
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_ESTD_C_API_INTRUSIVELISTNODE_H_
13 #define INCLUDE_ESTD_C_API_INTRUSIVELISTNODE_H_
14 
15 #ifdef __cplusplus
16 extern "C"
17 {
18 #endif /* def __cplusplus */
19 
20 /*---------------------------------------------------------------------------------------------------------------------+
21 | global types
22 +---------------------------------------------------------------------------------------------------------------------*/
23 
31 {
33  const void* nextNode;
34 
36  const void* previousNode;
37 };
38 
39 /*---------------------------------------------------------------------------------------------------------------------+
40 | global defines
41 +---------------------------------------------------------------------------------------------------------------------*/
42 
51 #define ESTD_INTRUSIVELISTNODE_INITIALIZER(self) {&(self), &(self)}
52 
53 #ifdef __cplusplus
54 } /* extern "C" */
55 #endif /* def __cplusplus */
56 
57 #endif /* INCLUDE_ESTD_C_API_INTRUSIVELISTNODE_H_ */
C-API equivalent of estd::IntrusiveListNode.
Definition: IntrusiveListNode.h:30
const void * nextNode
Definition: IntrusiveListNode.h:33
const void * previousNode
Definition: IntrusiveListNode.h:36