5 #ifndef PIPEWIRE_EXT_METADATA_H
6 #define PIPEWIRE_EXT_METADATA_H
22 #define PW_TYPE_INTERFACE_Metadata PW_TYPE_INFO_INTERFACE_BASE "Metadata"
24 #define PW_VERSION_METADATA 3
27 #define PW_EXTENSION_MODULE_METADATA PIPEWIRE_MODULE_PREFIX "module-metadata"
29 #define PW_METADATA_EVENT_PROPERTY 0
30 #define PW_METADATA_EVENT_NUM 1
34 #define PW_VERSION_METADATA_EVENTS 0
44 #define PW_METADATA_METHOD_ADD_LISTENER 0
45 #define PW_METADATA_METHOD_SET_PROPERTY 1
46 #define PW_METADATA_METHOD_CLEAR 2
47 #define PW_METADATA_METHOD_NUM 3
51 #define PW_VERSION_METADATA_METHODS 0
69 #define pw_metadata_method(o,method,version,...) \
71 int _res = -ENOTSUP; \
72 spa_interface_call_res((struct spa_interface*)o, \
73 struct pw_metadata_methods, _res, \
74 method, version, ##__VA_ARGS__); \
78 #define pw_metadata_add_listener(c,...) pw_metadata_method(c,add_listener,0,__VA_ARGS__)
79 #define pw_metadata_set_property(c,...) pw_metadata_method(c,set_property,0,__VA_ARGS__)
80 #define pw_metadata_clear(c) pw_metadata_method(c,clear,0)
82 #define PW_KEY_METADATA_NAME "metadata.name"
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:331