mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-16 01:02:32 +03:00
61c8f3325a
* menu: remove dead code * loader: change views from modules instead of menu service * dolphin: start main menu with loader API * applications: don't start menu service * loader: add debug tools menu * gui modules: introduce menu model * loader: remove calls to menu service API * gui modules: implement menu module * loader: add menu view * gui menu: add animation * applications: remove menu service * gui modules: rename icon_menu -> menu * loader: clean up code * menu module: add documentation, format code * menu: remove unused parameter * desktop: use loader to launch primary menu * Applications: cleaner makefile app declaration. Loader: application autostart * Gui: cleanup menu and submenu API. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
24 lines
485 B
C
24 lines
485 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
typedef struct Loader Loader;
|
|
|
|
/** Start application
|
|
* @param name - application name
|
|
* @param args - application arguments
|
|
* @retval true on success
|
|
*/
|
|
bool 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);
|
|
|
|
/** Show primary loader */
|
|
void loader_show_menu();
|