#ifndef WH_PROTO_H_47b80ec6_ #define WH_PROTO_H_47b80ec6_ /* * "The client must send an initial byte of data to identify the byte * order to be employed. The value of the byte must be octal 102 or * 154. The value 102 (ASCII uppercase B) means values are * transmitted most-significant byte first, and value 154 (ASCII * lowercase l) means values are transmitted least-significant byte * first." */ #define XP_ENDIAN_BE 0x42 #define XP_ENDIAN_LE 0x6c /* * "Barring changes, the major version will be 11, and the minor * version will be 0." - that's what I see in live use. */ #define XP_MAJOR_VERSION 11 #define XP_MINOR_VERSION 0 /* * Request opcode values. */ #define XP_REQ_CreateWindow 1 #define XP_REQ_ChangeWindowAttributes 2 #define XP_REQ_GetWindowAttributes 3 #define XP_REQ_DestroyWindow 4 #define XP_REQ_MapWindow 8 #define XP_REQ_GetInputFocus 43 #define XP_REQ_CreatePixmap 53 #define XP_REQ_CreateGC 55 #define XP_REQ_ChangeGC 56 #define XP_REQ_PolyPoint 64 #define XP_REQ_PolySegment 66 #define XP_REQ_CreateColormap 78 #define XP_REQ_FreeColormap 79 #define XP_REQ_CopyColormapAndFree 80 #define XP_REQ_InstallColormap 81 #define XP_REQ_UninstallColormap 82 #define XP_REQ_ListInstalledColormaps 83 #define XP_REQ_AllocColor 84 #define XP_REQ_AllocNamedColor 85 #define XP_REQ_AllocColorCells 86 #define XP_REQ_AllocColorPlanes 87 #define XP_REQ_FreeColors 88 #define XP_REQ_StoreColors 89 #define XP_REQ_StoreNamedColor 90 #define XP_REQ_QueryColors 91 #define XP_REQ_LookupColor 92 #define XP_REQ_CreateCursor 93 #define XP_REQ_CreateGlyphCursor 94 #define XP_REQ_FreeCursor 95 #define XP_REQ_RecolorCursor 96 #define XP_REQ_QueryBestSize 97 #define XP_REQ_QueryExtension 98 #define XP_REQ_ListExtensions 99 #define XP_REQ_ChangeKeyboardMapping 100 #define XP_REQ_GetKeyboardMapping 101 #define XP_REQ_ChangeKeyboardControl 102 #define XP_REQ_GetKeyboardControl 103 #define XP_REQ_Bell 104 #define XP_REQ_ChangePointerControl 105 #define XP_REQ_GetPointerControl 106 #define XP_REQ_SetScreenSaver 107 #define XP_REQ_GetScreenSaver 108 #define XP_REQ_ChangeHosts 109 #define XP_REQ_ListHosts 110 #define XP_REQ_SetAccessControl 111 #define XP_REQ_SetCloseDownMode 112 #define XP_REQ_KillClient 113 #define XP_REQ_RotateProperties 114 #define XP_REQ_ForceScreenSaver 115 #define XP_REQ_SetPointerMapping 116 #define XP_REQ_GetPointerMapping 117 #define XP_REQ_SetModifierMapping 118 #define XP_REQ_GetModifierMapping 119 #define XP_REQ_NoOperation 127 #endif