diff options
Diffstat (limited to 'apps/plugins/sdl/src/video/Xext/extensions')
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/Xext.h | 50 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/Xinerama.h | 46 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/Xv.h | 129 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/Xvlib.h | 433 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/Xvproto.h | 604 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/extutil.h | 226 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/panoramiXext.h | 52 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/panoramiXproto.h | 192 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/xf86dga.h | 265 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/xf86dga1.h | 169 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/xf86dga1str.h | 194 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/xf86dgastr.h | 344 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/xf86vmode.h | 314 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/xf86vmstr.h | 546 | ||||
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/extensions/xme.h | 45 |
15 files changed, 0 insertions, 3609 deletions
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/Xext.h b/apps/plugins/sdl/src/video/Xext/extensions/Xext.h deleted file mode 100644 index 9edf3194b4..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/Xext.h +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | /* | ||
2 | Copyright 1989, 1998 The Open Group | ||
3 | |||
4 | Permission to use, copy, modify, distribute, and sell this software and its | ||
5 | documentation for any purpose is hereby granted without fee, provided that | ||
6 | the above copyright notice appear in all copies and that both that | ||
7 | copyright notice and this permission notice appear in supporting | ||
8 | documentation. | ||
9 | |||
10 | The above copyright notice and this permission notice shall be included in | ||
11 | all copies or substantial portions of the Software. | ||
12 | |||
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
16 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
17 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
19 | |||
20 | Except as contained in this notice, the name of The Open Group shall not be | ||
21 | used in advertising or otherwise to promote the sale, use or other dealings | ||
22 | in this Software without prior written authorization from The Open Group. | ||
23 | */ | ||
24 | /* $XFree86: xc/include/extensions/Xext.h,v 1.7 2005/01/27 03:03:09 dawes Exp $ */ | ||
25 | |||
26 | #ifndef _XEXT_H_ | ||
27 | #define _XEXT_H_ | ||
28 | |||
29 | #include <X11/Xfuncproto.h> | ||
30 | |||
31 | _XFUNCPROTOBEGIN | ||
32 | |||
33 | typedef int (*XExtensionErrorHandler)(Display *, _Xconst char *, | ||
34 | _Xconst char *); | ||
35 | |||
36 | extern XExtensionErrorHandler XSetExtensionErrorHandler( | ||
37 | XExtensionErrorHandler handler | ||
38 | ); | ||
39 | |||
40 | extern int XMissingExtension( | ||
41 | Display* /* dpy */, | ||
42 | _Xconst char* /* ext_name */ | ||
43 | ); | ||
44 | |||
45 | _XFUNCPROTOEND | ||
46 | |||
47 | #define X_EXTENSION_UNKNOWN "unknown" | ||
48 | #define X_EXTENSION_MISSING "missing" | ||
49 | |||
50 | #endif /* _XEXT_H_ */ | ||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/Xinerama.h b/apps/plugins/sdl/src/video/Xext/extensions/Xinerama.h deleted file mode 100644 index 54f2fe17d2..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/Xinerama.h +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | /* $XFree86: xc/include/extensions/Xinerama.h,v 3.2 2000/03/01 01:04:20 dawes Exp $ */ | ||
2 | |||
3 | #ifndef _Xinerama_h | ||
4 | #define _Xinerama_h | ||
5 | |||
6 | #include "SDL_name.h" | ||
7 | |||
8 | typedef struct { | ||
9 | int screen_number; | ||
10 | short x_org; | ||
11 | short y_org; | ||
12 | short width; | ||
13 | short height; | ||
14 | } SDL_NAME(XineramaScreenInfo); | ||
15 | |||
16 | Bool SDL_NAME(XineramaQueryExtension) ( | ||
17 | Display *dpy, | ||
18 | int *event_base, | ||
19 | int *error_base | ||
20 | ); | ||
21 | |||
22 | Status SDL_NAME(XineramaQueryVersion)( | ||
23 | Display *dpy, | ||
24 | int *major, | ||
25 | int *minor | ||
26 | ); | ||
27 | |||
28 | Bool SDL_NAME(XineramaIsActive)(Display *dpy); | ||
29 | |||
30 | |||
31 | /* | ||
32 | Returns the number of heads and a pointer to an array of | ||
33 | structures describing the position and size of the individual | ||
34 | heads. Returns NULL and number = 0 if Xinerama is not active. | ||
35 | |||
36 | Returned array should be freed with XFree(). | ||
37 | */ | ||
38 | |||
39 | SDL_NAME(XineramaScreenInfo) * | ||
40 | SDL_NAME(XineramaQueryScreens)( | ||
41 | Display *dpy, | ||
42 | int *number | ||
43 | ); | ||
44 | |||
45 | #endif /* _Xinerama_h */ | ||
46 | |||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/Xv.h b/apps/plugins/sdl/src/video/Xext/extensions/Xv.h deleted file mode 100644 index a6a027195f..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/Xv.h +++ /dev/null | |||
@@ -1,129 +0,0 @@ | |||
1 | /*********************************************************** | ||
2 | Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts, | ||
3 | and the Massachusetts Institute of Technology, Cambridge, Massachusetts. | ||
4 | |||
5 | All Rights Reserved | ||
6 | |||
7 | Permission to use, copy, modify, and distribute this software and its | ||
8 | documentation for any purpose and without fee is hereby granted, | ||
9 | provided that the above copyright notice appear in all copies and that | ||
10 | both that copyright notice and this permission notice appear in | ||
11 | supporting documentation, and that the names of Digital or MIT not be | ||
12 | used in advertising or publicity pertaining to distribution of the | ||
13 | software without specific, written prior permission. | ||
14 | |||
15 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
16 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
17 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
18 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
19 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
20 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
21 | SOFTWARE. | ||
22 | |||
23 | ******************************************************************/ | ||
24 | /* $XFree86: xc/include/extensions/Xv.h,v 1.5 1999/12/11 19:28:48 mvojkovi Exp $ */ | ||
25 | |||
26 | #ifndef XV_H | ||
27 | #define XV_H | ||
28 | /* | ||
29 | ** File: | ||
30 | ** | ||
31 | ** Xv.h --- Xv shared library and server header file | ||
32 | ** | ||
33 | ** Author: | ||
34 | ** | ||
35 | ** David Carver (Digital Workstation Engineering/Project Athena) | ||
36 | ** | ||
37 | ** Revisions: | ||
38 | ** | ||
39 | ** 05.15.91 Carver | ||
40 | ** - version 2.0 upgrade | ||
41 | ** | ||
42 | ** 01.24.91 Carver | ||
43 | ** - version 1.4 upgrade | ||
44 | ** | ||
45 | */ | ||
46 | |||
47 | #include <X11/X.h> | ||
48 | |||
49 | #define XvName "XVideo" | ||
50 | #define XvVersion 2 | ||
51 | #define XvRevision 2 | ||
52 | |||
53 | /* Symbols */ | ||
54 | |||
55 | typedef XID XvPortID; | ||
56 | typedef XID XvEncodingID; | ||
57 | |||
58 | #define XvNone 0 | ||
59 | |||
60 | #define XvInput 0 | ||
61 | #define XvOutput 1 | ||
62 | |||
63 | #define XvInputMask (1L<<XvInput) | ||
64 | #define XvOutputMask (1L<<XvOutput) | ||
65 | #define XvVideoMask 0x00000004 | ||
66 | #define XvStillMask 0x00000008 | ||
67 | #define XvImageMask 0x00000010 | ||
68 | |||
69 | /* These two are not client viewable */ | ||
70 | #define XvPixmapMask 0x00010000 | ||
71 | #define XvWindowMask 0x00020000 | ||
72 | |||
73 | |||
74 | #define XvGettable 0x01 | ||
75 | #define XvSettable 0x02 | ||
76 | |||
77 | #define XvRGB 0 | ||
78 | #define XvYUV 1 | ||
79 | |||
80 | #define XvPacked 0 | ||
81 | #define XvPlanar 1 | ||
82 | |||
83 | #define XvTopToBottom 0 | ||
84 | #define XvBottomToTop 1 | ||
85 | |||
86 | |||
87 | /* Events */ | ||
88 | |||
89 | #define XvVideoNotify 0 | ||
90 | #define XvPortNotify 1 | ||
91 | #define XvNumEvents 2 | ||
92 | |||
93 | /* Video Notify Reasons */ | ||
94 | |||
95 | #define XvStarted 0 | ||
96 | #define XvStopped 1 | ||
97 | #define XvBusy 2 | ||
98 | #define XvPreempted 3 | ||
99 | #define XvHardError 4 | ||
100 | #define XvLastReason 4 | ||
101 | |||
102 | #define XvNumReasons (XvLastReason + 1) | ||
103 | |||
104 | #define XvStartedMask (1L<<XvStarted) | ||
105 | #define XvStoppedMask (1L<<XvStopped) | ||
106 | #define XvBusyMask (1L<<XvBusy) | ||
107 | #define XvPreemptedMask (1L<<XvPreempted) | ||
108 | #define XvHardErrorMask (1L<<XvHardError) | ||
109 | |||
110 | #define XvAnyReasonMask ((1L<<XvNumReasons) - 1) | ||
111 | #define XvNoReasonMask 0 | ||
112 | |||
113 | /* Errors */ | ||
114 | |||
115 | #define XvBadPort 0 | ||
116 | #define XvBadEncoding 1 | ||
117 | #define XvBadControl 2 | ||
118 | #define XvNumErrors 3 | ||
119 | |||
120 | /* Status */ | ||
121 | |||
122 | #define XvBadExtension 1 | ||
123 | #define XvAlreadyGrabbed 2 | ||
124 | #define XvInvalidTime 3 | ||
125 | #define XvBadReply 4 | ||
126 | #define XvBadAlloc 5 | ||
127 | |||
128 | #endif /* XV_H */ | ||
129 | |||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/Xvlib.h b/apps/plugins/sdl/src/video/Xext/extensions/Xvlib.h deleted file mode 100644 index 0d0a55da40..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/Xvlib.h +++ /dev/null | |||
@@ -1,433 +0,0 @@ | |||
1 | /*********************************************************** | ||
2 | Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts, | ||
3 | and the Massachusetts Institute of Technology, Cambridge, Massachusetts. | ||
4 | |||
5 | All Rights Reserved | ||
6 | |||
7 | Permission to use, copy, modify, and distribute this software and its | ||
8 | documentation for any purpose and without fee is hereby granted, | ||
9 | provided that the above copyright notice appear in all copies and that | ||
10 | both that copyright notice and this permission notice appear in | ||
11 | supporting documentation, and that the names of Digital or MIT not be | ||
12 | used in advertising or publicity pertaining to distribution of the | ||
13 | software without specific, written prior permission. | ||
14 | |||
15 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
16 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
17 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
18 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
19 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
20 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
21 | SOFTWARE. | ||
22 | |||
23 | ******************************************************************/ | ||
24 | /* $XFree86: xc/include/extensions/Xvlib.h,v 1.3 1999/12/11 19:28:48 mvojkovi Exp $ */ | ||
25 | |||
26 | #ifndef XVLIB_H | ||
27 | #define XVLIB_H | ||
28 | /* | ||
29 | ** File: | ||
30 | ** | ||
31 | ** Xvlib.h --- Xv library public header file | ||
32 | ** | ||
33 | ** Author: | ||
34 | ** | ||
35 | ** David Carver (Digital Workstation Engineering/Project Athena) | ||
36 | ** | ||
37 | ** Revisions: | ||
38 | ** | ||
39 | ** 26.06.91 Carver | ||
40 | ** - changed XvFreeAdaptors to XvFreeAdaptorInfo | ||
41 | ** - changed XvFreeEncodings to XvFreeEncodingInfo | ||
42 | ** | ||
43 | ** 11.06.91 Carver | ||
44 | ** - changed SetPortControl to SetPortAttribute | ||
45 | ** - changed GetPortControl to GetPortAttribute | ||
46 | ** - changed QueryBestSize | ||
47 | ** | ||
48 | ** 05.15.91 Carver | ||
49 | ** - version 2.0 upgrade | ||
50 | ** | ||
51 | ** 01.24.91 Carver | ||
52 | ** - version 1.4 upgrade | ||
53 | ** | ||
54 | */ | ||
55 | |||
56 | #include <X11/Xfuncproto.h> | ||
57 | #include "Xv.h" | ||
58 | #include "SDL_name.h" | ||
59 | |||
60 | typedef struct { | ||
61 | int numerator; | ||
62 | int denominator; | ||
63 | } SDL_NAME(XvRational); | ||
64 | |||
65 | typedef struct { | ||
66 | int flags; /* XvGettable, XvSettable */ | ||
67 | int min_value; | ||
68 | int max_value; | ||
69 | char *name; | ||
70 | } SDL_NAME(XvAttribute); | ||
71 | |||
72 | typedef struct { | ||
73 | XvEncodingID encoding_id; | ||
74 | char *name; | ||
75 | unsigned long width; | ||
76 | unsigned long height; | ||
77 | SDL_NAME(XvRational) rate; | ||
78 | unsigned long num_encodings; | ||
79 | } SDL_NAME(XvEncodingInfo); | ||
80 | |||
81 | typedef struct { | ||
82 | char depth; | ||
83 | unsigned long visual_id; | ||
84 | } SDL_NAME(XvFormat); | ||
85 | |||
86 | typedef struct { | ||
87 | XvPortID base_id; | ||
88 | unsigned long num_ports; | ||
89 | char type; | ||
90 | char *name; | ||
91 | unsigned long num_formats; | ||
92 | SDL_NAME(XvFormat) *formats; | ||
93 | unsigned long num_adaptors; | ||
94 | } SDL_NAME(XvAdaptorInfo); | ||
95 | |||
96 | typedef struct { | ||
97 | int type; | ||
98 | unsigned long serial; /* # of last request processed by server */ | ||
99 | Bool send_event; /* true if this came from a SendEvent request */ | ||
100 | Display *display; /* Display the event was read from */ | ||
101 | Drawable drawable; /* drawable */ | ||
102 | unsigned long reason; /* what generated this event */ | ||
103 | XvPortID port_id; /* what port */ | ||
104 | Time time; /* milliseconds */ | ||
105 | } SDL_NAME(XvVideoNotifyEvent); | ||
106 | |||
107 | typedef struct { | ||
108 | int type; | ||
109 | unsigned long serial; /* # of last request processed by server */ | ||
110 | Bool send_event; /* true if this came from a SendEvent request */ | ||
111 | Display *display; /* Display the event was read from */ | ||
112 | XvPortID port_id; /* what port */ | ||
113 | Time time; /* milliseconds */ | ||
114 | Atom attribute; /* atom that identifies attribute */ | ||
115 | long value; /* value of attribute */ | ||
116 | } SDL_NAME(XvPortNotifyEvent); | ||
117 | |||
118 | typedef union { | ||
119 | int type; | ||
120 | SDL_NAME(XvVideoNotifyEvent) xvvideo; | ||
121 | SDL_NAME(XvPortNotifyEvent) xvport; | ||
122 | long pad[24]; | ||
123 | } SDL_NAME(XvEvent); | ||
124 | |||
125 | typedef struct { | ||
126 | int id; /* Unique descriptor for the format */ | ||
127 | int type; /* XvRGB, XvYUV */ | ||
128 | int byte_order; /* LSBFirst, MSBFirst */ | ||
129 | char guid[16]; /* Globally Unique IDentifier */ | ||
130 | int bits_per_pixel; | ||
131 | int format; /* XvPacked, XvPlanar */ | ||
132 | int num_planes; | ||
133 | |||
134 | /* for RGB formats only */ | ||
135 | int depth; | ||
136 | unsigned int red_mask; | ||
137 | unsigned int green_mask; | ||
138 | unsigned int blue_mask; | ||
139 | |||
140 | /* for YUV formats only */ | ||
141 | unsigned int y_sample_bits; | ||
142 | unsigned int u_sample_bits; | ||
143 | unsigned int v_sample_bits; | ||
144 | unsigned int horz_y_period; | ||
145 | unsigned int horz_u_period; | ||
146 | unsigned int horz_v_period; | ||
147 | unsigned int vert_y_period; | ||
148 | unsigned int vert_u_period; | ||
149 | unsigned int vert_v_period; | ||
150 | char component_order[32]; /* eg. UYVY */ | ||
151 | int scanline_order; /* XvTopToBottom, XvBottomToTop */ | ||
152 | } SDL_NAME(XvImageFormatValues); | ||
153 | |||
154 | typedef struct { | ||
155 | int id; | ||
156 | int width, height; | ||
157 | int data_size; /* bytes */ | ||
158 | int num_planes; | ||
159 | int *pitches; /* bytes */ | ||
160 | int *offsets; /* bytes */ | ||
161 | char *data; | ||
162 | XPointer obdata; | ||
163 | } SDL_NAME(XvImage); | ||
164 | |||
165 | _XFUNCPROTOBEGIN | ||
166 | |||
167 | extern int SDL_NAME(XvQueryExtension)( | ||
168 | #if NeedFunctionPrototypes | ||
169 | Display* /* display */, | ||
170 | unsigned int* /* p_version */, | ||
171 | unsigned int* /* p_revision */, | ||
172 | unsigned int* /* p_requestBase */, | ||
173 | unsigned int* /* p_eventBase */, | ||
174 | unsigned int* /* p_errorBase */ | ||
175 | #endif | ||
176 | ); | ||
177 | |||
178 | extern int SDL_NAME(XvQueryAdaptors)( | ||
179 | #if NeedFunctionPrototypes | ||
180 | Display* /* display */, | ||
181 | Window /* window */, | ||
182 | unsigned int* /* p_nAdaptors */, | ||
183 | SDL_NAME(XvAdaptorInfo)** /* p_pAdaptors */ | ||
184 | #endif | ||
185 | ); | ||
186 | |||
187 | extern int SDL_NAME(XvQueryEncodings)( | ||
188 | #if NeedFunctionPrototypes | ||
189 | Display* /* display */, | ||
190 | XvPortID /* port */, | ||
191 | unsigned int* /* p_nEncoding */, | ||
192 | SDL_NAME(XvEncodingInfo)** /* p_pEncoding */ | ||
193 | #endif | ||
194 | ); | ||
195 | |||
196 | extern int SDL_NAME(XvPutVideo)( | ||
197 | #if NeedFunctionPrototypes | ||
198 | Display* /* display */, | ||
199 | XvPortID /* port */, | ||
200 | Drawable /* d */, | ||
201 | GC /* gc */, | ||
202 | int /* vx */, | ||
203 | int /* vy */, | ||
204 | unsigned int /* vw */, | ||
205 | unsigned int /* vh */, | ||
206 | int /* dx */, | ||
207 | int /* dy */, | ||
208 | unsigned int /* dw */, | ||
209 | unsigned int /* dh */ | ||
210 | #endif | ||
211 | ); | ||
212 | |||
213 | extern int SDL_NAME(XvPutStill)( | ||
214 | #if NeedFunctionPrototypes | ||
215 | Display* /* display */, | ||
216 | XvPortID /* port */, | ||
217 | Drawable /* d */, | ||
218 | GC /* gc */, | ||
219 | int /* vx */, | ||
220 | int /* vy */, | ||
221 | unsigned int /* vw */, | ||
222 | unsigned int /* vh */, | ||
223 | int /* dx */, | ||
224 | int /* dy */, | ||
225 | unsigned int /* dw */, | ||
226 | unsigned int /* dh */ | ||
227 | #endif | ||
228 | ); | ||
229 | |||
230 | extern int SDL_NAME(XvGetVideo)( | ||
231 | #if NeedFunctionPrototypes | ||
232 | Display* /* display */, | ||
233 | XvPortID /* port */, | ||
234 | Drawable /* d */, | ||
235 | GC /* gc */, | ||
236 | int /* vx */, | ||
237 | int /* vy */, | ||
238 | unsigned int /* vw */, | ||
239 | unsigned int /* vh */, | ||
240 | int /* dx */, | ||
241 | int /* dy */, | ||
242 | unsigned int /* dw */, | ||
243 | unsigned int /* dh */ | ||
244 | #endif | ||
245 | ); | ||
246 | |||
247 | extern int SDL_NAME(XvGetStill)( | ||
248 | #if NeedFunctionPrototypes | ||
249 | Display* /* display */, | ||
250 | XvPortID /* port */, | ||
251 | Drawable /* d */, | ||
252 | GC /* gc */, | ||
253 | int /* vx */, | ||
254 | int /* vy */, | ||
255 | unsigned int /* vw */, | ||
256 | unsigned int /* vh */, | ||
257 | int /* dx */, | ||
258 | int /* dy */, | ||
259 | unsigned int /* dw */, | ||
260 | unsigned int /* dh */ | ||
261 | #endif | ||
262 | ); | ||
263 | |||
264 | extern int SDL_NAME(XvStopVideo)( | ||
265 | #if NeedFunctionPrototypes | ||
266 | Display* /* display */, | ||
267 | XvPortID /* port */, | ||
268 | Drawable /* drawable */ | ||
269 | #endif | ||
270 | ); | ||
271 | |||
272 | extern int SDL_NAME(XvGrabPort)( | ||
273 | #if NeedFunctionPrototypes | ||
274 | Display* /* display */, | ||
275 | XvPortID /* port */, | ||
276 | Time /* time */ | ||
277 | #endif | ||
278 | ); | ||
279 | |||
280 | extern int SDL_NAME(XvUngrabPort)( | ||
281 | #if NeedFunctionPrototypes | ||
282 | Display* /* display */, | ||
283 | XvPortID /* port */, | ||
284 | Time /* time */ | ||
285 | #endif | ||
286 | ); | ||
287 | |||
288 | extern int SDL_NAME(XvSelectVideoNotify)( | ||
289 | #if NeedFunctionPrototypes | ||
290 | Display* /* display */, | ||
291 | Drawable /* drawable */, | ||
292 | Bool /* onoff */ | ||
293 | #endif | ||
294 | ); | ||
295 | |||
296 | extern int SDL_NAME(XvSelectPortNotify)( | ||
297 | #if NeedFunctionPrototypes | ||
298 | Display* /* display */, | ||
299 | XvPortID /* port */, | ||
300 | Bool /* onoff */ | ||
301 | #endif | ||
302 | ); | ||
303 | |||
304 | extern int SDL_NAME(XvSetPortAttribute)( | ||
305 | #if NeedFunctionPrototypes | ||
306 | Display* /* display */, | ||
307 | XvPortID /* port */, | ||
308 | Atom /* attribute */, | ||
309 | int /* value */ | ||
310 | #endif | ||
311 | ); | ||
312 | |||
313 | extern int SDL_NAME(XvGetPortAttribute)( | ||
314 | #if NeedFunctionPrototypes | ||
315 | Display* /* display */, | ||
316 | XvPortID /* port */, | ||
317 | Atom /* attribute */, | ||
318 | int* /* p_value */ | ||
319 | #endif | ||
320 | ); | ||
321 | |||
322 | extern int SDL_NAME(XvQueryBestSize)( | ||
323 | #if NeedFunctionPrototypes | ||
324 | Display* /* display */, | ||
325 | XvPortID /* port */, | ||
326 | Bool /* motion */, | ||
327 | unsigned int /* vid_w */, | ||
328 | unsigned int /* vid_h */, | ||
329 | unsigned int /* drw_w */, | ||
330 | unsigned int /* drw_h */, | ||
331 | unsigned int* /* p_actual_width */, | ||
332 | unsigned int* /* p_actual_width */ | ||
333 | #endif | ||
334 | ); | ||
335 | |||
336 | extern SDL_NAME(XvAttribute)* SDL_NAME(XvQueryPortAttributes)( | ||
337 | #if NeedFunctionPrototypes | ||
338 | Display* /* display */, | ||
339 | XvPortID /* port */, | ||
340 | int* /* number */ | ||
341 | #endif | ||
342 | ); | ||
343 | |||
344 | |||
345 | extern void SDL_NAME(XvFreeAdaptorInfo)( | ||
346 | #if NeedFunctionPrototypes | ||
347 | SDL_NAME(XvAdaptorInfo)* /* adaptors */ | ||
348 | #endif | ||
349 | ); | ||
350 | |||
351 | extern void SDL_NAME(XvFreeEncodingInfo)( | ||
352 | #if NeedFunctionPrototypes | ||
353 | SDL_NAME(XvEncodingInfo)* /* encodings */ | ||
354 | #endif | ||
355 | ); | ||
356 | |||
357 | |||
358 | extern SDL_NAME(XvImageFormatValues) * SDL_NAME(XvListImageFormats) ( | ||
359 | #if NeedFunctionPrototypes | ||
360 | Display *display, | ||
361 | XvPortID port_id, | ||
362 | int *count_return | ||
363 | #endif | ||
364 | ); | ||
365 | |||
366 | extern SDL_NAME(XvImage) * SDL_NAME(XvCreateImage) ( | ||
367 | #if NeedFunctionPrototypes | ||
368 | Display *display, | ||
369 | XvPortID port, | ||
370 | int id, | ||
371 | char *data, | ||
372 | int width, | ||
373 | int height | ||
374 | #endif | ||
375 | ); | ||
376 | |||
377 | extern int SDL_NAME(XvPutImage) ( | ||
378 | #if NeedFunctionPrototypes | ||
379 | Display *display, | ||
380 | XvPortID id, | ||
381 | Drawable d, | ||
382 | GC gc, | ||
383 | SDL_NAME(XvImage) *image, | ||
384 | int src_x, | ||
385 | int src_y, | ||
386 | unsigned int src_w, | ||
387 | unsigned int src_h, | ||
388 | int dest_x, | ||
389 | int dest_y, | ||
390 | unsigned int dest_w, | ||
391 | unsigned int dest_h | ||
392 | #endif | ||
393 | ); | ||
394 | |||
395 | extern int SDL_NAME(XvShmPutImage) ( | ||
396 | #if NeedFunctionPrototypes | ||
397 | Display *display, | ||
398 | XvPortID id, | ||
399 | Drawable d, | ||
400 | GC gc, | ||
401 | SDL_NAME(XvImage) *image, | ||
402 | int src_x, | ||
403 | int src_y, | ||
404 | unsigned int src_w, | ||
405 | unsigned int src_h, | ||
406 | int dest_x, | ||
407 | int dest_y, | ||
408 | unsigned int dest_w, | ||
409 | unsigned int dest_h, | ||
410 | Bool send_event | ||
411 | #endif | ||
412 | ); | ||
413 | |||
414 | #ifdef _XSHM_H_ | ||
415 | |||
416 | extern SDL_NAME(XvImage) * SDL_NAME(XvShmCreateImage) ( | ||
417 | #if NeedFunctionPrototypes | ||
418 | Display *display, | ||
419 | XvPortID port, | ||
420 | int id, | ||
421 | char* data, | ||
422 | int width, | ||
423 | int height, | ||
424 | XShmSegmentInfo *shminfo | ||
425 | #endif | ||
426 | ); | ||
427 | |||
428 | #endif | ||
429 | |||
430 | |||
431 | _XFUNCPROTOEND | ||
432 | |||
433 | #endif /* XVLIB_H */ | ||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/Xvproto.h b/apps/plugins/sdl/src/video/Xext/extensions/Xvproto.h deleted file mode 100644 index b4d8f22cdc..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/Xvproto.h +++ /dev/null | |||
@@ -1,604 +0,0 @@ | |||
1 | /*********************************************************** | ||
2 | Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts, | ||
3 | and the Massachusetts Institute of Technology, Cambridge, Massachusetts. | ||
4 | |||
5 | All Rights Reserved | ||
6 | |||
7 | Permission to use, copy, modify, and distribute this software and its | ||
8 | documentation for any purpose and without fee is hereby granted, | ||
9 | provided that the above copyright notice appear in all copies and that | ||
10 | both that copyright notice and this permission notice appear in | ||
11 | supporting documentation, and that the names of Digital or MIT not be | ||
12 | used in advertising or publicity pertaining to distribution of the | ||
13 | software without specific, written prior permission. | ||
14 | |||
15 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
16 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
17 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
18 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
19 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
20 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
21 | SOFTWARE. | ||
22 | |||
23 | ******************************************************************/ | ||
24 | /* $XFree86: xc/include/extensions/Xvproto.h,v 1.6 2001/05/07 21:37:12 tsi Exp $ */ | ||
25 | |||
26 | #ifndef XVPROTO_H | ||
27 | #define XVPROTO_H | ||
28 | /* | ||
29 | ** File: | ||
30 | ** | ||
31 | ** Xvproto.h --- Xv protocol header file | ||
32 | ** | ||
33 | ** Author: | ||
34 | ** | ||
35 | ** David Carver (Digital Workstation Engineering/Project Athena) | ||
36 | ** | ||
37 | ** Revisions: | ||
38 | ** | ||
39 | ** 11.06.91 Carver | ||
40 | ** - changed SetPortControl to SetPortAttribute | ||
41 | ** - changed GetPortControl to GetPortAttribute | ||
42 | ** - changed QueryBestSize | ||
43 | ** | ||
44 | ** 15.05.91 Carver | ||
45 | ** - version 2.0 upgrade | ||
46 | ** | ||
47 | ** 24.01.91 Carver | ||
48 | ** - version 1.4 upgrade | ||
49 | ** | ||
50 | */ | ||
51 | |||
52 | #include <X11/Xmd.h> | ||
53 | |||
54 | /* Symbols: These are undefined at the end of this file to restore the | ||
55 | values they have in Xv.h */ | ||
56 | |||
57 | #define XvPortID CARD32 | ||
58 | #define XvEncodingID CARD32 | ||
59 | #define ShmSeg CARD32 | ||
60 | #define VisualID CARD32 | ||
61 | #define Drawable CARD32 | ||
62 | #define GContext CARD32 | ||
63 | #define Time CARD32 | ||
64 | #define Atom CARD32 | ||
65 | |||
66 | /* Structures */ | ||
67 | |||
68 | typedef struct { | ||
69 | INT32 numerator B32; | ||
70 | INT32 denominator B32; | ||
71 | } xvRational; | ||
72 | #define sz_xvRational 8 | ||
73 | |||
74 | typedef struct { | ||
75 | XvPortID base_id B32; | ||
76 | CARD16 name_size B16; | ||
77 | CARD16 num_ports B16; | ||
78 | CARD16 num_formats B16; | ||
79 | CARD8 type; | ||
80 | CARD8 pad; | ||
81 | } xvAdaptorInfo; | ||
82 | #define sz_xvAdaptorInfo 12 | ||
83 | |||
84 | typedef struct { | ||
85 | XvEncodingID encoding B32; | ||
86 | CARD16 name_size B16; | ||
87 | CARD16 width B16, height B16; | ||
88 | xvRational rate; | ||
89 | CARD16 pad B16; | ||
90 | } xvEncodingInfo; | ||
91 | #define sz_xvEncodingInfo (12 + sz_xvRational) | ||
92 | |||
93 | typedef struct { | ||
94 | VisualID visual B32; | ||
95 | CARD8 depth; | ||
96 | CARD8 pad1; | ||
97 | CARD16 pad2 B16; | ||
98 | } xvFormat; | ||
99 | #define sz_xvFormat 8 | ||
100 | |||
101 | typedef struct { | ||
102 | CARD32 flags B32; | ||
103 | INT32 min B32; | ||
104 | INT32 max B32; | ||
105 | CARD32 size B32; | ||
106 | } xvAttributeInfo; | ||
107 | #define sz_xvAttributeInfo 16 | ||
108 | |||
109 | typedef struct { | ||
110 | CARD32 id B32; | ||
111 | CARD8 type; | ||
112 | CARD8 byte_order; | ||
113 | CARD16 pad1 B16; | ||
114 | CARD8 guid[16]; | ||
115 | CARD8 bpp; | ||
116 | CARD8 num_planes; | ||
117 | CARD16 pad2 B16; | ||
118 | CARD8 depth; | ||
119 | CARD8 pad3; | ||
120 | CARD16 pad4 B16; | ||
121 | CARD32 red_mask B32; | ||
122 | CARD32 green_mask B32; | ||
123 | CARD32 blue_mask B32; | ||
124 | CARD8 format; | ||
125 | CARD8 pad5; | ||
126 | CARD16 pad6 B16; | ||
127 | CARD32 y_sample_bits B32; | ||
128 | CARD32 u_sample_bits B32; | ||
129 | CARD32 v_sample_bits B32; | ||
130 | CARD32 horz_y_period B32; | ||
131 | CARD32 horz_u_period B32; | ||
132 | CARD32 horz_v_period B32; | ||
133 | CARD32 vert_y_period B32; | ||
134 | CARD32 vert_u_period B32; | ||
135 | CARD32 vert_v_period B32; | ||
136 | CARD8 comp_order[32]; | ||
137 | CARD8 scanline_order; | ||
138 | CARD8 pad7; | ||
139 | CARD16 pad8 B16; | ||
140 | CARD32 pad9 B32; | ||
141 | CARD32 pad10 B32; | ||
142 | } xvImageFormatInfo; | ||
143 | #define sz_xvImageFormatInfo 128 | ||
144 | |||
145 | |||
146 | /* Requests */ | ||
147 | |||
148 | #define xv_QueryExtension 0 | ||
149 | #define xv_QueryAdaptors 1 | ||
150 | #define xv_QueryEncodings 2 | ||
151 | #define xv_GrabPort 3 | ||
152 | #define xv_UngrabPort 4 | ||
153 | #define xv_PutVideo 5 | ||
154 | #define xv_PutStill 6 | ||
155 | #define xv_GetVideo 7 | ||
156 | #define xv_GetStill 8 | ||
157 | #define xv_StopVideo 9 | ||
158 | #define xv_SelectVideoNotify 10 | ||
159 | #define xv_SelectPortNotify 11 | ||
160 | #define xv_QueryBestSize 12 | ||
161 | #define xv_SetPortAttribute 13 | ||
162 | #define xv_GetPortAttribute 14 | ||
163 | #define xv_QueryPortAttributes 15 | ||
164 | #define xv_ListImageFormats 16 | ||
165 | #define xv_QueryImageAttributes 17 | ||
166 | #define xv_PutImage 18 | ||
167 | #define xv_ShmPutImage 19 | ||
168 | #define xv_LastRequest xv_ShmPutImage | ||
169 | |||
170 | #define xvNumRequests (xv_LastRequest + 1) | ||
171 | |||
172 | typedef struct { | ||
173 | CARD8 reqType; | ||
174 | CARD8 xvReqType; | ||
175 | CARD16 length B16; | ||
176 | } xvQueryExtensionReq; | ||
177 | #define sz_xvQueryExtensionReq 4 | ||
178 | |||
179 | typedef struct { | ||
180 | CARD8 reqType; | ||
181 | CARD8 xvReqType; | ||
182 | CARD16 length B16; | ||
183 | CARD32 window B32; | ||
184 | } xvQueryAdaptorsReq; | ||
185 | #define sz_xvQueryAdaptorsReq 8 | ||
186 | |||
187 | typedef struct { | ||
188 | CARD8 reqType; | ||
189 | CARD8 xvReqType; | ||
190 | CARD16 length B16; | ||
191 | CARD32 port B32; | ||
192 | } xvQueryEncodingsReq; | ||
193 | #define sz_xvQueryEncodingsReq 8 | ||
194 | |||
195 | typedef struct { | ||
196 | CARD8 reqType; | ||
197 | CARD8 xvReqType; | ||
198 | CARD16 length B16; | ||
199 | XvPortID port B32; | ||
200 | Drawable drawable B32; | ||
201 | GContext gc B32; | ||
202 | INT16 vid_x B16; | ||
203 | INT16 vid_y B16; | ||
204 | CARD16 vid_w B16; | ||
205 | CARD16 vid_h B16; | ||
206 | INT16 drw_x B16; | ||
207 | INT16 drw_y B16; | ||
208 | CARD16 drw_w B16; | ||
209 | CARD16 drw_h B16; | ||
210 | } xvPutVideoReq; | ||
211 | #define sz_xvPutVideoReq 32 | ||
212 | |||
213 | typedef struct { | ||
214 | CARD8 reqType; | ||
215 | CARD8 xvReqType; | ||
216 | CARD16 length B16; | ||
217 | XvPortID port B32; | ||
218 | Drawable drawable B32; | ||
219 | GContext gc B32; | ||
220 | INT16 vid_x B16; | ||
221 | INT16 vid_y B16; | ||
222 | CARD16 vid_w B16; | ||
223 | CARD16 vid_h B16; | ||
224 | INT16 drw_x B16; | ||
225 | INT16 drw_y B16; | ||
226 | CARD16 drw_w B16; | ||
227 | CARD16 drw_h B16; | ||
228 | } xvPutStillReq; | ||
229 | #define sz_xvPutStillReq 32 | ||
230 | |||
231 | typedef struct { | ||
232 | CARD8 reqType; | ||
233 | CARD8 xvReqType; | ||
234 | CARD16 length B16; | ||
235 | XvPortID port B32; | ||
236 | Drawable drawable B32; | ||
237 | GContext gc B32; | ||
238 | INT16 vid_x B16; | ||
239 | INT16 vid_y B16; | ||
240 | CARD16 vid_w B16; | ||
241 | CARD16 vid_h B16; | ||
242 | INT16 drw_x B16; | ||
243 | INT16 drw_y B16; | ||
244 | CARD16 drw_w B16; | ||
245 | CARD16 drw_h B16; | ||
246 | } xvGetVideoReq; | ||
247 | #define sz_xvGetVideoReq 32 | ||
248 | |||
249 | typedef struct { | ||
250 | CARD8 reqType; | ||
251 | CARD8 xvReqType; | ||
252 | CARD16 length B16; | ||
253 | XvPortID port B32; | ||
254 | Drawable drawable B32; | ||
255 | GContext gc B32; | ||
256 | INT16 vid_x B16; | ||
257 | INT16 vid_y B16; | ||
258 | CARD16 vid_w B16; | ||
259 | CARD16 vid_h B16; | ||
260 | INT16 drw_x B16; | ||
261 | INT16 drw_y B16; | ||
262 | CARD16 drw_w B16; | ||
263 | CARD16 drw_h B16; | ||
264 | } xvGetStillReq; | ||
265 | #define sz_xvGetStillReq 32 | ||
266 | |||
267 | typedef struct { | ||
268 | CARD8 reqType; | ||
269 | CARD8 xvReqType; | ||
270 | CARD16 length B16; | ||
271 | XvPortID port B32; | ||
272 | Time time B32; | ||
273 | } xvGrabPortReq; | ||
274 | #define sz_xvGrabPortReq 12 | ||
275 | |||
276 | typedef struct { | ||
277 | CARD8 reqType; | ||
278 | CARD8 xvReqType; | ||
279 | CARD16 length B16; | ||
280 | XvPortID port B32; | ||
281 | Time time B32; | ||
282 | } xvUngrabPortReq; | ||
283 | #define sz_xvUngrabPortReq 12 | ||
284 | |||
285 | typedef struct { | ||
286 | CARD8 reqType; | ||
287 | CARD8 xvReqType; | ||
288 | CARD16 length B16; | ||
289 | Drawable drawable B32; | ||
290 | BOOL onoff; | ||
291 | CARD8 pad1; | ||
292 | CARD16 pad2; | ||
293 | } xvSelectVideoNotifyReq; | ||
294 | #define sz_xvSelectVideoNotifyReq 12 | ||
295 | |||
296 | typedef struct { | ||
297 | CARD8 reqType; | ||
298 | CARD8 xvReqType; | ||
299 | CARD16 length B16; | ||
300 | XvPortID port B32; | ||
301 | BOOL onoff; | ||
302 | CARD8 pad1; | ||
303 | CARD16 pad2; | ||
304 | } xvSelectPortNotifyReq; | ||
305 | #define sz_xvSelectPortNotifyReq 12 | ||
306 | |||
307 | typedef struct { | ||
308 | CARD8 reqType; | ||
309 | CARD8 xvReqType; | ||
310 | CARD16 length B16; | ||
311 | XvPortID port B32; | ||
312 | Drawable drawable B32; | ||
313 | } xvStopVideoReq; | ||
314 | #define sz_xvStopVideoReq 12 | ||
315 | |||
316 | typedef struct { | ||
317 | CARD8 reqType; | ||
318 | CARD8 xvReqType; | ||
319 | CARD16 length B16; | ||
320 | XvPortID port B32; | ||
321 | Atom attribute B32; | ||
322 | INT32 value B32; | ||
323 | } xvSetPortAttributeReq; | ||
324 | #define sz_xvSetPortAttributeReq 16 | ||
325 | |||
326 | typedef struct { | ||
327 | CARD8 reqType; | ||
328 | CARD8 xvReqType; | ||
329 | CARD16 length B16; | ||
330 | XvPortID port B32; | ||
331 | Atom attribute B32; | ||
332 | } xvGetPortAttributeReq; | ||
333 | #define sz_xvGetPortAttributeReq 12 | ||
334 | |||
335 | typedef struct { | ||
336 | CARD8 reqType; | ||
337 | CARD8 xvReqType; | ||
338 | CARD16 length B16; | ||
339 | XvPortID port B32; | ||
340 | CARD16 vid_w B16; | ||
341 | CARD16 vid_h B16; | ||
342 | CARD16 drw_w B16; | ||
343 | CARD16 drw_h B16; | ||
344 | CARD8 motion; | ||
345 | CARD8 pad1; | ||
346 | CARD16 pad2 B16; | ||
347 | } xvQueryBestSizeReq; | ||
348 | #define sz_xvQueryBestSizeReq 20 | ||
349 | |||
350 | typedef struct { | ||
351 | CARD8 reqType; | ||
352 | CARD8 xvReqType; | ||
353 | CARD16 length B16; | ||
354 | XvPortID port B32; | ||
355 | } xvQueryPortAttributesReq; | ||
356 | #define sz_xvQueryPortAttributesReq 8 | ||
357 | |||
358 | typedef struct { | ||
359 | CARD8 reqType; | ||
360 | CARD8 xvReqType; | ||
361 | CARD16 length B16; | ||
362 | XvPortID port B32; | ||
363 | Drawable drawable B32; | ||
364 | GContext gc B32; | ||
365 | CARD32 id B32; | ||
366 | INT16 src_x B16; | ||
367 | INT16 src_y B16; | ||
368 | CARD16 src_w B16; | ||
369 | CARD16 src_h B16; | ||
370 | INT16 drw_x B16; | ||
371 | INT16 drw_y B16; | ||
372 | CARD16 drw_w B16; | ||
373 | CARD16 drw_h B16; | ||
374 | CARD16 width B16; | ||
375 | CARD16 height B16; | ||
376 | } xvPutImageReq; | ||
377 | #define sz_xvPutImageReq 40 | ||
378 | |||
379 | typedef struct { | ||
380 | CARD8 reqType; | ||
381 | CARD8 xvReqType; | ||
382 | CARD16 length B16; | ||
383 | XvPortID port B32; | ||
384 | Drawable drawable B32; | ||
385 | GContext gc B32; | ||
386 | ShmSeg shmseg B32; | ||
387 | CARD32 id B32; | ||
388 | CARD32 offset B32; | ||
389 | INT16 src_x B16; | ||
390 | INT16 src_y B16; | ||
391 | CARD16 src_w B16; | ||
392 | CARD16 src_h B16; | ||
393 | INT16 drw_x B16; | ||
394 | INT16 drw_y B16; | ||
395 | CARD16 drw_w B16; | ||
396 | CARD16 drw_h B16; | ||
397 | CARD16 width B16; | ||
398 | CARD16 height B16; | ||
399 | CARD8 send_event; | ||
400 | CARD8 pad1; | ||
401 | CARD16 pad2 B16; | ||
402 | } xvShmPutImageReq; | ||
403 | #define sz_xvShmPutImageReq 52 | ||
404 | |||
405 | typedef struct { | ||
406 | CARD8 reqType; | ||
407 | CARD8 xvReqType; | ||
408 | CARD16 length B16; | ||
409 | XvPortID port B32; | ||
410 | } xvListImageFormatsReq; | ||
411 | #define sz_xvListImageFormatsReq 8 | ||
412 | |||
413 | typedef struct { | ||
414 | CARD8 reqType; | ||
415 | CARD8 xvReqType; | ||
416 | CARD16 length B16; | ||
417 | CARD32 port B32; | ||
418 | CARD32 id B32; | ||
419 | CARD16 width B16; | ||
420 | CARD16 height B16; | ||
421 | } xvQueryImageAttributesReq; | ||
422 | #define sz_xvQueryImageAttributesReq 16 | ||
423 | |||
424 | |||
425 | /* Replies */ | ||
426 | |||
427 | typedef struct _QueryExtensionReply { | ||
428 | BYTE type; /* X_Reply */ | ||
429 | CARD8 padb1; | ||
430 | CARD16 sequenceNumber B16; | ||
431 | CARD32 length B32; | ||
432 | CARD16 version B16; | ||
433 | CARD16 revision B16; | ||
434 | CARD32 padl4 B32; | ||
435 | CARD32 padl5 B32; | ||
436 | CARD32 padl6 B32; | ||
437 | CARD32 padl7 B32; | ||
438 | CARD32 padl8 B32; | ||
439 | } xvQueryExtensionReply; | ||
440 | #define sz_xvQueryExtensionReply 32 | ||
441 | |||
442 | typedef struct _QueryAdaptorsReply { | ||
443 | BYTE type; /* X_Reply */ | ||
444 | CARD8 padb1; | ||
445 | CARD16 sequenceNumber B16; | ||
446 | CARD32 length B32; | ||
447 | CARD16 num_adaptors B16; | ||
448 | CARD16 pads3 B16; | ||
449 | CARD32 padl4 B32; | ||
450 | CARD32 padl5 B32; | ||
451 | CARD32 padl6 B32; | ||
452 | CARD32 padl7 B32; | ||
453 | CARD32 padl8 B32; | ||
454 | } xvQueryAdaptorsReply; | ||
455 | #define sz_xvQueryAdaptorsReply 32 | ||
456 | |||
457 | typedef struct _QueryEncodingsReply { | ||
458 | BYTE type; /* X_Reply */ | ||
459 | CARD8 padb1; | ||
460 | CARD16 sequenceNumber B16; | ||
461 | CARD32 length B32; | ||
462 | CARD16 num_encodings B16; | ||
463 | CARD32 padl3 B32; | ||
464 | CARD32 padl4 B32; | ||
465 | CARD32 padl5 B32; | ||
466 | CARD32 padl6 B32; | ||
467 | CARD32 padl7 B32; | ||
468 | CARD32 padl8 B32; | ||
469 | } xvQueryEncodingsReply; | ||
470 | #define sz_xvQueryEncodingsReply 32 | ||
471 | |||
472 | typedef struct { | ||
473 | BYTE type; /* X_Reply */ | ||
474 | BYTE result; | ||
475 | CARD16 sequenceNumber B16; | ||
476 | CARD32 length B32; /* 0 */ | ||
477 | CARD32 padl3 B32; | ||
478 | CARD32 padl4 B32; | ||
479 | CARD32 padl5 B32; | ||
480 | CARD32 padl6 B32; | ||
481 | CARD32 padl7 B32; | ||
482 | CARD32 padl8 B32; | ||
483 | } xvGrabPortReply; | ||
484 | #define sz_xvGrabPortReply 32 | ||
485 | |||
486 | typedef struct { | ||
487 | BYTE type; /* X_Reply */ | ||
488 | BYTE padb1; | ||
489 | CARD16 sequenceNumber B16; | ||
490 | CARD32 length B32; /* 0 */ | ||
491 | INT32 value B32; | ||
492 | CARD32 padl4 B32; | ||
493 | CARD32 padl5 B32; | ||
494 | CARD32 padl6 B32; | ||
495 | CARD32 padl7 B32; | ||
496 | CARD32 padl8 B32; | ||
497 | } xvGetPortAttributeReply; | ||
498 | #define sz_xvGetPortAttributeReply 32 | ||
499 | |||
500 | typedef struct { | ||
501 | BYTE type; /* X_Reply */ | ||
502 | BYTE padb1; | ||
503 | CARD16 sequenceNumber B16; | ||
504 | CARD32 length B32; /* 0 */ | ||
505 | CARD16 actual_width B16; | ||
506 | CARD16 actual_height B16; | ||
507 | CARD32 padl4 B32; | ||
508 | CARD32 padl5 B32; | ||
509 | CARD32 padl6 B32; | ||
510 | CARD32 padl7 B32; | ||
511 | CARD32 padl8 B32; | ||
512 | } xvQueryBestSizeReply; | ||
513 | #define sz_xvQueryBestSizeReply 32 | ||
514 | |||
515 | typedef struct { | ||
516 | BYTE type; /* X_Reply */ | ||
517 | BYTE padb1; | ||
518 | CARD16 sequenceNumber B16; | ||
519 | CARD32 length B32; /* 0 */ | ||
520 | CARD32 num_attributes B32; | ||
521 | CARD32 text_size B32; | ||
522 | CARD32 padl5 B32; | ||
523 | CARD32 padl6 B32; | ||
524 | CARD32 padl7 B32; | ||
525 | CARD32 padl8 B32; | ||
526 | } xvQueryPortAttributesReply; | ||
527 | #define sz_xvQueryPortAttributesReply 32 | ||
528 | |||
529 | typedef struct { | ||
530 | BYTE type; /* X_Reply */ | ||
531 | BYTE padb1; | ||
532 | CARD16 sequenceNumber B16; | ||
533 | CARD32 length B32; | ||
534 | CARD32 num_formats B32; | ||
535 | CARD32 padl4 B32; | ||
536 | CARD32 padl5 B32; | ||
537 | CARD32 padl6 B32; | ||
538 | CARD32 padl7 B32; | ||
539 | CARD32 padl8 B32; | ||
540 | } xvListImageFormatsReply; | ||
541 | #define sz_xvListImageFormatsReply 32 | ||
542 | |||
543 | typedef struct { | ||
544 | BYTE type; /* X_Reply */ | ||
545 | BYTE padb1; | ||
546 | CARD16 sequenceNumber B16; | ||
547 | CARD32 length B32; | ||
548 | CARD32 num_planes B32; | ||
549 | CARD32 data_size B32; | ||
550 | CARD16 width B16; | ||
551 | CARD16 height B16; | ||
552 | CARD32 padl6 B32; | ||
553 | CARD32 padl7 B32; | ||
554 | CARD32 padl8 B32; | ||
555 | } xvQueryImageAttributesReply; | ||
556 | #define sz_xvQueryImageAttributesReply 32 | ||
557 | |||
558 | /* DEFINE EVENT STRUCTURE */ | ||
559 | |||
560 | typedef struct { | ||
561 | union { | ||
562 | struct { | ||
563 | BYTE type; | ||
564 | BYTE detail; | ||
565 | CARD16 sequenceNumber B16; | ||
566 | } u; | ||
567 | struct { | ||
568 | BYTE type; | ||
569 | BYTE reason; | ||
570 | CARD16 sequenceNumber B16; | ||
571 | Time time B32; | ||
572 | Drawable drawable B32; | ||
573 | XvPortID port B32; | ||
574 | CARD32 padl5 B32; | ||
575 | CARD32 padl6 B32; | ||
576 | CARD32 padl7 B32; | ||
577 | CARD32 padl8 B32; | ||
578 | } videoNotify; | ||
579 | struct { | ||
580 | BYTE type; | ||
581 | BYTE padb1; | ||
582 | CARD16 sequenceNumber B16; | ||
583 | Time time B32; | ||
584 | XvPortID port B32; | ||
585 | Atom attribute B32; | ||
586 | INT32 value B32; | ||
587 | CARD32 padl6 B32; | ||
588 | CARD32 padl7 B32; | ||
589 | CARD32 padl8 B32; | ||
590 | } portNotify; | ||
591 | } u; | ||
592 | } xvEvent; | ||
593 | |||
594 | #undef XvPortID | ||
595 | #undef XvEncodingID | ||
596 | #undef ShmSeg | ||
597 | #undef VisualID | ||
598 | #undef Drawable | ||
599 | #undef GContext | ||
600 | #undef Time | ||
601 | #undef Atom | ||
602 | |||
603 | #endif /* XVPROTO_H */ | ||
604 | |||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/extutil.h b/apps/plugins/sdl/src/video/Xext/extensions/extutil.h deleted file mode 100644 index f3a741ea22..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/extutil.h +++ /dev/null | |||
@@ -1,226 +0,0 @@ | |||
1 | /* | ||
2 | * $Xorg: extutil.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $ | ||
3 | * | ||
4 | Copyright 1989, 1998 The Open Group | ||
5 | |||
6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
7 | documentation for any purpose is hereby granted without fee, provided that | ||
8 | the above copyright notice appear in all copies and that both that | ||
9 | copyright notice and this permission notice appear in supporting | ||
10 | documentation. | ||
11 | |||
12 | The above copyright notice and this permission notice shall be included in | ||
13 | all copies or substantial portions of the Software. | ||
14 | |||
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
21 | |||
22 | Except as contained in this notice, the name of The Open Group shall not be | ||
23 | used in advertising or otherwise to promote the sale, use or other dealings | ||
24 | in this Software without prior written authorization from The Open Group. | ||
25 | * | ||
26 | * Author: Jim Fulton, MIT The Open Group | ||
27 | * | ||
28 | * Xlib Extension-Writing Utilities | ||
29 | * | ||
30 | * This package contains utilities for writing the client API for various | ||
31 | * protocol extensions. THESE INTERFACES ARE NOT PART OF THE X STANDARD AND | ||
32 | * ARE SUBJECT TO CHANGE! | ||
33 | */ | ||
34 | /* $XFree86: xc/include/extensions/extutil.h,v 1.9 2001/12/14 19:53:28 dawes Exp $ */ | ||
35 | |||
36 | #ifndef _EXTUTIL_H_ | ||
37 | #define _EXTUTIL_H_ | ||
38 | |||
39 | #include "SDL_stdinc.h" /* For portable string functions */ | ||
40 | |||
41 | #include "./Xext.h" | ||
42 | |||
43 | /* | ||
44 | * We need to keep a list of open displays since the Xlib display list isn't | ||
45 | * public. We also have to per-display info in a separate block since it isn't | ||
46 | * stored directly in the Display structure. | ||
47 | */ | ||
48 | typedef struct _XExtDisplayInfo { | ||
49 | struct _XExtDisplayInfo *next; /* keep a linked list */ | ||
50 | Display *display; /* which display this is */ | ||
51 | XExtCodes *codes; /* the extension protocol codes */ | ||
52 | XPointer data; /* extra data for extension to use */ | ||
53 | } XExtDisplayInfo; | ||
54 | |||
55 | typedef struct _XExtensionInfo { | ||
56 | XExtDisplayInfo *head; /* start of list */ | ||
57 | XExtDisplayInfo *cur; /* most recently used */ | ||
58 | int ndisplays; /* number of displays */ | ||
59 | } XExtensionInfo; | ||
60 | |||
61 | typedef struct _XExtensionHooks { | ||
62 | int (*create_gc)( | ||
63 | #if NeedNestedPrototypes | ||
64 | Display* /* display */, | ||
65 | GC /* gc */, | ||
66 | XExtCodes* /* codes */ | ||
67 | #endif | ||
68 | ); | ||
69 | int (*copy_gc)( | ||
70 | #if NeedNestedPrototypes | ||
71 | Display* /* display */, | ||
72 | GC /* gc */, | ||
73 | XExtCodes* /* codes */ | ||
74 | #endif | ||
75 | ); | ||
76 | int (*flush_gc)( | ||
77 | #if NeedNestedPrototypes | ||
78 | Display* /* display */, | ||
79 | GC /* gc */, | ||
80 | XExtCodes* /* codes */ | ||
81 | #endif | ||
82 | ); | ||
83 | int (*free_gc)( | ||
84 | #if NeedNestedPrototypes | ||
85 | Display* /* display */, | ||
86 | GC /* gc */, | ||
87 | XExtCodes* /* codes */ | ||
88 | #endif | ||
89 | ); | ||
90 | int (*create_font)( | ||
91 | #if NeedNestedPrototypes | ||
92 | Display* /* display */, | ||
93 | XFontStruct* /* fs */, | ||
94 | XExtCodes* /* codes */ | ||
95 | #endif | ||
96 | ); | ||
97 | int (*free_font)( | ||
98 | #if NeedNestedPrototypes | ||
99 | Display* /* display */, | ||
100 | XFontStruct* /* fs */, | ||
101 | XExtCodes* /* codes */ | ||
102 | #endif | ||
103 | ); | ||
104 | int (*close_display)( | ||
105 | #if NeedNestedPrototypes | ||
106 | Display* /* display */, | ||
107 | XExtCodes* /* codes */ | ||
108 | #endif | ||
109 | ); | ||
110 | Bool (*wire_to_event)( | ||
111 | #if NeedNestedPrototypes | ||
112 | Display* /* display */, | ||
113 | XEvent* /* re */, | ||
114 | xEvent* /* event */ | ||
115 | #endif | ||
116 | ); | ||
117 | Status (*event_to_wire)( | ||
118 | #if NeedNestedPrototypes | ||
119 | Display* /* display */, | ||
120 | XEvent* /* re */, | ||
121 | xEvent* /* event */ | ||
122 | #endif | ||
123 | ); | ||
124 | int (*error)( | ||
125 | #if NeedNestedPrototypes | ||
126 | Display* /* display */, | ||
127 | xError* /* err */, | ||
128 | XExtCodes* /* codes */, | ||
129 | int* /* ret_code */ | ||
130 | #endif | ||
131 | ); | ||
132 | char *(*error_string)( | ||
133 | #if NeedNestedPrototypes | ||
134 | Display* /* display */, | ||
135 | int /* code */, | ||
136 | XExtCodes* /* codes */, | ||
137 | char* /* buffer */, | ||
138 | int /* nbytes */ | ||
139 | #endif | ||
140 | ); | ||
141 | } XExtensionHooks; | ||
142 | |||
143 | extern XExtensionInfo *XextCreateExtension( | ||
144 | #if NeedFunctionPrototypes | ||
145 | void | ||
146 | #endif | ||
147 | ); | ||
148 | extern void XextDestroyExtension( | ||
149 | #if NeedFunctionPrototypes | ||
150 | XExtensionInfo* /* info */ | ||
151 | #endif | ||
152 | ); | ||
153 | extern XExtDisplayInfo *XextAddDisplay( | ||
154 | #if NeedFunctionPrototypes | ||
155 | XExtensionInfo* /* extinfo */, | ||
156 | Display* /* dpy */, | ||
157 | char* /* ext_name */, | ||
158 | XExtensionHooks* /* hooks */, | ||
159 | int /* nevents */, | ||
160 | XPointer /* data */ | ||
161 | #endif | ||
162 | ); | ||
163 | extern int XextRemoveDisplay( | ||
164 | #if NeedFunctionPrototypes | ||
165 | XExtensionInfo* /* extinfo */, | ||
166 | Display* /* dpy */ | ||
167 | #endif | ||
168 | ); | ||
169 | extern XExtDisplayInfo *XextFindDisplay( | ||
170 | #if NeedFunctionPrototypes | ||
171 | XExtensionInfo* /* extinfo */, | ||
172 | Display* /* dpy */ | ||
173 | #endif | ||
174 | ); | ||
175 | |||
176 | #define XextHasExtension(i) ((i) && ((i)->codes)) | ||
177 | #define XextCheckExtension(dpy,i,name,val) \ | ||
178 | if (!XextHasExtension(i)) { XMissingExtension (dpy, name); return val; } | ||
179 | #define XextSimpleCheckExtension(dpy,i,name) \ | ||
180 | if (!XextHasExtension(i)) { XMissingExtension (dpy, name); return; } | ||
181 | |||
182 | |||
183 | /* | ||
184 | * helper macros to generate code that is common to all extensions; caller | ||
185 | * should prefix it with static if extension source is in one file; this | ||
186 | * could be a utility function, but have to stack 6 unused arguments for | ||
187 | * something that is called many, many times would be bad. | ||
188 | */ | ||
189 | #define XEXT_GENERATE_FIND_DISPLAY(proc,extinfo,extname,hooks,nev,data) \ | ||
190 | XExtDisplayInfo *proc (Display *dpy) \ | ||
191 | { \ | ||
192 | XExtDisplayInfo *dpyinfo; \ | ||
193 | if (!extinfo) { if (!(extinfo = XextCreateExtension())) return NULL; } \ | ||
194 | if (!(dpyinfo = XextFindDisplay (extinfo, dpy))) \ | ||
195 | dpyinfo = XextAddDisplay (extinfo,dpy,extname,hooks,nev,data); \ | ||
196 | return dpyinfo; \ | ||
197 | } | ||
198 | |||
199 | #define XEXT_FIND_DISPLAY_PROTO(proc) \ | ||
200 | XExtDisplayInfo *proc(Display *dpy) | ||
201 | |||
202 | #define XEXT_GENERATE_CLOSE_DISPLAY(proc,extinfo) \ | ||
203 | int proc (Display *dpy, XExtCodes *codes) \ | ||
204 | { \ | ||
205 | return XextRemoveDisplay (extinfo, dpy); \ | ||
206 | } | ||
207 | |||
208 | #define XEXT_CLOSE_DISPLAY_PROTO(proc) \ | ||
209 | int proc(Display *dpy, XExtCodes *codes) | ||
210 | |||
211 | #define XEXT_GENERATE_ERROR_STRING(proc,extname,nerr,errl) \ | ||
212 | char *proc (Display *dpy, int code, XExtCodes *codes, char *buf, int n) \ | ||
213 | { \ | ||
214 | code -= codes->first_error; \ | ||
215 | if (code >= 0 && code < nerr) { \ | ||
216 | char tmp[256]; \ | ||
217 | SDL_snprintf (tmp, SDL_arraysize(tmp), "%s.%d", extname, code); \ | ||
218 | XGetErrorDatabaseText (dpy, "XProtoError", tmp, errl[code], buf, n); \ | ||
219 | return buf; \ | ||
220 | } \ | ||
221 | return (char *)0; \ | ||
222 | } | ||
223 | |||
224 | #define XEXT_ERROR_STRING_PROTO(proc) \ | ||
225 | char *proc(Display *dpy, int code, XExtCodes *codes, char *buf, int n) | ||
226 | #endif | ||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/panoramiXext.h b/apps/plugins/sdl/src/video/Xext/extensions/panoramiXext.h deleted file mode 100644 index e89d8917bb..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/panoramiXext.h +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | /* $Xorg: panoramiXext.h,v 1.4 2000/08/18 04:05:45 coskrey Exp $ */ | ||
2 | /***************************************************************** | ||
3 | Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts. | ||
4 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
5 | of this software and associated documentation files (the "Software"), to deal | ||
6 | in the Software without restriction, including without limitation the rights | ||
7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
8 | copies of the Software. | ||
9 | |||
10 | The above copyright notice and this permission notice shall be included in | ||
11 | all copies or substantial portions of the Software. | ||
12 | |||
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
16 | DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, | ||
17 | BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, | ||
18 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR | ||
19 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
20 | |||
21 | Except as contained in this notice, the name of Digital Equipment Corporation | ||
22 | shall not be used in advertising or otherwise to promote the sale, use or other | ||
23 | dealings in this Software without prior written authorization from Digital | ||
24 | Equipment Corporation. | ||
25 | ******************************************************************/ | ||
26 | /* | ||
27 | * PanoramiX definitions | ||
28 | */ | ||
29 | /* $XFree86: xc/include/extensions/panoramiXext.h,v 3.6 2001/01/17 17:53:22 dawes Exp $ */ | ||
30 | |||
31 | #include "SDL_name.h" | ||
32 | |||
33 | /* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */ | ||
34 | |||
35 | #define PANORAMIX_MAJOR_VERSION 1 /* current version number */ | ||
36 | #define PANORAMIX_MINOR_VERSION 1 | ||
37 | |||
38 | typedef struct { | ||
39 | Window window; /* PanoramiX window - may not exist */ | ||
40 | int screen; | ||
41 | int State; /* PanroamiXOff, PanoramiXOn */ | ||
42 | int width; /* width of this screen */ | ||
43 | int height; /* height of this screen */ | ||
44 | int ScreenCount; /* real physical number of screens */ | ||
45 | XID eventMask; /* selected events for this client */ | ||
46 | } SDL_NAME(XPanoramiXInfo); | ||
47 | |||
48 | extern SDL_NAME(XPanoramiXInfo) *SDL_NAME(XPanoramiXAllocInfo) ( | ||
49 | #if NeedFunctionPrototypes | ||
50 | void | ||
51 | #endif | ||
52 | ); | ||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/panoramiXproto.h b/apps/plugins/sdl/src/video/Xext/extensions/panoramiXproto.h deleted file mode 100644 index fe3826eb3b..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/panoramiXproto.h +++ /dev/null | |||
@@ -1,192 +0,0 @@ | |||
1 | /* $Xorg: panoramiXproto.h,v 1.4 2000/08/18 04:05:45 coskrey Exp $ */ | ||
2 | /***************************************************************** | ||
3 | Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts. | ||
4 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
5 | of this software and associated documentation files (the "Software"), to deal | ||
6 | in the Software without restriction, including without limitation the rights | ||
7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
8 | copies of the Software. | ||
9 | |||
10 | The above copyright notice and this permission notice shall be included in | ||
11 | all copies or substantial portions of the Software. | ||
12 | |||
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
16 | DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, | ||
17 | BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, | ||
18 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR | ||
19 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
20 | |||
21 | Except as contained in this notice, the name of Digital Equipment Corporation | ||
22 | shall not be used in advertising or otherwise to promote the sale, use or other | ||
23 | dealings in this Software without prior written authorization from Digital | ||
24 | Equipment Corporation. | ||
25 | ******************************************************************/ | ||
26 | /* $XFree86: xc/include/extensions/panoramiXproto.h,v 3.6 2001/01/17 17:53:22 dawes Exp $ */ | ||
27 | |||
28 | /* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */ | ||
29 | |||
30 | #ifndef _PANORAMIXPROTO_H_ | ||
31 | #define _PANORAMIXPROTO_H_ | ||
32 | |||
33 | #define PANORAMIX_PROTOCOL_NAME "XINERAMA" | ||
34 | |||
35 | #define X_PanoramiXQueryVersion 0 | ||
36 | #define X_PanoramiXGetState 1 | ||
37 | #define X_PanoramiXGetScreenCount 2 | ||
38 | #define X_PanoramiXGetScreenSize 3 | ||
39 | |||
40 | #define X_XineramaIsActive 4 | ||
41 | #define X_XineramaQueryScreens 5 | ||
42 | |||
43 | typedef struct _PanoramiXQueryVersion { | ||
44 | CARD8 reqType; /* always PanoramiXReqCode */ | ||
45 | CARD8 panoramiXReqType; /* always X_PanoramiXQueryVersion */ | ||
46 | CARD16 length B16; | ||
47 | CARD8 clientMajor; | ||
48 | CARD8 clientMinor; | ||
49 | CARD16 unused B16; | ||
50 | } xPanoramiXQueryVersionReq; | ||
51 | |||
52 | #define sz_xPanoramiXQueryVersionReq 8 | ||
53 | |||
54 | typedef struct { | ||
55 | CARD8 type; /* must be X_Reply */ | ||
56 | CARD8 pad1; /* unused */ | ||
57 | CARD16 sequenceNumber B16; /* last sequence number */ | ||
58 | CARD32 length B32; /* 0 */ | ||
59 | CARD16 majorVersion B16; | ||
60 | CARD16 minorVersion B16; | ||
61 | CARD32 pad2 B32; /* unused */ | ||
62 | CARD32 pad3 B32; /* unused */ | ||
63 | CARD32 pad4 B32; /* unused */ | ||
64 | CARD32 pad5 B32; /* unused */ | ||
65 | CARD32 pad6 B32; /* unused */ | ||
66 | } xPanoramiXQueryVersionReply; | ||
67 | |||
68 | #define sz_xPanoramiXQueryVersionReply 32 | ||
69 | |||
70 | |||
71 | typedef struct _PanoramiXGetState { | ||
72 | CARD8 reqType; /* always PanoramiXReqCode */ | ||
73 | CARD8 panoramiXReqType; /* always X_PanoramiXGetState */ | ||
74 | CARD16 length B16; | ||
75 | CARD32 window B32; | ||
76 | } xPanoramiXGetStateReq; | ||
77 | #define sz_xPanoramiXGetStateReq 8 | ||
78 | |||
79 | typedef struct { | ||
80 | BYTE type; | ||
81 | BYTE state; | ||
82 | CARD16 sequenceNumber B16; | ||
83 | CARD32 length B32; | ||
84 | CARD32 window B32; | ||
85 | CARD32 pad1 B32; /* unused */ | ||
86 | CARD32 pad2 B32; /* unused */ | ||
87 | CARD32 pad3 B32; /* unused */ | ||
88 | CARD32 pad4 B32; /* unused */ | ||
89 | CARD32 pad5 B32; /* unused */ | ||
90 | } xPanoramiXGetStateReply; | ||
91 | |||
92 | #define sz_panoramiXGetStateReply 32 | ||
93 | |||
94 | typedef struct _PanoramiXGetScreenCount { | ||
95 | CARD8 reqType; /* always PanoramiXReqCode */ | ||
96 | CARD8 panoramiXReqType; /* always X_PanoramiXGetScreenCount */ | ||
97 | CARD16 length B16; | ||
98 | CARD32 window B32; | ||
99 | } xPanoramiXGetScreenCountReq; | ||
100 | #define sz_xPanoramiXGetScreenCountReq 8 | ||
101 | |||
102 | typedef struct { | ||
103 | BYTE type; | ||
104 | BYTE ScreenCount; | ||
105 | CARD16 sequenceNumber B16; | ||
106 | CARD32 length B32; | ||
107 | CARD32 window B32; | ||
108 | CARD32 pad1 B32; /* unused */ | ||
109 | CARD32 pad2 B32; /* unused */ | ||
110 | CARD32 pad3 B32; /* unused */ | ||
111 | CARD32 pad4 B32; /* unused */ | ||
112 | CARD32 pad5 B32; /* unused */ | ||
113 | } xPanoramiXGetScreenCountReply; | ||
114 | #define sz_panoramiXGetScreenCountReply 32 | ||
115 | |||
116 | typedef struct _PanoramiXGetScreenSize { | ||
117 | CARD8 reqType; /* always PanoramiXReqCode */ | ||
118 | CARD8 panoramiXReqType; /* always X_PanoramiXGetState */ | ||
119 | CARD16 length B16; | ||
120 | CARD32 window B32; | ||
121 | CARD32 screen B32; | ||
122 | } xPanoramiXGetScreenSizeReq; | ||
123 | #define sz_xPanoramiXGetScreenSizeReq 12 | ||
124 | |||
125 | typedef struct { | ||
126 | BYTE type; | ||
127 | CARD8 pad1; | ||
128 | CARD16 sequenceNumber B16; | ||
129 | CARD32 length B32; | ||
130 | CARD32 width B32; | ||
131 | CARD32 height B32; | ||
132 | CARD32 window B32; | ||
133 | CARD32 screen B32; | ||
134 | CARD32 pad2 B32; /* unused */ | ||
135 | CARD32 pad3 B32; /* unused */ | ||
136 | } xPanoramiXGetScreenSizeReply; | ||
137 | #define sz_panoramiXGetScreenSizeReply 32 | ||
138 | |||
139 | /************ Alternate protocol ******************/ | ||
140 | |||
141 | typedef struct { | ||
142 | CARD8 reqType; | ||
143 | CARD8 panoramiXReqType; | ||
144 | CARD16 length B16; | ||
145 | } xXineramaIsActiveReq; | ||
146 | #define sz_xXineramaIsActiveReq 4 | ||
147 | |||
148 | typedef struct { | ||
149 | BYTE type; | ||
150 | CARD8 pad1; | ||
151 | CARD16 sequenceNumber B16; | ||
152 | CARD32 length B32; | ||
153 | CARD32 state B32; | ||
154 | CARD32 pad2 B32; | ||
155 | CARD32 pad3 B32; | ||
156 | CARD32 pad4 B32; | ||
157 | CARD32 pad5 B32; | ||
158 | CARD32 pad6 B32; | ||
159 | } xXineramaIsActiveReply; | ||
160 | #define sz_XineramaIsActiveReply 32 | ||
161 | |||
162 | |||
163 | typedef struct { | ||
164 | CARD8 reqType; | ||
165 | CARD8 panoramiXReqType; | ||
166 | CARD16 length B16; | ||
167 | } xXineramaQueryScreensReq; | ||
168 | #define sz_xXineramaQueryScreensReq 4 | ||
169 | |||
170 | typedef struct { | ||
171 | BYTE type; | ||
172 | CARD8 pad1; | ||
173 | CARD16 sequenceNumber B16; | ||
174 | CARD32 length B32; | ||
175 | CARD32 number B32; | ||
176 | CARD32 pad2 B32; | ||
177 | CARD32 pad3 B32; | ||
178 | CARD32 pad4 B32; | ||
179 | CARD32 pad5 B32; | ||
180 | CARD32 pad6 B32; | ||
181 | } xXineramaQueryScreensReply; | ||
182 | #define sz_XineramaQueryScreensReply 32 | ||
183 | |||
184 | typedef struct { | ||
185 | INT16 x_org B16; | ||
186 | INT16 y_org B16; | ||
187 | CARD16 width B16; | ||
188 | CARD16 height B16; | ||
189 | } xXineramaScreenInfo; | ||
190 | #define sz_XineramaScreenInfo 8 | ||
191 | |||
192 | #endif | ||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/xf86dga.h b/apps/plugins/sdl/src/video/Xext/extensions/xf86dga.h deleted file mode 100644 index c71ef4b14a..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/xf86dga.h +++ /dev/null | |||
@@ -1,265 +0,0 @@ | |||
1 | /* | ||
2 | Copyright (c) 1999 XFree86 Inc | ||
3 | */ | ||
4 | /* $XFree86: xc/include/extensions/xf86dga.h,v 3.21 2001/08/01 00:44:36 tsi Exp $ */ | ||
5 | |||
6 | #ifndef _XF86DGA_H_ | ||
7 | #define _XF86DGA_H_ | ||
8 | |||
9 | #include <X11/Xfuncproto.h> | ||
10 | #include "xf86dga1.h" | ||
11 | #include "SDL_name.h" | ||
12 | |||
13 | #define X_XDGAQueryVersion 0 | ||
14 | |||
15 | /* 1 through 9 are in xf86dga1.h */ | ||
16 | |||
17 | /* 10 and 11 are reserved to avoid conflicts with rogue DGA extensions */ | ||
18 | |||
19 | #define X_XDGAQueryModes 12 | ||
20 | #define X_XDGASetMode 13 | ||
21 | #define X_XDGASetViewport 14 | ||
22 | #define X_XDGAInstallColormap 15 | ||
23 | #define X_XDGASelectInput 16 | ||
24 | #define X_XDGAFillRectangle 17 | ||
25 | #define X_XDGACopyArea 18 | ||
26 | #define X_XDGACopyTransparentArea 19 | ||
27 | #define X_XDGAGetViewportStatus 20 | ||
28 | #define X_XDGASync 21 | ||
29 | #define X_XDGAOpenFramebuffer 22 | ||
30 | #define X_XDGACloseFramebuffer 23 | ||
31 | #define X_XDGASetClientVersion 24 | ||
32 | #define X_XDGAChangePixmapMode 25 | ||
33 | #define X_XDGACreateColormap 26 | ||
34 | |||
35 | |||
36 | #define XDGAConcurrentAccess 0x00000001 | ||
37 | #define XDGASolidFillRect 0x00000002 | ||
38 | #define XDGABlitRect 0x00000004 | ||
39 | #define XDGABlitTransRect 0x00000008 | ||
40 | #define XDGAPixmap 0x00000010 | ||
41 | |||
42 | #define XDGAInterlaced 0x00010000 | ||
43 | #define XDGADoublescan 0x00020000 | ||
44 | |||
45 | #define XDGAFlipImmediate 0x00000001 | ||
46 | #define XDGAFlipRetrace 0x00000002 | ||
47 | |||
48 | #define XDGANeedRoot 0x00000001 | ||
49 | |||
50 | #define XF86DGANumberEvents 7 | ||
51 | |||
52 | #define XDGAPixmapModeLarge 0 | ||
53 | #define XDGAPixmapModeSmall 1 | ||
54 | |||
55 | #define XF86DGAClientNotLocal 0 | ||
56 | #define XF86DGANoDirectVideoMode 1 | ||
57 | #define XF86DGAScreenNotActive 2 | ||
58 | #define XF86DGADirectNotActivated 3 | ||
59 | #define XF86DGAOperationNotSupported 4 | ||
60 | #define XF86DGANumberErrors (XF86DGAOperationNotSupported + 1) | ||
61 | |||
62 | |||
63 | typedef struct { | ||
64 | int num; /* A unique identifier for the mode (num > 0) */ | ||
65 | char *name; /* name of mode given in the XF86Config */ | ||
66 | float verticalRefresh; | ||
67 | int flags; /* DGA_CONCURRENT_ACCESS, etc... */ | ||
68 | int imageWidth; /* linear accessible portion (pixels) */ | ||
69 | int imageHeight; | ||
70 | int pixmapWidth; /* Xlib accessible portion (pixels) */ | ||
71 | int pixmapHeight; /* both fields ignored if no concurrent access */ | ||
72 | int bytesPerScanline; | ||
73 | int byteOrder; /* MSBFirst, LSBFirst */ | ||
74 | int depth; | ||
75 | int bitsPerPixel; | ||
76 | unsigned long redMask; | ||
77 | unsigned long greenMask; | ||
78 | unsigned long blueMask; | ||
79 | short visualClass; | ||
80 | int viewportWidth; | ||
81 | int viewportHeight; | ||
82 | int xViewportStep; /* viewport position granularity */ | ||
83 | int yViewportStep; | ||
84 | int maxViewportX; /* max viewport origin */ | ||
85 | int maxViewportY; | ||
86 | int viewportFlags; /* types of page flipping possible */ | ||
87 | int reserved1; | ||
88 | int reserved2; | ||
89 | } SDL_NAME(XDGAMode); | ||
90 | |||
91 | |||
92 | typedef struct { | ||
93 | SDL_NAME(XDGAMode) mode; | ||
94 | unsigned char *data; | ||
95 | Pixmap pixmap; | ||
96 | } SDL_NAME(XDGADevice); | ||
97 | |||
98 | |||
99 | #ifndef _XF86DGA_SERVER_ | ||
100 | _XFUNCPROTOBEGIN | ||
101 | |||
102 | typedef struct { | ||
103 | int type; | ||
104 | unsigned long serial; | ||
105 | Display *display; | ||
106 | int screen; | ||
107 | Time time; | ||
108 | unsigned int state; | ||
109 | unsigned int button; | ||
110 | } SDL_NAME(XDGAButtonEvent); | ||
111 | |||
112 | typedef struct { | ||
113 | int type; | ||
114 | unsigned long serial; | ||
115 | Display *display; | ||
116 | int screen; | ||
117 | Time time; | ||
118 | unsigned int state; | ||
119 | unsigned int keycode; | ||
120 | } SDL_NAME(XDGAKeyEvent); | ||
121 | |||
122 | typedef struct { | ||
123 | int type; | ||
124 | unsigned long serial; | ||
125 | Display *display; | ||
126 | int screen; | ||
127 | Time time; | ||
128 | unsigned int state; | ||
129 | int dx; | ||
130 | int dy; | ||
131 | } SDL_NAME(XDGAMotionEvent); | ||
132 | |||
133 | typedef union { | ||
134 | int type; | ||
135 | SDL_NAME(XDGAButtonEvent) xbutton; | ||
136 | SDL_NAME(XDGAKeyEvent) xkey; | ||
137 | SDL_NAME(XDGAMotionEvent) xmotion; | ||
138 | long pad[24]; | ||
139 | } SDL_NAME(XDGAEvent); | ||
140 | |||
141 | Bool SDL_NAME(XDGAQueryExtension)( | ||
142 | Display *dpy, | ||
143 | int *eventBase, | ||
144 | int *erroBase | ||
145 | ); | ||
146 | |||
147 | Bool SDL_NAME(XDGAQueryVersion)( | ||
148 | Display *dpy, | ||
149 | int *majorVersion, | ||
150 | int *minorVersion | ||
151 | ); | ||
152 | |||
153 | SDL_NAME(XDGAMode)* SDL_NAME(XDGAQueryModes)( | ||
154 | Display *dpy, | ||
155 | int screen, | ||
156 | int *num | ||
157 | ); | ||
158 | |||
159 | SDL_NAME(XDGADevice)* SDL_NAME(XDGASetMode)( | ||
160 | Display *dpy, | ||
161 | int screen, | ||
162 | int mode | ||
163 | ); | ||
164 | |||
165 | Bool SDL_NAME(XDGAOpenFramebuffer)( | ||
166 | Display *dpy, | ||
167 | int screen | ||
168 | ); | ||
169 | |||
170 | void SDL_NAME(XDGACloseFramebuffer)( | ||
171 | Display *dpy, | ||
172 | int screen | ||
173 | ); | ||
174 | |||
175 | void SDL_NAME(XDGASetViewport)( | ||
176 | Display *dpy, | ||
177 | int screen, | ||
178 | int x, | ||
179 | int y, | ||
180 | int flags | ||
181 | ); | ||
182 | |||
183 | void SDL_NAME(XDGAInstallColormap)( | ||
184 | Display *dpy, | ||
185 | int screen, | ||
186 | Colormap cmap | ||
187 | ); | ||
188 | |||
189 | Colormap SDL_NAME(XDGACreateColormap)( | ||
190 | Display *dpy, | ||
191 | int screen, | ||
192 | SDL_NAME(XDGADevice) *device, | ||
193 | int alloc | ||
194 | ); | ||
195 | |||
196 | void SDL_NAME(XDGASelectInput)( | ||
197 | Display *dpy, | ||
198 | int screen, | ||
199 | long event_mask | ||
200 | ); | ||
201 | |||
202 | void SDL_NAME(XDGAFillRectangle)( | ||
203 | Display *dpy, | ||
204 | int screen, | ||
205 | int x, | ||
206 | int y, | ||
207 | unsigned int width, | ||
208 | unsigned int height, | ||
209 | unsigned long color | ||
210 | ); | ||
211 | |||
212 | |||
213 | void SDL_NAME(XDGACopyArea)( | ||
214 | Display *dpy, | ||
215 | int screen, | ||
216 | int srcx, | ||
217 | int srcy, | ||
218 | unsigned int width, | ||
219 | unsigned int height, | ||
220 | int dstx, | ||
221 | int dsty | ||
222 | ); | ||
223 | |||
224 | |||
225 | void SDL_NAME(XDGACopyTransparentArea)( | ||
226 | Display *dpy, | ||
227 | int screen, | ||
228 | int srcx, | ||
229 | int srcy, | ||
230 | unsigned int width, | ||
231 | unsigned int height, | ||
232 | int dstx, | ||
233 | int dsty, | ||
234 | unsigned long key | ||
235 | ); | ||
236 | |||
237 | int SDL_NAME(XDGAGetViewportStatus)( | ||
238 | Display *dpy, | ||
239 | int screen | ||
240 | ); | ||
241 | |||
242 | void SDL_NAME(XDGASync)( | ||
243 | Display *dpy, | ||
244 | int screen | ||
245 | ); | ||
246 | |||
247 | Bool SDL_NAME(XDGASetClientVersion)( | ||
248 | Display *dpy | ||
249 | ); | ||
250 | |||
251 | void SDL_NAME(XDGAChangePixmapMode)( | ||
252 | Display *dpy, | ||
253 | int screen, | ||
254 | int *x, | ||
255 | int *y, | ||
256 | int mode | ||
257 | ); | ||
258 | |||
259 | |||
260 | void SDL_NAME(XDGAKeyEventToXKeyEvent)(SDL_NAME(XDGAKeyEvent)* dk, XKeyEvent* xk); | ||
261 | |||
262 | |||
263 | _XFUNCPROTOEND | ||
264 | #endif /* _XF86DGA_SERVER_ */ | ||
265 | #endif /* _XF86DGA_H_ */ | ||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/xf86dga1.h b/apps/plugins/sdl/src/video/Xext/extensions/xf86dga1.h deleted file mode 100644 index 4a49e9f385..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/xf86dga1.h +++ /dev/null | |||
@@ -1,169 +0,0 @@ | |||
1 | /* $XFree86: xc/include/extensions/xf86dga1.h,v 1.2 1999/04/17 07:05:41 dawes Exp $ */ | ||
2 | /* | ||
3 | |||
4 | Copyright (c) 1995 Jon Tombs | ||
5 | Copyright (c) 1995 XFree86 Inc | ||
6 | |||
7 | */ | ||
8 | |||
9 | /************************************************************************ | ||
10 | |||
11 | THIS IS THE OLD DGA API AND IS OBSOLETE. PLEASE DO NOT USE IT ANYMORE | ||
12 | |||
13 | ************************************************************************/ | ||
14 | |||
15 | #ifndef _XF86DGA1_H_ | ||
16 | #define _XF86DGA1_H_ | ||
17 | |||
18 | #include <X11/Xfuncproto.h> | ||
19 | #include "SDL_name.h" | ||
20 | |||
21 | #define X_XF86DGAQueryVersion 0 | ||
22 | #define X_XF86DGAGetVideoLL 1 | ||
23 | #define X_XF86DGADirectVideo 2 | ||
24 | #define X_XF86DGAGetViewPortSize 3 | ||
25 | #define X_XF86DGASetViewPort 4 | ||
26 | #define X_XF86DGAGetVidPage 5 | ||
27 | #define X_XF86DGASetVidPage 6 | ||
28 | #define X_XF86DGAInstallColormap 7 | ||
29 | #define X_XF86DGAQueryDirectVideo 8 | ||
30 | #define X_XF86DGAViewPortChanged 9 | ||
31 | |||
32 | #define XF86DGADirectPresent 0x0001 | ||
33 | #define XF86DGADirectGraphics 0x0002 | ||
34 | #define XF86DGADirectMouse 0x0004 | ||
35 | #define XF86DGADirectKeyb 0x0008 | ||
36 | #define XF86DGAHasColormap 0x0100 | ||
37 | #define XF86DGADirectColormap 0x0200 | ||
38 | |||
39 | |||
40 | |||
41 | |||
42 | #ifndef _XF86DGA_SERVER_ | ||
43 | |||
44 | _XFUNCPROTOBEGIN | ||
45 | |||
46 | Bool SDL_NAME(XF86DGAQueryVersion)( | ||
47 | #if NeedFunctionPrototypes | ||
48 | Display* /* dpy */, | ||
49 | int* /* majorVersion */, | ||
50 | int* /* minorVersion */ | ||
51 | #endif | ||
52 | ); | ||
53 | |||
54 | Bool SDL_NAME(XF86DGAQueryExtension)( | ||
55 | #if NeedFunctionPrototypes | ||
56 | Display* /* dpy */, | ||
57 | int* /* event_base */, | ||
58 | int* /* error_base */ | ||
59 | #endif | ||
60 | ); | ||
61 | |||
62 | Status SDL_NAME(XF86DGAGetVideoLL)( | ||
63 | #if NeedFunctionPrototypes | ||
64 | Display* /* dpy */, | ||
65 | int /* screen */, | ||
66 | int * /* base addr */, | ||
67 | int * /* width */, | ||
68 | int * /* bank_size */, | ||
69 | int * /* ram_size */ | ||
70 | #endif | ||
71 | ); | ||
72 | |||
73 | Status SDL_NAME(XF86DGAGetVideo)( | ||
74 | #if NeedFunctionPrototypes | ||
75 | Display* /* dpy */, | ||
76 | int /* screen */, | ||
77 | char ** /* base addr */, | ||
78 | int * /* width */, | ||
79 | int * /* bank_size */, | ||
80 | int * /* ram_size */ | ||
81 | #endif | ||
82 | ); | ||
83 | |||
84 | Status SDL_NAME(XF86DGADirectVideo)( | ||
85 | #if NeedFunctionPrototypes | ||
86 | Display* /* dpy */, | ||
87 | int /* screen */, | ||
88 | int /* enable */ | ||
89 | #endif | ||
90 | ); | ||
91 | |||
92 | Status SDL_NAME(XF86DGADirectVideoLL)( | ||
93 | #if NeedFunctionPrototypes | ||
94 | Display* /* dpy */, | ||
95 | int /* screen */, | ||
96 | int /* enable */ | ||
97 | #endif | ||
98 | ); | ||
99 | |||
100 | Status SDL_NAME(XF86DGAGetViewPortSize)( | ||
101 | #if NeedFunctionPrototypes | ||
102 | Display* /* dpy */, | ||
103 | int /* screen */, | ||
104 | int * /* width */, | ||
105 | int * /* height */ | ||
106 | #endif | ||
107 | ); | ||
108 | |||
109 | Status SDL_NAME(XF86DGASetViewPort)( | ||
110 | #if NeedFunctionPrototypes | ||
111 | Display* /* dpy */, | ||
112 | int /* screen */, | ||
113 | int x /* X */, | ||
114 | int y /* Y */ | ||
115 | #endif | ||
116 | ); | ||
117 | |||
118 | Status SDL_NAME(XF86DGAGetVidPage)( | ||
119 | #if NeedFunctionPrototypes | ||
120 | Display* /* dpy */, | ||
121 | int /* screen */, | ||
122 | int * /* vid page */ | ||
123 | #endif | ||
124 | ); | ||
125 | |||
126 | Status SDL_NAME(XF86DGASetVidPage)( | ||
127 | #if NeedFunctionPrototypes | ||
128 | Display* /* dpy */, | ||
129 | int /* screen */, | ||
130 | int /* vid page */ | ||
131 | #endif | ||
132 | ); | ||
133 | |||
134 | Status SDL_NAME(XF86DGAInstallColormap)( | ||
135 | #if NeedFunctionPrototypes | ||
136 | Display* /* dpy */, | ||
137 | int /* screen */, | ||
138 | Colormap /*Colormap */ | ||
139 | #endif | ||
140 | ); | ||
141 | |||
142 | int SDL_NAME(XF86DGAForkApp)( | ||
143 | #if NeedFunctionPrototypes | ||
144 | int screen | ||
145 | #endif | ||
146 | ); | ||
147 | |||
148 | Status SDL_NAME(XF86DGAQueryDirectVideo)( | ||
149 | #if NeedFunctionPrototypes | ||
150 | Display * /* dpy */, | ||
151 | int /* screen */, | ||
152 | int * /* flags */ | ||
153 | #endif | ||
154 | ); | ||
155 | |||
156 | Bool SDL_NAME(XF86DGAViewPortChanged)( | ||
157 | #if NeedFunctionPrototypes | ||
158 | Display * /* dpy */, | ||
159 | int /* screen */, | ||
160 | int /* n */ | ||
161 | #endif | ||
162 | ); | ||
163 | |||
164 | |||
165 | _XFUNCPROTOEND | ||
166 | |||
167 | #endif /* _XF86DGA_SERVER_ */ | ||
168 | |||
169 | #endif /* _XF86DGA1_H_ */ | ||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/xf86dga1str.h b/apps/plugins/sdl/src/video/Xext/extensions/xf86dga1str.h deleted file mode 100644 index 5695fbd13b..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/xf86dga1str.h +++ /dev/null | |||
@@ -1,194 +0,0 @@ | |||
1 | /* $XFree86: xc/include/extensions/xf86dga1str.h,v 1.2 1999/05/03 12:15:37 dawes Exp $ */ | ||
2 | /* | ||
3 | |||
4 | Copyright (c) 1995 Jon Tombs | ||
5 | Copyright (c) 1995 XFree86 Inc. | ||
6 | |||
7 | */ | ||
8 | |||
9 | #ifndef _XF86DGASTR1_H_ | ||
10 | #define _XF86DGASTR1_H_ | ||
11 | |||
12 | typedef struct _XF86DGAQueryVersion { | ||
13 | CARD8 reqType; /* always DGAReqCode */ | ||
14 | CARD8 dgaReqType; /* always X_DGAQueryVersion */ | ||
15 | CARD16 length B16; | ||
16 | } xXF86DGAQueryVersionReq; | ||
17 | #define sz_xXF86DGAQueryVersionReq 4 | ||
18 | |||
19 | typedef struct { | ||
20 | BYTE type; /* X_Reply */ | ||
21 | BOOL pad1; | ||
22 | CARD16 sequenceNumber B16; | ||
23 | CARD32 length B32; | ||
24 | CARD16 majorVersion B16; /* major version of DGA protocol */ | ||
25 | CARD16 minorVersion B16; /* minor version of DGA protocol */ | ||
26 | CARD32 pad2 B32; | ||
27 | CARD32 pad3 B32; | ||
28 | CARD32 pad4 B32; | ||
29 | CARD32 pad5 B32; | ||
30 | CARD32 pad6 B32; | ||
31 | } xXF86DGAQueryVersionReply; | ||
32 | #define sz_xXF86DGAQueryVersionReply 32 | ||
33 | |||
34 | typedef struct _XF86DGAGetVideoLL { | ||
35 | CARD8 reqType; /* always DGAReqCode */ | ||
36 | CARD8 dgaReqType; /* always X_XF86DGAGetVideoLL */ | ||
37 | CARD16 length B16; | ||
38 | CARD16 screen B16; | ||
39 | CARD16 pad B16; | ||
40 | } xXF86DGAGetVideoLLReq; | ||
41 | #define sz_xXF86DGAGetVideoLLReq 8 | ||
42 | |||
43 | typedef struct _XF86DGAInstallColormap{ | ||
44 | CARD8 reqType; | ||
45 | CARD8 dgaReqType; | ||
46 | CARD16 length B16; | ||
47 | CARD16 screen B16; | ||
48 | CARD16 pad2; | ||
49 | CARD32 id B32; /* colormap. */ | ||
50 | } xXF86DGAInstallColormapReq; | ||
51 | #define sz_xXF86DGAInstallColormapReq 12 | ||
52 | |||
53 | |||
54 | typedef struct { | ||
55 | BYTE type; | ||
56 | BOOL pad1; | ||
57 | CARD16 sequenceNumber B16; | ||
58 | CARD32 length B32; | ||
59 | CARD32 offset B32; | ||
60 | CARD32 width B32; | ||
61 | CARD32 bank_size B32; | ||
62 | CARD32 ram_size B32; | ||
63 | CARD32 pad4 B32; | ||
64 | CARD32 pad5 B32; | ||
65 | } xXF86DGAGetVideoLLReply; | ||
66 | #define sz_xXF86DGAGetVideoLLReply 32 | ||
67 | |||
68 | typedef struct _XF86DGADirectVideo { | ||
69 | CARD8 reqType; /* always DGAReqCode */ | ||
70 | CARD8 dgaReqType; /* always X_XF86DGADirectVideo */ | ||
71 | CARD16 length B16; | ||
72 | CARD16 screen B16; | ||
73 | CARD16 enable B16; | ||
74 | } xXF86DGADirectVideoReq; | ||
75 | #define sz_xXF86DGADirectVideoReq 8 | ||
76 | |||
77 | |||
78 | typedef struct _XF86DGAGetViewPortSize { | ||
79 | CARD8 reqType; /* always DGAReqCode */ | ||
80 | CARD8 dgaReqType; /* always X_XF86DGAGetViewPort */ | ||
81 | CARD16 length B16; | ||
82 | CARD16 screen B16; | ||
83 | CARD16 pad B16; | ||
84 | } xXF86DGAGetViewPortSizeReq; | ||
85 | #define sz_xXF86DGAGetViewPortSizeReq 8 | ||
86 | |||
87 | typedef struct { | ||
88 | BYTE type; | ||
89 | BOOL pad1; | ||
90 | CARD16 sequenceNumber B16; | ||
91 | CARD32 length B32; | ||
92 | CARD32 width B32; | ||
93 | CARD32 height B32; | ||
94 | CARD32 pad2 B32; | ||
95 | CARD32 pad3 B32; | ||
96 | CARD32 pad4 B32; | ||
97 | CARD32 pad5 B32; | ||
98 | } xXF86DGAGetViewPortSizeReply; | ||
99 | #define sz_xXF86DGAGetViewPortSizeReply 32 | ||
100 | |||
101 | typedef struct _XF86DGASetViewPort { | ||
102 | CARD8 reqType; /* always DGAReqCode */ | ||
103 | CARD8 dgaReqType; /* always X_XF86DGASetViewPort */ | ||
104 | CARD16 length B16; | ||
105 | CARD16 screen B16; | ||
106 | CARD16 pad B16; | ||
107 | CARD32 x B32; | ||
108 | CARD32 y B32; | ||
109 | } xXF86DGASetViewPortReq; | ||
110 | #define sz_xXF86DGASetViewPortReq 16 | ||
111 | |||
112 | typedef struct _XF86DGAGetVidPage { | ||
113 | CARD8 reqType; /* always DGAReqCode */ | ||
114 | CARD8 dgaReqType; /* always X_XF86DGAGetVidPage */ | ||
115 | CARD16 length B16; | ||
116 | CARD16 screen B16; | ||
117 | CARD16 pad B16; | ||
118 | } xXF86DGAGetVidPageReq; | ||
119 | #define sz_xXF86DGAGetVidPageReq 8 | ||
120 | |||
121 | typedef struct { | ||
122 | BYTE type; | ||
123 | BOOL pad1; | ||
124 | CARD16 sequenceNumber B16; | ||
125 | CARD32 length B32; | ||
126 | CARD32 vpage B32; | ||
127 | CARD32 pad B32; | ||
128 | CARD32 pad2 B32; | ||
129 | CARD32 pad3 B32; | ||
130 | CARD32 pad4 B32; | ||
131 | CARD32 pad5 B32; | ||
132 | } xXF86DGAGetVidPageReply; | ||
133 | #define sz_xXF86DGAGetVidPageReply 32 | ||
134 | |||
135 | |||
136 | typedef struct _XF86DGASetVidPage { | ||
137 | CARD8 reqType; /* always DGAReqCode */ | ||
138 | CARD8 dgaReqType; /* always X_XF86DGASetVidPage */ | ||
139 | CARD16 length B16; | ||
140 | CARD16 screen B16; | ||
141 | CARD16 vpage B16; | ||
142 | } xXF86DGASetVidPageReq; | ||
143 | #define sz_xXF86DGASetVidPageReq 8 | ||
144 | |||
145 | |||
146 | typedef struct _XF86DGAQueryDirectVideo { | ||
147 | CARD8 reqType; /* always DGAReqCode */ | ||
148 | CARD8 dgaReqType; /* always X_DGAQueryVersion */ | ||
149 | CARD16 length B16; | ||
150 | CARD16 screen B16; | ||
151 | CARD16 pad B16; | ||
152 | } xXF86DGAQueryDirectVideoReq; | ||
153 | #define sz_xXF86DGAQueryDirectVideoReq 8 | ||
154 | |||
155 | typedef struct { | ||
156 | BYTE type; | ||
157 | BOOL pad1; | ||
158 | CARD16 sequenceNumber B16; | ||
159 | CARD32 length B32; | ||
160 | CARD32 flags B32; | ||
161 | CARD32 pad B32; | ||
162 | CARD32 pad2 B32; | ||
163 | CARD32 pad3 B32; | ||
164 | CARD32 pad4 B32; | ||
165 | CARD32 pad5 B32; | ||
166 | } xXF86DGAQueryDirectVideoReply; | ||
167 | #define sz_xXF86DGAQueryDirectVideoReply 32 | ||
168 | |||
169 | |||
170 | typedef struct _XF86DGAViewPortChanged { | ||
171 | CARD8 reqType; /* always DGAReqCode */ | ||
172 | CARD8 dgaReqType; /* always X_DGAQueryVersion */ | ||
173 | CARD16 length B16; | ||
174 | CARD16 screen B16; | ||
175 | CARD16 n B16; | ||
176 | } xXF86DGAViewPortChangedReq; | ||
177 | #define sz_xXF86DGAViewPortChangedReq 8 | ||
178 | |||
179 | typedef struct { | ||
180 | BYTE type; | ||
181 | BOOL pad1; | ||
182 | CARD16 sequenceNumber B16; | ||
183 | CARD32 length B32; | ||
184 | CARD32 result B32; | ||
185 | CARD32 pad B32; | ||
186 | CARD32 pad2 B32; | ||
187 | CARD32 pad3 B32; | ||
188 | CARD32 pad4 B32; | ||
189 | CARD32 pad5 B32; | ||
190 | } xXF86DGAViewPortChangedReply; | ||
191 | #define sz_xXF86DGAViewPortChangedReply 32 | ||
192 | |||
193 | #endif /* _XF86DGASTR1_H_ */ | ||
194 | |||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/xf86dgastr.h b/apps/plugins/sdl/src/video/Xext/extensions/xf86dgastr.h deleted file mode 100644 index b249feb3c6..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/xf86dgastr.h +++ /dev/null | |||
@@ -1,344 +0,0 @@ | |||
1 | /* $XFree86: xc/include/extensions/xf86dgastr.h,v 3.14 2001/08/01 00:44:36 tsi Exp $ */ | ||
2 | /* | ||
3 | |||
4 | Copyright (c) 1995 Jon Tombs | ||
5 | Copyright (c) 1995 XFree86 Inc. | ||
6 | |||
7 | */ | ||
8 | |||
9 | #ifndef _XF86DGASTR_H_ | ||
10 | #define _XF86DGASTR_H_ | ||
11 | |||
12 | #include "xf86dga1str.h" | ||
13 | |||
14 | #define XF86DGANAME "XFree86-DGA" | ||
15 | |||
16 | #define XDGA_MAJOR_VERSION 2 /* current version numbers */ | ||
17 | #define XDGA_MINOR_VERSION 0 | ||
18 | |||
19 | |||
20 | typedef struct _XDGAQueryVersion { | ||
21 | CARD8 reqType; /* always DGAReqCode */ | ||
22 | CARD8 dgaReqType; /* always X_DGAQueryVersion */ | ||
23 | CARD16 length B16; | ||
24 | } xXDGAQueryVersionReq; | ||
25 | #define sz_xXDGAQueryVersionReq 4 | ||
26 | |||
27 | typedef struct { | ||
28 | BYTE type; /* X_Reply */ | ||
29 | BOOL pad1; | ||
30 | CARD16 sequenceNumber B16; | ||
31 | CARD32 length B32; | ||
32 | CARD16 majorVersion B16; /* major version of DGA protocol */ | ||
33 | CARD16 minorVersion B16; /* minor version of DGA protocol */ | ||
34 | CARD32 pad2 B32; | ||
35 | CARD32 pad3 B32; | ||
36 | CARD32 pad4 B32; | ||
37 | CARD32 pad5 B32; | ||
38 | CARD32 pad6 B32; | ||
39 | } xXDGAQueryVersionReply; | ||
40 | #define sz_xXDGAQueryVersionReply 32 | ||
41 | |||
42 | typedef struct _XDGAQueryModes { | ||
43 | CARD8 reqType; | ||
44 | CARD8 dgaReqType; | ||
45 | CARD16 length B16; | ||
46 | CARD32 screen B32; | ||
47 | } xXDGAQueryModesReq; | ||
48 | #define sz_xXDGAQueryModesReq 8 | ||
49 | |||
50 | typedef struct { | ||
51 | BYTE type; /* X_Reply */ | ||
52 | BOOL pad1; | ||
53 | CARD16 sequenceNumber B16; | ||
54 | CARD32 length B32; | ||
55 | CARD32 number B32; /* number of modes available */ | ||
56 | CARD32 pad2 B32; | ||
57 | CARD32 pad3 B32; | ||
58 | CARD32 pad4 B32; | ||
59 | CARD32 pad5 B32; | ||
60 | CARD32 pad6 B32; | ||
61 | } xXDGAQueryModesReply; | ||
62 | #define sz_xXDGAQueryModesReply 32 | ||
63 | |||
64 | |||
65 | typedef struct _XDGASetMode { | ||
66 | CARD8 reqType; | ||
67 | CARD8 dgaReqType; | ||
68 | CARD16 length B16; | ||
69 | CARD32 screen B32; | ||
70 | CARD32 mode B32; /* mode number to init */ | ||
71 | CARD32 pid B32; /* Pixmap descriptor */ | ||
72 | } xXDGASetModeReq; | ||
73 | #define sz_xXDGASetModeReq 16 | ||
74 | |||
75 | typedef struct { | ||
76 | BYTE type; /* X_Reply */ | ||
77 | BOOL pad1; | ||
78 | CARD16 sequenceNumber B16; | ||
79 | CARD32 length B32; | ||
80 | CARD32 offset B32; /* offset into framebuffer map */ | ||
81 | CARD32 flags B32; | ||
82 | CARD32 pad2 B32; | ||
83 | CARD32 pad3 B32; | ||
84 | CARD32 pad4 B32; | ||
85 | CARD32 pad5 B32; | ||
86 | } xXDGASetModeReply; | ||
87 | #define sz_xXDGASetModeReply 32 | ||
88 | |||
89 | typedef struct { | ||
90 | CARD8 byte_order; | ||
91 | CARD8 depth; | ||
92 | CARD16 num B16; | ||
93 | CARD16 bpp B16; | ||
94 | CARD16 name_size B16; | ||
95 | CARD32 vsync_num B32; | ||
96 | CARD32 vsync_den B32; | ||
97 | CARD32 flags B32; | ||
98 | CARD16 image_width B16; | ||
99 | CARD16 image_height B16; | ||
100 | CARD16 pixmap_width B16; | ||
101 | CARD16 pixmap_height B16; | ||
102 | CARD32 bytes_per_scanline B32; | ||
103 | CARD32 red_mask B32; | ||
104 | CARD32 green_mask B32; | ||
105 | CARD32 blue_mask B32; | ||
106 | CARD16 visual_class B16; | ||
107 | CARD16 pad1 B16; | ||
108 | CARD16 viewport_width B16; | ||
109 | CARD16 viewport_height B16; | ||
110 | CARD16 viewport_xstep B16; | ||
111 | CARD16 viewport_ystep B16; | ||
112 | CARD16 viewport_xmax B16; | ||
113 | CARD16 viewport_ymax B16; | ||
114 | CARD32 viewport_flags B32; | ||
115 | CARD32 reserved1 B32; | ||
116 | CARD32 reserved2 B32; | ||
117 | } xXDGAModeInfo; | ||
118 | #define sz_xXDGAModeInfo 72 | ||
119 | |||
120 | typedef struct _XDGAOpenFramebuffer { | ||
121 | CARD8 reqType; | ||
122 | CARD8 dgaReqType; | ||
123 | CARD16 length B16; | ||
124 | CARD32 screen B32; | ||
125 | } xXDGAOpenFramebufferReq; | ||
126 | #define sz_xXDGAOpenFramebufferReq 8 | ||
127 | |||
128 | typedef struct { | ||
129 | BYTE type; /* X_Reply */ | ||
130 | BOOL pad1; | ||
131 | CARD16 sequenceNumber B16; | ||
132 | CARD32 length B32; /* device name size if there is one */ | ||
133 | CARD32 mem1 B32; /* physical memory */ | ||
134 | CARD32 mem2 B32; /* spillover for _alpha_ */ | ||
135 | CARD32 size B32; /* size of map in bytes */ | ||
136 | CARD32 offset B32; /* optional offset into device */ | ||
137 | CARD32 extra B32; /* extra info associated with the map */ | ||
138 | CARD32 pad2 B32; | ||
139 | } xXDGAOpenFramebufferReply; | ||
140 | #define sz_xXDGAOpenFramebufferReply 32 | ||
141 | |||
142 | |||
143 | typedef struct _XDGACloseFramebuffer { | ||
144 | CARD8 reqType; | ||
145 | CARD8 dgaReqType; | ||
146 | CARD16 length B16; | ||
147 | CARD32 screen B32; | ||
148 | } xXDGACloseFramebufferReq; | ||
149 | #define sz_xXDGACloseFramebufferReq 8 | ||
150 | |||
151 | |||
152 | typedef struct _XDGASetViewport { | ||
153 | CARD8 reqType; | ||
154 | CARD8 dgaReqType; | ||
155 | CARD16 length B16; | ||
156 | CARD32 screen B32; | ||
157 | CARD16 x B16; | ||
158 | CARD16 y B16; | ||
159 | CARD32 flags B32; | ||
160 | } xXDGASetViewportReq; | ||
161 | #define sz_xXDGASetViewportReq 16 | ||
162 | |||
163 | |||
164 | typedef struct _XDGAInstallColormap { | ||
165 | CARD8 reqType; | ||
166 | CARD8 dgaReqType; | ||
167 | CARD16 length B16; | ||
168 | CARD32 screen B32; | ||
169 | CARD32 cmap B32; | ||
170 | } xXDGAInstallColormapReq; | ||
171 | #define sz_xXDGAInstallColormapReq 12 | ||
172 | |||
173 | typedef struct _XDGASelectInput { | ||
174 | CARD8 reqType; | ||
175 | CARD8 dgaReqType; | ||
176 | CARD16 length B16; | ||
177 | CARD32 screen B32; | ||
178 | CARD32 mask B32; | ||
179 | } xXDGASelectInputReq; | ||
180 | #define sz_xXDGASelectInputReq 12 | ||
181 | |||
182 | typedef struct _XDGAFillRectangle { | ||
183 | CARD8 reqType; | ||
184 | CARD8 dgaReqType; | ||
185 | CARD16 length B16; | ||
186 | CARD32 screen B32; | ||
187 | CARD16 x B16; | ||
188 | CARD16 y B16; | ||
189 | CARD16 width B16; | ||
190 | CARD16 height B16; | ||
191 | CARD32 color B32; | ||
192 | } xXDGAFillRectangleReq; | ||
193 | #define sz_xXDGAFillRectangleReq 20 | ||
194 | |||
195 | |||
196 | typedef struct _XDGACopyArea { | ||
197 | CARD8 reqType; | ||
198 | CARD8 dgaReqType; | ||
199 | CARD16 length B16; | ||
200 | CARD32 screen B32; | ||
201 | CARD16 srcx B16; | ||
202 | CARD16 srcy B16; | ||
203 | CARD16 width B16; | ||
204 | CARD16 height B16; | ||
205 | CARD16 dstx B16; | ||
206 | CARD16 dsty B16; | ||
207 | } xXDGACopyAreaReq; | ||
208 | #define sz_xXDGACopyAreaReq 20 | ||
209 | |||
210 | typedef struct _XDGACopyTransparentArea { | ||
211 | CARD8 reqType; | ||
212 | CARD8 dgaReqType; | ||
213 | CARD16 length B16; | ||
214 | CARD32 screen B32; | ||
215 | CARD16 srcx B16; | ||
216 | CARD16 srcy B16; | ||
217 | CARD16 width B16; | ||
218 | CARD16 height B16; | ||
219 | CARD16 dstx B16; | ||
220 | CARD16 dsty B16; | ||
221 | CARD32 key B32; | ||
222 | } xXDGACopyTransparentAreaReq; | ||
223 | #define sz_xXDGACopyTransparentAreaReq 24 | ||
224 | |||
225 | |||
226 | typedef struct _XDGAGetViewportStatus { | ||
227 | CARD8 reqType; | ||
228 | CARD8 dgaReqType; | ||
229 | CARD16 length B16; | ||
230 | CARD32 screen B32; | ||
231 | } xXDGAGetViewportStatusReq; | ||
232 | #define sz_xXDGAGetViewportStatusReq 8 | ||
233 | |||
234 | typedef struct { | ||
235 | BYTE type; | ||
236 | BOOL pad1; | ||
237 | CARD16 sequenceNumber B16; | ||
238 | CARD32 length B32; | ||
239 | CARD32 status B32; | ||
240 | CARD32 pad2 B32; | ||
241 | CARD32 pad3 B32; | ||
242 | CARD32 pad4 B32; | ||
243 | CARD32 pad5 B32; | ||
244 | CARD32 pad6 B32; | ||
245 | } xXDGAGetViewportStatusReply; | ||
246 | #define sz_xXDGAGetViewportStatusReply 32 | ||
247 | |||
248 | typedef struct _XDGASync { | ||
249 | CARD8 reqType; | ||
250 | CARD8 dgaReqType; | ||
251 | CARD16 length B16; | ||
252 | CARD32 screen B32; | ||
253 | } xXDGASyncReq; | ||
254 | #define sz_xXDGASyncReq 8 | ||
255 | |||
256 | typedef struct { | ||
257 | BYTE type; | ||
258 | BOOL pad1; | ||
259 | CARD16 sequenceNumber B16; | ||
260 | CARD32 length B32; | ||
261 | CARD32 pad2 B32; | ||
262 | CARD32 pad3 B32; | ||
263 | CARD32 pad4 B32; | ||
264 | CARD32 pad5 B32; | ||
265 | CARD32 pad6 B32; | ||
266 | CARD32 pad7 B32; | ||
267 | } xXDGASyncReply; | ||
268 | #define sz_xXDGASyncReply 32 | ||
269 | |||
270 | typedef struct _XDGASetClientVersion { | ||
271 | CARD8 reqType; | ||
272 | CARD8 dgaReqType; | ||
273 | CARD16 length B16; | ||
274 | CARD16 major B16; | ||
275 | CARD16 minor B16; | ||
276 | } xXDGASetClientVersionReq; | ||
277 | #define sz_xXDGASetClientVersionReq 8 | ||
278 | |||
279 | |||
280 | typedef struct { | ||
281 | CARD8 reqType; | ||
282 | CARD8 dgaReqType; | ||
283 | CARD16 length B16; | ||
284 | CARD32 screen B32; | ||
285 | CARD16 x B16; | ||
286 | CARD16 y B16; | ||
287 | CARD32 flags B32; | ||
288 | } xXDGAChangePixmapModeReq; | ||
289 | #define sz_xXDGAChangePixmapModeReq 16 | ||
290 | |||
291 | typedef struct { | ||
292 | BYTE type; | ||
293 | BOOL pad1; | ||
294 | CARD16 sequenceNumber B16; | ||
295 | CARD32 length B32; | ||
296 | CARD16 x B16; | ||
297 | CARD16 y B16; | ||
298 | CARD32 pad3 B32; | ||
299 | CARD32 pad4 B32; | ||
300 | CARD32 pad5 B32; | ||
301 | CARD32 pad6 B32; | ||
302 | CARD32 pad7 B32; | ||
303 | } xXDGAChangePixmapModeReply; | ||
304 | #define sz_xXDGAChangePixmapModeReply 32 | ||
305 | |||
306 | typedef struct _XDGACreateColormap { | ||
307 | CARD8 reqType; | ||
308 | CARD8 dgaReqType; | ||
309 | CARD16 length B16; | ||
310 | CARD32 screen B32; | ||
311 | CARD32 id B32; | ||
312 | CARD32 mode B32; | ||
313 | CARD8 alloc; | ||
314 | CARD8 pad1; | ||
315 | CARD16 pad2; | ||
316 | } xXDGACreateColormapReq; | ||
317 | #define sz_xXDGACreateColormapReq 20 | ||
318 | |||
319 | |||
320 | typedef struct { | ||
321 | union { | ||
322 | struct { | ||
323 | BYTE type; | ||
324 | BYTE detail; | ||
325 | CARD16 sequenceNumber B16; | ||
326 | } u; | ||
327 | struct { | ||
328 | CARD32 pad0 B32; | ||
329 | CARD32 time B32; | ||
330 | INT16 dx B16; | ||
331 | INT16 dy B16; | ||
332 | INT16 screen B16; | ||
333 | CARD16 state B16; | ||
334 | CARD32 pad1 B32; | ||
335 | CARD32 pad2 B32; | ||
336 | CARD32 pad3 B32; | ||
337 | CARD32 pad4 B32; | ||
338 | } event; | ||
339 | } u; | ||
340 | } dgaEvent; | ||
341 | |||
342 | |||
343 | #endif /* _XF86DGASTR_H_ */ | ||
344 | |||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/xf86vmode.h b/apps/plugins/sdl/src/video/Xext/extensions/xf86vmode.h deleted file mode 100644 index eb56c0e8da..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/xf86vmode.h +++ /dev/null | |||
@@ -1,314 +0,0 @@ | |||
1 | /* $XFree86: xc/include/extensions/xf86vmode.h,v 3.30 2001/05/07 20:09:50 mvojkovi Exp $ */ | ||
2 | /* | ||
3 | |||
4 | Copyright 1995 Kaleb S. KEITHLEY | ||
5 | |||
6 | Permission is hereby granted, free of charge, to any person obtaining | ||
7 | a copy of this software and associated documentation files (the | ||
8 | "Software"), to deal in the Software without restriction, including | ||
9 | without limitation the rights to use, copy, modify, merge, publish, | ||
10 | distribute, sublicense, and/or sell copies of the Software, and to | ||
11 | permit persons to whom the Software is furnished to do so, subject to | ||
12 | the following conditions: | ||
13 | |||
14 | The above copyright notice and this permission notice shall be | ||
15 | included in all copies or substantial portions of the Software. | ||
16 | |||
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
20 | IN NO EVENT SHALL Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES | ||
21 | OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
22 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
23 | OTHER DEALINGS IN THE SOFTWARE. | ||
24 | |||
25 | Except as contained in this notice, the name of Kaleb S. KEITHLEY | ||
26 | shall not be used in advertising or otherwise to promote the sale, use | ||
27 | or other dealings in this Software without prior written authorization | ||
28 | from Kaleb S. KEITHLEY | ||
29 | |||
30 | */ | ||
31 | /* $Xorg: xf86vmode.h,v 1.3 2000/08/18 04:05:46 coskrey Exp $ */ | ||
32 | |||
33 | /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */ | ||
34 | |||
35 | #ifndef _XF86VIDMODE_H_ | ||
36 | #define _XF86VIDMODE_H_ | ||
37 | |||
38 | #include <X11/Xfuncproto.h> | ||
39 | #include <X11/Xmd.h> | ||
40 | #include "SDL_name.h" | ||
41 | |||
42 | #define X_XF86VidModeQueryVersion 0 | ||
43 | #define X_XF86VidModeGetModeLine 1 | ||
44 | #define X_XF86VidModeModModeLine 2 | ||
45 | #define X_XF86VidModeSwitchMode 3 | ||
46 | #define X_XF86VidModeGetMonitor 4 | ||
47 | #define X_XF86VidModeLockModeSwitch 5 | ||
48 | #define X_XF86VidModeGetAllModeLines 6 | ||
49 | #define X_XF86VidModeAddModeLine 7 | ||
50 | #define X_XF86VidModeDeleteModeLine 8 | ||
51 | #define X_XF86VidModeValidateModeLine 9 | ||
52 | #define X_XF86VidModeSwitchToMode 10 | ||
53 | #define X_XF86VidModeGetViewPort 11 | ||
54 | #define X_XF86VidModeSetViewPort 12 | ||
55 | /* new for version 2.x of this extension */ | ||
56 | #define X_XF86VidModeGetDotClocks 13 | ||
57 | #define X_XF86VidModeSetClientVersion 14 | ||
58 | #define X_XF86VidModeSetGamma 15 | ||
59 | #define X_XF86VidModeGetGamma 16 | ||
60 | #define X_XF86VidModeGetGammaRamp 17 | ||
61 | #define X_XF86VidModeSetGammaRamp 18 | ||
62 | #define X_XF86VidModeGetGammaRampSize 19 | ||
63 | |||
64 | #define CLKFLAG_PROGRAMABLE 1 | ||
65 | |||
66 | #ifdef XF86VIDMODE_EVENTS | ||
67 | #define XF86VidModeNotify 0 | ||
68 | #define XF86VidModeNumberEvents (XF86VidModeNotify + 1) | ||
69 | |||
70 | #define XF86VidModeNotifyMask 0x00000001 | ||
71 | |||
72 | #define XF86VidModeNonEvent 0 | ||
73 | #define XF86VidModeModeChange 1 | ||
74 | #else | ||
75 | #define XF86VidModeNumberEvents 0 | ||
76 | #endif | ||
77 | |||
78 | #define XF86VidModeBadClock 0 | ||
79 | #define XF86VidModeBadHTimings 1 | ||
80 | #define XF86VidModeBadVTimings 2 | ||
81 | #define XF86VidModeModeUnsuitable 3 | ||
82 | #define XF86VidModeExtensionDisabled 4 | ||
83 | #define XF86VidModeClientNotLocal 5 | ||
84 | #define XF86VidModeZoomLocked 6 | ||
85 | #define XF86VidModeNumberErrors (XF86VidModeZoomLocked + 1) | ||
86 | |||
87 | #ifndef _XF86VIDMODE_SERVER_ | ||
88 | |||
89 | typedef struct { | ||
90 | unsigned short hdisplay; | ||
91 | unsigned short hsyncstart; | ||
92 | unsigned short hsyncend; | ||
93 | unsigned short htotal; | ||
94 | unsigned short hskew; | ||
95 | unsigned short vdisplay; | ||
96 | unsigned short vsyncstart; | ||
97 | unsigned short vsyncend; | ||
98 | unsigned short vtotal; | ||
99 | unsigned int flags; | ||
100 | int privsize; | ||
101 | #if defined(__cplusplus) || defined(c_plusplus) | ||
102 | /* private is a C++ reserved word */ | ||
103 | INT32 *c_private; | ||
104 | #else | ||
105 | INT32 *private; | ||
106 | #endif | ||
107 | } SDL_NAME(XF86VidModeModeLine); | ||
108 | |||
109 | typedef struct { | ||
110 | unsigned int dotclock; | ||
111 | unsigned short hdisplay; | ||
112 | unsigned short hsyncstart; | ||
113 | unsigned short hsyncend; | ||
114 | unsigned short htotal; | ||
115 | unsigned short hskew; | ||
116 | unsigned short vdisplay; | ||
117 | unsigned short vsyncstart; | ||
118 | unsigned short vsyncend; | ||
119 | unsigned short vtotal; | ||
120 | unsigned int flags; | ||
121 | int privsize; | ||
122 | #if defined(__cplusplus) || defined(c_plusplus) | ||
123 | /* private is a C++ reserved word */ | ||
124 | INT32 *c_private; | ||
125 | #else | ||
126 | INT32 *private; | ||
127 | #endif | ||
128 | } SDL_NAME(XF86VidModeModeInfo); | ||
129 | |||
130 | typedef struct { | ||
131 | float hi; | ||
132 | float lo; | ||
133 | } SDL_NAME(XF86VidModeSyncRange); | ||
134 | |||
135 | typedef struct { | ||
136 | char* vendor; | ||
137 | char* model; | ||
138 | float EMPTY; | ||
139 | unsigned char nhsync; | ||
140 | SDL_NAME(XF86VidModeSyncRange)* hsync; | ||
141 | unsigned char nvsync; | ||
142 | SDL_NAME(XF86VidModeSyncRange)* vsync; | ||
143 | } SDL_NAME(XF86VidModeMonitor); | ||
144 | |||
145 | typedef struct { | ||
146 | int type; /* of event */ | ||
147 | unsigned long serial; /* # of last request processed by server */ | ||
148 | Bool send_event; /* true if this came from a SendEvent req */ | ||
149 | Display *display; /* Display the event was read from */ | ||
150 | Window root; /* root window of event screen */ | ||
151 | int state; /* What happened */ | ||
152 | int kind; /* What happened */ | ||
153 | Bool forced; /* extents of new region */ | ||
154 | Time time; /* event timestamp */ | ||
155 | } SDL_NAME(XF86VidModeNotifyEvent); | ||
156 | |||
157 | typedef struct { | ||
158 | float red; /* Red Gamma value */ | ||
159 | float green; /* Green Gamma value */ | ||
160 | float blue; /* Blue Gamma value */ | ||
161 | } SDL_NAME(XF86VidModeGamma); | ||
162 | |||
163 | |||
164 | #define SDL_XF86VidModeSelectNextMode(disp, scr) \ | ||
165 | SDL_NAME(XF86VidModeSwitchMode)(disp, scr, 1) | ||
166 | #define SDL_XF86VidModeSelectPrevMode(disp, scr) \ | ||
167 | SDL_NAME(XF86VidModeSwitchMode)(disp, scr, -1) | ||
168 | |||
169 | _XFUNCPROTOBEGIN | ||
170 | |||
171 | Bool SDL_NAME(XF86VidModeQueryVersion)( | ||
172 | Display* /* dpy */, | ||
173 | int* /* majorVersion */, | ||
174 | int* /* minorVersion */ | ||
175 | ); | ||
176 | |||
177 | Bool SDL_NAME(XF86VidModeQueryExtension)( | ||
178 | Display* /* dpy */, | ||
179 | int* /* event_base */, | ||
180 | int* /* error_base */ | ||
181 | ); | ||
182 | |||
183 | Bool SDL_NAME(XF86VidModeSetClientVersion)( | ||
184 | Display* /* dpy */ | ||
185 | ); | ||
186 | |||
187 | Bool SDL_NAME(XF86VidModeGetModeLine)( | ||
188 | Display* /* dpy */, | ||
189 | int /* screen */, | ||
190 | int* /* dotclock */, | ||
191 | SDL_NAME(XF86VidModeModeLine)* /* modeline */ | ||
192 | ); | ||
193 | |||
194 | Bool SDL_NAME(XF86VidModeGetAllModeLines)( | ||
195 | Display* /* dpy */, | ||
196 | int /* screen */, | ||
197 | int* /* modecount */, | ||
198 | SDL_NAME(XF86VidModeModeInfo)*** /* modelinesPtr */ | ||
199 | ); | ||
200 | |||
201 | Bool SDL_NAME(XF86VidModeAddModeLine)( | ||
202 | Display* /* dpy */, | ||
203 | int /* screen */, | ||
204 | SDL_NAME(XF86VidModeModeInfo)* /* new modeline */, | ||
205 | SDL_NAME(XF86VidModeModeInfo)* /* after modeline */ | ||
206 | ); | ||
207 | |||
208 | Bool SDL_NAME(XF86VidModeDeleteModeLine)( | ||
209 | Display* /* dpy */, | ||
210 | int /* screen */, | ||
211 | SDL_NAME(XF86VidModeModeInfo)* /* modeline */ | ||
212 | ); | ||
213 | |||
214 | Bool SDL_NAME(XF86VidModeModModeLine)( | ||
215 | Display* /* dpy */, | ||
216 | int /* screen */, | ||
217 | SDL_NAME(XF86VidModeModeLine)* /* modeline */ | ||
218 | ); | ||
219 | |||
220 | Status SDL_NAME(XF86VidModeValidateModeLine)( | ||
221 | Display* /* dpy */, | ||
222 | int /* screen */, | ||
223 | SDL_NAME(XF86VidModeModeInfo)* /* modeline */ | ||
224 | ); | ||
225 | |||
226 | Bool SDL_NAME(XF86VidModeSwitchMode)( | ||
227 | Display* /* dpy */, | ||
228 | int /* screen */, | ||
229 | int /* zoom */ | ||
230 | ); | ||
231 | |||
232 | Bool SDL_NAME(XF86VidModeSwitchToMode)( | ||
233 | Display* /* dpy */, | ||
234 | int /* screen */, | ||
235 | SDL_NAME(XF86VidModeModeInfo)* /* modeline */ | ||
236 | ); | ||
237 | |||
238 | Bool SDL_NAME(XF86VidModeLockModeSwitch)( | ||
239 | Display* /* dpy */, | ||
240 | int /* screen */, | ||
241 | int /* lock */ | ||
242 | ); | ||
243 | |||
244 | Bool SDL_NAME(XF86VidModeGetMonitor)( | ||
245 | Display* /* dpy */, | ||
246 | int /* screen */, | ||
247 | SDL_NAME(XF86VidModeMonitor)* /* monitor */ | ||
248 | ); | ||
249 | |||
250 | Bool SDL_NAME(XF86VidModeGetViewPort)( | ||
251 | Display* /* dpy */, | ||
252 | int /* screen */, | ||
253 | int* /* x return */, | ||
254 | int* /* y return */ | ||
255 | ); | ||
256 | |||
257 | Bool SDL_NAME(XF86VidModeSetViewPort)( | ||
258 | Display* /* dpy */, | ||
259 | int /* screen */, | ||
260 | int /* x */, | ||
261 | int /* y */ | ||
262 | ); | ||
263 | |||
264 | Bool SDL_NAME(XF86VidModeGetDotClocks)( | ||
265 | Display* /* dpy */, | ||
266 | int /* screen */, | ||
267 | int* /* flags return */, | ||
268 | int* /* number of clocks return */, | ||
269 | int* /* max dot clock return */, | ||
270 | int** /* clocks return */ | ||
271 | ); | ||
272 | |||
273 | Bool SDL_NAME(XF86VidModeGetGamma)( | ||
274 | Display* /* dpy */, | ||
275 | int /* screen */, | ||
276 | SDL_NAME(XF86VidModeGamma)* /* Gamma */ | ||
277 | ); | ||
278 | |||
279 | Bool SDL_NAME(XF86VidModeSetGamma)( | ||
280 | Display* /* dpy */, | ||
281 | int /* screen */, | ||
282 | SDL_NAME(XF86VidModeGamma)* /* Gamma */ | ||
283 | ); | ||
284 | |||
285 | Bool SDL_NAME(XF86VidModeSetGammaRamp)( | ||
286 | Display* /* dpy */, | ||
287 | int /* screen */, | ||
288 | int /* size */, | ||
289 | unsigned short* /* red array */, | ||
290 | unsigned short* /* green array */, | ||
291 | unsigned short* /* blue array */ | ||
292 | ); | ||
293 | |||
294 | Bool SDL_NAME(XF86VidModeGetGammaRamp)( | ||
295 | Display* /* dpy */, | ||
296 | int /* screen */, | ||
297 | int /* size */, | ||
298 | unsigned short* /* red array */, | ||
299 | unsigned short* /* green array */, | ||
300 | unsigned short* /* blue array */ | ||
301 | ); | ||
302 | |||
303 | Bool SDL_NAME(XF86VidModeGetGammaRampSize)( | ||
304 | Display* /* dpy */, | ||
305 | int /* screen */, | ||
306 | int* /* size */ | ||
307 | ); | ||
308 | |||
309 | |||
310 | _XFUNCPROTOEND | ||
311 | |||
312 | #endif | ||
313 | |||
314 | #endif | ||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/xf86vmstr.h b/apps/plugins/sdl/src/video/Xext/extensions/xf86vmstr.h deleted file mode 100644 index 0c3078d5aa..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/xf86vmstr.h +++ /dev/null | |||
@@ -1,546 +0,0 @@ | |||
1 | /* $XFree86: xc/include/extensions/xf86vmstr.h,v 3.27 2001/08/01 00:44:36 tsi Exp $ */ | ||
2 | /* | ||
3 | |||
4 | Copyright 1995 Kaleb S. KEITHLEY | ||
5 | |||
6 | Permission is hereby granted, free of charge, to any person obtaining | ||
7 | a copy of this software and associated documentation files (the | ||
8 | "Software"), to deal in the Software without restriction, including | ||
9 | without limitation the rights to use, copy, modify, merge, publish, | ||
10 | distribute, sublicense, and/or sell copies of the Software, and to | ||
11 | permit persons to whom the Software is furnished to do so, subject to | ||
12 | the following conditions: | ||
13 | |||
14 | The above copyright notice and this permission notice shall be | ||
15 | included in all copies or substantial portions of the Software. | ||
16 | |||
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
20 | IN NO EVENT SHALL Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES | ||
21 | OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
22 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
23 | OTHER DEALINGS IN THE SOFTWARE. | ||
24 | |||
25 | Except as contained in this notice, the name of Kaleb S. KEITHLEY | ||
26 | shall not be used in advertising or otherwise to promote the sale, use | ||
27 | or other dealings in this Software without prior written authorization | ||
28 | from Kaleb S. KEITHLEY | ||
29 | |||
30 | */ | ||
31 | /* $Xorg: xf86vmstr.h,v 1.3 2000/08/18 04:05:46 coskrey Exp $ */ | ||
32 | |||
33 | /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */ | ||
34 | |||
35 | #ifndef _XF86VIDMODESTR_H_ | ||
36 | #define _XF86VIDMODESTR_H_ | ||
37 | |||
38 | #include "xf86vmode.h" | ||
39 | |||
40 | #define XF86VIDMODENAME "XFree86-VidModeExtension" | ||
41 | |||
42 | #define XF86VIDMODE_MAJOR_VERSION 2 /* current version numbers */ | ||
43 | #define XF86VIDMODE_MINOR_VERSION 1 | ||
44 | /* | ||
45 | * major version 0 == uses parameter-to-wire functions in XFree86 libXxf86vm. | ||
46 | * major version 1 == uses parameter-to-wire functions hard-coded in xvidtune | ||
47 | * client. | ||
48 | * major version 2 == uses new protocol version in XFree86 4.0. | ||
49 | */ | ||
50 | |||
51 | typedef struct _XF86VidModeQueryVersion { | ||
52 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
53 | CARD8 xf86vidmodeReqType; /* always X_XF86VidModeQueryVersion */ | ||
54 | CARD16 length B16; | ||
55 | } xXF86VidModeQueryVersionReq; | ||
56 | #define sz_xXF86VidModeQueryVersionReq 4 | ||
57 | |||
58 | typedef struct { | ||
59 | BYTE type; /* X_Reply */ | ||
60 | BOOL pad1; | ||
61 | CARD16 sequenceNumber B16; | ||
62 | CARD32 length B32; | ||
63 | CARD16 majorVersion B16; /* major version of XF86VidMode */ | ||
64 | CARD16 minorVersion B16; /* minor version of XF86VidMode */ | ||
65 | CARD32 pad2 B32; | ||
66 | CARD32 pad3 B32; | ||
67 | CARD32 pad4 B32; | ||
68 | CARD32 pad5 B32; | ||
69 | CARD32 pad6 B32; | ||
70 | } xXF86VidModeQueryVersionReply; | ||
71 | #define sz_xXF86VidModeQueryVersionReply 32 | ||
72 | |||
73 | typedef struct _XF86VidModeGetModeLine { | ||
74 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
75 | CARD8 xf86vidmodeReqType; | ||
76 | CARD16 length B16; | ||
77 | CARD16 screen B16; | ||
78 | CARD16 pad B16; | ||
79 | } xXF86VidModeGetModeLineReq, | ||
80 | xXF86VidModeGetAllModeLinesReq, | ||
81 | xXF86VidModeGetMonitorReq, | ||
82 | xXF86VidModeGetViewPortReq, | ||
83 | xXF86VidModeGetDotClocksReq; | ||
84 | #define sz_xXF86VidModeGetModeLineReq 8 | ||
85 | #define sz_xXF86VidModeGetAllModeLinesReq 8 | ||
86 | #define sz_xXF86VidModeGetMonitorReq 8 | ||
87 | #define sz_xXF86VidModeGetViewPortReq 8 | ||
88 | #define sz_xXF86VidModeGetDotClocksReq 8 | ||
89 | |||
90 | typedef struct { | ||
91 | BYTE type; /* X_Reply */ | ||
92 | BOOL pad1; | ||
93 | CARD16 sequenceNumber B16; | ||
94 | CARD32 length B32; | ||
95 | CARD32 dotclock B32; | ||
96 | CARD16 hdisplay B16; | ||
97 | CARD16 hsyncstart B16; | ||
98 | CARD16 hsyncend B16; | ||
99 | CARD16 htotal B16; | ||
100 | CARD16 hskew B16; | ||
101 | CARD16 vdisplay B16; | ||
102 | CARD16 vsyncstart B16; | ||
103 | CARD16 vsyncend B16; | ||
104 | CARD16 vtotal B16; | ||
105 | CARD16 pad2 B16; | ||
106 | CARD32 flags B32; | ||
107 | CARD32 reserved1 B32; | ||
108 | CARD32 reserved2 B32; | ||
109 | CARD32 reserved3 B32; | ||
110 | CARD32 privsize B32; | ||
111 | } xXF86VidModeGetModeLineReply; | ||
112 | #define sz_xXF86VidModeGetModeLineReply 52 | ||
113 | |||
114 | /* 0.x version */ | ||
115 | typedef struct { | ||
116 | BYTE type; /* X_Reply */ | ||
117 | BOOL pad1; | ||
118 | CARD16 sequenceNumber B16; | ||
119 | CARD32 length B32; | ||
120 | CARD32 dotclock B32; | ||
121 | CARD16 hdisplay B16; | ||
122 | CARD16 hsyncstart B16; | ||
123 | CARD16 hsyncend B16; | ||
124 | CARD16 htotal B16; | ||
125 | CARD16 vdisplay B16; | ||
126 | CARD16 vsyncstart B16; | ||
127 | CARD16 vsyncend B16; | ||
128 | CARD16 vtotal B16; | ||
129 | CARD32 flags B32; | ||
130 | CARD32 privsize B32; | ||
131 | } xXF86OldVidModeGetModeLineReply; | ||
132 | #define sz_xXF86OldVidModeGetModeLineReply 36 | ||
133 | |||
134 | typedef struct { | ||
135 | CARD32 dotclock B32; | ||
136 | CARD16 hdisplay B16; | ||
137 | CARD16 hsyncstart B16; | ||
138 | CARD16 hsyncend B16; | ||
139 | CARD16 htotal B16; | ||
140 | CARD32 hskew B16; | ||
141 | CARD16 vdisplay B16; | ||
142 | CARD16 vsyncstart B16; | ||
143 | CARD16 vsyncend B16; | ||
144 | CARD16 vtotal B16; | ||
145 | CARD16 pad1 B16; | ||
146 | CARD32 flags B32; | ||
147 | CARD32 reserved1 B32; | ||
148 | CARD32 reserved2 B32; | ||
149 | CARD32 reserved3 B32; | ||
150 | CARD32 privsize B32; | ||
151 | } xXF86VidModeModeInfo; | ||
152 | |||
153 | /* 0.x version */ | ||
154 | typedef struct { | ||
155 | CARD32 dotclock B32; | ||
156 | CARD16 hdisplay B16; | ||
157 | CARD16 hsyncstart B16; | ||
158 | CARD16 hsyncend B16; | ||
159 | CARD16 htotal B16; | ||
160 | CARD16 vdisplay B16; | ||
161 | CARD16 vsyncstart B16; | ||
162 | CARD16 vsyncend B16; | ||
163 | CARD16 vtotal B16; | ||
164 | CARD32 flags B32; | ||
165 | CARD32 privsize B32; | ||
166 | } xXF86OldVidModeModeInfo; | ||
167 | |||
168 | typedef struct { | ||
169 | BYTE type; /* X_Reply */ | ||
170 | BOOL pad1; | ||
171 | CARD16 sequenceNumber B16; | ||
172 | CARD32 length B32; | ||
173 | CARD32 modecount B32; | ||
174 | CARD32 pad2 B32; | ||
175 | CARD32 pad3 B32; | ||
176 | CARD32 pad4 B32; | ||
177 | CARD32 pad5 B32; | ||
178 | CARD32 pad6 B32; | ||
179 | } xXF86VidModeGetAllModeLinesReply; | ||
180 | #define sz_xXF86VidModeGetAllModeLinesReply 32 | ||
181 | |||
182 | typedef struct _XF86VidModeAddModeLine { | ||
183 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
184 | CARD8 xf86vidmodeReqType; /* always X_XF86VidModeAddMode */ | ||
185 | CARD16 length B16; | ||
186 | CARD32 screen B32; /* could be CARD16 but need the pad */ | ||
187 | CARD32 dotclock B32; | ||
188 | CARD16 hdisplay B16; | ||
189 | CARD16 hsyncstart B16; | ||
190 | CARD16 hsyncend B16; | ||
191 | CARD16 htotal B16; | ||
192 | CARD16 hskew B16; | ||
193 | CARD16 vdisplay B16; | ||
194 | CARD16 vsyncstart B16; | ||
195 | CARD16 vsyncend B16; | ||
196 | CARD16 vtotal B16; | ||
197 | CARD16 pad1 B16; | ||
198 | CARD32 flags B32; | ||
199 | CARD32 reserved1 B32; | ||
200 | CARD32 reserved2 B32; | ||
201 | CARD32 reserved3 B32; | ||
202 | CARD32 privsize B32; | ||
203 | CARD32 after_dotclock B32; | ||
204 | CARD16 after_hdisplay B16; | ||
205 | CARD16 after_hsyncstart B16; | ||
206 | CARD16 after_hsyncend B16; | ||
207 | CARD16 after_htotal B16; | ||
208 | CARD16 after_hskew B16; | ||
209 | CARD16 after_vdisplay B16; | ||
210 | CARD16 after_vsyncstart B16; | ||
211 | CARD16 after_vsyncend B16; | ||
212 | CARD16 after_vtotal B16; | ||
213 | CARD16 pad2 B16; | ||
214 | CARD32 after_flags B32; | ||
215 | CARD32 reserved4 B32; | ||
216 | CARD32 reserved5 B32; | ||
217 | CARD32 reserved6 B32; | ||
218 | } xXF86VidModeAddModeLineReq; | ||
219 | #define sz_xXF86VidModeAddModeLineReq 92 | ||
220 | |||
221 | /* 0.x version */ | ||
222 | typedef struct _XF86OldVidModeAddModeLine { | ||
223 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
224 | CARD8 xf86vidmodeReqType; /* always X_XF86VidModeAddMode */ | ||
225 | CARD16 length B16; | ||
226 | CARD32 screen B32; /* could be CARD16 but need the pad */ | ||
227 | CARD32 dotclock B32; | ||
228 | CARD16 hdisplay B16; | ||
229 | CARD16 hsyncstart B16; | ||
230 | CARD16 hsyncend B16; | ||
231 | CARD16 htotal B16; | ||
232 | CARD16 vdisplay B16; | ||
233 | CARD16 vsyncstart B16; | ||
234 | CARD16 vsyncend B16; | ||
235 | CARD16 vtotal B16; | ||
236 | CARD32 flags B32; | ||
237 | CARD32 privsize B32; | ||
238 | CARD32 after_dotclock B32; | ||
239 | CARD16 after_hdisplay B16; | ||
240 | CARD16 after_hsyncstart B16; | ||
241 | CARD16 after_hsyncend B16; | ||
242 | CARD16 after_htotal B16; | ||
243 | CARD16 after_vdisplay B16; | ||
244 | CARD16 after_vsyncstart B16; | ||
245 | CARD16 after_vsyncend B16; | ||
246 | CARD16 after_vtotal B16; | ||
247 | CARD32 after_flags B32; | ||
248 | } xXF86OldVidModeAddModeLineReq; | ||
249 | #define sz_xXF86OldVidModeAddModeLineReq 60 | ||
250 | |||
251 | typedef struct _XF86VidModeModModeLine { | ||
252 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
253 | CARD8 xf86vidmodeReqType; /* always X_XF86VidModeModModeLine */ | ||
254 | CARD16 length B16; | ||
255 | CARD32 screen B32; /* could be CARD16 but need the pad */ | ||
256 | CARD16 hdisplay B16; | ||
257 | CARD16 hsyncstart B16; | ||
258 | CARD16 hsyncend B16; | ||
259 | CARD16 htotal B16; | ||
260 | CARD16 hskew B16; | ||
261 | CARD16 vdisplay B16; | ||
262 | CARD16 vsyncstart B16; | ||
263 | CARD16 vsyncend B16; | ||
264 | CARD16 vtotal B16; | ||
265 | CARD16 pad1 B16; | ||
266 | CARD32 flags B32; | ||
267 | CARD32 reserved1 B32; | ||
268 | CARD32 reserved2 B32; | ||
269 | CARD32 reserved3 B32; | ||
270 | CARD32 privsize B32; | ||
271 | } xXF86VidModeModModeLineReq; | ||
272 | #define sz_xXF86VidModeModModeLineReq 48 | ||
273 | |||
274 | /* 0.x version */ | ||
275 | typedef struct _XF86OldVidModeModModeLine { | ||
276 | CARD8 reqType; /* always XF86OldVidModeReqCode */ | ||
277 | CARD8 xf86vidmodeReqType; /* always X_XF86OldVidModeModModeLine */ | ||
278 | CARD16 length B16; | ||
279 | CARD32 screen B32; /* could be CARD16 but need the pad */ | ||
280 | CARD16 hdisplay B16; | ||
281 | CARD16 hsyncstart B16; | ||
282 | CARD16 hsyncend B16; | ||
283 | CARD16 htotal B16; | ||
284 | CARD16 vdisplay B16; | ||
285 | CARD16 vsyncstart B16; | ||
286 | CARD16 vsyncend B16; | ||
287 | CARD16 vtotal B16; | ||
288 | CARD32 flags B32; | ||
289 | CARD32 privsize B32; | ||
290 | } xXF86OldVidModeModModeLineReq; | ||
291 | #define sz_xXF86OldVidModeModModeLineReq 32 | ||
292 | |||
293 | typedef struct _XF86VidModeValidateModeLine { | ||
294 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
295 | CARD8 xf86vidmodeReqType; | ||
296 | CARD16 length B16; | ||
297 | CARD32 screen B32; /* could be CARD16 but need the pad */ | ||
298 | CARD32 dotclock B32; | ||
299 | CARD16 hdisplay B16; | ||
300 | CARD16 hsyncstart B16; | ||
301 | CARD16 hsyncend B16; | ||
302 | CARD16 htotal B16; | ||
303 | CARD16 hskew B16; | ||
304 | CARD16 vdisplay B16; | ||
305 | CARD16 vsyncstart B16; | ||
306 | CARD16 vsyncend B16; | ||
307 | CARD16 vtotal B16; | ||
308 | CARD16 pad1 B16; | ||
309 | CARD32 flags B32; | ||
310 | CARD32 reserved1 B32; | ||
311 | CARD32 reserved2 B32; | ||
312 | CARD32 reserved3 B32; | ||
313 | CARD32 privsize B32; | ||
314 | } xXF86VidModeDeleteModeLineReq, | ||
315 | xXF86VidModeValidateModeLineReq, | ||
316 | xXF86VidModeSwitchToModeReq; | ||
317 | #define sz_xXF86VidModeDeleteModeLineReq 52 | ||
318 | #define sz_xXF86VidModeValidateModeLineReq 52 | ||
319 | #define sz_xXF86VidModeSwitchToModeReq 52 | ||
320 | |||
321 | /* 0.x version */ | ||
322 | typedef struct _XF86OldVidModeValidateModeLine { | ||
323 | CARD8 reqType; /* always XF86OldVidModeReqCode */ | ||
324 | CARD8 xf86vidmodeReqType; | ||
325 | CARD16 length B16; | ||
326 | CARD32 screen B32; /* could be CARD16 but need the pad */ | ||
327 | CARD32 dotclock B32; | ||
328 | CARD16 hdisplay B16; | ||
329 | CARD16 hsyncstart B16; | ||
330 | CARD16 hsyncend B16; | ||
331 | CARD16 htotal B16; | ||
332 | CARD16 vdisplay B16; | ||
333 | CARD16 vsyncstart B16; | ||
334 | CARD16 vsyncend B16; | ||
335 | CARD16 vtotal B16; | ||
336 | CARD32 flags B32; | ||
337 | CARD32 privsize B32; | ||
338 | } xXF86OldVidModeDeleteModeLineReq, | ||
339 | xXF86OldVidModeValidateModeLineReq, | ||
340 | xXF86OldVidModeSwitchToModeReq; | ||
341 | #define sz_xXF86OldVidModeDeleteModeLineReq 36 | ||
342 | #define sz_xXF86OldVidModeValidateModeLineReq 36 | ||
343 | #define sz_xXF86OldVidModeSwitchToModeReq 36 | ||
344 | |||
345 | typedef struct _XF86VidModeSwitchMode { | ||
346 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
347 | CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSwitchMode */ | ||
348 | CARD16 length B16; | ||
349 | CARD16 screen B16; | ||
350 | CARD16 zoom B16; | ||
351 | } xXF86VidModeSwitchModeReq; | ||
352 | #define sz_xXF86VidModeSwitchModeReq 8 | ||
353 | |||
354 | typedef struct _XF86VidModeLockModeSwitch { | ||
355 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
356 | CARD8 xf86vidmodeReqType; /* always X_XF86VidModeLockModeSwitch */ | ||
357 | CARD16 length B16; | ||
358 | CARD16 screen B16; | ||
359 | CARD16 lock B16; | ||
360 | } xXF86VidModeLockModeSwitchReq; | ||
361 | #define sz_xXF86VidModeLockModeSwitchReq 8 | ||
362 | |||
363 | typedef struct { | ||
364 | BYTE type; /* X_Reply */ | ||
365 | BOOL pad1; | ||
366 | CARD16 sequenceNumber B16; | ||
367 | CARD32 length B32; | ||
368 | CARD32 status B32; | ||
369 | CARD32 pad2 B32; | ||
370 | CARD32 pad3 B32; | ||
371 | CARD32 pad4 B32; | ||
372 | CARD32 pad5 B32; | ||
373 | CARD32 pad6 B32; | ||
374 | } xXF86VidModeValidateModeLineReply; | ||
375 | #define sz_xXF86VidModeValidateModeLineReply 32 | ||
376 | |||
377 | typedef struct { | ||
378 | BYTE type; /* X_Reply */ | ||
379 | BOOL pad1; | ||
380 | CARD16 sequenceNumber B16; | ||
381 | CARD32 length B32; | ||
382 | CARD8 vendorLength; | ||
383 | CARD8 modelLength; | ||
384 | CARD8 nhsync; | ||
385 | CARD8 nvsync; | ||
386 | CARD32 pad2 B32; | ||
387 | CARD32 pad3 B32; | ||
388 | CARD32 pad4 B32; | ||
389 | CARD32 pad5 B32; | ||
390 | CARD32 pad6 B32; | ||
391 | } xXF86VidModeGetMonitorReply; | ||
392 | #define sz_xXF86VidModeGetMonitorReply 32 | ||
393 | |||
394 | typedef struct { | ||
395 | BYTE type; | ||
396 | BOOL pad1; | ||
397 | CARD16 sequenceNumber B16; | ||
398 | CARD32 length B32; | ||
399 | CARD32 x B32; | ||
400 | CARD32 y B32; | ||
401 | CARD32 pad2 B32; | ||
402 | CARD32 pad3 B32; | ||
403 | CARD32 pad4 B32; | ||
404 | CARD32 pad5 B32; | ||
405 | } xXF86VidModeGetViewPortReply; | ||
406 | #define sz_xXF86VidModeGetViewPortReply 32 | ||
407 | |||
408 | typedef struct _XF86VidModeSetViewPort { | ||
409 | CARD8 reqType; /* always VidModeReqCode */ | ||
410 | CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSetViewPort */ | ||
411 | CARD16 length B16; | ||
412 | CARD16 screen B16; | ||
413 | CARD16 pad B16; | ||
414 | CARD32 x B32; | ||
415 | CARD32 y B32; | ||
416 | } xXF86VidModeSetViewPortReq; | ||
417 | #define sz_xXF86VidModeSetViewPortReq 16 | ||
418 | |||
419 | typedef struct { | ||
420 | BYTE type; | ||
421 | BOOL pad1; | ||
422 | CARD16 sequenceNumber B16; | ||
423 | CARD32 length B32; | ||
424 | CARD32 flags B32; | ||
425 | CARD32 clocks B32; | ||
426 | CARD32 maxclocks B32; | ||
427 | CARD32 pad2 B32; | ||
428 | CARD32 pad3 B32; | ||
429 | CARD32 pad4 B32; | ||
430 | } xXF86VidModeGetDotClocksReply; | ||
431 | #define sz_xXF86VidModeGetDotClocksReply 32 | ||
432 | |||
433 | typedef struct _XF86VidModeSetClientVersion { | ||
434 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
435 | CARD8 xf86vidmodeReqType; | ||
436 | CARD16 length B16; | ||
437 | CARD16 major B16; | ||
438 | CARD16 minor B16; | ||
439 | } xXF86VidModeSetClientVersionReq; | ||
440 | #define sz_xXF86VidModeSetClientVersionReq 8 | ||
441 | |||
442 | typedef struct _XF86VidModeGetGamma { | ||
443 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
444 | CARD8 xf86vidmodeReqType; | ||
445 | CARD16 length B16; | ||
446 | CARD16 screen B16; | ||
447 | CARD16 pad B16; | ||
448 | CARD32 pad1 B32; | ||
449 | CARD32 pad2 B32; | ||
450 | CARD32 pad3 B32; | ||
451 | CARD32 pad4 B32; | ||
452 | CARD32 pad5 B32; | ||
453 | CARD32 pad6 B32; | ||
454 | } xXF86VidModeGetGammaReq; | ||
455 | #define sz_xXF86VidModeGetGammaReq 32 | ||
456 | |||
457 | typedef struct { | ||
458 | BYTE type; | ||
459 | BOOL pad; | ||
460 | CARD16 sequenceNumber B16; | ||
461 | CARD32 length B32; | ||
462 | CARD32 red B32; | ||
463 | CARD32 green B32; | ||
464 | CARD32 blue B32; | ||
465 | CARD32 pad1 B32; | ||
466 | CARD32 pad2 B32; | ||
467 | CARD32 pad3 B32; | ||
468 | } xXF86VidModeGetGammaReply; | ||
469 | #define sz_xXF86VidModeGetGammaReply 32 | ||
470 | |||
471 | typedef struct _XF86VidModeSetGamma { | ||
472 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
473 | CARD8 xf86vidmodeReqType; | ||
474 | CARD16 length B16; | ||
475 | CARD16 screen B16; | ||
476 | CARD16 pad B16; | ||
477 | CARD32 red B32; | ||
478 | CARD32 green B32; | ||
479 | CARD32 blue B32; | ||
480 | CARD32 pad1 B32; | ||
481 | CARD32 pad2 B32; | ||
482 | CARD32 pad3 B32; | ||
483 | } xXF86VidModeSetGammaReq; | ||
484 | #define sz_xXF86VidModeSetGammaReq 32 | ||
485 | |||
486 | |||
487 | typedef struct _XF86VidModeSetGammaRamp { | ||
488 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
489 | CARD8 xf86vidmodeReqType; | ||
490 | CARD16 length B16; | ||
491 | CARD16 screen B16; | ||
492 | CARD16 size B16; | ||
493 | } xXF86VidModeSetGammaRampReq; | ||
494 | #define sz_xXF86VidModeSetGammaRampReq 8 | ||
495 | |||
496 | typedef struct _XF86VidModeGetGammaRamp { | ||
497 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
498 | CARD8 xf86vidmodeReqType; | ||
499 | CARD16 length B16; | ||
500 | CARD16 screen B16; | ||
501 | CARD16 size B16; | ||
502 | } xXF86VidModeGetGammaRampReq; | ||
503 | #define sz_xXF86VidModeGetGammaRampReq 8 | ||
504 | |||
505 | typedef struct { | ||
506 | BYTE type; | ||
507 | BOOL pad; | ||
508 | CARD16 sequenceNumber B16; | ||
509 | CARD32 length B32; | ||
510 | CARD16 size B16; | ||
511 | CARD16 pad0 B16; | ||
512 | CARD32 pad1 B32; | ||
513 | CARD32 pad2 B32; | ||
514 | CARD32 pad3 B32; | ||
515 | CARD32 pad4 B32; | ||
516 | CARD32 pad5 B32; | ||
517 | } xXF86VidModeGetGammaRampReply; | ||
518 | #define sz_xXF86VidModeGetGammaRampReply 32 | ||
519 | |||
520 | typedef struct _XF86VidModeGetGammaRampSize { | ||
521 | CARD8 reqType; /* always XF86VidModeReqCode */ | ||
522 | CARD8 xf86vidmodeReqType; | ||
523 | CARD16 length B16; | ||
524 | CARD16 screen B16; | ||
525 | CARD16 pad B16; | ||
526 | } xXF86VidModeGetGammaRampSizeReq; | ||
527 | #define sz_xXF86VidModeGetGammaRampSizeReq 8 | ||
528 | |||
529 | typedef struct { | ||
530 | BYTE type; | ||
531 | BOOL pad; | ||
532 | CARD16 sequenceNumber B16; | ||
533 | CARD32 length B32; | ||
534 | CARD16 size B16; | ||
535 | CARD16 pad0 B16; | ||
536 | CARD32 pad1 B32; | ||
537 | CARD32 pad2 B32; | ||
538 | CARD32 pad3 B32; | ||
539 | CARD32 pad4 B32; | ||
540 | CARD32 pad5 B32; | ||
541 | } xXF86VidModeGetGammaRampSizeReply; | ||
542 | #define sz_xXF86VidModeGetGammaRampSizeReply 32 | ||
543 | |||
544 | |||
545 | #endif /* _XF86VIDMODESTR_H_ */ | ||
546 | |||
diff --git a/apps/plugins/sdl/src/video/Xext/extensions/xme.h b/apps/plugins/sdl/src/video/Xext/extensions/xme.h deleted file mode 100644 index f550623c9f..0000000000 --- a/apps/plugins/sdl/src/video/Xext/extensions/xme.h +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 1993-2001 by Xi Graphics, Inc. | ||
3 | * All Rights Reserved. | ||
4 | * | ||
5 | * Please see the LICENSE file accompanying this distribution for licensing | ||
6 | * information. | ||
7 | * | ||
8 | * Please send any bug fixes and modifications to src@xig.com. | ||
9 | * | ||
10 | * $XiGId: xme.h,v 1.1.1.1 2001/11/19 19:01:10 jon Exp $ | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | |||
15 | #ifndef _XME_H_INCLUDED | ||
16 | #define _XME_H_INCLUDED | ||
17 | |||
18 | typedef struct { | ||
19 | short x; | ||
20 | short y; | ||
21 | unsigned short w; | ||
22 | unsigned short h; | ||
23 | } XiGMiscViewInfo; | ||
24 | |||
25 | typedef struct { | ||
26 | unsigned short width; | ||
27 | unsigned short height; | ||
28 | int refresh; | ||
29 | } XiGMiscResolutionInfo; | ||
30 | |||
31 | extern Bool XiGMiscQueryVersion(Display *dpy, int *major, int *minor); | ||
32 | extern int XiGMiscQueryViews(Display *dpy, int screen, | ||
33 | XiGMiscViewInfo **pviews); | ||
34 | extern int XiGMiscQueryResolutions(Display *dpy, int screen, int view, | ||
35 | int *pactive, | ||
36 | XiGMiscResolutionInfo **presolutions); | ||
37 | extern void XiGMiscChangeResolution(Display *dpy, int screen, int view, | ||
38 | int width, int height, int refresh); | ||
39 | |||
40 | /* SDL addition from Ryan: free memory used by xme. */ | ||
41 | extern void XiGMiscDestroy(void); | ||
42 | |||
43 | #endif /* _XME_H_INCLUDED */ | ||
44 | |||
45 | |||