From d87db8843266caf6b11c1f2f1874328830b23878 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 10 Nov 2010 23:26:31 -0800 Subject: lib: Add new implementation of notmuch_filenames_t The new implementation is simply a talloc-based list of strings. The former support (a list of database terms with a common prefix) is implemented by simply pre-iterating over the terms and populating the list. This should provide no performance disadvantage as callers of thigns like notmuch_directory_get_child_files are very likely to always iterate over all filenames anyway. This new implementation of notmuch_filenames_t is in preparation for adding API to query all of the filenames for a single message. --- lib/messages.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/messages.c') diff --git a/lib/messages.c b/lib/messages.c index db2b7a16..120a48a9 100644 --- a/lib/messages.c +++ b/lib/messages.c @@ -42,8 +42,7 @@ _notmuch_message_list_create (const void *ctx) return list; } -/* Append 'node' (which can of course point to an arbitrarily long - * list of nodes) to the end of 'list'. +/* Append a single 'node' to the end of 'list'. */ void _notmuch_message_list_append (notmuch_message_list_t *list, -- cgit v1.2.3