mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
bhyveProcessAutoDestroy: Use 'driver' from VM private data
Access the 'driver' struct from the private data rather than the passed opaque pointer in preparation to remove the opaque pointer. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
2cada2c31c
commit
e90301134c
@ -57,9 +57,10 @@ VIR_LOG_INIT("bhyve.bhyve_process");
|
|||||||
static void
|
static void
|
||||||
bhyveProcessAutoDestroy(virDomainObj *vm,
|
bhyveProcessAutoDestroy(virDomainObj *vm,
|
||||||
virConnectPtr conn G_GNUC_UNUSED,
|
virConnectPtr conn G_GNUC_UNUSED,
|
||||||
void *opaque)
|
void *opaque G_GNUC_UNUSED)
|
||||||
{
|
{
|
||||||
struct _bhyveConn *driver = opaque;
|
bhyveDomainObjPrivate *priv = vm->privateData;
|
||||||
|
struct _bhyveConn *driver = priv->driver;
|
||||||
|
|
||||||
virBhyveProcessStop(driver, vm, VIR_DOMAIN_SHUTOFF_DESTROYED);
|
virBhyveProcessStop(driver, vm, VIR_DOMAIN_SHUTOFF_DESTROYED);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user