Loading...
Searching...
No Matches
loader.h
1#pragma once
2#include <furi.h>
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define RECORD_LOADER "loader"
9#define LOADER_APPLICATIONS_NAME "Apps"
10
11typedef struct Loader Loader;
12
13typedef enum {
14 LoaderStatusOk,
15 LoaderStatusErrorAppStarted,
16 LoaderStatusErrorUnknownApp,
17 LoaderStatusErrorInternal,
18} LoaderStatus;
19
20typedef enum {
21 LoaderEventTypeApplicationBeforeLoad,
22 LoaderEventTypeApplicationLoadFailed,
23 LoaderEventTypeApplicationStopped
24} LoaderEventType;
25
26typedef struct {
27 LoaderEventType type;
29
38LoaderStatus
39 loader_start(Loader* instance, const char* name, const char* args, FuriString* error_message);
40
48LoaderStatus loader_start_with_gui_error(Loader* loader, const char* name, const char* args);
49
56void loader_start_detached_with_gui_error(Loader* loader, const char* name, const char* args);
57
63bool loader_lock(Loader* instance);
64
69void loader_unlock(Loader* instance);
70
76bool loader_is_locked(Loader* instance);
77
82void loader_show_menu(Loader* instance);
83
89FuriPubSub* loader_get_pubsub(Loader* instance);
90
100bool loader_signal(Loader* instance, uint32_t signal, void* arg);
101
109bool loader_get_application_name(Loader* instance, FuriString* name);
110
111#ifdef __cplusplus
112}
113#endif
Definition pubsub.c:14
Definition string.c:4
Definition loader.h:26
Definition loader_i.h:16