mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
Use errno for result errors
Make new enumeration for data transport status and use errno style error numbers for errors.
This commit is contained in:
parent
dda28b1589
commit
6fb0f580ea
86 changed files with 2019 additions and 1988 deletions
|
|
@ -51,12 +51,18 @@ struct spa_range {
|
|||
* by the host and configured on all ports for which IO is requested.
|
||||
*/
|
||||
struct spa_port_io {
|
||||
uint32_t status; /**< the status code */
|
||||
#define SPA_STATUS_OK 0
|
||||
#define SPA_STATUS_NEED_BUFFER 1
|
||||
#define SPA_STATUS_HAVE_BUFFER 2
|
||||
#define SPA_STATUS_FORMAT_CHANGED 3
|
||||
#define SPA_STATUS_PORTS_CHANGED 4
|
||||
#define SPA_STATUS_PARAM_CHANGED 5
|
||||
int32_t status; /**< the status code */
|
||||
uint32_t buffer_id; /**< a buffer id */
|
||||
struct spa_range range; /**< the requested range */
|
||||
};
|
||||
|
||||
#define SPA_PORT_IO_INIT (struct spa_port_io) { SPA_RESULT_OK, SPA_ID_INVALID, }
|
||||
#define SPA_PORT_IO_INIT (struct spa_port_io) { SPA_STATUS_OK, SPA_ID_INVALID, }
|
||||
|
||||
/**
|
||||
* struct spa_port_info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue