PipeWire
0.3.27
|
A dynamically loadable module. More...
Public Types | |
typedef int(* | pw_impl_module_init_func_t) (struct pw_impl_module *module, const char *args) |
Module init function signature. More... | |
Public Member Functions | |
SPA_EXPORT struct pw_impl_module * | pw_context_load_module (struct pw_context *context, const char *name, const char *args, struct pw_properties *properties) |
Load a module. More... | |
SPA_EXPORT void | pw_impl_module_destroy (struct pw_impl_module *module) |
Destroy a module. More... | |
A dynamically loadable module.
typedef int(* pw_impl_module_init_func_t) (struct pw_impl_module *module, const char *args) |
Module init function signature.
module | A pw_impl_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.
SPA_EXPORT struct pw_impl_module * pw_context_load_module | ( | struct pw_context * | context, |
const char * | name, | ||
const char * | args, | ||
struct pw_properties * | properties | ||
) |
Load a module.
context | a pw_context | |
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_properties::dict, NAME, PIPEWIRE_SYMBOL_MODULE_INIT, pw_utils::pw_free_strv(), pw_global_add_listener(), pw_global::pw_global_new(), pw_global::pw_global_register(), pw_impl_module_destroy(), PW_KEY_MODULE_NAME, PW_KEY_OBJECT_ID, pw_log::pw_log_debug, pw_log::pw_log_error, pw_properties::pw_properties_free(), pw_properties::pw_properties_new(), pw_properties::pw_properties_set(), pw_properties::pw_properties_setf(), pw_utils::pw_split_strv(), PW_TYPE_INTERFACE_Module, PW_VERSION_MODULE, res, and impl::this.
SPA_EXPORT void pw_impl_module_destroy | ( | struct pw_impl_module * | module | ) |
Destroy a module.
module | the module to destroy |
References NAME, pw_global::pw_global_destroy(), pw_in_valgrind(), pw_log::pw_log_debug, pw_log::pw_log_warn, and pw_properties::pw_properties_free().
Referenced by pw_context_load_module().