UsbWebcamInterface.h revision 3c8ad0020c82e3ff4f3daad0d8cf2ef39085cbca
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync * VirtualBox PDM Driver for Emulated USB Webcam
010ad423d45c61ef874fa1602d46459a798b54d2vboxsync * Copyright (C) 2011-2013 Oracle Corporation
010ad423d45c61ef874fa1602d46459a798b54d2vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
010ad423d45c61ef874fa1602d46459a798b54d2vboxsync * available from http://www.virtualbox.org. This file is free software;
010ad423d45c61ef874fa1602d46459a798b54d2vboxsync * you can redistribute it and/or modify it under the terms of the GNU
010ad423d45c61ef874fa1602d46459a798b54d2vboxsync * General Public License (GPL) as published by the Free Software
010ad423d45c61ef874fa1602d46459a798b54d2vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
010ad423d45c61ef874fa1602d46459a798b54d2vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
010ad423d45c61ef874fa1602d46459a798b54d2vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync#define VRDE_VIDEOIN_WITH_VRDEINTERFACE /* Get the VRDE interface definitions. */
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync /* Callbacks. */
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync void EmWebcamCbNotify(uint32_t u32Id, const void *pvData, uint32_t cbData);
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync void EmWebcamCbDeviceDesc(int rcRequest, void *pDeviceCtx, void *pvUser,
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync const VRDEVIDEOINDEVICEDESC *pDeviceDesc, uint32_t cbDeviceDesc);
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync void EmWebcamCbControl(int rcRequest, void *pDeviceCtx, void *pvUser,
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync const VRDEVIDEOINCTRLHDR *pControl, uint32_t cbControl);
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync void EmWebcamCbFrame(int rcRequest, void *pDeviceCtx,
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync const VRDEVIDEOINPAYLOADHDR *pFrame, uint32_t cbFrame);
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync /* Methods for the PDM driver. */
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync int SendControl(EMWEBCAMDRV *pDrv, void *pvUser, uint64_t u64DeviceId,
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync const VRDEVIDEOINCTRLHDR *pControl, uint32_t cbControl);
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync#endif /* !____H_USBWEBCAMINTERFACE */
d0eec04539061d14a7e51f492aea90fa5394615fvboxsync/* vi: set tabstop=4 shiftwidth=4 expandtab: */