mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
media-session: store values as json
Save settings as jason and use a small json compatible tokenizer to load settings instead of our own less flexible format. Save settings with a prefix and filter out entries without prefix Listen for changes in restore.stream metadata and update properties.
This commit is contained in:
parent
b922f99293
commit
7ca8491be3
8 changed files with 507 additions and 128 deletions
|
|
@ -289,9 +289,9 @@ int sm_media_session_remove_links(struct sm_media_session *sess,
|
|||
const struct spa_dict *dict);
|
||||
|
||||
int sm_media_session_load_state(struct sm_media_session *sess,
|
||||
const char *name, struct pw_properties *props);
|
||||
const char *name, const char *prefix, struct pw_properties *props);
|
||||
int sm_media_session_save_state(struct sm_media_session *sess,
|
||||
const char *name, const struct pw_properties *props);
|
||||
const char *name, const char *prefix, const struct pw_properties *props);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue