notmuch/lib
Carl Worth f93b7218c3 lib: Consolidate checks for read-only database.
Previously, many checks were deep in the library just before a cast
operation. These have now been replaced with internal errors and new
checks have instead been added at the beginning of all top-levelentry
points requiring a read-write database.

The new checks now also use a single function for checking and
printing the error message. This will give us a convenient location to
extend the check, (such as based on database version as well).
2010-01-07 10:19:44 -08:00
..
database-private.h notmuch: New function to retrieve all tags from the database. 2009-11-26 07:01:52 -08:00
database.cc lib: Consolidate checks for read-only database. 2010-01-07 10:19:44 -08:00
directory.cc lib: Consolidate checks for read-only database. 2010-01-07 10:19:44 -08:00
index.cc Index content from citations and signatures. 2010-01-06 10:32:06 -08:00
libsha1.c libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
libsha1.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
Makefile Makefiles: Use .DEFAULT to support arbitrary targets from sub directories. 2010-01-06 10:32:06 -08:00
Makefile.local lib: Implement new notmuch_directory_t API. 2010-01-06 10:32:06 -08:00
message-file.c message_file_get_header: Use break where more clear than continue. 2009-11-17 18:37:45 -08:00
message.cc lib: Consolidate checks for read-only database. 2010-01-07 10:19:44 -08:00
messages.c lib: New function to collect tags from a list of messages. 2009-11-26 07:06:04 -08:00
notmuch-private.h lib: Consolidate checks for read-only database. 2010-01-07 10:19:44 -08:00
notmuch.h lib: Consolidate checks for read-only database. 2010-01-07 10:19:44 -08:00
query.cc Silence compiler warning by initializing a variable. 2009-11-27 18:38:06 -08:00
sha1.c Typsos 2009-11-18 03:21:36 -08:00
tags.c notmuch_tags_advance: Make safe against excessive calls. 2009-11-14 23:02:55 -08:00
thread.cc correct message flag enum value so that it matches the type 2009-11-27 20:50:59 -08:00
xutil.c xutil: Implement xstrndup without relying on strndup. 2009-12-01 12:51:39 -08:00
xutil.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00