storage_i.h 589 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include <furi.h>
  3. #include <furi_hal.h>
  4. #include <gui/gui.h>
  5. #include "storage_glue.h"
  6. #include "storage_sd_api.h"
  7. #include "filesystem_api_internal.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #define STORAGE_COUNT (ST_INT + 1)
  12. #define APPS_DATA_PATH EXT_PATH("apps_data")
  13. #define APPS_ASSETS_PATH EXT_PATH("apps_assets")
  14. typedef struct {
  15. ViewPort* view_port;
  16. bool enabled;
  17. } StorageSDGui;
  18. struct Storage {
  19. FuriMessageQueue* message_queue;
  20. StorageData storage[STORAGE_COUNT];
  21. StorageSDGui sd_gui;
  22. FuriPubSub* pubsub;
  23. };
  24. #ifdef __cplusplus
  25. }
  26. #endif