VirtualBox

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

Last change on this file since 78493 was 76562, checked in by vboxsync, 6 years ago

Main: Use MAIN_INCLUDED_ and MAIN_INCLUDED_SRC_ as header guard prefixes with scm.

  • 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 76562 2019-01-01 03:22:50Z vboxsync $ */
2
3/** @file
4 * VirtualBox COM class implementation
5 */
6
7/*
8 * Copyright (C) 2012-2019 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 MAIN_INCLUDED_Nvram_h
20#define MAIN_INCLUDED_Nvram_h
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 /* !MAIN_INCLUDED_Nvram_h */
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