flip_store_firmwares.h 704 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef FLIP_STORE_FIRMWARES_H
  2. #define FLIP_STORE_FIRMWARES_H
  3. #include <flip_downloader.h>
  4. #include <flip_storage/flip_store_storage.h>
  5. #include <callback/flip_store_callback.h>
  6. typedef struct
  7. {
  8. char name[16];
  9. char links[FIRMWARE_LINKS][136];
  10. } Firmware;
  11. typedef struct
  12. {
  13. char name[32];
  14. char link[128];
  15. } VGMFirmware;
  16. extern Firmware *firmwares;
  17. extern VGMFirmware *vgm_firmwares;
  18. Firmware *firmware_alloc();
  19. VGMFirmware *vgm_firmware_alloc();
  20. void firmware_free();
  21. void vgm_firmware_free();
  22. extern bool is_esp32_firmware;
  23. // download and waiting process
  24. bool flip_store_get_firmware_file(FlipperHTTP *fhttp, char *link, char *name, char *filename);
  25. #endif // FLIP_STORE_FIRMWARES_H