From: Wilfried Goesgens Date: Sun, 3 Jan 2016 16:05:16 +0000 (+0100) Subject: Add macro to calculate a hash from a part of the message id X-Git-Tag: Release_902~80 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=32ba61afbc6f9964bac00c006b0058ef23a3518d Add macro to calculate a hash from a part of the message id --- 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" {