Changeset 102113 in vbox
- Timestamp:
- Nov 15, 2023 4:23:52 PM (14 months ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r102101 r102113 12723 12723 name="IPlatformProperties" 12724 12724 extends="$unknown" 12725 uuid=" 25cf8416-1e5b-4d01-ae9d-1dc34ef737c8"12725 uuid="45def725-ab32-4a0a-a85e-fae56249d547" 12726 12726 wsmap="managed" 12727 12727 rest="managed" … … 12841 12841 Returns an array of officially supported values for enum <link to="AudioControllerType"/>, 12842 12842 in the sense of what is e.g. worth offering in the VirtualBox GUI. 12843 </desc> 12844 </attribute> 12845 12846 <attribute name="supportedBootDevices" type="DeviceType" safearray="yes" readonly="yes"> 12847 <desc> 12848 Returns an array of officially supported boot devices for enum <link to="DeviceType"/>, 12849 in the sense of what is e.g. worth offering in the VirtualBox GUI. 12850 12851 The returned array also defines the default boot device order for all supported devices. 12843 12852 </desc> 12844 12853 </attribute> -
trunk/src/VBox/Main/include/PlatformPropertiesImpl.h
r101756 r102113 86 86 HRESULT getSupportedUSBControllerTypes(std::vector<USBControllerType_T> &aSupportedUSBControllerTypes) RT_OVERRIDE; 87 87 HRESULT getSupportedAudioControllerTypes(std::vector<AudioControllerType_T> &aSupportedAudioControllerTypes) RT_OVERRIDE; 88 HRESULT getSupportedBootDevices(std::vector<DeviceType_T> &aSupportedBootDevices); 88 89 HRESULT getSupportedStorageBuses(std::vector<StorageBus_T> &aSupportedStorageBuses) RT_OVERRIDE; 89 90 HRESULT getSupportedStorageControllerTypes(std::vector<StorageControllerType_T> &aSupportedStorageControllerTypes) RT_OVERRIDE; -
trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp
r101756 r102113 859 859 } 860 860 861 HRESULT PlatformProperties::getSupportedBootDevices(std::vector<DeviceType_T> &aSupportedBootDevices) 862 { 863 /* Note: This function returns the supported boot devices for the given architecture, 864 in the default order, to keep it simple for the caller. */ 865 866 switch (mPlatformArchitecture) 867 { 868 case PlatformArchitecture_x86: 869 { 870 static const DeviceType_T aBootDevices[] = 871 { 872 DeviceType_Floppy, 873 DeviceType_DVD, 874 DeviceType_HardDisk, 875 DeviceType_Network 876 }; 877 aSupportedBootDevices.assign(aBootDevices, 878 aBootDevices + RT_ELEMENTS(aBootDevices)); 879 break; 880 } 881 882 case PlatformArchitecture_ARM: 883 { 884 static const DeviceType_T aBootDevices[] = 885 { 886 DeviceType_DVD, 887 DeviceType_HardDisk 888 /** @todo BUGBUG We need to test network booting via PXE on ARM first! */ 889 }; 890 aSupportedBootDevices.assign(aBootDevices, 891 aBootDevices + RT_ELEMENTS(aBootDevices)); 892 break; 893 } 894 895 default: 896 AssertFailedStmt(aSupportedBootDevices.clear()); 897 break; 898 } 899 900 return S_OK; 901 } 902 861 903 HRESULT PlatformProperties::getSupportedStorageBuses(std::vector<StorageBus_T> &aSupportedStorageBuses) 862 904 {
Note:
See TracChangeset
for help on using the changeset viewer.