From 8b53ff55d04e9501aa9dc556727989eb898996b6 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 6 Mar 2020 15:13:12 +0100 Subject: [PATCH] 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. --- spa/include/spa/param/param.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spa/include/spa/param/param.h b/spa/include/spa/param/param.h index 9888c6938..c9054feae 100644 --- a/spa/include/spa/param/param.h +++ b/spa/include/spa/param/param.h @@ -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) }