2022-12-10 15:01:04 +08:00
|
|
|
//----------------------------------------
|
|
|
|
//
|
|
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
|
|
//
|
|
|
|
// Licensed under GNU General Public License v3.0
|
|
|
|
//
|
|
|
|
//----------------------------------------
|
|
|
|
|
|
|
|
package cef
|
|
|
|
|
|
|
|
import (
|
2023-02-13 21:25:35 +08:00
|
|
|
"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
|
|
|
|
)
|
|
|
|
|
2023-02-13 21:25:35 +08:00
|
|
|
// cef version
|
2022-12-10 15:01:04 +08:00
|
|
|
func CEFVersion() string {
|
|
|
|
if cef_version == "" {
|
2023-02-13 21:25:35 +08:00
|
|
|
r1, _, _ := imports.Proc(internale_CEFVersion).Call()
|
2022-12-10 15:01:04 +08:00
|
|
|
cef_version = api.GoStr(r1)
|
|
|
|
}
|
|
|
|
return cef_version
|
|
|
|
}
|
|
|
|
|
2023-02-13 21:25:35 +08:00
|
|
|
// lib build version
|
2022-12-10 15:01:04 +08:00
|
|
|
func LibBuildVersion() string {
|
|
|
|
if lib_build_version == "" {
|
2023-02-13 21:25:35 +08:00
|
|
|
r1, _, _ := imports.Proc(internale_LibBuildVersion).Call()
|
2022-12-10 15:01:04 +08:00
|
|
|
lib_build_version = api.GoStr(r1)
|
|
|
|
}
|
|
|
|
return lib_build_version
|
|
|
|
}
|