Service logic moved to kernel (#554)

+ fix BT service file paths
This commit is contained in:
Ken Van Hoeylandt
2026-07-07 22:52:19 +02:00
committed by GitHub
parent cca7224252
commit f4f91f81d6
24 changed files with 1101 additions and 196 deletions
@@ -1,36 +0,0 @@
#pragma once
#include <Tactility/service/ServiceContext.h>
#include <Tactility/service/Service.h>
#include <Tactility/Mutex.h>
#include <memory>
namespace tt::service {
class ServiceInstance final : public ServiceContext {
Mutex mutex;
std::shared_ptr<const ServiceManifest> manifest;
std::shared_ptr<Service> service;
State state = State::Stopped;
public:
explicit ServiceInstance(std::shared_ptr<const ServiceManifest> manifest);
~ServiceInstance() override = default;
/** @return a reference to the service's manifest */
const ServiceManifest& getManifest() const override;
/** Retrieve the paths that are relevant to this service */
std::unique_ptr<ServicePaths> getPaths() const override;
std::shared_ptr<Service> getService() const { return service; }
State getState() const { return state; }
void setState(State newState) { state = newState; }
};
}