storage_i.h 494 B

1234567891011121314151617181920212223242526272829
  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. typedef struct {
  13. ViewPort* view_port;
  14. bool enabled;
  15. } StorageSDGui;
  16. struct Storage {
  17. FuriMessageQueue* message_queue;
  18. StorageData storage[STORAGE_COUNT];
  19. StorageSDGui sd_gui;
  20. FuriPubSub* pubsub;
  21. };
  22. #ifdef __cplusplus
  23. }
  24. #endif