1 /*****************************************************************
2 Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
3 Permission is hereby granted, free of charge, to any person obtaining a copy
4 of this software and associated documentation files (the "Software"), to deal
5 in the Software without restriction, including without limitation the rights
6 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 copies of the Software.
9 The above copyright notice and this permission notice shall be included in
10 all copies or substantial portions of the Software.
12 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
15 DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
16 BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
17 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
18 IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 Except as contained in this notice, the name of Digital Equipment Corporation
21 shall not be used in advertising or otherwise to promote the sale, use or other
22 dealings in this Software without prior written authorization from Digital
23 Equipment Corporation.
24 ******************************************************************/
26 #ifdef HAVE_DIX_CONFIG_H
27 #include <dix-config.h>
32 #include <X11/Xproto.h>
35 #include "cursorstr.h"
36 #include "extnsionst.h"
37 #include "dixstruct.h"
40 #include "scrnintstr.h"
42 #include "windowstr.h"
43 #include "pixmapstr.h"
45 #include <sys/workstation.h>
46 #include <X11/Xserver/ws.h>
48 #include "panoramiX.h"
49 #include <X11/extensions/panoramiXproto.h>
50 #include "panoramiXsrv.h"
52 #include "panoramiXh.h"
55 SProcPanoramiXQueryVersion (ClientPtr client
)
57 REQUEST(xPanoramiXQueryVersionReq
);
60 swaps(&stuff
->length
,n
);
61 REQUEST_SIZE_MATCH (xPanoramiXQueryVersionReq
);
62 return ProcPanoramiXQueryVersion(client
);
66 SProcPanoramiXGetState(ClientPtr client
)
68 REQUEST(xPanoramiXGetStateReq
);
71 swaps (&stuff
->length
, n
);
72 REQUEST_SIZE_MATCH(xPanoramiXGetStateReq
);
73 return ProcPanoramiXGetState(client
);
77 SProcPanoramiXGetScreenCount(ClientPtr client
)
79 REQUEST(xPanoramiXGetScreenCountReq
);
82 swaps (&stuff
->length
, n
);
83 REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq
);
84 return ProcPanoramiXGetScreenCount(client
);
88 SProcPanoramiXGetScreenSize(ClientPtr client
)
90 REQUEST(xPanoramiXGetScreenSizeReq
);
93 swaps (&stuff
->length
, n
);
94 REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq
);
95 return ProcPanoramiXGetScreenSize(client
);
100 SProcXineramaIsActive(ClientPtr client
)
102 REQUEST(xXineramaIsActiveReq
);
105 swaps (&stuff
->length
, n
);
106 REQUEST_SIZE_MATCH(xXineramaIsActiveReq
);
107 return ProcXineramaIsActive(client
);
112 SProcXineramaQueryScreens(ClientPtr client
)
114 REQUEST(xXineramaQueryScreensReq
);
117 swaps (&stuff
->length
, n
);
118 REQUEST_SIZE_MATCH(xXineramaQueryScreensReq
);
119 return ProcXineramaQueryScreens(client
);
124 SProcPanoramiXDispatch (ClientPtr client
)
128 case X_PanoramiXQueryVersion
:
129 return SProcPanoramiXQueryVersion(client
);
130 case X_PanoramiXGetState
:
131 return SProcPanoramiXGetState(client
);
132 case X_PanoramiXGetScreenCount
:
133 return SProcPanoramiXGetScreenCount(client
);
134 case X_PanoramiXGetScreenSize
:
135 return SProcPanoramiXGetScreenSize(client
);
136 case X_XineramaIsActive
:
137 return SProcXineramaIsActive(client
);
138 case X_XineramaQueryScreens
:
139 return SProcXineramaQueryScreens(client
);