VirtualBox

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

Last change on this file since 2392 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/** @file
2 *
3 * VBox frontends: Framebuffer (FB, DirectFB):
4 * Main header file
5 */
6
7/*
8 * Copyright (C) 2006 InnoTek Systemberatung GmbH
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 as published by the Free Software Foundation,
14 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
15 * distribution. VirtualBox OSE is distributed in the hope that it will
16 * be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * If you received this file as part of a commercial VirtualBox
19 * distribution, then only the terms of your commercial VirtualBox
20 * license agreement apply instead of the previous paragraph.
21 */
22
23#ifndef __H_VBOXFB
24#define __H_VBOXFB
25
26// release logging
27#define LOG_ENABLED
28
29#include <stdlib.h>
30#include <stdio.h>
31#include <unistd.h>
32
33// XPCOM headers
34#include <nsIServiceManager.h>
35#include <nsIComponentRegistrar.h>
36#include <nsXPCOMGlue.h>
37#include <nsMemory.h>
38#include <nsStringAPI.h>
39#include <nsIProgrammingLanguage.h>
40#include <nsEmbedString.h>
41#include <nsIFile.h>
42#include <nsILocalFile.h>
43#include <VirtualBox_XPCOM.h>
44#include <ipcIService.h>
45#include <ipcCID.h>
46#include <ipcIDConnectService.h>
47#define IPC_DCONNECTSERVICE_CONTRACTID \
48 "@mozilla.org/ipc/dconnect-service;1"
49
50#include <VBox/types.h>
51#include <VBox/err.h>
52#include <VBox/log.h>
53#include <iprt/assert.h>
54#include <iprt/uuid.h>
55
56// DirectFB header
57#include <directfb/directfb.h>
58
59/**
60 * Executes the passed in expression and verifies the return code.
61 *
62 * On failure a debug message is printed to stderr and the application will
63 * abort with an fatal error.
64 */
65#define DFBCHECK(x...) \
66 do { \
67 DFBResult err = x; \
68 if (err != DFB_OK) \
69 { \
70 fprintf(stderr, "%s <%d>:\n\t", __FILE__, __LINE__ ); \
71 DirectFBErrorFatal(#x, err); \
72 } \
73 } while (0)
74
75#include "Helper.h"
76
77/**
78 * Globals
79 */
80extern uint32_t useFixedVideoMode;
81extern videoMode fixedVideoMode;
82extern int scaleGuest;
83
84#endif // __H_VBOXFB
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