Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkorpionm <85568270+Skorpionm@users.noreply.github.com>2022-04-21 19:10:50 +0300
committerGitHub <noreply@github.com>2022-04-21 19:10:50 +0300
commit0ff9f43eab561279bd163c6394f77101cea3f8bf (patch)
treefd184c19c504378a45879c47eeb63349fa9ec17b /applications/subghz/subghz_i.h
parent7c692a9f3600b3aad50901327a0e0480944accdb (diff)
SubGhz: loading/saving files from any folder below the parent (#1142)
Co-authored-by: あく <alleteam@gmail.com>
Diffstat (limited to 'applications/subghz/subghz_i.h')
-rw-r--r--applications/subghz/subghz_i.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/applications/subghz/subghz_i.h b/applications/subghz/subghz_i.h
index 780569fb..37d0d6ef 100644
--- a/applications/subghz/subghz_i.h
+++ b/applications/subghz/subghz_i.h
@@ -33,8 +33,9 @@
#include "subghz_setting.h"
#include <gui/modules/variable_item_list.h>
+#include <lib/toolbox/path.h>
-#define SUBGHZ_MAX_LEN_NAME 128
+#define SUBGHZ_MAX_LEN_NAME 250
/** SubGhzNotification state */
typedef enum {
@@ -117,8 +118,10 @@ struct SubGhz {
TextInput* text_input;
Widget* widget;
DialogsApp* dialogs;
- char file_name[SUBGHZ_MAX_LEN_NAME + 1];
- char file_name_tmp[SUBGHZ_MAX_LEN_NAME + 1];
+ 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];
SubGhzNotificationState state_notifications;
SubGhzViewReceiver* subghz_receiver;
@@ -164,7 +167,7 @@ bool subghz_get_next_name_file(SubGhz* subghz, uint8_t max_len);
bool subghz_save_protocol_to_file(
SubGhz* subghz,
FlipperFormat* flipper_format,
- const char* dev_name);
+ const char* dev_file_name);
bool subghz_load_protocol_from_file(SubGhz* subghz);
bool subghz_rename_file(SubGhz* subghz);
bool subghz_delete_file(SubGhz* subghz);