- Create `Include/` folder for all main projects - Fix some issues here and there (found while moving things) - All includes are now in `Tactility/` subfolder and must be included with that prefix. This fixes issues with clashing POSIX headers (e.g. `<semaphore.h>` versus Tactility's `Semaphore.h`)
24 lines
524 B
C++
24 lines
524 B
C++
#include "Tactility/app/App.h"
|
|
|
|
#include <Tactility/service/loader/Loader.h>
|
|
|
|
namespace tt::app {
|
|
|
|
void start(const std::string& id, std::shared_ptr<const Bundle> _Nullable parameters) {
|
|
service::loader::startApp(id, std::move(parameters));
|
|
}
|
|
|
|
void stop() {
|
|
service::loader::stopApp();
|
|
}
|
|
|
|
std::shared_ptr<app::AppContext> _Nullable getCurrentAppContext() {
|
|
return service::loader::getCurrentAppContext();
|
|
}
|
|
|
|
std::shared_ptr<app::App> _Nullable getCurrentApp() {
|
|
return service::loader::getCurrentApp();
|
|
}
|
|
|
|
}
|