mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
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:
parent
e5e360d5df
commit
4d6ac37398
38 changed files with 308 additions and 297 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue