mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-25 04:03:07 +00:00
63642617ee
* Application: clean debug_tools code base. * SubGhz: add duty cycle logging. * Application: hide debug tools if not enabled. Gui: move icon_animation allocation to menu module.
36 lines
769 B
C
36 lines
769 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
typedef struct Loader Loader;
|
|
|
|
typedef enum {
|
|
LoaderStatusOk,
|
|
LoaderStatusErrorAppStarted,
|
|
LoaderStatusErrorUnknownApp,
|
|
LoaderStatusErrorInternal,
|
|
} LoaderStatus;
|
|
|
|
/** Start application
|
|
* @param name - application name
|
|
* @param args - application arguments
|
|
* @retval true on success
|
|
*/
|
|
LoaderStatus loader_start(Loader* instance, const char* name, const char* args);
|
|
|
|
/** Lock application start
|
|
* @retval true on success
|
|
*/
|
|
bool loader_lock(Loader* instance);
|
|
|
|
/** Unlock application start */
|
|
void loader_unlock(Loader* instance);
|
|
|
|
/** Get loader lock status */
|
|
bool loader_is_locked(Loader* instance);
|
|
|
|
/** Show primary loader */
|
|
void loader_show_menu();
|
|
|
|
/** Show primary loader */
|
|
void loader_update_menu();
|