]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message.cc
lib: add private function to extract the database for a message.
[notmuch] / lib / message.cc
index 956a70a9572f861d5ba5aadc1d4154f15794e398..b84e5e1c8895deae3d7c88d62e3235341120053b 100644 (file)
@@ -1626,3 +1626,9 @@ notmuch_message_destroy (notmuch_message_t *message)
 {
     talloc_free (message);
 }
+
+notmuch_database_t *
+_notmuch_message_database (notmuch_message_t *message)
+{
+    return message->notmuch;
+}