mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
- WiFi Connect app is now hidden by default, but accessible at the bottom of the WiFi Manage app when WiFi is turned on. - WiFi service now turns on WiFi when calling connect() and WiFi is not on. - Removed `blocking` option for `service::loader::startApp()`. This feature was unused and complex. - Various apps: Moved private headers into Private/ folder. - Various apps: created start() function for easy starting. - Added documentation to all TactilityC APIs - Refactored various `enum` into `class enum` - Refactor M5Stack `initBoot()` (but VBus is still 0V for some reason)
21 lines
510 B
C++
21 lines
510 B
C++
#include "tt_service_loader.h"
|
|
#include <Bundle.h>
|
|
#include <service/loader/Loader.h>
|
|
|
|
extern "C" {
|
|
|
|
void tt_service_loader_start_app(const char* id, BundleHandle _Nullable bundle) {
|
|
auto shared_bundle = std::shared_ptr<tt::Bundle>((tt::Bundle*)bundle);
|
|
tt::service::loader::startApp(id, std::move(shared_bundle));
|
|
}
|
|
|
|
void tt_service_loader_stop_app() {
|
|
tt::service::loader::stopApp();
|
|
}
|
|
|
|
AppContextHandle tt_service_loader_get_current_app() {
|
|
return tt::service::loader::getCurrentApp();
|
|
}
|
|
|
|
}
|