From d3349358c6a5048559bd2a4faebe476ebd222170 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 14 Nov 2009 23:05:17 -0800 Subject: 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Makefile.local') diff --git a/lib/Makefile.local b/lib/Makefile.local index b8286c94..79f7b0b7 100644 --- a/lib/Makefile.local +++ b/lib/Makefile.local @@ -4,6 +4,7 @@ extra_cflags += -I$(dir) libnotmuch_c_srcs = \ $(dir)/libsha1.c \ $(dir)/message-file.c \ + $(dir)/messages.c \ $(dir)/sha1.c \ $(dir)/tags.c \ $(dir)/xutil.c -- cgit v1.2.3