VirtualBox

Changeset 48607 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Sep 20, 2013 3:47:37 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89180
Message:

VBoxManage,Main: VideoCaptureDevice -> VideoInputDevice

Location:
trunk/src/VBox/Main/src-server
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r48578 r48607  
    3232
    3333#include "HostNetworkInterfaceImpl.h"
    34 #include "HostVideoCaptureDeviceImpl.h"
     34#include "HostVideoInputDeviceImpl.h"
    3535#include "MachineImpl.h"
    3636#include "AutoCaller.h"
     
    17311731 *
    17321732 * @returns COM status code
    1733  * @param aVideoCaptureDevices Array of interface pointers to be filled.
    1734  */
    1735 STDMETHODIMP Host::COMGETTER(VideoCaptureDevices)(ComSafeArrayOut(IHostVideoCaptureDevice*, aVideoCaptureDevices))
    1736 {
    1737     if (ComSafeArrayOutIsNull(aVideoCaptureDevices))
     1733 * @param aVideoInputDevices Array of interface pointers to be filled.
     1734 */
     1735STDMETHODIMP Host::COMGETTER(VideoInputDevices)(ComSafeArrayOut(IHostVideoInputDevice*, aVideoInputDevices))
     1736{
     1737    if (ComSafeArrayOutIsNull(aVideoInputDevices))
    17381738        return E_POINTER;
    17391739
     
    17421742
    17431743    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    1744     HostVideoCaptureDeviceList list;
    1745 
    1746     HRESULT hr = HostVideoCaptureDevice::queryHostDevices(&list);
     1744    HostVideoInputDeviceList list;
     1745
     1746    HRESULT hr = HostVideoInputDevice::queryHostDevices(&list);
    17471747
    17481748    if (SUCCEEDED(hr))
    17491749    {
    1750         SafeIfaceArray<IHostVideoCaptureDevice> devices(list);
    1751         devices.detachTo(ComSafeArrayOutArg(aVideoCaptureDevices));
     1750        SafeIfaceArray<IHostVideoInputDevice> devices(list);
     1751        devices.detachTo(ComSafeArrayOutArg(aVideoInputDevices));
    17521752    }
    17531753
  • trunk/src/VBox/Main/src-server/HostVideoInputDeviceImpl.cpp

    r48600 r48607  
    1717 */
    1818
    19 #include "HostVideoCaptureDeviceImpl.h"
     19#include "HostVideoInputDeviceImpl.h"
    2020#include "Logging.h"
    2121
     
    2525
    2626/*
    27  * HostVideoCaptureDevice implementation.
    28  */
    29 DEFINE_EMPTY_CTOR_DTOR(HostVideoCaptureDevice)
    30 
    31 HRESULT HostVideoCaptureDevice::FinalConstruct()
     27 * HostVideoInputDevice implementation.
     28 */
     29DEFINE_EMPTY_CTOR_DTOR(HostVideoInputDevice)
     30
     31HRESULT HostVideoInputDevice::FinalConstruct()
    3232{
    3333    return BaseFinalConstruct();
    3434}
    3535
    36 void HostVideoCaptureDevice::FinalRelease()
     36void HostVideoInputDevice::FinalRelease()
    3737{
    3838    uninit();
     
    4444 * Initializes the instance.
    4545 */
    46 HRESULT HostVideoCaptureDevice::init(const com::Utf8Str &name, const com::Utf8Str &path, const com::Utf8Str &alias)
     46HRESULT HostVideoInputDevice::init(const com::Utf8Str &name, const com::Utf8Str &path, const com::Utf8Str &alias)
    4747{
    4848    LogFlowThisFunc(("\n"));
     
    6666 * Called either from FinalRelease() or by the parent when it gets destroyed.
    6767 */
    68 void HostVideoCaptureDevice::uninit()
     68void HostVideoInputDevice::uninit()
    6969{
    7070    LogFlowThisFunc(("\n"));
     
    8080}
    8181
    82 static HRESULT hostVideoCaptureDeviceAdd(HostVideoCaptureDeviceList *pList,
    83                                          const com::Utf8Str &name,
    84                                          const com::Utf8Str &path,
    85                                          const com::Utf8Str &alias)
    86 {
    87     ComObjPtr<HostVideoCaptureDevice> obj;
     82static HRESULT hostVideoInputDeviceAdd(HostVideoInputDeviceList *pList,
     83                                       const com::Utf8Str &name,
     84                                       const com::Utf8Str &path,
     85                                       const com::Utf8Str &alias)
     86{
     87    ComObjPtr<HostVideoInputDevice> obj;
    8888    HRESULT hr = obj.createObject();
    8989    if (SUCCEEDED(hr))
     
    110110}
    111111
    112 static HRESULT hvcdFillList(HostVideoCaptureDeviceList *pList, IEnumMoniker *pEnumMoniker)
     112static HRESULT hvcdFillList(HostVideoInputDeviceList *pList, IEnumMoniker *pEnumMoniker)
    113113{
    114114    int iDevice = 0;
     
    159159        com::Utf8Str alias = com::Utf8StrFmt(".%d", iDevice);
    160160
    161         hr = hostVideoCaptureDeviceAdd(pList, name, path, alias);
     161        hr = hostVideoInputDeviceAdd(pList, name, path, alias);
    162162
    163163        pPropBag->Release();
     
    171171}
    172172
    173 static HRESULT fillDeviceList(HostVideoCaptureDeviceList *pList)
     173static HRESULT fillDeviceList(HostVideoInputDeviceList *pList)
    174174{
    175175    IEnumMoniker *pEnumMoniker = NULL;
     
    191191}
    192192#else
    193 static HRESULT fillDeviceList(HostVideoCaptureDeviceList *pList)
     193static HRESULT fillDeviceList(HostVideoInputDeviceList *pList)
    194194{
    195195    NOREF(pList);
     
    198198#endif /* RT_OS_WINDOWS */
    199199
    200 /* static */ HRESULT HostVideoCaptureDevice::queryHostDevices(HostVideoCaptureDeviceList *pList)
     200/* static */ HRESULT HostVideoInputDevice::queryHostDevices(HostVideoInputDeviceList *pList)
    201201{
    202202    HRESULT hr = fillDeviceList(pList);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette