App and Service improvements (#106)
This commit is contained in:
committed by
GitHub
parent
e86a11b7e2
commit
50ee77d572
@@ -1,20 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "Manifest.h"
|
||||
#include "service/ServiceManifest.h"
|
||||
|
||||
namespace tt::service {
|
||||
|
||||
typedef void (*ManifestCallback)(const Manifest*, void* context);
|
||||
typedef void (*ManifestCallback)(const ServiceManifest*, void* context);
|
||||
|
||||
void initRegistry();
|
||||
|
||||
void addService(const Manifest* manifest);
|
||||
void removeService(const Manifest* manifest);
|
||||
void addService(const ServiceManifest* manifest);
|
||||
void removeService(const ServiceManifest* manifest);
|
||||
|
||||
bool startService(const std::string& id);
|
||||
bool stopService(const std::string& id);
|
||||
|
||||
const Manifest* _Nullable findManifestId(const std::string& id);
|
||||
Service* _Nullable findServiceById(const std::string& id);
|
||||
const ServiceManifest* _Nullable findManifestId(const std::string& id);
|
||||
ServiceContext* _Nullable findServiceById(const std::string& id);
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user