BSB Developer Docs
Loading...
Searching...
No Matches
loader.h File Reference

Loader service API. More...

#include <furi.h>

Go to the source code of this file.

Data Structures

struct  LoaderEvent
 

Macros

#define RECORD_LOADER   "loader"
 
#define LOADER_APPLICATIONS_NAME   "Apps"
 
#define LOADER_MAX_PRIORITY   100
 
#define LOADER_DEFAULT_APP_PRIORITY   10
 
#define LOADER_MAX_APP_PRIORITY   90
 
#define LOADER_STUB_APP_PRIORITY   0
 
#define LOADER_PASSTHROUGH_PRIORITY   (LOADER_DEFAULT_APP_PRIORITY - 1)
 
#define LOADER_BLOCKING_PRIORITY   (LOADER_MAX_PRIORITY + 1)
 

Typedefs

typedef struct Loader Loader
 

Enumerations

enum  LoaderStatus {
  LoaderStatusOk , LoaderStatusErrorAppStarted , LoaderStatusErrorAppNotRunning , LoaderStatusErrorUnknownApp ,
  LoaderStatusErrorNoSignalHandler
}
 
enum  LoaderEventType { LoaderEventTypeApplicationBeforeLoad , LoaderEventTypeApplicationLoadFailed , LoaderEventTypeApplicationStopped , LoaderEventTypePriorityChanged }
 

Functions

LoaderStatus loader_start (Loader *instance, const char *name, const char *args, FuriString *error_message)
 Start application.
 
LoaderStatus loader_stop (Loader *instance)
 Stop the currently running application.
 
bool loader_lock (Loader *instance)
 Lock application start.
 
void loader_unlock (Loader *instance)
 Unlock application start.
 
bool loader_is_locked (Loader *instance)
 Check if loader is locked.
 
FuriPubSub * loader_get_pubsub (Loader *instance)
 Get loader pubsub.
 
bool loader_get_application_name (Loader *instance, FuriString *name)
 Get the name of the currently running application.
 
bool loader_send_signal (Loader *instance, uint32_t signal, void *arg)
 Send a signal to the currently running application.
 
bool loader_set_priority (Loader *instance, size_t priority)
 Set the priority level for the currently running app.
 
size_t loader_get_priority (Loader *instance)
 Get the priority level of the currently running app.
 

Detailed Description

Loader service API.

See also
Loader service for more information.