mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-19 03:13:14 +00:00
* Move app/service code from tactility-core to tactility * fix formatting * updated dev docs
27 lines
713 B
C
27 lines
713 B
C
#pragma once
|
|
|
|
#include "service_manifest.h"
|
|
#include "tactility_core.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
|
|
typedef void (*ServiceManifestCallback)(const ServiceManifest*, void* context);
|
|
|
|
void tt_service_registry_init();
|
|
|
|
void tt_service_registry_add(const ServiceManifest* manifest);
|
|
void tt_service_registry_remove(const ServiceManifest* manifest);
|
|
const ServiceManifest _Nullable* tt_service_registry_find_manifest_by_id(const char* id);
|
|
void tt_service_registry_for_each_manifest(ServiceManifestCallback callback, void* _Nullable context);
|
|
|
|
bool tt_service_registry_start(const char* service_id);
|
|
bool tt_service_registry_stop(const char* service_id);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|