mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
Remove use of storagePrivateData/networkPrivateData from vbox
The vbox driver can use the main hypervisor private data and so does not need to use the storage/network private data fields.
This commit is contained in:
parent
7b1ba9566b
commit
47b7f661a4
@ -102,17 +102,17 @@ vboxNetworkOpen(virConnectPtr conn,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
VIR_DEBUG("network initialized");
|
VIR_DEBUG("network initialized");
|
||||||
/* conn->networkPrivateData = some network specific data */
|
|
||||||
return VIR_DRV_OPEN_SUCCESS;
|
return VIR_DRV_OPEN_SUCCESS;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int vboxNetworkClose(virConnectPtr conn)
|
static int vboxNetworkClose(virConnectPtr conn ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("network uninitialized");
|
VIR_DEBUG("network uninitialized");
|
||||||
conn->networkPrivateData = NULL;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,14 +58,14 @@ vboxStorageOpen(virConnectPtr conn,
|
|||||||
return VIR_DRV_OPEN_ERROR;
|
return VIR_DRV_OPEN_ERROR;
|
||||||
|
|
||||||
VIR_DEBUG("vbox storage initialized");
|
VIR_DEBUG("vbox storage initialized");
|
||||||
/* conn->storagePrivateData = some storage specific data */
|
|
||||||
return VIR_DRV_OPEN_SUCCESS;
|
return VIR_DRV_OPEN_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int vboxStorageClose(virConnectPtr conn)
|
static int vboxStorageClose(virConnectPtr conn ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("vbox storage uninitialized");
|
VIR_DEBUG("vbox storage uninitialized");
|
||||||
conn->storagePrivateData = NULL;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user