* Added support for running applications from SD card (FAPs - Flipper Application Packages) * Added plugin_dist target for fbt to build FAPs * All apps of type FlipperAppType.EXTERNAL and FlipperAppType.PLUGIN are built as FAPs by default * Updated VSCode configuration for new fbt features - re-deploy stock configuration to use them * Added debugging support for FAPs with fbt debug & VSCode * Added public firmware API with automated versioning Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: SG <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/**
 | 
						|
 * @file file_browser.h
 | 
						|
 * GUI: FileBrowser view module API
 | 
						|
 */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include "m-string.h"
 | 
						|
#include <gui/view.h>
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
typedef struct FileBrowser FileBrowser;
 | 
						|
typedef void (*FileBrowserCallback)(void* context);
 | 
						|
 | 
						|
typedef bool (
 | 
						|
    *FileBrowserLoadItemCallback)(string_t path, void* context, uint8_t** icon, string_t item_name);
 | 
						|
 | 
						|
FileBrowser* file_browser_alloc(string_ptr result_path);
 | 
						|
 | 
						|
void file_browser_free(FileBrowser* browser);
 | 
						|
 | 
						|
View* file_browser_get_view(FileBrowser* browser);
 | 
						|
 | 
						|
void file_browser_configure(
 | 
						|
    FileBrowser* browser,
 | 
						|
    const char* extension,
 | 
						|
    bool skip_assets,
 | 
						|
    const Icon* file_icon,
 | 
						|
    bool hide_ext);
 | 
						|
 | 
						|
void file_browser_start(FileBrowser* browser, string_t path);
 | 
						|
 | 
						|
void file_browser_stop(FileBrowser* browser);
 | 
						|
 | 
						|
void file_browser_set_callback(FileBrowser* browser, FileBrowserCallback callback, void* context);
 | 
						|
 | 
						|
void file_browser_set_item_callback(
 | 
						|
    FileBrowser* browser,
 | 
						|
    FileBrowserLoadItemCallback callback,
 | 
						|
    void* context);
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 |