add node set_io function

Also allow setting io areas on nodes. We need this to set the
graph clock and period size on the nodes.
This commit is contained in:
Wim Taymans 2018-10-23 12:31:41 +02:00
parent a121164df9
commit 66de372e9a
22 changed files with 157 additions and 0 deletions

View file

@ -134,6 +134,11 @@ static int impl_node_set_param(struct spa_node *node, uint32_t id, uint32_t flag
return -ENOTSUP;
}
static int impl_node_set_io(struct spa_node *node, uint32_t id, void *data, size_t size)
{
return -ENOTSUP;
}
static int impl_node_send_command(struct spa_node *node, const struct spa_command *command)
{
struct impl *this;
@ -910,6 +915,7 @@ static const struct spa_node impl_node = {
NULL,
impl_node_enum_params,
impl_node_set_param,
impl_node_set_io,
impl_node_send_command,
impl_node_set_callbacks,
impl_node_get_n_ports,