Add link introspection

This commit is contained in:
Wim Taymans 2016-12-02 16:06:16 +01:00
parent b969623ec8
commit e6f45a7686
8 changed files with 156 additions and 39 deletions

View file

@ -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,