mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-24 07:00:05 -05:00
connection: add need_flush signal
Add a need_flush signal to the connection when something can be flushed. Add destroy signal to connection
This commit is contained in:
parent
c1cf1e6f67
commit
3ab17281f6
2 changed files with 67 additions and 40 deletions
|
|
@ -25,9 +25,19 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#include <spa/defs.h>
|
||||
#include <pinos/client/sig.h>
|
||||
|
||||
typedef struct _PinosConnection PinosConnection;
|
||||
|
||||
struct _PinosConnection {
|
||||
int fd;
|
||||
|
||||
PINOS_SIGNAL (need_flush, (PinosListener *listener,
|
||||
PinosConnection *conn));
|
||||
PINOS_SIGNAL (destroy_signal, (PinosListener *listener,
|
||||
PinosConnection *conn));
|
||||
};
|
||||
|
||||
PinosConnection * pinos_connection_new (int fd);
|
||||
void pinos_connection_destroy (PinosConnection *conn);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue