VirtualBox

source: vbox/trunk/src/VBox/VMM/VMMR3/VMMR3VTable.cpp@ 93455

Last change on this file since 93455 was 93444, checked in by vboxsync, 3 years ago

VMM,Main,HostServices: Use a function table for accessing the VBoxVMM.dll/so/dylib functionality, and load it dynamically when the Console object is initialized. Also converted a few drivers in Main to use device helpers to get config values and such. bugref:10074

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/* $Id: VMMR3VTable.cpp 93444 2022-01-26 18:01:15Z vboxsync $ */
2/** @file
3 * VM - The Virtual Machine Monitor, Ring-3 API VTable Definitions.
4 */
5
6/*
7 * Copyright (C) 2022 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
19/*********************************************************************************************************************************
20* Header Files *
21*********************************************************************************************************************************/
22#define RT_RELAXED_CALLBACKS_TYPES
23#define LOG_GROUP LOG_GROUP_VMM
24#include <VBox/vmm/vmmr3vtable.h>
25
26
27/*********************************************************************************************************************************
28* Global Variables *
29*********************************************************************************************************************************/
30static const VMMR3VTABLE g_VMMR3VTable =
31{
32 /* .uMagicVersion = */ VMMR3VTABLE_MAGIC_VERSION,
33 /* .fFlags = */ 0,
34 /* .pszDescription = */ "x86 & amd64",
35
36#define VTABLE_ENTRY(a_Api) a_Api,
37#define VTABLE_RESERVED(a_Name) NULL,
38
39#include <VBox/vmm/vmmr3vtable-def.h>
40
41#undef VTABLE_ENTRY
42#undef VTABLE_RESERVED
43
44 /* .uMagicVersionEnd = */ VMMR3VTABLE_MAGIC_VERSION,
45};
46
47
48VMMR3DECL(PCVMMR3VTABLE) VMMR3GetVTable(void)
49{
50 return &g_VMMR3VTable;
51}
52
Note: See TracBrowser for help on using the repository browser.

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