VirtualBox

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

Last change on this file since 82290 was 76582, checked in by vboxsync, 6 years ago

Frontends: scm header guard alignment.

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