mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-17 02:13:19 +03:00
24 lines
629 B
C
24 lines
629 B
C
|
#pragma once
|
||
|
#include <gui/view.h>
|
||
|
#include <filesystem-api.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
typedef struct FileSelect FileSelect;
|
||
|
|
||
|
typedef void (*FileSelectCallback)(const char* result, void* context);
|
||
|
|
||
|
FileSelect* file_select_alloc();
|
||
|
|
||
|
void file_select_free(FileSelect* file_select);
|
||
|
View* file_select_get_view(FileSelect* file_select);
|
||
|
|
||
|
void file_select_set_api(FileSelect* file_select, FS_Api* fs_api);
|
||
|
void file_select_set_callback(FileSelect* file_select, FileSelectCallback callback, void* context);
|
||
|
void file_select_set_filter(FileSelect* file_select, char* path, char* extension);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|