Flipper Developer Docs
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
9
extern
"C"
{
10
#endif
11
12
#define RECORD_DOLPHIN "dolphin"
13
14
typedef
struct
Dolphin
Dolphin
;
15
16
typedef
struct
{
17
uint32_t icounter;
18
uint32_t butthurt;
19
uint64_t timestamp;
20
uint8_t level;
21
bool
level_up_is_pending;
22
}
DolphinStats
;
23
24
typedef
struct
{
25
bool
happy_mode;
26
}
DolphinSettings
;
27
28
typedef
enum
{
29
DolphinPubsubEventUpdate,
30
} DolphinPubsubEvent;
31
36
void
dolphin_deed(DolphinDeed deed);
37
38
void
dolphin_get_settings(
Dolphin
* dolphin,
DolphinSettings
* settings);
39
40
void
dolphin_set_settings(
Dolphin
* dolphin,
DolphinSettings
* settings);
41
45
DolphinStats
dolphin_stats(
Dolphin
* dolphin);
46
50
void
dolphin_flush(
Dolphin
* dolphin);
51
52
void
dolphin_upgrade_level(
Dolphin
* dolphin);
53
54
FuriPubSub
* dolphin_get_pubsub(
Dolphin
* dolphin);
55
56
#ifdef __cplusplus
57
}
58
#endif
pubsub.h
FuriPubSub.
Dolphin
Definition
dolphin_i.h:30
DolphinSettings
Definition
dolphin.h:24
DolphinStats
Definition
dolphin.h:16
FuriPubSub
Definition
pubsub.c:14
applications
services
dolphin
dolphin.h
Generated by
1.12.0