mirror of https://gitee.com/openkylin/libvirt.git
vbox: Rewrite vboxDomainShutdown
This commit is contained in:
parent
67533a8148
commit
502c43ee44
|
@ -2504,3 +2504,8 @@ int vboxDomainShutdownFlags(virDomainPtr dom, unsigned int flags)
|
|||
vboxIIDUnalloc(&iid);
|
||||
return ret;
|
||||
}
|
||||
|
||||
int vboxDomainShutdown(virDomainPtr dom)
|
||||
{
|
||||
return vboxDomainShutdownFlags(dom, 0);
|
||||
}
|
||||
|
|
|
@ -933,12 +933,6 @@ vboxSocketParseAddrUtf16(vboxGlobalData *data, const PRUnichar *utf16,
|
|||
return result;
|
||||
}
|
||||
|
||||
static int vboxDomainShutdown(virDomainPtr dom)
|
||||
{
|
||||
return vboxDomainShutdownFlags(dom, 0);
|
||||
}
|
||||
|
||||
|
||||
static int vboxDomainReboot(virDomainPtr dom, unsigned int flags)
|
||||
{
|
||||
VBOX_OBJECT_CHECK(dom->conn, int, -1);
|
||||
|
|
|
@ -423,6 +423,7 @@ int vboxDomainIsUpdated(virDomainPtr dom);
|
|||
int vboxDomainSuspend(virDomainPtr dom);
|
||||
int vboxDomainResume(virDomainPtr dom);
|
||||
int vboxDomainShutdownFlags(virDomainPtr dom, unsigned int flags);
|
||||
int vboxDomainShutdown(virDomainPtr dom);
|
||||
|
||||
/* Version specified functions for installing uniformed API */
|
||||
void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
|
|
Loading…
Reference in New Issue