static int testConnectClose(virConnectPtr conn);
-static void testDomainEventQueue(testConnPtr driver,
+static void testObjectEventQueue(testConnPtr driver,
virObjectEventPtr event);
if (dom)
virObjectUnlock(dom);
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
virDomainDefFree(def);
testDriverUnlock(privconn);
return ret;
if (privdom)
virObjectUnlock(privdom);
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
return ret;
}
virObjectUnlock(privdom);
if (event) {
testDriverLock(privconn);
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
}
return ret;
if (event) {
testDriverLock(privconn);
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
}
return ret;
if (privdom)
virObjectUnlock(privdom);
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
return ret;
}
if (privdom)
virObjectUnlock(privdom);
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
return ret;
}
if (privdom)
virObjectUnlock(privdom);
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
return ret;
}
if (dom)
virObjectUnlock(dom);
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
return ret;
}
if (privdom)
virObjectUnlock(privdom);
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
return ret;
}
if (dom)
virObjectUnlock(dom);
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
return ret;
}
if (privdom)
virObjectUnlock(privdom);
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
return ret;
}
if (privdom)
virObjectUnlock(privdom);
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
return ret;
}
/* driver must be locked before calling */
-static void testDomainEventQueue(testConnPtr driver,
+static void testObjectEventQueue(testConnPtr driver,
virObjectEventPtr event)
{
virObjectEventStateQueue(driver->domainEventState, event);
virObjectUnlock(vm);
if (event) {
testDriverLock(privconn);
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
}
}
if (event) {
testDriverLock(privconn);
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
testDriverUnlock(privconn);
}
virDomainSnapshotDefFree(def);
VIR_DOMAIN_EVENT_STOPPED,
VIR_DOMAIN_EVENT_STOPPED_FROM_SNAPSHOT);
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
goto load;
}
bool paused = (flags & VIR_DOMAIN_SNAPSHOT_REVERT_PAUSED) != 0;
if (event)
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
event = virDomainEventLifecycleNewFromObj(vm,
VIR_DOMAIN_EVENT_STARTED,
VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOT);
ret = 0;
cleanup:
if (event) {
- testDomainEventQueue(privconn, event);
+ testObjectEventQueue(privconn, event);
if (event2)
- testDomainEventQueue(privconn, event2);
+ testObjectEventQueue(privconn, event2);
} else {
virObjectUnref(event2);
}