mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
Add link introspection
This commit is contained in:
parent
b969623ec8
commit
e6f45a7686
8 changed files with 156 additions and 39 deletions
|
|
@ -82,17 +82,33 @@ typedef struct {
|
|||
} PinosProtocolNativeClient;
|
||||
|
||||
static void
|
||||
client_destroy (PinosProtocolNativeClient *this)
|
||||
sync_destroy (void *object,
|
||||
void *data,
|
||||
SpaResult res,
|
||||
uint32_t id)
|
||||
{
|
||||
pinos_client_destroy (this->client);
|
||||
spa_list_remove (&this->link);
|
||||
pinos_loop_destroy_source (this->impl->core->main_loop->loop,
|
||||
this->source);
|
||||
PinosProtocolNativeClient *this = object;
|
||||
|
||||
pinos_connection_destroy (this->connection);
|
||||
close (this->fd);
|
||||
free (this);
|
||||
}
|
||||
|
||||
static void
|
||||
client_destroy (PinosProtocolNativeClient *this)
|
||||
{
|
||||
pinos_loop_destroy_source (this->impl->core->main_loop->loop,
|
||||
this->source);
|
||||
pinos_client_destroy (this->client);
|
||||
spa_list_remove (&this->link);
|
||||
|
||||
pinos_main_loop_defer (this->impl->core->main_loop,
|
||||
this,
|
||||
SPA_RESULT_WAIT_SYNC,
|
||||
sync_destroy,
|
||||
this);
|
||||
}
|
||||
|
||||
static SpaResult
|
||||
client_send_func (void *object,
|
||||
uint32_t id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue