PipeWire
0.2.0
|
A dynamically loadable module. More...
Public Types | |
typedef int(* | pw_module_init_func_t) (struct pw_module *module, const 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, struct pw_client *owner, struct pw_global *parent, struct pw_properties *properties) |
Load a module. More... | |
void | pw_module_destroy (struct pw_module *module) |
Destroy a module. More... | |
A dynamically loadable module.
typedef int(* pw_module_init_func_t) (struct pw_module *module, const 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_global::pw_global_destroy(), pw_log::pw_log_debug(), and pw_resource_destroy().
Referenced by pw_core::pw_core_destroy().
struct pw_module * pw_module_load | ( | struct pw_core * | core, |
const char * | name, | ||
const char * | args, | ||
struct pw_client * | owner, | ||
struct pw_global * | parent, | ||
struct pw_properties * | properties | ||
) |
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_log::pw_log_debug(), and pw_utils::pw_split_strv().
Referenced by pw_remote_new().