sd-card-api.h 483 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <furi.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef struct SdApp SdApp;
  7. typedef struct {
  8. SdApp* context;
  9. bool (*file_select)(
  10. SdApp* context,
  11. const char* path,
  12. const char* extension,
  13. char* result,
  14. uint8_t result_size,
  15. const char* selected_filename);
  16. void (*check_error)(SdApp* context);
  17. void (*show_error)(SdApp* context, const char* error_text);
  18. } SdCard_Api;
  19. #ifdef __cplusplus
  20. }
  21. #endif