Lines Matching defs:snap
3816 * @param snap
3822 Snapshot &snap)
3831 parseUUID(snap.uuid, strTemp);
3832 bool foundCurrentSnapshot = (snap.uuid == curSnapshotUuid);
3834 if (!elmSnapshot.getAttributeValue("name", snap.strName))
3838 elmSnapshot.getAttributeValue("Description", snap.strDescription);
3842 parseTimestamp(snap.timestamp, strTemp);
3844 elmSnapshot.getAttributeValuePath("stateFile", snap.strStateFile); // online snapshots only
3850 readHardware(*pelmHardware, snap.hardware, snap.storage);
3857 snap.strDescription = pelmSnapshotChild->getValue();
3860 readHardDiskAttachments_pre1_7(*pelmSnapshotChild, snap.storage);
3863 readStorageControllers(*pelmSnapshotChild, snap.storage);
3875 snap.llChildSnapshots.push_back(g_SnapshotEmpty);
3876 bool found = readSnapshot(curSnapshotUuid, depth + 1, *pelmChildSnapshot, snap.llChildSnapshots.back());
3886 readDVDAndFloppies_pre1_9(*pelmHardware, snap.storage);
3888 readDebugging(elmSnapshot.findChildElement("Debugging"), &snap.debugging);
3889 readAutostart(elmSnapshot.findChildElement("Autostart"), &snap.autostart);
4016 Snapshot snap;
4018 foundCurrentSnapshot = readSnapshot(uuidCurrentSnapshot, 1, *pelmMachineChild, snap);
4021 llFirstSnapshot.push_back(snap);
5193 * @param snap
5197 const Snapshot &snap)
5204 pelmSnapshot->setAttribute("uuid", snap.uuid.toStringCurly());
5205 pelmSnapshot->setAttribute("name", snap.strName);
5206 pelmSnapshot->setAttribute("timeStamp", stringifyTimestamp(snap.timestamp));
5208 if (snap.strStateFile.length())
5209 pelmSnapshot->setAttributePath("stateFile", snap.strStateFile);
5211 if (snap.strDescription.length())
5212 pelmSnapshot->createChild("Description")->addContent(snap.strDescription);
5214 buildHardwareXML(*pelmSnapshot, snap.hardware, snap.storage);
5216 snap.storage,
5221 buildDebuggingXML(pelmSnapshot, &snap.debugging);
5222 buildAutostartXML(pelmSnapshot, &snap.autostart);
5225 if (snap.llChildSnapshots.size())
5228 for (SnapshotsList::const_iterator it = snap.llChildSnapshots.begin();
5229 it != snap.llChildSnapshots.end();