Flipper Zero Firmware
Loading...
Searching...
No Matches
dolphin.h
1#pragma once
2
3#include <stdbool.h>
4#include <core/pubsub.h>
5
6#include "helpers/dolphin_deed.h"
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#define RECORD_DOLPHIN "dolphin"
13
14typedef struct Dolphin Dolphin;
15
16typedef struct {
17 uint32_t icounter;
18 uint32_t butthurt;
19 uint64_t timestamp;
20 uint8_t level;
21 bool level_up_is_pending;
23
24typedef enum {
25 DolphinPubsubEventUpdate,
26} DolphinPubsubEvent;
27
32void dolphin_deed(DolphinDeed deed);
33
37DolphinStats dolphin_stats(Dolphin* dolphin);
38
42void dolphin_flush(Dolphin* dolphin);
43
44void dolphin_upgrade_level(Dolphin* dolphin);
45
46FuriPubSub* dolphin_get_pubsub(Dolphin* dolphin);
47
48#ifdef __cplusplus
49}
50#endif
FuriPubSub.
Definition dolphin_i.h:26
Definition dolphin.h:16
Definition pubsub.c:14