lib: Move notmuch_messages_t code from query.cc to new messages.c
authorCarl Worth <cworth@cworth.org>
Sun, 15 Nov 2009 07:05:17 +0000 (23:05 -0800)
committerCarl Worth <cworth@cworth.org>
Sun, 15 Nov 2009 07:05:17 +0000 (23:05 -0800)
commitd3349358c6a5048559bd2a4faebe476ebd222170
tree9d6aef2218ab3fd889b1d427537fb481a49ed6a6
parentc979fc5b05a541d8488b77cbbc590ed3955690df
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.
lib/Makefile.local
lib/messages.c [new file with mode: 0644]
lib/notmuch-private.h
lib/query.cc