notmuch/lib
Austin Clements fe1ca14104 lib: Make notmuch_database_get_directory return NULL if the directory is not found
Using the new support from _notmuch_directory_create, this makes
notmuch_database_get_directory a read-only operation that simply
returns the directory object if it exists or NULL otherwise.  This
also means that notmuch_database_get_directory can work on read-only
databases.

This change breaks the directory mtime workaround in notmuch-new.c by
fixing the exact issue it was working around.  This permits mtime
update races to prevent scans of changed directories, which
non-deterministically breaks a few tests.  The next patch fixes this.
2012-05-23 22:30:55 -03:00
..
database-private.h lib: Add support for nested atomic sections. 2011-09-23 21:50:38 -04:00
database.cc lib: Make notmuch_database_get_directory return NULL if the directory is not found 2012-05-23 22:30:55 -03:00
directory.cc lib: Perform the same transformation to _notmuch_database_find_directory_id 2012-05-23 22:30:32 -03:00
filenames.c Implement an internal generic string list and use it. 2011-03-21 02:45:18 -04:00
gen-version-script.sh lib/gen-version-script.h: add getline and getdelim to notmuch.sym if needed 2011-09-05 07:44:14 -03:00
index.cc Convert non-UTF-8 parts to UTF-8 before indexing them 2012-02-29 07:41:39 -04:00
libsha1.c fix sum moar typos [comments in source code] 2011-06-23 15:58:39 -07:00
libsha1.h fix sum moar typos [comments in source code] 2011-06-23 15:58:39 -07:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local lib: Bump SO version from 2.0.0 to 3.0.0 2012-05-05 20:06:09 -03:00
message-file.c Fix appending of Received headers 2011-06-10 17:03:14 -07:00
message.cc lib: Perform the same transformation to _notmuch_database_filename_to_direntry 2012-05-23 22:30:43 -03:00
messages.c lib: fix messages.c build warn 2012-01-10 06:33:23 -04:00
notmuch-private.h lib: Make notmuch_database_get_directory return NULL if the directory is not found 2012-05-23 22:30:55 -03:00
notmuch.h lib: Make notmuch_database_get_directory return NULL if the directory is not found 2012-05-23 22:30:55 -03:00
query.cc lib: change default for notmuch_query_set_omit_excluded 2012-04-07 22:58:33 -03:00
sha1.c Typsos 2009-11-18 03:21:36 -08:00
string-list.c Fixup string list author 2011-03-21 02:45:18 -04:00
tags.c Implement an internal generic string list and use it. 2011-03-21 02:45:18 -04:00
thread.cc lib: Add the exclude flag to notmuch_query_search_threads 2012-03-02 08:28:39 -04:00