system: use the same bits as POLL and EPOLL

Use the same bits for the io mask as POLL and EPOLL so that we
can avoid conversions.
This commit is contained in:
Wim Taymans 2019-09-19 13:15:38 +02:00
parent 49a5e97d69
commit 59bf522ce1
4 changed files with 10 additions and 82 deletions

View file

@ -43,9 +43,9 @@ struct spa_system { struct spa_interface iface; };
/* IO events */
#define SPA_IO_IN (1 << 0)
#define SPA_IO_OUT (1 << 1)
#define SPA_IO_HUP (1 << 2)
#define SPA_IO_OUT (1 << 2)
#define SPA_IO_ERR (1 << 3)
#define SPA_IO_HUP (1 << 4)
/* flags */
#define SPA_FD_CLOEXEC (1<<0)