Metadata interface
More...
Metadata interface
◆ PW_TYPE_INTERFACE_Metadata
◆ PW_METADATA_PERM_MASK
◆ PW_VERSION_METADATA
#define PW_VERSION_METADATA 3 |
◆ PW_EXTENSION_MODULE_METADATA
◆ PW_METADATA_EVENT_PROPERTY
#define PW_METADATA_EVENT_PROPERTY 0 |
◆ PW_METADATA_EVENT_NUM
#define PW_METADATA_EVENT_NUM 1 |
◆ PW_VERSION_METADATA_EVENTS
#define PW_VERSION_METADATA_EVENTS 0 |
◆ PW_METADATA_METHOD_ADD_LISTENER
#define PW_METADATA_METHOD_ADD_LISTENER 0 |
◆ PW_METADATA_METHOD_SET_PROPERTY
#define PW_METADATA_METHOD_SET_PROPERTY 1 |
◆ PW_METADATA_METHOD_CLEAR
#define PW_METADATA_METHOD_CLEAR 2 |
◆ PW_METADATA_METHOD_NUM
#define PW_METADATA_METHOD_NUM 3 |
◆ PW_VERSION_METADATA_METHODS
#define PW_VERSION_METADATA_METHODS 0 |
◆ pw_metadata_method
#define pw_metadata_method |
( |
| o, |
|
|
| method, |
|
|
| version, |
|
|
| ... ) |
◆ pw_metadata_add_listener
#define pw_metadata_add_listener |
( |
| c, |
|
|
| ... ) |
◆ pw_metadata_set_property
#define pw_metadata_set_property |
( |
| c, |
|
|
| ... ) |
Value:
Set a metadata property.
Automatically emit property events for the subject and key when they are changed.
- Parameters
-
subject | the id of the global to associate the metadata with. |
key | the key of the metadata, NULL clears all metadata for the subject. |
type | the type of the metadata, this can be blank |
value | the metadata value. NULL clears the metadata. |
This requires X and W permissions on the metadata. It also requires M permissions on the subject global.
- See also
- pw_metadata_methods.set_property
◆ pw_metadata_clear
#define pw_metadata_clear |
( |
| c | ) |
|
◆ PW_KEY_METADATA_NAME
#define PW_KEY_METADATA_NAME "metadata.name" |
◆ PW_KEY_METADATA_VALUES
#define PW_KEY_METADATA_VALUES "metadata.values" |