22#include <X11/Xproto.h>
24const char* request_code_2_str(
int code)
31 CASE2STR(X_CreateWindow);
32 CASE2STR(X_ChangeWindowAttributes);
33 CASE2STR(X_GetWindowAttributes);
34 CASE2STR(X_DestroyWindow);
35 CASE2STR(X_DestroySubwindows);
36 CASE2STR(X_ChangeSaveSet);
37 CASE2STR(X_ReparentWindow);
38 CASE2STR(X_MapWindow);
39 CASE2STR(X_MapSubwindows);
40 CASE2STR(X_UnmapWindow);
41 CASE2STR(X_UnmapSubwindows);
42 CASE2STR(X_ConfigureWindow);
43 CASE2STR(X_CirculateWindow);
44 CASE2STR(X_GetGeometry);
45 CASE2STR(X_QueryTree);
46 CASE2STR(X_InternAtom);
47 CASE2STR(X_GetAtomName);
48 CASE2STR(X_ChangeProperty);
49 CASE2STR(X_DeleteProperty);
50 CASE2STR(X_GetProperty);
51 CASE2STR(X_ListProperties);
52 CASE2STR(X_SetSelectionOwner);
53 CASE2STR(X_GetSelectionOwner);
54 CASE2STR(X_ConvertSelection);
55 CASE2STR(X_SendEvent);
56 CASE2STR(X_GrabPointer);
57 CASE2STR(X_UngrabPointer);
58 CASE2STR(X_GrabButton);
59 CASE2STR(X_UngrabButton);
60 CASE2STR(X_ChangeActivePointerGrab);
61 CASE2STR(X_GrabKeyboard);
62 CASE2STR(X_UngrabKeyboard);
64 CASE2STR(X_UngrabKey);
65 CASE2STR(X_AllowEvents);
66 CASE2STR(X_GrabServer);
67 CASE2STR(X_UngrabServer);
68 CASE2STR(X_QueryPointer);
69 CASE2STR(X_GetMotionEvents);
70 CASE2STR(X_TranslateCoords);
71 CASE2STR(X_WarpPointer);
72 CASE2STR(X_SetInputFocus);
73 CASE2STR(X_GetInputFocus);
74 CASE2STR(X_QueryKeymap);
76 CASE2STR(X_CloseFont);
77 CASE2STR(X_QueryFont);
78 CASE2STR(X_QueryTextExtents);
79 CASE2STR(X_ListFonts);
80 CASE2STR(X_ListFontsWithInfo);
81 CASE2STR(X_SetFontPath);
82 CASE2STR(X_GetFontPath);
83 CASE2STR(X_CreatePixmap);
84 CASE2STR(X_FreePixmap);
88 CASE2STR(X_SetDashes);
89 CASE2STR(X_SetClipRectangles);
91 CASE2STR(X_ClearArea);
93 CASE2STR(X_CopyPlane);
94 CASE2STR(X_PolyPoint);
96 CASE2STR(X_PolySegment);
97 CASE2STR(X_PolyRectangle);
100 CASE2STR(X_PolyFillRectangle);
101 CASE2STR(X_PolyFillArc);
102 CASE2STR(X_PutImage);
103 CASE2STR(X_GetImage);
104 CASE2STR(X_PolyText8);
105 CASE2STR(X_PolyText16);
106 CASE2STR(X_ImageText8);
107 CASE2STR(X_ImageText16);
108 CASE2STR(X_CreateColormap);
109 CASE2STR(X_FreeColormap);
110 CASE2STR(X_CopyColormapAndFree);
111 CASE2STR(X_InstallColormap);
112 CASE2STR(X_UninstallColormap);
113 CASE2STR(X_ListInstalledColormaps);
114 CASE2STR(X_AllocColor);
115 CASE2STR(X_AllocNamedColor);
116 CASE2STR(X_AllocColorCells);
117 CASE2STR(X_AllocColorPlanes);
118 CASE2STR(X_FreeColors);
119 CASE2STR(X_StoreColors);
120 CASE2STR(X_StoreNamedColor);
121 CASE2STR(X_QueryColors);
122 CASE2STR(X_LookupColor);
123 CASE2STR(X_CreateCursor);
124 CASE2STR(X_CreateGlyphCursor);
125 CASE2STR(X_FreeCursor);
126 CASE2STR(X_RecolorCursor);
127 CASE2STR(X_QueryBestSize);
128 CASE2STR(X_QueryExtension);
129 CASE2STR(X_ListExtensions);
130 CASE2STR(X_ChangeKeyboardMapping);
131 CASE2STR(X_GetKeyboardMapping);
132 CASE2STR(X_ChangeKeyboardControl);
133 CASE2STR(X_GetKeyboardControl);
135 CASE2STR(X_ChangePointerControl);
136 CASE2STR(X_GetPointerControl);
137 CASE2STR(X_SetScreenSaver);
138 CASE2STR(X_GetScreenSaver);
139 CASE2STR(X_ChangeHosts);
140 CASE2STR(X_ListHosts);
141 CASE2STR(X_SetAccessControl);
142 CASE2STR(X_SetCloseDownMode);
143 CASE2STR(X_KillClient);
144 CASE2STR(X_RotateProperties);
145 CASE2STR(X_ForceScreenSaver);
146 CASE2STR(X_SetPointerMapping);
147 CASE2STR(X_GetPointerMapping);
148 CASE2STR(X_SetModifierMapping);
149 CASE2STR(X_GetModifierMapping);
150 CASE2STR(X_NoOperation);