vbox: Rewrite vboxConnectGetHostname

This commit is contained in:
Taowei 2014-08-11 18:06:08 +08:00 committed by Michal Privoznik
parent 6e906ffa91
commit 86142d8e9a
3 changed files with 6 additions and 6 deletions

View File

@ -417,3 +417,8 @@ int vboxConnectGetVersion(virConnectPtr conn, unsigned long *version)
return 0; return 0;
} }
char *vboxConnectGetHostname(virConnectPtr conn ATTRIBUTE_UNUSED)
{
return virGetHostname();
}

View File

@ -914,12 +914,6 @@ vboxSocketParseAddrUtf16(vboxGlobalData *data, const PRUnichar *utf16,
return result; return result;
} }
static char *vboxConnectGetHostname(virConnectPtr conn ATTRIBUTE_UNUSED)
{
return virGetHostname();
}
static int vboxConnectIsSecure(virConnectPtr conn ATTRIBUTE_UNUSED) static int vboxConnectIsSecure(virConnectPtr conn ATTRIBUTE_UNUSED)
{ {
/* Driver is using local, non-network based transport */ /* Driver is using local, non-network based transport */

View File

@ -221,6 +221,7 @@ virDrvOpenStatus vboxConnectOpen(virConnectPtr conn,
int vboxConnectClose(virConnectPtr conn); int vboxConnectClose(virConnectPtr conn);
int vboxDomainSave(virDomainPtr dom, const char *path); int vboxDomainSave(virDomainPtr dom, const char *path);
int vboxConnectGetVersion(virConnectPtr conn, unsigned long *version); int vboxConnectGetVersion(virConnectPtr conn, unsigned long *version);
char *vboxConnectGetHostname(virConnectPtr conn);
/* Version specified functions for installing uniformed API */ /* Version specified functions for installing uniformed API */
void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);