Loading...
Searching...
No Matches
dolphin_i.h
1#pragma once
2
3#include <furi.h>
4
5#include <core/pubsub.h>
6
7#include "dolphin.h"
8#include "helpers/dolphin_state.h"
9
10typedef enum {
11 DolphinEventTypeDeed,
12 DolphinEventTypeStats,
13 DolphinEventTypeFlush,
14 DolphinEventTypeLevel,
15 DolphinEventTypeReloadState,
16 DolphinEventTypeSettingsGet,
17 DolphinEventTypeSettingsSet,
18} DolphinEventType;
19
20typedef struct {
21 DolphinEventType type;
22 FuriEventFlag* flag;
23 union {
24 DolphinDeed deed;
25 DolphinStats* stats;
26 DolphinSettings* settings;
27 };
29
30struct Dolphin {
31 DolphinState* state;
32 FuriPubSub* pubsub;
33 FuriMessageQueue* event_queue;
34 FuriEventLoop* event_loop;
35 FuriEventLoopTimer* butthurt_timer;
36 FuriEventLoopTimer* flush_timer;
37 FuriEventLoopTimer* clear_limits_timer;
38};
FuriPubSub.
Definition dolphin_i.h:20
Definition dolphin_i.h:30
Definition dolphin.h:24
Definition dolphin_state.h:23
Definition dolphin.h:16
Definition event_flag.c:14
Definition event_loop_i.h:78
Definition event_loop_timer_i.h:14
Definition message_queue.c:16
Definition pubsub.c:14