node: remove and add node from graph in idle/running

Add the node and all links to the graph when going to running and
remove them again when idle.
This commit is contained in:
Wim Taymans 2018-10-02 05:10:55 +02:00
parent cd1c7b74af
commit 0f69a7b767
6 changed files with 121 additions and 105 deletions

View file

@ -741,9 +741,6 @@ int pw_port_send_command(struct pw_port *port, bool block, const struct spa_comm
/** Change the state of the node */
int pw_node_set_state(struct pw_node *node, enum pw_node_state state);
/** Update the state of the node, mostly used by node implementations */
void pw_node_update_state(struct pw_node *node, enum pw_node_state state, char *error);
int pw_node_update_ports(struct pw_node *node);
int pw_node_initialized(struct pw_node *node);