Changeset 24563 in vbox for trunk/src/VBox/Main
- Timestamp:
- Nov 10, 2009 7:07:00 PM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MediumImpl.cpp
r24509 r24563 2869 2869 2870 2870 return &ref.llSnapshotIds.front(); 2871 }2872 2873 /**2874 * Internal method to check whether the medium is attached to the given machine. Must have caller + locking!2875 * @return2876 */2877 bool Medium::isAttachedTo(const Guid &aMachineId)2878 {2879 BackRefList::iterator it =2880 std::find_if(m->backRefs.begin(), m->backRefs.end(),2881 BackRef::EqualsTo(aMachineId));2882 return it != m->backRefs.end() && it->fInCurState;2883 2871 } 2884 2872 -
trunk/src/VBox/Main/include/MediumImpl.h
r24345 r24563 176 176 const Guid* getFirstMachineBackrefSnapshotId() const; 177 177 178 bool isAttachedTo(const Guid &aMachineId);179 180 178 /** 181 179 * Shortcut to VirtualBoxBaseWithTypedChildrenNEXT::dependentChildren().
Note:
See TracChangeset
for help on using the changeset viewer.