App and Service improvements (#106)

This commit is contained in:
Ken Van Hoeylandt
2024-12-05 22:46:27 +01:00
committed by GitHub
parent e86a11b7e2
commit 50ee77d572
69 changed files with 692 additions and 596 deletions
+8 -7
View File
@@ -1,6 +1,6 @@
#pragma once
#include "app/Manifest.h"
#include "app/AppManifest.h"
#include "app/AppInstance.h"
#include "MessageQueue.h"
#include "Pubsub.h"
@@ -9,6 +9,7 @@
#include "service/loader/Loader.h"
#include "RtosCompatSemaphore.h"
#include <stack>
#include <utility>
namespace tt::service::loader {
@@ -35,7 +36,7 @@ typedef struct {
} LoaderEventAppHiding;
typedef struct {
const app::Manifest& manifest;
const app::AppManifest& manifest;
} LoaderEventAppStopped;
typedef struct {
@@ -62,14 +63,14 @@ typedef enum {
class LoaderMessageAppStart {
public:
std::string id;
Bundle bundle;
std::shared_ptr<const Bundle> _Nullable parameters;
LoaderMessageAppStart() = default;
LoaderMessageAppStart(const std::string& id, const Bundle& bundle) {
this->id = id;
this->bundle = bundle;
}
LoaderMessageAppStart(const std::string& id, std::shared_ptr<const Bundle> parameters) :
id(id),
parameters(std::move(parameters))
{}
};
typedef struct {