PipeWire  0.3.32
impl-module.c File Reference

Macros

#define NAME   "module"
 

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...
 
SPA_EXPORT struct pw_context * pw_impl_module_get_context (struct pw_impl_module *module)
 Get the context of a module. More...
 
SPA_EXPORT struct pw_global * pw_impl_module_get_global (struct pw_impl_module *module)
 Get the global of a module. More...
 
SPA_EXPORT const struct pw_propertiespw_impl_module_get_properties (struct pw_impl_module *module)
 Get the node properties. More...
 
SPA_EXPORT int pw_impl_module_update_properties (struct pw_impl_module *module, const struct spa_dict *dict)
 Update the module properties. More...
 
SPA_EXPORT const struct pw_module_infopw_impl_module_get_info (struct pw_impl_module *module)
 Get the module info. More...
 
SPA_EXPORT void pw_impl_module_add_listener (struct pw_impl_module *module, struct spa_hook *listener, const struct pw_impl_module_events *events, void *data)
 Add an event listener to a module. More...
 

Macro Definition Documentation

◆ NAME

#define NAME   "module"

Function Documentation

◆ pw_context_load_module()

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.

Parameters
contexta PipeWire Context
namename of the module to load
argsA string with arguments for the module
propertiesextra global properties
Returns
A Dynamically loadable Module if the module could be loaded, or NULL on failure.

References pw_log_debug, and res.

◆ pw_impl_module_add_listener()

SPA_EXPORT void pw_impl_module_add_listener ( struct pw_impl_module *  module,
struct spa_hook listener,
const struct pw_impl_module_events events,
void *  data 
)

Add an event listener to a module.

References spa_hook_list_append().

Referenced by pipewire__module_init().

◆ pw_impl_module_destroy()

SPA_EXPORT void pw_impl_module_destroy ( struct pw_impl_module *  module)

◆ pw_impl_module_get_context()

SPA_EXPORT struct pw_context* pw_impl_module_get_context ( struct pw_impl_module *  module)

Get the context of a module.

Referenced by pipewire__module_init().

◆ pw_impl_module_get_global()

SPA_EXPORT struct pw_global* pw_impl_module_get_global ( struct pw_impl_module *  module)

Get the global of a module.

Referenced by pipewire__module_init().

◆ pw_impl_module_get_info()

SPA_EXPORT const struct pw_module_info* pw_impl_module_get_info ( struct pw_impl_module *  module)

Get the module info.

◆ pw_impl_module_get_properties()

SPA_EXPORT const struct pw_properties* pw_impl_module_get_properties ( struct pw_impl_module *  module)

Get the node properties.

◆ pw_impl_module_update_properties()

SPA_EXPORT int pw_impl_module_update_properties ( struct pw_impl_module *  module,
const struct spa_dict dict 
)

Update the module properties.

References NAME, pw_log_debug, PW_MODULE_CHANGE_MASK_PROPS, pw_properties_update(), and spa_list_for_each.

Referenced by pipewire__module_init().