]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/go/pkg/notmuch.go
go: define the constant STATUS_UNBALANCED_ATOMIC
[notmuch] / bindings / go / pkg / notmuch.go
index f9f86b5e3c8f928bddac6f781a345d923c5af0f3..8faf3bb1cf813174ce6bbc3b1d2ca5a51fb47763 100644 (file)
@@ -14,7 +14,7 @@ import "unsafe"
 // Status codes used for the return values of most functions
 type Status C.notmuch_status_t
 const (
-       STATUS_SUCCESS Status = 0
+       STATUS_SUCCESS Status = iota
        STATUS_OUT_OF_MEMORY
     STATUS_READ_ONLY_DATABASE
     STATUS_XAPIAN_EXCEPTION
@@ -24,6 +24,7 @@ const (
     STATUS_NULL_POINTER
     STATUS_TAG_TOO_LONG
     STATUS_UNBALANCED_FREEZE_THAW
+    STATUS_UNBALANCED_ATOMIC
 
     STATUS_LAST_STATUS
 )