mirror of
https://github.com/omniscale/imposm3.git
synced 2026-04-03 21:10:39 +02:00
19 lines
420 B
Go
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())
|
|
}
|