Define a consistent way to turn message id into thread id hash
[citadel.git] / webcit / webcit.h
index 022ed2d83f145adbfb3d1bb183e87f799428cfaa..ccd2b779d571590cab76edd8d71160319a95ff46 100644 (file)
@@ -887,6 +887,9 @@ void http_datestring(char *buf, size_t n, time_t xtime);
 
 extern int time_to_die;                        /* Nonzero if server is shutting down */
 
+/* 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)))
+
 /* 
  * Array type for a blog post.  The first message is the post; the rest are comments
  */