From 32ba61afbc6f9964bac00c006b0058ef23a3518d Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 3 Jan 2016 17:05:16 +0100 Subject: [PATCH] Add macro to calculate a hash from a part of the message id --- libcitadel/lib/libcitadel.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index 3a4d7a18b..366b8a62c 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -677,6 +677,7 @@ extern ConstStr RoomNetCfgStrs[maxRoomNetCfg]; /* a nice consistent place to define how we turn a message id into a thread id hash */ #define ThreadIdHash(Buf) abs(HashLittle(ChrPtr(Buf), StrLength(Buf))) +#define ThreadIdHashOffset(Buf, Offset) abs(HashLittle(ChrPtr(Buf) + Offset, StrLength(Buf)-Offset)) #ifdef __cplusplus extern "C" { -- 2.30.2