Changeset 71581 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Mar 30, 2018 10:38:27 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MachineImplMoveVM.h
r71053 r71581 37 37 typedef struct 38 38 { 39 bool fSnapshot; 39 40 Utf8Str strBaseName; 40 41 ComPtr<IMedium> pMedium; 41 42 uint32_t uIdx; 42 43 ULONG uWeight; 43 bool fSnapshot; 44 } MEDIUMTASK; 44 } MEDIUMTASKMOVE; 45 45 46 46 typedef struct 47 47 { 48 RTCList<MEDIUMTASK > chain;48 RTCList<MEDIUMTASKMOVE> chain; 49 49 DeviceType_T devType; 50 50 bool fCreateDiffs; 51 51 bool fAttachLinked; 52 } MEDIUMTASKCHAIN ;52 } MEDIUMTASKCHAINMOVE; 53 53 54 54 typedef struct … … 57 57 Utf8Str strSaveStateFile; 58 58 ULONG uWeight; 59 } SAVESTATETASK ;59 } SAVESTATETASKMOVE; 60 60 61 61 struct fileList_t; … … 87 87 static void i_MoveVMThreadTask(MachineMoveVM* task); 88 88 89 RTCList<MEDIUMTASKCHAIN > llMedias;90 RTCList<SAVESTATETASK > llSaveStateFiles;91 std::map<Utf8Str, MEDIUMTASK > finalMediumsMap;92 std::map<Utf8Str, SAVESTATETASK > finalSaveStateFilesMap;89 RTCList<MEDIUMTASKCHAINMOVE> llMedias; 90 RTCList<SAVESTATETASKMOVE> llSaveStateFiles; 91 std::map<Utf8Str, MEDIUMTASKMOVE> finalMediumsMap; 92 std::map<Utf8Str, SAVESTATETASKMOVE> finalSaveStateFilesMap; 93 93 std::map<VBoxFolder_t, Utf8Str> vmFolders; 94 94 … … 111 111 inline HRESULT queryBaseName(const ComPtr<IMedium> &pMedium, Utf8Str &strBaseName) const; 112 112 HRESULT queryMediasForAllStates(const std::vector<ComObjPtr<Machine> > &aMachineList); 113 void updateProgressStats(MEDIUMTASKCHAIN &mtc, ULONG &uCount, ULONG &uTotalWeight) const;113 void updateProgressStats(MEDIUMTASKCHAINMOVE &mtc, ULONG &uCount, ULONG &uTotalWeight) const; 114 114 HRESULT addSaveState(const ComObjPtr<Machine> &machine); 115 115 void printStateFile(settings::SnapshotsList &snl); … … 117 117 HRESULT getFolderSize(const Utf8Str& strRootFolder, uint64_t& size); 118 118 HRESULT deleteFiles(const RTCList<Utf8Str>& listOfFiles); 119 HRESULT updatePathsToStateFiles(const std::map<Utf8Str, SAVESTATETASK >& listOfFiles,119 HRESULT updatePathsToStateFiles(const std::map<Utf8Str, SAVESTATETASKMOVE>& listOfFiles, 120 120 const Utf8Str& sourcePath, const Utf8Str& targetPath); 121 HRESULT moveAllDisks(const std::map<Utf8Str, MEDIUMTASK >& listOfDisks, const Utf8Str* strTargetFolder = NULL);122 HRESULT restoreAllDisks(const std::map<Utf8Str, MEDIUMTASK >& listOfDisks);121 HRESULT moveAllDisks(const std::map<Utf8Str, MEDIUMTASKMOVE>& listOfDisks, const Utf8Str* strTargetFolder = NULL); 122 HRESULT restoreAllDisks(const std::map<Utf8Str, MEDIUMTASKMOVE>& listOfDisks); 123 123 bool isMediumTypeSupportedForMoving(const ComPtr<IMedium> &pMedium); 124 124 };
Note:
See TracChangeset
for help on using the changeset viewer.