Local Modules
-
struct WpImplModule
Used to load PipeWire modules within the WirePlumber process. This is slightly different from other objects in that the module is not exported to PipeWire, but it may create an export objects itself.
- Since
0.4.2
The module is loaded when the WP_IMPL_MODULE_FEATURE_LOADED feature is activated and unloaded when that feature is deactivated, or when the object is destroyed.
Remark
When the "client-context" component is loaded, which is the case in the default daemon configuration, the module is loaded in a secondary
pw_contextthat runs on its own thread, so that it is not affected by anything that blocks WirePlumber's main loop. The WpImplModule itself stays on the thread that created it and its API is unchanged; the module's own callbacks, though, run on that other thread. Loading the module there does not block the main loop, but unloading it waits until it is done, so that it is gone when deactivation returns. If the component is not loaded at the time the module is loaded, the module is loaded in the core'spw_contextinstead.
-
enum WpImplModuleFeatures
Flags to be used as WpObjectFeatures on WpImplModule.
- Since
0.6.0
Values:
-
enumerator WP_IMPL_MODULE_FEATURE_LOADED = (1 << 0)
Loads the PipeWire module
-
WpImplModule *wp_impl_module_new(WpCore *core, const gchar *name, const gchar *args, WpProperties *properties)
Creates a new PipeWire module object, without loading it.
The module is loaded when the WP_IMPL_MODULE_FEATURE_LOADED feature is activated, and unloaded when that feature is deactivated.
- Since
0.6.0
- Parameters:
core -- (transfer none): The WirePlumber core
name -- (transfer none): the name of the module to load
args -- (nullable) (transfer none): arguments to be passed to the module
properties -- (nullable) (transfer none): additional properties to be provided to the module
- Returns:
(transfer full): the new WpImplModule
-
const gchar *wp_impl_module_get_name(WpImplModule *self)
Gets the name of the PipeWire module.
- Since
0.6.0
- Parameters:
self -- the module
- Returns:
the name of the module
-
const gchar *wp_impl_module_get_args(WpImplModule *self)
Gets the arguments that are passed to the module when it is loaded.
- Since
0.6.0
- Parameters:
self -- the module
- Returns:
(nullable): the arguments of the module
-
WpProperties *wp_impl_module_get_properties(WpImplModule *self)
Gets the additional properties that are provided to the module when it is loaded.
- Since
0.6.0
- Parameters:
self -- the module
- Returns:
(transfer full) (nullable): the properties of the module
-
WP_TYPE_IMPL_MODULE (wp_impl_module_get_type())
The WpImplModule GType.
- Since
0.4.2