media-session: expose metadata method

Expose a method to create an export metadata with a certain name.
This commit is contained in:
Wim Taymans 2020-11-20 17:58:08 +01:00
parent d822a0b1d0
commit 5af2efdaa6
3 changed files with 44 additions and 38 deletions

View file

@ -265,6 +265,8 @@ int sm_media_session_for_each_object(struct sm_media_session *sess,
int sm_media_session_schedule_rescan(struct sm_media_session *sess);
struct pw_metadata *sm_media_session_export_metadata(struct sm_media_session *sess,
const char *name);
struct pw_proxy *sm_media_session_export(struct sm_media_session *sess,
const char *type, const struct spa_dict *props,
void *object, size_t user_data_size);