* storage: added global #defines for /int, /ext & /any * storage: introduced PATH_EXT, PATH_INT& PATH_ANY macros * core apps: moved hardcoded config files names to separate headers; prefixed them with "."; updater: added file name migration to new naming convention on backup extraction * storage: fixed storage_merge_recursive handling of complex directory structures; storage_move_to_sd: changed data migration logic to all non-dot files & all folders * core: added macro aliases for core record names * Bumped protobuf commit pointer * storage: reserved 5 pages in /int; denying write&creation of non-dot files when running out of free space Co-authored-by: あく <alleteam@gmail.com>
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include <core/pubsub.h>
 | 
						|
#include <stdbool.h>
 | 
						|
 | 
						|
#define RECORD_LOADER "loader"
 | 
						|
 | 
						|
typedef struct Loader Loader;
 | 
						|
 | 
						|
typedef enum {
 | 
						|
    LoaderStatusOk,
 | 
						|
    LoaderStatusErrorAppStarted,
 | 
						|
    LoaderStatusErrorUnknownApp,
 | 
						|
    LoaderStatusErrorInternal,
 | 
						|
} LoaderStatus;
 | 
						|
 | 
						|
typedef enum {
 | 
						|
    LoaderEventTypeApplicationStarted,
 | 
						|
    LoaderEventTypeApplicationStopped
 | 
						|
} LoaderEventType;
 | 
						|
 | 
						|
typedef struct {
 | 
						|
    LoaderEventType type;
 | 
						|
} LoaderEvent;
 | 
						|
 | 
						|
/** 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();
 | 
						|
 | 
						|
/** Show primary loader */
 | 
						|
FuriPubSub* loader_get_pubsub(Loader* instance);
 |