mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
Remove dynamic types
Do not use dynamic types anymore. The reason is that it's difficult: - to maintain a shared type database over a network. - the extra overhead when translating between processes and for maintaining the translation tables. - race conditions in translating in RT-threads, this is a problem because we want to make event streams. We now have simple enums with types and extension points for all types. This is also nicer to use in general. We don't need the mapper anymore or pass strings around as types. There is a parallel type info system to get more info about ids and enums and their hierarchy. It can also be used for debugging.
This commit is contained in:
parent
e6977fa178
commit
fca3e1d85d
162 changed files with 5200 additions and 7461 deletions
|
|
@ -49,7 +49,6 @@ static const struct spa_dict_item module_props[] = {
|
|||
|
||||
struct impl {
|
||||
struct pw_core *core;
|
||||
struct pw_type *type;
|
||||
struct pw_properties *properties;
|
||||
|
||||
struct spa_loop *loop;
|
||||
|
|
@ -482,7 +481,7 @@ static int module_init(struct pw_module *module, struct pw_properties *propertie
|
|||
|
||||
support = pw_core_get_support(core, &n_support);
|
||||
|
||||
loop = spa_support_find(support, n_support, SPA_TYPE_LOOP__DataLoop);
|
||||
loop = spa_support_find(support, n_support, SPA_ID_INTERFACE_DataLoop);
|
||||
if (loop == NULL)
|
||||
return -ENOTSUP;
|
||||
|
||||
|
|
@ -493,7 +492,6 @@ static int module_init(struct pw_module *module, struct pw_properties *propertie
|
|||
pw_log_debug("module %p: new", impl);
|
||||
|
||||
impl->core = core;
|
||||
impl->type = pw_core_get_type(core);
|
||||
impl->properties = properties;
|
||||
impl->loop = loop;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue