bgloader_api.h 486 B

123456789101112131415161718192021
  1. #include <furi.h>
  2. #include <flipper_application/flipper_application.h>
  3. #define APP_BASE_ARGS "run_in_background"
  4. typedef enum {
  5. BGLoaderMessageType_AppReattached,
  6. BGLoaderMessageType_LoaderBackground,
  7. BGLoaderMessageType_LoaderExit,
  8. } BGLoaderMessageType;
  9. typedef struct {
  10. BGLoaderMessageType type;
  11. } BGLoaderMessage;
  12. typedef struct {
  13. FlipperApplication* fap;
  14. FuriThread* thread;
  15. FuriMessageQueue* to_app;
  16. FuriMessageQueue* to_loader;
  17. } BGLoaderApp;