21 #ifndef __PIPEWIRE_MODULE_H__
22 #define __PIPEWIRE_MODULE_H__
28 #include <spa/utils/hook.h>
32 #define PW_TYPE__Module PW_TYPE_OBJECT_BASE "Module"
33 #define PW_TYPE_MODULE_BASE PW_TYPE__Module ":"
35 #define PIPEWIRE_SYMBOL_MODULE_INIT "pipewire__module_init"
58 #define PW_VERSION_MODULE_EVENTS 0
66 #define PW_MODULE_PROP_NAME "pipewire.module.name"
87 struct spa_hook *listener,
A collection of key/value pairs.
Definition: properties.h:38
const struct pw_module_info * pw_module_get_info(struct pw_module *module)
Get the module info.
Definition: module.c:328
Module events added with pw_module_add_listener.
Definition: module.h:57
uint32_t version
Definition: module.h:59
SPA_EXPORT 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.
Definition: module.c:167
void(* destroy)(void *data)
The module is destroyed.
Definition: module.h:62
int(* pw_module_init_func_t)(struct pw_module *module, const char *args)
Module init function signature.
Definition: module.h:54
PipeWire client object class.
The module information.
Definition: introspect.h:103
struct pw_global * pw_module_get_global(struct pw_module *module)
Get the global of a module.
Definition: module.c:321
A global object visible to remote clients.
void pw_module_add_listener(struct pw_module *module, struct spa_hook *listener, const struct pw_module_events *events, void *data)
Add an event listener to a module.
Definition: module.c:334
SPA_EXPORT void pw_module_destroy(struct pw_module *module)
Destroy a module.
Definition: module.c:287
struct pw_core * pw_module_get_core(struct pw_module *module)
Get the core of a module.
Definition: module.c:315
A dynamically loadable module.