mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +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;
|
||||
|
||||
VIR_DEBUG("network initialized");
|
||||
/* conn->networkPrivateData = some network specific data */
|
||||
|
||||
return VIR_DRV_OPEN_SUCCESS;
|
||||
|
||||
cleanup:
|
||||
return VIR_DRV_OPEN_DECLINED;
|
||||
}
|
||||
|
||||
static int vboxNetworkClose(virConnectPtr conn)
|
||||
static int vboxNetworkClose(virConnectPtr conn ATTRIBUTE_UNUSED)
|
||||
{
|
||||
VIR_DEBUG("network uninitialized");
|
||||
conn->networkPrivateData = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -58,14 +58,14 @@ vboxStorageOpen(virConnectPtr conn,
|
||||
return VIR_DRV_OPEN_ERROR;
|
||||
|
||||
VIR_DEBUG("vbox storage initialized");
|
||||
/* conn->storagePrivateData = some storage specific data */
|
||||
|
||||
return VIR_DRV_OPEN_SUCCESS;
|
||||
}
|
||||
|
||||
static int vboxStorageClose(virConnectPtr conn)
|
||||
static int vboxStorageClose(virConnectPtr conn ATTRIBUTE_UNUSED)
|
||||
{
|
||||
VIR_DEBUG("vbox storage uninitialized");
|
||||
conn->storagePrivateData = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user