示例#1
0
func (d *Domain) AbortCurrentJob() error {
	result := C.virDomainAbortJob(d.cptr)
	if result == -1 {
		return GetLastError()
	}
	return nil
}
示例#2
0
func (d *VirDomain) AbortJob() error {
	result := C.virDomainAbortJob(d.ptr)
	if result == -1 {
		return errors.New(GetLastError())
	}
	return nil
}