param: add one user field to keep state

The this field can be used by apps who keep a copy of the
spa_param_info. They can use it, for example, to keep a counter
with the amount of changes since last processed.
This commit is contained in:
Wim Taymans 2020-03-06 15:13:12 +01:00
parent 4db9a1e96d
commit 8b53ff55d0

View file

@ -59,7 +59,9 @@ struct spa_param_info {
#define SPA_PARAM_INFO_WRITE (1<<2)
#define SPA_PARAM_INFO_READWRITE (SPA_PARAM_INFO_WRITE|SPA_PARAM_INFO_READ)
uint32_t flags;
uint32_t padding[6];
uint32_t user; /**< private user field. You can use this to keep
* state. */
uint32_t padding[5];
};
#define SPA_PARAM_INFO(id,flags) (struct spa_param_info){ (id), (flags) }