docker services real

This commit is contained in:
2026-02-16 20:47:44 +09:00
parent 2e5ad58978
commit b33c658885
6 changed files with 65 additions and 19 deletions

View File

@@ -8,7 +8,7 @@
extern "C" {
#endif
#define WS_MAX_SERVICES 8
#define WS_MAX_SERVICES 20
#define WS_SERVICE_NAME_LEN 16
typedef enum {
@@ -18,9 +18,15 @@ typedef enum {
WS_STATE_ERROR,
} ws_state_t;
typedef enum {
SVC_STOPPED = 0,
SVC_WARNING,
SVC_RUNNING,
} ws_svc_status_t;
typedef struct {
char name[WS_SERVICE_NAME_LEN];
bool running;
ws_svc_status_t status;
} ws_service_t;
typedef struct {