mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
lib: make notmuch_message_get_database() take a const notmuch_message_t*
This is technically an API change, but it is not an ABI change, and it's merely a statement that limits what the library can do. This is in parallel to notmuch_query_get_database(), which also takes a const pointer.
This commit is contained in:
parent
499bb78178
commit
6a9f26b4a0
2 changed files with 2 additions and 2 deletions
|
@ -1925,7 +1925,7 @@ notmuch_message_destroy (notmuch_message_t *message)
|
|||
}
|
||||
|
||||
notmuch_database_t *
|
||||
notmuch_message_get_database (notmuch_message_t *message)
|
||||
notmuch_message_get_database (const notmuch_message_t *message)
|
||||
{
|
||||
return message->notmuch;
|
||||
}
|
||||
|
|
|
@ -1351,7 +1351,7 @@ notmuch_messages_collect_tags (notmuch_messages_t *messages);
|
|||
* @since libnotmuch 5.2 (notmuch 0.27)
|
||||
*/
|
||||
notmuch_database_t *
|
||||
notmuch_message_get_database (notmuch_message_t *message);
|
||||
notmuch_message_get_database (const notmuch_message_t *message);
|
||||
|
||||
/**
|
||||
* Get the message ID of 'message'.
|
||||
|
|
Loading…
Reference in a new issue