]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch-private.h
lib: Split the database upgrade into two phases for safer operation.
[notmuch] / lib / notmuch-private.h
index f9adea728b4b8e83644f1b5c66245743c9ac5e86..c7fb0ef89312fa35ffda1cee7f22a9cd08da30c3 100644 (file)
@@ -258,6 +258,22 @@ _notmuch_message_sync (notmuch_message_t *message);
 void
 _notmuch_message_close (notmuch_message_t *message);
 
+/* Get a copy of the data in this message document.
+ *
+ * Caller should talloc_free the result when done.
+ *
+ * This function is intended to support database upgrade and really
+ * shouldn't be used otherwise. */
+char *
+_notmuch_message_talloc_copy_data (notmuch_message_t *message);
+
+/* Clear the data in this message document.
+ *
+ * This function is intended to support database upgrade and really
+ * shouldn't be used otherwise. */
+void
+_notmuch_message_clear_data (notmuch_message_t *message);
+
 /* index.cc */
 
 notmuch_status_t