25 #ifndef PIPEWIRE_MODULE_H 26 #define PIPEWIRE_MODULE_H 37 #define PW_TYPE_INTERFACE_Module PW_TYPE_INFO_INTERFACE_BASE "Module" 39 #define PW_VERSION_MODULE 3 48 #define PW_MODULE_CHANGE_MASK_PROPS (1 << 0) 49 #define PW_MODULE_CHANGE_MASK_ALL ((1 << 1)-1) 62 #define PW_MODULE_EVENT_INFO 0 63 #define PW_MODULE_EVENT_NUM 1 67 #define PW_VERSION_MODULE_EVENTS 0 77 #define PW_MODULE_METHOD_ADD_LISTENER 0 78 #define PW_MODULE_METHOD_NUM 1 82 #define PW_VERSION_MODULE_METHODS 0 91 #define pw_module_method(o,method,version,...) \ 93 int _res = -ENOTSUP; \ 94 spa_interface_call_res((struct spa_interface*)o, \ 95 struct pw_module_methods, _res, \ 96 method, version, ##__VA_ARGS__); \ 100 #define pw_module_add_listener(c,...) pw_module_method(c,add_listener,0,__VA_ARGS__) const char * filename
filename of the module
Definition: module.h:46
uint64_t change_mask
bitfield of changed fields since last call
Definition: module.h:50
const char * args
arguments passed to the module
Definition: module.h:47
void pw_module_info_free(struct pw_module_info *info)
Free a pw_module_info.
Definition: introspect.c:357
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:76
Module methods.
Definition: module.h:81
struct pw_module_info * pw_module_info_update(struct pw_module_info *info, const struct pw_module_info *update)
Update and existing pw_module_info with update.
Definition: introspect.c:330
Module events.
Definition: module.h:66
Definition: utils/dict.h:48
uint32_t version
Definition: module.h:68
int(* add_listener)(void *object, struct spa_hook *listener, const struct pw_module_events *events, void *data)
Definition: module.h:85
uint32_t version
Definition: module.h:83
struct spa_dict * props
extra properties
Definition: module.h:51
The module information.
Definition: module.h:43
void(* info)(void *object, const struct pw_module_info *info)
Notify module info.
Definition: module.h:74
uint32_t id
id of the global
Definition: module.h:44
const char * name
name of the module
Definition: module.h:45