aboutsummaryrefslogtreecommitdiff
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-12-23 23:37:41 -0400
committerDavid Bremner <david@tethera.net>2021-02-06 19:34:17 -0400
commit5232462dcfe77e6af475c9dd1a25513c43af53f3 (patch)
tree36a15d457bc86f5b3057d2738b6d2cd6d0cf379f /lib/notmuch.h
parent87e3a82feb3932fea2c2b160c73d210dcd48a78c (diff)
lib: split notmuch_database_compact
The "back end" function takes an open notmuch database, which should know its own path (i.e. the path needs to be cached in the configuration data).
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 4a513b44..4e5312ad 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -498,6 +498,18 @@ notmuch_database_compact (const char *path,
void *closure);
/**
+ * Like notmuch_database_compact, but take an open database as a
+ * parameter.
+ *
+ * @since libnnotmuch 5.4 (notmuch 0.32)
+ */
+notmuch_status_t
+notmuch_database_compact_db (notmuch_database_t *database,
+ const char *backup_path,
+ notmuch_compact_status_cb_t status_cb,
+ void *closure);
+
+/**
* Destroy the notmuch database, closing it if necessary and freeing
* all associated resources.
*