xf86bigfproto.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Declarations of request structures for the BIGFONT extension.
  3. *
  4. * Copyright (c) 1999-2000 Bruno Haible
  5. * Copyright (c) 1999-2000 The XFree86 Project, Inc.
  6. */
  7. /* THIS IS NOT AN X CONSORTIUM STANDARD */
  8. #ifndef _XF86BIGFPROTO_H_
  9. #define _XF86BIGFPROTO_H_
  10. #include <X11/extensions/xf86bigfont.h>
  11. #define XF86BIGFONTNAME "XFree86-Bigfont"
  12. #define XF86BIGFONT_MAJOR_VERSION 1 /* current version numbers */
  13. #define XF86BIGFONT_MINOR_VERSION 1
  14. typedef struct _XF86BigfontQueryVersion {
  15. CARD8 reqType; /* always XF86BigfontReqCode */
  16. CARD8 xf86bigfontReqType; /* always X_XF86BigfontQueryVersion */
  17. CARD16 length B16;
  18. } xXF86BigfontQueryVersionReq;
  19. #define sz_xXF86BigfontQueryVersionReq 4
  20. typedef struct {
  21. BYTE type; /* X_Reply */
  22. CARD8 capabilities;
  23. CARD16 sequenceNumber B16;
  24. CARD32 length B32;
  25. CARD16 majorVersion B16; /* major version of XFree86-Bigfont */
  26. CARD16 minorVersion B16; /* minor version of XFree86-Bigfont */
  27. CARD32 uid B32;
  28. CARD32 gid B32;
  29. CARD32 signature B32;
  30. CARD32 pad1 B32;
  31. CARD32 pad2 B32;
  32. } xXF86BigfontQueryVersionReply;
  33. #define sz_xXF86BigfontQueryVersionReply 32
  34. /* Bit masks that can be set in the capabilities */
  35. #define XF86Bigfont_CAP_LocalShm 1
  36. typedef struct _XF86BigfontQueryFont {
  37. CARD8 reqType; /* always XF86BigfontReqCode */
  38. CARD8 xf86bigfontReqType; /* always X_XF86BigfontQueryFont */
  39. CARD16 length B16;
  40. CARD32 id B32;
  41. CARD32 flags B32;
  42. } xXF86BigfontQueryFontReq;
  43. #define sz_xXF86BigfontQueryFontReq 12
  44. typedef struct {
  45. BYTE type; /* X_Reply */
  46. CARD8 pad1;
  47. CARD16 sequenceNumber B16;
  48. CARD32 length B32;
  49. xCharInfo minBounds;
  50. #ifndef WORD64
  51. CARD32 walign1 B32;
  52. #endif
  53. xCharInfo maxBounds;
  54. #ifndef WORD64
  55. CARD32 walign2 B32;
  56. #endif
  57. CARD16 minCharOrByte2 B16;
  58. CARD16 maxCharOrByte2 B16;
  59. CARD16 defaultChar B16;
  60. CARD16 nFontProps B16;
  61. CARD8 drawDirection;
  62. CARD8 minByte1;
  63. CARD8 maxByte1;
  64. BOOL allCharsExist;
  65. INT16 fontAscent B16;
  66. INT16 fontDescent B16;
  67. CARD32 nCharInfos B32;
  68. CARD32 nUniqCharInfos B32;
  69. CARD32 shmid B32;
  70. CARD32 shmsegoffset B32;
  71. /* followed by nFontProps xFontProp structures */
  72. /* and if nCharInfos > 0 && shmid == -1,
  73. followed by nUniqCharInfos xCharInfo structures
  74. and then by nCharInfos CARD16 indices (each >= 0, < nUniqCharInfos)
  75. and then, if nCharInfos is odd, one more CARD16 for padding. */
  76. } xXF86BigfontQueryFontReply;
  77. #define sz_xXF86BigfontQueryFontReply 72
  78. /* Bit masks that can be set in the flags */
  79. #define XF86Bigfont_FLAGS_Shm 1
  80. #endif /* _XF86BIGFPROTO_H_ */