summaryrefslogtreecommitdiff
path: root/message.cc
diff options
context:
space:
mode:
Diffstat (limited to 'message.cc')
-rw-r--r--message.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/message.cc b/message.cc
index 281da4f..ce600af 100644
--- a/message.cc
+++ b/message.cc
@@ -41,6 +41,13 @@ struct _notmuch_thread_ids {
char *next;
};
+/* "128 bits of thread-id ought to be enough for anybody" */
+#define NOTMUCH_THREAD_ID_BITS 128
+#define NOTMUCH_THREAD_ID_DIGITS (NOTMUCH_THREAD_ID_BITS / 4)
+typedef struct _thread_id {
+ char str[NOTMUCH_THREAD_ID_DIGITS + 1];
+} thread_id_t;
+
#define ARRAY_SIZE(arr) (sizeof (arr) / sizeof (arr[0]))
/* These prefix values are specifically chosen to be compatible