tables.c 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986
  1. /***********************************************************
  2. Copyright 1987, 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. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  20. All Rights Reserved
  21. Permission to use, copy, modify, and distribute this software and its
  22. documentation for any purpose and without fee is hereby granted,
  23. provided that the above copyright notice appear in all copies and that
  24. both that copyright notice and this permission notice appear in
  25. supporting documentation, and that the name of Digital not be
  26. used in advertising or publicity pertaining to distribution of the
  27. software without specific, written prior permission.
  28. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  29. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  30. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  31. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  32. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  33. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  34. SOFTWARE.
  35. ******************************************************************/
  36. #ifdef HAVE_DIX_CONFIG_H
  37. #include <dix-config.h>
  38. #endif
  39. #include <X11/X.h>
  40. #include <X11/Xproto.h>
  41. #include "windowstr.h"
  42. #include "extnsionst.h"
  43. #include "dixstruct.h"
  44. #include "dixevents.h"
  45. #include "dispatch.h"
  46. #include "swaprep.h"
  47. #include "swapreq.h"
  48. int (* InitialVector[3]) (
  49. ClientPtr /* client */
  50. ) =
  51. {
  52. 0,
  53. ProcInitialConnection,
  54. ProcEstablishConnection
  55. };
  56. int (* ProcVector[256]) (
  57. ClientPtr /* client */
  58. ) =
  59. {
  60. ProcBadRequest,
  61. ProcCreateWindow,
  62. ProcChangeWindowAttributes,
  63. ProcGetWindowAttributes,
  64. ProcDestroyWindow,
  65. ProcDestroySubwindows, /* 5 */
  66. ProcChangeSaveSet,
  67. ProcReparentWindow,
  68. ProcMapWindow,
  69. ProcMapSubwindows,
  70. ProcUnmapWindow, /* 10 */
  71. ProcUnmapSubwindows,
  72. ProcConfigureWindow,
  73. ProcCirculateWindow,
  74. ProcGetGeometry,
  75. ProcQueryTree, /* 15 */
  76. ProcInternAtom,
  77. ProcGetAtomName,
  78. ProcChangeProperty,
  79. ProcDeleteProperty,
  80. ProcGetProperty, /* 20 */
  81. ProcListProperties,
  82. ProcSetSelectionOwner,
  83. ProcGetSelectionOwner,
  84. ProcConvertSelection,
  85. ProcSendEvent, /* 25 */
  86. ProcGrabPointer,
  87. ProcUngrabPointer,
  88. ProcGrabButton,
  89. ProcUngrabButton,
  90. ProcChangeActivePointerGrab, /* 30 */
  91. ProcGrabKeyboard,
  92. ProcUngrabKeyboard,
  93. ProcGrabKey,
  94. ProcUngrabKey,
  95. ProcAllowEvents, /* 35 */
  96. ProcGrabServer,
  97. ProcUngrabServer,
  98. ProcQueryPointer,
  99. ProcGetMotionEvents,
  100. ProcTranslateCoords, /* 40 */
  101. ProcWarpPointer,
  102. ProcSetInputFocus,
  103. ProcGetInputFocus,
  104. ProcQueryKeymap,
  105. ProcOpenFont, /* 45 */
  106. ProcCloseFont,
  107. ProcQueryFont,
  108. ProcQueryTextExtents,
  109. ProcListFonts,
  110. ProcListFontsWithInfo, /* 50 */
  111. ProcSetFontPath,
  112. ProcGetFontPath,
  113. ProcCreatePixmap,
  114. ProcFreePixmap,
  115. ProcCreateGC, /* 55 */
  116. ProcChangeGC,
  117. ProcCopyGC,
  118. ProcSetDashes,
  119. ProcSetClipRectangles,
  120. ProcFreeGC, /* 60 */
  121. ProcClearToBackground,
  122. ProcCopyArea,
  123. ProcCopyPlane,
  124. ProcPolyPoint,
  125. ProcPolyLine, /* 65 */
  126. ProcPolySegment,
  127. ProcPolyRectangle,
  128. ProcPolyArc,
  129. ProcFillPoly,
  130. ProcPolyFillRectangle, /* 70 */
  131. ProcPolyFillArc,
  132. ProcPutImage,
  133. ProcGetImage,
  134. ProcPolyText,
  135. ProcPolyText, /* 75 */
  136. ProcImageText8,
  137. ProcImageText16,
  138. ProcCreateColormap,
  139. ProcFreeColormap,
  140. ProcCopyColormapAndFree, /* 80 */
  141. ProcInstallColormap,
  142. ProcUninstallColormap,
  143. ProcListInstalledColormaps,
  144. ProcAllocColor,
  145. ProcAllocNamedColor, /* 85 */
  146. ProcAllocColorCells,
  147. ProcAllocColorPlanes,
  148. ProcFreeColors,
  149. ProcStoreColors,
  150. ProcStoreNamedColor, /* 90 */
  151. ProcQueryColors,
  152. ProcLookupColor,
  153. ProcCreateCursor,
  154. ProcCreateGlyphCursor,
  155. ProcFreeCursor, /* 95 */
  156. ProcRecolorCursor,
  157. ProcQueryBestSize,
  158. ProcQueryExtension,
  159. ProcListExtensions,
  160. ProcChangeKeyboardMapping, /* 100 */
  161. ProcGetKeyboardMapping,
  162. ProcChangeKeyboardControl,
  163. ProcGetKeyboardControl,
  164. ProcBell,
  165. ProcChangePointerControl, /* 105 */
  166. ProcGetPointerControl,
  167. ProcSetScreenSaver,
  168. ProcGetScreenSaver,
  169. ProcChangeHosts,
  170. ProcListHosts, /* 110 */
  171. ProcChangeAccessControl,
  172. ProcChangeCloseDownMode,
  173. ProcKillClient,
  174. ProcRotateProperties,
  175. ProcForceScreenSaver, /* 115 */
  176. ProcSetPointerMapping,
  177. ProcGetPointerMapping,
  178. ProcSetModifierMapping,
  179. ProcGetModifierMapping,
  180. ProcBadRequest, /* 120 */
  181. ProcBadRequest,
  182. ProcBadRequest,
  183. ProcBadRequest,
  184. ProcBadRequest,
  185. ProcBadRequest, /* 125 */
  186. ProcBadRequest,
  187. ProcNoOperation,
  188. ProcBadRequest,
  189. ProcBadRequest,
  190. ProcBadRequest,
  191. ProcBadRequest,
  192. ProcBadRequest,
  193. ProcBadRequest,
  194. ProcBadRequest,
  195. ProcBadRequest,
  196. ProcBadRequest,
  197. ProcBadRequest,
  198. ProcBadRequest,
  199. ProcBadRequest,
  200. ProcBadRequest,
  201. ProcBadRequest,
  202. ProcBadRequest,
  203. ProcBadRequest,
  204. ProcBadRequest,
  205. ProcBadRequest,
  206. ProcBadRequest,
  207. ProcBadRequest,
  208. ProcBadRequest,
  209. ProcBadRequest,
  210. ProcBadRequest,
  211. ProcBadRequest,
  212. ProcBadRequest,
  213. ProcBadRequest,
  214. ProcBadRequest,
  215. ProcBadRequest,
  216. ProcBadRequest,
  217. ProcBadRequest,
  218. ProcBadRequest,
  219. ProcBadRequest,
  220. ProcBadRequest,
  221. ProcBadRequest,
  222. ProcBadRequest,
  223. ProcBadRequest,
  224. ProcBadRequest,
  225. ProcBadRequest,
  226. ProcBadRequest,
  227. ProcBadRequest,
  228. ProcBadRequest,
  229. ProcBadRequest,
  230. ProcBadRequest,
  231. ProcBadRequest,
  232. ProcBadRequest,
  233. ProcBadRequest,
  234. ProcBadRequest,
  235. ProcBadRequest,
  236. ProcBadRequest,
  237. ProcBadRequest,
  238. ProcBadRequest,
  239. ProcBadRequest,
  240. ProcBadRequest,
  241. ProcBadRequest,
  242. ProcBadRequest,
  243. ProcBadRequest,
  244. ProcBadRequest,
  245. ProcBadRequest,
  246. ProcBadRequest,
  247. ProcBadRequest,
  248. ProcBadRequest,
  249. ProcBadRequest,
  250. ProcBadRequest,
  251. ProcBadRequest,
  252. ProcBadRequest,
  253. ProcBadRequest,
  254. ProcBadRequest,
  255. ProcBadRequest,
  256. ProcBadRequest,
  257. ProcBadRequest,
  258. ProcBadRequest,
  259. ProcBadRequest,
  260. ProcBadRequest,
  261. ProcBadRequest,
  262. ProcBadRequest,
  263. ProcBadRequest,
  264. ProcBadRequest,
  265. ProcBadRequest,
  266. ProcBadRequest,
  267. ProcBadRequest,
  268. ProcBadRequest,
  269. ProcBadRequest,
  270. ProcBadRequest,
  271. ProcBadRequest,
  272. ProcBadRequest,
  273. ProcBadRequest,
  274. ProcBadRequest,
  275. ProcBadRequest,
  276. ProcBadRequest,
  277. ProcBadRequest,
  278. ProcBadRequest,
  279. ProcBadRequest,
  280. ProcBadRequest,
  281. ProcBadRequest,
  282. ProcBadRequest,
  283. ProcBadRequest,
  284. ProcBadRequest,
  285. ProcBadRequest,
  286. ProcBadRequest,
  287. ProcBadRequest,
  288. ProcBadRequest,
  289. ProcBadRequest,
  290. ProcBadRequest,
  291. ProcBadRequest,
  292. ProcBadRequest,
  293. ProcBadRequest,
  294. ProcBadRequest,
  295. ProcBadRequest,
  296. ProcBadRequest,
  297. ProcBadRequest,
  298. ProcBadRequest,
  299. ProcBadRequest,
  300. ProcBadRequest,
  301. ProcBadRequest,
  302. ProcBadRequest,
  303. ProcBadRequest,
  304. ProcBadRequest,
  305. ProcBadRequest,
  306. ProcBadRequest,
  307. ProcBadRequest,
  308. ProcBadRequest,
  309. ProcBadRequest,
  310. ProcBadRequest,
  311. ProcBadRequest,
  312. ProcBadRequest,
  313. ProcBadRequest,
  314. ProcBadRequest,
  315. ProcBadRequest
  316. };
  317. int (* SwappedProcVector[256]) (
  318. ClientPtr /* client */
  319. ) =
  320. {
  321. ProcBadRequest,
  322. SProcCreateWindow,
  323. SProcChangeWindowAttributes,
  324. SProcResourceReq, /* GetWindowAttributes */
  325. SProcResourceReq, /* DestroyWindow */
  326. SProcResourceReq, /* 5 DestroySubwindows */
  327. SProcResourceReq, /* SProcChangeSaveSet, */
  328. SProcReparentWindow,
  329. SProcResourceReq, /* MapWindow */
  330. SProcResourceReq, /* MapSubwindows */
  331. SProcResourceReq, /* 10 UnmapWindow */
  332. SProcResourceReq, /* UnmapSubwindows */
  333. SProcConfigureWindow,
  334. SProcResourceReq, /* SProcCirculateWindow, */
  335. SProcResourceReq, /* GetGeometry */
  336. SProcResourceReq, /* 15 QueryTree */
  337. SProcInternAtom,
  338. SProcResourceReq, /* SProcGetAtomName, */
  339. SProcChangeProperty,
  340. SProcDeleteProperty,
  341. SProcGetProperty, /* 20 */
  342. SProcResourceReq, /* SProcListProperties, */
  343. SProcSetSelectionOwner,
  344. SProcResourceReq, /* SProcGetSelectionOwner, */
  345. SProcConvertSelection,
  346. SProcSendEvent, /* 25 */
  347. SProcGrabPointer,
  348. SProcResourceReq, /* SProcUngrabPointer, */
  349. SProcGrabButton,
  350. SProcUngrabButton,
  351. SProcChangeActivePointerGrab, /* 30 */
  352. SProcGrabKeyboard,
  353. SProcResourceReq, /* SProcUngrabKeyboard, */
  354. SProcGrabKey,
  355. SProcUngrabKey,
  356. SProcResourceReq, /* 35 SProcAllowEvents, */
  357. SProcSimpleReq, /* SProcGrabServer, */
  358. SProcSimpleReq, /* SProcUngrabServer, */
  359. SProcResourceReq, /* SProcQueryPointer, */
  360. SProcGetMotionEvents,
  361. SProcTranslateCoords, /*40 */
  362. SProcWarpPointer,
  363. SProcSetInputFocus,
  364. SProcSimpleReq, /* SProcGetInputFocus, */
  365. SProcSimpleReq, /* QueryKeymap, */
  366. SProcOpenFont, /* 45 */
  367. SProcResourceReq, /* SProcCloseFont, */
  368. SProcResourceReq, /* SProcQueryFont, */
  369. SProcResourceReq, /* SProcQueryTextExtents, */
  370. SProcListFonts,
  371. SProcListFontsWithInfo, /* 50 */
  372. SProcSetFontPath,
  373. SProcSimpleReq, /* GetFontPath, */
  374. SProcCreatePixmap,
  375. SProcResourceReq, /* SProcFreePixmap, */
  376. SProcCreateGC, /* 55 */
  377. SProcChangeGC,
  378. SProcCopyGC,
  379. SProcSetDashes,
  380. SProcSetClipRectangles,
  381. SProcResourceReq, /* 60 SProcFreeGC, */
  382. SProcClearToBackground,
  383. SProcCopyArea,
  384. SProcCopyPlane,
  385. SProcPoly, /* PolyPoint, */
  386. SProcPoly, /* 65 PolyLine */
  387. SProcPoly, /* PolySegment, */
  388. SProcPoly, /* PolyRectangle, */
  389. SProcPoly, /* PolyArc, */
  390. SProcFillPoly,
  391. SProcPoly, /* 70 PolyFillRectangle */
  392. SProcPoly, /* PolyFillArc, */
  393. SProcPutImage,
  394. SProcGetImage,
  395. SProcPolyText,
  396. SProcPolyText, /* 75 */
  397. SProcImageText,
  398. SProcImageText,
  399. SProcCreateColormap,
  400. SProcResourceReq, /* SProcFreeColormap, */
  401. SProcCopyColormapAndFree, /* 80 */
  402. SProcResourceReq, /* SProcInstallColormap, */
  403. SProcResourceReq, /* SProcUninstallColormap, */
  404. SProcResourceReq, /* SProcListInstalledColormaps, */
  405. SProcAllocColor,
  406. SProcAllocNamedColor, /* 85 */
  407. SProcAllocColorCells,
  408. SProcAllocColorPlanes,
  409. SProcFreeColors,
  410. SProcStoreColors,
  411. SProcStoreNamedColor, /* 90 */
  412. SProcQueryColors,
  413. SProcLookupColor,
  414. SProcCreateCursor,
  415. SProcCreateGlyphCursor,
  416. SProcResourceReq, /* 95 SProcFreeCursor, */
  417. SProcRecolorCursor,
  418. SProcQueryBestSize,
  419. SProcQueryExtension,
  420. SProcSimpleReq, /* ListExtensions, */
  421. SProcChangeKeyboardMapping, /* 100 */
  422. SProcSimpleReq, /* GetKeyboardMapping, */
  423. SProcChangeKeyboardControl,
  424. SProcSimpleReq, /* GetKeyboardControl, */
  425. SProcSimpleReq, /* Bell, */
  426. SProcChangePointerControl, /* 105 */
  427. SProcSimpleReq, /* GetPointerControl, */
  428. SProcSetScreenSaver,
  429. SProcSimpleReq, /* GetScreenSaver, */
  430. SProcChangeHosts,
  431. SProcSimpleReq, /* 110 ListHosts, */
  432. SProcSimpleReq, /* SProcChangeAccessControl, */
  433. SProcSimpleReq, /* SProcChangeCloseDownMode, */
  434. SProcResourceReq, /* SProcKillClient, */
  435. SProcRotateProperties,
  436. SProcSimpleReq, /* 115 ForceScreenSaver */
  437. SProcSimpleReq, /* SetPointerMapping, */
  438. SProcSimpleReq, /* GetPointerMapping, */
  439. SProcSimpleReq, /* SetModifierMapping, */
  440. SProcSimpleReq, /* GetModifierMapping, */
  441. ProcBadRequest, /* 120 */
  442. ProcBadRequest,
  443. ProcBadRequest,
  444. ProcBadRequest,
  445. ProcBadRequest,
  446. ProcBadRequest, /* 125 */
  447. ProcBadRequest,
  448. SProcNoOperation,
  449. ProcBadRequest,
  450. ProcBadRequest,
  451. ProcBadRequest,
  452. ProcBadRequest,
  453. ProcBadRequest,
  454. ProcBadRequest,
  455. ProcBadRequest,
  456. ProcBadRequest,
  457. ProcBadRequest,
  458. ProcBadRequest,
  459. ProcBadRequest,
  460. ProcBadRequest,
  461. ProcBadRequest,
  462. ProcBadRequest,
  463. ProcBadRequest,
  464. ProcBadRequest,
  465. ProcBadRequest,
  466. ProcBadRequest,
  467. ProcBadRequest,
  468. ProcBadRequest,
  469. ProcBadRequest,
  470. ProcBadRequest,
  471. ProcBadRequest,
  472. ProcBadRequest,
  473. ProcBadRequest,
  474. ProcBadRequest,
  475. ProcBadRequest,
  476. ProcBadRequest,
  477. ProcBadRequest,
  478. ProcBadRequest,
  479. ProcBadRequest,
  480. ProcBadRequest,
  481. ProcBadRequest,
  482. ProcBadRequest,
  483. ProcBadRequest,
  484. ProcBadRequest,
  485. ProcBadRequest,
  486. ProcBadRequest,
  487. ProcBadRequest,
  488. ProcBadRequest,
  489. ProcBadRequest,
  490. ProcBadRequest,
  491. ProcBadRequest,
  492. ProcBadRequest,
  493. ProcBadRequest,
  494. ProcBadRequest,
  495. ProcBadRequest,
  496. ProcBadRequest,
  497. ProcBadRequest,
  498. ProcBadRequest,
  499. ProcBadRequest,
  500. ProcBadRequest,
  501. ProcBadRequest,
  502. ProcBadRequest,
  503. ProcBadRequest,
  504. ProcBadRequest,
  505. ProcBadRequest,
  506. ProcBadRequest,
  507. ProcBadRequest,
  508. ProcBadRequest,
  509. ProcBadRequest,
  510. ProcBadRequest,
  511. ProcBadRequest,
  512. ProcBadRequest,
  513. ProcBadRequest,
  514. ProcBadRequest,
  515. ProcBadRequest,
  516. ProcBadRequest,
  517. ProcBadRequest,
  518. ProcBadRequest,
  519. ProcBadRequest,
  520. ProcBadRequest,
  521. ProcBadRequest,
  522. ProcBadRequest,
  523. ProcBadRequest,
  524. ProcBadRequest,
  525. ProcBadRequest,
  526. ProcBadRequest,
  527. ProcBadRequest,
  528. ProcBadRequest,
  529. ProcBadRequest,
  530. ProcBadRequest,
  531. ProcBadRequest,
  532. ProcBadRequest,
  533. ProcBadRequest,
  534. ProcBadRequest,
  535. ProcBadRequest,
  536. ProcBadRequest,
  537. ProcBadRequest,
  538. ProcBadRequest,
  539. ProcBadRequest,
  540. ProcBadRequest,
  541. ProcBadRequest,
  542. ProcBadRequest,
  543. ProcBadRequest,
  544. ProcBadRequest,
  545. ProcBadRequest,
  546. ProcBadRequest,
  547. ProcBadRequest,
  548. ProcBadRequest,
  549. ProcBadRequest,
  550. ProcBadRequest,
  551. ProcBadRequest,
  552. ProcBadRequest,
  553. ProcBadRequest,
  554. ProcBadRequest,
  555. ProcBadRequest,
  556. ProcBadRequest,
  557. ProcBadRequest,
  558. ProcBadRequest,
  559. ProcBadRequest,
  560. ProcBadRequest,
  561. ProcBadRequest,
  562. ProcBadRequest,
  563. ProcBadRequest,
  564. ProcBadRequest,
  565. ProcBadRequest,
  566. ProcBadRequest,
  567. ProcBadRequest,
  568. ProcBadRequest,
  569. ProcBadRequest,
  570. ProcBadRequest,
  571. ProcBadRequest,
  572. ProcBadRequest,
  573. ProcBadRequest,
  574. ProcBadRequest,
  575. ProcBadRequest,
  576. ProcBadRequest
  577. };
  578. EventSwapPtr EventSwapVector[128] =
  579. {
  580. (EventSwapPtr)SErrorEvent,
  581. NotImplemented,
  582. SKeyButtonPtrEvent,
  583. SKeyButtonPtrEvent,
  584. SKeyButtonPtrEvent,
  585. SKeyButtonPtrEvent, /* 5 */
  586. SKeyButtonPtrEvent,
  587. SEnterLeaveEvent,
  588. SEnterLeaveEvent,
  589. SFocusEvent,
  590. SFocusEvent, /* 10 */
  591. SKeymapNotifyEvent,
  592. SExposeEvent,
  593. SGraphicsExposureEvent,
  594. SNoExposureEvent,
  595. SVisibilityEvent, /* 15 */
  596. SCreateNotifyEvent,
  597. SDestroyNotifyEvent,
  598. SUnmapNotifyEvent,
  599. SMapNotifyEvent,
  600. SMapRequestEvent, /* 20 */
  601. SReparentEvent,
  602. SConfigureNotifyEvent,
  603. SConfigureRequestEvent,
  604. SGravityEvent,
  605. SResizeRequestEvent, /* 25 */
  606. SCirculateEvent,
  607. SCirculateEvent,
  608. SPropertyEvent,
  609. SSelectionClearEvent,
  610. SSelectionRequestEvent, /* 30 */
  611. SSelectionNotifyEvent,
  612. SColormapEvent,
  613. SClientMessageEvent,
  614. SMappingEvent,
  615. NotImplemented,
  616. NotImplemented,
  617. NotImplemented,
  618. NotImplemented,
  619. NotImplemented,
  620. NotImplemented,
  621. NotImplemented,
  622. NotImplemented,
  623. NotImplemented,
  624. NotImplemented,
  625. NotImplemented,
  626. NotImplemented,
  627. NotImplemented,
  628. NotImplemented,
  629. NotImplemented,
  630. NotImplemented,
  631. NotImplemented,
  632. NotImplemented,
  633. NotImplemented,
  634. NotImplemented,
  635. NotImplemented,
  636. NotImplemented,
  637. NotImplemented,
  638. NotImplemented,
  639. NotImplemented,
  640. NotImplemented,
  641. NotImplemented,
  642. NotImplemented,
  643. NotImplemented,
  644. NotImplemented,
  645. NotImplemented,
  646. NotImplemented,
  647. NotImplemented,
  648. NotImplemented,
  649. NotImplemented,
  650. NotImplemented,
  651. NotImplemented,
  652. NotImplemented,
  653. NotImplemented,
  654. NotImplemented,
  655. NotImplemented,
  656. NotImplemented,
  657. NotImplemented,
  658. NotImplemented,
  659. NotImplemented,
  660. NotImplemented,
  661. NotImplemented,
  662. NotImplemented,
  663. NotImplemented,
  664. NotImplemented,
  665. NotImplemented,
  666. NotImplemented,
  667. NotImplemented,
  668. NotImplemented,
  669. NotImplemented,
  670. NotImplemented,
  671. NotImplemented,
  672. NotImplemented,
  673. NotImplemented,
  674. NotImplemented,
  675. NotImplemented,
  676. NotImplemented,
  677. NotImplemented,
  678. NotImplemented,
  679. NotImplemented,
  680. NotImplemented,
  681. NotImplemented,
  682. NotImplemented,
  683. NotImplemented,
  684. NotImplemented,
  685. NotImplemented,
  686. NotImplemented,
  687. NotImplemented,
  688. NotImplemented,
  689. NotImplemented,
  690. NotImplemented,
  691. NotImplemented,
  692. NotImplemented,
  693. NotImplemented,
  694. NotImplemented,
  695. NotImplemented,
  696. NotImplemented,
  697. NotImplemented,
  698. NotImplemented,
  699. NotImplemented,
  700. NotImplemented,
  701. NotImplemented,
  702. NotImplemented,
  703. NotImplemented,
  704. NotImplemented,
  705. NotImplemented,
  706. NotImplemented,
  707. NotImplemented
  708. };
  709. const ReplySwapPtr ReplySwapVector[256] =
  710. {
  711. ReplyNotSwappd,
  712. ReplyNotSwappd,
  713. ReplyNotSwappd,
  714. (ReplySwapPtr)SGetWindowAttributesReply,
  715. ReplyNotSwappd,
  716. ReplyNotSwappd, /* 5 */
  717. ReplyNotSwappd,
  718. ReplyNotSwappd,
  719. ReplyNotSwappd,
  720. ReplyNotSwappd,
  721. ReplyNotSwappd, /* 10 */
  722. ReplyNotSwappd,
  723. ReplyNotSwappd,
  724. ReplyNotSwappd,
  725. (ReplySwapPtr)SGetGeometryReply,
  726. (ReplySwapPtr)SQueryTreeReply, /* 15 */
  727. (ReplySwapPtr)SInternAtomReply,
  728. (ReplySwapPtr)SGetAtomNameReply,
  729. ReplyNotSwappd,
  730. ReplyNotSwappd,
  731. (ReplySwapPtr)SGetPropertyReply, /* 20 */
  732. (ReplySwapPtr)SListPropertiesReply,
  733. ReplyNotSwappd,
  734. (ReplySwapPtr)SGetSelectionOwnerReply,
  735. ReplyNotSwappd,
  736. ReplyNotSwappd, /* 25 */
  737. (ReplySwapPtr)SGenericReply, /* SGrabPointerReply, */
  738. ReplyNotSwappd,
  739. ReplyNotSwappd,
  740. ReplyNotSwappd,
  741. ReplyNotSwappd, /* 30 */
  742. (ReplySwapPtr)SGenericReply, /* SGrabKeyboardReply, */
  743. ReplyNotSwappd,
  744. ReplyNotSwappd,
  745. ReplyNotSwappd,
  746. ReplyNotSwappd, /* 35 */
  747. ReplyNotSwappd,
  748. ReplyNotSwappd,
  749. (ReplySwapPtr)SQueryPointerReply,
  750. (ReplySwapPtr)SGetMotionEventsReply,
  751. (ReplySwapPtr)STranslateCoordsReply, /* 40 */
  752. ReplyNotSwappd,
  753. ReplyNotSwappd,
  754. (ReplySwapPtr)SGetInputFocusReply,
  755. (ReplySwapPtr)SQueryKeymapReply,
  756. ReplyNotSwappd, /* 45 */
  757. ReplyNotSwappd,
  758. (ReplySwapPtr)SQueryFontReply,
  759. (ReplySwapPtr)SQueryTextExtentsReply,
  760. (ReplySwapPtr)SListFontsReply,
  761. (ReplySwapPtr)SListFontsWithInfoReply, /* 50 */
  762. ReplyNotSwappd,
  763. (ReplySwapPtr)SGetFontPathReply,
  764. ReplyNotSwappd,
  765. ReplyNotSwappd,
  766. ReplyNotSwappd, /* 55 */
  767. ReplyNotSwappd,
  768. ReplyNotSwappd,
  769. ReplyNotSwappd,
  770. ReplyNotSwappd,
  771. ReplyNotSwappd, /* 60 */
  772. ReplyNotSwappd,
  773. ReplyNotSwappd,
  774. ReplyNotSwappd,
  775. ReplyNotSwappd,
  776. ReplyNotSwappd, /* 65 */
  777. ReplyNotSwappd,
  778. ReplyNotSwappd,
  779. ReplyNotSwappd,
  780. ReplyNotSwappd,
  781. ReplyNotSwappd, /* 70 */
  782. ReplyNotSwappd,
  783. ReplyNotSwappd,
  784. (ReplySwapPtr)SGetImageReply,
  785. ReplyNotSwappd,
  786. ReplyNotSwappd, /* 75 */
  787. ReplyNotSwappd,
  788. ReplyNotSwappd,
  789. ReplyNotSwappd,
  790. ReplyNotSwappd,
  791. ReplyNotSwappd, /* 80 */
  792. ReplyNotSwappd,
  793. ReplyNotSwappd,
  794. (ReplySwapPtr)SListInstalledColormapsReply,
  795. (ReplySwapPtr)SAllocColorReply,
  796. (ReplySwapPtr)SAllocNamedColorReply, /* 85 */
  797. (ReplySwapPtr)SAllocColorCellsReply,
  798. (ReplySwapPtr)SAllocColorPlanesReply,
  799. ReplyNotSwappd,
  800. ReplyNotSwappd,
  801. ReplyNotSwappd, /* 90 */
  802. (ReplySwapPtr)SQueryColorsReply,
  803. (ReplySwapPtr)SLookupColorReply,
  804. ReplyNotSwappd,
  805. ReplyNotSwappd,
  806. ReplyNotSwappd, /* 95 */
  807. ReplyNotSwappd,
  808. (ReplySwapPtr)SQueryBestSizeReply,
  809. (ReplySwapPtr)SGenericReply, /* SQueryExtensionReply, */
  810. (ReplySwapPtr)SListExtensionsReply,
  811. ReplyNotSwappd, /* 100 */
  812. (ReplySwapPtr)SGetKeyboardMappingReply,
  813. ReplyNotSwappd,
  814. (ReplySwapPtr)SGetKeyboardControlReply,
  815. ReplyNotSwappd,
  816. ReplyNotSwappd, /* 105 */
  817. (ReplySwapPtr)SGetPointerControlReply,
  818. ReplyNotSwappd,
  819. (ReplySwapPtr)SGetScreenSaverReply,
  820. ReplyNotSwappd,
  821. (ReplySwapPtr)SListHostsReply, /* 110 */
  822. ReplyNotSwappd,
  823. ReplyNotSwappd,
  824. ReplyNotSwappd,
  825. ReplyNotSwappd,
  826. ReplyNotSwappd, /* 115 */
  827. (ReplySwapPtr)SGenericReply, /* SetPointerMapping */
  828. (ReplySwapPtr)SGetPointerMappingReply,
  829. (ReplySwapPtr)SGenericReply, /* SetModifierMapping */
  830. (ReplySwapPtr)SGetModifierMappingReply, /* 119 */
  831. ReplyNotSwappd, /* 120 */
  832. ReplyNotSwappd, /* 121 */
  833. ReplyNotSwappd, /* 122 */
  834. ReplyNotSwappd, /* 123 */
  835. ReplyNotSwappd, /* 124 */
  836. ReplyNotSwappd, /* 125 */
  837. ReplyNotSwappd, /* 126 */
  838. ReplyNotSwappd, /* NoOperation */
  839. ReplyNotSwappd,
  840. ReplyNotSwappd,
  841. ReplyNotSwappd,
  842. ReplyNotSwappd,
  843. ReplyNotSwappd,
  844. ReplyNotSwappd,
  845. ReplyNotSwappd,
  846. ReplyNotSwappd,
  847. ReplyNotSwappd,
  848. ReplyNotSwappd,
  849. ReplyNotSwappd,
  850. ReplyNotSwappd,
  851. ReplyNotSwappd,
  852. ReplyNotSwappd,
  853. ReplyNotSwappd,
  854. ReplyNotSwappd,
  855. ReplyNotSwappd,
  856. ReplyNotSwappd,
  857. ReplyNotSwappd,
  858. ReplyNotSwappd,
  859. ReplyNotSwappd,
  860. ReplyNotSwappd,
  861. ReplyNotSwappd,
  862. ReplyNotSwappd,
  863. ReplyNotSwappd,
  864. ReplyNotSwappd,
  865. ReplyNotSwappd,
  866. ReplyNotSwappd,
  867. ReplyNotSwappd,
  868. ReplyNotSwappd,
  869. ReplyNotSwappd,
  870. ReplyNotSwappd,
  871. ReplyNotSwappd,
  872. ReplyNotSwappd,
  873. ReplyNotSwappd,
  874. ReplyNotSwappd,
  875. ReplyNotSwappd,
  876. ReplyNotSwappd,
  877. ReplyNotSwappd,
  878. ReplyNotSwappd,
  879. ReplyNotSwappd,
  880. ReplyNotSwappd,
  881. ReplyNotSwappd,
  882. ReplyNotSwappd,
  883. ReplyNotSwappd,
  884. ReplyNotSwappd,
  885. ReplyNotSwappd,
  886. ReplyNotSwappd,
  887. ReplyNotSwappd,
  888. ReplyNotSwappd,
  889. ReplyNotSwappd,
  890. ReplyNotSwappd,
  891. ReplyNotSwappd,
  892. ReplyNotSwappd,
  893. ReplyNotSwappd,
  894. ReplyNotSwappd,
  895. ReplyNotSwappd,
  896. ReplyNotSwappd,
  897. ReplyNotSwappd,
  898. ReplyNotSwappd,
  899. ReplyNotSwappd,
  900. ReplyNotSwappd,
  901. ReplyNotSwappd,
  902. ReplyNotSwappd,
  903. ReplyNotSwappd,
  904. ReplyNotSwappd,
  905. ReplyNotSwappd,
  906. ReplyNotSwappd,
  907. ReplyNotSwappd,
  908. ReplyNotSwappd,
  909. ReplyNotSwappd,
  910. ReplyNotSwappd,
  911. ReplyNotSwappd,
  912. ReplyNotSwappd,
  913. ReplyNotSwappd,
  914. ReplyNotSwappd,
  915. ReplyNotSwappd,
  916. ReplyNotSwappd,
  917. ReplyNotSwappd,
  918. ReplyNotSwappd,
  919. ReplyNotSwappd,
  920. ReplyNotSwappd,
  921. ReplyNotSwappd,
  922. ReplyNotSwappd,
  923. ReplyNotSwappd,
  924. ReplyNotSwappd,
  925. ReplyNotSwappd,
  926. ReplyNotSwappd,
  927. ReplyNotSwappd,
  928. ReplyNotSwappd,
  929. ReplyNotSwappd,
  930. ReplyNotSwappd,
  931. ReplyNotSwappd,
  932. ReplyNotSwappd,
  933. ReplyNotSwappd,
  934. ReplyNotSwappd,
  935. ReplyNotSwappd,
  936. ReplyNotSwappd,
  937. ReplyNotSwappd,
  938. ReplyNotSwappd,
  939. ReplyNotSwappd,
  940. ReplyNotSwappd,
  941. ReplyNotSwappd,
  942. ReplyNotSwappd,
  943. ReplyNotSwappd,
  944. ReplyNotSwappd,
  945. ReplyNotSwappd,
  946. ReplyNotSwappd,
  947. ReplyNotSwappd,
  948. ReplyNotSwappd,
  949. ReplyNotSwappd,
  950. ReplyNotSwappd,
  951. ReplyNotSwappd,
  952. ReplyNotSwappd,
  953. ReplyNotSwappd,
  954. ReplyNotSwappd,
  955. ReplyNotSwappd,
  956. ReplyNotSwappd,
  957. ReplyNotSwappd,
  958. ReplyNotSwappd,
  959. ReplyNotSwappd,
  960. ReplyNotSwappd,
  961. ReplyNotSwappd,
  962. ReplyNotSwappd,
  963. ReplyNotSwappd,
  964. ReplyNotSwappd,
  965. ReplyNotSwappd,
  966. ReplyNotSwappd
  967. };