mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-18 07:00:06 -05:00
impl-node: add method to send a command to a node
This commit is contained in:
parent
6683114e09
commit
32c7121e54
2 changed files with 8 additions and 0 deletions
|
|
@ -2159,3 +2159,9 @@ bool pw_impl_node_is_active(struct pw_impl_node *node)
|
||||||
{
|
{
|
||||||
return node->active;
|
return node->active;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SPA_EXPORT
|
||||||
|
int pw_impl_node_send_command(struct pw_impl_node *node, const struct spa_command *command)
|
||||||
|
{
|
||||||
|
return spa_node_send_command(node->node, command);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -173,6 +173,8 @@ int pw_impl_node_set_active(struct pw_impl_node *node, bool active);
|
||||||
/** Check if a node is active */
|
/** Check if a node is active */
|
||||||
bool pw_impl_node_is_active(struct pw_impl_node *node);
|
bool pw_impl_node_is_active(struct pw_impl_node *node);
|
||||||
|
|
||||||
|
/** Check if a node is active, Since 0.3.39 */
|
||||||
|
int pw_impl_node_send_command(struct pw_impl_node *node, const struct spa_command *command);
|
||||||
/**
|
/**
|
||||||
* \}
|
* \}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue