VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxBFE/VMMDev.h@ 28264

Last change on this file since 28264 was 28264, checked in by vboxsync, 15 years ago

VideoModeSupported for multimonitor. (xTracker 4655)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1/* $Id: VMMDev.h 28264 2010-04-13 16:01:51Z vboxsync $ */
2/** @file
3 * VBox frontends: Basic Frontend (BFE):
4 * Declaration of VMMDev: driver interface to VMM device
5 */
6
7/*
8 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
19 * Clara, CA 95054 USA or visit http://www.sun.com if you need
20 * additional information or have any questions.
21 */
22
23#ifndef ____H_VMMDEV
24#define ____H_VMMDEV
25
26#include <VBox/pdm.h>
27
28class VMMDev
29{
30public:
31 VMMDev();
32 ~VMMDev();
33 static const PDMDRVREG DrvReg;
34
35 /** Pointer to the associated VMMDev driver. */
36 struct DRVMAINVMMDEV *mpDrv;
37
38 bool fSharedFolderActive;
39 bool isShFlActive()
40 {
41 return fSharedFolderActive;
42 }
43
44 PPDMIVMMDEVPORT getVMMDevPort();
45
46 int hgcmLoadService (const char *pszServiceLibrary, const char *pszServiceName);
47 int hgcmHostCall (const char *pszServiceName, uint32_t u32Function, uint32_t cParms, PVBOXHGCMSVCPARM paParms);
48
49private:
50 static DECLCALLBACK(void) UpdateGuestVersion(PPDMIVMMDEVCONNECTOR pInterface, VBoxGuestInfo *guestInfo);
51 static DECLCALLBACK(void) UpdateGuestCapabilities(PPDMIVMMDEVCONNECTOR pInterface, uint32_t newCapabilities);
52 static DECLCALLBACK(void) UpdateMouseCapabilities(PPDMIVMMDEVCONNECTOR pInterface, uint32_t newCapabilities);
53 static DECLCALLBACK(void) UpdatePointerShape(PPDMIVMMDEVCONNECTOR pInterface, bool fVisible, bool fAlpha,
54 uint32_t xHot, uint32_t yHot,
55 uint32_t width, uint32_t height,
56 void *pShape);
57 static DECLCALLBACK(int) VideoModeSupported(PPDMIVMMDEVCONNECTOR pInterface, uint32_t display, uint32_t width, uint32_t height,
58 uint32_t bpp, bool *fSupported);
59 static DECLCALLBACK(int) GetHeightReduction(PPDMIVMMDEVCONNECTOR pInterface, uint32_t *heightReduction);
60
61 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
62 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
63 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
64};
65
66extern VMMDev *gVMMDev;
67
68#endif // !____H_VMMDEV
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette