|
PipeWire
0.1.9
|
Macros | |
| #define | spa_debug pw_log_trace |
Functions | |
| const struct pw_core_info * | pw_core_get_info (struct pw_core *core) |
| Get the core info object. More... | |
| struct pw_global * | pw_core_get_global (struct pw_core *core) |
| Get the core global object. More... | |
| void | pw_core_add_listener (struct pw_core *core, struct spa_hook *listener, const struct pw_core_events *events, void *data) |
| Add a new event listener to a core. More... | |
| struct pw_type * | pw_core_get_type (struct pw_core *core) |
| Get the type object of a core. More... | |
| const struct spa_support * | pw_core_get_support (struct pw_core *core, uint32_t *n_support) |
| Get the core support objects. More... | |
| struct pw_loop * | pw_core_get_main_loop (struct pw_core *core) |
| get the core main loop More... | |
| const struct pw_properties * | pw_core_get_properties (struct pw_core *core) |
| Get the core properties. More... | |
| int | pw_core_for_each_global (struct pw_core *core, int(*callback)(void *data, struct pw_global *global), void *data) |
| Iterate the globals of the core. More... | |
| struct pw_global * | pw_core_find_global (struct pw_core *core, uint32_t id) |
| Find a core global by id. More... | |
| #define spa_debug pw_log_trace |
| void pw_core_add_listener | ( | struct pw_core * | core, |
| struct spa_hook * | listener, | ||
| const struct pw_core_events * | events, | ||
| void * | data | ||
| ) |
Add a new event listener to a core.
Find a core global by id.
| core | the core |
| id | the global id |
References pw_global_get_permissions(), pw_map::pw_map_lookup(), and PW_PERM_IS_R.
| int pw_core_for_each_global | ( | struct pw_core * | core, |
| int(*)(void *data, struct pw_global *global) | callback, | ||
| void * | data | ||
| ) |
Iterate the globals of the core.
The callback should return 0 to fetch the next item, any other value stops the iteration and returns the value. When all callbacks return 0, this function returns 0 when all globals are iterated.
| core | the core |
References pw_global_get_permissions(), and PW_PERM_IS_R.
| const struct pw_core_info* pw_core_get_info | ( | struct pw_core * | core | ) |
Get the core info object.
| const struct pw_properties* pw_core_get_properties | ( | struct pw_core * | core | ) |
Get the core properties.
| const struct spa_support* pw_core_get_support | ( | struct pw_core * | core, |
| uint32_t * | n_support | ||
| ) |
Get the core support objects.
Get the type object of a core.
References pw_type::core.