Changeset 24250 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Nov 2, 2009 1:00:58 PM (15 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleImpl.h
r23879 r24250 443 443 const char *pszFormat, bool fPassthrough); 444 444 const char *controllerTypeToDev(StorageControllerType_T enmCtrlType); 445 void controllerDevToBool(const char *pszCtrlDev, bool *afBool); 445 446 HRESULT convertBusPortDeviceToLun(StorageBus_T enmBus, LONG port, LONG device, unsigned &uLun); 446 447 HRESULT doMediumChange(IMediumAttachment *aMediumAttachment); -
trunk/src/VBox/Main/include/MachineImpl.h
r24196 r24250 617 617 STDMETHOD(RemoveStorageController(IN_BSTR aName)); 618 618 STDMETHOD(GetStorageControllerByName(IN_BSTR aName, IStorageController **storageController)); 619 STDMETHOD(GetStorageControllerByInstance(ULONG aInstance, IStorageController **storageController)); 619 620 STDMETHOD(COMGETTER(FirmwareType)) (FirmwareType_T *aFirmware); 620 621 STDMETHOD(COMSETTER(FirmwareType)) (FirmwareType_T aFirmware); -
trunk/src/VBox/Main/include/StorageControllerImpl.h
r23223 r24250 44 44 Data() : mStorageBus (StorageBus_IDE), 45 45 mStorageControllerType (StorageControllerType_PIIX4), 46 mInstance (0), 46 47 mPortCount (2), 47 48 mPortIde0Master (0), … … 68 69 /** Type of the Storage controller. */ 69 70 StorageControllerType_T mStorageControllerType; 71 /** Instance number of the storage controller. */ 72 ULONG mInstance; 70 73 /** Number of usable ports. */ 71 74 ULONG mPortCount; … … 104 107 HRESULT init(Machine *aParent, 105 108 const Utf8Str &aName, 106 StorageBus_T aBus); 109 StorageBus_T aBus, 110 ULONG aInstance); 107 111 HRESULT init(Machine *aParent, 108 112 StorageController *aThat, … … 134 138 StorageControllerType_T controllerType() const { return mData->mStorageControllerType; } 135 139 StorageBus_T storageBus() const { return mData->mStorageBus; } 140 ULONG instance() const { return mData->mInstance; } 136 141 137 142 bool isModified() { AutoWriteLock alock (this); return mData.isBackedUp(); } … … 164 169 /** Data. */ 165 170 Backupable<Data> mData; 166 167 /* Instance number of the device in the running VM. */168 ULONG mInstance;169 171 }; 170 172
Note:
See TracChangeset
for help on using the changeset viewer.