Files
aerc-inline-images/lib/notmuch/notmuch.go
T
2026-04-07 19:54:54 -04:00

33 lines
721 B
Go

//go:build notmuch
// +build notmuch
package notmuch
/*
#cgo LDFLAGS: -lnotmuch
#include <stdlib.h>
#include <notmuch.h>
#if !LIBNOTMUCH_CHECK_VERSION(5, 6, 0)
#error "aerc requires libnotmuch.so.5.6 or later"
#endif
*/
import "C"
import "fmt"
const (
MAJOR_VERSION = C.LIBNOTMUCH_MAJOR_VERSION
MINOR_VERSION = C.LIBNOTMUCH_MINOR_VERSION
MICRO_VERSION = C.LIBNOTMUCH_MICRO_VERSION
)
func Version() string {
return fmt.Sprintf("%d.%d.%d", MAJOR_VERSION, MINOR_VERSION, MICRO_VERSION)
}
// NOTE: Any CGO call which passes a reference to a pointer (**object) will fail
// gocritic:dupSubExpr. All of these calls are set to be ignored by the linter
// Reference: https://github.com/go-critic/go-critic/issues/897