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 struct {
25 bool happy_mode;
27
28typedef enum {
29 DolphinPubsubEventUpdate,
30} DolphinPubsubEvent;
31
36void dolphin_deed(DolphinDeed deed);
37
38void dolphin_get_settings(Dolphin* dolphin, DolphinSettings* settings);
39
40void dolphin_set_settings(Dolphin* dolphin, DolphinSettings* settings);
41
45DolphinStats dolphin_stats(Dolphin* dolphin);
46
50void dolphin_flush(Dolphin* dolphin);
51
52void dolphin_upgrade_level(Dolphin* dolphin);
53
54FuriPubSub* dolphin_get_pubsub(Dolphin* dolphin);
55
56#ifdef __cplusplus
57}
58#endif
FuriPubSub.
Definition dolphin_i.h:30
Definition dolphin.h:24
Definition dolphin.h:16
Definition pubsub.c:14