Safe API Framework
0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Toggle main menu visibility
Loading...
Searching...
No Matches
rte_notify.h
Go to the documentation of this file.
1
113
#ifndef RTE_COMMON_NOTIFY_H
114
#define RTE_COMMON_NOTIFY_H
115
116
#include <stdint.h>
117
118
#ifdef __cplusplus
119
extern
"C"
{
120
#endif
121
136
#define RTE_DECLARE_CALLBACK_LIST(list_type, callback_fn_type, max_subscribers) \
137
typedef struct \
138
{ \
139
callback_fn_type fn; \
140
void *context; \
141
} list_type##_slot_t; \
142
typedef struct \
143
{ \
144
list_type##_slot_t slots[(max_subscribers)]; \
145
uint32_t count; \
146
} list_type
147
148
#ifdef __cplusplus
149
}
150
#endif
151
152
#endif
/* RTE_COMMON_NOTIFY_H */
153
/* NOTIFY */
include
rte
utils
notify
rte_notify.h
Generated by
1.18.0