aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/notmuch-private.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-14 23:05:17 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-14 23:05:17 -0800
commitd3349358c6a5048559bd2a4faebe476ebd222170 (patch)
tree9d6aef2218ab3fd889b1d427537fb481a49ed6a6 /lib/notmuch-private.h
parentc979fc5b05a541d8488b77cbbc590ed3955690df (diff)
lib: Move notmuch_messages_t code from query.cc to new messages.c
The new object is simply a linked-list of notmuch_message_t objects, (unlike the old object which contained a couple of Xapian iterators). This works now by the query code immediately iterator over all results and creating notmuch_message_t objects for them, (rather than waiting to create the objects until the notmuch_messages_get call as we did earlier). The point of this change is to allow other instances of lists of messages, (such as in notmuch_thread_t), that are not directly related to Xapian search results.
Diffstat (limited to 'lib/notmuch-private.h')
-rw-r--r--lib/notmuch-private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
index c286aa4b..bb1f235e 100644
--- a/lib/notmuch-private.h
+++ b/lib/notmuch-private.h
@@ -275,6 +275,15 @@ const char *
notmuch_message_file_get_header (notmuch_message_file_t *message,
const char *header);
+/* messages.c */
+
+notmuch_messages_t *
+_notmuch_messages_create (void *ctx);
+
+void
+_notmuch_messages_add_message (notmuch_messages_t *messages,
+ notmuch_message_t *message);
+
/* date.c */
/* Parse an RFC 8222 date string to a time_t value.