HostVideoInputDeviceImpl.cpp revision 78c40d6f7acb2e0cafa00e25133cd51d51e4c20a
/* $Id$ */
/** @file
*
* Host video capture device implementation.
*/
/*
* Copyright (C) 2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#include "HostVideoInputDeviceImpl.h"
#include "Logging.h"
#include "VirtualBoxImpl.h"
#ifdef VBOX_WITH_EXTPACK
# include "ExtPackManagerImpl.h"
#endif
/*
* HostVideoInputDevice implementation.
*/
{
return BaseFinalConstruct();
}
void HostVideoInputDevice::FinalRelease()
{
uninit();
}
/*
* Initializes the instance.
*/
HRESULT HostVideoInputDevice::init(const com::Utf8Str &name, const com::Utf8Str &path, const com::Utf8Str &alias)
{
LogFlowThisFunc(("\n"));
/* Enclose the state transition NotReady->InInit->Ready */
AutoInitSpan autoInitSpan(this);
/* Confirm a successful initialization */
return S_OK;
}
/*
* Uninitializes the instance.
* Called either from FinalRelease() or by the parent when it gets destroyed.
*/
void HostVideoInputDevice::uninit()
{
LogFlowThisFunc(("\n"));
/* Enclose the state transition Ready->InUninit->NotReady */
AutoUninitSpan autoUninitSpan(this);
if (autoUninitSpan.uninitDone())
return;
}
{
{
}
return hr;
}
const char *pszName,
const char *pszPath,
const char *pszAlias,
{
{
return VERR_NOT_SUPPORTED;
}
return VINF_SUCCESS;
}
/** @todo These typedefs must be in a header. */
const char *pszName,
const char *pszPath,
const char *pszAlias,
typedef FNVBOXHOSTWEBCAMADD *PFNVBOXHOSTWEBCAMADD;
void *pvUser,
typedef FNVBOXHOSTWEBCAMLIST *PFNVBOXHOSTWEBCAMLIST;
{
int rc = VINF_SUCCESS;
if (RTPathHavePath(pszPath))
else
if (RT_SUCCESS(rc))
{
static const char *pszSymbol = "VBoxHostWebcamList";
}
else
{
hmod = NIL_RTLDRMOD;
}
if (RT_SUCCESS(rc))
{
}
else
{
if (hmod != NIL_RTLDRMOD)
{
hmod = NIL_RTLDRMOD;
}
}
return rc;
}
{
#ifdef VBOX_WITH_EXTPACK
#else
#endif
{
if (RT_SUCCESS(rc))
{
if (RT_FAILURE(rc))
{
}
hmod = NIL_RTLDRMOD;
}
{
if (RT_FAILURE(rc))
"Failed to get webcam list: %Rrc", rc);
}
}
return hr;
}
/* static */ HRESULT HostVideoInputDevice::queryHostDevices(VirtualBox *pVirtualBox, HostVideoInputDeviceList *pList)
{
{
}
return hr;
}
/* vi: set tabstop=4 shiftwidth=4 expandtab: */