media-session: add sync_update

Add method to only emit the update event when all actions up to
the sync point completed.

Update the available bits on NODES/PORTS/STREAMS/ENDPOINTS
This commit is contained in:
Wim Taymans 2019-12-16 13:37:19 +01:00
parent c7456d579a
commit f06fc5a62b
3 changed files with 35 additions and 17 deletions

View file

@ -64,6 +64,7 @@ struct sm_object {
struct spa_hook proxy_listener;
struct spa_hook object_listener;
pw_destroy_t destroy;
int pending;
struct spa_hook_list hooks;
@ -84,6 +85,8 @@ void *sm_object_add_data(struct sm_object *obj, const char *id, size_t size);
void *sm_object_get_data(struct sm_object *obj, const char *id);
int sm_object_remove_data(struct sm_object *obj, const char *id);
int sm_object_sync_update(struct sm_object *obj);
int sm_object_destroy(struct sm_object *obj);
struct sm_client {