storage_i.h 473 B

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