aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/go
diff options
context:
space:
mode:
authorGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-04-22 14:07:55 +0200
committerGravatar David Bremner <bremner@debian.org>2012-04-28 09:29:38 -0300
commit22f73735c5d86cb10dc59ca536b9a73ade72eaea (patch)
tree702b459425bafa2a917643a1b9b34be96f6b50ba /bindings/go
parent37e293eb5f2b95d02fddc22a408ea16d224246ce (diff)
go: Use notmuch_database_destroy instead of notmuch_database_close
Adapt the go bindings to the notmuch_database_close split. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'bindings/go')
-rw-r--r--bindings/go/pkg/notmuch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/go/pkg/notmuch.go b/bindings/go/pkg/notmuch.go
index c6844ef9..d32901d4 100644
--- a/bindings/go/pkg/notmuch.go
+++ b/bindings/go/pkg/notmuch.go
@@ -114,7 +114,7 @@ func NewDatabase(path string) *Database {
* An existing notmuch database can be identified by the presence of a
* directory named ".notmuch" below 'path'.
*
- * The caller should call notmuch_database_close when finished with
+ * The caller should call notmuch_database_destroy when finished with
* this database.
*
* In case of any failure, this function returns NULL, (after printing
@@ -140,7 +140,7 @@ func OpenDatabase(path string, mode DatabaseMode) *Database {
/* Close the given notmuch database, freeing all associated
* resources. See notmuch_database_open. */
func (self *Database) Close() {
- C.notmuch_database_close(self.db)
+ C.notmuch_database_destroy(self.db)
}
/* Return the database path of the given database.