diff options
author | Nikolay Minaylov <nm29719@gmail.com> | 2022-05-27 14:19:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 14:19:21 +0300 |
commit | 79920a3522092f0a7ad0bb043ba096119ef8057d (patch) | |
tree | 53c81212ed9fee926fc8c7a8f95bf1d762797eee /applications/subghz/subghz_i.h | |
parent | 533f12af15ba6f04fa246d3408d5f55f69179c27 (diff) |
[FL-2491] File browser GUI module (#1237)
* File browser module and test app
* nfc: Add support for saved files in subdirectories
* nfc: Use helper function to get shadow path when loading data
* File browser dialog integration pt.1
* File browser dialog integration pt.2
* Gui,Dialogs: drop file select
* Correct use of dynamic string_t(string_ptr)
Co-authored-by: Yukai Li <yukaili.geek@gmail.com>
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Diffstat (limited to 'applications/subghz/subghz_i.h')
-rw-r--r-- | applications/subghz/subghz_i.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/subghz/subghz_i.h b/applications/subghz/subghz_i.h index 1e917af5..5d1b0699 100644 --- a/applications/subghz/subghz_i.h +++ b/applications/subghz/subghz_i.h @@ -35,7 +35,7 @@ #include <gui/modules/variable_item_list.h> #include <lib/toolbox/path.h> -#define SUBGHZ_MAX_LEN_NAME 250 +#define SUBGHZ_MAX_LEN_NAME 64 /** SubGhzNotification state */ typedef enum { @@ -119,10 +119,9 @@ struct SubGhz { TextInput* text_input; Widget* widget; DialogsApp* dialogs; - char file_path[SUBGHZ_MAX_LEN_NAME + 1]; - char file_path_tmp[SUBGHZ_MAX_LEN_NAME + 1]; - //ToDo you can get rid of it, you need to refactor text input to return the path to the folder - char file_dir[SUBGHZ_MAX_LEN_NAME + 1]; + string_t file_path; + string_t file_path_tmp; + char file_name_tmp[SUBGHZ_MAX_LEN_NAME]; SubGhzNotificationState state_notifications; SubGhzViewReceiver* subghz_receiver; @@ -173,5 +172,6 @@ bool subghz_load_protocol_from_file(SubGhz* subghz); bool subghz_rename_file(SubGhz* subghz); bool subghz_delete_file(SubGhz* subghz); void subghz_file_name_clear(SubGhz* subghz); +bool subghz_path_is_file(string_t path); uint32_t subghz_random_serial(void); void subghz_hopper_update(SubGhz* subghz); |