diff options
| author | David Bremner <david@tethera.net> | 2021-06-12 10:26:16 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-10-23 09:48:39 -0300 |
| commit | c128c995bc3e7474d4086af7e2066f60f54329b2 (patch) | |
| tree | ced4790f499a0a23a183c468579150ad9a503c34 /lib | |
| parent | f316f7ef6af98b8f89f094dde24e36b837b3c5f2 (diff) | |
lib: make indexopts pointers opaque
There is no reason for anything outside the indexopts.c compilation
unit to have access to structure members.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/indexopts.c | 4 | ||||
| -rw-r--r-- | lib/notmuch-private.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/indexopts.c b/lib/indexopts.c index 4a860858..2ffd1942 100644 --- a/lib/indexopts.c +++ b/lib/indexopts.c @@ -20,6 +20,10 @@ #include "notmuch-private.h" +struct _notmuch_indexopts { + _notmuch_crypto_t crypto; +}; + notmuch_indexopts_t * notmuch_database_get_default_indexopts (notmuch_database_t *db) { diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index e9ce74a4..3cc79bc4 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -711,9 +711,7 @@ _notmuch_thread_create (void *ctx, /* indexopts.c */ -struct _notmuch_indexopts { - _notmuch_crypto_t crypto; -}; +struct _notmuch_indexopts; #define CONFIG_HEADER_PREFIX "index.header." |
