aboutsummaryrefslogtreecommitdiff
path: root/lib/notmuch-private.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2018-11-17 10:09:00 -0400
committerDavid Bremner <david@tethera.net>2019-05-25 07:08:20 -0300
commitb52cda90f0b05ce5055fb840e6d9dd88c09f1f83 (patch)
tree18d285f1e0d1d299e0d7a80db8bae989ff6a576c /lib/notmuch-private.h
parent575493e78534f8fd241d663b8690a22d6885e0b1 (diff)
lib: cache user prefixes in database object
This will be used to avoid needing a database access to resolve a db prefix from the corresponding UI prefix (e.g. when indexing). Arguably the setup of the separate header map does not belong here, since it is about indexing rather than querying, but we currently don't have any other indexing setup to do.
Diffstat (limited to 'lib/notmuch-private.h')
-rw-r--r--lib/notmuch-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
index 39d11a91..09f828ab 100644
--- a/lib/notmuch-private.h
+++ b/lib/notmuch-private.h
@@ -678,6 +678,8 @@ struct _notmuch_indexopts {
#define CONFIG_HEADER_PREFIX "index.header."
+#define EMPTY_STRING(s) ((s)[0] == '\0')
+
NOTMUCH_END_DECLS
#ifdef __cplusplus