aboutsummaryrefslogtreecommitdiff
path: root/lib/message-property.cc
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2018-05-11 02:57:52 -0400
committerDavid Bremner <david@tethera.net>2018-05-26 07:30:32 -0700
commit9088db76d89264b733f6b45e776d8952da237921 (patch)
tree42d9930598b27ab082da4502116f243a8c42861f /lib/message-property.cc
parent8a1eeecdfe83a5ca0a923e5d1e31bff076e406ce (diff)
lib: expose notmuch_message_get_database()
We've had _notmuch_message_database() internally for a while, and it's useful. It turns out to be useful on the other side of the library interface as well (i'll use it later in this series for "notmuch show"), so we expose it publicly now.
Diffstat (limited to 'lib/message-property.cc')
-rw-r--r--lib/message-property.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/message-property.cc b/lib/message-property.cc
index 6525fb24..210a15cc 100644
--- a/lib/message-property.cc
+++ b/lib/message-property.cc
@@ -44,7 +44,7 @@ _notmuch_message_modify_property (notmuch_message_t *message, const char *key, c
notmuch_status_t status;
char *term = NULL;
- status = _notmuch_database_ensure_writable (_notmuch_message_database (message));
+ status = _notmuch_database_ensure_writable (notmuch_message_get_database (message));
if (status)
return status;
@@ -92,7 +92,7 @@ _notmuch_message_remove_all_properties (notmuch_message_t *message, const char *
notmuch_status_t status;
const char * term_prefix;
- status = _notmuch_database_ensure_writable (_notmuch_message_database (message));
+ status = _notmuch_database_ensure_writable (notmuch_message_get_database (message));
if (status)
return status;