Use int instead of bool as result

Prefer to use an int return from a function instead of bool because
it can contain more info about failures.
This commit is contained in:
Wim Taymans 2017-12-18 11:38:30 +01:00
parent e5e360d5df
commit 4d6ac37398
38 changed files with 308 additions and 297 deletions

View file

@ -161,7 +161,7 @@ struct pw_port * pw_node_get_free_port(struct pw_node *node, enum pw_direction d
/** Set a node active. This will start negotiation with all linked active
* nodes and start data transport */
bool pw_node_set_active(struct pw_node *node, bool active);
int pw_node_set_active(struct pw_node *node, bool active);
/** Check is a node is active */
bool pw_node_is_active(struct pw_node *node);