daemon: Add support for running as a service on win32
authorPatrick Gaskin <patrick@pgaskin.net>
Sun, 30 May 2021 19:28:30 +0000 (15:28 -0400)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Wed, 16 Jun 2021 09:17:27 +0000 (09:17 +0000)
commit4f3ca10d9ec2db1d39b1da4bbc2c84ae5ade0aff
treee5b9fce261b54943cdd2486f6ecab20109d1a135
parent87b4d68978fc144b15a0b6746ee8126869f85f1c
daemon: Add support for running as a service on win32

* 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: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/549>
src/daemon/main.c
src/pulse/context.c
src/pulsecore/core-util.c
src/pulsecore/core-util.h