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