Changeset 41371 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- May 21, 2012 3:23:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r41225 r41371 202 202 mPointingHidType = PointingHidType_PS2Mouse; 203 203 mChipsetType = ChipsetType_PIIX3; 204 mEmulatedUSBCardReaderEnabled = FALSE; 204 205 205 206 for (size_t i = 0; i < RT_ELEMENTS(mCPUAttached); i++) … … 1526 1527 STDMETHODIMP Machine::COMGETTER(EmulatedUSBCardReaderEnabled)(BOOL *enabled) 1527 1528 { 1529 #ifdef VBOX_WITH_USB_CARDREADER 1530 CheckComArgOutPointerValid(enabled); 1531 1532 AutoCaller autoCaller(this); 1533 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1534 1535 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1536 1537 *enabled = mHWData->mEmulatedUSBCardReaderEnabled; 1538 1539 return S_OK; 1540 #else 1528 1541 NOREF(enabled); 1529 1542 return E_NOTIMPL; 1543 #endif 1530 1544 } 1531 1545 1532 1546 STDMETHODIMP Machine::COMSETTER(EmulatedUSBCardReaderEnabled)(BOOL enabled) 1533 1547 { 1548 #ifdef VBOX_WITH_USB_CARDREADER 1549 AutoCaller autoCaller(this); 1550 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1551 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1552 1553 int rc = checkStateDependency(MutableStateDep); 1554 if (FAILED(rc)) return rc; 1555 1556 setModified(IsModified_MachineData); 1557 mHWData.backup(); 1558 mHWData->mEmulatedUSBCardReaderEnabled = enabled; 1559 1560 return S_OK; 1561 #else 1534 1562 NOREF(enabled); 1535 1563 return E_NOTIMPL; 1564 #endif 1536 1565 } 1537 1566 … … 8077 8106 mHWData->mKeyboardHidType = data.keyboardHidType; 8078 8107 mHWData->mChipsetType = data.chipsetType; 8108 mHWData->mEmulatedUSBCardReaderEnabled = data.fEmulatedUSBCardReader; 8079 8109 mHWData->mHpetEnabled = data.fHpetEnabled; 8080 8110 … … 9211 9241 // chipset 9212 9242 data.chipsetType = mHWData->mChipsetType; 9243 9244 data.fEmulatedUSBCardReader = !!mHWData->mEmulatedUSBCardReaderEnabled; 9213 9245 9214 9246 // HPET
Note:
See TracChangeset
for help on using the changeset viewer.