Skip to content

Commit

Permalink
tett LoadVmm log
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jul 18, 2024
1 parent 044d5e2 commit a19ebc5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ux/ux.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@ func newToolbar() *toolbar {

newPanel.AddChild(widget.NewButton("Load Vmm", func() {
mylog.Trace("LoadVmm", sdk.LoadVmm())
mylog.Call(func() {
buffer := sdk.SetTextMessageCallbackUsingSharedBuffer(unsafe.Pointer(reflect.ValueOf(sdk.LogCallback).Pointer()))
sharedBuffer := sdk.BytePointerToString((*byte)(buffer))
mylog.Info("LoadVmm", sharedBuffer)
})
}))
newPanel.AddChild(widget.NewButton("UnLoad Vmm", func() {
mylog.Trace("UnloadVmm", sdk.UnloadVmm())
Expand Down

0 comments on commit a19ebc5

Please sign in to comment.