BSB Developer Docs
Loading...
Searching...
No Matches
firmware_applications_si917/applications.h
1#pragma once
2
3#include <stdlib.h>
4#include <stdint.h>
6
7#ifndef COUNT_OF
8#define COUNT_OF(x) (sizeof(x) / sizeof(x[0]))
9#endif
10
11typedef int32_t (*FuriThreadCallback)(void* context);
12
13typedef struct {
14 const FuriThreadCallback app;
15 const char* name;
16 const char* appid;
17 const size_t stack_size;
19
20typedef struct {
21 const char* name;
22 const char* path;
24
25typedef struct {
26 void (*const callback)(void);
27 const size_t stack_size;
29
30typedef struct {
31 const CliCommandExecuteCallback callback;
32 const char* name;
33 const size_t stack_size;
34 const CliCommandFlag flags;
36
37extern const char* FLIPPER_AUTORUN_APP_NAME;
38
39/* Services list
40 * Spawned on startup
41 */
42extern const FlipperInternalApplication FLIPPER_SERVICES[];
43extern const size_t FLIPPER_SERVICES_COUNT;
44
45/* Apps list
46 * Spawned by loader
47 */
48extern const FlipperInternalApplication FLIPPER_APPS[];
49extern const size_t FLIPPER_APPS_COUNT;
50
51/* On system start hooks
52 * Called by loader, after OS initialization complete
53 */
54extern const FlipperInternalOnStartHook FLIPPER_ON_SYSTEM_START[];
55extern const size_t FLIPPER_ON_SYSTEM_START_COUNT;
56
57/* System apps
58 * Can only be spawned by loader by name
59 */
60extern const FlipperInternalApplication FLIPPER_SYSTEM_APPS[];
61extern const size_t FLIPPER_SYSTEM_APPS_COUNT;
62
63/* Debug apps
64 * Can only be spawned by loader by name
65 */
66extern const FlipperInternalApplication FLIPPER_DEBUG_APPS[];
67extern const size_t FLIPPER_DEBUG_APPS_COUNT;
68
69extern const FlipperInternalApplication FLIPPER_ARCHIVE;
70
71/* Settings list
72 * Spawned by loader
73 */
74extern const FlipperInternalApplication FLIPPER_SETTINGS_APPS[];
75extern const size_t FLIPPER_SETTINGS_APPS_COUNT;
76
77/* External Menu Apps list
78 * Spawned by loader
79 */
80extern const FlipperExternalApplication FLIPPER_EXTERNAL_APPS[];
81extern const size_t FLIPPER_EXTERNAL_APPS_COUNT;
82
83/* Internal CLI commands
84 * Added to main CLI registry by CLI startup hook
85 */
86extern const FlipperInternalCommandApplication FLIPPER_CLI_COMMANDS[];
87extern const size_t FLIPPER_CLI_COMMANDS_COUNT;
Bare minimum for internal CLI commands including redundant opaque types defined elsewhere.
CliCommandFlag
Definition cli_command_min.h:13
void(* CliCommandExecuteCallback)(PipeSide *pipe, FuriString *args, void *context)
CLI command execution callback pointer.
Definition cli_command_min.h:48
Definition firmware_applications_si917/applications.h:20
Definition firmware_applications_si917/applications.h:13
Definition firmware_applications_si917/applications.h:30
Definition firmware_applications_si917/applications.h:25