]> git.cworth.org Git - notmuch/commitdiff
lib/config: add notmuch_config_key_{get,set}
authorDavid Bremner <david@tethera.net>
Wed, 26 Aug 2020 01:36:43 +0000 (22:36 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 6 Feb 2021 23:02:00 +0000 (19:02 -0400)
By using an enum we can have better error detection than copy pasting
key strings around.

The question of what layer this belongs in is a bit
tricky. Historically most of the keys are defined by the CLI. On the
other hand features like excludes are supported in the
library/bindings, and it makes sense to configure them from the
library as well.

The somewhat long prefix for notmuch_config_t is to avoid collisions
with the existing usage in notmuch-client.h.


No differences found