camera_suite_storage.h 996 B

1234567891011121314151617181920212223
  1. #include <stdlib.h>
  2. #include <string.h>
  3. #include <storage/storage.h>
  4. #include <flipper_format/flipper_format_i.h>
  5. #include "../camera_suite.h"
  6. #define BOILERPLATE_SETTINGS_FILE_VERSION 1
  7. #define CONFIG_FILE_DIRECTORY_PATH EXT_PATH("apps_data/camera_suite")
  8. #define BOILERPLATE_SETTINGS_SAVE_PATH CONFIG_FILE_DIRECTORY_PATH "/camera_suite.conf"
  9. #define BOILERPLATE_SETTINGS_SAVE_PATH_TMP BOILERPLATE_SETTINGS_SAVE_PATH ".tmp"
  10. #define BOILERPLATE_SETTINGS_HEADER "Camera Suite Config File"
  11. #define BOILERPLATE_SETTINGS_KEY_ORIENTATION "Orientation"
  12. #define BOILERPLATE_SETTINGS_KEY_DITHER "Dither"
  13. #define BOILERPLATE_SETTINGS_KEY_FLASH "Flash"
  14. #define BOILERPLATE_SETTINGS_KEY_JPEG "SaveJPEG"
  15. #define BOILERPLATE_SETTINGS_KEY_HAPTIC "Haptic"
  16. #define BOILERPLATE_SETTINGS_KEY_LED "Led"
  17. #define BOILERPLATE_SETTINGS_KEY_SPEAKER "Speaker"
  18. #define BOILERPLATE_SETTINGS_KEY_SAVE_SETTINGS "SaveSettings"
  19. void camera_suite_save_settings(void* context);
  20. void camera_suite_read_settings(void* context);