lib: make indexopts pointers opaque

There is no reason for anything outside the indexopts.c compilation
unit to have access to structure members.
This commit is contained in:
David Bremner 2021-06-12 10:26:16 -03:00
parent f316f7ef6a
commit c128c995bc
2 changed files with 5 additions and 3 deletions

View file

@ -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)
{

View file

@ -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."