The definition of ThreadIdHash() has been moved from webcit.h to libcitadel.h
[citadel.git] / libcitadel / lib / libcitadel.h
index e64dbc32d1adbb1b1b2c239d79244ffcebd5c504..7ed8df24006b06910a73aec627de558779a5cc61 100644 (file)
@@ -629,4 +629,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