]> git.notmuchmail.org Git - notmuch/commitdiff
lib: make indexopts pointers opaque
authorDavid Bremner <david@tethera.net>
Sat, 12 Jun 2021 13:26:16 +0000 (10:26 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 23 Oct 2021 12:48:39 +0000 (09:48 -0300)
There is no reason for anything outside the indexopts.c compilation
unit to have access to structure members.

lib/indexopts.c
lib/notmuch-private.h

index 4a8608586a356c083ed8ad35e70fe8882fa21a25..2ffd19424ea9752d2976a2438c6214c63dba5e41 100644 (file)
 
 #include "notmuch-private.h"
 
+struct _notmuch_indexopts {
+    _notmuch_crypto_t crypto;
+};
+
 notmuch_indexopts_t *
 notmuch_database_get_default_indexopts (notmuch_database_t *db)
 {
index e9ce74a4b178737ea74c7553823e8d6a7c6e2be0..3cc79bc4c86148445aaaf7f831421abdbb45801d 100644 (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."