mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
4db9a1e96d
commit
8b53ff55d0
1 changed files with 3 additions and 1 deletions
|
|
@ -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) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue