]> git.cworth.org Git - obsolete/notmuch-old/commitdiff
go: Use notmuch_database_destroy instead of notmuch_database_close
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Sun, 22 Apr 2012 12:07:55 +0000 (14:07 +0200)
committerDavid Bremner <bremner@debian.org>
Sat, 28 Apr 2012 12:29:38 +0000 (09:29 -0300)
Adapt the go bindings to the notmuch_database_close split.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
bindings/go/pkg/notmuch.go

index c6844ef9f3aa77ae7df292ea2e5c54233f6db771..d32901d4f5eaccfc768f159a8ea9ec872f4ed1c3 100644 (file)
@@ -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.