storage-i.h 448 B

123456789101112131415161718192021222324252627
  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. };
  20. #ifdef __cplusplus
  21. }
  22. #endif