PageRenderTime 78ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/libs/sdl_1.3.0/src/video/Xext/extensions/panoramiXproto.h

https://github.com/boltonli/android_external_sdl
C Header | 206 lines | 152 code | 25 blank | 29 comment | 0 complexity | dae141cc5f03a0848928006af797cd31 MD5 | raw file
  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. The above copyright notice and this permission notice shall be included in
  10. all copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  14. DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
  15. BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
  16. WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
  17. IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  18. Except as contained in this notice, the name of Digital Equipment Corporation
  19. shall not be used in advertising or otherwise to promote the sale, use or other
  20. dealings in this Software without prior written authorization from Digital
  21. Equipment Corporation.
  22. ******************************************************************/
  23. /* $XFree86: xc/include/extensions/panoramiXproto.h,v 3.6 2001/01/17 17:53:22 dawes Exp $ */
  24. /* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */
  25. #ifndef _PANORAMIXPROTO_H_
  26. #define _PANORAMIXPROTO_H_
  27. #define PANORAMIX_PROTOCOL_NAME "XINERAMA"
  28. #define X_PanoramiXQueryVersion 0
  29. #define X_PanoramiXGetState 1
  30. #define X_PanoramiXGetScreenCount 2
  31. #define X_PanoramiXGetScreenSize 3
  32. #define X_XineramaIsActive 4
  33. #define X_XineramaQueryScreens 5
  34. typedef struct _PanoramiXQueryVersion
  35. {
  36. CARD8 reqType; /* always PanoramiXReqCode */
  37. CARD8 panoramiXReqType; /* always X_PanoramiXQueryVersion */
  38. CARD16 length B16;
  39. CARD8 clientMajor;
  40. CARD8 clientMinor;
  41. CARD16 unused B16;
  42. } xPanoramiXQueryVersionReq;
  43. #define sz_xPanoramiXQueryVersionReq 8
  44. typedef struct
  45. {
  46. CARD8 type; /* must be X_Reply */
  47. CARD8 pad1; /* unused */
  48. CARD16 sequenceNumber B16; /* last sequence number */
  49. CARD32 length B32; /* 0 */
  50. CARD16 majorVersion B16;
  51. CARD16 minorVersion B16;
  52. CARD32 pad2 B32; /* unused */
  53. CARD32 pad3 B32; /* unused */
  54. CARD32 pad4 B32; /* unused */
  55. CARD32 pad5 B32; /* unused */
  56. CARD32 pad6 B32; /* unused */
  57. } xPanoramiXQueryVersionReply;
  58. #define sz_xPanoramiXQueryVersionReply 32
  59. typedef struct _PanoramiXGetState
  60. {
  61. CARD8 reqType; /* always PanoramiXReqCode */
  62. CARD8 panoramiXReqType; /* always X_PanoramiXGetState */
  63. CARD16 length B16;
  64. CARD32 window B32;
  65. } xPanoramiXGetStateReq;
  66. #define sz_xPanoramiXGetStateReq 8
  67. typedef struct
  68. {
  69. BYTE type;
  70. BYTE state;
  71. CARD16 sequenceNumber B16;
  72. CARD32 length B32;
  73. CARD32 window B32;
  74. CARD32 pad1 B32; /* unused */
  75. CARD32 pad2 B32; /* unused */
  76. CARD32 pad3 B32; /* unused */
  77. CARD32 pad4 B32; /* unused */
  78. CARD32 pad5 B32; /* unused */
  79. } xPanoramiXGetStateReply;
  80. #define sz_panoramiXGetStateReply 32
  81. typedef struct _PanoramiXGetScreenCount
  82. {
  83. CARD8 reqType; /* always PanoramiXReqCode */
  84. CARD8 panoramiXReqType; /* always X_PanoramiXGetScreenCount */
  85. CARD16 length B16;
  86. CARD32 window B32;
  87. } xPanoramiXGetScreenCountReq;
  88. #define sz_xPanoramiXGetScreenCountReq 8
  89. typedef struct
  90. {
  91. BYTE type;
  92. BYTE ScreenCount;
  93. CARD16 sequenceNumber B16;
  94. CARD32 length B32;
  95. CARD32 window B32;
  96. CARD32 pad1 B32; /* unused */
  97. CARD32 pad2 B32; /* unused */
  98. CARD32 pad3 B32; /* unused */
  99. CARD32 pad4 B32; /* unused */
  100. CARD32 pad5 B32; /* unused */
  101. } xPanoramiXGetScreenCountReply;
  102. #define sz_panoramiXGetScreenCountReply 32
  103. typedef struct _PanoramiXGetScreenSize
  104. {
  105. CARD8 reqType; /* always PanoramiXReqCode */
  106. CARD8 panoramiXReqType; /* always X_PanoramiXGetState */
  107. CARD16 length B16;
  108. CARD32 window B32;
  109. CARD32 screen B32;
  110. } xPanoramiXGetScreenSizeReq;
  111. #define sz_xPanoramiXGetScreenSizeReq 12
  112. typedef struct
  113. {
  114. BYTE type;
  115. CARD8 pad1;
  116. CARD16 sequenceNumber B16;
  117. CARD32 length B32;
  118. CARD32 width B32;
  119. CARD32 height B32;
  120. CARD32 window B32;
  121. CARD32 screen B32;
  122. CARD32 pad2 B32; /* unused */
  123. CARD32 pad3 B32; /* unused */
  124. } xPanoramiXGetScreenSizeReply;
  125. #define sz_panoramiXGetScreenSizeReply 32
  126. /************ Alternate protocol ******************/
  127. typedef struct
  128. {
  129. CARD8 reqType;
  130. CARD8 panoramiXReqType;
  131. CARD16 length B16;
  132. } xXineramaIsActiveReq;
  133. #define sz_xXineramaIsActiveReq 4
  134. typedef struct
  135. {
  136. BYTE type;
  137. CARD8 pad1;
  138. CARD16 sequenceNumber B16;
  139. CARD32 length B32;
  140. CARD32 state B32;
  141. CARD32 pad2 B32;
  142. CARD32 pad3 B32;
  143. CARD32 pad4 B32;
  144. CARD32 pad5 B32;
  145. CARD32 pad6 B32;
  146. } xXineramaIsActiveReply;
  147. #define sz_XineramaIsActiveReply 32
  148. typedef struct
  149. {
  150. CARD8 reqType;
  151. CARD8 panoramiXReqType;
  152. CARD16 length B16;
  153. } xXineramaQueryScreensReq;
  154. #define sz_xXineramaQueryScreensReq 4
  155. typedef struct
  156. {
  157. BYTE type;
  158. CARD8 pad1;
  159. CARD16 sequenceNumber B16;
  160. CARD32 length B32;
  161. CARD32 number B32;
  162. CARD32 pad2 B32;
  163. CARD32 pad3 B32;
  164. CARD32 pad4 B32;
  165. CARD32 pad5 B32;
  166. CARD32 pad6 B32;
  167. } xXineramaQueryScreensReply;
  168. #define sz_XineramaQueryScreensReply 32
  169. typedef struct
  170. {
  171. INT16 x_org B16;
  172. INT16 y_org B16;
  173. CARD16 width B16;
  174. CARD16 height B16;
  175. } xXineramaScreenInfo;
  176. #define sz_XineramaScreenInfo 8
  177. #endif
  178. /* vi: set ts=4 sw=4 expandtab: */