mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -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
|
|
@ -81,8 +81,8 @@ struct pw_client_node_transport {
|
|||
/** Get next message from a transport
|
||||
* \param trans the transport to get the message of
|
||||
* \param[out] message the message to read
|
||||
* \return 0 on success, < 0 on error, SPA_RESULT_ENUM_END when no more messages
|
||||
* are available.
|
||||
* \return < 0 on error, 1 when a message is available,
|
||||
* 0 when no more messages are available.
|
||||
*
|
||||
* Get the skeleton next message from \a trans into \a message. This function will
|
||||
* only read the head and object body of the message.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue