Changeset 23914 in vbox for trunk/src/VBox/Main/include/MediumAttachmentImpl.h
- Timestamp:
- Oct 20, 2009 4:31:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MediumAttachmentImpl.h
r23880 r23914 54 54 HRESULT init(Machine *aParent, 55 55 Medium *aMedium, 56 StorageController *aController,56 const Bstr &aControllerName, 57 57 LONG aPort, 58 58 LONG aDevice, … … 83 83 84 84 const ComObjPtr<Medium> &medium() const { return m->medium; } 85 const ComObjPtr<StorageController> &controller() const { return m->controller; }85 Bstr controllerName() const { return m->controllerName; } 86 86 LONG port() const { return m->port; } 87 87 LONG device() const { return m->device; } … … 89 89 bool passthrough() const { AutoReadLock lock(this); return m->passthrough; } 90 90 91 bool matches(CBSTR aController , LONG aPort, LONG aDevice)91 bool matches(CBSTR aControllerName, LONG aPort, LONG aDevice) 92 92 { 93 return ( aController == m->controller->name()93 return ( aControllerName == m->controllerName 94 94 && aPort == m->port 95 95 && aDevice == m->device); … … 125 125 126 126 ComObjPtr<Medium> medium; 127 ComObjPtr<StorageController> controller; 127 /* Since MediumAttachment is not a first class citizen when it 128 * comes to managing settings, having a reference to the storage 129 * controller will not work - when settings are changed it will point 130 * to the old, uninitialized instance. Changing this requires 131 * substantial changes to MediumImpl.cpp. */ 132 Bstr controllerName; 128 133 const LONG port; 129 134 const LONG device;
Note:
See TracChangeset
for help on using the changeset viewer.