mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
Preload extmainapps
This commit is contained in:
@@ -236,6 +236,15 @@ FuriThread* flipper_application_spawn(FlipperApplication* app, void* args) {
|
||||
return app->thread;
|
||||
}
|
||||
|
||||
void flipper_application_despawn(FlipperApplication* app) {
|
||||
furi_check(app->thread != NULL);
|
||||
furi_check(!flipper_application_is_plugin(app));
|
||||
|
||||
furi_thread_join(app->thread);
|
||||
furi_thread_free(app->thread);
|
||||
app->thread = NULL;
|
||||
}
|
||||
|
||||
static const char* preload_status_strings[] = {
|
||||
[FlipperApplicationPreloadStatusSuccess] = "Success",
|
||||
[FlipperApplicationPreloadStatusUnspecifiedError] = "Unknown error",
|
||||
@@ -289,4 +298,4 @@ const FlipperAppPluginDescriptor*
|
||||
lib_descriptor->ep_api_version);
|
||||
|
||||
return lib_descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user