From 6c5054ebee5beb72c22d91a57c66b8ecdc65f7bf Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 21 Oct 2009 15:37:51 -0700 Subject: database: Add new notmuch_database_find_message With this function, and the recently added support for notmuch_message_get_thread_ids, we now recode the find_thread_ids function to work just the way we expect a user of the public notmuch API to work. Not too bad really. --- message.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'message.cc') diff --git a/message.cc b/message.cc index 8ca8fde..0efa470 100644 --- a/message.cc +++ b/message.cc @@ -104,13 +104,13 @@ _notmuch_message_destructor (notmuch_message_t *message) } notmuch_message_t * -_notmuch_message_create (notmuch_results_t *owner, +_notmuch_message_create (const void *talloc_owner, notmuch_database_t *notmuch, - Xapian::docid doc_id) + unsigned int doc_id) { notmuch_message_t *message; - message = talloc (owner, notmuch_message_t); + message = talloc (talloc_owner, notmuch_message_t); if (unlikely (message == NULL)) return NULL; -- cgit v1.2.3