mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
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:
parent
e7cae649aa
commit
efae64a759
13 changed files with 678 additions and 311 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue