VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.12.0/panoramiXsrv.h@ 78293

Last change on this file since 78293 was 40349, checked in by vboxsync, 13 years ago

Additions/xorg: support X.Org Server 1.12.

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1
2#ifdef HAVE_DIX_CONFIG_H
3#include <dix-config.h>
4#endif
5
6#ifndef _PANORAMIXSRV_H_
7#define _PANORAMIXSRV_H_
8
9#include "panoramiX.h"
10
11extern _X_EXPORT int PanoramiXNumScreens;
12extern _X_EXPORT int PanoramiXPixWidth;
13extern _X_EXPORT int PanoramiXPixHeight;
14
15extern _X_EXPORT VisualID PanoramiXTranslateVisualID(int screen, VisualID orig);
16extern _X_EXPORT void PanoramiXConsolidate(void);
17extern _X_EXPORT Bool PanoramiXCreateConnectionBlock(void);
18extern _X_EXPORT PanoramiXRes * PanoramiXFindIDByScrnum(RESTYPE, XID, int);
19extern _X_EXPORT Bool XineramaRegisterConnectionBlockCallback(void (*func)(void));
20extern _X_EXPORT int XineramaDeleteResource(pointer, XID);
21
22extern _X_EXPORT void XineramaReinitData(void);
23
24extern _X_EXPORT RESTYPE XRC_DRAWABLE;
25extern _X_EXPORT RESTYPE XRT_WINDOW;
26extern _X_EXPORT RESTYPE XRT_PIXMAP;
27extern _X_EXPORT RESTYPE XRT_GC;
28extern _X_EXPORT RESTYPE XRT_COLORMAP;
29extern _X_EXPORT RESTYPE XRT_PICTURE;
30
31/*
32 * Drivers are allowed to wrap this function. Each wrapper can decide that the
33 * two visuals are unequal, but if they are deemed equal, the wrapper must call
34 * down and return FALSE if the wrapped function does. This ensures that all
35 * layers agree that the visuals are equal. The first visual is always from
36 * screen 0.
37 */
38typedef Bool (*XineramaVisualsEqualProcPtr)(VisualPtr, ScreenPtr, VisualPtr);
39extern _X_EXPORT XineramaVisualsEqualProcPtr XineramaVisualsEqualPtr;
40
41extern _X_EXPORT void XineramaGetImageData(
42 DrawablePtr *pDrawables,
43 int left,
44 int top,
45 int width,
46 int height,
47 unsigned int format,
48 unsigned long planemask,
49 char *data,
50 int pitch,
51 Bool isRoot
52);
53
54static inline void panoramix_setup_ids(PanoramiXRes *resource,
55 ClientPtr client, XID base_id)
56{
57 int j;
58
59 resource->info[0].id = base_id;
60 FOR_NSCREENS_FORWARD_SKIP(j) {
61 resource->info[j].id = FakeClientID(client->index);
62 }
63}
64
65#endif /* _PANORAMIXSRV_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