pulse-server: move the changed counter internally

We don't actually use this counter anywhere.

Change the counter to a mask that will contain object specific changes
to the params. This should make it possible to track what kind of
changes where done to the object and make it easier to emit the right
events later.
This commit is contained in:
Wim Taymans 2023-07-28 13:31:02 +02:00
parent 6e70fe459d
commit 3f77c4e25f
2 changed files with 14 additions and 13 deletions

View file

@ -71,11 +71,11 @@ struct pw_manager_object {
int (*message_handler)(struct pw_manager *m, struct pw_manager_object *o,
const char *message, const char *params, char **response);
int changed;
void *info;
struct spa_param_info *params;
uint32_t n_params;
uint64_t change_mask; /* object specific params change mask */
struct spa_list param_list;
unsigned int creating:1;
unsigned int removing:1;