Changeset 48297 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Sep 5, 2013 9:57:44 AM (11 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleImpl.h
r48054 r48297 230 230 HRESULT onlineMergeMedium(IMediumAttachment *aMediumAttachment, 231 231 ULONG aSourceIdx, ULONG aTargetIdx, 232 IMedium *aSource, IMedium *aTarget,233 BOOL aMergeForward, IMedium *aParentForTarget,234 ComSafeArrayIn(IMedium *, aChildrenToReparent),235 232 IProgress *aProgress); 236 233 VMMDev *getVMMDev() { return m_pVMMDev; } -
trunk/src/VBox/Main/include/MachineImpl.h
r47991 r48297 1070 1070 IN_BSTR aEndID, BOOL fDeleteAllChildren, 1071 1071 MachineState_T *aMachineState, IProgress **aProgress); 1072 STDMETHOD(FinishOnlineMergeMedium)(IMediumAttachment *aMediumAttachment, 1073 IMedium *aSource, IMedium *aTarget, 1074 BOOL fMergeForward, 1075 IMedium *pParentForTarget, 1076 ComSafeArrayIn(IMedium *, aChildrenToReparent)); 1072 STDMETHOD(FinishOnlineMergeMedium)(); 1077 1073 STDMETHOD(RestoreSnapshot)(IConsole *aInitiator, 1078 1074 ISnapshot *aSnapshot, … … 1143 1139 { 1144 1140 ConsoleTaskData() 1145 : mLastState(MachineState_Null) 1141 : mLastState(MachineState_Null), mDeleteSnapshotInfo(NULL) 1146 1142 { } 1147 1143 … … 1151 1147 // used when taking snapshot 1152 1148 ComObjPtr<Snapshot> mSnapshot; 1149 1150 // used when deleting online snapshot 1151 void *mDeleteSnapshotInfo; 1153 1152 1154 1153 // used when saving state (either as part of a snapshot or separate) … … 1185 1184 bool &fMergeForward, 1186 1185 ComObjPtr<Medium> &pParentForTarget, 1187 Medi aList&aChildrenToReparent,1186 MediumLockList * &aChildrenToReparent, 1188 1187 bool &fNeedOnlineMerge, 1189 MediumLockList * &aMediumLockList); 1188 MediumLockList * &aMediumLockList, 1189 ComPtr<IToken> &aHDLockToken); 1190 1190 void cancelDeleteSnapshotMedium(const ComObjPtr<Medium> &aHD, 1191 1191 const ComObjPtr<Medium> &aSource, 1192 const MediaList &aChildrenToReparent,1192 MediumLockList *aChildrenToReparent, 1193 1193 bool fNeedsOnlineMerge, 1194 1194 MediumLockList *aMediumLockList, 1195 const ComPtr<IToken> &aHDLockToken, 1195 1196 const Guid &aMediumId, 1196 1197 const Guid &aSnapshotId); … … 1200 1201 bool fMergeForward, 1201 1202 const ComObjPtr<Medium> &pParentForTarget, 1202 const MediaList &aChildrenToReparent,1203 MediumLockList *aChildrenToReparent, 1203 1204 MediumLockList *aMediumLockList, 1204 1205 ComObjPtr<Progress> &aProgress, -
trunk/src/VBox/Main/include/MediumImpl.h
r44528 r48297 132 132 STDMETHOD(GetSnapshotIds)(IN_BSTR aMachineId, 133 133 ComSafeArrayOut(BSTR, aSnapshotIds)); 134 STDMETHOD(LockRead)(MediumState_T *aState); 135 STDMETHOD(UnlockRead)(MediumState_T *aState); 136 STDMETHOD(LockWrite)(MediumState_T *aState); 137 STDMETHOD(UnlockWrite)(MediumState_T *aState); 134 STDMETHOD(LockRead)(IToken **aToken); 135 STDMETHOD(LockWrite)(IToken **aToken); 138 136 STDMETHOD(Close)(); 139 137 STDMETHOD(GetProperty)(IN_BSTR aName, BSTR *aValue); … … 226 224 227 225 HRESULT close(AutoCaller &autoCaller); 226 HRESULT unlockRead(MediumState_T *aState); 227 HRESULT unlockWrite(MediumState_T *aState); 228 228 HRESULT deleteStorage(ComObjPtr<Progress> *aProgress, bool aWait); 229 229 HRESULT markForDeletion(); … … 241 241 bool &fMergeForward, 242 242 ComObjPtr<Medium> &pParentForTarget, 243 Medi aList&aChildrenToReparent,243 MediumLockList * &aChildrenToReparent, 244 244 MediumLockList * &aMediumLockList); 245 245 HRESULT mergeTo(const ComObjPtr<Medium> &pTarget, 246 246 bool fMergeForward, 247 247 const ComObjPtr<Medium> &pParentForTarget, 248 const MediaList &aChildrenToReparent,248 MediumLockList *aChildrenToReparent, 249 249 MediumLockList *aMediumLockList, 250 250 ComObjPtr<Progress> *aProgress, 251 251 bool aWait); 252 void cancelMergeTo( const MediaList &aChildrenToReparent,252 void cancelMergeTo(MediumLockList *aChildrenToReparent, 253 253 MediumLockList *aMediumLockList); 254 254 255 HRESULT fixParentUuidOfChildren( const MediaList &childrenToReparent);255 HRESULT fixParentUuidOfChildren(MediumLockList *pChildrenToReparent); 256 256 257 257 HRESULT exportFile(const char *aFilename, -
trunk/src/VBox/Main/include/MediumLock.h
r44529 r48297 7 7 8 8 /* 9 * Copyright (C) 2010-201 2Oracle Corporation9 * Copyright (C) 2010-2013 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 90 90 91 91 /** 92 * Check if this medium object has been locked by this MediumLock. 93 */ 94 bool IsLocked() const; 95 96 /** 92 97 * Acquire a medium lock. 93 98 * 94 99 * @return COM status code 95 */ 96 HRESULT Lock(); 100 * @param aIgnoreLockedMedia If set ignore all media which is already 101 * locked in an incompatible way. 102 */ 103 HRESULT Lock(bool aIgnoreLockedMedia = false); 97 104 98 105 /** … … 105 112 private: 106 113 ComObjPtr<Medium> mMedium; 114 ComPtr<IToken> mToken; 107 115 AutoCaller mMediumCaller; 108 116 bool mLockWrite; … … 208 216 * 209 217 * @return COM status code 210 */ 211 HRESULT Lock(); 218 * @param aSkipOverLockedMedia If set ignore all media which is already 219 * locked for reading or writing. For callers 220 * which need to know which medium objects 221 * have been locked by this lock list you 222 * can iterate over the list and check the 223 * MediumLock state. 224 */ 225 HRESULT Lock(bool aSkipOverLockedMedia = false); 212 226 213 227 /** -
trunk/src/VBox/Main/include/SessionImpl.h
r48282 r48297 103 103 STDMETHOD(OnlineMergeMedium)(IMediumAttachment *aMediumAttachment, 104 104 ULONG aSourceIdx, ULONG aTargetIdx, 105 IMedium *aSource, IMedium *aTarget,106 BOOL aMergeForward, IMedium *aParentForTarget,107 ComSafeArrayIn(IMedium *, aChildrenToReparent),108 105 IProgress *aProgress); 109 106 STDMETHOD(EnableVMMStatistics)(BOOL aEnable); -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r47561 r48297 311 311 AutostartDb* getAutostartDb() const; 312 312 313 RWLockHandle& getMachinesListLockHandle(); 313 314 RWLockHandle& getMediaTreeLockHandle(); 314 315
Note:
See TracChangeset
for help on using the changeset viewer.