Adapt Intel VM suspend/resume to driver.SuspendDriver and lifecycle.Service, move native VM close confirmation into internal/host, migrate vm-suspend legacy capability detection, drop moved runtime build tooling, and regenerate i18n and Wails bindings.
23 lines
374 B
Go
23 lines
374 B
Go
//go:build !windows
|
|
|
|
package host
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
|
|
"github.com/Nwflower/reims-go/internal/i18n"
|
|
)
|
|
|
|
type VMCloseChoice uint8
|
|
|
|
const (
|
|
VMCloseCancel VMCloseChoice = iota
|
|
VMCloseShutdown
|
|
VMCloseSuspend
|
|
)
|
|
|
|
func ConfirmVMClose(context.Context, uintptr, string, i18n.Locale, string, bool) (VMCloseChoice, error) {
|
|
return VMCloseCancel, errors.ErrUnsupported
|
|
}
|