node: add enabled state

Add method to enable/disable a node. Disabled nodes will SUSPEND and not
be available for automatic connections, it is intented for handling
the monitor node state.
This commit is contained in:
Wim Taymans 2018-01-30 15:05:23 +01:00
parent 95b3cba3c3
commit bd1fea49c2
4 changed files with 43 additions and 3 deletions

View file

@ -243,6 +243,7 @@ struct pw_node {
struct pw_node_info info; /**< introspectable node info */
bool enabled; /**< if the node is enabled */
bool active; /**< if the node is active */
bool live; /**< if the node is live */
struct spa_clock *clock; /**< handle to SPA clock if any */