Go to the documentation of this file.
25 #ifndef PIPEWIRE_FACTORY_H
26 #define PIPEWIRE_FACTORY_H
40 #define PW_TYPE_INTERFACE_Factory PW_TYPE_INFO_INTERFACE_BASE "Factory"
42 #define PW_VERSION_FACTORY 3
51 #define PW_FACTORY_CHANGE_MASK_PROPS (1 << 0)
52 #define PW_FACTORY_CHANGE_MASK_ALL ((1 << 1)-1)
65 #define PW_FACTORY_EVENT_INFO 0
66 #define PW_FACTORY_EVENT_NUM 1
70 #define PW_VERSION_FACTORY_EVENTS 0
80 #define PW_FACTORY_METHOD_ADD_LISTENER 0
81 #define PW_FACTORY_METHOD_NUM 1
85 #define PW_VERSION_FACTORY_METHODS 0
94 #define pw_factory_method(o,method,version,...) \
96 int _res = -ENOTSUP; \
97 spa_interface_call_res((struct spa_interface*)o, \
98 struct pw_factory_methods, _res, \
99 method, version, ##__VA_ARGS__); \
103 #define pw_factory_add_listener(c,...) pw_factory_method(c,add_listener,0,__VA_ARGS__)
Factory methods.
Definition: factory.h:84
uint64_t change_mask
bitfield of changed fields since last call
Definition: factory.h:53
const char * type
type of the objects created by this factory
Definition: factory.h:49
user data to add to an object
Definition: filter.c:75
uint32_t version
Definition: factory.h:71
uint32_t id
id of the global
Definition: factory.h:47
uint32_t version
Definition: factory.h:86
Factory events.
Definition: factory.h:69
void(* info)(void *object, const struct pw_factory_info *info)
Notify factory info.
Definition: factory.h:77
void pw_factory_info_free(struct pw_factory_info *info)
Definition: introspect.c:320
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:295
Definition: utils/dict.h:48
uint32_t version
version of the objects
Definition: factory.h:50
The factory information.
Definition: factory.h:46
struct spa_dict * props
the properties of the factory
Definition: factory.h:54
struct pw_factory_info * pw_factory_info_update(struct pw_factory_info *info, const struct pw_factory_info *update)
Definition: introspect.c:293
const char * name
name the factory
Definition: factory.h:48
int(* add_listener)(void *object, struct spa_hook *listener, const struct pw_factory_events *events, void *data)
Definition: factory.h:88