儲存庫 vbox 的更動 49760
- 時間撮記:
- 2013-12-3 下午05:57:11 (11 年 以前)
- 位置:
- trunk/src/VBox/Main
- 檔案:
-
- 修改 3 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/include/ApplianceImpl.h
r49749 r49760 88 88 /* private instance data */ 89 89 private: 90 /** weak VirtualBox parent */91 90 // wrapped IAppliance properties 92 91 HRESULT getPath(com::Utf8Str &aPath); … … 109 108 HRESULT getWarnings(std::vector<com::Utf8Str> &aWarnings); 110 109 111 110 /** weak VirtualBox parent */ 112 111 VirtualBox* const mVirtualBox; 113 112 -
trunk/src/VBox/Main/src-server/ApplianceImpl.cpp
r49742 r49760 1508 1508 void VirtualSystemDescription::i_removeByType(VirtualSystemDescriptionType_T aType) 1509 1509 { 1510 for (std::vector<VirtualSystemDescriptionEntry>::iterator it = m->maDescriptions.begin(); it != m->maDescriptions.end(); ++it) 1510 std::vector<VirtualSystemDescriptionEntry>::iterator it = m->maDescriptions.begin(); 1511 while (it != m->maDescriptions.end()) 1511 1512 { 1512 1513 if (it->type == aType) 1513 1514 it = m->maDescriptions.erase(it); 1515 else 1516 ++it; 1514 1517 } 1515 1518 } -
trunk/src/VBox/Main/src-server/HostImpl.cpp
r49744 r49760 516 516 * Returns a list of host DVD drives. 517 517 * 518 * @returns COMstatus code518 * @returns status code 519 519 * @param drives address of result pointer 520 520 */ … … 524 524 AutoWriteLock alock(m->pParent->getMediaTreeLockHandle() COMMA_LOCKVAL_SRC_POS); 525 525 MediaList *pList; 526 aDVDDrives.resize(0); 526 527 HRESULT rc = i_getDrives(DeviceType_DVD, true /* fRefresh */, pList); 527 528 if (SUCCEEDED(rc)) … … 541 542 * Returns a list of host floppy drives. 542 543 * 543 * @returns COMstatus code544 * @returns status code 544 545 * @param drives address of result pointer 545 546 */ … … 549 550 550 551 MediaList *pList; 552 aFloppyDrives.resize(0); 551 553 HRESULT rc = i_getDrives(DeviceType_Floppy, true /* fRefresh */, pList); 552 554 if (SUCCEEDED(rc)) … … 610 612 * Returns a list of host network interfaces. 611 613 * 612 * @returns COMstatus code614 * @returns status code 613 615 * @param drives address of result pointer 614 616 */ 615 617 HRESULT Host::getNetworkInterfaces(std::vector<ComPtr<IHostNetworkInterface> > &aNetworkInterfaces) 616 618 { 619 aNetworkInterfaces.resize(0); 617 620 #if defined(RT_OS_WINDOWS) || defined(VBOX_WITH_NETFLT) /*|| defined(RT_OS_OS2)*/ 618 621 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 795 798 HRESULT Host::getUSBDevices(std::vector<ComPtr<IHostUSBDevice> > &aUSBDevices) 796 799 { 800 aUSBDevices.resize(0); 797 801 #ifdef VBOX_WITH_USB 798 802 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 799 aUSBDevices.resize(0);800 803 HRESULT rc = i_checkUSBProxyService(); 801 804 if (FAILED(rc)) return rc; … … 868 871 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 869 872 com::SafeArray<BSTR> resultArr; 873 aSearchStrings.resize(0); 870 874 resultArr.setNull(); 871 875 HRESULT rc = m->hostDnsMonitorProxy.GetSearchStrings(ComSafeArrayAsOutParam(resultArr)); … … 881 885 HRESULT Host::getUSBDeviceFilters(std::vector<ComPtr<IHostUSBDeviceFilter> > &aUSBDeviceFilters) 882 886 { 887 aUSBDeviceFilters.resize(0); 883 888 #ifdef VBOX_WITH_USB 884 889 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 885 aUSBDeviceFilters.resize(0);886 890 HRESULT rc = i_checkUSBProxyService(); 887 891 if (FAILED(rc)) return rc; … … 909 913 * Returns the number of installed logical processors 910 914 * 911 * @returns VBOXstatus code915 * @returns status code 912 916 * @param count address of result variable 913 917 */ … … 924 928 * Returns the number of online logical processors 925 929 * 926 * @returns COMstatus code930 * @returns status code 927 931 * @param count address of result variable 928 932 */ … … 938 942 * Returns the number of installed physical processor cores. 939 943 * 940 * @returns COMstatus code944 * @returns status code 941 945 * @param count address of result variable 942 946 */ … … 952 956 * Returns the number of installed physical processor cores. 953 957 * 954 * @returns COMstatus code958 * @returns status code 955 959 * @param count address of result variable 956 960 */ … … 966 970 * Returns the (approximate) maximum speed of the given host CPU in MHz 967 971 * 968 * @returns COMstatus code972 * @returns status code 969 973 * @param cpu id to get info for. 970 974 * @param speed address of result variable, speed is 0 if unknown or aCpuId is invalid. … … 982 986 * Returns a description string for the host CPU 983 987 * 984 * @returns COMstatus code988 * @returns status code 985 989 * @param cpu id to get info for. 986 990 * @param description address of result variable, empty string if not known or aCpuId is invalid. … … 991 995 992 996 char szCPUModel[80]; 993 szCPUModel[0] = *"\0";997 szCPUModel[0] = 0; 994 998 int vrc = RTMpGetDescription(aCpuId, szCPUModel, sizeof(szCPUModel)); 995 999 if (RT_FAILURE(vrc)) … … 1002 1006 * Returns whether a host processor feature is supported or not 1003 1007 * 1004 * @returns COMstatus code1008 * @returns status code 1005 1009 * @param Feature to query. 1006 1010 * @param address of supported bool result variable … … 1088 1092 * Returns the specific CPUID leaf. 1089 1093 * 1090 * @returns COMstatus code1094 * @returns status code 1091 1095 * @param aCpuId The CPU number. Mostly ignored. 1092 1096 * @param aLeaf The leaf number. … … 1122 1126 * Returns the amount of installed system memory in megabytes 1123 1127 * 1124 * @returns COMstatus code1128 * @returns status code 1125 1129 * @param size address of result variable 1126 1130 */ … … 1140 1144 * Returns the current system memory free space in megabytes 1141 1145 * 1142 * @returns COMstatus code1146 * @returns status code 1143 1147 * @param available address of result variable 1144 1148 */ … … 1158 1162 * Returns the name string of the host operating system 1159 1163 * 1160 * @returns COMstatus code1164 * @returns status code 1161 1165 * @param os address of result variable 1162 1166 */ … … 1176 1180 * Returns the version string of the host operating system 1177 1181 * 1178 * @returns COMstatus code1182 * @returns status code 1179 1183 * @param os address of result variable 1180 1184 */ … … 1211 1215 * Returns the current host time in milliseconds since 1970-01-01 UTC. 1212 1216 * 1213 * @returns COMstatus code1217 * @returns status code 1214 1218 * @param time address of result variable 1215 1219 */ … … 1520 1524 if (!aName.length()) 1521 1525 return E_INVALIDARG; 1522 if (!aNetworkInterface)1523 return E_POINTER;1524 1526 1525 1527 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 1558 1560 if (!aId.isValid()) 1559 1561 return E_INVALIDARG; 1560 if (!aNetworkInterface)1561 return E_POINTER;1562 1562 1563 1563 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 1592 1592 std::vector<ComPtr<IHostNetworkInterface> > &aNetworkInterfaces) 1593 1593 { 1594 aNetworkInterfaces.resize(0); 1594 1595 #ifdef VBOX_WITH_HOSTNETIF_API 1595 1596 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1596 1597 1597 int rc = i_updateNetIfList(); 1598 1598 if (RT_FAILURE(rc)) … … 1641 1641 if (address == aName) 1642 1642 { 1643 ComObjPtr<IHostUSBDevice> (devsvec[i]).queryInterfaceTo(aDevice.asOutParam()); 1644 return S_OK; 1643 return (ComObjPtr<IHostUSBDevice> (devsvec[i]).queryInterfaceTo(aDevice.asOutParam())); 1645 1644 } 1646 1645 } … … 1676 1675 if (Guid(id) == aId) 1677 1676 { 1678 ComObjPtr<IHostUSBDevice> (devsvec[i]).queryInterfaceTo(aDevice.asOutParam()); 1679 return rc; 1677 return (ComObjPtr<IHostUSBDevice> (devsvec[i]).queryInterfaceTo(aDevice.asOutParam())); 1680 1678 } 1681 1679 } … … 1701 1699 * Returns a list of host video capture devices (webcams, etc). 1702 1700 * 1703 * @returns COMstatus code1701 * @returns status code 1704 1702 * @param aVideoInputDevices Array of interface pointers to be filled. 1705 1703 */ … … 1708 1706 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1709 1707 HostVideoInputDeviceList list; 1708 aVideoInputDevices.resize(0); 1710 1709 1711 1710 HRESULT hr = HostVideoInputDevice::queryHostDevices(m->pParent, &list); … … 1713 1712 if (SUCCEEDED(hr)) 1714 1713 { 1714 aVideoInputDevices.resize(list.size()); 1715 1715 size_t i = 0; 1716 1716 for (HostVideoInputDeviceList::const_iterator it = list.begin(); it != list.end(); ++it, ++i)
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器