X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=message.cc;h=ce600af94b1340310aa252cf7a8ee0433aae1929;hp=281da4f55c34388c3ac54a6cea2a7f8707a75e38;hb=6ccdffcd87b8af0c1c683588612169f5dc776644;hpb=1b5d8984c678add2ab5d1353b94a8229421269df diff --git a/message.cc b/message.cc index 281da4f5..ce600af9 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