VirtualBox

source: vbox/trunk/src/VBox/Main/include/Nvram.h@ 76542

Last change on this file since 76542 was 76487, checked in by vboxsync, 6 years ago

Main/include: Slapped #pragma once on all headers in prep for GCC precompiled headers. Won't catch repeat includes of an already precompiled header otherwise, i.e. killing most of the PCH gain.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/* $Id: Nvram.h 76487 2018-12-27 03:31:39Z vboxsync $ */
2
3/** @file
4 * VirtualBox COM class implementation
5 */
6
7/*
8 * Copyright (C) 2012-2017 Oracle Corporation
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
19#ifndef ____H_NVRAM
20#define ____H_NVRAM
21#ifndef RT_WITHOUT_PRAGMA_ONCE
22# pragma once
23#endif
24
25#include <VBox/com/ptr.h>
26#include <VBox/vmm/pdmdrv.h>
27
28class Console;
29struct NVRAM;
30
31class Nvram
32{
33public:
34 Nvram(Console *console);
35 virtual ~Nvram();
36
37 Console *getParent(void) { return mParent; }
38
39 static const PDMDRVREG DrvReg;
40
41private:
42 static DECLCALLBACK(void *) drvNvram_QueryInterface(PPDMIBASE pInterface, const char *pszIID);
43 static DECLCALLBACK(int) drvNvram_Construct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
44 static DECLCALLBACK(void) drvNvram_Destruct(PPDMDRVINS pDrvIns);
45
46 /** Pointer to the parent object. */
47 Console * const mParent;
48 /** Pointer to the driver instance data.
49 * Can be NULL during init and termination. */
50 struct NVRAM *mpDrv;
51};
52
53#endif /* !____H_NVRAM */
54/* vi: set tabstop=4 shiftwidth=4 expandtab: */
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