mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-27 01:40:38 -05:00
global: add properties
Add properties to global objects to make it easier to select what nodes and objects to bind too. They can also be used to implement permissions on the globals based on properties. Add more error handling in _register. Make more functions return a result code. Make a separate pw_module_register, like all other objects.
This commit is contained in:
parent
47dd97049c
commit
c593d868fb
45 changed files with 295 additions and 149 deletions
|
|
@ -66,6 +66,12 @@ struct pw_module_events {
|
|||
struct pw_module *
|
||||
pw_module_load(struct pw_core *core, const char *name, const char *args);
|
||||
|
||||
/** Finish module configuration and register */
|
||||
int pw_module_register(struct pw_module *module, /**< the module to register */
|
||||
struct pw_client *owner, /**< optional owner */
|
||||
struct pw_global *parent, /**< parent global */
|
||||
struct pw_properties *properties /**< extra global properties */);
|
||||
|
||||
/** Get the core of a module */
|
||||
struct pw_core * pw_module_get_core(struct pw_module *module);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue