mirror of
https://gitee.com/energye/energy.git
synced 2024-12-04 04:38:21 +08:00
03e3f74c7f
2. 增加内置资源http服务
28 lines
496 B
Go
28 lines
496 B
Go
//----------------------------------------
|
|
//
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
//
|
|
// Licensed under GNU General Public License v3.0
|
|
//
|
|
//----------------------------------------
|
|
|
|
package cef
|
|
|
|
import (
|
|
. "github.com/energye/energy/common"
|
|
"unsafe"
|
|
)
|
|
|
|
type ICefCallback struct {
|
|
instance uintptr
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
func (m *ICefCallback) Cont() {
|
|
Proc("cefCallback_Cont").Call(m.instance)
|
|
}
|
|
|
|
func (m *ICefCallback) Cancel() {
|
|
Proc("cefCallback_Cancel").Call(m.instance)
|
|
}
|