Mainloop: use PinosLoop

Implement the main-loop with pinos_loop except for the parts that still
need to go through glib mainloop.
Start working on native protocol
This commit is contained in:
Wim Taymans 2016-11-22 13:06:22 +01:00
parent e7cae649aa
commit efae64a759
13 changed files with 678 additions and 311 deletions

View file

@ -25,6 +25,7 @@ extern "C" {
#endif
#include <spa/include/spa/loop.h>
#include <pinos/client/loop.h>
typedef struct _PinosMainLoop PinosMainLoop;
@ -39,7 +40,7 @@ typedef void (*PinosDeferFunc) (void *obj,
* Pinos main-loop interface.
*/
struct _PinosMainLoop {
SpaLoop *loop;
PinosLoop *loop;
void (*run) (PinosMainLoop *loop);
void (*quit) (PinosMainLoop *loop);
@ -56,10 +57,6 @@ struct _PinosMainLoop {
void *obj,
uint32_t seq,
SpaResult res);
uint32_t (*sync) (PinosMainLoop *loop,
void *obj,
PinosDeferFunc func,
void *data);
};
PinosMainLoop * pinos_main_loop_new (void);