From 3a49168f26fb8ad009ab2369739fa1cbbc83489a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 13 Jan 2022 14:54:16 +0100 Subject: [PATCH] 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. --- src/modules/module-protocol-pulse/defs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/module-protocol-pulse/defs.h b/src/modules/module-protocol-pulse/defs.h index 8a9756a2d..ae7452b07 100644 --- a/src/modules/module-protocol-pulse/defs.h +++ b/src/modules/module-protocol-pulse/defs.h @@ -57,9 +57,9 @@ #define SCACHE_ENTRY_SIZE_MAX (1024*1024*16) #define INDEX_MASK 0xffffu -#define MONITOR_FLAG (1u << 16) -#define EXTENSION_FLAG (1u << 17) -#define MODULE_FLAG (1u << 18) +#define MONITOR_FLAG (1u << 24) +#define EXTENSION_FLAG (1u << 25) +#define MODULE_FLAG (1u << 26) #define DEFAULT_SINK "@DEFAULT_SINK@" #define DEFAULT_SOURCE "@DEFAULT_SOURCE@"