Loading...
Searching...
No Matches
applications.h
1#pragma once
2
3#include <furi.h>
4#include <gui/icon.h>
5
6typedef enum {
7 FlipperInternalApplicationFlagDefault = 0,
8 FlipperInternalApplicationFlagInsomniaSafe = (1 << 0),
9} FlipperInternalApplicationFlag;
10
11typedef struct {
12 const FuriThreadCallback app;
13 const char* name;
14 const char* appid;
15 const size_t stack_size;
16 const Icon* icon;
17 const FlipperInternalApplicationFlag flags;
19
20typedef struct {
21 const char* name;
22 const Icon* icon;
23 const char* path;
25
26typedef void (*FlipperInternalOnStartHook)(void);
27
28extern const char* FLIPPER_AUTORUN_APP_NAME;
29
30/* Services list
31 * Spawned on startup
32 */
33extern const FlipperInternalApplication FLIPPER_SERVICES[];
34extern const size_t FLIPPER_SERVICES_COUNT;
35
36/* Apps list
37 * Spawned by loader
38 */
39extern const FlipperInternalApplication FLIPPER_APPS[];
40extern const size_t FLIPPER_APPS_COUNT;
41
42/* On system start hooks
43 * Called by loader, after OS initialization complete
44 */
45extern const FlipperInternalOnStartHook FLIPPER_ON_SYSTEM_START[];
46extern const size_t FLIPPER_ON_SYSTEM_START_COUNT;
47
48/* System apps
49 * Can only be spawned by loader by name
50 */
51extern const FlipperInternalApplication FLIPPER_SYSTEM_APPS[];
52extern const size_t FLIPPER_SYSTEM_APPS_COUNT;
53
54/* Debug apps
55 * Can only be spawned by loader by name
56 */
57extern const FlipperInternalApplication FLIPPER_DEBUG_APPS[];
58extern const size_t FLIPPER_DEBUG_APPS_COUNT;
59
60extern const FlipperInternalApplication FLIPPER_ARCHIVE;
61
62/* Settings list
63 * Spawned by loader
64 */
65extern const FlipperInternalApplication FLIPPER_SETTINGS_APPS[];
66extern const size_t FLIPPER_SETTINGS_APPS_COUNT;
67
68/* External Menu Apps list
69 * Spawned by loader
70 */
71extern const FlipperExternalApplication FLIPPER_EXTERNAL_APPS[];
72extern const size_t FLIPPER_EXTERNAL_APPS_COUNT;
GUI: Icon API.
Definition applications.h:20
Definition applications.h:11
Definition icon_i.h:9
int32_t(* FuriThreadCallback)(void *context)
Thread callback function pointer type.
Definition thread.h:66