VirtualBox

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

Last change on this file since 74942 was 69500, checked in by vboxsync, 7 years ago

*: scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/** @file
2 *
3 * VBox frontends: Framebuffer (FB, DirectFB):
4 * Main header file
5 */
6
7/*
8 * Copyright (C) 2006-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_VBOXFB
20#define __H_VBOXFB
21
22#include <stdlib.h>
23#include <stdio.h>
24#include <unistd.h>
25
26// XPCOM headers
27#include <nsIServiceManager.h>
28#include <nsIComponentRegistrar.h>
29#include <nsXPCOMGlue.h>
30#include <nsMemory.h>
31#include <nsIProgrammingLanguage.h>
32#include <nsIFile.h>
33#include <nsILocalFile.h>
34#include <nsString.h>
35#include <nsReadableUtils.h>
36#include <VirtualBox_XPCOM.h>
37#include <ipcIService.h>
38#include <nsEventQueueUtils.h>
39#include <ipcCID.h>
40#include <ipcIDConnectService.h>
41#define IPC_DCONNECTSERVICE_CONTRACTID \
42 "@mozilla.org/ipc/dconnect-service;1"
43
44#include <VBox/types.h>
45#include <VBox/err.h>
46#include <VBox/log.h>
47#include <iprt/assert.h>
48#include <iprt/uuid.h>
49
50// DirectFB header
51#include <directfb/directfb.h>
52
53/**
54 * Executes the passed in expression and verifies the return code.
55 *
56 * On failure a debug message is printed to stderr and the application will
57 * abort with an fatal error.
58 */
59#define DFBCHECK(x...) \
60 do { \
61 DFBResult err = x; \
62 if (err != DFB_OK) \
63 { \
64 fprintf(stderr, "%s <%d>:\n\t", __FILE__, __LINE__ ); \
65 DirectFBErrorFatal(#x, err); \
66 } \
67 } while (0)
68
69#include "Helper.h"
70
71/**
72 * Globals
73 */
74extern uint32_t useFixedVideoMode;
75extern videoMode fixedVideoMode;
76extern int scaleGuest;
77
78#endif // __H_VBOXFB
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use