From d72113be395891f4289f0d86a32a37a99a4d5b38 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 2 Aug 2026 01:11:33 +0200 Subject: Add -ipc option to control gpu-screen-recorder over a unix domain socket The socket accepts the same commands as the signal handlers, except that saving a replay takes an arbitrary number of seconds instead of only the fixed times that the signals provide. Requests and replies are newline terminated json objects and every request is replied to, parsed with the sj.h json library that was added to external. Requests are handled on a thread that only runs while the recorder exists, so the recorder control fields are now atomics, which they have to be now that another thread writes them. --- meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 0653470..bddfc02 100644 --- a/meson.build +++ b/meson.build @@ -46,6 +46,7 @@ src = [ 'src/recorder/screenshot.c', 'src/recorder/recorder.c', 'src/cli/commands.c', + 'src/cli/ipc.c', 'src/egl.c', 'src/cuda.c', 'src/window_texture.c', -- cgit v1.2.3