VirtualBox

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

Last change on this file since 22873 was 21771, checked in by vboxsync, 15 years ago

Frontends/VBoxFB: make it build again and clean up the obvious parts which are not using the current conventions. Still untested.

  • 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-2009 Sun Microsystems, Inc.
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 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
19 * Clara, CA 95054 USA or visit http://www.sun.com if you need
20 * additional information or have any questions.
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 <nsIProgrammingLanguage.h>
39#include <nsIFile.h>
40#include <nsILocalFile.h>
41#include <nsString.h>
42#include <nsReadableUtils.h>
43#include <VirtualBox_XPCOM.h>
44#include <ipcIService.h>
45#include <nsEventQueueUtils.h>
46#include <ipcCID.h>
47#include <ipcIDConnectService.h>
48#define IPC_DCONNECTSERVICE_CONTRACTID \
49 "@mozilla.org/ipc/dconnect-service;1"
50
51#include <VBox/types.h>
52#include <VBox/err.h>
53#include <VBox/log.h>
54#include <iprt/assert.h>
55#include <iprt/uuid.h>
56
57// DirectFB header
58#include <directfb/directfb.h>
59
60/**
61 * Executes the passed in expression and verifies the return code.
62 *
63 * On failure a debug message is printed to stderr and the application will
64 * abort with an fatal error.
65 */
66#define DFBCHECK(x...) \
67 do { \
68 DFBResult err = x; \
69 if (err != DFB_OK) \
70 { \
71 fprintf(stderr, "%s <%d>:\n\t", __FILE__, __LINE__ ); \
72 DirectFBErrorFatal(#x, err); \
73 } \
74 } while (0)
75
76#include "Helper.h"
77
78/**
79 * Globals
80 */
81extern uint32_t useFixedVideoMode;
82extern videoMode fixedVideoMode;
83extern int scaleGuest;
84
85#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