imposm3/vendor/github.com/jmhodges/levigo/version.go
2022-08-23 11:42:34 +02:00

19 lines
420 B
Go

package levigo
/*
#cgo LDFLAGS: -lleveldb
#include "leveldb/c.h"
*/
import "C"
// GetLevelDBMajorVersion returns the underlying LevelDB implementation's major
// version.
func GetLevelDBMajorVersion() int {
return int(C.leveldb_major_version())
}
// GetLevelDBMinorVersion returns the underlying LevelDB implementation's minor
// version.
func GetLevelDBMinorVersion() int {
return int(C.leveldb_minor_version())
}