aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-private.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-23 05:25:58 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-23 05:25:58 -0700
commitc78358fa8adc0e8fa4f889e479df76e8df186264 (patch)
treef3150d98f018857234469dcf986512d857ed8bda /notmuch-private.h
parent97775ef438a6015c63d6a5cf25f85937153cde59 (diff)
Move thread_id generation code from database.cc to message.cc
It's really up to the message to decide how to generate these.
Diffstat (limited to 'notmuch-private.h')
-rw-r--r--notmuch-private.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/notmuch-private.h b/notmuch-private.h
index 2d64a458..c8f53a74 100644
--- a/notmuch-private.h
+++ b/notmuch-private.h
@@ -102,6 +102,18 @@ _notmuch_message_create (const void *talloc_owner,
notmuch_database_t *notmuch,
unsigned int doc_id);
+/* XXX: Here temporarily during code movement only. */
+/* "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;
+
+
+void
+thread_id_generate (thread_id_t *thread_id);
+
/* Lookup a prefix value by name.
*
* XXX: This should really be static inside of message.cc, and we can