From: David Bremner Date: Sat, 12 Jun 2021 13:26:16 +0000 (-0300) Subject: lib: make indexopts pointers opaque X-Git-Tag: 0.35_rc0~99 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=c128c995bc3e7474d4086af7e2066f60f54329b2 lib: make indexopts pointers opaque There is no reason for anything outside the indexopts.c compilation unit to have access to structure members. --- 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."