Changeset 48607 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Sep 20, 2013 3:47:37 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 89180
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r48600 r48607 738 738 * @param pVirtualBox Reference to the IVirtualBox pointer. 739 739 */ 740 static HRESULT listVideo CaptureDevices(const ComPtr<IVirtualBox> pVirtualBox)740 static HRESULT listVideoInputDevices(const ComPtr<IVirtualBox> pVirtualBox) 741 741 { 742 742 HRESULT rc; 743 743 ComPtr<IHost> host; 744 744 CHECK_ERROR(pVirtualBox, COMGETTER(Host)(host.asOutParam())); 745 com::SafeIfaceArray<IHostVideo CaptureDevice> hostVideoCaptureDevices;746 CHECK_ERROR(host, COMGETTER(Video CaptureDevices)(ComSafeArrayAsOutParam(hostVideoCaptureDevices)));747 RTPrintf("Video Capture Devices: %u\n", hostVideoCaptureDevices.size());748 for (size_t i = 0; i < hostVideo CaptureDevices.size(); ++i)749 { 750 ComPtr<IHostVideo CaptureDevice> p = hostVideoCaptureDevices[i];745 com::SafeIfaceArray<IHostVideoInputDevice> hostVideoInputDevices; 746 CHECK_ERROR(host, COMGETTER(VideoInputDevices)(ComSafeArrayAsOutParam(hostVideoInputDevices))); 747 RTPrintf("Video Input Devices: %u\n", hostVideoInputDevices.size()); 748 for (size_t i = 0; i < hostVideoInputDevices.size(); ++i) 749 { 750 ComPtr<IHostVideoInputDevice> p = hostVideoInputDevices[i]; 751 751 Bstr name; 752 752 p->COMGETTER(Name)(name.asOutParam()); … … 790 790 kListGroups, 791 791 kListNatNetworks, 792 kListVideo CaptureDevices792 kListVideoInputDevices 793 793 }; 794 794 … … 1124 1124 } 1125 1125 1126 case kListVideo CaptureDevices:1127 rc = listVideo CaptureDevices(pVirtualBox);1126 case kListVideoInputDevices: 1127 rc = listVideoInputDevices(pVirtualBox); 1128 1128 break; 1129 1129 … … 1176 1176 { "extpacks", kListExtPacks, RTGETOPT_REQ_NOTHING }, 1177 1177 { "groups", kListGroups, RTGETOPT_REQ_NOTHING }, 1178 { "webcams", kListVideo CaptureDevices,RTGETOPT_REQ_NOTHING },1178 { "webcams", kListVideoInputDevices, RTGETOPT_REQ_NOTHING }, 1179 1179 }; 1180 1180 … … 1222 1222 case kListGroups: 1223 1223 case kListNatNetworks: 1224 case kListVideo CaptureDevices:1224 case kListVideoInputDevices: 1225 1225 enmOptCommand = (enum enmListType)ch; 1226 1226 if (fOptMultiple)
Note:
See TracChangeset
for help on using the changeset viewer.