diff options
author | Peter Wang <novalazy@gmail.com> | 2014-04-16 22:59:19 +1000 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-09-16 20:17:06 +0200 |
commit | d81fc4b42de2687a06046d068fe391282b0b8b8f (patch) | |
tree | 4d1257a526798b8d0793df87a6c67c2a2b842aac | |
parent | ea90d8e043e348616d9e17cef66c17274342dacd (diff) |
go: add return status to database close method
Add return status to the Database.Close() method that calls
notmuch_database_destroy.
-rw-r--r-- | bindings/go/src/notmuch/notmuch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 00bd53ac..b9230ad2 100644 --- a/bindings/go/src/notmuch/notmuch.go +++ b/bindings/go/src/notmuch/notmuch.go @@ -144,8 +144,8 @@ func OpenDatabase(path string, mode DatabaseMode) (*Database, Status) { /* Close the given notmuch database, freeing all associated * resources. See notmuch_database_open. */ -func (self *Database) Close() { - C.notmuch_database_destroy(self.db) +func (self *Database) Close() Status { + return Status(C.notmuch_database_destroy(self.db)) } /* Return the database path of the given database. |