VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxFB/VBoxFB.h@ 97441

Last change on this file since 97441 was 96407, checked in by vboxsync, 2 years ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/** @file
2 *
3 * VBox frontends: Framebuffer (FB, DirectFB):
4 * Main header file
5 */
6
7/*
8 * Copyright (C) 2006-2022 Oracle and/or its affiliates.
9 *
10 * This file is part of VirtualBox base platform packages, as
11 * available from https://www.virtualbox.org.
12 *
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation, in version 3 of the
16 * License.
17 *
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, see <https://www.gnu.org/licenses>.
25 *
26 * SPDX-License-Identifier: GPL-3.0-only
27 */
28
29#ifndef VBOX_INCLUDED_SRC_VBoxFB_VBoxFB_h
30#define VBOX_INCLUDED_SRC_VBoxFB_VBoxFB_h
31#ifndef RT_WITHOUT_PRAGMA_ONCE
32# pragma once
33#endif
34
35#include <stdlib.h>
36#include <stdio.h>
37#include <unistd.h>
38
39// XPCOM headers
40#include <nsIServiceManager.h>
41#include <nsIComponentRegistrar.h>
42#include <nsXPCOMGlue.h>
43#include <nsMemory.h>
44#include <nsIProgrammingLanguage.h>
45#include <nsIFile.h>
46#include <nsILocalFile.h>
47#include <nsString.h>
48#include <nsReadableUtils.h>
49#include <VirtualBox_XPCOM.h>
50#include <ipcIService.h>
51#include <nsEventQueueUtils.h>
52#include <ipcCID.h>
53#include <ipcIDConnectService.h>
54#define IPC_DCONNECTSERVICE_CONTRACTID \
55 "@mozilla.org/ipc/dconnect-service;1"
56
57#include <VBox/types.h>
58#include <VBox/err.h>
59#include <VBox/log.h>
60#include <iprt/assert.h>
61#include <iprt/uuid.h>
62
63// DirectFB header
64#include <directfb/directfb.h>
65
66/**
67 * Executes the passed in expression and verifies the return code.
68 *
69 * On failure a debug message is printed to stderr and the application will
70 * abort with an fatal error.
71 */
72#define DFBCHECK(x...) \
73 do { \
74 DFBResult err = x; \
75 if (err != DFB_OK) \
76 { \
77 fprintf(stderr, "%s <%d>:\n\t", __FILE__, __LINE__ ); \
78 DirectFBErrorFatal(#x, err); \
79 } \
80 } while (0)
81
82#include "Helper.h"
83
84/**
85 * Globals
86 */
87extern uint32_t useFixedVideoMode;
88extern videoMode fixedVideoMode;
89extern int scaleGuest;
90
91#endif /* !VBOX_INCLUDED_SRC_VBoxFB_VBoxFB_h */
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