mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
f55f1739e1
commit
4a219e81dd
14 changed files with 935 additions and 651 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue