PipeWire
0.1.4
|
A dynamically loadable module. More...
Public Types | |
typedef bool(* | pw_module_init_func_t) (struct pw_module *module, char *args) |
Module init function signature. More... | |
Public Member Functions | |
struct pw_module * | pw_module_load (struct pw_core *core, const char *name, const char *args) |
Load a module. More... | |
void | pw_module_destroy (struct pw_module *module) |
Destroy a module. More... | |
Data Fields | |
struct pw_core * | core |
the core object More... | |
struct spa_list | link |
link in the core module_list More... | |
struct pw_global * | global |
global object for this module More... | |
struct pw_module_info | info |
introspectable module info More... | |
struct spa_list | resource_list |
list of resources for this module More... | |
struct spa_hook_list | listener_list |
void * | user_data |
module user_data More... | |
A dynamically loadable module.
typedef bool(* pw_module_init_func_t) (struct pw_module *module, char *args) |
Module init function signature.
module | A pw_module |
args | Arguments to the module |
A module should provide an init function with this signature. This function will be called when a module is loaded.
void pw_module_destroy | ( | struct pw_module * | module | ) |
Destroy a module.
module | the module to destroy |
References pw_module_info::args, pw_module_info::filename, global, info, link, pw_resource::link, listener_list, pw_module_info::name, pw_global_destroy(), pw_resource_destroy(), and resource_list.
Load a module.
core | a pw_core | |
name | name of the module to load | |
args | A string with arguments for the module | |
[out] | error | Return location for an error string, or NULL |
References pw_split_strv().
struct pw_core* pw_module::core |
the core object
Referenced by pw_module_get_core().
struct pw_global* pw_module::global |
global object for this module
Referenced by pw_module_destroy(), and pw_module_get_global().
struct pw_module_info pw_module::info |
introspectable module info
Referenced by pw_core_find_module(), pw_module_destroy(), and pw_module_get_info().
struct spa_list pw_module::link |
link in the core module_list
Referenced by pw_core::pw_core_destroy(), pw_core_find_module(), and pw_module_destroy().
struct spa_hook_list pw_module::listener_list |
Referenced by pw_module_add_listener(), and pw_module_destroy().
struct spa_list pw_module::resource_list |
list of resources for this module
Referenced by pw_module_destroy().
void* pw_module::user_data |
module user_data