5#ifndef PIPEWIRE_MODULE_H 
    6#define PIPEWIRE_MODULE_H 
   25#define PW_TYPE_INTERFACE_Module        PW_TYPE_INFO_INTERFACE_BASE "Module" 
   27#define PW_MODULE_PERM_MASK             PW_PERM_R|PW_PERM_M 
   29#define PW_VERSION_MODULE               3 
   32#ifndef PW_API_MODULE_IMPL 
   33#define PW_API_MODULE_IMPL static inline 
   42#define PW_MODULE_CHANGE_MASK_PROPS     (1 << 0) 
   43#define PW_MODULE_CHANGE_MASK_ALL       ((1 << 1)-1) 
   59#define PW_MODULE_EVENT_INFO            0 
   60#define PW_MODULE_EVENT_NUM             1 
   64#define PW_VERSION_MODULE_EVENTS        0 
   74#define PW_MODULE_METHOD_ADD_LISTENER   0 
   75#define PW_MODULE_METHOD_NUM            1 
   79#define PW_VERSION_MODULE_METHODS       0 
 
   97                        listener, events, data);
 
 
uint32_t int int const char va_list args
Definition core.h:434
uint32_t id
Definition core.h:432
PW_API_MODULE_IMPL int pw_module_add_listener(struct pw_module *object, struct spa_hook *listener, const struct pw_module_events *events, void *data)
Definition module.h:107
struct pw_module_info * pw_module_info_merge(struct pw_module_info *info, const struct pw_module_info *update, bool reset)
Merge and existing pw_module_info with update.
Definition introspect.c:362
#define PW_API_MODULE_IMPL
Definition module.h:42
void pw_module_info_free(struct pw_module_info *info)
Free a pw_module_info.
Definition introspect.c:398
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 with reset.
Definition introspect.c:391
#define spa_api_method_r(rtype, def, type, o, method, version,...)
Definition hook.h:291
Module events.
Definition module.h:76
uint32_t version
Definition module.h:79
The module information.
Definition module.h:46
const char * filename
filename of the module
Definition module.h:49
uint64_t change_mask
bitfield of changed fields since last call
Definition module.h:55
Module methods.
Definition module.h:94
int(* add_listener)(void *object, struct spa_hook *listener, const struct pw_module_events *events, void *data)
Definition module.h:99
A hook, contains the structure with functions and the data passed to the functions.
Definition hook.h:427