loop: move to plugin

Move the loop implementation to a plugin.
Organize the hooks in a list so that we can add many.
This commit is contained in:
Wim Taymans 2017-06-14 16:10:07 +02:00
parent f55f1739e1
commit 4a219e81dd
14 changed files with 935 additions and 651 deletions

View file

@ -207,10 +207,16 @@ impl_enum_interface_info(const struct spa_handle_factory *factory,
return SPA_RESULT_OK;
}
const struct spa_handle_factory spa_type_map_factory = {
static const struct spa_handle_factory type_map_factory = {
NAME,
NULL,
sizeof(struct impl),
impl_init,
impl_enum_interface_info,
};
static void reg(void) __attribute__ ((constructor));
static void reg(void)
{
spa_handle_factory_register(&type_map_factory);
}