26 #ifndef PIPEWIRE_IMPL_MODULE_H 27 #define PIPEWIRE_IMPL_MODULE_H 33 #include <spa/utils/hook.h> 37 #define PIPEWIRE_SYMBOL_MODULE_INIT "pipewire__module_init" 38 #define PIPEWIRE_MODULE_PREFIX "libpipewire-" 61 #define PW_VERSION_IMPL_MODULE_EVENTS 0 99 struct spa_hook *listener,
A collection of key/value pairs.
Definition: properties.h:45
int(* pw_impl_module_init_func_t)(struct pw_impl_module *module, const char *args)
Module init function signature.
Definition: impl-module.h:57
struct pw_impl_module * pw_context_load_module(struct pw_context *context, const char *name, const char *args, struct pw_properties *properties)
int pw_impl_module_update_properties(struct pw_impl_module *module, const struct spa_dict *dict)
Update the module properties.
Definition: impl-module.c:350
struct spa_dict dict
dictionary of key/values
Definition: properties.h:46
const struct pw_properties * pw_impl_module_get_properties(struct pw_impl_module *module)
Get the node properties.
Definition: impl-module.c:344
uint32_t version
Definition: impl-module.h:62
const struct pw_module_info * pw_impl_module_get_info(struct pw_impl_module *module)
Get the module info.
Definition: impl-module.c:374
Module events added with pw_impl_module_add_listener.
Definition: impl-module.h:60
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.
Definition: impl-module.c:380
static uint32_t int int const char va_list args
Definition: core.h:327
void(* free)(void *data)
The module is freed.
Definition: impl-module.h:67
struct pw_context * pw_impl_module_get_context(struct pw_impl_module *module)
Get the context of a module.
Definition: impl-module.c:332
The module information.
Definition: module.h:43
void pw_impl_module_destroy(struct pw_impl_module *module)
Destroy a module.
struct pw_global * pw_impl_module_get_global(struct pw_impl_module *module)
Get the global of a module.
Definition: impl-module.c:338
A global object visible to remote clients.
void(* initialized)(void *data)
The module is initialized.
Definition: impl-module.h:69
void(* registered)(void *data)
The module is registered.
Definition: impl-module.h:73
void(* destroy)(void *data)
The module is destroyed.
Definition: impl-module.h:65
A dynamically loadable module.