aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/messages.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-11-10 23:26:31 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-11-11 03:40:19 -0800
commitd87db8843266caf6b11c1f2f1874328830b23878 (patch)
tree2c3fc3cdeb793a70ffe48ef88614861a3e076baa /lib/messages.c
parentd422dcf0a276f2806d5563fbdc48fa7d69e4c3eb (diff)
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.
Diffstat (limited to 'lib/messages.c')
-rw-r--r--lib/messages.c3
1 files changed, 1 insertions, 2 deletions
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,