643cbc3806
- Added POSIX desktop support for SDK builds, application packaging, and integration testing. - Added POSIX filesystem partitions and improved application path handling. - Added simulator support for loading and running applications dynamically. - Improved simulator task stack handling and display startup reliability. - Improved simulator display scaling, resizing, high-DPI support, and pointer accuracy. - Fixed LVGL timers and input polling on POSIX. (fixes simulator with Linux on some Intel graphics platforms) - Standardized data paths across platforms. - Logging now works via separate task: this allows apps to write to log without it affecting their stdout (for apps that output text as relevant date for other apps, like the File Selection app) - Fixes for app stdio
31 lines
590 B
C++
31 lines
590 B
C++
// SPDX-License-Identifier: Apache-2.0
|
|
#include <app_posix/module.h>
|
|
|
|
#include <service/manager.h>
|
|
|
|
#include <tactility/error.h>
|
|
#include <tactility/module.h>
|
|
|
|
extern "C" {
|
|
|
|
extern ServiceManifest loader_service_manifest;
|
|
|
|
static error_t start() {
|
|
return service_manager_add(&loader_service_manifest, /*auto_start=*/true);
|
|
}
|
|
|
|
static error_t stop() {
|
|
return service_manager_remove(loader_service_manifest.id);
|
|
}
|
|
|
|
Module app_posix_module = {
|
|
.name = "app-posix",
|
|
.start = start,
|
|
.stop = stop,
|
|
.drivers = nullptr,
|
|
.symbols = nullptr,
|
|
.internal = nullptr,
|
|
};
|
|
|
|
}
|