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:
Wim Taymans 2016-11-22 13:06:22 +01:00
parent e7cae649aa
commit efae64a759
13 changed files with 678 additions and 311 deletions

View file

@ -50,7 +50,7 @@ pinos_core_new (PinosMainLoop *main_loop)
impl->support[2].uri = SPA_LOOP__DataLoop;
impl->support[2].data = this->data_loop->loop->loop;
impl->support[3].uri = SPA_LOOP__MainLoop;
impl->support[3].data = this->main_loop->loop;
impl->support[3].data = this->main_loop->loop->loop;
this->support = impl->support;
this->n_support = 4;
@ -162,3 +162,16 @@ pinos_core_find_port (PinosCore *core,
}
return best;
}
PinosNodeFactory *
pinos_core_find_node_factory (PinosCore *core,
const char *name)
{
PinosNodeFactory *factory;
spa_list_for_each (factory, &core->node_factory_list, link) {
if (strcmp (factory->name, name) == 0)
return factory;
}
return NULL;
}