pulse-server: use the upper 8 bits of the id to mark things

The upper 8 bits of the object id is always 0 so we can use it to mark
our internal objects.
This commit is contained in:
Wim Taymans 2022-01-13 14:54:16 +01:00
parent 13830f2ded
commit 3a49168f26

View file

@ -57,9 +57,9 @@
#define SCACHE_ENTRY_SIZE_MAX (1024*1024*16) #define SCACHE_ENTRY_SIZE_MAX (1024*1024*16)
#define INDEX_MASK 0xffffu #define INDEX_MASK 0xffffu
#define MONITOR_FLAG (1u << 16) #define MONITOR_FLAG (1u << 24)
#define EXTENSION_FLAG (1u << 17) #define EXTENSION_FLAG (1u << 25)
#define MODULE_FLAG (1u << 18) #define MODULE_FLAG (1u << 26)
#define DEFAULT_SINK "@DEFAULT_SINK@" #define DEFAULT_SINK "@DEFAULT_SINK@"
#define DEFAULT_SOURCE "@DEFAULT_SOURCE@" #define DEFAULT_SOURCE "@DEFAULT_SOURCE@"