VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.13.0/xf86Priv.h

最後變更 在這個檔案是 43251,由 vboxsync 提交於 12 年 前

Additions/x11: added headers for X.Org Server 1.13.

  • 屬性 svn:eol-style 設為 native
檔案大小: 5.6 KB
 
1/*
2 * Copyright (c) 1997-2002 by The XFree86 Project, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * Except as contained in this notice, the name of the copyright holder(s)
23 * and author(s) shall not be used in advertising or otherwise to promote
24 * the sale, use or other dealings in this Software without prior written
25 * authorization from the copyright holder(s) and author(s).
26 */
27
28/*
29 * This file contains declarations for private XFree86 functions and variables,
30 * and definitions of private macros.
31 *
32 * "private" means not available to video drivers.
33 */
34
35#ifndef _XF86PRIV_H
36#define _XF86PRIV_H
37
38#include "xf86Privstr.h"
39#include "propertyst.h"
40#include "input.h"
41
42/*
43 * Parameters set ONLY from the command line options
44 * The global state of these things is held in xf86InfoRec (when appropriate).
45 */
46extern _X_EXPORT const char *xf86ConfigFile;
47extern _X_EXPORT const char *xf86ConfigDir;
48extern _X_EXPORT Bool xf86AllowMouseOpenFail;
49
50#ifdef XF86VIDMODE
51extern _X_EXPORT Bool xf86VidModeDisabled;
52extern _X_EXPORT Bool xf86VidModeAllowNonLocal;
53#endif
54extern _X_EXPORT Bool xf86fpFlag;
55extern _X_EXPORT Bool xf86sFlag;
56extern _X_EXPORT Bool xf86bsEnableFlag;
57extern _X_EXPORT Bool xf86bsDisableFlag;
58extern _X_EXPORT Bool xf86silkenMouseDisableFlag;
59extern _X_EXPORT Bool xf86xkbdirFlag;
60
61#ifdef HAVE_ACPI
62extern _X_EXPORT Bool xf86acpiDisableFlag;
63#endif
64extern _X_EXPORT char *xf86LayoutName;
65extern _X_EXPORT char *xf86ScreenName;
66extern _X_EXPORT char *xf86PointerName;
67extern _X_EXPORT char *xf86KeyboardName;
68extern _X_EXPORT int xf86FbBpp;
69extern _X_EXPORT int xf86Depth;
70extern _X_EXPORT Pix24Flags xf86Pix24;
71extern _X_EXPORT rgb xf86Weight;
72extern _X_EXPORT Bool xf86FlipPixels;
73extern _X_EXPORT Gamma xf86Gamma;
74extern _X_EXPORT const char *xf86ServerName;
75
76/* Other parameters */
77
78extern _X_EXPORT xf86InfoRec xf86Info;
79extern _X_EXPORT const char *xf86ModulePath;
80extern _X_EXPORT MessageType xf86ModPathFrom;
81extern _X_EXPORT const char *xf86LogFile;
82extern _X_EXPORT MessageType xf86LogFileFrom;
83extern _X_EXPORT Bool xf86LogFileWasOpened;
84extern _X_EXPORT serverLayoutRec xf86ConfigLayout;
85
86extern _X_EXPORT DriverPtr *xf86DriverList;
87extern _X_EXPORT int xf86NumDrivers;
88extern _X_EXPORT Bool xf86Resetting;
89extern _X_EXPORT Bool xf86Initialising;
90extern _X_EXPORT int xf86NumScreens;
91extern _X_EXPORT const char *xf86VisualNames[];
92extern _X_EXPORT int xf86Verbose; /* verbosity level */
93extern _X_EXPORT int xf86LogVerbose; /* log file verbosity level */
94extern _X_EXPORT Bool xorgHWAccess;
95
96extern _X_EXPORT RootWinPropPtr *xf86RegisteredPropertiesTable;
97
98extern ScrnInfoPtr *xf86GPUScreens; /* List of pointers to ScrnInfoRecs */
99extern int xf86NumGPUScreens;
100#ifndef DEFAULT_VERBOSE
101#define DEFAULT_VERBOSE 0
102#endif
103#ifndef DEFAULT_LOG_VERBOSE
104#define DEFAULT_LOG_VERBOSE 3
105#endif
106#ifndef DEFAULT_DPI
107#define DEFAULT_DPI 96
108#endif
109
110/* Function Prototypes */
111#ifndef _NO_XF86_PROTOTYPES
112
113/* xf86Bus.c */
114extern _X_EXPORT Bool xf86BusConfig(void);
115extern _X_EXPORT void xf86BusProbe(void);
116extern _X_EXPORT void xf86AccessEnter(void);
117extern _X_EXPORT void xf86AccessLeave(void);
118extern _X_EXPORT void xf86PostProbe(void);
119extern _X_EXPORT void xf86ClearEntityListForScreen(ScrnInfoPtr pScrn);
120extern _X_EXPORT void xf86AddDevToEntity(int entityIndex, GDevPtr dev);
121extern _X_EXPORT void xf86RemoveDevFromEntity(int entityIndex, GDevPtr dev);
122
123/* xf86Config.c */
124
125extern _X_EXPORT Bool xf86PathIsSafe(const char *path);
126
127/* xf86DefaultModes */
128
129extern _X_EXPORT const DisplayModeRec xf86DefaultModes[];
130extern _X_EXPORT const int xf86NumDefaultModes;
131
132/* xf86Configure.c */
133extern _X_EXPORT void
134DoConfigure(void)
135 _X_NORETURN;
136extern _X_EXPORT void
137DoShowOptions(void)
138 _X_NORETURN;
139
140/* xf86Events.c */
141
142extern _X_EXPORT void
143xf86Wakeup(pointer blockData, int err, pointer pReadmask);
144extern _X_HIDDEN int
145xf86SigWrapper(int signo);
146extern _X_EXPORT void
147xf86HandlePMEvents(int fd, pointer data);
148extern _X_EXPORT int (*xf86PMGetEventFromOs) (int fd, pmEvent * events,
149 int num);
150extern _X_EXPORT pmWait (*xf86PMConfirmEventToOs) (int fd, pmEvent event);
151
152/* xf86Helper.c */
153extern _X_EXPORT void
154xf86LogInit(void);
155extern _X_EXPORT void
156xf86CloseLog(enum ExitCode error);
157
158/* xf86Init.c */
159extern _X_EXPORT Bool
160xf86LoadModules(char **list, pointer *optlist);
161extern _X_EXPORT int
162xf86SetVerbosity(int verb);
163extern _X_EXPORT int
164xf86SetLogVerbosity(int verb);
165extern _X_EXPORT Bool
166xf86CallDriverProbe(struct _DriverRec *drv, Bool detect_only);
167extern _X_EXPORT Bool
168xf86PrivsElevated(void);
169
170#endif /* _NO_XF86_PROTOTYPES */
171
172#endif /* _XF86PRIV_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette