daemon: Add support for running as a service on win32

System Internals / PulseAudio - Patrick Gaskin [pgaskin.net] - 16 June 2021 09:17 UTC

- Minimal implementation of --system on win32.
- Wrap main with a Windows Service on win32 (with a fallback to running it directly).
- Update PA_SYSTEM_{RUNTIME,STATE,CONFIG}_PATH and HOME dynamically on Windows (overrides the build config, similar to the existing config path replacement logic).

Part-of:

4f3ca10d9 daemon: Add support for running as a service on win32
src/daemon/main.c | 134 +++++++++++++++++++++++++++++++++++++++++++++-
src/pulse/context.c | 7 +++
src/pulsecore/core-util.c | 10 ++++
src/pulsecore/core-util.h | 1 +
4 files changed, 151 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share