pw-dump should output removed nodes when monitoring
I'm using pw-dump -m
to keep track of the state of a pipewire daemon from another process (written in python so I can't use the API). Parsing the json output is easy, but I don't get any notification on when nodes are removed, which is important for this application.
The output could be something like this:
[
{
"id": 51,
"removed": true
}
]
I hacked this up myself by just printing stuff in registry_event_global_remove
but I suspect that's not a great structure and there's a better way to do it.
(pw-mon
does print something when nodes are removed, but the output is much harder to parse.)