bab3eb19bc
- Refactor `AppManifest`: add new fields and rename existing ones - Parse and validate the manifest from an app that is being installed. - Remove deprecated `scoped()` from `Lock` - Create `Tactility/Paths.h` - App loading at boot now properly parses the manifest files of external apps - Properly lock both source and destination locations during app install - Remove LVGL path variants from `AppPaths` and `ServicePaths` - Removed `xPath` base classes for apps and services. There's now `AppPaths` and `ServicePaths`. - Renamed app and service paths: "data" and "system" paths are now "user data" and "assets"
24 lines
496 B
C++
24 lines
496 B
C++
#pragma once
|
|
|
|
#include <Tactility/service/Service.h>
|
|
|
|
#include <string>
|
|
|
|
namespace tt::service {
|
|
|
|
// Forward declarations
|
|
class ServiceContext;
|
|
|
|
typedef std::shared_ptr<Service>(*CreateService)();
|
|
|
|
/** A ledger that describes the main parts of a service. */
|
|
struct ServiceManifest {
|
|
/** The identifier by which the app is launched by the system and other apps. */
|
|
std::string id {};
|
|
|
|
/** Create the instance of the app */
|
|
CreateService createService = nullptr;
|
|
};
|
|
|
|
} // namespace
|