VirtualBox

source: vbox/trunk/src/VBox/Main/include/DrvAudioVRDE.h@ 70772

Last change on this file since 70772 was 70644, checked in by vboxsync, 6 years ago

Audio/Main: More code needed for attaching / detaching host backends at runtime.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/* $Id: DrvAudioVRDE.h 70644 2018-01-19 12:20:33Z vboxsync $ */
2/** @file
3 * VirtualBox driver interface to VRDE backend.
4 */
5
6/*
7 * Copyright (C) 2014-2018 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ____H_DRVAUDIOVRDE
19#define ____H_DRVAUDIOVRDE
20
21#include <VBox/com/ptr.h>
22#include <VBox/com/string.h>
23
24#include <VBox/RemoteDesktop/VRDE.h>
25
26#include <VBox/vmm/pdmdrv.h>
27#include <VBox/vmm/pdmifs.h>
28
29#include "AudioDriver.h"
30
31using namespace com;
32
33class Console;
34
35class AudioVRDE : public AudioDriver
36{
37
38public:
39
40 AudioVRDE(Console *pConsole);
41 virtual ~AudioVRDE(void);
42
43public:
44
45 static const PDMDRVREG DrvReg;
46
47public:
48
49 int onVRDEControl(bool fEnable, uint32_t uFlags);
50 int onVRDEInputBegin(void *pvContext, PVRDEAUDIOINBEGIN pVRDEAudioBegin);
51 int onVRDEInputData(void *pvContext, const void *pvData, uint32_t cbData);
52 int onVRDEInputEnd(void *pvContext);
53 int onVRDEInputIntercept(bool fIntercept);
54
55public:
56
57 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
58 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
59 static DECLCALLBACK(int) drvAttach(PPDMDRVINS pDrvIns, uint32_t fFlags);
60 static DECLCALLBACK(void) drvDetach(PPDMDRVINS pDrvIns, uint32_t fFlags);
61
62private:
63
64 int configureDriver(PCFGMNODE pLunCfg);
65
66 /** Pointer to the associated VRDE audio driver. */
67 struct DRVAUDIOVRDE *mpDrv;
68};
69
70#endif /* !____H_DRVAUDIOVRDE */
71
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use