]> git.notmuchmail.org Git - notmuch/commit
lib: Add new implementation of notmuch_filenames_t
authorCarl Worth <cworth@cworth.org>
Thu, 11 Nov 2010 07:26:31 +0000 (23:26 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 11 Nov 2010 11:40:19 +0000 (03:40 -0800)
commitd87db8843266caf6b11c1f2f1874328830b23878
tree2c3fc3cdeb793a70ffe48ef88614861a3e076baa
parentd422dcf0a276f2806d5563fbdc48fa7d69e4c3eb
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/Makefile.local
lib/directory.cc
lib/filenames.c [new file with mode: 0644]
lib/messages.c
lib/notmuch-private.h