mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
Implement SYNC message
A sync message returns a notify-done after all request are finished and can be used to wait for completion of a bunch of commands. Use it wait for all proxy BIND requests to complete so that we can look at the info immediately. Copy the default value of unset properties.
This commit is contained in:
parent
b38ecafe81
commit
fd54471249
5 changed files with 37 additions and 16 deletions
|
|
@ -101,6 +101,19 @@ core_dispatch_func (void *object,
|
|||
m->props);
|
||||
break;
|
||||
}
|
||||
case PINOS_MESSAGE_SYNC:
|
||||
{
|
||||
PinosMessageSync *m = message;
|
||||
PinosMessageNotifyDone r;
|
||||
|
||||
r.seq = m->seq;
|
||||
pinos_client_send_message (client,
|
||||
resource,
|
||||
PINOS_MESSAGE_NOTIFY_DONE,
|
||||
&r,
|
||||
true);
|
||||
break;
|
||||
}
|
||||
|
||||
case PINOS_MESSAGE_GET_REGISTRY:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue