Work on event loop

Make a new epoll based event loop and use it for the data tranport.
Simplify the spa event api a little and rename to SpaLoop
This commit is contained in:
Wim Taymans 2016-11-18 17:46:01 +01:00
parent 0d2fa5ebc8
commit ae93f15965
33 changed files with 1286 additions and 954 deletions

View file

@ -24,7 +24,7 @@
extern "C" {
#endif
#include <spa/include/spa/poll.h>
#include <spa/include/spa/loop.h>
typedef struct _PinosMainLoop PinosMainLoop;
@ -39,7 +39,7 @@ typedef void (*PinosDeferFunc) (void *obj,
* Pinos main-loop interface.
*/
struct _PinosMainLoop {
SpaPoll *poll;
SpaLoop *loop;
void (*run) (PinosMainLoop *loop);
void (*quit) (PinosMainLoop *loop);