void virLXCProcessAutostartAll(virLXCDriverPtr driver) { /* XXX: Figure out a better way todo this. The domain * startup code needs a connection handle in order * to lookup the bridge associated with a virtual * network */ virConnectPtr conn = virConnectOpen("lxc:///"); /* Ignoring NULL conn which is mostly harmless here */ struct virLXCProcessAutostartData data = { driver, conn }; lxcDriverLock(driver); virDomainObjListForEach(driver->domains, virLXCProcessAutostartDomain, &data); lxcDriverUnlock(driver); if (conn) virConnectClose(conn); }
int virLXCProcessReconnectAll(virLXCDriverPtr driver, virDomainObjListPtr doms) { virDomainObjListForEach(doms, virLXCProcessReconnectDomain, driver); return 0; }
static void vmwareDomainObjListUpdateAll(virDomainObjListPtr doms, struct vmware_driver *driver) { virDomainObjListForEach(doms, vmwareDomainObjListUpdateDomain, driver); }