FreeRDP
Loading...
Searching...
No Matches
xf_x11_utils.c
1
21// Do not include! X11 has conflicting defines #include "xf_utils.h"
22const char* request_code_2_str(int code);
23
24#include <X11/Xproto.h>
25
26const char* request_code_2_str(int code)
27{
28#define CASE2STR(x) \
29 case x: \
30 return #x
31 switch (code)
32 {
33 CASE2STR(X_CreateWindow);
34 CASE2STR(X_ChangeWindowAttributes);
35 CASE2STR(X_GetWindowAttributes);
36 CASE2STR(X_DestroyWindow);
37 CASE2STR(X_DestroySubwindows);
38 CASE2STR(X_ChangeSaveSet);
39 CASE2STR(X_ReparentWindow);
40 CASE2STR(X_MapWindow);
41 CASE2STR(X_MapSubwindows);
42 CASE2STR(X_UnmapWindow);
43 CASE2STR(X_UnmapSubwindows);
44 CASE2STR(X_ConfigureWindow);
45 CASE2STR(X_CirculateWindow);
46 CASE2STR(X_GetGeometry);
47 CASE2STR(X_QueryTree);
48 CASE2STR(X_InternAtom);
49 CASE2STR(X_GetAtomName);
50 CASE2STR(X_ChangeProperty);
51 CASE2STR(X_DeleteProperty);
52 CASE2STR(X_GetProperty);
53 CASE2STR(X_ListProperties);
54 CASE2STR(X_SetSelectionOwner);
55 CASE2STR(X_GetSelectionOwner);
56 CASE2STR(X_ConvertSelection);
57 CASE2STR(X_SendEvent);
58 CASE2STR(X_GrabPointer);
59 CASE2STR(X_UngrabPointer);
60 CASE2STR(X_GrabButton);
61 CASE2STR(X_UngrabButton);
62 CASE2STR(X_ChangeActivePointerGrab);
63 CASE2STR(X_GrabKeyboard);
64 CASE2STR(X_UngrabKeyboard);
65 CASE2STR(X_GrabKey);
66 CASE2STR(X_UngrabKey);
67 CASE2STR(X_AllowEvents);
68 CASE2STR(X_GrabServer);
69 CASE2STR(X_UngrabServer);
70 CASE2STR(X_QueryPointer);
71 CASE2STR(X_GetMotionEvents);
72 CASE2STR(X_TranslateCoords);
73 CASE2STR(X_WarpPointer);
74 CASE2STR(X_SetInputFocus);
75 CASE2STR(X_GetInputFocus);
76 CASE2STR(X_QueryKeymap);
77 CASE2STR(X_OpenFont);
78 CASE2STR(X_CloseFont);
79 CASE2STR(X_QueryFont);
80 CASE2STR(X_QueryTextExtents);
81 CASE2STR(X_ListFonts);
82 CASE2STR(X_ListFontsWithInfo);
83 CASE2STR(X_SetFontPath);
84 CASE2STR(X_GetFontPath);
85 CASE2STR(X_CreatePixmap);
86 CASE2STR(X_FreePixmap);
87 CASE2STR(X_CreateGC);
88 CASE2STR(X_ChangeGC);
89 CASE2STR(X_CopyGC);
90 CASE2STR(X_SetDashes);
91 CASE2STR(X_SetClipRectangles);
92 CASE2STR(X_FreeGC);
93 CASE2STR(X_ClearArea);
94 CASE2STR(X_CopyArea);
95 CASE2STR(X_CopyPlane);
96 CASE2STR(X_PolyPoint);
97 CASE2STR(X_PolyLine);
98 CASE2STR(X_PolySegment);
99 CASE2STR(X_PolyRectangle);
100 CASE2STR(X_PolyArc);
101 CASE2STR(X_FillPoly);
102 CASE2STR(X_PolyFillRectangle);
103 CASE2STR(X_PolyFillArc);
104 CASE2STR(X_PutImage);
105 CASE2STR(X_GetImage);
106 CASE2STR(X_PolyText8);
107 CASE2STR(X_PolyText16);
108 CASE2STR(X_ImageText8);
109 CASE2STR(X_ImageText16);
110 CASE2STR(X_CreateColormap);
111 CASE2STR(X_FreeColormap);
112 CASE2STR(X_CopyColormapAndFree);
113 CASE2STR(X_InstallColormap);
114 CASE2STR(X_UninstallColormap);
115 CASE2STR(X_ListInstalledColormaps);
116 CASE2STR(X_AllocColor);
117 CASE2STR(X_AllocNamedColor);
118 CASE2STR(X_AllocColorCells);
119 CASE2STR(X_AllocColorPlanes);
120 CASE2STR(X_FreeColors);
121 CASE2STR(X_StoreColors);
122 CASE2STR(X_StoreNamedColor);
123 CASE2STR(X_QueryColors);
124 CASE2STR(X_LookupColor);
125 CASE2STR(X_CreateCursor);
126 CASE2STR(X_CreateGlyphCursor);
127 CASE2STR(X_FreeCursor);
128 CASE2STR(X_RecolorCursor);
129 CASE2STR(X_QueryBestSize);
130 CASE2STR(X_QueryExtension);
131 CASE2STR(X_ListExtensions);
132 CASE2STR(X_ChangeKeyboardMapping);
133 CASE2STR(X_GetKeyboardMapping);
134 CASE2STR(X_ChangeKeyboardControl);
135 CASE2STR(X_GetKeyboardControl);
136 CASE2STR(X_Bell);
137 CASE2STR(X_ChangePointerControl);
138 CASE2STR(X_GetPointerControl);
139 CASE2STR(X_SetScreenSaver);
140 CASE2STR(X_GetScreenSaver);
141 CASE2STR(X_ChangeHosts);
142 CASE2STR(X_ListHosts);
143 CASE2STR(X_SetAccessControl);
144 CASE2STR(X_SetCloseDownMode);
145 CASE2STR(X_KillClient);
146 CASE2STR(X_RotateProperties);
147 CASE2STR(X_ForceScreenSaver);
148 CASE2STR(X_SetPointerMapping);
149 CASE2STR(X_GetPointerMapping);
150 CASE2STR(X_SetModifierMapping);
151 CASE2STR(X_GetModifierMapping);
152 CASE2STR(X_NoOperation);
153
154 default:
155 return "UNKNOWN";
156 }
157}