impl-node: add method to send a command to a node

This commit is contained in:
Wim Taymans 2021-10-19 12:24:47 +02:00
parent 6683114e09
commit 32c7121e54
2 changed files with 8 additions and 0 deletions

View file

@ -2159,3 +2159,9 @@ bool pw_impl_node_is_active(struct pw_impl_node *node)
{
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);
}

View file

@ -173,6 +173,8 @@ int pw_impl_node_set_active(struct pw_impl_node *node, bool active);
/** Check if a node is active */
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);
/**
* \}
*/