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