Split notmuch_database_close into two functions
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Wed, 25 Apr 2012 13:20:16 +0000 (15:20 +0200)
committerDavid Bremner <bremner@debian.org>
Sat, 28 Apr 2012 12:21:13 +0000 (09:21 -0300)
commit7864350c938944276c1a378539da7670c211b9b5
treebdb5405ac463c79725021a0b370116961a0e5d4a
parent9429141bb1b73a4e05b2f30d59c3c88bb87c2d43
Split notmuch_database_close into two functions

Formerly notmuch_database_close closed the xapian database and
destroyed the talloc structure associated with the notmuch database
object. Split notmuch_database_close into notmuch_database_close and
notmuch_database_destroy.

This makes it possible for long running programs to close the xapian
database and thus release the lock associated with it without
destroying the data structures obtained from it.

This also makes the api more consistent since every other data
structure has a destructor function.

The comments in notmuch.h are a courtesy of Austin Clements.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
lib/database.cc
lib/notmuch.h