]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch.h
lib: split notmuch_database_compact
[notmuch] / lib / notmuch.h
index 4a513b44789558df8f080eddb4a9d1c6bb0ba032..4e5312ad033ea5c8a4478c296aa039e9c9554bc7 100644 (file)
@@ -497,6 +497,18 @@ notmuch_database_compact (const char *path,
                          notmuch_compact_status_cb_t status_cb,
                          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.