24#define RECORD_LOADER "loader"
25#define LOADER_APPLICATIONS_NAME "Apps"
48#define LOADER_MAX_PRIORITY 100
49#define LOADER_DEFAULT_APP_PRIORITY 10
50#define LOADER_MAX_APP_PRIORITY 90
51#define LOADER_STUB_APP_PRIORITY 0
52#define LOADER_PASSTHROUGH_PRIORITY (LOADER_DEFAULT_APP_PRIORITY - 1)
53#define LOADER_BLOCKING_PRIORITY (LOADER_MAX_PRIORITY + 1)
61 LoaderStatusErrorAppStarted,
62 LoaderStatusErrorAppNotRunning,
63 LoaderStatusErrorUnknownApp,
64 LoaderStatusErrorNoSignalHandler,
68 LoaderEventTypeApplicationBeforeLoad,
69 LoaderEventTypeApplicationLoadFailed,
70 LoaderEventTypeApplicationStopped,
71 LoaderEventTypePriorityChanged,
88 loader_start(
Loader* instance,
const char* name,
const char* args, FuriString* error_message);
bool loader_lock(Loader *instance)
Lock application start.
Definition loader.c:62
void loader_unlock(Loader *instance)
Unlock application start.
Definition loader.c:76
FuriPubSub * loader_get_pubsub(Loader *instance)
Get loader pubsub.
Definition loader.c:100
size_t loader_get_priority(Loader *instance)
Get the priority level of the currently running app.
Definition loader.c:154
bool loader_is_locked(Loader *instance)
Check if loader is locked.
Definition loader.c:86
bool loader_send_signal(Loader *instance, uint32_t signal, void *arg)
Send a signal to the currently running application.
Definition loader.c:124
LoaderStatus loader_start(Loader *instance, const char *name, const char *args, FuriString *error_message)
Start application.
Definition loader.c:30
bool loader_set_priority(Loader *instance, size_t priority)
Set the priority level for the currently running app.
Definition loader.c:139
bool loader_get_application_name(Loader *instance, FuriString *name)
Get the name of the currently running application.
Definition loader.c:108
LoaderStatus loader_stop(Loader *instance)
Stop the currently running application.
Definition loader.c:48