mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
link: add link state and error to info
Notify when state changes
This commit is contained in:
parent
0358e8b480
commit
f3dfe61aa0
6 changed files with 68 additions and 42 deletions
|
|
@ -1034,6 +1034,8 @@ static void link_marshal_info(void *object, struct pw_link_info *info)
|
|||
"i", info->output_port_id,
|
||||
"i", info->input_node_id,
|
||||
"i", info->input_port_id,
|
||||
"i", info->state,
|
||||
"s", info->error,
|
||||
"P", info->format,
|
||||
"i", n_items, NULL);
|
||||
|
||||
|
|
@ -1064,6 +1066,8 @@ static int link_demarshal_info(void *object, void *data, size_t size)
|
|||
"i", &info.output_port_id,
|
||||
"i", &info.input_node_id,
|
||||
"i", &info.input_port_id,
|
||||
"i", &info.state,
|
||||
"s", &info.error,
|
||||
"P", &info.format,
|
||||
"i", &props.n_items, NULL) < 0)
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue