created ServiceManifest (#5)

based on AppManifest
This commit is contained in:
Ken Van Hoeylandt
2024-01-05 19:38:39 +01:00
committed by GitHub
parent 3b9986fcef
commit e842e30ab3
39 changed files with 134 additions and 352 deletions
+32
View File
@@ -0,0 +1,32 @@
#pragma once
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*ServiceOnStart)(void _Nonnull* parameter);
typedef void (*ServiceOnStop)();
typedef struct {
/**
* The identifier by which the app is launched by the system and other apps.
*/
const char* _Nonnull id;
/**
* Non-blocking method to call when service is started.
*/
const ServiceOnStart _Nullable on_start;
/**
* Non-blocking method to call when service is stopped.
*/
const ServiceOnStop _Nullable on_stop;
} ServiceManifest;
#ifdef __cplusplus
}
#endif