VirtualBox

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

Last change on this file was 98103, checked in by vboxsync, 20 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
RevLine 
[54435]1/* $Id: DrvAudioVRDE.h 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * VirtualBox driver interface to VRDE backend.
4 */
5
6/*
[98103]7 * Copyright (C) 2014-2023 Oracle and/or its affiliates.
[54435]8 *
[96407]9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
[54435]26 */
27
[76562]28#ifndef MAIN_INCLUDED_DrvAudioVRDE_h
29#define MAIN_INCLUDED_DrvAudioVRDE_h
[76487]30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
[54435]33
34#include <VBox/com/ptr.h>
[70535]35#include <VBox/com/string.h>
36
[54435]37#include <VBox/RemoteDesktop/VRDE.h>
[70535]38
[54435]39#include <VBox/vmm/pdmdrv.h>
40#include <VBox/vmm/pdmifs.h>
41
[70535]42#include "AudioDriver.h"
43
44using namespace com;
45
[54435]46class Console;
47
[70535]48class AudioVRDE : public AudioDriver
[54435]49{
50
51public:
52
53 AudioVRDE(Console *pConsole);
54 virtual ~AudioVRDE(void);
55
56public:
57
58 static const PDMDRVREG DrvReg;
59
60public:
61
[73370]62 void onVRDEClientConnect(uint32_t uClientID);
63 void onVRDEClientDisconnect(uint32_t uClientID);
[54435]64 int onVRDEControl(bool fEnable, uint32_t uFlags);
65 int onVRDEInputBegin(void *pvContext, PVRDEAUDIOINBEGIN pVRDEAudioBegin);
66 int onVRDEInputData(void *pvContext, const void *pvData, uint32_t cbData);
67 int onVRDEInputEnd(void *pvContext);
68 int onVRDEInputIntercept(bool fIntercept);
69
70public:
71
72 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
73 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
[88382]74 static DECLCALLBACK(void) drvPowerOff(PPDMDRVINS pDrvIns);
[54435]75
76private:
77
[93444]78 virtual int configureDriver(PCFGMNODE pLunCfg, PCVMMR3VTABLE pVMM) RT_OVERRIDE;
[70535]79
[54435]80 /** Pointer to the associated VRDE audio driver. */
81 struct DRVAUDIOVRDE *mpDrv;
[88885]82 /** Protects accesses to mpDrv from racing driver destruction. */
83 RTCRITSECT mCritSect;
[54435]84};
85
[76562]86#endif /* !MAIN_INCLUDED_DrvAudioVRDE_h */
[54435]87
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle
ContactPrivacy/Do Not Sell My InfoTerms of Use