xcmiscproto.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. Copyright 1993, 1994, 1998 The Open Group
  3. Permission to use, copy, modify, distribute, and sell this software and its
  4. documentation for any purpose is hereby granted without fee, provided that
  5. the above copyright notice appear in all copies and that both that
  6. copyright notice and this permission notice appear in supporting
  7. documentation.
  8. The above copyright notice and this permission notice shall be included in
  9. all copies or substantial portions of the Software.
  10. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  11. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  12. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  13. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  14. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  15. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  16. Except as contained in this notice, the name of The Open Group shall not be
  17. used in advertising or otherwise to promote the sale, use or other dealings
  18. in this Software without prior written authorization from The Open Group.
  19. */
  20. #ifndef _XCMISCPROTO_H_
  21. #define _XCMISCPROTO_H_
  22. #define X_XCMiscGetVersion 0
  23. #define X_XCMiscGetXIDRange 1
  24. #define X_XCMiscGetXIDList 2
  25. #define XCMiscNumberEvents 0
  26. #define XCMiscNumberErrors 0
  27. #define XCMiscMajorVersion 1
  28. #define XCMiscMinorVersion 1
  29. #define XCMiscExtensionName "XC-MISC"
  30. typedef struct {
  31. CARD8 reqType; /* always XCMiscCode */
  32. CARD8 miscReqType; /* always X_XCMiscGetVersion */
  33. CARD16 length B16;
  34. CARD16 majorVersion B16;
  35. CARD16 minorVersion B16;
  36. } xXCMiscGetVersionReq;
  37. #define sz_xXCMiscGetVersionReq 8
  38. typedef struct {
  39. BYTE type; /* X_Reply */
  40. CARD8 pad0;
  41. CARD16 sequenceNumber B16;
  42. CARD32 length B32;
  43. CARD16 majorVersion B16;
  44. CARD16 minorVersion B16;
  45. CARD32 pad1 B32;
  46. CARD32 pad2 B32;
  47. CARD32 pad3 B32;
  48. CARD32 pad4 B32;
  49. CARD32 pad5 B32;
  50. } xXCMiscGetVersionReply;
  51. #define sz_xXCMiscGetVersionReply 32
  52. typedef struct {
  53. CARD8 reqType; /* always XCMiscCode */
  54. CARD8 miscReqType; /* always X_XCMiscGetXIDRange */
  55. CARD16 length B16;
  56. } xXCMiscGetXIDRangeReq;
  57. #define sz_xXCMiscGetXIDRangeReq 4
  58. typedef struct {
  59. BYTE type; /* X_Reply */
  60. CARD8 pad0;
  61. CARD16 sequenceNumber B16;
  62. CARD32 length B32;
  63. CARD32 start_id B32;
  64. CARD32 count B32;
  65. CARD32 pad1 B32;
  66. CARD32 pad2 B32;
  67. CARD32 pad3 B32;
  68. CARD32 pad4 B32;
  69. } xXCMiscGetXIDRangeReply;
  70. #define sz_xXCMiscGetXIDRangeReply 32
  71. typedef struct {
  72. CARD8 reqType; /* always XCMiscCode */
  73. CARD8 miscReqType; /* always X_XCMiscGetXIDList */
  74. CARD16 length B16;
  75. CARD32 count B32; /* number of IDs requested */
  76. } xXCMiscGetXIDListReq;
  77. #define sz_xXCMiscGetXIDListReq 8
  78. typedef struct {
  79. BYTE type; /* X_Reply */
  80. CARD8 pad0;
  81. CARD16 sequenceNumber B16;
  82. CARD32 length B32;
  83. CARD32 count B32; /* number of IDs requested */
  84. CARD32 pad1 B32;
  85. CARD32 pad2 B32;
  86. CARD32 pad3 B32;
  87. CARD32 pad4 B32;
  88. CARD32 pad5 B32;
  89. } xXCMiscGetXIDListReply;
  90. #define sz_xXCMiscGetXIDListReply 32
  91. #endif /* _XCMISCPROTO_H_ */