global: add serial number

Add a global serial number for each global object. We can use this
to uniquely define each global.
This commit is contained in:
Wim Taymans 2021-11-08 12:24:48 +01:00
parent dd62b12a1f
commit 59c4975750
2 changed files with 9 additions and 3 deletions

View file

@ -330,6 +330,7 @@ struct pw_global {
pw_global_bind_func_t func; /**< bind function */
void *object; /**< object associated with the interface */
uint64_t serial; /**< increasing serial number */
struct spa_list resource_list; /**< The list of resources of this global */