diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index f4f0d6d84a514e3d6b778ed3a2ef7c14c107dec0..585e6b5382bc3adb0bec75271809fe05c24a8379 100644 --- a/src/vbox/vbox_common.c +++ b/src/vbox/vbox_common.c @@ -417,3 +417,8 @@ int vboxConnectGetVersion(virConnectPtr conn, unsigned long *version) return 0; } + +char *vboxConnectGetHostname(virConnectPtr conn ATTRIBUTE_UNUSED) +{ + return virGetHostname(); +} diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c index d7f743d5ffc2d362cc6694f83a16c8050660adac..f305a94766a872b2eb864c92b4143f75d3489af1 100644 --- a/src/vbox/vbox_tmpl.c +++ b/src/vbox/vbox_tmpl.c @@ -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 */ diff --git a/src/vbox/vbox_uniformed_api.h b/src/vbox/vbox_uniformed_api.h index 5bb2e6522d6150ad0fee1c1e1dc772f59100c069..f56fe7ac51fd782189bcc6e6f5397b942a76520a 100644 --- a/src/vbox/vbox_uniformed_api.h +++ b/src/vbox/vbox_uniformed_api.h @@ -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);