chore: add WebSocket API with Mongoose, service management, and AI command execution
Add new WebSocket API module (api.c/api.h) using Mongoose library for real-time window manager control, including workspace and client status endpoints. Introduce service management module (services.h) with init/run/cleanup lifecycle. Extend AI module to parse [WM_CMD:] directives from responses and forward JSON commands to the API handler. Update config with api.enabled, api.port, and services.path settings. Integrate new modules into main init/run/cleanup flow.
This commit is contained in:
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
-1
@@ -20,7 +20,7 @@ build/main.o: src/main.c include/dwn.h include/config.h include/dwn.h \
|
||||
/usr/include/dbus-1.0/dbus/dbus-syntax.h \
|
||||
/usr/include/dbus-1.0/dbus/dbus-threads.h include/systray.h \
|
||||
include/news.h include/applauncher.h include/ai.h include/autostart.h \
|
||||
include/demo.h include/util.h
|
||||
include/services.h include/api.h include/demo.h include/util.h
|
||||
include/dwn.h:
|
||||
include/config.h:
|
||||
include/dwn.h:
|
||||
@@ -55,5 +55,7 @@ include/news.h:
|
||||
include/applauncher.h:
|
||||
include/ai.h:
|
||||
include/autostart.h:
|
||||
include/services.h:
|
||||
include/api.h:
|
||||
include/demo.h:
|
||||
include/util.h:
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user