protocol-pulse: implement readiness notification

Write a newline to the fd in the PIPEWIRE_PULSE_NOTIFICATION_FD env
variable when set.

This is to implement readiness notification as suggested in
https://skarnet.org/software/s6/notifywhenup.html

Fixes #4347
This commit is contained in:
Wim Taymans 2024-10-22 09:50:27 +02:00
parent 7af43d87b3
commit 0dfd6d997f
4 changed files with 50 additions and 1 deletions

View file

@ -346,6 +346,13 @@
* Takes an object with the properties to update on the client. Common actions are to
* tweak the quantum values.
*
* ### startup notification
*
* A newline will be written into the notification file descriptor when the server has
* started if the following environment variable is set:
*
* - PIPEWIRE_PULSE_NOTIFICATION_FD
*
* ## Example configuration
*
*\code{.unparsed}