Flipper Zero Firmware
Loading...
Searching...
No Matches
event_loop_link_i.h
1#pragma once
2
3#include "event_loop.h"
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
10
11/* Link between Event Loop */
12
13typedef struct {
14 FuriEventLoopItem* item_in;
15 FuriEventLoopItem* item_out;
17
18void furi_event_loop_link_notify(FuriEventLoopLink* instance, FuriEventLoopEvent event);
19
20/* Contract between event loop and an object */
21
22typedef FuriEventLoopLink* (*FuriEventLoopContractGetLink)(void* object);
23
24typedef uint32_t (*FuriEventLoopContractGetLevel)(void* object, FuriEventLoopEvent event);
25
26typedef struct {
27 const FuriEventLoopContractGetLink get_link;
28 const FuriEventLoopContractGetLevel get_level;
30
31bool furi_event_loop_signal_callback(uint32_t signal, void* arg, void* context);
32
33#ifdef __cplusplus
34}
35#endif
Furi Event Loop.
FuriEventLoopEvent
Event Loop events.
Definition event_loop.h:24
Definition event_loop_link_i.h:26
Definition event_loop_i.h:14