mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
vbox: Rewrite vboxConnectGetHostname
This commit is contained in:
parent
6e906ffa91
commit
86142d8e9a
@ -417,3 +417,8 @@ int vboxConnectGetVersion(virConnectPtr conn, unsigned long *version)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
char *vboxConnectGetHostname(virConnectPtr conn ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return virGetHostname();
|
||||
}
|
||||
|
@ -914,12 +914,6 @@ vboxSocketParseAddrUtf16(vboxGlobalData *data, const PRUnichar *utf16,
|
||||
return result;
|
||||
}
|
||||
|
||||
static char *vboxConnectGetHostname(virConnectPtr conn ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return virGetHostname();
|
||||
}
|
||||
|
||||
|
||||
static int vboxConnectIsSecure(virConnectPtr conn ATTRIBUTE_UNUSED)
|
||||
{
|
||||
/* Driver is using local, non-network based transport */
|
||||
|
@ -221,6 +221,7 @@ virDrvOpenStatus vboxConnectOpen(virConnectPtr conn,
|
||||
int vboxConnectClose(virConnectPtr conn);
|
||||
int vboxDomainSave(virDomainPtr dom, const char *path);
|
||||
int vboxConnectGetVersion(virConnectPtr conn, unsigned long *version);
|
||||
char *vboxConnectGetHostname(virConnectPtr conn);
|
||||
|
||||
/* Version specified functions for installing uniformed API */
|
||||
void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
|
Loading…
Reference in New Issue
Block a user