hex_viewer_storage.h 779 B

123456789101112131415161718
  1. #include <stdlib.h>
  2. #include <string.h>
  3. #include <storage/storage.h>
  4. #include <flipper_format/flipper_format_i.h>
  5. #include "../hex_viewer.h"
  6. #define BOILERPLATE_SETTINGS_FILE_VERSION 1
  7. #define CONFIG_FILE_DIRECTORY_PATH EXT_PATH("apps_data/hex_viewer")
  8. #define BOILERPLATE_SETTINGS_SAVE_PATH CONFIG_FILE_DIRECTORY_PATH "/hex_viewer.conf"
  9. #define BOILERPLATE_SETTINGS_SAVE_PATH_TMP BOILERPLATE_SETTINGS_SAVE_PATH ".tmp"
  10. #define BOILERPLATE_SETTINGS_HEADER "Boilerplate Config File"
  11. #define BOILERPLATE_SETTINGS_KEY_HAPTIC "Haptic"
  12. #define BOILERPLATE_SETTINGS_KEY_LED "Led"
  13. #define BOILERPLATE_SETTINGS_KEY_SPEAKER "Speaker"
  14. #define BOILERPLATE_SETTINGS_KEY_SAVE_SETTINGS "SaveSettings"
  15. void hex_viewer_save_settings(void* context);
  16. void hex_viewer_read_settings(void* context);