client-node: implement node property update

Make it possible to update the node properties
Make it possible to update the remote properties
This commit is contained in:
Wim Taymans 2018-06-07 10:23:41 +02:00
parent b029000610
commit 3d25e254ef
5 changed files with 75 additions and 9 deletions

View file

@ -84,11 +84,13 @@ struct pw_client_node_proxy_methods {
#define PW_CLIENT_NODE_UPDATE_MAX_INPUTS (1 << 0)
#define PW_CLIENT_NODE_UPDATE_MAX_OUTPUTS (1 << 1)
#define PW_CLIENT_NODE_UPDATE_PARAMS (1 << 2)
#define PW_CLIENT_NODE_UPDATE_PROPS (1 << 3)
uint32_t change_mask,
uint32_t max_input_ports,
uint32_t max_output_ports,
uint32_t n_params,
const struct spa_pod **params);
const struct spa_pod **params,
const struct spa_dict *props);
/**
* Update a node port
@ -137,13 +139,13 @@ pw_client_node_proxy_update(struct pw_client_node_proxy *p,
uint32_t max_input_ports,
uint32_t max_output_ports,
uint32_t n_params,
const struct spa_pod **params)
const struct spa_pod **params,
const struct spa_dict *props)
{
pw_proxy_do((struct pw_proxy*)p, struct pw_client_node_proxy_methods, update, change_mask,
max_input_ports,
max_output_ports,
n_params,
params);
n_params, params, props);
}
static inline void