Implement subscription with a signal

Use a signal for subscription events
Work on handling OOM errors and other errors.
This commit is contained in:
Wim Taymans 2016-12-22 16:50:01 +01:00
parent 1b66bbcffd
commit 85d375e4bb
32 changed files with 531 additions and 176 deletions

View file

@ -99,6 +99,9 @@ pinos_transport_new (unsigned int max_inputs,
area.n_outputs = 0;
impl = calloc (1, sizeof (PinosTransportImpl));
if (impl == NULL)
return NULL;
impl->offset = 0;
trans = &impl->trans;
@ -124,6 +127,9 @@ pinos_transport_new_from_info (PinosTransportInfo *info)
void *tmp;
impl = calloc (1, sizeof (PinosTransportImpl));
if (impl == NULL)
return NULL;
trans = &impl->trans;
pinos_signal_init (&trans->destroy_signal);