The definition of ThreadIdHash() has been moved from webcit.h to libcitadel.h
[citadel.git] / libcitadel / lib / libcitadel.h
index 021caf8d08fc2acd0cb17532e92d07c64560836b..ff87152b2fddba66ae7fc70aff72631cf215e748 100644 (file)
@@ -609,4 +609,8 @@ extern ConstStr RoomNetCfgStrs[maxRoomNetCfg];
 /* Convenience function to "perform a function and cut a log record if result != 0" */
 #define CtdlLogResult(x) if (x) syslog(LOG_CRIT, "%s:%d %s", __FILE__, __LINE__, strerror(errno))
 
+/* 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)))
+
+
 #endif // LIBCITADEL_H