PipeWire
0.3.33
|
The metadata is used to store key/type/value pairs per object id. More...
Data Structures | |
struct | pw_impl_metadata_events |
Metadata events, listen to them with pw_impl_metadata_add_listener. More... | |
Functions | |
struct pw_impl_metadata * | pw_context_create_metadata (struct pw_context *context, const char *name, struct pw_properties *properties, size_t user_data_size) |
const struct pw_properties * | pw_impl_metadata_get_properties (struct pw_impl_metadata *metadata) |
Get the metadata properties. More... | |
int | pw_impl_metadata_register (struct pw_impl_metadata *metadata, struct pw_properties *properties) |
void | pw_impl_metadata_destroy (struct pw_impl_metadata *metadata) |
void * | pw_impl_metadata_get_user_data (struct pw_impl_metadata *metadata) |
int | pw_impl_metadata_set_implementation (struct pw_impl_metadata *metadata, struct pw_metadata *impl) |
struct pw_metadata * | pw_impl_metadata_get_implementation (struct pw_impl_metadata *metadata) |
struct pw_global * | pw_impl_metadata_get_global (struct pw_impl_metadata *metadata) |
Get the global of this metadata. More... | |
void | pw_impl_metadata_add_listener (struct pw_impl_metadata *metadata, struct spa_hook *listener, const struct pw_impl_metadata_events *events, void *data) |
Add an event listener. More... | |
int | pw_impl_metadata_set_property (struct pw_impl_metadata *metadata, uint32_t subject, const char *key, const char *type, const char *value) |
Set a property. More... | |
int | pw_impl_metadata_set_propertyf (struct pw_impl_metadata *metadata, uint32_t subject, const char *key, const char *type, const char *fmt,...) 1(5 |
The metadata is used to store key/type/value pairs per object id.
struct pw_impl_metadata* pw_context_create_metadata | ( | struct pw_context * | context, |
const char * | name, | ||
struct pw_properties * | properties, | ||
size_t | user_data_size | ||
) |
References name, pw_impl_metadata_set_implementation(), pw_properties_new(), pw_properties_set(), spa_hook_list_init(), and impl::this.
Referenced by pw_settings_init(), and sm_media_session_export_metadata().
void pw_impl_metadata_add_listener | ( | struct pw_impl_metadata * | metadata, |
struct spa_hook * | listener, | ||
const struct pw_impl_metadata_events * | events, | ||
void * | data | ||
) |
Add an event listener.
References spa_hook_list_append().
void pw_impl_metadata_destroy | ( | struct pw_impl_metadata * | metadata | ) |
References NAME, pw_global_destroy(), pw_log_debug, SPA_CONTAINER_OF, spa_hook_remove(), and spa_list_remove().
Referenced by pw_context_destroy(), and pw_settings_clean().
struct pw_global* pw_impl_metadata_get_global | ( | struct pw_impl_metadata * | metadata | ) |
Get the global of this metadata.
struct pw_metadata* pw_impl_metadata_get_implementation | ( | struct pw_impl_metadata * | metadata | ) |
References metadata::metadata.
Referenced by sm_media_session_export_metadata().
const struct pw_properties* pw_impl_metadata_get_properties | ( | struct pw_impl_metadata * | metadata | ) |
Get the metadata properties.
void* pw_impl_metadata_get_user_data | ( | struct pw_impl_metadata * | metadata | ) |
int pw_impl_metadata_register | ( | struct pw_impl_metadata * | metadata, |
struct pw_properties * | properties | ||
) |
References pw_global_new(), and PW_KEY_MODULE_ID.
int pw_impl_metadata_set_implementation | ( | struct pw_impl_metadata * | metadata, |
struct pw_metadata * | impl | ||
) |
References impl::def, metadata::iface, metadata::metadata, SPA_CONTAINER_OF, and spa_hook_remove().
Referenced by pw_context_create_metadata().
int pw_impl_metadata_set_property | ( | struct pw_impl_metadata * | metadata, |
uint32_t | subject, | ||
const char * | key, | ||
const char * | type, | ||
const char * | value | ||
) |
int pw_impl_metadata_set_propertyf | ( | struct pw_impl_metadata * | metadata, |
uint32_t | subject, | ||
const char * | key, | ||
const char * | type, | ||
const char * | fmt, | ||
... | |||
) |