Changeset 25195 in vbox
- Timestamp:
- Dec 4, 2009 4:06:08 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55675
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/USBControllerImpl.cpp
r25194 r25195 47 47 typedef std::list< ComObjPtr<USBDeviceFilter> > DeviceFilterList; 48 48 49 struct BackupableUSBData 50 { 51 BackupableUSBData() 52 : fEnabled(false), 53 fEnabledEHCI(false) 54 { } 55 56 bool operator==(const BackupableUSBData &that) const 57 { 58 return this == &that || (fEnabled == that.fEnabled && fEnabledEHCI == that.fEnabledEHCI); 59 } 60 61 BOOL fEnabled; 62 BOOL fEnabledEHCI; 63 }; 64 49 65 struct USBController::Data 50 66 { 51 struct BackupableData 52 { 53 /* Constructor. */ 54 BackupableData() 55 : fEnabled(false), 56 fEnabledEHCI(false) 57 { } 58 59 bool operator==(const BackupableData &that) const 60 { 61 return this == &that || (fEnabled == that.fEnabled && fEnabledEHCI == that.fEnabledEHCI); 62 } 63 64 bool fEnabled; 65 bool fEnabledEHCI; 66 }; 67 Data() {}; 68 ~Data() {}; 67 69 68 70 /** Parent object. */ … … 71 73 const ComObjPtr<USBController> pPeer; 72 74 73 Backupable<Backupable Data>bd;75 Backupable<BackupableUSBData> bd; 74 76 #ifdef VBOX_WITH_USB 75 77 // the following fields need special backup/rollback/commit handling,
Note:
See TracChangeset
for help on using the changeset viewer.