energy/cef/cef-def.go

38 lines
746 B
Go
Raw Normal View History

2022-12-10 15:01:04 +08:00
//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under GNU General Public License v3.0
//
//----------------------------------------
package cef
import (
"github.com/energye/energy/common/imports"
2022-12-10 15:01:04 +08:00
"github.com/energye/golcl/lcl/api"
)
var (
cef_version string
lib_build_version string
)
// cef version
2022-12-10 15:01:04 +08:00
func CEFVersion() string {
if cef_version == "" {
r1, _, _ := imports.Proc(internale_CEFVersion).Call()
2022-12-10 15:01:04 +08:00
cef_version = api.GoStr(r1)
}
return cef_version
}
// lib build version
2022-12-10 15:01:04 +08:00
func LibBuildVersion() string {
if lib_build_version == "" {
r1, _, _ := imports.Proc(internale_LibBuildVersion).Call()
2022-12-10 15:01:04 +08:00
lib_build_version = api.GoStr(r1)
}
return lib_build_version
}