fap_loader_app.h 535 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <storage/storage.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef struct FapLoader FapLoader;
  7. /**
  8. * @brief Load name and icon from FAP file.
  9. *
  10. * @param path Path to FAP file.
  11. * @param storage Storage instance.
  12. * @param icon_ptr Icon pointer.
  13. * @param item_name Application name.
  14. * @return true if icon and name were loaded successfully.
  15. */
  16. bool fap_loader_load_name_and_icon(
  17. FuriString* path,
  18. Storage* storage,
  19. uint8_t** icon_ptr,
  20. FuriString* item_name);
  21. #ifdef __cplusplus
  22. }
  23. #endif