1 | /* $Id: DrvAudioVideoRec.h 68895 2017-09-27 16:38:54Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VirtualBox driver interface video recording audio backend.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2017 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_DRVAUDIOVIDEOREC
|
---|
19 | #define ____H_DRVAUDIOVIDEOREC
|
---|
20 |
|
---|
21 | #include <VBox/com/ptr.h>
|
---|
22 | #include <VBox/vmm/pdmdrv.h>
|
---|
23 | #include <VBox/vmm/pdmifs.h>
|
---|
24 |
|
---|
25 | class Console;
|
---|
26 |
|
---|
27 | class AudioVideoRec
|
---|
28 | {
|
---|
29 |
|
---|
30 | public:
|
---|
31 |
|
---|
32 | AudioVideoRec(Console *pConsole);
|
---|
33 | virtual ~AudioVideoRec(void);
|
---|
34 |
|
---|
35 | public:
|
---|
36 |
|
---|
37 | static const PDMDRVREG DrvReg;
|
---|
38 |
|
---|
39 | Console *getParent(void) { return mpConsole; }
|
---|
40 |
|
---|
41 | public:
|
---|
42 |
|
---|
43 | static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
|
---|
44 | static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
|
---|
45 | static DECLCALLBACK(int) drvAttach(PPDMDRVINS pDrvIns, uint32_t fFlags);
|
---|
46 | static DECLCALLBACK(void) drvDetach(PPDMDRVINS pDrvIns, uint32_t fFlags);
|
---|
47 |
|
---|
48 | private:
|
---|
49 |
|
---|
50 | /** Pointer to the associated video recording audio driver. */
|
---|
51 | struct DRVAUDIOVIDEOREC *mpDrv;
|
---|
52 | /** Pointer to parent. */
|
---|
53 | Console * const mpConsole;
|
---|
54 | };
|
---|
55 |
|
---|
56 | #endif /* !____H_DRVAUDIOVIDEOREC */
|
---|
57 |
|
---|