mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-17 10:55:06 +00:00
* **New Features** * Added App Hub browsing with All, Installed, and Updates filters, plus options to install, remove, or update apps. * Added an installation activity indicator in the status bar. * Added a mesh command-line app for checking status and managing mesh settings and channels. * Radio region settings now persist across restarts and are applied to radio devices. * Added audio codec support for the LilyGo T-LoRa Pager. * Settings screens now use icons for selection actions. * **Improvements** * App Hub displays cached catalog results while a refresh is in progress. * System menu close controls receive focus automatically when no pointer is available.
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
// SPDX-License-Identifier: Apache-2.0
|
|
#include <app_hub/app_hub.h>
|
|
#include <app_hub/app_hub_service.h>
|
|
#include <app_hub/module.h>
|
|
|
|
#include <service/manager.h>
|
|
|
|
#include <tactility/error.h>
|
|
#include <tactility/module.h>
|
|
|
|
extern "C" {
|
|
|
|
static error_t start() {
|
|
return service_manager_add(&app_hub_service_manifest, /*auto_start=*/true);
|
|
}
|
|
|
|
static error_t stop() {
|
|
const error_t error = service_manager_stop(app_hub_service_manifest.id);
|
|
if (error != ERROR_NONE && error != ERROR_NOT_FOUND) {
|
|
return error;
|
|
}
|
|
return service_manager_remove(app_hub_service_manifest.id);
|
|
}
|
|
|
|
static const ModuleSymbol app_hub_module_symbols[] = {
|
|
DEFINE_MODULE_SYMBOL(app_hub_search),
|
|
DEFINE_MODULE_SYMBOL(app_hub_get_app),
|
|
DEFINE_MODULE_SYMBOL(app_hub_get_description),
|
|
DEFINE_MODULE_SYMBOL(app_hub_refresh),
|
|
DEFINE_MODULE_SYMBOL(app_hub_install),
|
|
DEFINE_MODULE_SYMBOL(app_hub_remove),
|
|
DEFINE_MODULE_SYMBOL(app_hub_event_subscribe),
|
|
DEFINE_MODULE_SYMBOL(app_hub_event_unsubscribe),
|
|
DEFINE_MODULE_SYMBOL(app_hub_event_await),
|
|
DEFINE_MODULE_SYMBOL(app_hub_event_poll),
|
|
MODULE_SYMBOL_TERMINATOR
|
|
};
|
|
|
|
Module app_hub_module = {
|
|
.name = "app-hub",
|
|
.start = start,
|
|
.stop = stop,
|
|
.drivers = nullptr,
|
|
.symbols = app_hub_module_symbols,
|
|
.internal = nullptr,
|
|
};
|
|
|
|
}
|