Linux Standard Base Desktop Specification 4.1

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

Portions of the text may be copyrighted by the following parties:

  • The Regents of the University of California

  • Free Software Foundation

  • Ian F. Darwin

  • Paul Vixie

  • BSDI (now Wind River)

  • Andrew G Morgan

  • Jean-loup Gailly and Mark Adler

  • Massachusetts Institute of Technology

  • Apple Inc.

  • Easy Software Products

  • artofcode LLC

  • Till Kamppeter

  • Manfred Wassman

  • Python Software Foundation

These excerpts are being used in accordance with their respective licenses.

Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.

UNIX is a registered trademark of The Open Group.

LSB is a trademark of the Linux Foundation in the United States and other countries.

AMD is a trademark of Advanced Micro Devices, Inc.

Intel and Itanium are registered trademarks and Intel386 is a trademark of Intel Corporation.

PowerPC is a registered trademark and PowerPC Architecture is a trademark of the IBM Corporation.

S/390 is a registered trademark of the IBM Corporation.

OpenGL is a registered trademark of Silicon Graphics, Inc.


Table of Contents
Foreword
Status of this Document
Introduction
I. Introductory Elements
1. Scope
2. References
2.1. Normative References
2.2. Informative References/Bibliography
3. Requirements
3.1. Relevant Libraries
4. Terms and Definitions
5. Documentation Conventions
II. Graphic Libraries
6. Libraries
6.1. Interfaces for libX11
6.2. Data Definitions for libX11
6.3. Interface Definitions for libX11
6.4. Interfaces for libSM
6.5. Data Definitions for libSM
6.6. Interfaces for libICE
6.7. Data Definitions for libICE
6.8. Interface Definitions for libICE
6.9. Interfaces for libXt
6.10. Data Definitions for libXt
6.11. Interface Definitions for libXt
6.12. Interfaces for libXext
6.13. Data Definitions for libXext
6.14. Interface Definitions for libXext
6.15. Interfaces for libXi
6.16. Data Definitions for libXi
6.17. Interfaces for libXtst
6.18. Data Definitions for libXtst
III. OpenGL Libraries
7. Libraries
7.1. Interfaces for libGL
7.2. Data Definitions for libGL
7.3. Interfaces for libGLU
7.4. Data Definitions for libGLU
IV. PNG12 library
8. Libraries
8.1. Interfaces for libpng12
8.2. Data Definitions for libpng12
8.3. Interface Definitions for libpng12
V. JPEG library
9. Libraries
9.1. Interfaces for libjpeg
9.2. Data Definitions for libjpeg
9.3. Interface Definitions for libjpeg
VI. Fontconfig library
10. Libraries
10.1. Interfaces for libfontconfig
10.2. Data Definitions for libfontconfig
11. Commands and Utilities
11.1. Commands and Utilities
11.2. Command Behavior
VII. Freetype library
12. Libraries
12.1. Interfaces for libfreetype
12.2. Data Definitions for libfreetype
12.3. Interface Definitions for libfreetype
VIII. Xft library
13. Libraries
13.1. Interfaces for libXft
13.2. Data Definitions for libXft
13.3. Interface Definitions for libXft
IX. Xrender library
14. Libraries
14.1. Interfaces for libXrender
14.2. Data Definitions for libXrender
14.3. Interface Definitions for libXrender
X. Cairo Vector Graphics library
15. Libraries
15.1. Interfaces for libcairo
15.2. Data Definitions for libcairo
XI. GTK+ Stack Libraries
16. Libraries
16.1. Introduction
16.2. Interfaces for libglib-2.0
16.3. Data Definitions for libglib-2.0
16.4. Interface Definitions for libglib-2.0
16.5. Interfaces for libgobject-2.0
16.6. Data Definitions for libgobject-2.0
16.7. Interface Definitions for libgobject-2.0
16.8. Interfaces for libgmodule-2.0
16.9. Data Definitions for libgmodule-2.0
16.10. Interfaces for libgthread-2.0
16.11. Interfaces for libatk-1.0
16.12. Data Definitions for libatk-1.0
16.13. Interfaces for libpango-1.0
16.14. Data Definitions for libpango-1.0
16.15. Interfaces for libpangocairo-1.0
16.16. Data Definitions for libpangocairo-1.0
16.17. Interfaces for libpangoxft-1.0
16.18. Data Definitions for libpangoxft-1.0
16.19. Interfaces for libpangoft2-1.0
16.20. Data Definitions for libpangoft2-1.0
16.21. Interfaces for libgdk_pixbuf-2.0
16.22. Data Definitions for libgdk_pixbuf-2.0
16.23. Interfaces for libgdk_pixbuf_xlib-2.0
16.24. Data Definitions for libgdk_pixbuf_xlib-2.0
16.25. Interfaces for libgdk-x11-2.0
16.26. Data Definitions for libgdk-x11-2.0
16.27. Interfaces for libgtk-x11-2.0
16.28. Data Definitions for libgtk-x11-2.0
16.29. Interface Definitions for libgtk-x11-2.0
XII. Qt Libraries
17. Libraries
17.1. Introduction
17.2. Interfaces for libQtCore
17.3. Data Definitions for libQtCore
17.4. Interface Definitions for libQtCore
17.5. Interfaces for libQtGui
17.6. Data Definitions for libQtGui
17.7. Interface Definitions for libQtGui
17.8. Interfaces for libQtXml
17.9. Data Definitions for libQtXml
17.10. Interfaces for libQtOpenGL
17.11. Data Definitions for libQtOpenGL
17.12. Interface Definitions for libQtOpenGL
17.13. Interfaces for libQtSql
17.14. Data Definitions for libQtSql
17.15. Interface Definitions for libQtSql
17.16. Interfaces for libQtSvg
17.17. Data Definitions for libQtSvg
17.18. Interfaces for libQtNetwork
17.19. Data Definitions for libQtNetwork
17.20. Interface Definitions for libQtNetwork
XIII. Qt3 Library
18. Library
18.1. Introduction
18.2. Interfaces for libqt-mt
XIV. XML2 library
19. Libraries
19.1. Interfaces for libxml2
19.2. Data Definitions for libxml2
XV. ALSA sound library
20. Libraries
20.1. Interfaces for libasound
20.2. Data Definitions for libasound
XVI. Desktop Environment
21. Desktop Environment
21.1. Desktop Base Directory
21.2. Desktop Entries
21.3. Desktop Menu Specification
21.4. Icon Theme Specification
22. Desktop Commands
22.1. Xdg-utils
XVII. Package Information
23. Package Dependencies
23.1. Package Dependencies
A. GNU Free Documentation License (Informative)
A.1. PREAMBLE
A.2. APPLICABILITY AND DEFINITIONS
A.3. VERBATIM COPYING
A.4. COPYING IN QUANTITY
A.5. MODIFICATIONS
A.6. COMBINING DOCUMENTS
A.7. COLLECTIONS OF DOCUMENTS
A.8. AGGREGATION WITH INDEPENDENT WORKS
A.9. TRANSLATION
A.10. TERMINATION
A.11. FUTURE REVISIONS OF THIS LICENSE
A.12. How to use this License for your documents
List of Tables
2-1. Normative References
2-2. Other References
3-1. Standard Library Names
6-1. libX11 Definition
6-2. libX11 - X Window System Interface Function Interfaces
6-3. libSM Definition
6-4. libSM - Session Management Functions Function Interfaces
6-5. libICE Definition
6-6. libICE - ICE Functions Function Interfaces
6-7. libICE - ICE Functions Deprecated Function Interfaces
6-8. libXt Definition
6-9. libXt - X Toolkit Function Interfaces
6-10. libXt - X Toolkit Data Interfaces
6-11. libXext Definition
6-12. libXext - libXext interfaces Function Interfaces
6-13. libXext - X Shape Extension Function Interfaces
6-14. libXext - X Display Power Management Signaling Extension Function Interfaces
6-15. libXext - X Shared Memory Extensions Function Interfaces
6-16. libXext - X Synchronization Extension Function Interfaces
6-17. libXext - X Security Extension Function Interfaces
6-18. libXext - X Double Buffer Extension Function Interfaces
6-19. libXext - X Extended Visual Interface Extension Function Interfaces
6-20. libXi Definition
6-21. libXi - XInput Function Interfaces
6-22. libXtst Definition
6-23. libXtst - libXtst Interfaces Function Interfaces
7-1. libGL Definition
7-2. libGL - GL X interface Function Interfaces
7-3. libGL - OpenGL Function Interfaces
7-4. libGLU Definition
7-5. libGLU - GL Utilities Function Interfaces
8-1. libpng12 Definition
8-2. libpng12 - PNG Reference library Function Interfaces
8-3. libpng12 - PNG Reference library Data Interfaces
9-1. libjpeg Definition
9-2. libjpeg - JPEG Reference library Function Interfaces
10-1. libfontconfig Definition
10-2. libfontconfig - Font Customization and Configuration Library Function Interfaces
10-3. libfontconfig - Font Customization and Configuration Library Deprecated Function Interfaces
11-1. Commands And Utilities
12-1. libfreetype Definition
12-2. libfreetype - FreeType Library Function Interfaces
13-1. libXft Definition
13-2. libXft - X FreeType Library Function Interfaces
14-1. libXrender Definition
14-2. libXrender - X Rendering Extension Function Interfaces
15-1. libcairo Definition
15-2. libcairo - Cairo Vector Graphics Library Function Interfaces
16-1. libglib-2.0 Definition
16-2. libglib-2.0 - GTK General purpose utility library Function Interfaces
16-3. libglib-2.0 - GTK General purpose utility library Data Interfaces
16-4. libglib-2.0 - Glib Arrays Function Interfaces
16-5. libglib-2.0 - Glib Asynchronous Queues Function Interfaces
16-6. libglib-2.0 - Glib Atomic Operations Function Interfaces
16-7. libglib-2.0 - Glib Automatic String Completion Function Interfaces
16-8. libglib-2.0 - Glib Automatic String Completion Deprecated Function Interfaces
16-9. libglib-2.0 - Glib Balanced Binary Trees Function Interfaces
16-10. libglib-2.0 - Glib Byte Arrays Function Interfaces
16-11. libglib-2.0 - Glib Caches Function Interfaces
16-12. libglib-2.0 - Glib Caches Deprecated Function Interfaces
16-13. libglib-2.0 - Glib Character Set Conversion Function Interfaces
16-14. libglib-2.0 - Glib Commandline Option Parser Function Interfaces
16-15. libglib-2.0 - Glib Datasets Function Interfaces
16-16. libglib-2.0 - Glib Date and Time Functions Function Interfaces
16-17. libglib-2.0 - Glib Date and Time Functions Deprecated Function Interfaces
16-18. libglib-2.0 - Glib Double-Ended Queues Function Interfaces
16-19. libglib-2.0 - Glib Doubly-Linked Lists Function Interfaces
16-20. libglib-2.0 - Glib Doubly-Linked Lists Deprecated Function Interfaces
16-21. libglib-2.0 - Glib Error Reporting Function Interfaces
16-22. libglib-2.0 - Glib File Utilities Function Interfaces
16-23. libglib-2.0 - Glib Glob-Style Pattern Matching Function Interfaces
16-24. libglib-2.0 - Glib Hash Tables Function Interfaces
16-25. libglib-2.0 - Glib Hook Functions Function Interfaces
16-26. libglib-2.0 - Glib IO Channels Function Interfaces
16-27. libglib-2.0 - Glib Internationalization Function Interfaces
16-28. libglib-2.0 - Glib Key-Value File Parser Function Interfaces
16-29. libglib-2.0 - Glib Keyed Data Lists Function Interfaces
16-30. libglib-2.0 - Glib Lexical Scanner Function Interfaces
16-31. libglib-2.0 - Glib Memory Allocation Function Interfaces
16-32. libglib-2.0 - Glib Memory Allocation Data Interfaces
16-33. libglib-2.0 - Glib Memory Allocators Function Interfaces
16-34. libglib-2.0 - Glib Memory Chunks Function Interfaces
16-35. libglib-2.0 - Glib Memory Chunks Deprecated Function Interfaces
16-36. libglib-2.0 - Glib Message Logging Function Interfaces
16-37. libglib-2.0 - Glib Message Output and Debugging Functions Function Interfaces
16-38. libglib-2.0 - Glib Miscellaneous Utility Functions Function Interfaces
16-39. libglib-2.0 - Glib N-ary Trees Function Interfaces
16-40. libglib-2.0 - Glib N-ary Trees Deprecated Function Interfaces
16-41. libglib-2.0 - Glib Pointer Arrays Function Interfaces
16-42. libglib-2.0 - Glib Quarks Function Interfaces
16-43. libglib-2.0 - Glib Random Numbers Function Interfaces
16-44. libglib-2.0 - Glib Relations and Tuples Function Interfaces
16-45. libglib-2.0 - Glib Relations and Tuples Deprecated Function Interfaces
16-46. libglib-2.0 - Glib Shell-related Utilities Function Interfaces
16-47. libglib-2.0 - Glib Simple XML Subset Parser Function Interfaces
16-48. libglib-2.0 - Glib Singly-Linked Lists Function Interfaces
16-49. libglib-2.0 - Glib Singly-Linked Lists Deprecated Function Interfaces
16-50. libglib-2.0 - Glib Spawning Processes Function Interfaces
16-51. libglib-2.0 - Glib String Chunks Function Interfaces
16-52. libglib-2.0 - Glib String Utility Functions Function Interfaces
16-53. libglib-2.0 - Glib Strings Function Interfaces
16-54. libglib-2.0 - Glib - The Main Event Loop Function Interfaces
16-55. libglib-2.0 - Glib Thread Pools Function Interfaces
16-56. libglib-2.0 - Glib Threads Function Interfaces
16-57. libglib-2.0 - Glib Timers Function Interfaces
16-58. libglib-2.0 - Glib Trash Stacks Function Interfaces
16-59. libglib-2.0 - Glib Unicode Manipulation Function Interfaces
16-60. libglib-2.0 - Glib Version Information Function Interfaces
16-61. libglib-2.0 - Glib Version Information Data Interfaces
16-62. libglib-2.0 - Glib Bookmark File Parser Function Interfaces
16-63. libglib-2.0 - Glib Memory Slices Function Interfaces
16-64. libglib-2.0 - Glib Base64 Encoding Function Interfaces
16-65. libgobject-2.0 Definition
16-66. libgobject-2.0 - Gobject GTypeModule Function Interfaces
16-67. libgobject-2.0 - Gobject Enums and Flags Function Interfaces
16-68. libgobject-2.0 - Gobject Signals Function Interfaces
16-69. libgobject-2.0 - Gobject Value arrays Function Interfaces
16-70. libgobject-2.0 - Gobject Generic Values Function Interfaces
16-71. libgobject-2.0 - Gobject Parameters and Values Function Interfaces
16-72. libgobject-2.0 - Gobject Parameters and Values Data Interfaces
16-73. libgobject-2.0 - Gobject GParamSpec Function Interfaces
16-74. libgobject-2.0 - Gobject GBoxed Function Interfaces
16-75. libgobject-2.0 - Gobject Closures Function Interfaces
16-76. libgobject-2.0 - Gobject Gobject Function Interfaces
16-77. libgobject-2.0 - Gobject GType Function Interfaces
16-78. libgobject-2.0 - Gobject GTypePlugin Function Interfaces
16-79. libgmodule-2.0 Definition
16-80. libgmodule-2.0 - Glib-Dynamic loading of Modules Function Interfaces
16-81. libgthread-2.0 Definition
16-82. libgthread-2.0 - Glib thread abstraction Function Interfaces
16-83. libatk-1.0 Definition
16-84. libatk-1.0 - GTK Accessibility Toolkit Function Interfaces
16-85. libpango-1.0 Definition
16-86. libpango-1.0 - GTK Internationalized Text Layout and Rendering library Function Interfaces
16-87. libpangocairo-1.0 Definition
16-88. libpangocairo-1.0 - Pango Cairo Rendering Function Interfaces
16-89. libpangoxft-1.0 Definition
16-90. libpangoxft-1.0 - Pango Xft Fonts and Rendering library Function Interfaces
16-91. libpangoft2-1.0 Definition
16-92. libpangoft2-1.0 - Pango Freetype Fonts and Rendering library Function Interfaces
16-93. libgdk_pixbuf-2.0 Definition
16-94. libgdk_pixbuf-2.0 - GDK pixbuf rendering on drawables library Function Interfaces
16-95. libgdk_pixbuf-2.0 - GDK pixbuf rendering on drawables library Data Interfaces
16-96. libgdk_pixbuf_xlib-2.0 Definition
16-97. libgdk_pixbuf_xlib-2.0 - GDK pixbuf rendering to an X drawable library Function Interfaces
16-98. libgdk-x11-2.0 Definition
16-99. libgdk-x11-2.0 - GTK Drawing toolkit Function Interfaces
16-100. libgdk-x11-2.0 - GTK Drawing toolkit Data Interfaces
16-101. libgtk-x11-2.0 Definition
16-102. libgtk-x11-2.0 - GTK main Widgets library Function Interfaces
16-103. libgtk-x11-2.0 - GTK main Widgets library Deprecated Function Interfaces
16-104. libgtk-x11-2.0 - GTK main Widgets library Data Interfaces
17-1. libQtCore Definition
17-2. Primary vtable for QDynamicPropertyChangeEvent
17-3. Primary vtable for QTimeLine
17-4. libQtCore - Qt4 Core Functions Function Interfaces
17-5. libQtCore - Qt4 Core Functions Data Interfaces
17-6. Primary vtable for QAbstractItemModel
17-7. typeinfo for QAbstractItemModel
17-8. Primary vtable for QAbstractTableModel
17-9. typeinfo for QAbstractTableModel
17-10. Primary vtable for QAbstractListModel
17-11. typeinfo for QAbstractListModel
17-12. libQtCore - Qt4 Models Function Interfaces
17-13. Primary vtable for QTextCodec
17-14. typeinfo for QTextCodec
17-15. Primary vtable for QTextCodecFactoryInterface
17-16. typeinfo for QTextCodecFactoryInterface
17-17. Primary vtable for QTranslator
17-18. typeinfo for QTranslator
17-19. Primary vtable for QSystemLocale
17-20. libQtCore - Qt4 Internationalization Function Interfaces
17-21. Primary vtable for QMimeData
17-22. typeinfo for QMimeData
17-23. libQtCore - Qt4 Containers Function Interfaces
17-24. Primary vtable for QEventLoop
17-25. typeinfo for QEventLoop
17-26. Primary vtable for QEvent
17-27. typeinfo for QEvent
17-28. Primary vtable for QTimerEvent
17-29. typeinfo for QTimerEvent
17-30. Primary vtable for QChildEvent
17-31. typeinfo for QChildEvent
17-32. Primary vtable for QCustomEvent
17-33. typeinfo for QCustomEvent
17-34. Primary vtable for QAbstractEventDispatcher
17-35. typeinfo for QAbstractEventDispatcher
17-36. libQtCore - Qt4 Events Function Interfaces
17-37. libQtCore - Qt4 Arrays Function Interfaces
17-38. Primary vtable for QTextCodecPlugin
17-39. typeinfo for QTextCodecPlugin
17-40. Primary vtable for QPluginLoader
17-41. typeinfo for QPluginLoader
17-42. Primary vtable for QLibrary
17-43. typeinfo for QLibrary
17-44. libQtCore - Qt4 Plugins Function Interfaces
17-45. Primary vtable for QTimer
17-46. typeinfo for QTimer
17-47. libQtCore - Qt4 Date and Time Function Interfaces
17-48. libQtCore - Qt4 Date and Time Deprecated Function Interfaces
17-49. Primary vtable for QFactoryInterface
17-50. typeinfo for QFactoryInterface
17-51. libQtCore - Qt4 Miscellaneous Function Interfaces
17-52. libQtCore - Qt4 Text Function Interfaces
17-53. Primary vtable for QIODevice
17-54. typeinfo for QIODevice
17-55. Primary vtable for QDataStream
17-56. typeinfo for QDataStream
17-57. Primary vtable for QTextStream
17-58. typeinfo for QTextStream
17-59. Primary vtable for QFile
17-60. typeinfo for QFile
17-61. Primary vtable for QTemporaryFile
17-62. typeinfo for QTemporaryFile
17-63. Primary vtable for QAbstractFileEngine
17-64. typeinfo for QAbstractFileEngine
17-65. Primary vtable for QAbstractFileEngineHandler
17-66. typeinfo for QAbstractFileEngineHandler
17-67. Primary vtable for QFSFileEngine
17-68. typeinfo for QFSFileEngine
17-69. Primary vtable for QProcess
17-70. typeinfo for QProcess
17-71. Primary vtable for QBuffer
17-72. typeinfo for QBuffer
17-73. Primary vtable for QSettings
17-74. typeinfo for QSettings
17-75. Primary vtable for QSignalMapper
17-76. typeinfo for QSignalMapper
17-77. Primary vtable for QSocketNotifier
17-78. typeinfo for QSocketNotifier
17-79. Primary vtable for QFileSystemWatcher
17-80. libQtCore - Qt4 Input/Output Function Interfaces
17-81. libQtCore - Qt4 Input/Output Deprecated Function Interfaces
17-82. Primary vtable for QCoreApplication
17-83. typeinfo for QCoreApplication
17-84. libQtCore - Qt4 Core Application Function Interfaces
17-85. libQtCore - Qt4 Core Application Deprecated Function Interfaces
17-86. Primary vtable for QObject
17-87. typeinfo for QObject
17-88. Primary vtable for QObjectUserData
17-89. typeinfo for QObjectUserData
17-90. Primary vtable for QObjectCleanupHandler
17-91. typeinfo for QObjectCleanupHandler
17-92. libQtCore - Qt4 Object Model Function Interfaces
17-93. Primary vtable for QThread
17-94. typeinfo for QThread
17-95. libQtCore - Qt4 Threading Function Interfaces
17-96. libQtCore - Qt4 2D Graphics Function Interfaces
17-97. libQtCore - Qt4 Internals Function Interfaces
17-98. libQtGui Definition
17-99. libQtGui - Qt4 GUI Functions Function Interfaces
17-100. libQtGui - Qt4 GUI Functions Deprecated Function Interfaces
17-101. libQtGui - Qt4 GUI Functions Data Interfaces
17-102. Primary vtable for QButtonGroup
17-103. typeinfo for QButtonGroup
17-104. Primary vtable for QGroupBox
17-105. typeinfo for QGroupBox
17-106. Primary vtable for QSplitter
17-107. typeinfo for QSplitter
17-108. Primary vtable for QSplitterHandle
17-109. typeinfo for QSplitterHandle
17-110. libQtGui - Qt4 Organizers Function Interfaces
17-111. Primary vtable for QInputEvent
17-112. typeinfo for QInputEvent
17-113. Primary vtable for QMouseEvent
17-114. typeinfo for QMouseEvent
17-115. Primary vtable for QHoverEvent
17-116. typeinfo for QHoverEvent
17-117. Primary vtable for QWheelEvent
17-118. typeinfo for QWheelEvent
17-119. Primary vtable for QTabletEvent
17-120. typeinfo for QTabletEvent
17-121. Primary vtable for QKeyEvent
17-122. typeinfo for QKeyEvent
17-123. Primary vtable for QFocusEvent
17-124. typeinfo for QFocusEvent
17-125. Primary vtable for QPaintEvent
17-126. typeinfo for QPaintEvent
17-127. Primary vtable for QMoveEvent
17-128. typeinfo for QMoveEvent
17-129. Primary vtable for QResizeEvent
17-130. typeinfo for QResizeEvent
17-131. Primary vtable for QCloseEvent
17-132. typeinfo for QCloseEvent
17-133. Primary vtable for QIconDragEvent
17-134. typeinfo for QIconDragEvent
17-135. Primary vtable for QShowEvent
17-136. typeinfo for QShowEvent
17-137. Primary vtable for QHideEvent
17-138. typeinfo for QHideEvent
17-139. Primary vtable for QContextMenuEvent
17-140. typeinfo for QContextMenuEvent
17-141. Primary vtable for QInputMethodEvent
17-142. typeinfo for QInputMethodEvent
17-143. Primary vtable for QHelpEvent
17-144. typeinfo for QHelpEvent
17-145. Primary vtable for QStatusTipEvent
17-146. typeinfo for QStatusTipEvent
17-147. Primary vtable for QWhatsThisClickedEvent
17-148. typeinfo for QWhatsThisClickedEvent
17-149. Primary vtable for QActionEvent
17-150. typeinfo for QActionEvent
17-151. Primary vtable for QFileOpenEvent
17-152. typeinfo for QFileOpenEvent
17-153. Primary vtable for QToolBarChangeEvent
17-154. typeinfo for QToolBarChangeEvent
17-155. Primary vtable for QShortcutEvent
17-156. typeinfo for QShortcutEvent
17-157. Primary vtable for QClipboardEvent
17-158. typeinfo for QClipboardEvent
17-159. Primary vtable for QWindowStateChangeEvent
17-160. typeinfo for QWindowStateChangeEvent
17-161. Primary vtable for QMenubarUpdatedEvent
17-162. typeinfo for QMenubarUpdatedEvent
17-163. libQtGui - Qt4 Events Function Interfaces
17-164. libQtGui - Qt4 Fonts Function Interfaces
17-165. libQtGui - Qt4 Colors Function Interfaces
17-166. Primary vtable for QAccessibleBridgeFactoryInterface
17-167. typeinfo for QAccessibleBridgeFactoryInterface
17-168. Primary vtable for QAccessibleBridgePlugin
17-169. typeinfo for QAccessibleBridgePlugin
17-170. Primary vtable for QAccessibleInterface
17-171. typeinfo for QAccessibleInterface
17-172. Primary vtable for QAccessibleObject
17-173. typeinfo for QAccessibleObject
17-174. Primary vtable for QAccessibleApplication
17-175. typeinfo for QAccessibleApplication
17-176. Primary vtable for QAccessibleWidget
17-177. typeinfo for QAccessibleWidget
17-178. Primary vtable for QAccessibleFactoryInterface
17-179. typeinfo for QAccessibleFactoryInterface
17-180. Primary vtable for QAccessiblePlugin
17-181. typeinfo for QAccessiblePlugin
17-182. libQtGui - Qt4 Accessibility Function Interfaces
17-183. Primary vtable for QValidator
17-184. typeinfo for QValidator
17-185. Primary vtable for QIntValidator
17-186. typeinfo for QIntValidator
17-187. Primary vtable for QDoubleValidator
17-188. typeinfo for QDoubleValidator
17-189. Primary vtable for QRegExpValidator
17-190. typeinfo for QRegExpValidator
17-191. libQtGui - Qt4 Validators Function Interfaces
17-192. Primary vtable for QImageIOPlugin
17-193. typeinfo for QImageIOPlugin
17-194. Primary vtable for QIconEnginePlugin
17-195. typeinfo for QIconEnginePlugin
17-196. Primary vtable for QPictureFormatPlugin
17-197. typeinfo for QPictureFormatPlugin
17-198. Primary vtable for QStylePlugin
17-199. typeinfo for QStylePlugin
17-200. Primary vtable for QInputContextPlugin
17-201. typeinfo for QInputContextPlugin
17-202. libQtGui - Qt4 Plugins Function Interfaces
17-203. Primary vtable for QAbstractTextDocumentLayout
17-204. typeinfo for QAbstractTextDocumentLayout
17-205. Primary vtable for QAbstractPageSetupDialog
17-206. typeinfo for QAbstractPageSetupDialog
17-207. Primary vtable for QAbstractPrintDialog
17-208. typeinfo for QAbstractPrintDialog
17-209. Primary vtable for QItemSelectionModel
17-210. typeinfo for QItemSelectionModel
17-211. Primary vtable for QAbstractScrollArea
17-212. typeinfo for QAbstractScrollArea
17-213. Primary vtable for QAbstractSpinBox
17-214. typeinfo for QAbstractSpinBox
17-215. Primary vtable for QAbstractSlider
17-216. typeinfo for QAbstractSlider
17-217. Primary vtable for QAbstractItemDelegate
17-218. typeinfo for QAbstractItemDelegate
17-219. Primary vtable for QAbstractItemView
17-220. typeinfo for QAbstractItemView
17-221. Primary vtable for QStringListModel
17-222. typeinfo for QStringListModel
17-223. Primary vtable for QDirModel
17-224. typeinfo for QDirModel
17-225. Primary vtable for QStandardItemModel
17-226. typeinfo for QStandardItemModel
17-227. Primary vtable for QAbstractProxyModel
17-228. typeinfo for QAbstractProxyModel
17-229. Primary vtable for QSortFilterProxyModel
17-230. typeinfo for QSortFilterProxyModel
17-231. Primary vtable for QItemDelegate
17-232. typeinfo for QItemDelegate
17-233. Primary vtable for QTableView
17-234. typeinfo for QTableView
17-235. Primary vtable for QTableWidgetItem
17-236. typeinfo for QTableWidgetItem
17-237. Primary vtable for QTableWidget
17-238. typeinfo for QTableWidget
17-239. Primary vtable for QTreeView
17-240. typeinfo for QTreeView
17-241. Primary vtable for QProxyModel
17-242. typeinfo for QProxyModel
17-243. Primary vtable for QHeaderView
17-244. typeinfo for QHeaderView
17-245. Primary vtable for QItemEditorFactory
17-246. typeinfo for QItemEditorFactory
17-247. Primary vtable for QTreeWidgetItem
17-248. typeinfo for QTreeWidgetItem
17-249. Primary vtable for QTreeWidget
17-250. typeinfo for QTreeWidget
17-251. Primary vtable for QAbstractButton
17-252. typeinfo for QAbstractButton
17-253. Primary vtable for QAbstractGraphicsShapeItem
17-254. Primary vtable for QCompleter
17-255. Primary vtable for QDataWidgetMapper
17-256. Primary vtable for QStandardItem
17-257. libQtGui - Qt4 Models and Views Function Interfaces
17-258. libQtGui - Qt4 Models and Views Deprecated Function Interfaces
17-259. Primary vtable for QDialog
17-260. typeinfo for QDialog
17-261. Primary vtable for QColorDialog
17-262. typeinfo for QColorDialog
17-263. Primary vtable for QFontDialog
17-264. typeinfo for QFontDialog
17-265. Primary vtable for QMessageBox
17-266. typeinfo for QMessageBox
17-267. Primary vtable for QProgressDialog
17-268. typeinfo for QProgressDialog
17-269. Primary vtable for QErrorMessage
17-270. typeinfo for QErrorMessage
17-271. Primary vtable for QFileDialog
17-272. typeinfo for QFileDialog
17-273. Primary vtable for QPrintDialog
17-274. typeinfo for QPrintDialog
17-275. Primary vtable for QPageSetupDialog
17-276. typeinfo for QPageSetupDialog
17-277. Primary vtable for QInputDialog
17-278. typeinfo for QInputDialog
17-279. Primary vtable for QFileIconProvider
17-280. typeinfo for QFileIconProvider
17-281. libQtGui - Qt4 Dialogs Function Interfaces
17-282. libQtGui - Qt4 Dialogs Deprecated Function Interfaces
17-283. Primary vtable for QDateTimeEdit
17-284. typeinfo for QDateTimeEdit
17-285. Primary vtable for QTimeEdit
17-286. typeinfo for QTimeEdit
17-287. Primary vtable for QDateEdit
17-288. typeinfo for QDateEdit
17-289. libQtGui - Qt4 Date and Time Function Interfaces
17-290. Primary vtable for QRubberBand
17-291. typeinfo for QRubberBand
17-292. Primary vtable for QShortcut
17-293. typeinfo for QShortcut
17-294. Primary vtable for QSplashScreen
17-295. typeinfo for QSplashScreen
17-296. Primary vtable for QUndoCommand
17-297. Primary vtable for QUndoStack
17-298. libQtGui - Qt4 Miscellaneous Function Interfaces
17-299. Primary vtable for QPaintDevice
17-300. typeinfo for QPaintDevice
17-301. Primary vtable for QPixmap
17-302. typeinfo for QPixmap
17-303. Primary vtable for QPicture
17-304. typeinfo for QPicture
17-305. Primary vtable for QBitmap
17-306. typeinfo for QBitmap
17-307. Primary vtable for QPictureFormatInterface
17-308. typeinfo for QPictureFormatInterface
17-309. Primary vtable for QPrinter
17-310. typeinfo for QPrinter
17-311. Primary vtable for QPrintEngine
17-312. typeinfo for QPrintEngine
17-313. libQtGui - Qt4 Paint Device Function Interfaces
17-314. libQtGui - Qt4 Paint Device Deprecated Function Interfaces
17-315. Primary vtable for QImage
17-316. typeinfo for QImage
17-317. Primary vtable for QImageIOHandler
17-318. typeinfo for QImageIOHandler
17-319. Primary vtable for QImageIOHandlerFactoryInterface
17-320. typeinfo for QImageIOHandlerFactoryInterface
17-321. Primary vtable for QMovie
17-322. typeinfo for QMovie
17-323. Primary vtable for QSound
17-324. typeinfo for QSound
17-325. libQtGui - Qt4 Multimedia Function Interfaces
17-326. libQtGui - Qt4 Multimedia Deprecated Function Interfaces
17-327. Primary vtable for QLayoutItem
17-328. typeinfo for QLayoutItem
17-329. Primary vtable for QSpacerItem
17-330. typeinfo for QSpacerItem
17-331. Primary vtable for QWidgetItem
17-332. typeinfo for QWidgetItem
17-333. Primary vtable for QLayout
17-334. typeinfo for QLayout
17-335. Primary vtable for QGridLayout
17-336. typeinfo for QGridLayout
17-337. Primary vtable for QBoxLayout
17-338. typeinfo for QBoxLayout
17-339. Primary vtable for QHBoxLayout
17-340. typeinfo for QHBoxLayout
17-341. Primary vtable for QVBoxLayout
17-342. typeinfo for QVBoxLayout
17-343. Primary vtable for QStackedLayout
17-344. typeinfo for QStackedLayout
17-345. libQtGui - Qt4 Layouts Function Interfaces
17-346. libQtGui - Qt4 Layouts Deprecated Function Interfaces
17-347. Primary vtable for QStyle
17-348. typeinfo for QStyle
17-349. Primary vtable for QCommonStyle
17-350. typeinfo for QCommonStyle
17-351. Primary vtable for QMotifStyle
17-352. typeinfo for QMotifStyle
17-353. Primary vtable for QStyleFactoryInterface
17-354. typeinfo for QStyleFactoryInterface
17-355. Primary vtable for QWindowsStyle
17-356. typeinfo for QWindowsStyle
17-357. Primary vtable for QCDEStyle
17-358. typeinfo for QCDEStyle
17-359. Primary vtable for QPlastiqueStyle
17-360. typeinfo for QPlastiqueStyle
17-361. Primary vtable for QCleanlooksStyle
17-362. libQtGui - Qt4 Style Function Interfaces
17-363. Primary vtable for QTextObject
17-364. typeinfo for QTextObject
17-365. Primary vtable for QTextBlockGroup
17-366. typeinfo for QTextBlockGroup
17-367. Primary vtable for QTextFrameLayoutData
17-368. typeinfo for QTextFrameLayoutData
17-369. Primary vtable for QTextFrame
17-370. typeinfo for QTextFrame
17-371. Primary vtable for QTextBlockUserData
17-372. typeinfo for QTextBlockUserData
17-373. Primary vtable for QTextDocument
17-374. typeinfo for QTextDocument
17-375. Primary vtable for QTextTable
17-376. typeinfo for QTextTable
17-377. Primary vtable for QTextList
17-378. typeinfo for QTextList
17-379. Primary vtable for QTextObjectInterface
17-380. typeinfo for QTextObjectInterface
17-381. Primary vtable for QSyntaxHighlighter
17-382. typeinfo for QSyntaxHighlighter
17-383. libQtGui - Qt4 Text Function Interfaces
17-384. Primary vtable for QClipboard
17-385. typeinfo for QClipboard
17-386. Primary vtable for QSessionManager
17-387. typeinfo for QSessionManager
17-388. Primary vtable for QApplication
17-389. typeinfo for QApplication
17-390. Primary vtable for QAction
17-391. typeinfo for QAction
17-392. Primary vtable for QActionGroup
17-393. typeinfo for QActionGroup
17-394. Primary vtable for QWorkspace
17-395. typeinfo for QWorkspace
17-396. Primary vtable for QSizeGrip
17-397. typeinfo for QSizeGrip
17-398. Primary vtable for QStatusBar
17-399. typeinfo for QStatusBar
17-400. Primary vtable for QToolBar
17-401. typeinfo for QToolBar
17-402. Primary vtable for QWidgetAction
17-403. typeinfo for QWidgetAction
17-404. libQtGui - Qt4 Main Window and Application Function Interfaces
17-405. Primary vtable for QMenu
17-406. typeinfo for QMenu
17-407. Primary vtable for QMenuItem
17-408. typeinfo for QMenuItem
17-409. Primary vtable for QMenuBar
17-410. typeinfo for QMenuBar
17-411. libQtGui - Qt4 Menus Function Interfaces
17-412. Primary vtable for QWidget
17-413. typeinfo for QWidget
17-414. Primary vtable for QFrame
17-415. typeinfo for QFrame
17-416. Primary vtable for QLineEdit
17-417. typeinfo for QLineEdit
17-418. Primary vtable for QSlider
17-419. typeinfo for QSlider
17-420. Primary vtable for QTabBar
17-421. typeinfo for QTabBar
17-422. Primary vtable for QTabWidget
17-423. typeinfo for QTabWidget
17-424. Primary vtable for QListView
17-425. typeinfo for QListView
17-426. Primary vtable for QListWidgetItem
17-427. typeinfo for QListWidgetItem
17-428. Primary vtable for QListWidget
17-429. typeinfo for QListWidget
17-430. Primary vtable for QDesktopWidget
17-431. typeinfo for QDesktopWidget
17-432. Primary vtable for QInputContextFactoryInterface
17-433. typeinfo for QInputContextFactoryInterface
17-434. Primary vtable for QInputContext
17-435. typeinfo for QInputContext
17-436. Primary vtable for QCheckBox
17-437. typeinfo for QCheckBox
17-438. Primary vtable for QSpinBox
17-439. typeinfo for QSpinBox
17-440. Primary vtable for QDoubleSpinBox
17-441. typeinfo for QDoubleSpinBox
17-442. Primary vtable for QLCDNumber
17-443. typeinfo for QLCDNumber
17-444. Primary vtable for QStackedWidget
17-445. typeinfo for QStackedWidget
17-446. Primary vtable for QPushButton
17-447. typeinfo for QPushButton
17-448. Primary vtable for QLabel
17-449. typeinfo for QLabel
17-450. Primary vtable for QDockWidget
17-451. typeinfo for QDockWidget
17-452. Primary vtable for QMainWindow
17-453. typeinfo for QMainWindow
17-454. Primary vtable for QTextEdit
17-455. typeinfo for QTextEdit
17-456. Primary vtable for QProgressBar
17-457. typeinfo for QProgressBar
17-458. Primary vtable for QScrollBar
17-459. typeinfo for QScrollBar
17-460. Primary vtable for QTextBrowser
17-461. typeinfo for QTextBrowser
17-462. Primary vtable for QScrollArea
17-463. typeinfo for QScrollArea
17-464. Primary vtable for QToolButton
17-465. typeinfo for QToolButton
17-466. Primary vtable for QComboBox
17-467. typeinfo for QComboBox
17-468. Primary vtable for QRadioButton
17-469. typeinfo for QRadioButton
17-470. Primary vtable for QFocusFrame
17-471. typeinfo for QFocusFrame
17-472. Primary vtable for QToolBox
17-473. typeinfo for QToolBox
17-474. Primary vtable for QDial
17-475. typeinfo for QDial
17-476. Primary vtable for QSystemTrayIcon
17-477. libQtGui - Qt4 Widgets Function Interfaces
17-478. libQtGui - Qt4 Widgets Deprecated Function Interfaces
17-479. Primary vtable for QMimeSource
17-480. typeinfo for QMimeSource
17-481. Primary vtable for QDrag
17-482. typeinfo for QDrag
17-483. Primary vtable for QDropEvent
17-484. typeinfo for QDropEvent
17-485. Primary vtable for QDragMoveEvent
17-486. typeinfo for QDragMoveEvent
17-487. Primary vtable for QDragEnterEvent
17-488. typeinfo for QDragEnterEvent
17-489. Primary vtable for QDragResponseEvent
17-490. typeinfo for QDragResponseEvent
17-491. Primary vtable for QDragLeaveEvent
17-492. typeinfo for QDragLeaveEvent
17-493. libQtGui - Qt4 Drag and Drop Function Interfaces
17-494. Primary vtable for QIconEngineFactoryInterface
17-495. typeinfo for QIconEngineFactoryInterface
17-496. Primary vtable for QIconEngine
17-497. typeinfo for QIconEngine
17-498. Primary vtable for QPaintEngine
17-499. typeinfo for QPaintEngine
17-500. Primary vtable for QGraphicsEllipseItem
17-501. Primary vtable for QGraphicsItem
17-502. Primary vtable for QGraphicsItemAnimation
17-503. Primary vtable for QGraphicsItemGroup
17-504. Primary vtable for QGraphicsLineItem
17-505. Primary vtable for QGraphicsPathItem
17-506. Primary vtable for QGraphicsPixmapItem
17-507. Primary vtable for QGraphicsPolygonItem
17-508. Primary vtable for QGraphicsRectItem
17-509. Primary vtable for QGraphicsScene
17-510. typeinfo for QGraphicsScene
17-511. Primary vtable for QGraphicsSceneContextMenuEvent
17-512. Primary vtable for QGraphicsSceneDragDropEvent
17-513. Primary vtable for QGraphicsSceneEvent
17-514. Primary vtable for QGraphicsSceneHelpEvent
17-515. Primary vtable for QGraphicsSceneHoverEvent
17-516. Primary vtable for QGraphicsSceneMouseEvent
17-517. Primary vtable for QGraphicsSceneWheelEvent
17-518. Primary vtable for QGraphicsSimpleTextItem
17-519. libQtGui - Qt4 2D Graphics Function Interfaces
17-520. libQtGui - Qt4 2D Graphics Deprecated Function Interfaces
17-521. libQtXml Definition
17-522. Primary vtable for QXmlAttributes
17-523. typeinfo for QXmlAttributes
17-524. Primary vtable for QXmlInputSource
17-525. typeinfo for QXmlInputSource
17-526. Primary vtable for QXmlReader
17-527. typeinfo for QXmlReader
17-528. Primary vtable for QXmlSimpleReader
17-529. typeinfo for QXmlSimpleReader
17-530. Primary vtable for QXmlLocator
17-531. typeinfo for QXmlLocator
17-532. Primary vtable for QXmlContentHandler
17-533. typeinfo for QXmlContentHandler
17-534. Primary vtable for QXmlErrorHandler
17-535. typeinfo for QXmlErrorHandler
17-536. Primary vtable for QXmlDTDHandler
17-537. typeinfo for QXmlDTDHandler
17-538. Primary vtable for QXmlEntityResolver
17-539. typeinfo for QXmlEntityResolver
17-540. Primary vtable for QXmlLexicalHandler
17-541. typeinfo for QXmlLexicalHandler
17-542. Primary vtable for QXmlDeclHandler
17-543. typeinfo for QXmlDeclHandler
17-544. Primary vtable for QXmlDefaultHandler
17-545. typeinfo for QXmlDefaultHandler
17-546. libQtXml - Qt4 XML Function Interfaces
17-547. libQtXml - Qt4 XML Data Interfaces
17-548. libQtOpenGL Definition
17-549. Primary vtable for QGLContext
17-550. typeinfo for QGLContext
17-551. Primary vtable for QGLWidget
17-552. typeinfo for QGLWidget
17-553. Primary vtable for QGLPixelBuffer
17-554. typeinfo for QGLPixelBuffer
17-555. Primary vtable for QGLFramebufferObject
17-556. typeinfo for QGLFramebufferObject
17-557. libQtOpenGL - Qt4 OpenGL Function Interfaces
17-558. libQtOpenGL - Qt4 OpenGL Data Interfaces
17-559. libQtSql Definition
17-560. Primary vtable for QSqlResult
17-561. typeinfo for QSqlResult
17-562. Primary vtable for QSqlDriverFactoryInterface
17-563. typeinfo for QSqlDriverFactoryInterface
17-564. Primary vtable for QSqlDriverPlugin
17-565. typeinfo for QSqlDriverPlugin
17-566. Primary vtable for QSqlDriver
17-567. typeinfo for QSqlDriver
17-568. Primary vtable for QSqlQueryModel
17-569. typeinfo for QSqlQueryModel
17-570. Primary vtable for QSqlTableModel
17-571. typeinfo for QSqlTableModel
17-572. Primary vtable for QSqlRelationalTableModel
17-573. typeinfo for QSqlRelationalTableModel
17-574. libQtSql - Qt4 SQL Function Interfaces
17-575. libQtSql - Qt4 SQL Data Interfaces
17-576. libQtSvg Definition
17-577. Primary vtable for QSvgRenderer
17-578. typeinfo for QSvgRenderer
17-579. Primary vtable for QSvgWidget
17-580. typeinfo for QSvgWidget
17-581. libQtSvg - Qt4 Svg Function Interfaces
17-582. libQtSvg - Qt4 Svg Data Interfaces
17-583. libQtNetwork Definition
17-584. Primary vtable for QHttpHeader
17-585. typeinfo for QHttpHeader
17-586. Primary vtable for QHttpResponseHeader
17-587. typeinfo for QHttpResponseHeader
17-588. Primary vtable for QHttpRequestHeader
17-589. typeinfo for QHttpRequestHeader
17-590. Primary vtable for QHttp
17-591. typeinfo for QHttp
17-592. Primary vtable for QAbstractSocket
17-593. typeinfo for QAbstractSocket
17-594. Primary vtable for QUrlInfo
17-595. typeinfo for QUrlInfo
17-596. Primary vtable for QFtp
17-597. typeinfo for QFtp
17-598. Primary vtable for QTcpServer
17-599. typeinfo for QTcpServer
17-600. Primary vtable for QUdpSocket
17-601. typeinfo for QUdpSocket
17-602. Primary vtable for QTcpSocket
17-603. typeinfo for QTcpSocket
17-604. libQtNetwork - Qt4 Network Function Interfaces
17-605. libQtNetwork - Qt4 Network Deprecated Function Interfaces
17-606. libQtNetwork - Qt4 Network Data Interfaces
18-1. libqt-mt Definition
18-2. Primary vtable for QNetworkProtocolFactoryBase
18-3. typeinfo for QNetworkProtocolFactoryBase
18-4. libqt-mt - Qt Function Interfaces
18-5. libqt-mt - Qt Data Interfaces
18-6. Primary vtable for QPointArray
18-7. typeinfo for QPointArray
18-8. Primary vtable for QBitArray
18-9. typeinfo for QBitArray
18-10. libqt-mt - Qt3 Arrays Function Interfaces
18-11. libqt-mt - Qt3 Arrays Data Interfaces
18-12. Primary vtable for QPtrCollection
18-13. typeinfo for QPtrCollection
18-14. Primary vtable for QObjectList
18-15. typeinfo for QObjectList
18-16. libqt-mt - Qt3 Pointer Collection Function Interfaces
18-17. libqt-mt - Qt3 Pointer Collection Data Interfaces
18-18. libqt-mt - Qt3 Template Library Function Interfaces
18-19. libqt-mt - Qt3 COM Function Interfaces
18-20. libqt-mt - Qt3 COM Data Interfaces
18-21. Primary vtable for QTimer
18-22. typeinfo for QTimer
18-23. Primary vtable for QDateTimeEdit
18-24. typeinfo for QDateTimeEdit
18-25. Primary vtable for QDateTimeEditBase
18-26. typeinfo for QDateTimeEditBase
18-27. Primary vtable for QDateEdit
18-28. typeinfo for QDateEdit
18-29. Primary vtable for QTimeEdit
18-30. typeinfo for QTimeEdit
18-31. libqt-mt - Qt3 Date and Time Function Interfaces
18-32. libqt-mt - Qt3 Date and Time Data Interfaces
18-33. Primary vtable for QCanvasItem
18-34. typeinfo for QCanvasItem
18-35. Primary vtable for QCanvasSprite
18-36. typeinfo for QCanvasSprite
18-37. Primary vtable for QCanvasPolygonalItem
18-38. typeinfo for QCanvasPolygonalItem
18-39. Primary vtable for QCanvasRectangle
18-40. typeinfo for QCanvasRectangle
18-41. Primary vtable for QCanvasView
18-42. typeinfo for QCanvasView
18-43. Primary vtable for QCanvasEllipse
18-44. typeinfo for QCanvasEllipse
18-45. Primary vtable for QCanvasPixmap
18-46. typeinfo for QCanvasPixmap
18-47. Primary vtable for QCanvasLine
18-48. typeinfo for QCanvasLine
18-49. Primary vtable for QCanvasSpline
18-50. typeinfo for QCanvasSpline
18-51. Primary vtable for QCanvasText
18-52. typeinfo for QCanvasText
18-53. Primary vtable for QCanvasPolygon
18-54. typeinfo for QCanvasPolygon
18-55. Primary vtable for QCanvas
18-56. typeinfo for QCanvas
18-57. libqt-mt - Qt3 Canvas Function Interfaces
18-58. libqt-mt - Qt3 Canvas Data Interfaces
18-59. Primary vtable for QImageDrag
18-60. typeinfo for QImageDrag
18-61. Primary vtable for QDragLeaveEvent
18-62. typeinfo for QDragLeaveEvent
18-63. Primary vtable for QColorDrag
18-64. typeinfo for QColorDrag
18-65. Primary vtable for QDragResponseEvent
18-66. typeinfo for QDragResponseEvent
18-67. Primary vtable for QIconDrag
18-68. typeinfo for QIconDrag
18-69. Primary vtable for QUriDrag
18-70. typeinfo for QUriDrag
18-71. Primary vtable for QDropSite
18-72. typeinfo for QDropSite
18-73. Primary vtable for QStoredDrag
18-74. typeinfo for QStoredDrag
18-75. Primary vtable for QTextDrag
18-76. typeinfo for QTextDrag
18-77. Primary vtable for QDragEnterEvent
18-78. typeinfo for QDragEnterEvent
18-79. Primary vtable for QDragMoveEvent
18-80. typeinfo for QDragMoveEvent
18-81. Primary vtable for QDropEvent
18-82. typeinfo for QDropEvent
18-83. Primary vtable for QDragObject
18-84. typeinfo for QDragObject
18-85. Primary vtable for QIconDragItem
18-86. typeinfo for QIconDragItem
18-87. libqt-mt - Qt3 Drag and Drop Function Interfaces
18-88. libqt-mt - Qt3 Drag and Drop Data Interfaces
18-89. Primary vtable for QContextMenuEvent
18-90. typeinfo for QContextMenuEvent
18-91. Primary vtable for QIMEvent
18-92. typeinfo for QIMEvent
18-93. Primary vtable for QTimerEvent
18-94. typeinfo for QTimerEvent
18-95. Primary vtable for QKeyEvent
18-96. typeinfo for QKeyEvent
18-97. Primary vtable for QCustomEvent
18-98. typeinfo for QCustomEvent
18-99. Primary vtable for QEventLoop
18-100. typeinfo for QEventLoop
18-101. Primary vtable for QHideEvent
18-102. typeinfo for QHideEvent
18-103. Primary vtable for QResizeEvent
18-104. typeinfo for QResizeEvent
18-105. Primary vtable for QTabletEvent
18-106. typeinfo for QTabletEvent
18-107. Primary vtable for QFocusEvent
18-108. typeinfo for QFocusEvent
18-109. Primary vtable for QMouseEvent
18-110. typeinfo for QMouseEvent
18-111. Primary vtable for QChildEvent
18-112. typeinfo for QChildEvent
18-113. Primary vtable for QEvent
18-114. typeinfo for QEvent
18-115. Primary vtable for QIMComposeEvent
18-116. typeinfo for QIMComposeEvent
18-117. Primary vtable for QShowEvent
18-118. typeinfo for QShowEvent
18-119. Primary vtable for QPaintEvent
18-120. typeinfo for QPaintEvent
18-121. Primary vtable for QWheelEvent
18-122. typeinfo for QWheelEvent
18-123. Primary vtable for QMoveEvent
18-124. typeinfo for QMoveEvent
18-125. Primary vtable for QCloseEvent
18-126. typeinfo for QCloseEvent
18-127. libqt-mt - Qt3 Events Function Interfaces
18-128. libqt-mt - Qt3 Events Data Interfaces
18-129. Primary vtable for QUtf8Codec
18-130. typeinfo for QUtf8Codec
18-131. Primary vtable for QTranslator
18-132. typeinfo for QTranslator
18-133. Primary vtable for QGb18030Codec
18-134. typeinfo for QGb18030Codec
18-135. Primary vtable for QGbkCodec
18-136. typeinfo for QGbkCodec
18-137. Primary vtable for QUtf16Codec
18-138. typeinfo for QUtf16Codec
18-139. Primary vtable for QEucKrCodec
18-140. typeinfo for QEucKrCodec
18-141. Primary vtable for QJisCodec
18-142. typeinfo for QJisCodec
18-143. Primary vtable for QTextEncoder
18-144. typeinfo for QTextEncoder
18-145. Primary vtable for QTsciiCodec
18-146. typeinfo for QTsciiCodec
18-147. Primary vtable for QSjisCodec
18-148. typeinfo for QSjisCodec
18-149. Primary vtable for QEucJpCodec
18-150. typeinfo for QEucJpCodec
18-151. Primary vtable for QGb2312Codec
18-152. typeinfo for QGb2312Codec
18-153. Primary vtable for QHebrewCodec
18-154. typeinfo for QHebrewCodec
18-155. Primary vtable for QTextDecoder
18-156. typeinfo for QTextDecoder
18-157. Primary vtable for QTextCodec
18-158. typeinfo for QTextCodec
18-159. Primary vtable for QJpUnicodeConv
18-160. typeinfo for QJpUnicodeConv
18-161. libqt-mt - Qt3 Internationalization Function Interfaces
18-162. libqt-mt - Qt3 Internationalization Data Interfaces
18-163. Primary vtable for QDataSource
18-164. typeinfo for QDataSource
18-165. Primary vtable for QProcess
18-166. typeinfo for QProcess
18-167. Primary vtable for QDataPump
18-168. typeinfo for QDataPump
18-169. Primary vtable for QFile
18-170. typeinfo for QFile
18-171. Primary vtable for QBuffer
18-172. typeinfo for QBuffer
18-173. Primary vtable for QClipboard
18-174. typeinfo for QClipboard
18-175. Primary vtable for QAsyncIO
18-176. typeinfo for QAsyncIO
18-177. Primary vtable for QSignal
18-178. typeinfo for QSignal
18-179. Primary vtable for QDataSink
18-180. typeinfo for QDataSink
18-181. Primary vtable for QDir
18-182. typeinfo for QDir
18-183. Primary vtable for QTextOStream
18-184. typeinfo for QTextOStream
18-185. Primary vtable for QTextStream
18-186. typeinfo for QTextStream
18-187. Primary vtable for QSignalMapper
18-188. typeinfo for QSignalMapper
18-189. Primary vtable for QIODeviceSource
18-190. typeinfo for QIODeviceSource
18-191. Primary vtable for QIODevice
18-192. typeinfo for QIODevice
18-193. Primary vtable for QDataStream
18-194. typeinfo for QDataStream
18-195. libqt-mt - Qt3 Input/Output Function Interfaces
18-196. libqt-mt - Qt3 Input/Output Data Interfaces
18-197. Primary vtable for QImageFormat
18-198. typeinfo for QImageFormat
18-199. Primary vtable for QSound
18-200. typeinfo for QSound
18-201. Primary vtable for QImageConsumer
18-202. typeinfo for QImageConsumer
18-203. Primary vtable for QImageFormatType
18-204. typeinfo for QImageFormatType
18-205. libqt-mt - Qt3 Multimedia Function Interfaces
18-206. libqt-mt - Qt3 Multimedia Data Interfaces
18-207. Primary vtable for QMimeSourceFactory
18-208. typeinfo for QMimeSourceFactory
18-209. Primary vtable for QUrlOperator
18-210. typeinfo for QUrlOperator
18-211. Primary vtable for QSocket
18-212. typeinfo for QSocket
18-213. Primary vtable for QSocketNotifier
18-214. typeinfo for QSocketNotifier
18-215. Primary vtable for QNetworkProtocol
18-216. typeinfo for QNetworkProtocol
18-217. Primary vtable for QUrl
18-218. typeinfo for QUrl
18-219. Primary vtable for QSocketDevice
18-220. typeinfo for QSocketDevice
18-221. Primary vtable for QHttpResponseHeader
18-222. typeinfo for QHttpResponseHeader
18-223. Primary vtable for QServerSocket
18-224. typeinfo for QServerSocket
18-225. Primary vtable for QUrlInfo
18-226. typeinfo for QUrlInfo
18-227. Primary vtable for QNetworkOperation
18-228. typeinfo for QNetworkOperation
18-229. Primary vtable for QHttp
18-230. typeinfo for QHttp
18-231. Primary vtable for QMimeSource
18-232. typeinfo for QMimeSource
18-233. Primary vtable for QDns
18-234. typeinfo for QDns
18-235. Primary vtable for QHttpRequestHeader
18-236. typeinfo for QHttpRequestHeader
18-237. Primary vtable for QHttpHeader
18-238. typeinfo for QHttpHeader
18-239. Primary vtable for QLocalFs
18-240. typeinfo for QLocalFs
18-241. Primary vtable for QConnectionList
18-242. typeinfo for QConnectionList
18-243. Primary vtable for QHostAddress
18-244. typeinfo for QHostAddress
18-245. Primary vtable for QFtp
18-246. typeinfo for QFtp
18-247. libqt-mt - Qt3 Network Function Interfaces
18-248. libqt-mt - Qt3 Network Data Interfaces
18-249. Primary vtable for QObjectCleanupHandler
18-250. typeinfo for QObjectCleanupHandler
18-251. Primary vtable for QObjectUserData
18-252. typeinfo for QObjectUserData
18-253. Primary vtable for QObject
18-254. typeinfo for QObject
18-255. Primary vtable for QMetaObject
18-256. typeinfo for QMetaObject
18-257. Primary vtable for QGuardedPtrPrivate
18-258. typeinfo for QGuardedPtrPrivate
18-259. libqt-mt - Qt3 Object Model Function Interfaces
18-260. libqt-mt - Qt3 Object Model Data Interfaces
18-261. libqt-mt - Qt3 OpenGL Function Interfaces
18-262. libqt-mt - Qt3 OpenGL Data Interfaces
18-263. Primary vtable for QPaintDevice
18-264. typeinfo for QPaintDevice
18-265. Primary vtable for QBitmap
18-266. typeinfo for QBitmap
18-267. Primary vtable for QPicture
18-268. typeinfo for QPicture
18-269. Primary vtable for QPixmap
18-270. typeinfo for QPixmap
18-271. Primary vtable for QPrinter
18-272. typeinfo for QPrinter
18-273. libqt-mt - Qt3 Paint Device Function Interfaces
18-274. libqt-mt - Qt3 Paint Device Data Interfaces
18-275. Primary vtable for QSqlResult
18-276. typeinfo for QSqlResult
18-277. Primary vtable for QSqlSelectCursor
18-278. typeinfo for QSqlSelectCursor
18-279. Primary vtable for QSqlDriver
18-280. typeinfo for QSqlDriver
18-281. Primary vtable for QSqlPropertyMap
18-282. typeinfo for QSqlPropertyMap
18-283. Primary vtable for QSqlQuery
18-284. typeinfo for QSqlQuery
18-285. Primary vtable for QSqlRecord
18-286. typeinfo for QSqlRecord
18-287. Primary vtable for QSqlDatabase
18-288. typeinfo for QSqlDatabase
18-289. Primary vtable for QEditorFactory
18-290. typeinfo for QEditorFactory
18-291. Primary vtable for QSqlDriverPlugin
18-292. typeinfo for QSqlDriverPlugin
18-293. Primary vtable for QSqlResultShared
18-294. typeinfo for QSqlResultShared
18-295. Primary vtable for QSqlError
18-296. typeinfo for QSqlError
18-297. Primary vtable for QSqlForm
18-298. typeinfo for QSqlForm
18-299. Primary vtable for QSqlEditorFactory
18-300. typeinfo for QSqlEditorFactory
18-301. Primary vtable for QSqlCursor
18-302. typeinfo for QSqlCursor
18-303. Primary vtable for QSqlFieldInfo
18-304. typeinfo for QSqlFieldInfo
18-305. Primary vtable for QSqlIndex
18-306. typeinfo for QSqlIndex
18-307. Primary vtable for QSqlField
18-308. typeinfo for QSqlField
18-309. libqt-mt - Qt3 SQL Function Interfaces
18-310. libqt-mt - Qt3 SQL Data Interfaces
18-311. Primary vtable for QCommonStyle
18-312. typeinfo for QCommonStyle
18-313. Primary vtable for QStyle
18-314. typeinfo for QStyle
18-315. libqt-mt - Qt3 Style Function Interfaces
18-316. libqt-mt - Qt3 Style Data Interfaces
18-317. Primary vtable for QSyntaxHighlighter
18-318. typeinfo for QSyntaxHighlighter
18-319. Primary vtable for QStyleSheet
18-320. typeinfo for QStyleSheet
18-321. Primary vtable for QStrList
18-322. typeinfo for QStrList
18-323. Primary vtable for QCString
18-324. typeinfo for QCString
18-325. libqt-mt - Qt3 Text Function Interfaces
18-326. libqt-mt - Qt3 Text Data Interfaces
18-327. Primary vtable for QWaitCondition
18-328. typeinfo for QWaitCondition
18-329. Primary vtable for QMutex
18-330. typeinfo for QMutex
18-331. Primary vtable for QThread
18-332. typeinfo for QThread
18-333. Primary vtable for QSemaphore
18-334. typeinfo for QSemaphore
18-335. libqt-mt - Qt3 Threading Function Interfaces
18-336. libqt-mt - Qt3 Threading Data Interfaces
18-337. Primary vtable for QToolBar
18-338. typeinfo for QToolBar
18-339. Primary vtable for QActionGroup
18-340. typeinfo for QActionGroup
18-341. Primary vtable for QStatusBar
18-342. typeinfo for QStatusBar
18-343. Primary vtable for QSizeGrip
18-344. typeinfo for QSizeGrip
18-345. Primary vtable for QSessionManager
18-346. typeinfo for QSessionManager
18-347. Primary vtable for QApplication
18-348. typeinfo for QApplication
18-349. Primary vtable for QWorkspace
18-350. typeinfo for QWorkspace
18-351. Primary vtable for QAction
18-352. typeinfo for QAction
18-353. libqt-mt - Qt3 Main Window and Application Function Interfaces
18-354. libqt-mt - Qt3 Main Window and Application Data Interfaces
18-355. Primary vtable for QFrame
18-356. typeinfo for QFrame
18-357. Primary vtable for QScrollView
18-358. typeinfo for QScrollView
18-359. Primary vtable for QTextBrowser
18-360. typeinfo for QTextBrowser
18-361. Primary vtable for QLineEdit
18-362. typeinfo for QLineEdit
18-363. Primary vtable for QListBoxText
18-364. typeinfo for QListBoxText
18-365. Primary vtable for QLCDNumber
18-366. typeinfo for QLCDNumber
18-367. Primary vtable for QGridView
18-368. typeinfo for QGridView
18-369. Primary vtable for QButton
18-370. typeinfo for QButton
18-371. Primary vtable for QTabWidget
18-372. typeinfo for QTabWidget
18-373. Primary vtable for QTextView
18-374. typeinfo for QTextView
18-375. Primary vtable for QTab
18-376. typeinfo for QTab
18-377. Primary vtable for QDial
18-378. typeinfo for QDial
18-379. Primary vtable for QListView
18-380. typeinfo for QListView
18-381. Primary vtable for QDesktopWidget
18-382. typeinfo for QDesktopWidget
18-383. Primary vtable for QListBoxItem
18-384. typeinfo for QListBoxItem
18-385. Primary vtable for QScrollBar
18-386. typeinfo for QScrollBar
18-387. Primary vtable for QIconFactory
18-388. typeinfo for QIconFactory
18-389. Primary vtable for QSpinBox
18-390. typeinfo for QSpinBox
18-391. Primary vtable for QLabel
18-392. typeinfo for QLabel
18-393. Primary vtable for QListBoxPixmap
18-394. typeinfo for QListBoxPixmap
18-395. Primary vtable for QWhatsThis
18-396. typeinfo for QWhatsThis
18-397. Primary vtable for QMultiLineEdit
18-398. typeinfo for QMultiLineEdit
18-399. Primary vtable for QListBox
18-400. typeinfo for QListBox
18-401. Primary vtable for QComboBox
18-402. typeinfo for QComboBox
18-403. Primary vtable for QRadioButton
18-404. typeinfo for QRadioButton
18-405. Primary vtable for QSlider
18-406. typeinfo for QSlider
18-407. Primary vtable for QMainWindow
18-408. typeinfo for QMainWindow
18-409. Primary vtable for QToolButton
18-410. typeinfo for QToolButton
18-411. Primary vtable for QWidgetIntDict
18-412. typeinfo for QWidgetIntDict
18-413. Primary vtable for QTabBar
18-414. typeinfo for QTabBar
18-415. Primary vtable for QToolTip
18-416. typeinfo for QToolTip
18-417. Primary vtable for QCheckBox
18-418. typeinfo for QCheckBox
18-419. Primary vtable for QDockWindow
18-420. typeinfo for QDockWindow
18-421. Primary vtable for QSpinWidget
18-422. typeinfo for QSpinWidget
18-423. Primary vtable for QToolBox
18-424. typeinfo for QToolBox
18-425. Primary vtable for QProgressBar
18-426. typeinfo for QProgressBar
18-427. Primary vtable for QIconViewItem
18-428. typeinfo for QIconViewItem
18-429. Primary vtable for QCheckListItem
18-430. typeinfo for QCheckListItem
18-431. Primary vtable for QDockArea
18-432. typeinfo for QDockArea
18-433. Primary vtable for QListViewItem
18-434. typeinfo for QListViewItem
18-435. Primary vtable for QIconView
18-436. typeinfo for QIconView
18-437. Primary vtable for QWidget
18-438. typeinfo for QWidget
18-439. Primary vtable for QToolTipGroup
18-440. typeinfo for QToolTipGroup
18-441. Primary vtable for QPushButton
18-442. typeinfo for QPushButton
18-443. Primary vtable for QWidgetList
18-444. typeinfo for QWidgetList
18-445. Primary vtable for QDataView
18-446. typeinfo for QDataView
18-447. Primary vtable for QDataBrowser
18-448. typeinfo for QDataBrowser
18-449. Primary vtable for QTextEdit
18-450. typeinfo for QTextEdit
18-451. libqt-mt - Qt3 Widgets Function Interfaces
18-452. libqt-mt - Qt3 Widgets Data Interfaces
18-453. Primary vtable for QPopupMenu
18-454. typeinfo for QPopupMenu
18-455. Primary vtable for QMenuBar
18-456. typeinfo for QMenuBar
18-457. Primary vtable for QCustomMenuItem
18-458. typeinfo for QCustomMenuItem
18-459. Primary vtable for QMenuData
18-460. typeinfo for QMenuData
18-461. libqt-mt - Qt3 Menus Function Interfaces
18-462. libqt-mt - Qt3 Menus Data Interfaces
18-463. Primary vtable for QHBox
18-464. typeinfo for QHBox
18-465. Primary vtable for QSplitter
18-466. typeinfo for QSplitter
18-467. Primary vtable for QVBox
18-468. typeinfo for QVBox
18-469. Primary vtable for QGroupBox
18-470. typeinfo for QGroupBox
18-471. Primary vtable for QHGroupBox
18-472. typeinfo for QHGroupBox
18-473. Primary vtable for QHButtonGroup
18-474. typeinfo for QHButtonGroup
18-475. Primary vtable for QWidgetStack
18-476. typeinfo for QWidgetStack
18-477. Primary vtable for QButtonGroup
18-478. typeinfo for QButtonGroup
18-479. Primary vtable for QVButtonGroup
18-480. typeinfo for QVButtonGroup
18-481. Primary vtable for QGrid
18-482. typeinfo for QGrid
18-483. Primary vtable for QVGroupBox
18-484. typeinfo for QVGroupBox
18-485. libqt-mt - Qt3 Organizers Function Interfaces
18-486. libqt-mt - Qt3 Organizers Data Interfaces
18-487. Primary vtable for QDockAreaLayout
18-488. typeinfo for QDockAreaLayout
18-489. Primary vtable for QBoxLayout
18-490. typeinfo for QBoxLayout
18-491. Primary vtable for QLayout
18-492. typeinfo for QLayout
18-493. Primary vtable for QHBoxLayout
18-494. typeinfo for QHBoxLayout
18-495. Primary vtable for QVBoxLayout
18-496. typeinfo for QVBoxLayout
18-497. Primary vtable for QGLayoutIterator
18-498. typeinfo for QGLayoutIterator
18-499. Primary vtable for QWidgetItem
18-500. typeinfo for QWidgetItem
18-501. Primary vtable for QGridLayout
18-502. typeinfo for QGridLayout
18-503. Primary vtable for QSpacerItem
18-504. typeinfo for QSpacerItem
18-505. Primary vtable for QLayoutItem
18-506. typeinfo for QLayoutItem
18-507. libqt-mt - Qt3 Layouts Function Interfaces
18-508. libqt-mt - Qt3 Layouts Data Interfaces
18-509. Primary vtable for QProgressDialog
18-510. typeinfo for QProgressDialog
18-511. Primary vtable for QWizard
18-512. typeinfo for QWizard
18-513. Primary vtable for QSemiModal
18-514. typeinfo for QSemiModal
18-515. Primary vtable for QFileDialog
18-516. typeinfo for QFileDialog
18-517. Primary vtable for QErrorMessage
18-518. typeinfo for QErrorMessage
18-519. Primary vtable for QFilePreview
18-520. typeinfo for QFilePreview
18-521. Primary vtable for QMessageBox
18-522. typeinfo for QMessageBox
18-523. Primary vtable for QDialog
18-524. typeinfo for QDialog
18-525. Primary vtable for QFontDialog
18-526. typeinfo for QFontDialog
18-527. Primary vtable for QPrintDialog
18-528. typeinfo for QPrintDialog
18-529. Primary vtable for QColorDialog
18-530. typeinfo for QColorDialog
18-531. Primary vtable for QInputDialog
18-532. typeinfo for QInputDialog
18-533. Primary vtable for QTabDialog
18-534. typeinfo for QTabDialog
18-535. Primary vtable for QFileIconProvider
18-536. typeinfo for QFileIconProvider
18-537. libqt-mt - Qt3 Dialogs Function Interfaces
18-538. libqt-mt - Qt3 Dialogs Data Interfaces
18-539. Primary vtable for QTableItem
18-540. typeinfo for QTableItem
18-541. Primary vtable for QCheckTableItem
18-542. typeinfo for QCheckTableItem
18-543. Primary vtable for QHeader
18-544. typeinfo for QHeader
18-545. Primary vtable for QDataTable
18-546. typeinfo for QDataTable
18-547. Primary vtable for QComboTableItem
18-548. typeinfo for QComboTableItem
18-549. Primary vtable for QTable
18-550. typeinfo for QTable
18-551. libqt-mt - Qt3 Tables Function Interfaces
18-552. libqt-mt - Qt3 Tables Data Interfaces
18-553. Primary vtable for QGPlugin
18-554. typeinfo for QGPlugin
18-555. Primary vtable for QStylePlugin
18-556. typeinfo for QStylePlugin
18-557. Primary vtable for QTextCodecPlugin
18-558. typeinfo for QTextCodecPlugin
18-559. Primary vtable for QWidgetPlugin
18-560. typeinfo for QWidgetPlugin
18-561. Primary vtable for QLibrary
18-562. typeinfo for QLibrary
18-563. Primary vtable for QImageFormatPlugin
18-564. typeinfo for QImageFormatPlugin
18-565. libqt-mt - Qt3 Plugins Function Interfaces
18-566. libqt-mt - Qt3 Plugins Data Interfaces
18-567. Primary vtable for QXmlEntityResolver
18-568. typeinfo for QXmlEntityResolver
18-569. Primary vtable for QXmlLocator
18-570. typeinfo for QXmlLocator
18-571. Primary vtable for QDomElement
18-572. typeinfo for QDomElement
18-573. Primary vtable for QDomImplementation
18-574. typeinfo for QDomImplementation
18-575. Primary vtable for QDomDocumentType
18-576. typeinfo for QDomDocumentType
18-577. Primary vtable for QDomDocument
18-578. typeinfo for QDomDocument
18-579. Primary vtable for QDomAttr
18-580. typeinfo for QDomAttr
18-581. Primary vtable for QDomNodeList
18-582. typeinfo for QDomNodeList
18-583. Primary vtable for QXmlReader
18-584. typeinfo for QXmlReader
18-585. Primary vtable for QDomEntity
18-586. typeinfo for QDomEntity
18-587. Primary vtable for QXmlDeclHandler
18-588. typeinfo for QXmlDeclHandler
18-589. Primary vtable for QDomNode
18-590. typeinfo for QDomNode
18-591. Primary vtable for QDomText
18-592. typeinfo for QDomText
18-593. Primary vtable for QDomCharacterData
18-594. typeinfo for QDomCharacterData
18-595. Primary vtable for QDomComment
18-596. typeinfo for QDomComment
18-597. Primary vtable for QXmlDefaultHandler
18-598. typeinfo for QXmlDefaultHandler
18-599. Primary vtable for QDomNotation
18-600. typeinfo for QDomNotation
18-601. Primary vtable for QXmlSimpleReader
18-602. typeinfo for QXmlSimpleReader
18-603. Primary vtable for QXmlLexicalHandler
18-604. typeinfo for QXmlLexicalHandler
18-605. Primary vtable for QXmlAttributes
18-606. typeinfo for QXmlAttributes
18-607. Primary vtable for QDomProcessingInstruction
18-608. typeinfo for QDomProcessingInstruction
18-609. Primary vtable for QXmlContentHandler
18-610. typeinfo for QXmlContentHandler
18-611. Primary vtable for QDomEntityReference
18-612. typeinfo for QDomEntityReference
18-613. Primary vtable for QDomCDATASection
18-614. typeinfo for QDomCDATASection
18-615. Primary vtable for QXmlDTDHandler
18-616. typeinfo for QXmlDTDHandler
18-617. Primary vtable for QXmlInputSource
18-618. typeinfo for QXmlInputSource
18-619. Primary vtable for QXmlErrorHandler
18-620. typeinfo for QXmlErrorHandler
18-621. Primary vtable for QDomDocumentFragment
18-622. typeinfo for QDomDocumentFragment
18-623. libqt-mt - Qt3 XML Function Interfaces
18-624. libqt-mt - Qt3 XML Data Interfaces
18-625. libqt-mt - Qt3 Namespace Data Interfaces
18-626. libqt-mt - Qt3 Colors Function Interfaces
18-627. libqt-mt - Qt3 Colors Data Interfaces
18-628. libqt-mt - Qt3 Fonts Function Interfaces
18-629. Primary vtable for QIconSet
18-630. typeinfo for QIconSet
18-631. libqt-mt - Qt3 2D Graphics Function Interfaces
18-632. libqt-mt - Qt3 2D Graphics Data Interfaces
18-633. Primary vtable for QRegExpValidator
18-634. typeinfo for QRegExpValidator
18-635. Primary vtable for QIntValidator
18-636. typeinfo for QIntValidator
18-637. Primary vtable for QValidator
18-638. typeinfo for QValidator
18-639. Primary vtable for QDoubleValidator
18-640. typeinfo for QDoubleValidator
18-641. libqt-mt - Qt3 Validators Function Interfaces
18-642. libqt-mt - Qt3 Validators Data Interfaces
18-643. Primary vtable for QGVector
18-644. typeinfo for QGVector
18-645. Primary vtable for QGList
18-646. typeinfo for QGList
18-647. Primary vtable for QPolygonScanner
18-648. typeinfo for QPolygonScanner
18-649. Primary vtable for QGCache
18-650. typeinfo for QGCache
18-651. Primary vtable for QGArray
18-652. typeinfo for QGArray
18-653. Primary vtable for QSignalVec
18-654. typeinfo for QSignalVec
18-655. Primary vtable for QGDict
18-656. typeinfo for QGDict
18-657. libqt-mt - Qt3 Internals Function Interfaces
18-658. libqt-mt - Qt3 Internals Data Interfaces
18-659. Primary vtable for QRangeControl
18-660. typeinfo for QRangeControl
18-661. Primary vtable for QSplashScreen
18-662. typeinfo for QSplashScreen
18-663. Primary vtable for QAccel
18-664. typeinfo for QAccel
18-665. libqt-mt - Qt3 Miscellaneous Function Interfaces
18-666. libqt-mt - Qt3 Miscellaneous Data Interfaces
19-1. libxml2 Definition
19-2. libxml2 - The XML C parser and toolkit for XML processing Function Interfaces
19-3. libxml2 - The XML C parser and toolkit for XML processing Data Interfaces
20-1. libasound Definition
20-2. libasound - ALSA Configuration Interface Function Interfaces
20-3. libasound - ALSA Configuration Interface Data Interfaces
20-4. libasound - ALSA Control Interface Function Interfaces
20-5. libasound - ALSA Global defines and functions Function Interfaces
20-6. libasound - ALSA Hardware Dependant Interface Function Interfaces
20-7. libasound - ALSA High level Control Interface Function Interfaces
20-8. libasound - ALSA Input Interface Function Interfaces
20-9. libasound - ALSA MIDI Sequencer Function Interfaces
20-10. libasound - ALSA Mixer Interface Function Interfaces
20-11. libasound - ALSA Output Interface Function Interfaces
20-12. libasound - ALSA PCM Interface - General Functions Function Interfaces
20-13. libasound - ALSA PCM Interface - General Functions Deprecated Function Interfaces
20-14. libasound - ALSA PCM Interface - Access Mask Functions Function Interfaces
20-15. libasound - ALSA PCM Interface - Debug Functions Function Interfaces
20-16. libasound - ALSA PCM Interface - Description Functions Function Interfaces
20-17. libasound - ALSA PCM Interface - Direct Access (MMAP) Functions Function Interfaces
20-18. libasound - ALSA PCM Interface - Format Mask Functions Function Interfaces
20-19. libasound - ALSA PCM Interface - Hardware Parameters Function Interfaces
20-20. libasound - ALSA PCM Interface - Helper Functions Function Interfaces
20-21. libasound - ALSA PCM Interface - Software Parameters Function Interfaces
20-22. libasound - ALSA PCM Interface - Software Parameters Deprecated Function Interfaces
20-23. libasound - ALSA PCM Interface - Status Functions Function Interfaces
20-24. libasound - ALSA PCM Interface - Stream Information Function Interfaces
20-25. libasound - ALSA Sequencer Event Type Checks Data Interfaces
20-26. libasound - ALSA Error Handling Function Interfaces
20-27. libasound - ALSA RawMidi Interface Function Interfaces
20-28. libasound - ALSA Sequencer Client Interface Function Interfaces
20-29. libasound - ALSA Sequencer Event API Function Interfaces
20-30. libasound - ALSA Sequencer Event API Deprecated Function Interfaces
20-31. libasound - ALSA Sequencer Middle Level Interface Function Interfaces
20-32. libasound - ALSA Sequencer Port Interface Function Interfaces
20-33. libasound - ALSA Sequencer Port Subscription Function Interfaces
20-34. libasound - ALSA Sequencer Queue Interface Function Interfaces
20-35. libasound - ALSA Sequencer event - MIDI byte stream coder Function Interfaces
20-36. libasound - ALSA Simple Mixer Interface Function Interfaces
20-37. libasound - ALSA Timer Interface Function Interfaces
22-1. Commands And Utilities

Foreword

This is version 4.1 of the Linux Standard Base Desktop Specification. This specification is one of a series of volumes under the collective title Linux Standard Base:

Note that the Core, C++ and Desktop volumes consist of a generic volume augmented by an architecture-specific volume.


Status of this Document

This is a released specification. Other documents may supersede or augment this specification. A list of current Linux Standard Base (LSB) specifications is available at http://refspecs.linuxfoundation.org.

If you wish to make comments regarding this document in a manner that is tracked by the LSB project, please submit them using our public bug database at http://bugs.linuxbase.org. Please enter your feedback, carefully indicating the title of the section for which you are submitting feedback, and the volume and version of the specification where you found the problem, quoting the incorrect text if appropriate. If you are suggesting a new feature, please indicate what the problem you are trying to solve is. That is more important than the solution, in fact.

If you do not have or wish to create a bug database account then you can also e-mail feedback to (subscribe, archives), and arrangements will be made to transpose the comments to our public bug database.


Introduction

The LSB defines a binary interface for application programs that are compiled and packaged for LSB-conforming implementations on many different hardware architectures. A binary specification must include information specific to the computer processor architecture for which it is intended. To avoid the complexity of conditional descriptions, the specification has instead been divided into generic parts which are augmented by one of several architecture-specific parts, depending on the target processor architecture; the generic part will indicate when reference must be made to the architecture part, and vice versa.

This document should be used in conjunction with the documents it references. This document enumerates the system components it includes, but descriptions of those components may be included entirely or partly in this document, partly in other documents, or entirely in other reference documents. For example, the section that describes system service routines includes a list of the system routines supported in this interface, formal declarations of the data structures they use that are visible to applications, and a pointer to the underlying referenced specification for information about the syntax and semantics of each call. Only those routines not described in standards referenced by this document, or extensions to those standards, are described in the detail. Information referenced in this way is as much a part of this document as is the information explicitly included here.

The specification carries a version number of either the form x.y or x.y.z. This version number carries the following meaning:

  1. The first number (x) is the major version number. Versions sharing the same major version number shall be compatible in a backwards direction; that is, a newer version shall be compatible with an older version. Any deletion of a library results in a new major version number. Interfaces marked as deprecated may be removed from the specification at a major version change.

  2. The second number (y) is the minor version number. Libraries and individual interfaces may be added, but not removed. Interfaces may be marked as deprecated at a minor version change. Other minor changes may be permitted at the discretion of the LSB workgroup.

  3. The third number (z), if present, is the editorial level. Only editorial changes should be included in such versions.

Since this specification is a descriptive Application Binary Interface, and not a source level API specification, it is not possible to make a guarantee of 100% backward compatibility between major releases. However, it is the intent that those parts of the binary interface that are visible in the source level API will remain backward compatible from version to version, except where a feature marked as "Deprecated" in one release may be removed from a future release. Implementors are strongly encouraged to make use of symbol versioning to permit simultaneous support of applications conforming to different releases of this specification.

LSB is a trademark of the Linux Foundation. Developers of applications or implementations interested in using the trademark should see the Linux Foundation Certification Policy for details.


Chapter 1. Scope

The LSB Desktop module defines components found on an LSB conforming system.


Chapter 2. References

2.1. Normative References

The specifications listed below are referenced in whole or in part by the LSB Desktop specification. Such references may be normative or informative; a reference to specification shall only be considered normative if it is explicitly cited as such. The LSB Desktop specification may make normative references to a portion of these specifications (that is, to define a specific function or group of functions); in such cases, only the explicitly referenced portion of the specification is to be considered normative.

Table 2-1. Normative References

NameTitleURL
ATK 1.10.3 Reference ManualATK 1.10.3 Reference Manualhttp://library.gnome.org/devel/atk/1.10/index.html
Double Buffer Extension LibraryDouble Buffer Extension Library - Protocol Version 1.0http://refspecs.linux-foundation.org/X11/dbelib.pdf
Fontconfig Developers ReferenceFontconfig Developers Reference, Version 2.6.0http://refspecs.linuxfoundation.org/fontconfig-2.6.0
Gdk 2.10.14 Reference ManualGdk 2.10.14 Reference Manualhttp://library.gnome.org/devel/gdk/2.10/
Gdk-pixbuf 2.8.20 Reference ManualGtk-pixbuf 2.8.20 Reference Manualhttp://library.gnome.org/devel/gdk-pixbuf/2.8/index.html
Glib 2.12.13 Reference ManualGlib 2.12.13 Reference Manualhttp://library.gnome.org/devel/glib/2.12/
Gobject 2.12.13 Reference ManualGobject 2.12.13 Reference Manualhttp://library.gnome.org/devel/gobject/2.12/
Gtk+ 2.10.14 Reference ManualGtk+ 2.10.14 Reference Manualhttp://library.gnome.org/devel/gtk/2.10/
ISO C (1999)ISO/IEC 9899: 1999, Programming Languages --C
ISO/IEC 14882: 2003 C++ LanguageISO/IEC 14882: 2003 Programming languages --C++
Itanium™ C++ ABIItanium™ C++ ABI (Revision 1.86)http://refspecs.linuxfoundation.org/cxxabi-1.86.html
OpenGLThe OpenGLŪ Graphics System: A Specification (Version 1.2.1)http://www.opengl.org/documentation/specs/version1.2/OpenGL_spec_1.2.1.pdf
OpenGL ABIOpenGLŪ Application Binary Interface for Linuxhttp://www.opengl.org/registry/ABI/
OpenGL ExtensionsOpenGLŪ Graphics with the X Window SystemŪ (Version 1.3)http://opengl.org/documentation/specs/glx/glx1.3.pdf
OpenGL UtilitiesThe OpenGL Graphics System Utility Library (Version 1.3)http://www.opengl.org/documentation/specs/glu/glu1_3.pdf
Pango 1.10.4 Reference ManualPango 1.10.4 Reference Manualhttp://library.gnome.org/devel/pango/1.10/index.html
POSIX 1003.1-2001 (ISO/IEC 9945-2003)

ISO/IEC 9945-1:2003 Information technology -- Portable Operating System Interface (POSIX) -- Part 1: Base Definitions

ISO/IEC 9945-2:2003 Information technology -- Portable Operating System Interface (POSIX) -- Part 2: System Interfaces

ISO/IEC 9945-3:2003 Information technology -- Portable Operating System Interface (POSIX) -- Part 3: Shell and Utilities

ISO/IEC 9945-4:2003 Information technology -- Portable Operating System Interface (POSIX) -- Part 4: Rationale

Including Technical Cor. 1: 2004

http://www.unix.org/version3/
Qt 3.3.6Qt 3.3.6 Reference Manualhttp://doc.trolltech.com/3.3/index.html
QtCore 4.2.0Qt 4.2.0 Reference Manualhttp://doc.trolltech.com/4.2/qtcore.html
QtGui 4.2.0Qt 4.2.0 Reference Manualhttp://doc.trolltech.com/4.2/qtgui.html
QtNetwork 4.2.0Qt 4.2.0 Reference Manualhttp://doc.trolltech.com/4.2/qtnetwork.html
QtOpenGL 4.2.0Qt 4.2.0 Reference Manualhttp://doc.trolltech.com/4.2/qtopengl.html
QtSql 4.2.0Qt 4.2.0 Reference Manualhttp://doc.trolltech.com/4.2/qtsql.html
QtSvg 4.2.0Qt 4.2.0 Reference Manualhttp://doc.trolltech.com/4.2/qtsvg.html
QtXml 4.2.0Qt 4.2.0 Reference Manualhttp://doc.trolltech.com/4.2/qtxml.html
Reference Manual for libxml2Reference Manual for libxml2http://xmlsoft.org/html/index.html
The MIT Shared Memory ExtensionMIT-SHM - The MIT Shared Memory Extension - X version 11, Release 5http://refspecs.linux-foundation.org/X11/mit-shm.pdf
X Display Power Management SignalingX Display Power Management Signaling (DPMS) Extension - Library Specificationi - Version 1.0http://refspecs.linux-foundation.org/X11/DPMSlib.pdf
X Extended Visual Interface ExtensionExtended Visual Information Extension - Version 1.0http://refspecs.linux-foundation.org/X11/evi.pdf
X Nonrectangular Window Shape Extension LibraryX Nonrectangular Window Shape Extension Library - Version 1.0http://refspecs.linux-foundation.org/X11/shapelib.pdf
X Record Extension LibraryX Record Extension Library - Version 1.13http://refspecs.linux-foundation.org/X11/recordlib.pdf
X Security Extension SpecificationSecurity Extension Specification - Version 7.1http://refspecs.linux-foundation.org/X11/security.pdf
X Synchronization Extension LibraryX Synchronization Extension Library - Version 3.0http://refspecs.linux-foundation.org/X11/synclib.pdf
X11 C LibraryXlib - C Language X Interface - X Version 11 Release 6.4http://refspecs.linux-foundation.org/X11/xlib.pdf
X11 Input LibraryX Input Device Extension Library - X Version 11, Release 6.4http://refspecs.linux-foundation.org/X11/Xinput.pdf
X11 Inter-Client ExchangeInter-Client Exchange Library - Version 1.0http://refspecs.linux-foundation.org/X11/ICElib.pdf
X11 Keyboard ExtensionX Keyboard Extension Library Specification - X Version 11, Release 6.4http://refspecs.linux-foundation.org/X11/XKBlib.pdf
X11 Session ManagementX Session Management Library - Version 1.0http://refspecs.linux-foundation.org/X11/SMlib.pdf
X11 Toolkit IntrinsicsX Toolkit Intrinsics - C Language Interface - X Version 11, Release 6.4http://refspecs.linux-foundation.org/X11/intrinsics.pdf
Xft PlaceholderXft Specification Placeholder
Xrender PlaceholderXrender Specification Placeholderhttp://refspecs.linux-foundation.org/X11/XRenderProtocol.html
XTEST Extension LibraryXTEST Extension Library - Version 2.2http://refspecs.linux-foundation.org/X11/xtestlib.pdf

2.2. Informative References/Bibliography

In addition, the specifications listed below provide essential background information to implementors of this specification. These references are included for information only.

Table 2-2. Other References

NameTitleURL
A description on how to use and modify libpngA description on how to use and modify libpnghttp://www.libpng.org/pub/png/libpng-1.2.5-manual.html
ALSA Library API ReferenceALSA Library API Referencehttp://www.alsa-project.org/alsa-doc/alsa-lib/
Base Directory SpecXDG Base Directory Specification Version 0.6http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
Cairo API ReferenceCairo Vector Graphics API Specification for 1.2.0http://cairographics.org/manual-1.2.0
Desktop Entry SpecDesktop Entry Specification Version 1.0http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html
Desktop Menu SpecDesktop Menu Specification Version 1.0http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html
FreeType 2.2 ReferenceFreeType 2.2.1 API Referencehttp://refspecs.linuxfoundation.org/freetype/freetype-doc-2.2.1/docs/reference/ft2-toc.html
Icon Theme SpecIcon Theme Specification Version 0.11http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-0.11.html
Independent JPEG GroupIndependent JPEG Grouphttp://www.ijg.org/
xdg-utils referencePortland Project XDG Utilities Reference 1.0http://portland.freedesktop.org/xdg-utils-1.0/

Chapter 3. Requirements

3.1. Relevant Libraries

The libraries listed in Table 3-1 shall be available on a Linux Standard Base - Desktop system, with the specified runtime names. This list may be supplemented or amended by the architecture-specific specification.

Table 3-1. Standard Library Names

LibraryRuntime Name
libX11libX11.so.6
libXtlibXt.so.6
libGLlibGL.so.1
libXextlibXext.so.6
libICElibICE.so.6
libSMlibSM.so.6
libXilibXi.so.6
libGLUlibGLU.so.1
libXtstlibXtst.so.6
libglib-2.0libglib-2.0.so.0
libgobject-2.0libgobject-2.0.so.0
libgmodule-2.0libgmodule-2.0.so.0
libgthread-2.0libgthread-2.0.so.0
libatk-1.0libatk-1.0.so.0
libpango-1.0libpango-1.0.so.0
libpangoxft-1.0libpangoxft-1.0.so.0
libpangoft2-1.0libpangoft2-1.0.so.0
libgdk_pixbuf-2.0libgdk_pixbuf-2.0.so.0
libgdk_pixbuf_xlib-2.0libgdk_pixbuf_xlib-2.0.so.0
libgdk-x11-2.0libgdk-x11-2.0.so.0
libgtk-x11-2.0libgtk-x11-2.0.so.0
libpangocairo-1.0libpangocairo-1.0.so.0
libQtCorelibQtCore.so.4
libQtGuilibQtGui.so.4
libQtNetworklibQtNetwork.so.4
libQtXmllibQtXml.so.4
libQtOpenGLlibQtOpenGL.so.4
libQtSqllibQtSql.so.4
libQtSvglibQtSvg.so.4
libfontconfiglibfontconfig.so.1
libpng12libpng12.so.0
libjpeglibjpeg.so.62
libXrenderlibXrender.so.1
libfreetypelibfreetype.so.6
libXftlibXft.so.2
libcairolibcairo.so.2
libxml2libxml2.so.2
libqt-mtlibqt-mt.so.3
libasoundlibasound.so.2

These libraries will be in an implementation-defined directory which the dynamic linker shall search by default.


Chapter 4. Terms and Definitions

For the purposes of this document, the terms given in ISO/IEC Directives, Part 2, Annex H and the following apply.

archLSB

Some LSB specification documents have both a generic, architecture-neutral part and an architecture-specific part. The latter describes elements whose definitions may be unique to a particular processor architecture. The term archLSB may be used in the generic part to refer to the corresponding section of the architecture-specific part.

Binary Standard, ABI

The total set of interfaces that are available to be used in the compiled binary code of a conforming application, including the run-time details such as calling conventions, binary format, C++ name mangling, etc.

Implementation-defined

Describes a value or behavior that is not defined by this document but is selected by an implementor. The value or behavior may vary among implementations that conform to this document. An application should not rely on the existence of the value or behavior. An application that relies on such a value or behavior cannot be assured to be portable across conforming implementations. The implementor shall document such a value or behavior so that it can be used correctly by an application.

Shell Script

A file that is read by an interpreter (e.g., awk). The first line of the shell script includes a reference to its interpreter binary.

Source Standard, API

The total set of interfaces that are available to be used in the source code of a conforming application. Due to translations, the Binary Standard and the Source Standard may contain some different interfaces.

Undefined

Describes the nature of a value or behavior not defined by this document which results from use of an invalid program construct or invalid data input. The value or behavior may vary among implementations that conform to this document. An application should not rely on the existence or validity of the value or behavior. An application that relies on any particular value or behavior cannot be assured to be portable across conforming implementations.

Unspecified

Describes the nature of a value or behavior not specified by this document which results from use of a valid program construct or valid data input. The value or behavior may vary among implementations that conform to this document. An application should not rely on the existence or validity of the value or behavior. An application that relies on any particular value or behavior cannot be assured to be portable across conforming implementations.

In addition, for the portions of this specification which build on IEEE Std 1003.1-2001, the definitions given in IEEE Std 1003.1-2001, Base Definitions, Chapter 3 apply.


Chapter 5. Documentation Conventions

Throughout this document, the following typographic conventions are used:

function() 

the name of a function

command 

the name of a command or utility

CONSTANT 

a constant value

parameter 

a parameter

variable 

a variable

Throughout this specification, several tables of interfaces are presented. Each entry in these tables has the following format:

name 

the name of the interface

(symver) 

An optional symbol version identifier, if required.

[refno] 

A reference number indexing the table of referenced specifications that follows this table.

For example,

forkpty(GLIBC_2.0) [SUSv3]

refers to the interface named forkpty() with symbol version GLIBC_2.0 that is defined in the SUSv3 reference.

Note: For symbols with versions which differ between architectures, the symbol versions are defined in the architecture specific parts of ISO/IEC 23360 only.

II. Graphic Libraries

Table of Contents
6. Libraries
6.1. Interfaces for libX11
6.1.1. X Window System Interface
6.2. Data Definitions for libX11
6.2.1. X11/X.h
6.2.2. X11/XKBlib.h
6.2.3. X11/Xatom.h
6.2.4. X11/Xauth.h
6.2.5. X11/Xcms.h
6.2.6. X11/Xfuncproto.h
6.2.7. X11/Xlib.h
6.2.8. X11/Xlibint.h
6.2.9. X11/Xmd.h
6.2.10. X11/Xosdefs.h
6.2.11. X11/Xproto.h
6.2.12. X11/Xprotostr.h
6.2.13. X11/Xresource.h
6.2.14. X11/Xutil.h
6.2.15. X11/cursorfont.h
6.2.16. X11/extensions/XKB.h
6.2.17. X11/extensions/XKBgeom.h
6.2.18. X11/extensions/XKBproto.h
6.2.19. X11/extensions/XKBstr.h
6.2.20. X11/extensions/securstr.h
6.2.21. X11/keysym.h
6.2.22. X11/keysymdef.h
6.3. Interface Definitions for libX11
6.4. Interfaces for libSM
6.4.1. Session Management Functions
6.5. Data Definitions for libSM
6.5.1. X11/SM/SM.h
6.5.2. X11/SM/SMlib.h
6.5.3. X11/SM/SMproto.h
6.6. Interfaces for libICE
6.6.1. ICE Functions
6.7. Data Definitions for libICE
6.7.1. X11/ICE/ICE.h
6.7.2. X11/ICE/ICEconn.h
6.7.3. X11/ICE/ICElib.h
6.7.4. X11/ICE/ICEmsg.h
6.7.5. X11/ICE/ICEproto.h
6.7.6. X11/ICE/ICEutil.h
6.8. Interface Definitions for libICE
_IceRead -- read the specified number of bytes from an ICE connection
_IceReadSkip -- advance to the end of the message when a bad header is read
_IceWrite -- write the specified number of bytes of data to an ICE connection
6.9. Interfaces for libXt
6.9.1. X Toolkit
6.10. Data Definitions for libXt
6.10.1. X11/Composite.h
6.10.2. X11/CompositeP.h
6.10.3. X11/ConstrainP.h
6.10.4. X11/Constraint.h
6.10.5. X11/Core.h
6.10.6. X11/CoreP.h
6.10.7. X11/EventI.h
6.10.8. X11/Intrinsic.h
6.10.9. X11/IntrinsicI.h
6.10.10. X11/IntrinsicP.h
6.10.11. X11/Object.h
6.10.12. X11/ObjectP.h
6.10.13. X11/RectObj.h
6.10.14. X11/RectObjP.h
6.10.15. X11/ResourceI.h
6.10.16. X11/Shell.h
6.10.17. X11/ShellP.h
6.10.18. X11/StringDefs.h
6.10.19. X11/TranslateI.h
6.10.20. X11/VendorP.h
6.11. Interface Definitions for libXt
_XtCopyFromArg -- Copy "size" bytes from src to dst.
_XtInherit -- inheritance operation.
_XtInheritTranslations -- an inheritance constant
_XtIsSubclassOf -- determine if Widget is a subclass of WidgetClass.
6.12. Interfaces for libXext
6.12.1. libXext interfaces
6.12.2. X Shape Extension
6.12.3. X Display Power Management Signaling Extension
6.12.4. X Shared Memory Extensions
6.12.5. X Synchronization Extension
6.12.6. X Security Extension
6.12.7. X Double Buffer Extension
6.12.8. X Extended Visual Interface Extension
6.13. Data Definitions for libXext
6.13.1. X11/extensions/XEVI.h
6.13.2. X11/extensions/XEVIstr.h
6.13.3. X11/extensions/XKBbells.h
6.13.4. X11/extensions/XShm.h
6.13.5. X11/extensions/Xdbe.h
6.13.6. X11/extensions/Xdbeproto.h
6.13.7. X11/extensions/Xext.h
6.13.8. X11/extensions/dpms.h
6.13.9. X11/extensions/dpmsstr.h
6.13.10. X11/extensions/extutil.h
6.13.11. X11/extensions/security.h
6.13.12. X11/extensions/shape.h
6.13.13. X11/extensions/sync.h
6.13.14. X11/extensions/syncstr.h
6.14. Interface Definitions for libXext
6.15. Interfaces for libXi
6.15.1. XInput
6.16. Data Definitions for libXi
6.16.1. X11/extensions/XI.h
6.16.2. X11/extensions/XInput.h
6.16.3. X11/extensions/XIproto.h
6.17. Interfaces for libXtst
6.17.1. libXtst Interfaces
6.18. Data Definitions for libXtst
6.18.1. X11/extensions/XTest.h

Chapter 6. Libraries

The X Libraries should be built thread-safe.


6.1. Interfaces for libX11

Table 6-1 defines the library name and shared object name for the libX11 library

Table 6-1. libX11 Definition

Library:libX11
SONAME:libX11.so.6

The behavior of the interfaces in this library is specified by the following specifications:

[LSB] This Specification
[XKBlib] X11 Keyboard Extension
[Xlib] X11 C Library


6.1.1. X Window System Interface


6.1.1.1. Interfaces for X Window System Interface

An LSB conforming implementation shall provide the generic functions for X Window System Interface specified in Table 6-2, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-2. libX11 - X Window System Interface Function Interfaces

XActivateScreenSaver [Xlib]XAddConnectionWatch [Xlib]XAddExtension [Xlib]XAddHost [Xlib]
XAddHosts [Xlib]XAddPixel [Xlib]XAddToExtensionList [Xlib]XAddToSaveSet [Xlib]
XAllPlanes [Xlib]XAllocClassHint [Xlib]XAllocColor [Xlib]XAllocColorCells [Xlib]
XAllocColorPlanes [Xlib]XAllocIconSize [Xlib]XAllocNamedColor [Xlib]XAllocSizeHints [Xlib]
XAllocStandardColormap [Xlib]XAllocWMHints [Xlib]XAllowEvents [Xlib]XAutoRepeatOff [Xlib]
XAutoRepeatOn [Xlib]XBaseFontNameListOfFontSet [Xlib]XBell [Xlib]XBitmapBitOrder [Xlib]
XBitmapPad [Xlib]XBitmapUnit [Xlib]XBlackPixel [Xlib]XBlackPixelOfScreen [Xlib]
XCellsOfScreen [Xlib]XChangeActivePointerGrab [Xlib]XChangeGC [Xlib]XChangeKeyboardControl [Xlib]
XChangeKeyboardMapping [Xlib]XChangePointerControl [Xlib]XChangeProperty [Xlib]XChangeSaveSet [Xlib]
XChangeWindowAttributes [Xlib]XCheckIfEvent [Xlib]XCheckMaskEvent [Xlib]XCheckTypedEvent [Xlib]
XCheckTypedWindowEvent [Xlib]XCheckWindowEvent [Xlib]XCirculateSubwindows [Xlib]XCirculateSubwindowsDown [Xlib]
XCirculateSubwindowsUp [Xlib]XClearArea [Xlib]XClearWindow [Xlib]XClipBox [Xlib]
XCloseDisplay [Xlib]XCloseIM [Xlib]XCloseOM [Xlib]XConfigureWindow [Xlib]
XConnectionNumber [Xlib]XContextDependentDrawing [Xlib]XContextualDrawing [Xlib]XConvertCase [Xlib]
XConvertSelection [Xlib]XCopyArea [Xlib]XCopyColormapAndFree [Xlib]XCopyGC [Xlib]
XCopyPlane [Xlib]XCreateBitmapFromData [Xlib]XCreateColormap [Xlib]XCreateFontCursor [Xlib]
XCreateFontSet [Xlib]XCreateGC [Xlib]XCreateGlyphCursor [Xlib]XCreateIC [Xlib]
XCreateImage [Xlib]XCreateOC [Xlib]XCreatePixmap [Xlib]XCreatePixmapCursor [Xlib]
XCreatePixmapFromBitmapData [Xlib]XCreateRegion [Xlib]XCreateSimpleWindow [Xlib]XCreateWindow [Xlib]
XDefaultColormap [Xlib]XDefaultColormapOfScreen [Xlib]XDefaultDepth [Xlib]XDefaultDepthOfScreen [Xlib]
XDefaultGC [Xlib]XDefaultGCOfScreen [Xlib]XDefaultRootWindow [Xlib]XDefaultScreen [Xlib]
XDefaultScreenOfDisplay [Xlib]XDefaultString [Xlib]XDefaultVisual [Xlib]XDefaultVisualOfScreen [Xlib]
XDefineCursor [Xlib]XDeleteContext [Xlib]XDeleteModifiermapEntry [Xlib]XDeleteProperty [Xlib]
XDestroyIC [Xlib]XDestroyImage [Xlib]XDestroyOC [Xlib]XDestroyRegion [Xlib]
XDestroySubwindows [Xlib]XDestroyWindow [Xlib]XDirectionalDependentDrawing [Xlib]XDisableAccessControl [Xlib]
XDisplayCells [Xlib]XDisplayHeight [Xlib]XDisplayHeightMM [Xlib]XDisplayKeycodes [Xlib]
XDisplayMotionBufferSize [Xlib]XDisplayName [Xlib]XDisplayOfIM [Xlib]XDisplayOfOM [Xlib]
XDisplayOfScreen [Xlib]XDisplayPlanes [Xlib]XDisplayString [Xlib]XDisplayWidth [Xlib]
XDisplayWidthMM [Xlib]XDoesBackingStore [Xlib]XDoesSaveUnders [Xlib]XDrawArc [Xlib]
XDrawArcs [Xlib]XDrawImageString [Xlib]XDrawImageString16 [Xlib]XDrawLine [Xlib]
XDrawLines [Xlib]XDrawPoint [Xlib]XDrawPoints [Xlib]XDrawRectangle [Xlib]
XDrawRectangles [Xlib]XDrawSegments [Xlib]XDrawString [Xlib]XDrawString16 [Xlib]
XDrawText [Xlib]XDrawText16 [Xlib]XEHeadOfExtensionList [Xlib]XESetBeforeFlush [Xlib]
XESetCloseDisplay [Xlib]XESetCopyGC [Xlib]XESetCreateFont [Xlib]XESetCreateGC [Xlib]
XESetError [Xlib]XESetErrorString [Xlib]XESetEventToWire [Xlib]XESetFlushGC [Xlib]
XESetFreeFont [Xlib]XESetFreeGC [Xlib]XESetPrintErrorValues [Xlib]XESetWireToError [Xlib]
XESetWireToEvent [Xlib]XEmptyRegion [Xlib]XEnableAccessControl [Xlib]XEqualRegion [Xlib]
XEventMaskOfScreen [Xlib]XEventsQueued [Xlib]XExtendedMaxRequestSize [Xlib]XExtentsOfFontSet [Xlib]
XFetchBuffer [Xlib]XFetchBytes [Xlib]XFetchName [Xlib]XFillArc [Xlib]
XFillArcs [Xlib]XFillPolygon [Xlib]XFillRectangle [Xlib]XFillRectangles [Xlib]
XFilterEvent [Xlib]XFindContext [Xlib]XFindOnExtensionList [Xlib]XFlush [Xlib]
XFlushGC [Xlib]XFontsOfFontSet [Xlib]XForceScreenSaver [Xlib]XFree [Xlib]
XFreeColormap [Xlib]XFreeColors [Xlib]XFreeCursor [Xlib]XFreeExtensionList [Xlib]
XFreeFont [Xlib]XFreeFontInfo [Xlib]XFreeFontNames [Xlib]XFreeFontPath [Xlib]
XFreeFontSet [Xlib]XFreeGC [Xlib]XFreeModifiermap [Xlib]XFreePixmap [Xlib]
XFreeStringList [Xlib]XGContextFromGC [Xlib]XGeometry [Xlib]XGetAtomName [Xlib]
XGetAtomNames [Xlib]XGetClassHint [Xlib]XGetCommand [Xlib]XGetDefault [Xlib]
XGetErrorDatabaseText [Xlib]XGetErrorText [Xlib]XGetFontPath [Xlib]XGetFontProperty [Xlib]
XGetGCValues [Xlib]XGetGeometry [Xlib]XGetICValues [Xlib]XGetIMValues [Xlib]
XGetIconName [Xlib]XGetIconSizes [Xlib]XGetImage [Xlib]XGetInputFocus [Xlib]
XGetKeyboardControl [Xlib]XGetKeyboardMapping [Xlib]XGetModifierMapping [Xlib]XGetMotionEvents [Xlib]
XGetNormalHints [Xlib]XGetOCValues [Xlib]XGetOMValues [Xlib]XGetPixel [Xlib]
XGetPointerControl [Xlib]XGetPointerMapping [Xlib]XGetRGBColormaps [Xlib]XGetScreenSaver [Xlib]
XGetSelectionOwner [Xlib]XGetSizeHints [Xlib]XGetStandardColormap [Xlib]XGetSubImage [Xlib]
XGetTextProperty [Xlib]XGetTransientForHint [Xlib]XGetVisualInfo [Xlib]XGetWMClientMachine [Xlib]
XGetWMColormapWindows [Xlib]XGetWMHints [Xlib]XGetWMIconName [Xlib]XGetWMName [Xlib]
XGetWMNormalHints [Xlib]XGetWMProtocols [Xlib]XGetWMSizeHints [Xlib]XGetWindowAttributes [Xlib]
XGetWindowProperty [Xlib]XGetZoomHints [Xlib]XGrabButton [Xlib]XGrabKey [Xlib]
XGrabKeyboard [Xlib]XGrabPointer [Xlib]XGrabServer [Xlib]XHeightMMOfScreen [Xlib]
XHeightOfScreen [Xlib]XIMOfIC [Xlib]XIconifyWindow [Xlib]XIfEvent [Xlib]
XImageByteOrder [Xlib]XInitExtension [Xlib]XInitImage [Xlib]XInitThreads [Xlib]
XInsertModifiermapEntry [Xlib]XInstallColormap [Xlib]XInternAtom [Xlib]XInternAtoms [Xlib]
XInternalConnectionNumbers [Xlib]XIntersectRegion [Xlib]XKeycodeToKeysym [Xlib]XKeysymToKeycode [Xlib]
XKeysymToString [Xlib]XKillClient [Xlib]XLastKnownRequestProcessed [Xlib]XListDepths [Xlib]
XListExtensions [Xlib]XListFonts [Xlib]XListFontsWithInfo [Xlib]XListHosts [Xlib]
XListInstalledColormaps [Xlib]XListPixmapFormats [Xlib]XListProperties [Xlib]XLoadFont [Xlib]
XLoadQueryFont [Xlib]XLocaleOfFontSet [Xlib]XLocaleOfIM [Xlib]XLocaleOfOM [Xlib]
XLockDisplay [Xlib]XLookupColor [Xlib]XLookupKeysym [Xlib]XLookupString [Xlib]
XLowerWindow [Xlib]XMapRaised [Xlib]XMapSubwindows [Xlib]XMapWindow [Xlib]
XMaskEvent [Xlib]XMatchVisualInfo [Xlib]XMaxCmapsOfScreen [Xlib]XMaxRequestSize [Xlib]
XMinCmapsOfScreen [Xlib]XMoveResizeWindow [Xlib]XMoveWindow [Xlib]XNewModifiermap [Xlib]
XNextEvent [Xlib]XNextRequest [Xlib]XNoOp [Xlib]XOMOfOC [Xlib]
XOffsetRegion [Xlib]XOpenDisplay [Xlib]XOpenIM [Xlib]XOpenOM [Xlib]
XParseColor [Xlib]XParseGeometry [Xlib]XPeekEvent [Xlib]XPeekIfEvent [Xlib]
XPending [Xlib]XPlanesOfScreen [Xlib]XPointInRegion [Xlib]XPolygonRegion [Xlib]
XProcessInternalConnection [Xlib]XProtocolRevision [Xlib]XProtocolVersion [Xlib]XPutBackEvent [Xlib]
XPutImage [Xlib]XPutPixel [Xlib]XQLength [Xlib]XQueryBestCursor [Xlib]
XQueryBestSize [Xlib]XQueryBestStipple [Xlib]XQueryBestTile [Xlib]XQueryColor [Xlib]
XQueryColors [Xlib]XQueryExtension [Xlib]XQueryFont [Xlib]XQueryKeymap [Xlib]
XQueryPointer [Xlib]XQueryTextExtents [Xlib]XQueryTextExtents16 [Xlib]XQueryTree [Xlib]
XRaiseWindow [Xlib]XReadBitmapFile [Xlib]XReadBitmapFileData [Xlib]XRebindKeysym [Xlib]
XRecolorCursor [Xlib]XReconfigureWMWindow [Xlib]XRectInRegion [Xlib]XRefreshKeyboardMapping [Xlib]
XRegisterIMInstantiateCallback [Xlib]XRemoveConnectionWatch [Xlib]XRemoveFromSaveSet [Xlib]XRemoveHost [Xlib]
XRemoveHosts [Xlib]XReparentWindow [Xlib]XResetScreenSaver [Xlib]XResizeWindow [Xlib]
XResourceManagerString [Xlib]XRestackWindows [Xlib]XRootWindow [Xlib]XRootWindowOfScreen [Xlib]
XRotateBuffers [Xlib]XRotateWindowProperties [Xlib]XSaveContext [Xlib]XScreenCount [Xlib]
XScreenNumberOfScreen [Xlib]XScreenOfDisplay [Xlib]XScreenResourceString [Xlib]XSelectInput [Xlib]
XSendEvent [Xlib]XServerVendor [Xlib]XSetAccessControl [Xlib]XSetAfterFunction [Xlib]
XSetArcMode [Xlib]XSetAuthorization [Xlib]XSetBackground [Xlib]XSetClassHint [Xlib]
XSetClipMask [Xlib]XSetClipOrigin [Xlib]XSetClipRectangles [Xlib]XSetCloseDownMode [Xlib]
XSetCommand [Xlib]XSetDashes [Xlib]XSetErrorHandler [Xlib]XSetFillRule [Xlib]
XSetFillStyle [Xlib]XSetFont [Xlib]XSetFontPath [Xlib]XSetForeground [Xlib]
XSetFunction [Xlib]XSetGraphicsExposures [Xlib]XSetICFocus [Xlib]XSetICValues [Xlib]
XSetIMValues [Xlib]XSetIOErrorHandler [Xlib]XSetIconName [Xlib]XSetIconSizes [Xlib]
XSetInputFocus [Xlib]XSetLineAttributes [Xlib]XSetLocaleModifiers [Xlib]XSetModifierMapping [Xlib]
XSetNormalHints [Xlib]XSetOCValues [Xlib]XSetOMValues [Xlib]XSetPlaneMask [Xlib]
XSetPointerMapping [Xlib]XSetRGBColormaps [Xlib]XSetRegion [Xlib]XSetScreenSaver [Xlib]
XSetSelectionOwner [Xlib]XSetSizeHints [Xlib]XSetStandardColormap [Xlib]XSetStandardProperties [Xlib]
XSetState [Xlib]XSetStipple [Xlib]XSetSubwindowMode [Xlib]XSetTSOrigin [Xlib]
XSetTextProperty [Xlib]XSetTile [Xlib]XSetTransientForHint [Xlib]XSetWMClientMachine [Xlib]
XSetWMColormapWindows [Xlib]XSetWMHints [Xlib]XSetWMIconName [Xlib]XSetWMName [Xlib]
XSetWMNormalHints [Xlib]XSetWMProperties [Xlib]XSetWMProtocols [Xlib]XSetWMSizeHints [Xlib]
XSetWindowBackground [Xlib]XSetWindowBackgroundPixmap [Xlib]XSetWindowBorder [Xlib]XSetWindowBorderPixmap [Xlib]
XSetWindowBorderWidth [Xlib]XSetWindowColormap [Xlib]XSetZoomHints [Xlib]XShrinkRegion [Xlib]
XStoreBuffer [Xlib]XStoreBytes [Xlib]XStoreColor [Xlib]XStoreColors [Xlib]
XStoreName [Xlib]XStoreNamedColor [Xlib]XStringListToTextProperty [Xlib]XStringToKeysym [Xlib]
XSubImage [Xlib]XSubtractRegion [Xlib]XSupportsLocale [Xlib]XSync [Xlib]
XSynchronize [Xlib]XTextExtents [Xlib]XTextExtents16 [Xlib]XTextPropertyToStringList [Xlib]
XTextWidth [Xlib]XTextWidth16 [Xlib]XTranslateCoordinates [Xlib]XUndefineCursor [Xlib]
XUngrabButton [Xlib]XUngrabKey [Xlib]XUngrabKeyboard [Xlib]XUngrabPointer [Xlib]
XUngrabServer [Xlib]XUninstallColormap [Xlib]XUnionRectWithRegion [Xlib]XUnionRegion [Xlib]
XUnloadFont [Xlib]XUnlockDisplay [Xlib]XUnmapSubwindows [Xlib]XUnmapWindow [Xlib]
XUnregisterIMInstantiateCallback [Xlib]XUnsetICFocus [Xlib]XVaCreateNestedList [Xlib]XVendorRelease [Xlib]
XVisualIDFromVisual [Xlib]XWMGeometry [Xlib]XWarpPointer [Xlib]XWhitePixel [Xlib]
XWhitePixelOfScreen [Xlib]XWidthMMOfScreen [Xlib]XWidthOfScreen [Xlib]XWindowEvent [Xlib]
XWithdrawWindow [Xlib]XWriteBitmapFile [Xlib]XXorRegion [Xlib]XauDisposeAuth [Xlib]
XauFileName [Xlib]XauGetBestAuthByAddr [Xlib]XauReadAuth [Xlib]XcmsAddColorSpace [Xlib]
XcmsAddFunctionSet [Xlib]XcmsAllocColor [Xlib]XcmsAllocNamedColor [Xlib]XcmsCCCOfColormap [Xlib]
XcmsCIELabClipL [Xlib]XcmsCIELabClipLab [Xlib]XcmsCIELabClipab [Xlib]XcmsCIELabQueryMaxC [Xlib]
XcmsCIELabQueryMaxL [Xlib]XcmsCIELabQueryMaxLC [Xlib]XcmsCIELabQueryMinL [Xlib]XcmsCIELabToCIEXYZ [Xlib]
XcmsCIELabWhiteShiftColors [Xlib]XcmsCIELuvClipL [Xlib]XcmsCIELuvClipLuv [Xlib]XcmsCIELuvClipuv [Xlib]
XcmsCIELuvQueryMaxC [Xlib]XcmsCIELuvQueryMaxL [Xlib]XcmsCIELuvQueryMaxLC [Xlib]XcmsCIELuvQueryMinL [Xlib]
XcmsCIELuvToCIEuvY [Xlib]XcmsCIELuvWhiteShiftColors [Xlib]XcmsCIEXYZToCIELab [Xlib]XcmsCIEXYZToCIEuvY [Xlib]
XcmsCIEXYZToCIExyY [Xlib]XcmsCIEXYZToRGBi [Xlib]XcmsCIEuvYToCIELuv [Xlib]XcmsCIEuvYToCIEXYZ [Xlib]
XcmsCIEuvYToTekHVC [Xlib]XcmsCIExyYToCIEXYZ [Xlib]XcmsClientWhitePointOfCCC [Xlib]XcmsConvertColors [Xlib]
XcmsCreateCCC [Xlib]XcmsDefaultCCC [Xlib]XcmsDisplayOfCCC [Xlib]XcmsFormatOfPrefix [Xlib]
XcmsFreeCCC [Xlib]XcmsLookupColor [Xlib]XcmsPrefixOfFormat [Xlib]XcmsQueryBlack [Xlib]
XcmsQueryBlue [Xlib]XcmsQueryColor [Xlib]XcmsQueryColors [Xlib]XcmsQueryGreen [Xlib]
XcmsQueryRed [Xlib]XcmsQueryWhite [Xlib]XcmsRGBToRGBi [Xlib]XcmsRGBiToCIEXYZ [Xlib]
XcmsRGBiToRGB [Xlib]XcmsScreenNumberOfCCC [Xlib]XcmsScreenWhitePointOfCCC [Xlib]XcmsSetCCCOfColormap [Xlib]
XcmsSetCompressionProc [Xlib]XcmsSetWhiteAdjustProc [Xlib]XcmsSetWhitePoint [Xlib]XcmsStoreColor [Xlib]
XcmsStoreColors [Xlib]XcmsTekHVCClipC [Xlib]XcmsTekHVCClipV [Xlib]XcmsTekHVCClipVC [Xlib]
XcmsTekHVCQueryMaxC [Xlib]XcmsTekHVCQueryMaxV [Xlib]XcmsTekHVCQueryMaxVC [Xlib]XcmsTekHVCQueryMaxVSamples [Xlib]
XcmsTekHVCQueryMinV [Xlib]XcmsTekHVCToCIEuvY [Xlib]XcmsTekHVCWhiteShiftColors [Xlib]XcmsVisualOfCCC [Xlib]
XkbAllocClientMap [XKBlib]XkbAllocCompatMap [XKBlib]XkbAllocControls [XKBlib]XkbAllocGeomColors [XKBlib]
XkbAllocGeomDoodads [XKBlib]XkbAllocGeomKeyAliases [XKBlib]XkbAllocGeomKeys [XKBlib]XkbAllocGeomOutlines [XKBlib]
XkbAllocGeomOverlayKeys [XKBlib]XkbAllocGeomOverlayRows [XKBlib]XkbAllocGeomOverlays [XKBlib]XkbAllocGeomPoints [XKBlib]
XkbAllocGeomProps [XKBlib]XkbAllocGeomRows [XKBlib]XkbAllocGeomSectionDoodads [XKBlib]XkbAllocGeomSections [XKBlib]
XkbAllocGeomShapes [XKBlib]XkbAllocGeometry [XKBlib]XkbAllocIndicatorMaps [XKBlib]XkbAllocKeyboard [XKBlib]
XkbAllocNames [XKBlib]XkbAllocServerMap [XKBlib]XkbApplyCompatMapToKey [XKBlib]XkbBell [XKBlib]
XkbBellEvent [XKBlib]XkbChangeEnabledControls [XKBlib]XkbChangeMap [XKBlib]XkbChangeNames [XKBlib]
XkbChangeTypesOfKey [XKBlib]XkbComputeEffectiveMap [XKBlib]XkbComputeRowBounds [XKBlib]XkbComputeSectionBounds [XKBlib]
XkbComputeShapeBounds [XKBlib]XkbComputeShapeTop [XKBlib]XkbCopyKeyType [XKBlib]XkbCopyKeyTypes [XKBlib]
XkbFindOverlayForKey [XKBlib]XkbForceBell [XKBlib]XkbFreeClientMap [XKBlib]XkbFreeCompatMap [XKBlib]
XkbFreeComponentList [XKBlib]XkbFreeControls [XKBlib]XkbFreeGeomColors [XKBlib]XkbFreeGeomDoodads [XKBlib]
XkbFreeGeomKeyAliases [XKBlib]XkbFreeGeomKeys [XKBlib]XkbFreeGeomOutlines [XKBlib]XkbFreeGeomOverlayKeys [XKBlib]
XkbFreeGeomOverlayRows [XKBlib]XkbFreeGeomOverlays [XKBlib]XkbFreeGeomPoints [XKBlib]XkbFreeGeomProperties [XKBlib]
XkbFreeGeomRows [XKBlib]XkbFreeGeomSections [XKBlib]XkbFreeGeomShapes [XKBlib]XkbFreeGeometry [XKBlib]
XkbFreeIndicatorMaps [XKBlib]XkbFreeKeyboard [XKBlib]XkbFreeNames [XKBlib]XkbFreeServerMap [XKBlib]
XkbGetAutoRepeatRate [XKBlib]XkbGetCompatMap [XKBlib]XkbGetControls [XKBlib]XkbGetGeometry [XKBlib]
XkbGetIndicatorMap [XKBlib]XkbGetIndicatorState [XKBlib]XkbGetKeyActions [XKBlib]XkbGetKeyBehaviors [XKBlib]
XkbGetKeyExplicitComponents [XKBlib]XkbGetKeyModifierMap [XKBlib]XkbGetKeySyms [XKBlib]XkbGetKeyTypes [XKBlib]
XkbGetKeyboard [XKBlib]XkbGetKeyboardByName [XKBlib]XkbGetMap [XKBlib]XkbGetMapChanges [XKBlib]
XkbGetNamedGeometry [XKBlib]XkbGetNamedIndicator [XKBlib]XkbGetNames [XKBlib]XkbGetPerClientControls [XKBlib]
XkbGetState [XKBlib]XkbGetUpdatedMap [XKBlib]XkbGetVirtualMods [XKBlib]XkbGetXlibControls [XKBlib]
XkbIgnoreExtension [XKBlib]XkbInitCanonicalKeyTypes [XKBlib]XkbKeyTypesForCoreSymbols [XKBlib]XkbKeycodeToKeysym [XKBlib]
XkbKeysymToModifiers [XKBlib]XkbLatchGroup [XKBlib]XkbLatchModifiers [XKBlib]XkbLibraryVersion [XKBlib]
XkbListComponents [XKBlib]XkbLockGroup [XKBlib]XkbLockModifiers [XKBlib]XkbLookupKeyBinding [XKBlib]
XkbLookupKeySym [XKBlib]XkbNoteControlsChanges [XKBlib]XkbNoteMapChanges [XKBlib]XkbNoteNameChanges [XKBlib]
XkbOpenDisplay [XKBlib]XkbQueryExtension [XKBlib]XkbRefreshKeyboardMapping [XKBlib]XkbResizeKeyActions [XKBlib]
XkbResizeKeySyms [XKBlib]XkbResizeKeyType [XKBlib]XkbSelectEventDetails [XKBlib]XkbSelectEvents [XKBlib]
XkbSetAtomFuncs [XKBlib]XkbSetAutoRepeatRate [XKBlib]XkbSetAutoResetControls [XKBlib]XkbSetCompatMap [XKBlib]
XkbSetControls [XKBlib]XkbSetDebuggingFlags [XKBlib]XkbSetDetectableAutoRepeat [XKBlib]XkbSetGeometry [XKBlib]
XkbSetIgnoreLockMods [XKBlib]XkbSetIndicatorMap [XKBlib]XkbSetMap [XKBlib]XkbSetNamedIndicator [XKBlib]
XkbSetNames [XKBlib]XkbSetPerClientControls [XKBlib]XkbSetServerInternalMods [XKBlib]XkbSetXlibControls [XKBlib]
XkbToControl [XKBlib]XkbTranslateKeyCode [XKBlib]XkbTranslateKeySym [XKBlib]XkbUpdateMapFromCore [XKBlib]
XkbUseExtension [XKBlib]XkbVirtualModsToReal [XKBlib]XmbDrawImageString [Xlib]XmbDrawString [Xlib]
XmbDrawText [Xlib]XmbLookupString [Xlib]XmbResetIC [Xlib]XmbSetWMProperties [Xlib]
XmbTextEscapement [Xlib]XmbTextExtents [Xlib]XmbTextListToTextProperty [Xlib]XmbTextPerCharExtents [Xlib]
XmbTextPropertyToTextList [Xlib]XrmCombineDatabase [Xlib]XrmCombineFileDatabase [Xlib]XrmDestroyDatabase [Xlib]
XrmEnumerateDatabase [Xlib]XrmGetDatabase [Xlib]XrmGetFileDatabase [Xlib]XrmGetResource [Xlib]
XrmGetStringDatabase [Xlib]XrmInitialize [Xlib]XrmLocaleOfDatabase [Xlib]XrmMergeDatabases [Xlib]
XrmParseCommand [Xlib]XrmPermStringToQuark [Xlib]XrmPutFileDatabase [Xlib]XrmPutLineResource [Xlib]
XrmPutResource [Xlib]XrmPutStringResource [Xlib]XrmQGetResource [Xlib]XrmQGetSearchList [Xlib]
XrmQGetSearchResource [Xlib]XrmQPutResource [Xlib]XrmQPutStringResource [Xlib]XrmQuarkToString [Xlib]
XrmSetDatabase [Xlib]XrmStringToBindingQuarkList [Xlib]XrmStringToQuark [Xlib]XrmStringToQuarkList [Xlib]
XrmUniqueQuark [Xlib]Xutf8TextListToTextProperty [LSB]Xutf8TextPropertyToTextList [LSB]XwcDrawImageString [Xlib]
XwcDrawString [Xlib]XwcDrawText [Xlib]XwcFreeStringList [Xlib]XwcLookupString [Xlib]
XwcResetIC [Xlib]XwcTextEscapement [Xlib]XwcTextExtents [Xlib]XwcTextListToTextProperty [Xlib]
XwcTextPerCharExtents [Xlib]XwcTextPropertyToTextList [Xlib]  

6.2. Data Definitions for libX11

This section defines global identifiers and their values that are associated with interfaces contained in libX11. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.


6.2.1. X11/X.h


#define X_PROTOCOL_REVISION	0
#define X_PROTOCOL	11

typedef unsigned long int XID;
typedef unsigned long int Mask;
typedef unsigned long int Atom;
typedef unsigned long int VisualID;
typedef unsigned long int Time;
typedef XID Window;
typedef XID Font;
typedef XID Pixmap;
typedef unsigned char KeyCode;
typedef XID Drawable;
typedef XID Cursor;
typedef XID Colormap;
typedef XID GContext;
typedef XID KeySym;

#define AllTemporary	0L
#define AnyButton	0L
#define AnyKey	0L
#define AnyPropertyType	0L
#define CopyFromParent	0L
#define CurrentTime	0L
#define NoSymbol	0L
#define None	0L
#define PointerWindow	0L
#define InputFocus	1L
#define ParentRelative	1L
#define PointerRoot	1L

#define KeyPressMask	(1L<<0)
#define KeyReleaseMask	(1L<<1)
#define Button3MotionMask	(1L<<10)
#define Button4MotionMask	(1L<<11)
#define Button5MotionMask	(1L<<12)
#define ButtonMotionMask	(1L<<13)
#define KeymapStateMask	(1L<<14)
#define ExposureMask	(1L<<15)
#define VisibilityChangeMask	(1L<<16)
#define StructureNotifyMask	(1L<<17)
#define ResizeRedirectMask	(1L<<18)
#define SubstructureNotifyMask	(1L<<19)
#define ButtonPressMask	(1L<<2)
#define SubstructureRedirectMask	(1L<<20)
#define FocusChangeMask	(1L<<21)
#define PropertyChangeMask	(1L<<22)
#define ColormapChangeMask	(1L<<23)
#define OwnerGrabButtonMask	(1L<<24)
#define ButtonReleaseMask	(1L<<3)
#define EnterWindowMask	(1L<<4)
#define LeaveWindowMask	(1L<<5)
#define PointerMotionMask	(1L<<6)
#define PointerMotionHintMask	(1L<<7)
#define Button1MotionMask	(1L<<8)
#define Button2MotionMask	(1L<<9)

#define NoEventMask	0L
#define FocusOut	10
#define KeymapNotify	11
#define Expose	12
#define GraphicsExpose	13
#define NoExpose	14
#define VisibilityNotify	15
#define CreateNotify	16
#define DestroyNotify	17
#define UnmapNotify	18
#define MapNotify	19
#define KeyPress	2
#define MapRequest	20
#define ReparentNotify	21
#define ConfigureNotify	22
#define ConfigureRequest	23
#define GravityNotify	24
#define ResizeRequest	25
#define CirculateNotify	26
#define CirculateRequest	27
#define PropertyNotify	28
#define SelectionClear	29
#define KeyRelease	3
#define SelectionRequest	30
#define SelectionNotify	31
#define ColormapNotify	32
#define ClientMessage	33
#define MappingNotify	34
#define LASTEvent	35
#define ButtonPress	4
#define ButtonRelease	5
#define MotionNotify	6
#define EnterNotify	7
#define LeaveNotify	8
#define FocusIn	9

#define ShiftMask	(1<<0)
#define LockMask	(1<<1)
#define ControlMask	(1<<2)
#define Mod1Mask	(1<<3)
#define Mod2Mask	(1<<4)
#define Mod3Mask	(1<<5)
#define Mod4Mask	(1<<6)
#define Mod5Mask	(1<<7)

#define ShiftMapIndex	0
#define LockMapIndex	1
#define ControlMapIndex	2
#define Mod1MapIndex	3
#define Mod2MapIndex	4
#define Mod3MapIndex	5
#define Mod4MapIndex	6
#define Mod5MapIndex	7

#define Button3Mask	(1<<10)
#define Button4Mask	(1<<11)
#define Button5Mask	(1<<12)
#define AnyModifier	(1<<15)
#define Button1Mask	(1<<8)
#define Button2Mask	(1<<9)

#define Button1	1
#define Button2	2
#define Button3	3
#define Button4	4
#define Button5	5

#define NotifyNormal	0
#define NotifyGrab	1
#define NotifyHint	1
#define NotifyUngrab	2
#define NotifyWhileGrabbed	3

#define NotifyAncestor	0
#define NotifyVirtual	1
#define NotifyInferior	2
#define NotifyNonlinear	3
#define NotifyNonlinearVirtual	4
#define NotifyPointer	5
#define NotifyPointerRoot	6
#define NotifyDetailNone	7

#define VisibilityUnobscured	0
#define VisibilityPartiallyObscured	1
#define VisibilityFullyObscured	2

#define PlaceOnTop	0
#define PlaceOnBottom	1

#define FamilyInternet	0
#define FamilyDECnet	1
#define FamilyChaos	2
#define FamilyServerInterpreted	5
#define FamilyInternet6	6	/* IPv6 */

#define PropModeReplace	0
#define PropertyNewValue	0
#define PropertyDelete	1

#define ColormapUninstalled	0
#define ColormapInstalled	1

#define GrabModeSync	0
#define GrabModeAsync	1

#define GrabSuccess	0
#define AlreadyGrabbed	1
#define GrabInvalidTime	2
#define GrabNotViewable	3
#define GrabFrozen	4

#define AsyncPointer	0
#define SyncPointer	1
#define ReplayPointer	2
#define AsyncKeyboard	3
#define SyncKeyboard	4
#define ReplayKeyboard	5
#define AsyncBoth	6
#define SyncBoth	7

#define RevertToNone	(int)None
#define RevertToPointerRoot	(int)PointerRoot
#define RevertToParent	2

#define Success	0
#define BadRequest	1
#define BadAccess	10
#define BadAlloc	11
#define BadColor	12
#define FirstExtensionError	128
#define BadGC	13
#define BadIDChoice	14
#define BadName	15
#define BadLength	16
#define BadImplementation	17
#define BadValue	2
#define LastExtensionError	255
#define BadWindow	3
#define BadPixmap	4
#define BadAtom	5
#define BadCursor	6
#define BadFont	7
#define BadMatch	8
#define BadDrawable	9

#define CWX	(1<<0)
#define InputOutput	1
#define InputOnly	2

#define CWBackPixmap	(1L<<0)
#define CWBackPixel	(1L<<1)
#define CWSaveUnder	(1L<<10)
#define CWEventMask	(1L<<11)
#define CWDontPropagate	(1L<<12)
#define CWColormap	(1L<<13)
#define CWCursor	(1L<<14)
#define CWBorderPixmap	(1L<<2)
#define CWBorderPixel	(1L<<3)
#define CWBitGravity	(1L<<4)
#define CWWinGravity	(1L<<5)
#define CWBackingStore	(1L<<6)
#define CWBackingPlanes	(1L<<7)
#define CWBackingPixel	(1L<<8)
#define CWOverrideRedirect	(1L<<9)

#define CWY	(1<<1)
#define CWWidth	(1<<2)
#define CWHeight	(1<<3)
#define CWBorderWidth	(1<<4)
#define CWSibling	(1<<5)
#define CWStackMode	(1<<6)

#define ForgetGravity	0
#define UnmapGravity	0
#define NorthWestGravity	1
#define StaticGravity	10
#define NorthGravity	2
#define NorthEastGravity	3
#define WestGravity	4
#define CenterGravity	5
#define EastGravity	6
#define SouthWestGravity	7
#define SouthGravity	8
#define SouthEastGravity	9

#define NotUseful	0
#define WhenMapped	1
#define Always	2

#define IsUnmapped	0
#define IsUnviewable	1
#define IsViewable	2

#define SetModeInsert	0
#define SetModeDelete	1

#define DestroyAll	0
#define RetainPermanent	1
#define RetainTemporary	2

#define Above	0
#define Below	1
#define TopIf	2
#define BottomIf	3
#define Opposite	4

#define RaiseLowest	0
#define LowerHighest	1

#define PropModePrepend	1
#define PropModeAppend	2

#define GXclear	0x0
#define GXand	0x1
#define GXandReverse	0x2
#define GXcopy	0x3
#define GXandInverted	0x4
#define GXnoop	0x5
#define GXxor	0x6
#define GXor	0x7
#define GXnor	0x8
#define GXequiv	0x9
#define GXinvert	0xa
#define GXorReverse	0xb
#define GXcopyInverted	0xc
#define GXorInverted	0xd
#define GXnand	0xe
#define GXset	0xf

#define LineSolid	0
#define LineOnOffDash	1
#define LineDoubleDash	2

#define CapNotLast	0
#define CapButt	1
#define CapRound	2
#define CapProjecting	3

#define JoinMiter	0
#define JoinRound	1
#define JoinBevel	2

#define FillSolid	0
#define FillTiled	1
#define FillStippled	2
#define FillOpaqueStippled	3

#define EvenOddRule	0
#define WindingRule	1

#define ClipByChildren	0
#define IncludeInferiors	1

#define Unsorted	0
#define XYBitmap	0
#define YSorted	1
#define YXSorted	2
#define YXBanded	3

#define CoordModeOrigin	0
#define CoordModePrevious	1

#define Complex	0
#define Nonconvex	1
#define Convex	2

#define ArcChord	0
#define ArcPieSlice	1

#define GCFunction	(1L<<0)
#define GCPlaneMask	(1L<<1)
#define GCTile	(1L<<10)
#define GCStipple	(1L<<11)
#define GCTileStipXOrigin	(1L<<12)
#define GCTileStipYOrigin	(1L<<13)
#define GCFont	(1L<<14)
#define GCSubwindowMode	(1L<<15)
#define GCGraphicsExposures	(1L<<16)
#define GCClipXOrigin	(1L<<17)
#define GCClipYOrigin	(1L<<18)
#define GCClipMask	(1L<<19)
#define GCForeground	(1L<<2)
#define GCDashOffset	(1L<<20)
#define GCDashList	(1L<<21)
#define GCArcMode	(1L<<22)
#define GCBackground	(1L<<3)
#define GCLineWidth	(1L<<4)
#define GCLineStyle	(1L<<5)
#define GCCapStyle	(1L<<6)
#define GCJoinStyle	(1L<<7)
#define GCFillStyle	(1L<<8)
#define GCFillRule	(1L<<9)
#define GCLastBit	22
#define FontChange	255

#define FontLeftToRight	0
#define FontRightToLeft	1

#define XYPixmap	1
#define ZPixmap	2

#define AllocNone	0
#define AllocAll	1

#define DoRed	(1<<0)
#define DoGreen	(1<<1)
#define DoBlue	(1<<2)

#define CursorShape	0
#define TileShape	1
#define StippleShape	2

#define AutoRepeatModeOff	0
#define LedModeOff	0
#define AutoRepeatModeOn	1
#define LedModeOn	1
#define AutoRepeatModeDefault	2

#define KBKeyClickPercent	(1L<<0)
#define KBBellPercent	(1L<<1)
#define KBBellPitch	(1L<<2)
#define KBBellDuration	(1L<<3)
#define KBLed	(1L<<4)
#define KBLedMode	(1L<<5)
#define KBKey	(1L<<6)
#define KBAutoRepeatMode	(1L<<7)
#define MappingModifier	0
#define MappingSuccess	0
#define MappingBusy	1
#define MappingKeyboard	1
#define MappingFailed	2
#define MappingPointer	2

#define DisableScreenInterval	0
#define DisableScreenSaver	0
#define DontAllowExposures	0
#define DontPreferBlanking	0
#define AllowExposures	1
#define PreferBlanking	1
#define DefaultBlanking	2
#define DefaultExposures	2

#define ScreenSaverReset	0
#define ScreenSaverActive	1

#define HostInsert	0
#define HostDelete	1

#define DisableAccess	0
#define EnableAccess	1

#define StaticGray	0
#define GrayScale	1
#define StaticColor	2
#define PseudoColor	3
#define TrueColor	4
#define DirectColor	5

#define LSBFirst	0
#define MSBFirst	1

6.2.2. X11/XKBlib.h


#define _XKBLIB_H_
#define XkbNoteIndicatorMapChanges(o,n,w)	((o)->map_changes|=((n)->map_changes&(w)))
#define XkbNoteIndicatorStateChanges(o,n,w)	((o)->state_changes|=((n)->state_changes&(w)))
#define XkbLC_AllComposeControls	(0xc0000000)
#define XkbLC_AllControls	(0xc000001f)
#define XkbLC_ForceLatin1Lookup	(1<<0)
#define XkbLC_ConsumeLookupMods	(1<<1)
#define XkbLC_AlwaysConsumeShiftAndLock	(1<<2)
#define XkbLC_ConsumeKeysOnComposeFail	(1<<29)
#define XkbLC_IgnoreNewKeyboards	(1<<3)
#define XkbLC_ComposeLED	(1<<30)
#define XkbLC_BeepOnComposeFail	(1<<31)
#define XkbLC_ControlFallback	(1<<4)
#define XkbGetIndicatorMapChanges(d,x,c)	(XkbGetIndicatorMap((d),(c)->map_changes,x))
#define XkbChangeIndicatorMaps(d,x,c)	(XkbSetIndicatorMap((d),(c)->map_changes,x))
#define XkbOD_Success	0
#define XkbOD_BadLibraryVersion	1
#define XkbOD_ConnectionRefused	2
#define XkbOD_NonXkbServer	3
#define XkbOD_BadServerVersion	4
#define XkbGetControlsChanges(d,x,c)	XkbGetControls(d,(c)->changed_ctrls,x)
#define XkbChangeControls(d,x,c)	XkbSetControls(d,(c)->changed_ctrls,x)

typedef struct _XkbAnyEvent {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    unsigned int device;
} XkbAnyEvent;
typedef struct _XkbNewKeyboardNotify {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    int device;
    int old_device;
    int min_key_code;
    int max_key_code;
    int old_min_key_code;
    int old_max_key_code;
    unsigned int changed;
    char req_major;
    char req_minor;
} XkbNewKeyboardNotifyEvent;
typedef struct _XkbMapNotifyEvent {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    int device;
    unsigned int changed;
    unsigned int flags;
    int first_type;
    int num_types;
    KeyCode min_key_code;
    KeyCode max_key_code;
    KeyCode first_key_sym;
    KeyCode first_key_act;
    KeyCode first_key_behavior;
    KeyCode first_key_explicit;
    KeyCode first_modmap_key;
    KeyCode first_vmodmap_key;
    int num_key_syms;
    int num_key_acts;
    int num_key_behaviors;
    int num_key_explicit;
    int num_modmap_keys;
    int num_vmodmap_keys;
    unsigned int vmods;
} XkbMapNotifyEvent;
typedef struct _XkbStateNotifyEvent {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    int device;
    unsigned int changed;
    int group;
    int base_group;
    int latched_group;
    int locked_group;
    unsigned int mods;
    unsigned int base_mods;
    unsigned int latched_mods;
    unsigned int locked_mods;
    int compat_state;
    unsigned char grab_mods;
    unsigned char compat_grab_mods;
    unsigned char lookup_mods;
    unsigned char compat_lookup_mods;
    int ptr_buttons;
    KeyCode keycode;
    char event_type;
    char req_major;
    char req_minor;
} XkbStateNotifyEvent;
typedef struct _XkbControlsNotify {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    int device;
    unsigned int changed_ctrls;
    unsigned int enabled_ctrls;
    unsigned int enabled_ctrl_changes;
    int num_groups;
    KeyCode keycode;
    char event_type;
    char req_major;
    char req_minor;
} XkbControlsNotifyEvent;
typedef struct _XkbIndicatorNotify {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    int device;
    unsigned int changed;
    unsigned int state;
} XkbIndicatorNotifyEvent;
typedef struct _XkbNamesNotify {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    int device;
    unsigned int changed;
    int first_type;
    int num_types;
    int first_lvl;
    int num_lvls;
    int num_aliases;
    int num_radio_groups;
    unsigned int changed_vmods;
    unsigned int changed_groups;
    unsigned int changed_indicators;
    int first_key;
    int num_keys;
} XkbNamesNotifyEvent;
typedef struct _XkbCompatMapNotify {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    int device;
    unsigned int changed_groups;
    int first_si;
    int num_si;
    int num_total_si;
} XkbCompatMapNotifyEvent;
typedef struct _XkbBellNotify {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    int device;
    int percent;
    int pitch;
    int duration;
    int bell_class;
    int bell_id;
    Atom name;
    Window window;
    int event_only;
} XkbBellNotifyEvent;
typedef struct _XkbActionMessage {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    int device;
    KeyCode keycode;
    int press;
    int key_event_follows;
    int group;
    unsigned int mods;
    char message;
} XkbActionMessageEvent;
typedef struct _XkbAccessXNotify {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    int device;
    int detail;
    int keycode;
    int sk_delay;
    int debounce_delay;
} XkbAccessXNotifyEvent;
typedef struct _XkbExtensionDeviceNotify {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Time time;
    int xkb_type;
    int device;
    unsigned int reason;
    unsigned int supported;
    unsigned int unsupported;
    int first_btn;
    int num_btns;
    unsigned int leds_defined;
    unsigned int led_state;
    int led_class;
    int led_id;
} XkbExtensionDeviceNotifyEvent;
union _XkbEvent {
    int type;
    XkbAnyEvent any;
    XkbNewKeyboardNotifyEvent new_kbd;
    XkbMapNotifyEvent map;
    XkbStateNotifyEvent state;
    XkbControlsNotifyEvent ctrls;
    XkbIndicatorNotifyEvent indicators;
    XkbNamesNotifyEvent names;
    XkbCompatMapNotifyEvent compat;
    XkbBellNotifyEvent bell;
    XkbActionMessageEvent message;
    XkbAccessXNotifyEvent accessx;
    XkbExtensionDeviceNotifyEvent device;
    XEvent core;
};
typedef union _XkbEvent {
    int type;
    XkbAnyEvent any;
    XkbNewKeyboardNotifyEvent new_kbd;
    XkbMapNotifyEvent map;
    XkbStateNotifyEvent state;
    XkbControlsNotifyEvent ctrls;
    XkbIndicatorNotifyEvent indicators;
    XkbNamesNotifyEvent names;
    XkbCompatMapNotifyEvent compat;
    XkbBellNotifyEvent bell;
    XkbActionMessageEvent message;
    XkbAccessXNotifyEvent accessx;
    XkbExtensionDeviceNotifyEvent device;
    XEvent core;
} XkbEvent;
typedef struct _XkbKbdDpyState XkbKbdDpyStateRec;
typedef struct _XkbKbdDpyState *XkbKbdDpyStatePtr;
typedef Atom(*XkbInternAtomFunc) (Display *, const char *, int);
typedef char *(*XkbGetAtomNameFunc) (Display *, Atom);
extern int XkbAllocClientMap(XkbDescPtr, unsigned int, unsigned int);
extern int XkbAllocCompatMap(XkbDescPtr, unsigned int, unsigned int);
extern int XkbAllocControls(XkbDescPtr, unsigned int);
extern int XkbAllocIndicatorMaps(XkbDescPtr);
extern XkbDescPtr XkbAllocKeyboard(void);
extern int XkbAllocNames(XkbDescPtr, unsigned int, int, int);
extern int XkbAllocServerMap(XkbDescPtr, unsigned int, unsigned int);
extern int XkbApplyCompatMapToKey(XkbDescPtr, KeyCode, XkbChangesPtr);
extern int XkbBell(Display *, Window, int, Atom);
extern int XkbBellEvent(Display *, Window, int, Atom);
extern int XkbChangeEnabledControls(Display *, unsigned int, unsigned int,
				    unsigned int);
extern int XkbChangeMap(Display *, XkbDescPtr, XkbMapChangesPtr);
extern int XkbChangeNames(Display *, XkbDescPtr, XkbNameChangesPtr);
extern int XkbChangeTypesOfKey(XkbDescPtr, int, int, unsigned int, int *,
			       XkbMapChangesPtr);
extern int XkbComputeEffectiveMap(XkbDescPtr, XkbKeyTypePtr,
				  unsigned char *);
extern int XkbCopyKeyType(XkbKeyTypePtr, XkbKeyTypePtr);
extern int XkbCopyKeyTypes(XkbKeyTypePtr, XkbKeyTypePtr, int);
extern int XkbForceBell(Display *, int);
extern void XkbFreeClientMap(XkbDescPtr, unsigned int, int);
extern void XkbFreeCompatMap(XkbDescPtr, unsigned int, int);
extern void XkbFreeComponentList(XkbComponentListPtr);
extern void XkbFreeControls(XkbDescPtr, unsigned int, int);
extern void XkbFreeIndicatorMaps(XkbDescPtr);
extern void XkbFreeKeyboard(XkbDescPtr, unsigned int, int);
extern void XkbFreeNames(XkbDescPtr, unsigned int, int);
extern void XkbFreeServerMap(XkbDescPtr, unsigned int, int);
extern int XkbGetAutoRepeatRate(Display *, unsigned int, unsigned int *,
				unsigned int *);
extern int XkbGetCompatMap(Display *, unsigned int, XkbDescPtr);
extern int XkbGetControls(Display *, unsigned long int, XkbDescPtr);
extern int XkbGetIndicatorMap(Display *, unsigned long int, XkbDescPtr);
extern int XkbGetIndicatorState(Display *, unsigned int, unsigned int *);
extern int XkbGetKeyActions(Display *, unsigned int, unsigned int,
			    XkbDescPtr);
extern int XkbGetKeyBehaviors(Display *, unsigned int, unsigned int,
			      XkbDescPtr);
extern int XkbGetKeyExplicitComponents(Display *, unsigned int,
				       unsigned int, XkbDescPtr);
extern int XkbGetKeyModifierMap(Display *, unsigned int, unsigned int,
				XkbDescPtr);
extern int XkbGetKeySyms(Display *, unsigned int, unsigned int,
			 XkbDescPtr);
extern int XkbGetKeyTypes(Display *, unsigned int, unsigned int,
			  XkbDescPtr);
extern XkbDescPtr XkbGetKeyboard(Display *, unsigned int, unsigned int);
extern XkbDescPtr XkbGetKeyboardByName(Display *, unsigned int,
				       XkbComponentNamesPtr, unsigned int,
				       unsigned int, int);
extern XkbDescPtr XkbGetMap(Display *, unsigned int, unsigned int);
extern int XkbGetMapChanges(Display *, XkbDescPtr, XkbMapChangesPtr);
extern int XkbGetNamedIndicator(Display *, Atom, int *, int *,
				XkbIndicatorMapPtr, int *);
extern int XkbGetNames(Display *, unsigned int, XkbDescPtr);
extern int XkbGetPerClientControls(Display *, unsigned int *);
extern int XkbGetState(Display *, unsigned int, XkbStatePtr);
extern int XkbGetUpdatedMap(Display *, unsigned int, XkbDescPtr);
extern int XkbGetVirtualMods(Display *, unsigned int, XkbDescPtr);
extern unsigned int XkbGetXlibControls(Display *);
extern int XkbIgnoreExtension(int);
extern int XkbInitCanonicalKeyTypes(XkbDescPtr, unsigned int, int);
extern int XkbKeyTypesForCoreSymbols(XkbDescPtr, int, KeySym *,
				     unsigned int, int *, KeySym *);
extern KeySym XkbKeycodeToKeysym(Display *, unsigned int, int, int);
extern unsigned int XkbKeysymToModifiers(Display *, KeySym);
extern int XkbLatchGroup(Display *, unsigned int, unsigned int);
extern int XkbLatchModifiers(Display *, unsigned int, unsigned int,
			     unsigned int);
extern int XkbLibraryVersion(int *, int *);
extern XkbComponentListPtr XkbListComponents(Display *, unsigned int,
					     XkbComponentNamesPtr, int *);
extern int XkbLockGroup(Display *, unsigned int, unsigned int);
extern int XkbLockModifiers(Display *, unsigned int, unsigned int,
			    unsigned int);
extern int XkbLookupKeyBinding(Display *, KeySym, unsigned int, char *,
			       int, int *);
extern int XkbLookupKeySym(Display *, KeyCode, unsigned int,
			   unsigned int *, KeySym *);
extern void XkbNoteControlsChanges(XkbControlsChangesPtr,
				   XkbControlsNotifyEvent *, unsigned int);
extern void XkbNoteMapChanges(XkbMapChangesPtr, XkbMapNotifyEvent *,
			      unsigned int);
extern void XkbNoteNameChanges(XkbNameChangesPtr, XkbNamesNotifyEvent *,
			       unsigned int);
extern Display *XkbOpenDisplay(char *, int *, int *, int *, int *, int *);
extern int XkbQueryExtension(Display *, int *, int *, int *, int *, int *);
extern int XkbRefreshKeyboardMapping(XkbMapNotifyEvent *);
extern XkbAction *XkbResizeKeyActions(XkbDescPtr, int, int);
extern KeySym *XkbResizeKeySyms(XkbDescPtr, int, int);
extern int XkbResizeKeyType(XkbDescPtr, int, int, int, int);
extern int XkbSelectEventDetails(Display *, unsigned int, unsigned int,
				 unsigned long int, unsigned long int);
extern int XkbSelectEvents(Display *, unsigned int, unsigned int,
			   unsigned int);
extern void XkbSetAtomFuncs(XkbInternAtomFunc, XkbGetAtomNameFunc);
extern int XkbSetAutoRepeatRate(Display *, unsigned int, unsigned int,
				unsigned int);
extern int XkbSetAutoResetControls(Display *, unsigned int, unsigned int *,
				   unsigned int *);
extern int XkbSetCompatMap(Display *, unsigned int, XkbDescPtr, int);
extern int XkbSetControls(Display *, unsigned long int, XkbDescPtr);
extern int XkbSetDebuggingFlags(Display *, unsigned int, unsigned int,
				char *, unsigned int, unsigned int,
				unsigned int *, unsigned int *);
extern int XkbSetDetectableAutoRepeat(Display *, int, int *);
extern int XkbSetIgnoreLockMods(Display *, unsigned int, unsigned int,
				unsigned int, unsigned int, unsigned int);
extern int XkbSetIndicatorMap(Display *, unsigned long int, XkbDescPtr);
extern int XkbSetMap(Display *, unsigned int, XkbDescPtr);
extern int XkbSetNamedIndicator(Display *, Atom, int, int, int,
				XkbIndicatorMapPtr);
extern int XkbSetNames(Display *, unsigned int, unsigned int, unsigned int,
		       XkbDescPtr);
extern int XkbSetPerClientControls(Display *, unsigned int,
				   unsigned int *);
extern int XkbSetServerInternalMods(Display *, unsigned int, unsigned int,
				    unsigned int, unsigned int,
				    unsigned int);
extern unsigned int XkbSetXlibControls(Display *, unsigned int,
				       unsigned int);
extern char XkbToControl(char);
extern int XkbTranslateKeyCode(XkbDescPtr, KeyCode, unsigned int,
			       unsigned int *, KeySym *);
extern int XkbTranslateKeySym(Display *, KeySym *, unsigned int, char *,
			      int, int *);
extern int XkbUpdateMapFromCore(XkbDescPtr, KeyCode, int, int, KeySym *,
				XkbChangesPtr);
extern int XkbUseExtension(Display *, int *, int *);
extern int XkbVirtualModsToReal(XkbDescPtr, unsigned int, unsigned int *);

6.2.3. X11/Xatom.h


#define XA_PRIMARY	((Atom) 1)
#define XA_CUT_BUFFER1	((Atom) 10)
#define XA_CUT_BUFFER2	((Atom) 11)
#define XA_CUT_BUFFER3	((Atom) 12)
#define XA_CUT_BUFFER4	((Atom) 13)
#define XA_CUT_BUFFER5	((Atom) 14)
#define XA_CUT_BUFFER6	((Atom) 15)
#define XA_CUT_BUFFER7	((Atom) 16)
#define XA_DRAWABLE	((Atom) 17)
#define XA_FONT	((Atom) 18)
#define XA_INTEGER	((Atom) 19)
#define XA_SECONDARY	((Atom) 2)
#define XA_PIXMAP	((Atom) 20)
#define XA_POINT	((Atom) 21)
#define XA_RECTANGLE	((Atom) 22)
#define XA_RESOURCE_MANAGER	((Atom) 23)
#define XA_RGB_COLOR_MAP	((Atom) 24)
#define XA_RGB_BEST_MAP	((Atom) 25)
#define XA_RGB_BLUE_MAP	((Atom) 26)
#define XA_RGB_DEFAULT_MAP	((Atom) 27)
#define XA_RGB_GRAY_MAP	((Atom) 28)
#define XA_RGB_GREEN_MAP	((Atom) 29)
#define XA_ARC	((Atom) 3)
#define XA_RGB_RED_MAP	((Atom) 30)
#define XA_STRING	((Atom) 31)
#define XA_VISUALID	((Atom) 32)
#define XA_WINDOW	((Atom) 33)
#define XA_WM_COMMAND	((Atom) 34)
#define XA_WM_HINTS	((Atom) 35)
#define XA_WM_CLIENT_MACHINE	((Atom) 36)
#define XA_WM_ICON_NAME	((Atom) 37)
#define XA_WM_ICON_SIZE	((Atom) 38)
#define XA_WM_NAME	((Atom) 39)
#define XA_ATOM	((Atom) 4)
#define XA_WM_NORMAL_HINTS	((Atom) 40)
#define XA_WM_SIZE_HINTS	((Atom) 41)
#define XA_WM_ZOOM_HINTS	((Atom) 42)
#define XA_MIN_SPACE	((Atom) 43)
#define XA_NORM_SPACE	((Atom) 44)
#define XA_MAX_SPACE	((Atom) 45)
#define XA_END_SPACE	((Atom) 46)
#define XA_SUPERSCRIPT_X	((Atom) 47)
#define XA_SUPERSCRIPT_Y	((Atom) 48)
#define XA_SUBSCRIPT_X	((Atom) 49)
#define XA_BITMAP	((Atom) 5)
#define XA_SUBSCRIPT_Y	((Atom) 50)
#define XA_UNDERLINE_POSITION	((Atom) 51)
#define XA_UNDERLINE_THICKNESS	((Atom) 52)
#define XA_STRIKEOUT_ASCENT	((Atom) 53)
#define XA_STRIKEOUT_DESCENT	((Atom) 54)
#define XA_ITALIC_ANGLE	((Atom) 55)
#define XA_X_HEIGHT	((Atom) 56)
#define XA_QUAD_WIDTH	((Atom) 57)
#define XA_WEIGHT	((Atom) 58)
#define XA_POINT_SIZE	((Atom) 59)
#define XA_CARDINAL	((Atom) 6)
#define XA_RESOLUTION	((Atom) 60)
#define XA_COPYRIGHT	((Atom) 61)
#define XA_NOTICE	((Atom) 62)
#define XA_FONT_NAME	((Atom) 63)
#define XA_FAMILY_NAME	((Atom) 64)
#define XA_FULL_NAME	((Atom) 65)
#define XA_CAP_HEIGHT	((Atom) 66)
#define XA_WM_CLASS	((Atom) 67)
#define XA_LAST_PREDEFINED	((Atom) 68)
#define XA_WM_TRANSIENT_FOR	((Atom) 68)
#define XA_COLORMAP	((Atom) 7)
#define XA_CURSOR	((Atom) 8)
#define XA_CUT_BUFFER0	((Atom) 9)
#define XATOM_H	1

6.2.4. X11/Xauth.h


#define FamilyLocalHost	(252)
#define FamilyKrb5Principal	(253)
#define FamilyNetname	(254)
#define FamilyLocal	(256)
#define FamilyWild	(65535)
#define LOCK_SUCCESS	0
#define LOCK_ERROR	1
#define _Xauth_h	1
#define LOCK_TIMEOUT	2

typedef struct xauth {
    unsigned short family;
    unsigned short address_length;
    char *address;
    unsigned short number_length;
    char *number;
    unsigned short name_length;
    char *name;
    unsigned short data_length;
    char *data;
} Xauth;
extern void XauDisposeAuth(Xauth *);
extern char *XauFileName(void);
extern Xauth *XauGetBestAuthByAddr(unsigned int, unsigned int,
				   const char *, unsigned int,
				   const char *, int, char **,
				   const int *);
extern Xauth *XauReadAuth(FILE *);

6.2.5. X11/Xcms.h


#define ClientWhitePointOfCCC(ccc)	(&(ccc)->clientWhitePt)
#define ScreenWhitePointOfCCC(ccc)	(&(ccc)->pPerScrnInfo->screenWhitePt)
#define DisplayOfCCC(ccc)	((ccc)->dpy)
#define FunctionSetOfCCC(ccc)	((ccc)->pPerScrnInfo->functionSet)
#define ScreenNumberOfCCC(ccc)	((ccc)->screenNumber)
#define VisualOfCCC(ccc)	((ccc)->visual)
#define XcmsUndefinedFormat	(XcmsColorFormat)0x00000000
#define XcmsCIEXYZFormat	(XcmsColorFormat)0x00000001
#define XcmsCIEuvYFormat	(XcmsColorFormat)0x00000002
#define XcmsCIExyYFormat	(XcmsColorFormat)0x00000003
#define XcmsCIELabFormat	(XcmsColorFormat)0x00000004
#define XcmsCIELuvFormat	(XcmsColorFormat)0x00000005
#define XcmsTekHVCFormat	(XcmsColorFormat)0x00000006
#define XcmsRGBFormat	(XcmsColorFormat)0x80000000
#define XcmsRGBiFormat	(XcmsColorFormat)0x80000001
#define XcmsFailure	0
#define XcmsInitNone	0x00
#define XcmsInitSuccess	0x01
#define XcmsInitFailure	0xff
#define XcmsSuccess	1
#define XcmsSuccessWithCompression	2

typedef unsigned long int XcmsColorFormat;
typedef double XcmsFloat;
typedef struct {
    unsigned short red;
    unsigned short green;
    unsigned short blue;
} XcmsRGB;
typedef struct {
    XcmsFloat red;
    XcmsFloat green;
    XcmsFloat blue;
} XcmsRGBi;
typedef struct {
    XcmsFloat X;
    XcmsFloat Y;
    XcmsFloat Z;
} XcmsCIEXYZ;
typedef struct {
    XcmsFloat u_prime;
    XcmsFloat v_prime;
    XcmsFloat Y;
} XcmsCIEuvY;
typedef struct {
    XcmsFloat x;
    XcmsFloat y;
    XcmsFloat Y;
} XcmsCIExyY;
typedef struct {
    XcmsFloat L_star;
    XcmsFloat a_star;
    XcmsFloat b_star;
} XcmsCIELab;
typedef struct {
    XcmsFloat L_star;
    XcmsFloat u_star;
    XcmsFloat v_star;
} XcmsCIELuv;
typedef struct {
    XcmsFloat H;
    XcmsFloat V;
    XcmsFloat C;
} XcmsTekHVC;
typedef struct {
    XcmsFloat pad0;
    XcmsFloat pad1;
    XcmsFloat pad2;
    XcmsFloat pad3;
} XcmsPad;
typedef struct {
    union {
	XcmsRGB RGB;
	XcmsRGBi RGBi;
	XcmsCIEXYZ CIEXYZ;
	XcmsCIEuvY CIEuvY;
	XcmsCIExyY CIExyY;
	XcmsCIELab CIELab;
	XcmsCIELuv CIELuv;
	XcmsTekHVC TekHVC;
	XcmsPad Pad;
    } spec;
    unsigned long int pixel;
    XcmsColorFormat format;
} XcmsColor;
typedef struct _XcmsPerScrnInfo {
    XcmsColor screenWhitePt;
    XPointer functionSet;
    XPointer screenData;
    unsigned char state;
    char pad[3];
} XcmsPerScrnInfo;
typedef struct _XcmsCCC {
    Display *dpy;
    int screenNumber;
    Visual *visual;
    XcmsColor clientWhitePt;
    XcmsCompressionProc gamutCompProc;
    XPointer gamutCompClientData;
    XcmsWhiteAdjustProc whitePtAdjProc;
    XPointer whitePtAdjClientData;
    XcmsPerScrnInfo *pPerScrnInfo;
} XcmsCCCRec;
typedef struct _XcmsColorSpace {
    char *prefix;
    XcmsColorFormat id;
    XcmsParseStringProc parseString;
    XcmsFuncListPtr to_CIEXYZ;
    XcmsFuncListPtr from_CIEXYZ;
    int inverse_flag;
} XcmsColorSpace;
typedef struct _XcmsFunctionSet {
    XcmsColorSpace **DDColorSpaces;
    XcmsScreenInitProc screenInitProc;
    XcmsScreenFreeProc screenFreeProc;
} XcmsFunctionSet;
typedef struct _XcmsCCC *XcmsCCC;
typedef int (*XcmsCompressionProc) (XcmsCCC, XcmsColor *, unsigned int,
				    unsigned int, int *);
typedef int (*XcmsWhiteAdjustProc) (XcmsCCC, XcmsColor *, XcmsColor *,
				    XcmsColorFormat, XcmsColor *,
				    unsigned int, int *);
typedef int (*XcmsScreenInitProc) (Display *, int, XcmsPerScrnInfo *);
typedef void (*XcmsScreenFreeProc) (XPointer);
typedef int (*XcmsDIConversionProc) (XcmsCCC, XcmsColor *, XcmsColor *,
				     unsigned int);
typedef XcmsDIConversionProc XcmsConversionProc;
typedef int (*XcmsParseStringProc) (char *, XcmsColor *);
typedef XcmsConversionProc *XcmsFuncListPtr;
typedef int (*XcmsDDConversionProc) (XcmsCCC, XcmsColor *, unsigned int,
				     int *);

extern int XcmsAddColorSpace(XcmsColorSpace *);
extern int XcmsAddFunctionSet(XcmsFunctionSet *);
extern int XcmsAllocColor(Display *, Colormap, XcmsColor *,
			  XcmsColorFormat);
extern int XcmsAllocNamedColor(Display *, Colormap, const char *,
			       XcmsColor *, XcmsColor *, XcmsColorFormat);
extern XcmsCCC XcmsCCCOfColormap(Display *, Colormap);
extern int XcmsCIELabClipL(XcmsCCC, XcmsColor *, unsigned int,
			   unsigned int, int *);
extern int XcmsCIELabClipLab(XcmsCCC, XcmsColor *, unsigned int,
			     unsigned int, int *);
extern int XcmsCIELabClipab(XcmsCCC, XcmsColor *, unsigned int,
			    unsigned int, int *);
extern int XcmsCIELabQueryMaxC(XcmsCCC, XcmsFloat, XcmsFloat, XcmsColor *);
extern int XcmsCIELabQueryMaxL(XcmsCCC, XcmsFloat, XcmsFloat, XcmsColor *);
extern int XcmsCIELabQueryMaxLC(XcmsCCC, XcmsFloat, XcmsColor *);
extern int XcmsCIELabQueryMinL(XcmsCCC, XcmsFloat, XcmsFloat, XcmsColor *);
extern int XcmsCIELabToCIEXYZ(XcmsCCC, XcmsColor *, XcmsColor *,
			      unsigned int);
extern int XcmsCIELabWhiteShiftColors(XcmsCCC, XcmsColor *, XcmsColor *,
				      XcmsColorFormat, XcmsColor *,
				      unsigned int, int *);
extern int XcmsCIELuvClipL(XcmsCCC, XcmsColor *, unsigned int,
			   unsigned int, int *);
extern int XcmsCIELuvClipLuv(XcmsCCC, XcmsColor *, unsigned int,
			     unsigned int, int *);
extern int XcmsCIELuvClipuv(XcmsCCC, XcmsColor *, unsigned int,
			    unsigned int, int *);
extern int XcmsCIELuvQueryMaxC(XcmsCCC, XcmsFloat, XcmsFloat, XcmsColor *);
extern int XcmsCIELuvQueryMaxL(XcmsCCC, XcmsFloat, XcmsFloat, XcmsColor *);
extern int XcmsCIELuvQueryMaxLC(XcmsCCC, XcmsFloat, XcmsColor *);
extern int XcmsCIELuvQueryMinL(XcmsCCC, XcmsFloat, XcmsFloat, XcmsColor *);
extern int XcmsCIELuvToCIEuvY(XcmsCCC, XcmsColor *, XcmsColor *,
			      unsigned int);
extern int XcmsCIELuvWhiteShiftColors(XcmsCCC, XcmsColor *, XcmsColor *,
				      XcmsColorFormat, XcmsColor *,
				      unsigned int, int *);
extern int XcmsCIEXYZToCIELab(XcmsCCC, XcmsColor *, XcmsColor *,
			      unsigned int);
extern int XcmsCIEXYZToCIEuvY(XcmsCCC, XcmsColor *, XcmsColor *,
			      unsigned int);
extern int XcmsCIEXYZToCIExyY(XcmsCCC, XcmsColor *, XcmsColor *,
			      unsigned int);
extern int XcmsCIEXYZToRGBi(XcmsCCC, XcmsColor *, unsigned int, int *);
extern int XcmsCIEuvYToCIELuv(XcmsCCC, XcmsColor *, XcmsColor *,
			      unsigned int);
extern int XcmsCIEuvYToCIEXYZ(XcmsCCC, XcmsColor *, XcmsColor *,
			      unsigned int);
extern int XcmsCIEuvYToTekHVC(XcmsCCC, XcmsColor *, XcmsColor *,
			      unsigned int);
extern int XcmsCIExyYToCIEXYZ(XcmsCCC, XcmsColor *, XcmsColor *,
			      unsigned int);
extern XcmsColor *XcmsClientWhitePointOfCCC(XcmsCCC);
extern int XcmsConvertColors(XcmsCCC, XcmsColor *, unsigned int,
			     XcmsColorFormat, int *);
extern XcmsCCC XcmsCreateCCC(Display *, int, Visual *, XcmsColor *,
			     XcmsCompressionProc, XPointer,
			     XcmsWhiteAdjustProc, XPointer);
extern XcmsCCC XcmsDefaultCCC(Display *, int);
extern Display *XcmsDisplayOfCCC(XcmsCCC);
extern XcmsColorFormat XcmsFormatOfPrefix(char *);
extern void XcmsFreeCCC(XcmsCCC);
extern int XcmsLookupColor(Display *, Colormap, const char *, XcmsColor *,
			   XcmsColor *, XcmsColorFormat);
extern char *XcmsPrefixOfFormat(XcmsColorFormat);
extern int XcmsQueryBlack(XcmsCCC, XcmsColorFormat, XcmsColor *);
extern int XcmsQueryBlue(XcmsCCC, XcmsColorFormat, XcmsColor *);
extern int XcmsQueryColor(Display *, Colormap, XcmsColor *,
			  XcmsColorFormat);
extern int XcmsQueryColors(Display *, Colormap, XcmsColor *, unsigned int,
			   XcmsColorFormat);
extern int XcmsQueryGreen(XcmsCCC, XcmsColorFormat, XcmsColor *);
extern int XcmsQueryRed(XcmsCCC, XcmsColorFormat, XcmsColor *);
extern int XcmsQueryWhite(XcmsCCC, XcmsColorFormat, XcmsColor *);
extern int XcmsRGBToRGBi(XcmsCCC, XcmsColor *, unsigned int, int *);
extern int XcmsRGBiToCIEXYZ(XcmsCCC, XcmsColor *, unsigned int, int *);
extern int XcmsRGBiToRGB(XcmsCCC, XcmsColor *, unsigned int, int *);
extern int XcmsScreenNumberOfCCC(XcmsCCC);
extern XcmsColor *XcmsScreenWhitePointOfCCC(XcmsCCC);
extern XcmsCCC XcmsSetCCCOfColormap(Display *, Colormap, XcmsCCC);
extern XcmsCompressionProc XcmsSetCompressionProc(XcmsCCC,
						  XcmsCompressionProc,
						  XPointer);
extern XcmsWhiteAdjustProc XcmsSetWhiteAdjustProc(XcmsCCC,
						  XcmsWhiteAdjustProc,
						  XPointer);
extern int XcmsSetWhitePoint(XcmsCCC, XcmsColor *);
extern int XcmsStoreColor(Display *, Colormap, XcmsColor *);
extern int XcmsStoreColors(Display *, Colormap, XcmsColor *, unsigned int,
			   int *);
extern int XcmsTekHVCClipC(XcmsCCC, XcmsColor *, unsigned int,
			   unsigned int, int *);
extern int XcmsTekHVCClipV(XcmsCCC, XcmsColor *, unsigned int,
			   unsigned int, int *);
extern int XcmsTekHVCClipVC(XcmsCCC, XcmsColor *, unsigned int,
			    unsigned int, int *);
extern int XcmsTekHVCQueryMaxC(XcmsCCC, XcmsFloat, XcmsFloat, XcmsColor *);
extern int XcmsTekHVCQueryMaxV(XcmsCCC, XcmsFloat, XcmsFloat, XcmsColor *);
extern int XcmsTekHVCQueryMaxVC(XcmsCCC, XcmsFloat, XcmsColor *);
extern int XcmsTekHVCQueryMaxVSamples(XcmsCCC, XcmsFloat, XcmsColor *,
				      unsigned int);
extern int XcmsTekHVCQueryMinV(XcmsCCC, XcmsFloat, XcmsFloat, XcmsColor *);
extern int XcmsTekHVCToCIEuvY(XcmsCCC, XcmsColor *, XcmsColor *,
			      unsigned int);
extern int XcmsTekHVCWhiteShiftColors(XcmsCCC, XcmsColor *, XcmsColor *,
				      XcmsColorFormat, XcmsColor *,
				      unsigned int, int *);
extern Visual *XcmsVisualOfCCC(XcmsCCC);

6.2.6. X11/Xfuncproto.h


#define NARROWPROTO
#ifdef __cplusplus
#define _XFUNCPROTOBEGIN extern "C" {
#else
#define _XFUNCPROTOBEGIN
#endif
#ifdef __cplusplus
#define _XFUNCPROTOEND }
#else
#define _XFUNCPROTOEND
#endif
#define NeedFunctionPrototypes	1
#define NeedNestedPrototypes	1
#define NeedVarargsPrototypes	1
#define NeedWidePrototypes	1
#define FUNCPROTO	15
#define _Xconst	const
#define _X_INLINE	inline
#define _X_SENTINEL(x)	__attribute__ ((__sentinel__(x)))
#define _X_DEPRECATED	__attribute__((deprecated))
#define _X_EXPORT	__attribute__((visibility("default")))
#define _X_HIDDEN	__attribute__((visibility("hidden")))
#define _X_INTERNAL	__attribute__((visibility("internal")))
#define _X_ATTRIBUTE_PRINTF(x,y)	__attribute__((__format__(__printf__,x,y)))
#define _X_UNLIKELY(x)	__builtin_expect(!!(x), 0)
#define _X_LIKELY(x)	__builtin_expect(!!(x), 1)

6.2.7. X11/Xlib.h


struct _XDisplay;

typedef char *XPointer;
typedef struct {
    unsigned long int pixel;
    unsigned short red;
    unsigned short green;
    unsigned short blue;
    char flags;
    char pad;
} XColor;
typedef struct _XDisplay Display;
typedef struct {
    int type;
    Display *display;
    XID resourceid;
    unsigned long int serial;
    unsigned char error_code;
    unsigned char request_code;
    unsigned char minor_code;
} XErrorEvent;
typedef struct _XIM *XIM;
typedef struct _XIC *XIC;
typedef void *XVaNestedList;
typedef unsigned long int XIMFeedback;
typedef struct _XIMText {
    unsigned short length;
    XIMFeedback *feedback;
    int encoding_is_wchar;
    union {
	char *multi_byte;
	wchar_t *wide_char;
    } string;
} XIMText;
typedef unsigned long int XIMPreeditState;
typedef struct _XIMPreeditStateNotifyCallbackStruct {
    XIMPreeditState state;
} XIMPreeditStateNotifyCallbackStruct;
typedef unsigned long int XIMResetState;
typedef unsigned long int XIMStringConversionFeedback;
typedef struct _XIMStringConversionText {
    unsigned short length;
    XIMStringConversionFeedback *feedback;
    int encoding_is_wchar;
    union {
	char *mbs;
	wchar_t *wcs;
    } string;
} XIMStringConversionText;
typedef unsigned short XIMStringConversionPosition;
typedef unsigned short XIMStringConversionType;
typedef unsigned short XIMStringConversionOperation;
typedef struct _XIMStringConversionCallbackStruct {
    XIMStringConversionPosition position;
    XIMCaretDirection direction;
    XIMStringConversionOperation operation;
    unsigned short factor;
    XIMStringConversionText *text;
} XIMStringConversionCallbackStruct;
typedef struct _XIMPreeditDrawCallbackStruct {
    int caret;
    int chg_first;
    int chg_length;
    XIMText *text;
} XIMPreeditDrawCallbackStruct;
typedef struct _XIMPreeditCaretCallbackStruct {
    int position;
    XIMCaretDirection direction;
    XIMCaretStyle style;
} XIMPreeditCaretCallbackStruct;
typedef struct _XIMStatusDrawCallbackStruct {
    XIMStatusDataType type;
    union {
	XIMText *text;
	Pixmap bitmap;
    } data;
} XIMStatusDrawCallbackStruct;
typedef struct _XIMHotKeyTrigger {
    KeySym keysym;
    int modifier;
    int modifier_mask;
} XIMHotKeyTrigger;
typedef struct _XIMHotKeyTriggers {
    int num_hot_key;
    XIMHotKeyTrigger *key;
} XIMHotKeyTriggers;
typedef unsigned long int XIMHotKeyState;
typedef struct {
    unsigned short count_values;
    char **supported_values;
} XIMValuesList;
typedef void (*XIMProc) (XIM, XPointer, XPointer);
typedef int (*XICProc) (XIC, XPointer, XPointer);
typedef enum {
    XIMForwardChar = 0,
    XIMBackwardChar = 1,
    XIMForwardWord = 2,
    XIMBackwardWord = 3,
    XIMCaretUp = 4,
    XIMCaretDown = 5,
    XIMNextLine = 6,
    XIMPreviousLine = 7,
    XIMLineStart = 8,
    XIMLineEnd = 9,
    XIMAbsolutePosition = 10,
    XIMDontChange = 11
} XIMCaretDirection;
typedef enum {
    XIMIsInvisible = 0,
    XIMIsPrimary = 1,
    XIMIsSecondary = 2
} XIMCaretStyle;
typedef enum {
    XIMTextType = 0,
    XIMBitmapType = 1
} XIMStatusDataType;
typedef int (*XErrorHandler) (Display *, XErrorEvent *);
typedef int (*XIOErrorHandler) (Display *);
typedef void (*XConnectionWatchProc) (Display *, XPointer, int, int,
				      XPointer *);

#define XNArea	"area"
#define XNAreaNeeded	"areaNeeded"
#define XNBackground	"background"
#define XNBackgroundPixmap	"backgroundPixmap"
#define XNBaseFontName	"baseFontName"
#define XNClientWindow	"clientWindow"
#define XNColormap	"colorMap"
#define XNContextualDrawing	"contextualDrawing"
#define XNCursor	"cursor"
#define XNDefaultString	"defaultString"
#define XNDestroyCallback	"destroyCallback"
#define XNDirectionalDependentDrawing	"directionalDependentDrawing"
#define XNFilterEvents	"filterEvents"
#define XNFocusWindow	"focusWindow"
#define XNFontInfo	"fontInfo"
#define XNFontSet	"fontSet"
#define XNForeground	"foreground"
#define XNGeometryCallback	"geometryCallback"
#define XNHotKey	"hotKey"
#define XNHotKeyState	"hotKeyState"
#define XNInputStyle	"inputStyle"
#define XNLineSpace	"lineSpace"
#define XNMissingCharSet	"missingCharSet"
#define XNOMAutomatic	"omAutomatic"
#define XNOrientation	"orientation"
#define XNPreeditAttributes	"preeditAttributes"
#define XNPreeditCaretCallback	"preeditCaretCallback"
#define XNPreeditDoneCallback	"preeditDoneCallback"
#define XNPreeditDrawCallback	"preeditDrawCallback"
#define XNPreeditStartCallback	"preeditStartCallback"
#define XNPreeditState	"preeditState"
#define XNPreeditStateNotifyCallback	"preeditStateNotifyCallback"
#define XNQueryICValuesList	"queryICValuesList"
#define XNQueryIMValuesList	"queryIMValuesList"
#define XNQueryInputStyle	"queryInputStyle"
#define XNQueryOrientation	"queryOrientation"
#define XNR6PreeditCallback	"r6PreeditCallback"
#define XNRequiredCharSet	"requiredCharSet"
#define XNResetState	"resetState"
#define XNResourceClass	"resourceClass"
#define XNResourceName	"resourceName"
#define XNSeparatorofNestedList	"separatorofNestedList"
#define XNSpotLocation	"spotLocation"
#define XNStatusAttributes	"statusAttributes"
#define XNStatusDoneCallback	"statusDoneCallback"
#define XNStatusDrawCallback	"statusDrawCallback"
#define XNStatusStartCallback	"statusStartCallback"
#define XNStdColormap	"stdColorMap"
#define XNStringConversion	"stringConversion"
#define XNStringConversionCallback	"stringConversionCallback"
#define XNVisiblePosition	"visiblePosition"
#define XNVaNestedList	"XNVaNestedList"
#define ScreenOfDisplay(dpy,scr)	(&((_XPrivDisplay)dpy)->screens[scr])
#define BitmapBitOrder(dpy)	(((_XPrivDisplay)dpy)->bitmap_bit_order)
#define BitmapPad(dpy)	(((_XPrivDisplay)dpy)->bitmap_pad)
#define BitmapUnit(dpy)	(((_XPrivDisplay)dpy)->bitmap_unit)
#define ImageByteOrder(dpy)	(((_XPrivDisplay)dpy)->byte_order)
#define DefaultScreen(dpy)	(((_XPrivDisplay)dpy)->default_screen)
#define DisplayString(dpy)	(((_XPrivDisplay)dpy)->display_name)
#define ConnectionNumber(dpy)	(((_XPrivDisplay)dpy)->fd)
#define LastKnownRequestProcessed(dpy)	(((_XPrivDisplay)dpy)->last_request_read)
#define ScreenCount(dpy)	(((_XPrivDisplay)dpy)->nscreens)
#define ProtocolVersion(dpy)	(((_XPrivDisplay)dpy)->proto_major_version)
#define ProtocolRevision(dpy)	(((_XPrivDisplay)dpy)->proto_minor_version)
#define QLength(dpy)	(((_XPrivDisplay)dpy)->qlen)
#define VendorRelease(dpy)	(((_XPrivDisplay)dpy)->release)
#define NextRequest(dpy)	(((_XPrivDisplay)dpy)->request+1)
#define ServerVendor(dpy)	(((_XPrivDisplay)dpy)->vendor)
#define XAllocID(dpy)	((*((_XPrivDisplay)dpy)->resource_alloc)((dpy)))
#define DoesBackingStore(s)	((s)->backing_store)
#define BlackPixelOfScreen(s)	((s)->black_pixel)
#define DefaultColormapOfScreen(s)	((s)->cmap)
#define DefaultGCOfScreen(s)	((s)->default_gc)
#define DisplayOfScreen(s)	((s)->display)
#define HeightOfScreen(s)	((s)->height)
#define MaxCmapsOfScreen(s)	((s)->max_maps)
#define HeightMMOfScreen(s)	((s)->mheight)
#define MinCmapsOfScreen(s)	((s)->min_maps)
#define WidthMMOfScreen(s)	((s)->mwidth)
#define RootWindowOfScreen(s)	((s)->root)
#define DefaultDepthOfScreen(s)	((s)->root_depth)
#define PlanesOfScreen(s)	((s)->root_depth)
#define EventMaskOfScreen(s)	((s)->root_input_mask)
#define DefaultVisualOfScreen(s)	((s)->root_visual)
#define DoesSaveUnders(s)	((s)->save_unders)
#define WhitePixelOfScreen(s)	((s)->white_pixel)
#define WidthOfScreen(s)	((s)->width)
#define AllPlanes	((unsigned long)~0L)
#define XIMStringConversionLeftEdge	(0x00000001)
#define XIMStringConversionRightEdge	(0x00000002)
#define XIMStringConversionTopEdge	(0x00000004)
#define XIMStringConversionBottomEdge	(0x00000008)
#define XIMStringConversionConcealed	(0x00000010)
#define XIMStringConversionWrapped	(0x00000020)
#define XIMStringConversionBuffer	(0x0001)
#define XIMStringConversionSubstitution	(0x0001)
#define XIMHotKeyStateON	(0x0001L)
#define XIMStringConversionLine	(0x0002)
#define XIMStringConversionRetrieval	(0x0002)
#define XIMHotKeyStateOFF	(0x0002L)
#define XIMStringConversionWord	(0x0003)
#define XIMStringConversionChar	(0x0004)
#define XIMPreeditDisable	(1L<<1)
#define XIMPreserveState	(1L<<1)
#define XIMUnderline	(1L<<1)
#define XIMVisibleToCenter	(1L<<10)
#define XIMHighlight	(1L<<2)
#define XIMPrimary	(1L<<5)
#define XIMSecondary	(1L<<6)
#define XIMTertiary	(1L<<7)
#define XIMVisibleToForward	(1L<<8)
#define XIMVisibleToBackword	(1L<<9)
#define DisplayCells(dpy,scr)	(DefaultVisual(dpy,scr)->map_entries)
#define CellsOfScreen(s)	(DefaultVisualOfScreen((s))->map_entries)
#define DefaultRootWindow(dpy)	(ScreenOfDisplay(dpy,DefaultScreen(dpy))->root)
#define BlackPixel(dpy,scr)	(ScreenOfDisplay(dpy,scr)->black_pixel)
#define DefaultColormap(dpy,scr)	(ScreenOfDisplay(dpy,scr)->cmap)
#define DefaultGC(dpy,scr)	(ScreenOfDisplay(dpy,scr)->default_gc)
#define DisplayHeight(dpy,scr)	(ScreenOfDisplay(dpy,scr)->height)
#define DisplayHeightMM(dpy,scr)	(ScreenOfDisplay(dpy,scr)->mheight)
#define DisplayWidthMM(dpy,scr)	(ScreenOfDisplay(dpy,scr)->mwidth)
#define RootWindow(dpy, scr)	(ScreenOfDisplay(dpy,scr)->root)
#define DefaultDepth(dpy,scr)	(ScreenOfDisplay(dpy,scr)->root_depth)
#define DisplayPlanes(dpy,scr)	(ScreenOfDisplay(dpy,scr)->root_depth)
#define DefaultVisual(dpy,scr)	(ScreenOfDisplay(dpy,scr)->root_visual)
#define WhitePixel(dpy,scr)	(ScreenOfDisplay(dpy,scr)->white_pixel)
#define DisplayWidth(dpy,scr)	(ScreenOfDisplay(dpy,scr)->width)
#define XBufferOverflow	-1
#define False	0
#define QueuedAlready	0
#define XIMPreeditUnKnown	0L
#define XIMPreeditArea	0x0001L
#define XIMPreeditCallbacks	0x0002L
#define XIMPreeditPosition	0x0004L
#define XIMPreeditNothing	0x0008L
#define XIMPreeditNone	0x0010L
#define XIMStatusArea	0x0100L
#define XIMStatusCallbacks	0x0200L
#define XIMStatusNothing	0x0400L
#define XIMStatusNone	0x0800L
#define QueuedAfterReading	1
#define True	1
#define XLookupNone	1
#define _XLIB_H_	1
#define XIMInitialState	1L
#define XIMPreeditEnable	1L
#define XIMReverse	1L
#define QueuedAfterFlush	2
#define XLookupChars	2
#define XLookupKeySym	3
#define XLookupBoth	4
#define XlibSpecificationRelease	6
#define Bool	int
#define Status	int
#define DefaultScreenOfDisplay(dpy)	ScreenOfDisplay(dpy,DefaultScreen(dpy))

typedef struct _XExtData {
    int number;
    struct _XExtData *next;
    int (*free_private) (struct _XExtData * extension);
    XPointer private_data;
} XExtData;
typedef struct {
    int extension;
    int major_opcode;
    int first_event;
    int first_error;
} XExtCodes;

typedef struct {
    int depth;
    int bits_per_pixel;
    int scanline_pad;
} XPixmapFormatValues;

typedef struct {
    int function;
    unsigned long int plane_mask;
    unsigned long int foreground;
    unsigned long int background;
    int line_width;
    int line_style;
    int cap_style;
    int join_style;
    int fill_style;
    int fill_rule;
    int arc_mode;
    Pixmap tile;
    Pixmap stipple;
    int ts_x_origin;
    int ts_y_origin;
    Font font;
    int subwindow_mode;
    int graphics_exposures;
    int clip_x_origin;
    int clip_y_origin;
    Pixmap clip_mask;
    int dash_offset;
    char dashes;
} XGCValues;

struct _XGC;
typedef struct _XGC *GC;

typedef struct {
    XExtData *ext_data;
    VisualID visualid;
#if defined(__cplusplus) || defined(c_plusplus)
    int c_class;
#else
    int class;
#endif
    unsigned long int red_mask;
    unsigned long int green_mask;
    unsigned long int blue_mask;
    int bits_per_rgb;
    int map_entries;
} Visual;

typedef struct {
    int depth;
    int nvisuals;
    Visual *visuals;
} Depth;

typedef struct {
    XExtData *ext_data;
    struct _XDisplay *display;
    Window root;
    int width;
    int height;
    int mwidth;
    int mheight;
    int ndepths;
    Depth *depths;
    int root_depth;
    Visual *root_visual;
    GC default_gc;
    Colormap cmap;
    unsigned long int white_pixel;
    unsigned long int black_pixel;
    int max_maps;
    int min_maps;
    int backing_store;
    int save_unders;
    long int root_input_mask;
} Screen;

typedef struct {
    XExtData *ext_data;
    int depth;
    int bits_per_pixel;
    int scanline_pad;
} ScreenFormat;

typedef struct {
    Pixmap background_pixmap;
    unsigned long int background_pixel;
    Pixmap border_pixmap;
    unsigned long int border_pixel;
    int bit_gravity;
    int win_gravity;
    int backing_store;
    unsigned long int backing_planes;
    unsigned long int backing_pixel;
    int save_under;
    long int event_mask;
    long int do_not_propagate_mask;
    int override_redirect;
    Colormap colormap;
    Cursor cursor;
} XSetWindowAttributes;
typedef struct {
    int x;
    int y;
    int width;
    int height;
    int border_width;
    int depth;
    Visual *visual;
    Window root;
#if defined(__cplusplus) || defined(c_plusplus)
    int c_class;
#else
    int class;
#endif
    int bit_gravity;
    int win_gravity;
    int backing_store;
    unsigned long int backing_planes;
    unsigned long int backing_pixel;
    int save_under;
    Colormap colormap;
    int map_installed;
    int map_state;
    long int all_event_masks;
    long int your_event_mask;
    long int do_not_propagate_mask;
    int override_redirect;
    Screen *screen;
} XWindowAttributes;

typedef struct {
    int family;
    int length;
    char *address;
} XHostAddress;

struct funcs {
    struct _XImage *(*create_image) (void);
    int (*destroy_image) (void);
    unsigned long int (*get_pixel) (void);
    int (*put_pixel) (void);
    struct _XImage *(*sub_image) (void);
    int (*add_pixel) (void);
};
typedef struct _XImage {
    int width;
    int height;
    int xoffset;
    int format;
    char *data;
    int byte_order;
    int bitmap_unit;
    int bitmap_bit_order;
    int bitmap_pad;
    int depth;
    int bytes_per_line;
    int bits_per_pixel;
    unsigned long int red_mask;
    unsigned long int green_mask;
    unsigned long int blue_mask;
    XPointer obdata;
    struct funcs f;
} XImage;

typedef struct {
    int x;
    int y;
    int width;
    int height;
    int border_width;
    Window sibling;
    int stack_mode;
} XWindowChanges;

typedef struct {
    short x1;
    short y1;
    short x2;
    short y2;
} XSegment;
typedef struct {
    short x;
    short y;
} XPoint;
typedef struct {
    short x;
    short y;
    unsigned short width;
    unsigned short height;
} XRectangle;
typedef struct {
    short x;
    short y;
    unsigned short width;
    unsigned short height;
    short angle1;
    short angle2;
} XArc;

typedef struct {
    int key_click_percent;
    int bell_percent;
    int bell_pitch;
    int bell_duration;
    int led;
    int led_mode;
    int key;
    int auto_repeat_mode;
} XKeyboardControl;

typedef struct {
    int key_click_percent;
    int bell_percent;
    unsigned int bell_pitch;
    unsigned int bell_duration;
    unsigned long int led_mask;
    int global_auto_repeat;
    char auto_repeats[32];
} XKeyboardState;

typedef struct {
    Time time;
    short x;
    short y;
} XTimeCoord;

typedef struct {
    int max_keypermod;
    KeyCode *modifiermap;
} XModifierKeymap;

typedef struct {
    XExtData *ext_data;
    struct _XPrivate *private1;
    int fd;
    int private2;
    int proto_major_version;
    int proto_minor_version;
    char *vendor;
    XID private3;
    XID private4;
    XID private5;
    int private6;
     XID(*resource_alloc) (struct _XDisplay *);
    int byte_order;
    int bitmap_unit;
    int bitmap_pad;
    int bitmap_bit_order;
    int nformats;
    ScreenFormat *pixmap_format;
    int private8;
    int release;
    struct _XPrivate *private9;
    struct _XPrivate *private10;
    int qlen;
    unsigned long int last_request_read;
    unsigned long int request;
    XPointer private11;
    XPointer private12;
    XPointer private13;
    XPointer private14;
    unsigned int max_request_size;
    struct _XrmHashBucketRec *db;
    int (*private15) (struct _XDisplay *);
    char *display_name;
    int default_screen;
    int nscreens;
    Screen *screens;
    unsigned long int motion_buffer;
    unsigned long int private16;
    int min_keycode;
    int max_keycode;
    XPointer private17;
    XPointer private18;
    int private19;
    char *xdefaults;
} *_XPrivDisplay;

typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    Window root;
    Window subwindow;
    Time time;
    int x;
    int y;
    int x_root;
    int y_root;
    unsigned int state;
    unsigned int keycode;
    int same_screen;
} XKeyEvent;
typedef XKeyEvent XKeyPressedEvent;
typedef XKeyEvent XKeyReleasedEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    Window root;
    Window subwindow;
    Time time;
    int x;
    int y;
    int x_root;
    int y_root;
    unsigned int state;
    unsigned int button;
    int same_screen;
} XButtonEvent;
typedef XButtonEvent XButtonPressedEvent;
typedef XButtonEvent XButtonReleasedEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    Window root;
    Window subwindow;
    Time time;
    int x;
    int y;
    int x_root;
    int y_root;
    unsigned int state;
    char is_hint;
    int same_screen;
} XMotionEvent;
typedef XMotionEvent XPointerMovedEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    Window root;
    Window subwindow;
    Time time;
    int x;
    int y;
    int x_root;
    int y_root;
    int mode;
    int detail;
    int same_screen;
    int focus;
    unsigned int state;
} XCrossingEvent;
typedef XCrossingEvent XEnterWindowEvent;
typedef XCrossingEvent XLeaveWindowEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    int mode;
    int detail;
} XFocusChangeEvent;
typedef XFocusChangeEvent XFocusInEvent;
typedef XFocusChangeEvent XFocusOutEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    char key_vector[32];
} XKeymapEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    int x;
    int y;
    int width;
    int height;
    int count;
} XExposeEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Drawable drawable;
    int x;
    int y;
    int width;
    int height;
    int count;
    int major_code;
    int minor_code;
} XGraphicsExposeEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Drawable drawable;
    int major_code;
    int minor_code;
} XNoExposeEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    int state;
} XVisibilityEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window parent;
    Window window;
    int x;
    int y;
    int width;
    int height;
    int border_width;
    int override_redirect;
} XCreateWindowEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window event;
    Window window;
} XDestroyWindowEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window event;
    Window window;
    int from_configure;
} XUnmapEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window event;
    Window window;
    int override_redirect;
} XMapEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window parent;
    Window window;
} XMapRequestEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window event;
    Window window;
    Window parent;
    int x;
    int y;
    int override_redirect;
} XReparentEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window event;
    Window window;
    int x;
    int y;
    int width;
    int height;
    int border_width;
    Window above;
    int override_redirect;
} XConfigureEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window event;
    Window window;
    int x;
    int y;
} XGravityEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    int width;
    int height;
} XResizeRequestEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window parent;
    Window window;
    int x;
    int y;
    int width;
    int height;
    int border_width;
    Window above;
    int detail;
    unsigned long int value_mask;
} XConfigureRequestEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window event;
    Window window;
    int place;
} XCirculateEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window parent;
    Window window;
    int place;
} XCirculateRequestEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    Atom atom;
    Time time;
    int state;
} XPropertyEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    Atom selection;
    Time time;
} XSelectionClearEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window owner;
    Window requestor;
    Atom selection;
    Atom target;
    Atom property;
    Time time;
} XSelectionRequestEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window requestor;
    Atom selection;
    Atom target;
    Atom property;
    Time time;
} XSelectionEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    Colormap colormap;
#if defined(__cplusplus) || defined(c_plusplus)
    int c_new;
#else
    int new;
#endif
    int state;
} XColormapEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    Atom message_type;
    int format;
    union {
	char b[20];
	short s[10];
	long int l[5];
    } data;
} XClientMessageEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    int request;
    int first_keycode;
    int count;
} XMappingEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
} XAnyEvent;

union _XEvent {
    int type;
    XAnyEvent xany;
    XKeyEvent xkey;
    XButtonEvent xbutton;
    XMotionEvent xmotion;
    XCrossingEvent xcrossing;
    XFocusChangeEvent xfocus;
    XExposeEvent xexpose;
    XGraphicsExposeEvent xgraphicsexpose;
    XNoExposeEvent xnoexpose;
    XVisibilityEvent xvisibility;
    XCreateWindowEvent xcreatewindow;
    XDestroyWindowEvent xdestroywindow;
    XUnmapEvent xunmap;
    XMapEvent xmap;
    XMapRequestEvent xmaprequest;
    XReparentEvent xreparent;
    XConfigureEvent xconfigure;
    XGravityEvent xgravity;
    XResizeRequestEvent xresizerequest;
    XConfigureRequestEvent xconfigurerequest;
    XCirculateEvent xcirculate;
    XCirculateRequestEvent xcirculaterequest;
    XPropertyEvent xproperty;
    XSelectionClearEvent xselectionclear;
    XSelectionRequestEvent xselectionrequest;
    XSelectionEvent xselection;
    XColormapEvent xcolormap;
    XClientMessageEvent xclient;
    XMappingEvent xmapping;
    XErrorEvent xerror;
    XKeymapEvent xkeymap;
    long int pad[24];
};
typedef union _XEvent {
    int type;
    XAnyEvent xany;
    XKeyEvent xkey;
    XButtonEvent xbutton;
    XMotionEvent xmotion;
    XCrossingEvent xcrossing;
    XFocusChangeEvent xfocus;
    XExposeEvent xexpose;
    XGraphicsExposeEvent xgraphicsexpose;
    XNoExposeEvent xnoexpose;
    XVisibilityEvent xvisibility;
    XCreateWindowEvent xcreatewindow;
    XDestroyWindowEvent xdestroywindow;
    XUnmapEvent xunmap;
    XMapEvent xmap;
    XMapRequestEvent xmaprequest;
    XReparentEvent xreparent;
    XConfigureEvent xconfigure;
    XGravityEvent xgravity;
    XResizeRequestEvent xresizerequest;
    XConfigureRequestEvent xconfigurerequest;
    XCirculateEvent xcirculate;
    XCirculateRequestEvent xcirculaterequest;
    XPropertyEvent xproperty;
    XSelectionClearEvent xselectionclear;
    XSelectionRequestEvent xselectionrequest;
    XSelectionEvent xselection;
    XColormapEvent xcolormap;
    XClientMessageEvent xclient;
    XMappingEvent xmapping;
    XErrorEvent xerror;
    XKeymapEvent xkeymap;
    long int pad[24];
} XEvent;

typedef struct {
    short lbearing;
    short rbearing;
    short width;
    short ascent;
    short descent;
    unsigned short attributes;
} XCharStruct;

typedef struct {
    Atom name;
    unsigned long int card32;
} XFontProp;
typedef struct {
    XExtData *ext_data;
    Font fid;
    unsigned int direction;
    unsigned int min_char_or_byte2;
    unsigned int max_char_or_byte2;
    unsigned int min_byte1;
    unsigned int max_byte1;
    int all_chars_exist;
    unsigned int default_char;
    int n_properties;
    XFontProp *properties;
    XCharStruct min_bounds;
    XCharStruct max_bounds;
    XCharStruct *per_char;
    int ascent;
    int descent;
} XFontStruct;
typedef struct {
    XRectangle max_ink_extent;
    XRectangle max_logical_extent;
} XFontSetExtents;

typedef struct {
    char *chars;
    int nchars;
    int delta;
    Font font;
} XTextItem;
typedef struct {
    unsigned char byte1;
    unsigned char byte2;
} XChar2b;
typedef struct {
    XChar2b *chars;
    int nchars;
    int delta;
    Font font;
} XTextItem16;

typedef union {
    Display *display;
    GC gc;
    Visual *visual;
    Screen *screen;
    ScreenFormat *pixmap_format;
    XFontStruct *font;
} XEDataObject;

typedef struct _XOM *XOM;
typedef struct _XOC *XOC;
typedef struct _XOC *XFontSet;

typedef struct {
    char *chars;
    int nchars;
    int delta;
    XFontSet font_set;
} XmbTextItem;
typedef struct {
    wchar_t *chars;
    int nchars;
    int delta;
    XFontSet font_set;
} XwcTextItem;

typedef struct {
    int charset_count;
    char **charset_list;
} XOMCharSetList;
typedef enum {
    XOMOrientation_LTR_TTB = 0,
    XOMOrientation_RTL_TTB = 1,
    XOMOrientation_TTB_LTR = 2,
    XOMOrientation_TTB_RTL = 3,
    XOMOrientation_Context = 4
} XOrientation;
typedef struct {
    int num_font;
    XFontStruct **font_struct_list;
    char **font_name_list;
} XOMFontInfo;
typedef struct {
    int num_orientation;
    XOrientation *orientation;
} XOMOrientation;

typedef unsigned long int XIMStyle;
typedef struct {
    unsigned short count_styles;
    XIMStyle *supported_styles;
} XIMStyles;
typedef struct {
    XPointer client_data;
    XIMProc callback;
} XIMCallback;
typedef struct {
    XPointer client_data;
    XICProc callback;
} XICCallback;
typedef void (*XIDProc) (Display *, XPointer, XPointer);
extern int XActivateScreenSaver(Display *);
extern int XAddConnectionWatch(Display *, XConnectionWatchProc, XPointer);
extern XExtCodes *XAddExtension(Display *);
extern int XAddHost(Display *, XHostAddress *);
extern int XAddHosts(Display *, XHostAddress *, int);
extern int XAddToExtensionList(struct _XExtData **, XExtData *);
extern int XAddToSaveSet(Display *, Window);
extern unsigned long int XAllPlanes(void);
extern int XAllocColor(Display *, Colormap, XColor *);
extern int XAllocColorCells(Display *, Colormap, int, unsigned long int *,
			    unsigned int, unsigned long int *,
			    unsigned int);
extern int XAllocColorPlanes(Display *, Colormap, int, unsigned long int *,
			     int, int, int, int, unsigned long int *,
			     unsigned long int *, unsigned long int *);
extern int XAllocNamedColor(Display *, Colormap, const char *, XColor *,
			    XColor *);
extern int XAllowEvents(Display *, int, Time);
extern int XAutoRepeatOff(Display *);
extern int XAutoRepeatOn(Display *);
extern char *XBaseFontNameListOfFontSet(XFontSet);
extern int XBell(Display *, int);
extern int XBitmapBitOrder(Display *);
extern int XBitmapPad(Display *);
extern int XBitmapUnit(Display *);
extern unsigned long int XBlackPixel(Display *, int);
extern unsigned long int XBlackPixelOfScreen(Screen *);
extern int XCellsOfScreen(Screen *);
extern int XChangeActivePointerGrab(Display *, unsigned int, Cursor, Time);
extern int XChangeGC(Display *, GC, unsigned long int, XGCValues *);
extern int XChangeKeyboardControl(Display *, unsigned long int,
				  XKeyboardControl *);
extern int XChangeKeyboardMapping(Display *, int, int, KeySym *, int);
extern int XChangePointerControl(Display *, int, int, int, int, int);
extern int XChangeProperty(Display *, Window, Atom, Atom, int, int,
			   const unsigned char *, int);
extern int XChangeSaveSet(Display *, Window, int);
extern int XChangeWindowAttributes(Display *, Window, unsigned long int,
				   XSetWindowAttributes *);
extern int XCheckIfEvent(Display *, XEvent *,
			 int (*)(Display *, XEvent *, XPointer), XPointer);
extern int XCheckMaskEvent(Display *, long int, XEvent *);
extern int XCheckTypedEvent(Display *, int, XEvent *);
extern int XCheckTypedWindowEvent(Display *, Window, int, XEvent *);
extern int XCheckWindowEvent(Display *, Window, long int, XEvent *);
extern int XCirculateSubwindows(Display *, Window, int);
extern int XCirculateSubwindowsDown(Display *, Window);
extern int XCirculateSubwindowsUp(Display *, Window);
extern int XClearArea(Display *, Window, int, int, unsigned int,
		      unsigned int, int);
extern int XClearWindow(Display *, Window);
extern int XCloseDisplay(Display *);
extern int XCloseIM(XIM);
extern int XCloseOM(XOM);
extern int XConfigureWindow(Display *, Window, unsigned int,
			    XWindowChanges *);
extern int XConnectionNumber(Display *);
extern int XContextDependentDrawing(XFontSet);
extern int XContextualDrawing(XFontSet);
extern int XConvertSelection(Display *, Atom, Atom, Atom, Window, Time);
extern int XCopyArea(Display *, Drawable, Drawable, GC, int, int,
		     unsigned int, unsigned int, int, int);
extern Colormap XCopyColormapAndFree(Display *, Colormap);
extern int XCopyGC(Display *, GC, unsigned long int, GC);
extern int XCopyPlane(Display *, Drawable, Drawable, GC, int, int,
		      unsigned int, unsigned int, int, int,
		      unsigned long int);
extern Pixmap XCreateBitmapFromData(Display *, Drawable, const char *,
				    unsigned int, unsigned int);
extern Colormap XCreateColormap(Display *, Window, Visual *, int);
extern Cursor XCreateFontCursor(Display *, unsigned int);
extern XFontSet XCreateFontSet(Display *, const char *, char ***, int *,
			       char **);
extern GC XCreateGC(Display *, Drawable, unsigned long int, XGCValues *);
extern Cursor XCreateGlyphCursor(Display *, Font, Font, unsigned int,
				 unsigned int, const XColor *,
				 const XColor *);
extern XIC XCreateIC(XIM, ...);
extern XImage *XCreateImage(Display *, Visual *, unsigned int, int, int,
			    char *, unsigned int, unsigned int, int, int);
extern XOC XCreateOC(XOM, ...);
extern Pixmap XCreatePixmap(Display *, Drawable, unsigned int,
			    unsigned int, unsigned int);
extern Cursor XCreatePixmapCursor(Display *, Pixmap, Pixmap, XColor *,
				  XColor *, unsigned int, unsigned int);
extern Pixmap XCreatePixmapFromBitmapData(Display *, Drawable, char *,
					  unsigned int, unsigned int,
					  unsigned long int,
					  unsigned long int, unsigned int);
extern Window XCreateSimpleWindow(Display *, Window, int, int,
				  unsigned int, unsigned int, unsigned int,
				  unsigned long int, unsigned long int);
extern Window XCreateWindow(Display *, Window, int, int, unsigned int,
			    unsigned int, unsigned int, int, unsigned int,
			    Visual *, unsigned long int,
			    XSetWindowAttributes *);
extern Colormap XDefaultColormap(Display *, int);
extern Colormap XDefaultColormapOfScreen(Screen *);
extern int XDefaultDepth(Display *, int);
extern int XDefaultDepthOfScreen(Screen *);
extern GC XDefaultGC(Display *, int);
extern GC XDefaultGCOfScreen(Screen *);
extern Window XDefaultRootWindow(Display *);
extern int XDefaultScreen(Display *);
extern Screen *XDefaultScreenOfDisplay(Display *);
extern Visual *XDefaultVisual(Display *, int);
extern Visual *XDefaultVisualOfScreen(Screen *);
extern int XDefineCursor(Display *, Window, Cursor);
extern XModifierKeymap *XDeleteModifiermapEntry(XModifierKeymap *,
						unsigned int, int);
extern int XDeleteProperty(Display *, Window, Atom);
extern void XDestroyIC(XIC);
extern void XDestroyOC(XOC);
extern int XDestroySubwindows(Display *, Window);
extern int XDestroyWindow(Display *, Window);
extern int XDirectionalDependentDrawing(XFontSet);
extern int XDisableAccessControl(Display *);
extern int XDisplayCells(Display *, int);
extern int XDisplayHeight(Display *, int);
extern int XDisplayHeightMM(Display *, int);
extern int XDisplayKeycodes(Display *, int *, int *);
extern unsigned long int XDisplayMotionBufferSize(Display *);
extern char *XDisplayName(const char *);
extern Display *XDisplayOfIM(XIM);
extern Display *XDisplayOfOM(XOM);
extern Display *XDisplayOfScreen(Screen *);
extern int XDisplayPlanes(Display *, int);
extern char *XDisplayString(Display *);
extern int XDisplayWidth(Display *, int);
extern int XDisplayWidthMM(Display *, int);
extern int XDoesBackingStore(Screen *);
extern int XDoesSaveUnders(Screen *);
extern int XDrawArc(Display *, Drawable, GC, int, int, unsigned int,
		    unsigned int, int, int);
extern int XDrawArcs(Display *, Drawable, GC, XArc *, int);
extern int XDrawImageString(Display *, Drawable, GC, int, int,
			    const char *, int);
extern int XDrawImageString16(Display *, Drawable, GC, int, int,
			      const XChar2b *, int);
extern int XDrawLine(Display *, Drawable, GC, int, int, int, int);
extern int XDrawLines(Display *, Drawable, GC, XPoint *, int, int);
extern int XDrawPoint(Display *, Drawable, GC, int, int);
extern int XDrawPoints(Display *, Drawable, GC, XPoint *, int, int);
extern int XDrawRectangle(Display *, Drawable, GC, int, int, unsigned int,
			  unsigned int);
extern int XDrawRectangles(Display *, Drawable, GC, XRectangle *, int);
extern int XDrawSegments(Display *, Drawable, GC, XSegment *, int);
extern int XDrawString(Display *, Drawable, GC, int, int, const char *,
		       int);
extern int XDrawString16(Display *, Drawable, GC, int, int,
			 const XChar2b *, int);
extern int XDrawText(Display *, Drawable, GC, int, int, XTextItem *, int);
extern int XDrawText16(Display *, Drawable, GC, int, int, XTextItem16 *,
		       int);
extern XExtData **XEHeadOfExtensionList(XEDataObject);
extern
    void (*XESetBeforeFlush
	  (Display *, int,
	   void (*)(Display *, XExtCodes *, const char *,
		    long int))) (Display *, XExtCodes *, const char *,
				 long int);
extern
    int (*XESetCloseDisplay
	 (Display *, int, int (*)(Display *, XExtCodes *))) (Display *,
							     XExtCodes *);
extern
    int (*XESetCopyGC(Display *, int, int (*)(Display *, GC, XExtCodes *)))
    (Display *, GC, XExtCodes *);
extern
    int (*XESetCreateFont
	 (Display *, int,
	  int (*)(Display *, XFontStruct *, XExtCodes *))) (Display *,
							    XFontStruct *,
							    XExtCodes *);
extern
    int (*XESetCreateGC
	 (Display *, int, int (*)(Display *, GC, XExtCodes *))) (Display *,
								 GC,
								 XExtCodes
								 *);
extern
    int (*XESetError
	 (Display *, int,
	  int (*)(Display *, xError *, XExtCodes *, int *))) (Display *,
							      xError *,
							      XExtCodes *,
							      int *);
extern char
    *(*XESetErrorString
      (Display *, int,
       char *(*)(Display *, int, XExtCodes *, char *, int))) (Display *,
							      int,
							      XExtCodes *,
							      char *, int);
extern
    int (*XESetEventToWire
	 (Display *, int,
	  int (*)(Display *, XEvent *, xEvent *))) (Display *, XEvent *,
						    xEvent *);
extern
    int (*XESetFlushGC
	 (Display *, int, int (*)(Display *, GC, XExtCodes *))) (Display *,
								 GC,
								 XExtCodes
								 *);
extern
    int (*XESetFreeFont
	 (Display *, int,
	  int (*)(Display *, XFontStruct *, XExtCodes *))) (Display *,
							    XFontStruct *,
							    XExtCodes *);
extern
    int (*XESetFreeGC(Display *, int, int (*)(Display *, GC, XExtCodes *)))
    (Display *, GC, XExtCodes *);
extern
    void (*XESetPrintErrorValues
	  (Display *, int,
	   void (*)(Display *, XErrorEvent *, void *))) (Display *,
							 XErrorEvent *,
							 void *);
extern
    int (*XESetWireToError
	 (Display *, int,
	  int (*)(Display *, XErrorEvent *, xError *))) (Display *,
							 XErrorEvent *,
							 xError *);
extern
    int (*XESetWireToEvent
	 (Display *, int,
	  int (*)(Display *, XEvent *, xEvent *))) (Display *, XEvent *,
						    xEvent *);
extern int XEnableAccessControl(Display *);
extern long int XEventMaskOfScreen(Screen *);
extern int XEventsQueued(Display *, int);
extern long int XExtendedMaxRequestSize(Display *);
extern XFontSetExtents *XExtentsOfFontSet(XFontSet);
extern char *XFetchBuffer(Display *, int *, int);
extern char *XFetchBytes(Display *, int *);
extern int XFetchName(Display *, Window, char **);
extern int XFillArc(Display *, Drawable, GC, int, int, unsigned int,
		    unsigned int, int, int);
extern int XFillArcs(Display *, Drawable, GC, XArc *, int);
extern int XFillPolygon(Display *, Drawable, GC, XPoint *, int, int, int);
extern int XFillRectangle(Display *, Drawable, GC, int, int, unsigned int,
			  unsigned int);
extern int XFillRectangles(Display *, Drawable, GC, XRectangle *, int);
extern int XFilterEvent(XEvent *, Window);
extern XExtData *XFindOnExtensionList(XExtData * *, int);
extern int XFlush(Display *);
extern void XFlushGC(Display *, GC);
extern int XFontsOfFontSet(XFontSet, XFontStruct * **, char ***);
extern int XForceScreenSaver(Display *, int);
extern int XFree(void *);
extern int XFreeColormap(Display *, Colormap);
extern int XFreeColors(Display *, Colormap, unsigned long int *, int,
		       unsigned long int);
extern int XFreeCursor(Display *, Cursor);
extern int XFreeExtensionList(char **);
extern int XFreeFont(Display *, XFontStruct *);
extern int XFreeFontInfo(char **, XFontStruct *, int);
extern int XFreeFontNames(char **);
extern int XFreeFontPath(char **);
extern void XFreeFontSet(Display *, XFontSet);
extern int XFreeGC(Display *, GC);
extern int XFreeModifiermap(XModifierKeymap *);
extern int XFreePixmap(Display *, Pixmap);
extern void XFreeStringList(char **);
extern GContext XGContextFromGC(GC);
extern int XGeometry(Display *, int, const char *, const char *,
		     unsigned int, unsigned int, unsigned int, int, int,
		     int *, int *, int *, int *);
extern char *XGetAtomName(Display *, Atom);
extern int XGetAtomNames(Display *, Atom *, int, char **);
extern int XGetCommand(Display *, Window, char ***, int *);
extern char *XGetDefault(Display *, const char *, const char *);
extern int XGetErrorDatabaseText(Display *, const char *, const char *,
				 const char *, char *, int);
extern int XGetErrorText(Display *, int, char *, int);
extern char **XGetFontPath(Display *, int *);
extern int XGetFontProperty(XFontStruct *, Atom, unsigned long int *);
extern int XGetGCValues(Display *, GC, unsigned long int, XGCValues *);
extern int XGetGeometry(Display *, Drawable, Window *, int *, int *,
			unsigned int *, unsigned int *, unsigned int *,
			unsigned int *);
extern char *XGetICValues(XIC, ...);
extern char *XGetIMValues(XIM, ...);
extern int XGetIconName(Display *, Window, char **);
extern XImage *XGetImage(Display *, Drawable, int, int, unsigned int,
			 unsigned int, unsigned long int, int);
extern int XGetInputFocus(Display *, Window *, int *);
extern int XGetKeyboardControl(Display *, XKeyboardState *);
extern KeySym *XGetKeyboardMapping(Display *, unsigned int, int, int *);
extern XModifierKeymap *XGetModifierMapping(Display *);
extern XTimeCoord *XGetMotionEvents(Display *, Window, Time, Time, int *);
extern char *XGetOCValues(XOC, ...);
extern char *XGetOMValues(XOM, ...);
extern int XGetPointerControl(Display *, int *, int *, int *);
extern int XGetPointerMapping(Display *, unsigned char *, int);
extern int XGetScreenSaver(Display *, int *, int *, int *, int *);
extern Window XGetSelectionOwner(Display *, Atom);
extern XImage *XGetSubImage(Display *, Drawable, int, int, unsigned int,
			    unsigned int, unsigned long int, int, XImage *,
			    int, int);
extern int XGetTransientForHint(Display *, Window, Window *);
extern int XGetWMColormapWindows(Display *, Window, Window * *, int *);
extern int XGetWMProtocols(Display *, Window, Atom * *, int *);
extern int XGetWindowAttributes(Display *, Window, XWindowAttributes *);
extern int XGetWindowProperty(Display *, Window, Atom, long int, long int,
			      int, Atom, Atom *, int *,
			      unsigned long int *, unsigned long int *,
			      unsigned char **);
extern int XGrabButton(Display *, unsigned int, unsigned int, Window, int,
		       unsigned int, int, int, Window, Cursor);
extern int XGrabKey(Display *, int, unsigned int, Window, int, int, int);
extern int XGrabKeyboard(Display *, Window, int, int, int, Time);
extern int XGrabPointer(Display *, Window, int, unsigned int, int, int,
			Window, Cursor, Time);
extern int XGrabServer(Display *);
extern int XHeightMMOfScreen(Screen *);
extern int XHeightOfScreen(Screen *);
extern XIM XIMOfIC(XIC);
extern int XIconifyWindow(Display *, Window, int);
extern int XIfEvent(Display *, XEvent *,
		    int (*)(Display *, XEvent *, XPointer), XPointer);
extern int XImageByteOrder(Display *);
extern XExtCodes *XInitExtension(Display *, const char *);
extern int XInitImage(XImage *);
extern int XInitThreads(void);
extern XModifierKeymap *XInsertModifiermapEntry(XModifierKeymap *,
						unsigned int, int);
extern int XInstallColormap(Display *, Colormap);
extern Atom XInternAtom(Display *, const char *, int);
extern int XInternAtoms(Display *, char **, int, int, Atom *);
extern int XInternalConnectionNumbers(Display *, int **, int *);
extern KeySym XKeycodeToKeysym(Display *, unsigned int, int);
extern KeyCode XKeysymToKeycode(Display *, KeySym);
extern char *XKeysymToString(KeySym);
extern int XKillClient(Display *, XID);
extern unsigned long int XLastKnownRequestProcessed(Display *);
extern int *XListDepths(Display *, int, int *);
extern char **XListExtensions(Display *, int *);
extern char **XListFonts(Display *, const char *, int, int *);
extern char **XListFontsWithInfo(Display *, const char *, int, int *,
				 XFontStruct * *);
extern XHostAddress *XListHosts(Display *, int *, int *);
extern Colormap *XListInstalledColormaps(Display *, Window, int *);
extern XPixmapFormatValues *XListPixmapFormats(Display *, int *);
extern Atom *XListProperties(Display *, Window, int *);
extern Font XLoadFont(Display *, const char *);
extern XFontStruct *XLoadQueryFont(Display *, const char *);
extern char *XLocaleOfFontSet(XFontSet);
extern char *XLocaleOfIM(XIM);
extern char *XLocaleOfOM(XOM);
extern void XLockDisplay(Display *);
extern int XLookupColor(Display *, Colormap, const char *, XColor *,
			XColor *);
extern KeySym XLookupKeysym(XKeyEvent *, int);
extern int XLowerWindow(Display *, Window);
extern int XMapRaised(Display *, Window);
extern int XMapSubwindows(Display *, Window);
extern int XMapWindow(Display *, Window);
extern int XMaskEvent(Display *, long int, XEvent *);
extern int XMaxCmapsOfScreen(Screen *);
extern long int XMaxRequestSize(Display *);
extern int XMinCmapsOfScreen(Screen *);
extern int XMoveResizeWindow(Display *, Window, int, int, unsigned int,
			     unsigned int);
extern int XMoveWindow(Display *, Window, int, int);
extern XModifierKeymap *XNewModifiermap(int);
extern int XNextEvent(Display *, XEvent *);
extern unsigned long int XNextRequest(Display *);
extern int XNoOp(Display *);
extern XOM XOMOfOC(XOC);
extern Display *XOpenDisplay(const char *);
extern XIM XOpenIM(Display *, struct _XrmHashBucketRec *, char *, char *);
extern XOM XOpenOM(Display *, struct _XrmHashBucketRec *, const char *,
		   const char *);
extern int XParseColor(Display *, Colormap, const char *, XColor *);
extern int XParseGeometry(const char *, int *, int *, unsigned int *,
			  unsigned int *);
extern int XPeekEvent(Display *, XEvent *);
extern int XPeekIfEvent(Display *, XEvent *,
			int (*)(Display *, XEvent *, XPointer), XPointer);
extern int XPending(Display *);
extern int XPlanesOfScreen(Screen *);
extern void XProcessInternalConnection(Display *, int);
extern int XProtocolRevision(Display *);
extern int XProtocolVersion(Display *);
extern int XPutBackEvent(Display *, XEvent *);
extern int XPutImage(Display *, Drawable, GC, XImage *, int, int, int, int,
		     unsigned int, unsigned int);
extern int XQLength(Display *);
extern int XQueryBestCursor(Display *, Drawable, unsigned int,
			    unsigned int, unsigned int *, unsigned int *);
extern int XQueryBestSize(Display *, int, Drawable, unsigned int,
			  unsigned int, unsigned int *, unsigned int *);
extern int XQueryBestStipple(Display *, Drawable, unsigned int,
			     unsigned int, unsigned int *, unsigned int *);
extern int XQueryBestTile(Display *, Drawable, unsigned int, unsigned int,
			  unsigned int *, unsigned int *);
extern int XQueryColor(Display *, Colormap, XColor *);
extern int XQueryColors(Display *, Colormap, XColor *, int);
extern int XQueryExtension(Display *, const char *, int *, int *, int *);
extern XFontStruct *XQueryFont(Display *, XID);
extern int XQueryKeymap(Display *, char[32]);
extern int XQueryPointer(Display *, Window, Window *, Window *, int *,
			 int *, int *, int *, unsigned int *);
extern int XQueryTextExtents(Display *, XID, const char *, int, int *,
			     int *, int *, XCharStruct *);
extern int XQueryTextExtents16(Display *, XID, const XChar2b *, int, int *,
			       int *, int *, XCharStruct *);
extern int XQueryTree(Display *, Window, Window *, Window *, Window * *,
		      unsigned int *);
extern int XRaiseWindow(Display *, Window);
extern int XReadBitmapFile(Display *, Drawable, const char *,
			   unsigned int *, unsigned int *, Pixmap *, int *,
			   int *);
extern int XReadBitmapFileData(const char *, unsigned int *,
			       unsigned int *, unsigned char **, int *,
			       int *);
extern int XRebindKeysym(Display *, KeySym, KeySym *, int,
			 const unsigned char *, int);
extern int XRecolorCursor(Display *, Cursor, XColor *, XColor *);
extern int XReconfigureWMWindow(Display *, Window, int, unsigned int,
				XWindowChanges *);
extern int XRefreshKeyboardMapping(XMappingEvent *);
extern int XRegisterIMInstantiateCallback(Display *,
					  struct _XrmHashBucketRec *,
					  char *, char *, XIDProc,
					  XPointer);
extern void XRemoveConnectionWatch(Display *, XConnectionWatchProc,
				   XPointer);
extern int XRemoveFromSaveSet(Display *, Window);
extern int XRemoveHost(Display *, XHostAddress *);
extern int XRemoveHosts(Display *, XHostAddress *, int);
extern int XReparentWindow(Display *, Window, Window, int, int);
extern int XResetScreenSaver(Display *);
extern int XResizeWindow(Display *, Window, unsigned int, unsigned int);
extern char *XResourceManagerString(Display *);
extern int XRestackWindows(Display *, Window *, int);
extern Window XRootWindow(Display *, int);
extern Window XRootWindowOfScreen(Screen *);
extern int XRotateBuffers(Display *, int);
extern int XRotateWindowProperties(Display *, Window, Atom *, int, int);
extern int XScreenCount(Display *);
extern int XScreenNumberOfScreen(Screen *);
extern Screen *XScreenOfDisplay(Display *, int);
extern char *XScreenResourceString(Screen *);
extern int XSelectInput(Display *, Window, long int);
extern int XSendEvent(Display *, Window, int, long int, XEvent *);
extern char *XServerVendor(Display *);
extern int XSetAccessControl(Display *, int);
extern int (*XSetAfterFunction(Display *, int (*)(Display *))) (Display *);
extern int XSetArcMode(Display *, GC, int);
extern void XSetAuthorization(char *, int, char *, int);
extern int XSetBackground(Display *, GC, unsigned long int);
extern int XSetClipMask(Display *, GC, Pixmap);
extern int XSetClipOrigin(Display *, GC, int, int);
extern int XSetClipRectangles(Display *, GC, int, int, XRectangle *, int,
			      int);
extern int XSetCloseDownMode(Display *, int);
extern int XSetCommand(Display *, Window, char **, int);
extern int XSetDashes(Display *, GC, int, const char *, int);
extern XErrorHandler XSetErrorHandler(XErrorHandler);
extern int XSetFillRule(Display *, GC, int);
extern int XSetFillStyle(Display *, GC, int);
extern int XSetFont(Display *, GC, Font);
extern int XSetFontPath(Display *, char **, int);
extern int XSetForeground(Display *, GC, unsigned long int);
extern int XSetFunction(Display *, GC, int);
extern int XSetGraphicsExposures(Display *, GC, int);
extern void XSetICFocus(XIC);
extern char *XSetICValues(XIC, ...);
extern char *XSetIMValues(XIM, ...);
extern XIOErrorHandler XSetIOErrorHandler(XIOErrorHandler);
extern int XSetIconName(Display *, Window, const char *);
extern int XSetInputFocus(Display *, Window, int, Time);
extern int XSetLineAttributes(Display *, GC, unsigned int, int, int, int);
extern char *XSetLocaleModifiers(const char *);
extern int XSetModifierMapping(Display *, XModifierKeymap *);
extern char *XSetOCValues(XOC, ...);
extern char *XSetOMValues(XOM, ...);
extern int XSetPlaneMask(Display *, GC, unsigned long int);
extern int XSetPointerMapping(Display *, const unsigned char *, int);
extern int XSetScreenSaver(Display *, int, int, int, int);
extern int XSetSelectionOwner(Display *, Atom, Window, Time);
extern int XSetState(Display *, GC, unsigned long int, unsigned long int,
		     int, unsigned long int);
extern int XSetStipple(Display *, GC, Pixmap);
extern int XSetSubwindowMode(Display *, GC, int);
extern int XSetTSOrigin(Display *, GC, int, int);
extern int XSetTile(Display *, GC, Pixmap);
extern int XSetTransientForHint(Display *, Window, Window);
extern int XSetWMColormapWindows(Display *, Window, Window *, int);
extern int XSetWMProtocols(Display *, Window, Atom *, int);
extern int XSetWindowBackground(Display *, Window, unsigned long int);
extern int XSetWindowBackgroundPixmap(Display *, Window, Pixmap);
extern int XSetWindowBorder(Display *, Window, unsigned long int);
extern int XSetWindowBorderPixmap(Display *, Window, Pixmap);
extern int XSetWindowBorderWidth(Display *, Window, unsigned int);
extern int XSetWindowColormap(Display *, Window, Colormap);
extern int XStoreBuffer(Display *, const char *, int, int);
extern int XStoreBytes(Display *, const char *, int);
extern int XStoreColor(Display *, Colormap, XColor *);
extern int XStoreColors(Display *, Colormap, XColor *, int);
extern int XStoreName(Display *, Window, const char *);
extern int XStoreNamedColor(Display *, Colormap, const char *,
			    unsigned long int, int);
extern KeySym XStringToKeysym(const char *);
extern int XSupportsLocale(void);
extern int XSync(Display *, int);
extern int (*XSynchronize(Display *, int)) (Display *);
extern int XTextExtents(XFontStruct *, const char *, int, int *, int *,
			int *, XCharStruct *);
extern int XTextExtents16(XFontStruct *, const XChar2b *, int, int *,
			  int *, int *, XCharStruct *);
extern int XTextWidth(XFontStruct *, const char *, int);
extern int XTextWidth16(XFontStruct *, const XChar2b *, int);
extern int XTranslateCoordinates(Display *, Window, Window, int, int,
				 int *, int *, Window *);
extern int XUndefineCursor(Display *, Window);
extern int XUngrabButton(Display *, unsigned int, unsigned int, Window);
extern int XUngrabKey(Display *, int, unsigned int, Window);
extern int XUngrabKeyboard(Display *, Time);
extern int XUngrabPointer(Display *, Time);
extern int XUngrabServer(Display *);
extern int XUninstallColormap(Display *, Colormap);
extern int XUnloadFont(Display *, Font);
extern void XUnlockDisplay(Display *);
extern int XUnmapSubwindows(Display *, Window);
extern int XUnmapWindow(Display *, Window);
extern int XUnregisterIMInstantiateCallback(Display *,
					    struct _XrmHashBucketRec *,
					    char *, char *, XIDProc,
					    XPointer);
extern void XUnsetICFocus(XIC);
extern XVaNestedList XVaCreateNestedList(int, ...);
extern int XVendorRelease(Display *);
extern VisualID XVisualIDFromVisual(Visual *);
extern int XWarpPointer(Display *, Window, Window, int, int, unsigned int,
			unsigned int, int, int);
extern unsigned long int XWhitePixel(Display *, int);
extern unsigned long int XWhitePixelOfScreen(Screen *);
extern int XWidthMMOfScreen(Screen *);
extern int XWidthOfScreen(Screen *);
extern int XWindowEvent(Display *, Window, long int, XEvent *);
extern int XWithdrawWindow(Display *, Window, int);
extern int XWriteBitmapFile(Display *, const char *, Pixmap, unsigned int,
			    unsigned int, int, int);
extern void XmbDrawImageString(Display *, Drawable, XFontSet, GC, int, int,
			       const char *, int);
extern void XmbDrawString(Display *, Drawable, XFontSet, GC, int, int,
			  const char *, int);
extern void XmbDrawText(Display *, Drawable, GC, int, int, XmbTextItem *,
			int);
extern int XmbLookupString(XIC, XKeyPressedEvent *, char *, int, KeySym *,
			   int *);
extern char *XmbResetIC(XIC);
extern int XmbTextEscapement(XFontSet, const char *, int);
extern int XmbTextExtents(XFontSet, const char *, int, XRectangle *,
			  XRectangle *);
extern int XmbTextPerCharExtents(XFontSet, const char *, int, XRectangle *,
				 XRectangle *, int, int *, XRectangle *,
				 XRectangle *);
extern void XrmInitialize(void);
extern void XwcDrawImageString(Display *, Drawable, XFontSet, GC, int, int,
			       const wchar_t *, int);
extern void XwcDrawString(Display *, Drawable, XFontSet, GC, int, int,
			  const wchar_t *, int);
extern void XwcDrawText(Display *, Drawable, GC, int, int, XwcTextItem *,
			int);
extern int XwcLookupString(XIC, XKeyPressedEvent *, wchar_t *, int,
			   KeySym *, int *);
extern wchar_t *XwcResetIC(XIC);
extern int XwcTextEscapement(XFontSet, const wchar_t *, int);
extern int XwcTextExtents(XFontSet, const wchar_t *, int, XRectangle *,
			  XRectangle *);
extern int XwcTextPerCharExtents(XFontSet, const wchar_t *, int,
				 XRectangle *, XRectangle *, int, int *,
				 XRectangle *, XRectangle *);

6.2.8. X11/Xlibint.h


#define NEED_EVENTS
#define NEED_REPLIES
#define WORD64ALIGN
#define min(a,b)	(((a) < (b)) ? (a) : (b))
#define max(a,b)	(((a) > (b)) ? (a) : (b))
#define CI_NONEXISTCHAR(cs)	(((cs)->width == 0) && (((cs)->rbearing|(cs)->lbearing| (cs)->ascent|(cs)->descent) == 0))
#define XAllocIDs(dpy,ids,n)	(*(dpy)->idlist_alloc)(dpy,ids,n)
#define XlibDisplayIOError	(1L << 0)
#define XlibDisplayClosing	(1L << 1)
#define XlibDisplayNoXkb	(1L << 2)
#define XlibDisplayPrivSync	(1L << 3)
#define XlibDisplayProcConni	(1L << 4)
#define XlibDisplayReadEvents	(1L << 5)
#define XlibDisplayReply	(1L << 5)
#define XlibDisplayWriting	(1L << 6)
#define XlibDisplayDfltRMDB	(1L << 7)
#define UNLOCKED	0
#define LOCKED	1
#define WRCTSPERBATCH	10
#define PTSPERBATCH	1024
#define ZLNSPERBATCH	1024
#define BUFSIZE	2048
#define FARCSPERBATCH	256
#define FRCTSPERBATCH	256
#define XCONN_CHECK_FREQ	256
#define ZRCTSPERBATCH	256
#define WLNSPERBATCH	50
#define Xcalloc(nelem,elsize)	calloc((nelem), (elsize))
#define CI_GET_DEFAULT_INFO_1D(fs,cs)	CI_GET_CHAR_INFO_1D (fs, fs->default_char, NULL, cs)
#define CURSORFONT	"cursor"
#define Data16(dpy,data,len)	Data((dpy), (char *)(data), (len))
#define PackData16(dpy,data,len)	Data16 (dpy, data, len)
#define PackData32(dpy,data,len)	Data32 (dpy, data, len)
#define _XFopenFile(path,mode)	fopen(path,mode)
#define Xfree(ptr)	free((ptr))
#define LockDisplay(d)	if ((d)->lock_fns) (*(d)->lock_fns->lock_display)(d)
#define UnlockDisplay(d)	if ((d)->lock_fns) (*(d)->lock_fns->unlock_display)(d)
#define FlushGC(dpy,gc)	if ((gc)->dirty) _XFlushGCCache((dpy), (gc))
#define SetReqLen(req,n,badlen)	if ((req->length + n) > (unsigned)65535) { if (dpy->bigreq_size) { MakeBigReq(req,n) } else { n = badlen; req->length += n; } } else req->length += n
#define BufAlloc(type,ptr,n)	if (dpy->bufptr + (n) > dpy->bufmax) _XFlush (dpy); ptr = (type) dpy->bufptr; (void)ptr; dpy->bufptr += (n);
#define SyncHandle()	if (dpy->synchandler) (*dpy->synchandler)(dpy)
#define _XCreateMutex(lock)	if (_XCreateMutex_fn) (*_XCreateMutex_fn)(lock);
#define _XFreeMutex(lock)	if (_XFreeMutex_fn) (*_XFreeMutex_fn)(lock);
#define _XLockMutex(lock)	if (_XLockMutex_fn) (*_XLockMutex_fn)(lock)
#define _XUnlockMutex(lock)	if (_XUnlockMutex_fn) (*_XUnlockMutex_fn)(lock)
#define Xmalloc(size)	malloc((size))
#define _XOpenFile(path,flags)	open(path,flags)
#define _XOpenFileMode(path,flags,mode)	open(path,flags,mode)
#define PackData(dpy,data,len)	PackData16 (dpy, data, len)
#define Xrealloc(ptr,size)	realloc((ptr), (size))
#define GetReqExtra(name,n,req)	WORD64ALIGN if ((dpy->bufptr + SIZEOF(x ##name ##Req) + n) > dpy->bufmax) _XFlush(dpy); req = (x ##name ##Req *)(dpy->last_req = dpy->bufptr); req->reqType = X_ ##name; req->length = (SIZEOF(x ##name ##Req) + n)>>2; dpy->bufptr += SIZEOF(x ##name ##Req) + n; dpy->request++
#define GetReq(name,req)	WORD64ALIGN if ((dpy->bufptr + SIZEOF(x ##name ##Req)) > dpy->bufmax) _XFlush(dpy); req = (x ##name ##Req *)(dpy->last_req = dpy->bufptr); req->reqType = X_ ##name; req->length = (SIZEOF(x ##name ##Req))>>2; dpy->bufptr += SIZEOF(x ##name ##Req); dpy->request++
#define GetEmptyReq(name,req)	WORD64ALIGN if ((dpy->bufptr + SIZEOF(xReq)) > dpy->bufmax) _XFlush(dpy); req = (xReq *) (dpy->last_req = dpy->bufptr); req->reqType = X_ ##name; req->length = 1; dpy->bufptr += SIZEOF(xReq); dpy->request++
#define GetResReq(name,rid,req)	WORD64ALIGN if ((dpy->bufptr + SIZEOF(xResourceReq)) > dpy->bufmax) _XFlush(dpy); req = (xResourceReq *) (dpy->last_req = dpy->bufptr); req->reqType = X_ ##name; req->length = 2; req->id = (rid); dpy->bufptr += SIZEOF(xResourceReq); dpy->request++
#define _XBCOPYFUNC	_Xbcopy
#define Data32(dpy,data,len)	_XData32(dpy, (long *)data, len)
#define _XRead16(dpy,data,len)	_XRead((dpy), (char *)(data), (len))
#define _XRead16Pad(dpy,data,len)	_XReadPad((dpy), (char *)(data), (len))
#define OneDataCard32(dpy,dstaddr,srcvar)	{ *(CARD32 *)(dstaddr) = (srcvar); }
#define CI_GET_CHAR_INFO_1D(fs,col,def,cs)	{ cs = def; if (col >= fs->min_char_or_byte2 && col <= fs->max_char_or_byte2) { if (fs->per_char == NULL) { cs = &fs->min_bounds; } else { cs = &fs->per_char[(col - fs->min_char_or_byte2)]; if (CI_NONEXISTCHAR(cs)) cs = def; } } }
#define CI_GET_CHAR_INFO_2D(fs,row,col,def,cs)	{ cs = def; if (row >= fs->min_byte1 && row <= fs->max_byte1 && col >= fs->min_char_or_byte2 && col <= fs->max_char_or_byte2) { if (fs->per_char == NULL) { cs = &fs->min_bounds; } else { cs = &fs->per_char[((row - fs->min_byte1) * (fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1)) + (col - fs->min_char_or_byte2)]; if (CI_NONEXISTCHAR(cs)) cs = def; } } }
#define DeqAsyncHandler(dpy,handler)	{ if (dpy->async_handlers == (handler)) dpy->async_handlers = (handler)->next; else _XDeqAsyncHandler(dpy, handler); }
#define Data(dpy,data,len)	{ if (dpy->bufptr + (len) <= dpy->bufmax) { memcpy(dpy->bufptr, data, (int)len); dpy->bufptr += ((len) + 3) & ~3; } else _XSend(dpy, data, len); }
#define CI_GET_DEFAULT_INFO_2D(fs,cs)	{ unsigned int r = (fs->default_char >> 8); unsigned int c = (fs->default_char & 0xff); CI_GET_CHAR_INFO_2D (fs, r, c, NULL, cs); }

typedef struct _XSQEvent {
    struct _XSQEvent *next;
    XEvent event;
    unsigned long int qserial_num;
} _XQEvent;
typedef struct _LockInfoRec *LockInfoPtr;
typedef struct _XInternalAsync {
    struct _XInternalAsync *next;
    int (*handler) (Display *, xReply *, char *, int, XPointer);
    XPointer data;
} _XAsyncHandler;
typedef struct _XAsyncEState {
    unsigned long int min_sequence_number;
    unsigned long int max_sequence_number;
    unsigned char error_code;
    unsigned char major_opcode;
    unsigned short minor_opcode;
    unsigned char last_error_received;
    int error_count;
} _XAsyncErrorState;
typedef void (*FreeFuncType) (Display *);
typedef int (*FreeModmapType) (XModifierKeymap *);
typedef struct _XFreeFuncs {
    FreeFuncType atoms;
    FreeModmapType modifiermap;
    FreeFuncType key_bindings;
    FreeFuncType context_db;
    FreeFuncType defaultCCCs;
    FreeFuncType clientCmaps;
    FreeFuncType intensityMaps;
    FreeFuncType im_filters;
    FreeFuncType xkb;
} _XFreeFuncRec;
typedef int (*CreateGCType) (Display *, GC, XExtCodes *);
typedef int (*CopyGCType) (Display *, GC, XExtCodes *);
typedef int (*FlushGCType) (Display *, GC, XExtCodes *);
typedef int (*FreeGCType) (Display *, GC, XExtCodes *);
typedef int (*CreateFontType) (Display *, XFontStruct *, XExtCodes *);
typedef int (*FreeFontType) (Display *, XFontStruct *, XExtCodes *);
typedef int (*CloseDisplayType) (Display *, XExtCodes *);
typedef int (*ErrorType) (Display *, xError *, XExtCodes *, int *);
typedef char *(*ErrorStringType) (Display *, int, XExtCodes *, char *,
				  int);
typedef void (*PrintErrorType) (Display *, XErrorEvent *, void *);
typedef void (*BeforeFlushType) (Display *, XExtCodes *, const char *,
				 long int);
typedef struct _XExten {
    struct _XExten *next;
    XExtCodes codes;
    CreateGCType create_GC;
    CopyGCType copy_GC;
    FlushGCType flush_GC;
    FreeGCType free_GC;
    CreateFontType create_Font;
    FreeFontType free_Font;
    CloseDisplayType close_display;
    ErrorType error;
    ErrorStringType error_string;
    char *name;
    PrintErrorType error_values;
    BeforeFlushType before_flush;
    struct _XExten *next_flush;
} _XExtension;
typedef void (*_XInternalConnectionProc) (Display *, int, XPointer);
struct _XDisplay {
    XExtData *ext_data;
    struct _XFreeFuncs *free_funcs;
    int fd;
    int conn_checker;
    int proto_major_version;
    int proto_minor_version;
    char *vendor;
    XID resource_base;
    XID resource_mask;
    XID resource_id;
    int resource_shift;
     XID(*resource_alloc) (struct _XDisplay *);
    int byte_order;
    int bitmap_unit;
    int bitmap_pad;
    int bitmap_bit_order;
    int nformats;
    ScreenFormat *pixmap_format;
    int vnumber;
    int release;
    struct _XSQEvent *head;
    struct _XSQEvent *tail;
    int qlen;
    unsigned long int last_request_read;
    unsigned long int request;
    char *last_req;
    char *buffer;
    char *bufptr;
    char *bufmax;
    unsigned int max_request_size;
    struct _XrmHashBucketRec *db;
    int (*synchandler) (struct _XDisplay *);
    char *display_name;
    int default_screen;
    int nscreens;
    Screen *screens;
    unsigned long int motion_buffer;
    unsigned long int flags;
    int min_keycode;
    int max_keycode;
    KeySym *keysyms;
    XModifierKeymap *modifiermap;
    int keysyms_per_keycode;
    char *xdefaults;
    char *scratch_buffer;
    unsigned long int scratch_length;
    int ext_number;
    struct _XExten *ext_procs;
    int (*event_vec[128]) (Display *, XEvent *, xEvent *);
    int (*wire_vec[128]) (Display *, XEvent *, xEvent *);
    KeySym lock_meaning;
    struct _XLockInfo *lock;
    struct _XInternalAsync *async_handlers;
    unsigned long int bigreq_size;
    struct _XLockPtrs *lock_fns;
    void (*idlist_alloc) (Display *, XID *, int);
    struct _XKeytrans *key_bindings;
    Font cursor_font;
    struct _XDisplayAtoms *atoms;
    unsigned int mode_switch;
    unsigned int num_lock;
    struct _XContextDB *context_db;
    int (**error_vec) (Display *, XErrorEvent *, xError *);
    struct {
	XPointer defaultCCCs;
	XPointer clientCmaps;
	XPointer perVisualIntensityMaps;
    } cms;
    struct _XIMFilter *im_filters;
    struct _XSQEvent *qfree;
    unsigned long int next_event_serial_num;
    struct _XExten *flushes;
    struct _XConnectionInfo *im_fd_info;
    int im_fd_length;
    struct _XConnWatchInfo *conn_watchers;
    int watcher_count;
    XPointer filedes;
    int (*savedsynchandler) (Display *);
    XID resource_max;
    int xcmisc_opcode;
    struct _XkbInfoRec *xkb_info;
    struct _XtransConnInfo *trans_conn;
};
struct _XGC {
    XExtData *ext_data;
    GContext gid;
    int rects;
    int dashes;
    unsigned long int dirty;
    XGCValues values;
};

6.2.9. X11/Xmd.h


#define B16
#define B32
#define NEXTPTR(p,t)	(((t *)(p)) + 1)
#define cvtINT16toInt(val)	(val)
#define cvtINT16toLong(val)	(val)
#define cvtINT16toShort(val)	(val)
#define cvtINT32toInt(val)	(val)
#define cvtINT32toLong(val)	(val)
#define cvtINT32toShort(val)	(val)
#define cvtINT8toInt(val)	(val)
#define cvtINT8toLong(val)	(val)
#define cvtINT8toShort(val)	(val)
#define _SIZEOF(x)	sz_ ##x
#define SIZEOF(x)	_SIZEOF(x)

typedef unsigned short CARD16;
typedef unsigned char CARD8;
typedef CARD8 BOOL;
typedef unsigned char BYTE;
typedef CARD32 BITS32;
typedef CARD16 BITS16;
typedef int INT32;
typedef short int INT16;
typedef signed char INT8;

6.2.10. X11/Xosdefs.h


#ifndef MAXPATHLEN
#define MAXPATHLEN	4096
#endif
#ifndef PATH_MAX
#define PATH_MAX	4096
#endif

6.2.11. X11/Xproto.h


#define ELFlagFocus	(1<<0)
#define ELFlagSameScreen	(1<<1)
#define XEventSize	(sizeof(xEvent))
#define X_Error	0
#define xFalse	0
#define X_CreateWindow	1
#define X_Reply	1
#define xTrue	1
#define X_UnmapWindow	10
#define X_ChangeKeyboardMapping	100
#define X_GetKeyboardMapping	101
#define X_ChangeKeyboardControl	102
#define X_GetKeyboardControl	103
#define X_Bell	104
#define X_ChangePointerControl	105
#define X_GetPointerControl	106
#define X_SetScreenSaver	107
#define X_GetScreenSaver	108
#define X_ChangeHosts	109
#define X_UnmapSubwindows	11
#define X_ListHosts	110
#define X_SetAccessControl	111
#define X_SetCloseDownMode	112
#define X_KillClient	113
#define X_RotateProperties	114
#define X_ForceScreenSaver	115
#define X_SetPointerMapping	116
#define X_GetPointerMapping	117
#define X_SetModifierMapping	118
#define X_GetModifierMapping	119
#define X_ConfigureWindow	12
#define sz_xAllocColorCellsReq	12
#define sz_xAllocNamedColorReq	12
#define sz_xArc	12
#define sz_xChangeGCReq	12
#define sz_xChangePointerControlReq	12
#define sz_xChangeWindowAttributesReq	12
#define sz_xCharInfo	12
#define sz_xColorItem	12
#define sz_xConfigureWindowReq	12
#define sz_xConnClientPrefix	12
#define sz_xCopyColormapAndFreeReq	12
#define sz_xDeletePropertyReq	12
#define sz_xFreeColorsReq	12
#define sz_xLookupColorReq	12
#define sz_xOpenFontReq	12
#define sz_xPolyArcReq	12
#define sz_xPolyFillArcReq	12
#define sz_xPolyFillRectangleReq	12
#define sz_xPolyLineReq	12
#define sz_xPolyPointReq	12
#define sz_xPolyRectangleReq	12
#define sz_xPolySegmentReq	12
#define sz_xQueryBestSizeReq	12
#define sz_xRotatePropertiesReq	12
#define sz_xSetClipRectanglesReq	12
#define sz_xSetDashesReq	12
#define sz_xSetInputFocusReq	12
#define sz_xSetScreenSaverReq	12
#define sz_xUngrabButtonReq	12
#define sz_xUngrabKeyReq	12
#define X_NoOperation	127
#define X_CirculateWindow	13
#define X_GetGeometry	14
#define X_QueryTree	15
#define X_InternAtom	16
#define sz_xAllocColorPlanesReq	16
#define sz_xAllocColorReq	16
#define sz_xChangeActivePointerGrabReq	16
#define sz_xClearAreaReq	16
#define sz_xCopyGCReq	16
#define sz_xCreateColormapReq	16
#define sz_xCreateGCReq	16
#define sz_xCreatePixmapReq	16
#define sz_xFillPolyReq	16
#define sz_xGetMotionEventsReq	16
#define sz_xGrabKeyReq	16
#define sz_xGrabKeyboardReq	16
#define sz_xImageText16Req	16
#define sz_xImageText8Req	16
#define sz_xImageTextReq	16
#define sz_xPolyText16Req	16
#define sz_xPolyText8Req	16
#define sz_xPolyTextReq	16
#define sz_xReparentWindowReq	16
#define sz_xSetSelectionOwnerReq	16
#define sz_xStoreNamedColorReq	16
#define sz_xTranslateCoordsReq	16
#define X_GetAtomName	17
#define X_ChangeProperty	18
#define X_DeleteProperty	19
#define X_ChangeWindowAttributes	2
#define sz_xTextElt	2
#define X_GetProperty	20
#define sz_xGetImageReq	20
#define sz_xRecolorCursorReq	20
#define X_ListProperties	21
#define X_SetSelectionOwner	22
#define X_GetSelectionOwner	23
#define X_ConvertSelection	24
#define sz_xChangePropertyReq	24
#define sz_xConvertSelectionReq	24
#define sz_xGetPropertyReq	24
#define sz_xGrabButtonReq	24
#define sz_xGrabPointerReq	24
#define sz_xPropIconSize	24
#define sz_xPutImageReq	24
#define sz_xVisualType	24
#define sz_xWarpPointerReq	24
#define X_SendEvent	25
#define X_GrabPointer	26
#define X_UngrabPointer	27
#define X_GrabButton	28
#define sz_xCopyAreaReq	28
#define X_UngrabButton	29
#define X_GetWindowAttributes	3
#define X_ChangeActivePointerGrab	30
#define X_GrabKeyboard	31
#define X_UngrabKeyboard	32
#define sz_xAllocColorCellsReply	32
#define sz_xAllocColorPlanesReply	32
#define sz_xAllocColorReply	32
#define sz_xAllocNamedColorReply	32
#define sz_xConnSetup	32
#define sz_xCopyPlaneReq	32
#define sz_xCreateCursorReq	32
#define sz_xCreateGlyphCursorReq	32
#define sz_xCreateWindowReq	32
#define sz_xError	32
#define sz_xEvent	32
#define sz_xGenericReply	32
#define sz_xGetAtomNameReply	32
#define sz_xGetFontPathReply	32
#define sz_xGetGeometryReply	32
#define sz_xGetImageReply	32
#define sz_xGetInputFocusReply	32
#define sz_xGetKeyboardMappingReply	32
#define sz_xGetModifierMappingReply	32
#define sz_xGetMotionEventsReply	32
#define sz_xGetPointerControlReply	32
#define sz_xGetPointerMappingReply	32
#define sz_xGetPropertyReply	32
#define sz_xGetScreenSaverReply	32
#define sz_xGetSelectionOwnerReply	32
#define sz_xGrabKeyboardReply	32
#define sz_xGrabPointerReply	32
#define sz_xInternAtomReply	32
#define sz_xKeymapEvent	32
#define sz_xListExtensionsReply	32
#define sz_xListFontsReply	32
#define sz_xListHostsReply	32
#define sz_xListInstalledColormapsReply	32
#define sz_xListPropertiesReply	32
#define sz_xLookupColorReply	32
#define sz_xQueryBestSizeReply	32
#define sz_xQueryColorsReply	32
#define sz_xQueryExtensionReply	32
#define sz_xQueryPointerReply	32
#define sz_xQueryTextExtentsReply	32
#define sz_xQueryTreeReply	32
#define sz_xReply	32
#define sz_xSetMappingReply	32
#define sz_xSetModifierMappingReply	32
#define sz_xSetPointerMappingReply	32
#define sz_xTranslateCoordsReply	32
#define X_GrabKey	33
#define X_UngrabKey	34
#define X_AllowEvents	35
#define X_GrabServer	36
#define X_UngrabServer	37
#define X_QueryPointer	38
#define X_GetMotionEvents	39
#define X_DestroyWindow	4
#define sz_xBellReq	4
#define sz_xChangeModeReq	4
#define sz_xForceScreenSaverReq	4
#define sz_xHostEntry	4
#define sz_xListHostsReq	4
#define sz_xPoint	4
#define sz_xReq	4
#define sz_xSetAccessControlReq	4
#define sz_xSetCloseDownModeReq	4
#define sz_xSetModifierMappingReq	4
#define sz_xSetPointerMappingReq	4
#define X_TranslateCoords	40
#define sz_xQueryKeymapReply	40
#define sz_xWindowRoot	40
#define X_WarpPointer	41
#define X_SetInputFocus	42
#define X_GetInputFocus	43
#define X_QueryKeymap	44
#define sz_xGetWindowAttributesReply	44
#define sz_xSendEventReq	44
#define X_OpenFont	45
#define X_CloseFont	46
#define X_QueryFont	47
#define X_QueryTextExtents	48
#define X_ListFonts	49
#define X_DestroySubwindows	5
#define X_ListFontsWithInfo	50
#define X_SetFontPath	51
#define X_GetFontPath	52
#define sz_xGetKeyboardControlReply	52
#define X_CreatePixmap	53
#define X_FreePixmap	54
#define X_CreateGC	55
#define X_ChangeGC	56
#define X_CopyGC	57
#define X_SetDashes	58
#define X_SetClipRectangles	59
#define X_ChangeSaveSet	6
#define X_FreeGC	60
#define sz_xListFontsWithInfoReply	60
#define sz_xQueryFontReply	60
#define X_TCP_PORT	6000
#define X_ClearArea	61
#define X_CopyArea	62
#define X_CopyPlane	63
#define X_PolyPoint	64
#define X_PolyLine	65
#define X_PolySegment	66
#define X_PolyRectangle	67
#define X_PolyArc	68
#define X_FillPoly	69
#define X_ReparentWindow	7
#define X_PolyFillRectangle	70
#define X_PolyFillArc	71
#define X_PutImage	72
#define X_GetImage	73
#define X_PolyText8	74
#define X_PolyText16	75
#define X_ImageText8	76
#define X_ImageText16	77
#define X_CreateColormap	78
#define X_FreeColormap	79
#define X_MapWindow	8
#define sz_xAllowEventsReq	8
#define sz_xChangeHostsReq	8
#define sz_xChangeKeyboardControlReq	8
#define sz_xChangeKeyboardMappingReq	8
#define sz_xChangeSaveSetReq	8
#define sz_xCirculateWindowReq	8
#define sz_xConnSetupPrefix	8
#define sz_xDepth	8
#define sz_xFontProp	8
#define sz_xGetKeyboardMappingReq	8
#define sz_xInternAtomReq	8
#define sz_xListFontsReq	8
#define sz_xListFontsWithInfoReq	8
#define sz_xPixmapFormat	8
#define sz_xQueryColorsReq	8
#define sz_xQueryExtensionReq	8
#define sz_xQueryTextExtentsReq	8
#define sz_xRectangle	8
#define sz_xResourceReq	8
#define sz_xSegment	8
#define sz_xSetFontPathReq	8
#define sz_xStoreColorsReq	8
#define sz_xTimecoord	8
#define sz_xrgb	8
#define X_CopyColormapAndFree	80
#define X_InstallColormap	81
#define X_UninstallColormap	82
#define X_ListInstalledColormaps	83
#define X_AllocColor	84
#define X_AllocNamedColor	85
#define X_AllocColorCells	86
#define X_AllocColorPlanes	87
#define X_FreeColors	88
#define X_StoreColors	89
#define X_MapSubwindows	9
#define X_StoreNamedColor	90
#define X_QueryColors	91
#define X_LookupColor	92
#define X_CreateCursor	93
#define X_CreateGlyphCursor	94
#define X_FreeCursor	95
#define X_RecolorCursor	96
#define X_QueryBestSize	97
#define X_QueryExtension	98
#define X_ListExtensions	99

typedef struct _xEvent {
    union {
	struct {
	    BYTE type;
	    BYTE detail;
	    CARD16 sequenceNumber;
	} u;
	struct {
	    CARD32 pad00;
	    CARD32 time;
	    CARD32 root;
	    CARD32 event;
	    CARD32 child;
	    INT16 rootX;
	    INT16 rootY;
	    INT16 eventX;
	    INT16 eventY;
	    KeyButMask state;
	    BOOL sameScreen;
	    BYTE pad1;
	} keyButtonPointer;
	struct {
	    CARD32 pad00;
	    CARD32 time;
	    CARD32 root;
	    CARD32 event;
	    CARD32 child;
	    INT16 rootX;
	    INT16 rootY;
	    INT16 eventX;
	    INT16 eventY;
	    KeyButMask state;
	    BYTE mode;
	    BYTE flags;
	} enterLeave;
	struct {
	    CARD32 pad00;
	    CARD32 window;
	    BYTE mode;
	    BYTE pad1;
	    BYTE pad2;
	    BYTE pad3;
	} focus;
	struct {
	    CARD32 pad00;
	    CARD32 window;
	    CARD16 x;
	    CARD16 y;
	    CARD16 width;
	    CARD16 height;
	    CARD16 count;
	    CARD16 pad2;
	} expose;
	struct {
	    CARD32 pad00;
	    CARD32 drawable;
	    CARD16 x;
	    CARD16 y;
	    CARD16 width;
	    CARD16 height;
	    CARD16 minorEvent;
	    CARD16 count;
	    BYTE majorEvent;
	    BYTE pad1;
	    BYTE pad2;
	    BYTE pad3;
	} graphicsExposure;
	struct {
	    CARD32 pad00;
	    CARD32 drawable;
	    CARD16 minorEvent;
	    BYTE majorEvent;
	    BYTE bpad;
	} noExposure;
	struct {
	    CARD32 pad00;
	    CARD32 window;
	    CARD8 state;
	    BYTE pad1;
	    BYTE pad2;
	    BYTE pad3;
	} visibility;
	struct {
	    CARD32 pad00;
	    CARD32 parent;
	    CARD32 window;
	    INT16 x;
	    INT16 y;
	    CARD16 width;
	    CARD16 height;
	    CARD16 borderWidth;
	    BOOL override;
	    BYTE bpad;
	} createNotify;
	struct {
	    CARD32 pad00;
	    CARD32 event;
	    CARD32 window;
	} destroyNotify;
	struct {
	    CARD32 pad00;
	    CARD32 event;
	    CARD32 window;
	    BOOL fromConfigure;
	    BYTE pad1;
	    BYTE pad2;
	    BYTE pad3;
	} unmapNotify;
	struct {
	    CARD32 pad00;
	    CARD32 event;
	    CARD32 window;
	    BOOL override;
	    BYTE pad1;
	    BYTE pad2;
	    BYTE pad3;
	} mapNotify;
	struct {
	    CARD32 pad00;
	    CARD32 parent;
	    CARD32 window;
	} mapRequest;
	struct {
	    CARD32 pad00;
	    CARD32 event;
	    CARD32 window;
	    CARD32 parent;
	    INT16 x;
	    INT16 y;
	    BOOL override;
	    BYTE pad1;
	    BYTE pad2;
	    BYTE pad3;
	} reparent;
	struct {
	    CARD32 pad00;
	    CARD32 event;
	    CARD32 window;
	    CARD32 aboveSibling;
	    INT16 x;
	    INT16 y;
	    CARD16 width;
	    CARD16 height;
	    CARD16 borderWidth;
	    BOOL override;
	    BYTE bpad;
	} configureNotify;
	struct {
	    CARD32 pad00;
	    CARD32 parent;
	    CARD32 window;
	    CARD32 sibling;
	    INT16 x;
	    INT16 y;
	    CARD16 width;
	    CARD16 height;
	    CARD16 borderWidth;
	    CARD16 valueMask;
	    CARD32 pad1;
	} configureRequest;
	struct {
	    CARD32 pad00;
	    CARD32 event;
	    CARD32 window;
	    INT16 x;
	    INT16 y;
	    CARD32 pad1;
	    CARD32 pad2;
	    CARD32 pad3;
	    CARD32 pad4;
	} gravity;
	struct {
	    CARD32 pad00;
	    CARD32 window;
	    CARD16 width;
	    CARD16 height;
	} resizeRequest;
	struct {
	    CARD32 pad00;
	    CARD32 event;
	    CARD32 window;
	    CARD32 parent;
	    BYTE place;
	    BYTE pad1;
	    BYTE pad2;
	    BYTE pad3;
	} circulate;
	struct {
	    CARD32 pad00;
	    CARD32 window;
	    CARD32 atom;
	    CARD32 time;
	    BYTE state;
	    BYTE pad1;
	    CARD16 pad2;
	} property;
	struct {
	    CARD32 pad00;
	    CARD32 time;
	    CARD32 window;
	    CARD32 atom;
	} selectionClear;
	struct {
	    CARD32 pad00;
	    CARD32 time;
	    CARD32 owner;
	    CARD32 requestor;
	    CARD32 selection;
	    CARD32 target;
	    CARD32 property;
	} selectionRequest;
	struct {
	    CARD32 pad00;
	    CARD32 time;
	    CARD32 requestor;
	    CARD32 selection;
	    CARD32 target;
	    CARD32 property;
	} selectionNotify;
	struct {
	    CARD32 pad00;
	    CARD32 window;
	    CARD32 colormap;
#if defined(__cplusplus) || defined(c_plusplus)
	    BOOL c_new;
#else
	    BOOL new;
#endif
	    BYTE state;
	    BYTE pad1;
	    BYTE pad2;
	} colormap;
	struct {
	    CARD32 pad00;
	    CARD8 request;
	    CARD8 firstKeyCode;
	    CARD8 count;
	    BYTE pad1;
	} mappingNotify;
	struct {
	    CARD32 pad00;
	    CARD32 window;
	    union {
		struct {
		    CARD32 type;
		    INT32 longs0;
		    INT32 longs1;
		    INT32 longs2;
		    INT32 longs3;
		    INT32 longs4;
		} l;
		struct {
		    CARD32 type;
		    INT16 shorts0;
		    INT16 shorts1;
		    INT16 shorts2;
		    INT16 shorts3;
		    INT16 shorts4;
		    INT16 shorts5;
		    INT16 shorts6;
		    INT16 shorts7;
		    INT16 shorts8;
		    INT16 shorts9;
		} s;
		struct {
		    CARD32 type;
		    INT8 bytes[20];
		} b;
	    } u;
	} clientMessage;
    } u;
} xEvent;
typedef struct {
    BYTE type;
    BYTE errorCode;
    CARD16 sequenceNumber;
    CARD32 resourceID;
    CARD16 minorCode;
    CARD8 majorCode;
    BYTE pad1;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xError;
typedef CARD16 KeyButMask;
typedef struct {
    CARD8 byteOrder;
    BYTE pad;
    CARD16 majorVersion;
    CARD16 minorVersion;
    CARD16 nbytesAuthProto;
    CARD16 nbytesAuthString;
    CARD16 pad2;
} xConnClientPrefix;
typedef struct {
    CARD8 success;
    BYTE lengthReason;
    CARD16 majorVersion;
    CARD16 minorVersion;
    CARD16 length;
} xConnSetupPrefix;
typedef struct {
    CARD32 release;
    CARD32 ridBase;
    CARD32 ridMask;
    CARD32 motionBufferSize;
    CARD16 nbytesVendor;
    CARD16 maxRequestSize;
    CARD8 numRoots;
    CARD8 numFormats;
    CARD8 imageByteOrder;
    CARD8 bitmapBitOrder;
    CARD8 bitmapScanlineUnit;
    CARD8 bitmapScanlinePad;
    CARD8 minKeyCode;
    CARD8 maxKeyCode;
    CARD32 pad2;
} xConnSetup;
typedef struct {
    CARD8 depth;
    CARD8 bitsPerPixel;
    CARD8 scanLinePad;
    CARD8 pad1;
    CARD32 pad2;
} xPixmapFormat;
typedef struct {
    CARD8 depth;
    CARD8 pad1;
    CARD16 nVisuals;
    CARD32 pad2;
} xDepth;
typedef struct {
    CARD32 visualID;
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 bitsPerRGB;
    CARD16 colormapEntries;
    CARD32 redMask;
    CARD32 greenMask;
    CARD32 blueMask;
    CARD32 pad;
} xVisualType;
typedef struct {
    CARD32 windowId;
    CARD32 defaultColormap;
    CARD32 whitePixel;
    CARD32 blackPixel;
    CARD32 currentInputMask;
    CARD16 pixWidth;
    CARD16 pixHeight;
    CARD16 mmWidth;
    CARD16 mmHeight;
    CARD16 minInstalledMaps;
    CARD16 maxInstalledMaps;
    CARD32 rootVisualID;
    CARD8 backingStore;
    BOOL saveUnders;
    CARD8 rootDepth;
    CARD8 nDepths;
} xWindowRoot;
typedef struct {
    CARD32 time;
    INT16 x;
    INT16 y;
} xTimecoord;
typedef struct {
    CARD8 family;
    BYTE pad;
    CARD16 length;
} xHostEntry;
typedef struct {
    INT16 leftSideBearing;
    INT16 rightSideBearing;
    INT16 characterWidth;
    INT16 ascent;
    INT16 descent;
    CARD16 attributes;
} xCharInfo;
typedef struct {
    CARD32 name;
    CARD32 value;
} xFontProp;
typedef struct {
    CARD8 len;
    INT8 delta;
} xTextElt;
typedef struct {
    CARD32 pixel;
    CARD16 red;
    CARD16 green;
    CARD16 blue;
    CARD8 flags;
    CARD8 pad;
} xColorItem;
typedef struct {
    CARD16 red;
    CARD16 green;
    CARD16 blue;
    CARD16 pad;
} xrgb;
typedef unsigned char KEYCODE;
typedef struct {
    BYTE type;
    BYTE data1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 data00;
    CARD32 data01;
    CARD32 data02;
    CARD32 data03;
    CARD32 data04;
    CARD32 data05;
} xGenericReply;
typedef struct {
    BYTE type;
    CARD8 backingStore;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 visualID;
#if defined(__cplusplus) || defined(c_plusplus)
    CARD16 c_class;
#else
    CARD16 class;
#endif
    CARD8 bitGravity;
    CARD8 winGravity;
    CARD32 backingBitPlanes;
    CARD32 backingPixel;
    BOOL saveUnder;
    BOOL mapInstalled;
    CARD8 mapState;
    BOOL override;
    CARD32 colormap;
    CARD32 allEventMasks;
    CARD32 yourEventMask;
    CARD16 doNotPropagateMask;
    CARD16 pad;
} xGetWindowAttributesReply;
typedef struct {
    BYTE type;
    CARD8 depth;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 root;
    INT16 x;
    INT16 y;
    CARD16 width;
    CARD16 height;
    CARD16 borderWidth;
    CARD16 pad1;
    CARD32 pad2;
    CARD32 pad3;
} xGetGeometryReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 root;
    CARD32 parent;
    CARD16 nChildren;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xQueryTreeReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 atom;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xInternAtomReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 nameLength;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xGetAtomNameReply;
typedef struct {
    BYTE type;
    CARD8 format;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 propertyType;
    CARD32 bytesAfter;
    CARD32 nItems;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
} xGetPropertyReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 nProperties;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xListPropertiesReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 owner;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xGetSelectionOwnerReply;
typedef struct {
    BYTE type;
    BYTE status;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xGrabPointerReply;
typedef xGrabPointerReply xGrabKeyboardReply;
typedef struct {
    BYTE type;
    BOOL sameScreen;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 root;
    CARD32 child;
    INT16 rootX;
    INT16 rootY;
    INT16 winX;
    INT16 winY;
    CARD16 mask;
    CARD16 pad1;
    CARD32 pad;
} xQueryPointerReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 nEvents;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xGetMotionEventsReply;
typedef struct {
    BYTE type;
    BOOL sameScreen;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 child;
    INT16 dstX;
    INT16 dstY;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xTranslateCoordsReply;
typedef struct {
    BYTE type;
    CARD8 revertTo;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 focus;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xGetInputFocusReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    BYTE map[32];
} xQueryKeymapReply;
typedef struct _xQueryFontReply {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    xCharInfo minBounds;
    CARD32 walign1;
    xCharInfo maxBounds;
    CARD32 walign2;
    CARD16 minCharOrByte2;
    CARD16 maxCharOrByte2;
    CARD16 defaultChar;
    CARD16 nFontProps;
    CARD8 drawDirection;
    CARD8 minByte1;
    CARD8 maxByte1;
    BOOL allCharsExist;
    INT16 fontAscent;
    INT16 fontDescent;
    CARD32 nCharInfos;
} xQueryFontReply;
typedef struct {
    BYTE type;
    CARD8 drawDirection;
    CARD16 sequenceNumber;
    CARD32 length;
    INT16 fontAscent;
    INT16 fontDescent;
    INT16 overallAscent;
    INT16 overallDescent;
    INT32 overallWidth;
    INT32 overallLeft;
    INT32 overallRight;
    CARD32 pad;
} xQueryTextExtentsReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 nFonts;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xListFontsReply;
typedef struct {
    BYTE type;
    CARD8 nameLength;
    CARD16 sequenceNumber;
    CARD32 length;
    xCharInfo minBounds;
    CARD32 walign1;
    xCharInfo maxBounds;
    CARD32 walign2;
    CARD16 minCharOrByte2;
    CARD16 maxCharOrByte2;
    CARD16 defaultChar;
    CARD16 nFontProps;
    CARD8 drawDirection;
    CARD8 minByte1;
    CARD8 maxByte1;
    BOOL allCharsExist;
    INT16 fontAscent;
    INT16 fontDescent;
    CARD32 nReplies;
} xListFontsWithInfoReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 nPaths;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xGetFontPathReply;
typedef struct {
    BYTE type;
    CARD8 depth;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 visual;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xGetImageReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 nColormaps;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xListInstalledColormapsReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 red;
    CARD16 green;
    CARD16 blue;
    CARD16 pad2;
    CARD32 pixel;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xAllocColorReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 pixel;
    CARD16 exactRed;
    CARD16 exactGreen;
    CARD16 exactBlue;
    CARD16 screenRed;
    CARD16 screenGreen;
    CARD16 screenBlue;
    CARD32 pad2;
    CARD32 pad3;
} xAllocNamedColorReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 nPixels;
    CARD16 nMasks;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xAllocColorCellsReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 nPixels;
    CARD16 pad2;
    CARD32 redMask;
    CARD32 greenMask;
    CARD32 blueMask;
    CARD32 pad3;
    CARD32 pad4;
} xAllocColorPlanesReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 nColors;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xQueryColorsReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 exactRed;
    CARD16 exactGreen;
    CARD16 exactBlue;
    CARD16 screenRed;
    CARD16 screenGreen;
    CARD16 screenBlue;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xLookupColorReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 width;
    CARD16 height;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xQueryBestSizeReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    BOOL present;
    CARD8 major_opcode;
    CARD8 first_event;
    CARD8 first_error;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xQueryExtensionReply;
typedef struct {
    BYTE type;
    CARD8 nExtensions;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xListExtensionsReply;
typedef struct {
    BYTE type;
    CARD8 success;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xSetMappingReply;
typedef xSetMappingReply xSetPointerMappingReply;
typedef xSetMappingReply xSetModifierMappingReply;
typedef struct {
    BYTE type;
    CARD8 nElts;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xGetPointerMappingReply;
typedef struct {
    BYTE type;
    CARD8 keySymsPerKeyCode;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xGetKeyboardMappingReply;
typedef struct {
    BYTE type;
    CARD8 numKeyPerModifier;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xGetModifierMappingReply;
typedef struct {
    BYTE type;
    BOOL globalAutoRepeat;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 ledMask;
    CARD8 keyClickPercent;
    CARD8 bellPercent;
    CARD16 bellPitch;
    CARD16 bellDuration;
    CARD16 pad;
    BYTE map[32];
} xGetKeyboardControlReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 accelNumerator;
    CARD16 accelDenominator;
    CARD16 threshold;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xGetPointerControlReply;
typedef struct {
    BYTE type;
    BYTE pad1;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 timeout;
    CARD16 interval;
    BOOL preferBlanking;
    BOOL allowExposures;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xGetScreenSaverReply;
typedef struct {
    BYTE type;
    BOOL enabled;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 nHosts;
    CARD16 pad1;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xListHostsReply;
typedef struct {
    BYTE type;
    BYTE map[31];
} xKeymapEvent;
typedef struct _xReq {
    CARD8 reqType;
    CARD8 data;
    CARD16 length;
} xReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 id;
} xResourceReq;
typedef struct {
    CARD8 reqType;
    CARD8 depth;
    CARD16 length;
    CARD32 wid;
    CARD32 parent;
    INT16 x;
    INT16 y;
    CARD16 width;
    CARD16 height;
    CARD16 borderWidth;
#if defined(__cplusplus) || defined(c_plusplus)
    CARD16 c_class;
#else
    CARD16 class;
#endif
    CARD32 visual;
    CARD32 mask;
} xCreateWindowReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 window;
    CARD32 valueMask;
} xChangeWindowAttributesReq;
typedef struct {
    CARD8 reqType;
    BYTE mode;
    CARD16 length;
    CARD32 window;
} xChangeSaveSetReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 window;
    CARD32 parent;
    INT16 x;
    INT16 y;
} xReparentWindowReq;
typedef struct {
    CARD8 reqType;
    CARD8 pad;
    CARD16 length;
    CARD32 window;
    CARD16 mask;
    CARD16 pad2;
} xConfigureWindowReq;
typedef struct {
    CARD8 reqType;
    CARD8 direction;
    CARD16 length;
    CARD32 window;
} xCirculateWindowReq;
typedef struct {
    CARD8 reqType;
    BOOL onlyIfExists;
    CARD16 length;
    CARD16 nbytes;
    CARD16 pad;
} xInternAtomReq;
typedef struct {
    CARD8 reqType;
    CARD8 mode;
    CARD16 length;
    CARD32 window;
    CARD32 property;
    CARD32 type;
    CARD8 format;
    BYTE pad[3];
    CARD32 nUnits;
} xChangePropertyReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 window;
    CARD32 property;
} xDeletePropertyReq;
typedef struct {
    CARD8 reqType;
#if defined(__cplusplus) || defined(c_plusplus)
    BOOL c_delete;
#else
    BOOL delete;
#endif
    CARD16 length;
    CARD32 window;
    CARD32 property;
    CARD32 type;
    CARD32 longOffset;
    CARD32 longLength;
} xGetPropertyReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 window;
    CARD32 selection;
    CARD32 time;
} xSetSelectionOwnerReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 requestor;
    CARD32 selection;
    CARD32 target;
    CARD32 property;
    CARD32 time;
} xConvertSelectionReq;
typedef struct {
    CARD8 reqType;
    BOOL ownerEvents;
    CARD16 length;
    CARD32 grabWindow;
    CARD16 eventMask;
    BYTE pointerMode;
    BYTE keyboardMode;
    CARD32 confineTo;
    CARD32 cursor;
    CARD32 time;
} xGrabPointerReq;
typedef struct {
    CARD8 reqType;
    BOOL ownerEvents;
    CARD16 length;
    CARD32 grabWindow;
    CARD16 eventMask;
    BYTE pointerMode;
    BYTE keyboardMode;
    CARD32 confineTo;
    CARD32 cursor;
    CARD8 button;
    BYTE pad;
    CARD16 modifiers;
} xGrabButtonReq;
typedef struct {
    CARD8 reqType;
    CARD8 button;
    CARD16 length;
    CARD32 grabWindow;
    CARD16 modifiers;
    CARD16 pad;
} xUngrabButtonReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 cursor;
    CARD32 time;
    CARD16 eventMask;
    CARD16 pad2;
} xChangeActivePointerGrabReq;
typedef struct {
    CARD8 reqType;
    BOOL ownerEvents;
    CARD16 length;
    CARD32 grabWindow;
    CARD32 time;
    BYTE pointerMode;
    BYTE keyboardMode;
    CARD16 pad;
} xGrabKeyboardReq;
typedef struct {
    CARD8 reqType;
    BOOL ownerEvents;
    CARD16 length;
    CARD32 grabWindow;
    CARD16 modifiers;
    CARD8 key;
    BYTE pointerMode;
    BYTE keyboardMode;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xGrabKeyReq;
typedef struct {
    CARD8 reqType;
    CARD8 key;
    CARD16 length;
    CARD32 grabWindow;
    CARD16 modifiers;
    CARD16 pad;
} xUngrabKeyReq;
typedef struct {
    CARD8 reqType;
    CARD8 mode;
    CARD16 length;
    CARD32 time;
} xAllowEventsReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 window;
    CARD32 start;
    CARD32 stop;
} xGetMotionEventsReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 srcWid;
    CARD32 dstWid;
    INT16 srcX;
    INT16 srcY;
} xTranslateCoordsReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 srcWid;
    CARD32 dstWid;
    INT16 srcX;
    INT16 srcY;
    CARD16 srcWidth;
    CARD16 srcHeight;
    INT16 dstX;
    INT16 dstY;
} xWarpPointerReq;
typedef struct {
    CARD8 reqType;
    CARD8 revertTo;
    CARD16 length;
    CARD32 focus;
    CARD32 time;
} xSetInputFocusReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 fid;
    CARD16 nbytes;
    BYTE pad1;
    BYTE pad2;
} xOpenFontReq;
typedef struct {
    CARD8 reqType;
    BOOL oddLength;
    CARD16 length;
    CARD32 fid;
} xQueryTextExtentsReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD16 maxNames;
    CARD16 nbytes;
} xListFontsReq;
typedef xListFontsReq xListFontsWithInfoReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD16 nFonts;
    BYTE pad1;
    BYTE pad2;
} xSetFontPathReq;
typedef struct {
    CARD8 reqType;
    CARD8 depth;
    CARD16 length;
    CARD32 pid;
    CARD32 drawable;
    CARD16 width;
    CARD16 height;
} xCreatePixmapReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 gc;
    CARD32 drawable;
    CARD32 mask;
} xCreateGCReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 gc;
    CARD32 mask;
} xChangeGCReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 srcGC;
    CARD32 dstGC;
    CARD32 mask;
} xCopyGCReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 gc;
    CARD16 dashOffset;
    CARD16 nDashes;
} xSetDashesReq;
typedef struct {
    CARD8 reqType;
    BYTE ordering;
    CARD16 length;
    CARD32 gc;
    INT16 xOrigin;
    INT16 yOrigin;
} xSetClipRectanglesReq;
typedef struct {
    CARD8 reqType;
    BOOL exposures;
    CARD16 length;
    CARD32 window;
    INT16 x;
    INT16 y;
    CARD16 width;
    CARD16 height;
} xClearAreaReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 srcDrawable;
    CARD32 dstDrawable;
    CARD32 gc;
    INT16 srcX;
    INT16 srcY;
    INT16 dstX;
    INT16 dstY;
    CARD16 width;
    CARD16 height;
} xCopyAreaReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 srcDrawable;
    CARD32 dstDrawable;
    CARD32 gc;
    INT16 srcX;
    INT16 srcY;
    INT16 dstX;
    INT16 dstY;
    CARD16 width;
    CARD16 height;
    CARD32 bitPlane;
} xCopyPlaneReq;
typedef struct {
    CARD8 reqType;
    BYTE coordMode;
    CARD16 length;
    CARD32 drawable;
    CARD32 gc;
} xPolyPointReq;
typedef xPolyPointReq xPolyLineReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 drawable;
    CARD32 gc;
} xPolySegmentReq;
typedef xPolySegmentReq xPolyArcReq;
typedef xPolySegmentReq xPolyRectangleReq;
typedef xPolySegmentReq xPolyFillRectangleReq;
typedef xPolySegmentReq xPolyFillArcReq;
typedef struct _FillPolyReq {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 drawable;
    CARD32 gc;
    BYTE shape;
    BYTE coordMode;
    CARD16 pad1;
} xFillPolyReq;
typedef struct _PutImageReq {
    CARD8 reqType;
    CARD8 format;
    CARD16 length;
    CARD32 drawable;
    CARD32 gc;
    CARD16 width;
    CARD16 height;
    INT16 dstX;
    INT16 dstY;
    CARD8 leftPad;
    CARD8 depth;
    CARD16 pad;
} xPutImageReq;
typedef struct {
    CARD8 reqType;
    CARD8 format;
    CARD16 length;
    CARD32 drawable;
    INT16 x;
    INT16 y;
    CARD16 width;
    CARD16 height;
    CARD32 planeMask;
} xGetImageReq;
typedef struct {
    CARD8 reqType;
    CARD8 pad;
    CARD16 length;
    CARD32 drawable;
    CARD32 gc;
    INT16 x;
    INT16 y;
} xPolyTextReq;
typedef xPolyTextReq xPolyText8Req;
typedef xPolyTextReq xPolyText16Req;
typedef struct {
    CARD8 reqType;
    BYTE nChars;
    CARD16 length;
    CARD32 drawable;
    CARD32 gc;
    INT16 x;
    INT16 y;
} xImageTextReq;
typedef xImageTextReq xImageText8Req;
typedef xImageTextReq xImageText16Req;
typedef struct {
    CARD8 reqType;
    BYTE alloc;
    CARD16 length;
    CARD32 mid;
    CARD32 window;
    CARD32 visual;
} xCreateColormapReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 mid;
    CARD32 srcCmap;
} xCopyColormapAndFreeReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 cmap;
    CARD16 red;
    CARD16 green;
    CARD16 blue;
    CARD16 pad2;
} xAllocColorReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 cmap;
    CARD16 nbytes;
    BYTE pad1;
    BYTE pad2;
} xAllocNamedColorReq;
typedef struct {
    CARD8 reqType;
    BOOL contiguous;
    CARD16 length;
    CARD32 cmap;
    CARD16 colors;
    CARD16 planes;
} xAllocColorCellsReq;
typedef struct {
    CARD8 reqType;
    BOOL contiguous;
    CARD16 length;
    CARD32 cmap;
    CARD16 colors;
    CARD16 red;
    CARD16 green;
    CARD16 blue;
} xAllocColorPlanesReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 cmap;
    CARD32 planeMask;
} xFreeColorsReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 cmap;
} xStoreColorsReq;
typedef struct {
    CARD8 reqType;
    CARD8 flags;
    CARD16 length;
    CARD32 cmap;
    CARD32 pixel;
    CARD16 nbytes;
    BYTE pad1;
    BYTE pad2;
} xStoreNamedColorReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 cmap;
} xQueryColorsReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 cmap;
    CARD16 nbytes;
    BYTE pad1;
    BYTE pad2;
} xLookupColorReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 cid;
    CARD32 source;
    CARD32 mask;
    CARD16 foreRed;
    CARD16 foreGreen;
    CARD16 foreBlue;
    CARD16 backRed;
    CARD16 backGreen;
    CARD16 backBlue;
    CARD16 x;
    CARD16 y;
} xCreateCursorReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 cid;
    CARD32 source;
    CARD32 mask;
    CARD16 sourceChar;
    CARD16 maskChar;
    CARD16 foreRed;
    CARD16 foreGreen;
    CARD16 foreBlue;
    CARD16 backRed;
    CARD16 backGreen;
    CARD16 backBlue;
} xCreateGlyphCursorReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 cursor;
    CARD16 foreRed;
    CARD16 foreGreen;
    CARD16 foreBlue;
    CARD16 backRed;
    CARD16 backGreen;
    CARD16 backBlue;
} xRecolorCursorReq;
typedef struct {
    CARD8 reqType;
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD16 length;
    CARD32 drawable;
    CARD16 width;
    CARD16 height;
} xQueryBestSizeReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD16 nbytes;
    BYTE pad1;
    BYTE pad2;
} xQueryExtensionReq;
typedef struct {
    CARD8 reqType;
    CARD8 numKeyPerModifier;
    CARD16 length;
} xSetModifierMappingReq;
typedef struct {
    CARD8 reqType;
    CARD8 nElts;
    CARD16 length;
} xSetPointerMappingReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD8 firstKeyCode;
    CARD8 count;
    CARD16 pad1;
} xGetKeyboardMappingReq;
typedef struct {
    CARD8 reqType;
    CARD8 keyCodes;
    CARD16 length;
    CARD8 firstKeyCode;
    CARD8 keySymsPerKeyCode;
    CARD16 pad1;
} xChangeKeyboardMappingReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 mask;
} xChangeKeyboardControlReq;
typedef struct {
    CARD8 reqType;
    INT8 percent;
    CARD16 length;
} xBellReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    INT16 accelNum;
    INT16 accelDenum;
    INT16 threshold;
    BOOL doAccel;
    BOOL doThresh;
} xChangePointerControlReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    INT16 timeout;
    INT16 interval;
    BYTE preferBlank;
    BYTE allowExpose;
    CARD16 pad2;
} xSetScreenSaverReq;
typedef struct {
    CARD8 reqType;
    BYTE mode;
    CARD16 length;
    CARD8 hostFamily;
    BYTE pad;
    CARD16 hostLength;
} xChangeHostsReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
} xListHostsReq;
typedef struct {
    CARD8 reqType;
    BYTE mode;
    CARD16 length;
} xChangeModeReq;
typedef xChangeModeReq xSetAccessControlReq;
typedef xChangeModeReq xSetCloseDownModeReq;
typedef xChangeModeReq xForceScreenSaverReq;
typedef struct {
    CARD8 reqType;
    BYTE pad;
    CARD16 length;
    CARD32 window;
    CARD16 nAtoms;
    INT16 nPositions;
} xRotatePropertiesReq;

typedef union {
    xGenericReply generic;
    xGetGeometryReply geom;
    xQueryTreeReply tree;
    xInternAtomReply atom;
    xGetAtomNameReply atomName;
    xGetPropertyReply property;
    xListPropertiesReply listProperties;
    xGetSelectionOwnerReply selection;
    xGrabPointerReply grabPointer;
    xGrabKeyboardReply grabKeyboard;
    xQueryPointerReply pointer;
    xGetMotionEventsReply motionEvents;
    xTranslateCoordsReply coords;
    xGetInputFocusReply inputFocus;
    xQueryTextExtentsReply textExtents;
    xListFontsReply fonts;
    xGetFontPathReply fontPath;
    xGetImageReply image;
    xListInstalledColormapsReply colormaps;
    xAllocColorReply allocColor;
    xAllocNamedColorReply allocNamedColor;
    xAllocColorCellsReply colorCells;
    xAllocColorPlanesReply colorPlanes;
    xQueryColorsReply colors;
    xLookupColorReply lookupColor;
    xQueryBestSizeReply bestSize;
    xQueryExtensionReply extension;
    xListExtensionsReply extensions;
    xSetModifierMappingReply setModifierMapping;
    xGetModifierMappingReply getModifierMapping;
    xSetPointerMappingReply setPointerMapping;
    xGetKeyboardMappingReply getKeyboardMapping;
    xGetPointerMappingReply getPointerMapping;
    xGetPointerControlReply pointerControl;
    xGetScreenSaverReply screenSaver;
    xListHostsReply hosts;
    xError error;
    xEvent event;
} xReply;
typedef struct {
    CARD8 reqType;
    BOOL propagate;
    CARD16 length;
    CARD32 destination;
    CARD32 eventMask;
    xEvent event;
} xSendEventReq;

6.2.12. X11/Xprotostr.h


typedef struct _xSegment {
    INT16 x1;
    INT16 y1;
    INT16 x2;
    INT16 y2;
} xSegment;
typedef struct _xPoint {
    INT16 x;
    INT16 y;
} xPoint;
typedef struct _xRectangle {
    INT16 x;
    INT16 y;
    CARD16 width;
    CARD16 height;
} xRectangle;
typedef struct _xArc {
    INT16 x;
    INT16 y;
    CARD16 width;
    CARD16 height;
    INT16 angle1;
    INT16 angle2;
} xArc;

6.2.13. X11/Xresource.h


#define NULLQUARK	((XrmQuark) 0)

typedef int XrmQuark;
typedef int *XrmQuarkList;
typedef char *XrmString;
typedef enum {
    XrmBindTightly,
    XrmBindLoosely
} XrmBinding, *XrmBindingList;
typedef XrmQuark XrmName;
typedef XrmQuarkList XrmNameList;
typedef XrmQuark XrmClass;
typedef XrmQuarkList XrmClassList;
typedef XrmQuark XrmRepresentation;
typedef struct {
    unsigned int size;
    XPointer addr;
} XrmValue, *XrmValuePtr;
typedef struct _XrmHashBucketRec *XrmHashBucket;
typedef XrmHashBucket *XrmHashTable;
typedef XrmHashTable XrmSearchList[];
typedef struct _XrmHashBucketRec *XrmDatabase;
typedef enum {
    XrmoptionNoArg,
    XrmoptionIsArg,
    XrmoptionStickyArg,
    XrmoptionSepArg,
    XrmoptionResArg,
    XrmoptionSkipArg,
    XrmoptionSkipLine,
    XrmoptionSkipNArgs
} XrmOptionKind;
typedef struct {
    char *option;
    char *specifier;
    XrmOptionKind argKind;
    XPointer value;
} XrmOptionDescRec, *XrmOptionDescList;
extern void XrmCombineDatabase(XrmDatabase, XrmDatabase *, int);
extern int XrmCombineFileDatabase(const char *, XrmDatabase *, int);
extern void XrmDestroyDatabase(XrmDatabase);
extern int XrmEnumerateDatabase(XrmDatabase, XrmNameList, XrmClassList,
				int, int (*)(XrmDatabase *, XrmBindingList,
					     XrmQuarkList,
					     XrmRepresentation *,
					     XrmValue *, XPointer),
				XPointer);
extern XrmDatabase XrmGetDatabase(Display *);
extern XrmDatabase XrmGetFileDatabase(const char *);
extern int XrmGetResource(XrmDatabase, const char *, const char *, char **,
			  XrmValue *);
extern XrmDatabase XrmGetStringDatabase(const char *);
extern const char *XrmLocaleOfDatabase(XrmDatabase);
extern void XrmMergeDatabases(XrmDatabase, XrmDatabase *);
extern void XrmParseCommand(XrmDatabase *, XrmOptionDescList, int,
			    const char *, int *, char **);
extern XrmQuark XrmPermStringToQuark(const char *);
extern void XrmPutFileDatabase(XrmDatabase, const char *);
extern void XrmPutLineResource(XrmDatabase *, const char *);
extern void XrmPutResource(XrmDatabase *, const char *, const char *,
			   XrmValue *);
extern void XrmPutStringResource(XrmDatabase *, const char *,
				 const char *);
extern int XrmQGetResource(XrmDatabase, XrmNameList, XrmClassList,
			   XrmRepresentation *, XrmValue *);
extern int XrmQGetSearchList(XrmDatabase, XrmNameList, XrmClassList,
			     XrmSearchList, int);
extern int XrmQGetSearchResource(XrmSearchList, XrmName, XrmClass,
				 XrmRepresentation *, XrmValue *);
extern void XrmQPutResource(XrmDatabase *, XrmBindingList, XrmQuarkList,
			    XrmRepresentation, XrmValue *);
extern void XrmQPutStringResource(XrmDatabase *, XrmBindingList,
				  XrmQuarkList, const char *);
extern XrmString XrmQuarkToString(XrmQuark);
extern void XrmSetDatabase(Display *, XrmDatabase);
extern void XrmStringToBindingQuarkList(const char *, XrmBindingList,
					XrmQuarkList);
extern XrmQuark XrmStringToQuark(const char *);
extern void XrmStringToQuarkList(const char *, XrmQuarkList);
extern XrmQuark XrmUniqueQuark(void);

6.2.14. X11/Xutil.h


#define IsModifierKey(keysym)	((((KeySym)(keysym) >= XK_Shift_L) && ((KeySym)(keysym) <= XK_Hyper_R)) || (((KeySym)(keysym) >= XK_ISO_Lock) && ((KeySym)(keysym) <= XK_ISO_Last_Group_Lock)) || ((KeySym)(keysym) == XK_Mode_switch) || ((KeySym)(keysym) == XK_Num_Lock))
#define IsPrivateKeypadKey(keysym)	(((KeySym)(keysym) >= 0x11000000) && ((KeySym)(keysym) <= 0x1100FFFF))
#define IsKeypadKey(keysym)	(((KeySym)(keysym) >= XK_KP_Space) && ((KeySym)(keysym) <= XK_KP_Equal))
#define IsMiscFunctionKey(keysym)	(((KeySym)(keysym) >= XK_Select) && ((KeySym)(keysym) <= XK_Break))
#define IsFunctionKey(keysym)	(((KeySym)(keysym)>=XK_F1)&&((KeySym)(keysym)<=XK_F35))
#define IsCursorKey(keysym)	(((KeySym)(keysym)>=XK_Home)&&((KeySym)(keysym)<XK_Select))
#define IsPFKey(keysym)	(((KeySym)(keysym)>=XK_KP_F1)&&((KeySym)(keysym)<=XK_KP_F4))
#define XStringToContext(string)	((XContext)XrmStringToQuark(string))
#define XUniqueContext()	((XContext)XrmUniqueQuark())
#define ReleaseByFreeingColormap	((XID)1L)
#define InputHint	(1L<<0)
#define USPosition	(1L<<0)
#define StateHint	(1L<<1)
#define USSize	(1L<<1)
#define IconPixmapHint	(1L<<2)
#define PPosition	(1L<<2)
#define IconWindowHint	(1L<<3)
#define PSize	(1L<<3)
#define IconPositionHint	(1L<<4)
#define PMinSize	(1L<<4)
#define IconMaskHint	(1L<<5)
#define PMaxSize	(1L<<5)
#define PResizeInc	(1L<<6)
#define WindowGroupHint	(1L<<6)
#define PAspect	(1L<<7)
#define PBaseSize	(1L<<8)
#define XUrgencyHint	(1L<<8)
#define PWinGravity	(1L<<9)
#define AllHints	(InputHint|StateHint|IconPixmapHint|IconWindowHint|IconPositionHint|IconMaskHint|WindowGroupHint)
#define PAllHints	(PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect)
#define XNoMemory	-1
#define XLocaleNotSupported	-2
#define XConverterNotFound	-3
#define BitmapSuccess	0
#define DontCareState	0
#define RectangleOut	0
#define WithdrawnState	0
#define XCSUCCESS	0
#define VisualNoMask	0x0
#define NoValue	0x0000
#define XValue	0x0001
#define YValue	0x0002
#define WidthValue	0x0004
#define HeightValue	0x0008
#define AllValues	0x000F
#define XNegative	0x0010
#define YNegative	0x0020
#define VisualIDMask	0x1
#define VisualRedMaskMask	0x10
#define VisualBitsPerRGBMask	0x100
#define VisualAllMask	0x1FF
#define VisualScreenMask	0x2
#define VisualGreenMaskMask	0x20
#define VisualDepthMask	0x4
#define VisualBlueMaskMask	0x40
#define VisualClassMask	0x8
#define VisualColormapSizeMask	0x80
#define BitmapOpenFailed	1
#define NormalState	1
#define RectangleIn	1
#define XCNOMEM	1
#define BitmapFileInvalid	2
#define RectanglePart	2
#define XCNOENT	2
#define ZoomState	2
#define BitmapNoMemory	3
#define IconicState	3
#define InactiveState	4

typedef struct {
    long int flags;
    int x;
    int y;
    int width;
    int height;
    int min_width;
    int min_height;
    int max_width;
    int max_height;
    int width_inc;
    int height_inc;
    struct {
	int x;
	int y;
    } min_aspect;
    struct {
	int x;
	int y;
    } max_aspect;
    int base_width;
    int base_height;
    int win_gravity;
} XSizeHints;
typedef struct {
    long int flags;
    int input;
    int initial_state;
    Pixmap icon_pixmap;
    Window icon_window;
    int icon_x;
    int icon_y;
    Pixmap icon_mask;
    XID window_group;
} XWMHints;
typedef struct {
    unsigned char *value;
    Atom encoding;
    int format;
    unsigned long int nitems;
} XTextProperty;
typedef struct {
    int min_width;
    int min_height;
    int max_width;
    int max_height;
    int width_inc;
    int height_inc;
} XIconSize;
typedef struct {
    char *res_name;
    char *res_class;
} XClassHint;
typedef struct _XComposeStatus {
    XPointer compose_ptr;
    int chars_matched;
} XComposeStatus;
typedef struct _XRegion *Region;
typedef struct {
    Visual *visual;
    VisualID visualid;
    int screen;
    int depth;
#if defined(__cplusplus) || defined(c_plusplus)
    int c_class;
#else
    int class;
#endif
    unsigned long int red_mask;
    unsigned long int green_mask;
    unsigned long int blue_mask;
    int colormap_size;
    int bits_per_rgb;
} XVisualInfo;
typedef struct {
    Colormap colormap;
    unsigned long int red_max;
    unsigned long int red_mult;
    unsigned long int green_max;
    unsigned long int green_mult;
    unsigned long int blue_max;
    unsigned long int blue_mult;
    unsigned long int base_pixel;
    VisualID visualid;
    XID killid;
} XStandardColormap;
typedef int XContext;
typedef enum {
    XStringStyle = 0,
    XCompoundTextStyle = 1,
    XTextStyle = 2,
    XStdICCTextStyle = 3,
    XUTF8StringStyle = 4
} XICCEncodingStyle;
extern int XAddPixel(XImage *, long int);
extern XClassHint *XAllocClassHint(void);
extern XIconSize *XAllocIconSize(void);
extern XSizeHints *XAllocSizeHints(void);
extern XStandardColormap *XAllocStandardColormap(void);
extern XWMHints *XAllocWMHints(void);
extern int XClipBox(Region, XRectangle *);
extern void XConvertCase(KeySym, KeySym *, KeySym *);
extern Region XCreateRegion(void);
extern const char *XDefaultString(void);
extern int XDeleteContext(Display *, XID, XContext);
extern int XDestroyImage(XImage *);
extern int XDestroyRegion(Region);
extern int XEmptyRegion(Region);
extern int XEqualRegion(Region, Region);
extern int XFindContext(Display *, XID, XContext, XPointer *);
extern int XGetClassHint(Display *, Window, XClassHint *);
extern int XGetIconSizes(Display *, Window, XIconSize * *, int *);
extern int XGetNormalHints(Display *, Window, XSizeHints *);
extern unsigned long int XGetPixel(XImage *, int, int);
extern int XGetRGBColormaps(Display *, Window, XStandardColormap * *,
			    int *, Atom);
extern int XGetSizeHints(Display *, Window, XSizeHints *, Atom);
extern int XGetStandardColormap(Display *, Window, XStandardColormap *,
				Atom);
extern int XGetTextProperty(Display *, Window, XTextProperty *, Atom);
extern XVisualInfo *XGetVisualInfo(Display *, long int, XVisualInfo *,
				   int *);
extern int XGetWMClientMachine(Display *, Window, XTextProperty *);
extern XWMHints *XGetWMHints(Display *, Window);
extern int XGetWMIconName(Display *, Window, XTextProperty *);
extern int XGetWMName(Display *, Window, XTextProperty *);
extern int XGetWMNormalHints(Display *, Window, XSizeHints *, long int *);
extern int XGetWMSizeHints(Display *, Window, XSizeHints *, long int *,
			   Atom);
extern int XGetZoomHints(Display *, Window, XSizeHints *);
extern int XIntersectRegion(Region, Region, Region);
extern int XLookupString(XKeyEvent *, char *, int, KeySym *,
			 XComposeStatus *);
extern int XMatchVisualInfo(Display *, int, int, int, XVisualInfo *);
extern int XOffsetRegion(Region, int, int);
extern int XPointInRegion(Region, int, int);
extern Region XPolygonRegion(XPoint *, int, int);
extern int XPutPixel(XImage *, int, int, unsigned long int);
extern int XRectInRegion(Region, int, int, unsigned int, unsigned int);
extern int XSaveContext(Display *, XID, XContext, const char *);
extern int XSetClassHint(Display *, Window, XClassHint *);
extern int XSetIconSizes(Display *, Window, XIconSize *, int);
extern int XSetNormalHints(Display *, Window, XSizeHints *);
extern void XSetRGBColormaps(Display *, Window, XStandardColormap *, int,
			     Atom);
extern int XSetRegion(Display *, GC, Region);
extern int XSetSizeHints(Display *, Window, XSizeHints *, Atom);
extern void XSetStandardColormap(Display *, Window, XStandardColormap *,
				 Atom);
extern int XSetStandardProperties(Display *, Window, const char *,
				  const char *, Pixmap, char **, int,
				  XSizeHints *);
extern void XSetTextProperty(Display *, Window, XTextProperty *, Atom);
extern void XSetWMClientMachine(Display *, Window, XTextProperty *);
extern int XSetWMHints(Display *, Window, XWMHints *);
extern void XSetWMIconName(Display *, Window, XTextProperty *);
extern void XSetWMName(Display *, Window, XTextProperty *);
extern void XSetWMNormalHints(Display *, Window, XSizeHints *);
extern void XSetWMProperties(Display *, Window, XTextProperty *,
			     XTextProperty *, char **, int, XSizeHints *,
			     XWMHints *, XClassHint *);
extern void XSetWMSizeHints(Display *, Window, XSizeHints *, Atom);
extern int XSetZoomHints(Display *, Window, XSizeHints *);
extern int XShrinkRegion(Region, int, int);
extern int XStringListToTextProperty(char **, int, XTextProperty *);
extern XImage *XSubImage(XImage *, int, int, unsigned int, unsigned int);
extern int XSubtractRegion(Region, Region, Region);
extern int XTextPropertyToStringList(XTextProperty *, char ***, int *);
extern int XUnionRectWithRegion(XRectangle *, Region, Region);
extern int XUnionRegion(Region, Region, Region);
extern int XWMGeometry(Display *, int, const char *, const char *,
		       unsigned int, XSizeHints *, int *, int *, int *,
		       int *, int *);
extern int XXorRegion(Region, Region, Region);
extern void XmbSetWMProperties(Display *, Window, const char *,
			       const char *, char **, int, XSizeHints *,
			       XWMHints *, XClassHint *);
extern int XmbTextListToTextProperty(Display * display, char **list,
				     int count, XICCEncodingStyle style,
				     XTextProperty * text_prop_return);
extern int XmbTextPropertyToTextList(Display * display,
				     const XTextProperty * text_prop,
				     char ***list_return,
				     int *count_return);
extern int Xutf8TextListToTextProperty(Display * display, char **list,
				       int count, XICCEncodingStyle style,
				       XTextProperty * text_prop_return);
extern int Xutf8TextPropertyToTextList(Display * display,
				       const XTextProperty * text_prop,
				       char ***list_return,
				       int *count_return);
extern void XwcFreeStringList(wchar_t * *list);
extern int XwcTextListToTextProperty(Display * display, wchar_t * *list,
				     int count, XICCEncodingStyle style,
				     XTextProperty * text_prop_return);
extern int XwcTextPropertyToTextList(Display * display,
				     const XTextProperty * text_prop,
				     wchar_t * **list_return,
				     int *count_return);

6.2.15. X11/cursorfont.h


#define _cursorfont_h_
#define XC_X_cursor	0
#define XC_arrow	2
#define XC_based_arrow_down	4
#define XC_based_arrow_up	6
#define XC_boat	8
#define XC_bogosity	10
#define XC_bottom_left_corner	12
#define XC_bottom_right_corner	14
#define XC_bottom_side	16
#define XC_bottom_tee	18
#define XC_box_spiral	20
#define XC_center_ptr	22
#define XC_circle	24
#define XC_clock	26
#define XC_coffee_mug	28
#define XC_cross	30
#define XC_cross_reverse	32
#define XC_crosshair	34
#define XC_diamond_cross	36
#define XC_dot	38
#define XC_dotbox	40
#define XC_double_arrow	42
#define XC_draft_large	44
#define XC_draft_small	46
#define XC_draped_box	48
#define XC_exchange	50
#define XC_fleur	52
#define XC_gobbler	54
#define XC_gumby	56
#define XC_hand1	58
#define XC_hand2	60
#define XC_heart	62
#define XC_icon	64
#define XC_iron_cross	66
#define XC_left_ptr	68
#define XC_left_side	70
#define XC_left_tee	72
#define XC_leftbutton	74
#define XC_ll_angle	76
#define XC_lr_angle	78
#define XC_man	80
#define XC_middlebutton	82
#define XC_mouse	84
#define XC_pencil	86
#define XC_pirate	88
#define XC_plus	90
#define XC_question_arrow	92
#define XC_right_ptr	94
#define XC_right_side	96
#define XC_right_tee	98
#define XC_rightbutton	100
#define XC_rtl_logo	102
#define XC_sailboat	104
#define XC_sb_down_arrow	106
#define XC_sb_h_double_arrow	108
#define XC_sb_left_arrow	110
#define XC_sb_right_arrow	112
#define XC_sb_up_arrow	114
#define XC_sb_v_double_arrow	116
#define XC_shuttle	118
#define XC_sizing	120
#define XC_spider	122
#define XC_spraycan	124
#define XC_star	126
#define XC_target	128
#define XC_tcross	130
#define XC_top_left_arrow	132
#define XC_top_left_corner	134
#define XC_top_right_corner	136
#define XC_top_side	138
#define XC_top_tee	140
#define XC_trek	142
#define XC_ul_angle	144
#define XC_umbrella	146
#define XC_ur_angle	148
#define XC_watch	150
#define XC_xterm	152
#define XC_num_glyphs	154

6.2.16. X11/extensions/XKB.h


#define XkbSingleXIClass(c)	((((c)&(~0xff))==0)||((c)==XkbDfltXIClass))
#define XkbSingleXIId(c)	((((c)&(~0xff))==0)||((c)==XkbDfltXIId))
#define XkbBuildCoreState(m,g)	((((g)&0x3)<<13)|((m)&0xff))
#define XkbIsPtrAction(a)	(((a)->type>=XkbSA_MovePtr)&&((a)->type<=XkbSA_SetPtrDflt))
#define XkbIsGroupAction(a)	(((a)->type>=XkbSA_SetGroup)&&((a)->type<=XkbSA_LockGroup))
#define XkbIsModAction(a)	(((a)->type>=Xkb_SASetMods)&&((a)->type<=XkbSA_LockMods))
#define XkbExplicitXIClass(c)	(((c)&(~0xff))==0)
#define XkbExplicitXIDevice(c)	(((c)&(~0xff))==0)
#define XkbExplicitXIId(c)	(((c)&(~0xff))==0)
#define XkbLegalXIBellClass(c)	(((c)==KbdFeedbackClass)|| ((c)==BellFeedbackClass)|| ((c)==XkbDfltXIClass)|| ((c)==XkbAllXIClasses))
#define XkbLegalXILedClass(c)	(((c)==KbdFeedbackClass)|| ((c)==LedFeedbackClass)|| ((c)==XkbDfltXIClass)|| ((c)==XkbAllXIClasses))
#define XkbIsLegalGroup(g)	(((g)>=0)&&((g)<XkbNumKbdGroups))
#define XkbGroupForCoreState(s)	(((s)>>13)&0x3)
#define XkbSA_BreakLatch	((1<<XkbSA_NoAction)|(1<<XkbSA_PtrBtn)|(1<<XkbSA_LockPtrBtn)| (1<<XkbSA_Terminate)|(1<<XkbSA_SwitchScreen)|(1<<XkbSA_SetControls)| (1<<XkbSA_LockControls)|(1<<XkbSA_ActionMessage)| (1<<XkbSA_RedirectKey)|(1<<XkbSA_DeviceBtn)|(1<<XkbSA_LockDeviceBtn))
#define XkbSA_ValOp(a)	((a)&XkbSA_ValOpMask)
#define XkbSA_ValScale(a)	((a)&XkbSA_ValScaleMask)
#define XkbIsLegalKeycode(k)	((k)>=XkbMinLegalKeyCode)
#define XkbShiftLevel(n)	((n)-1)
#define XkbPerKeyBitArraySize	((XkbMaxLegalKeyCode+1)/8)
#define XkbSI_NoneOf	(0)
#define XkbSA_IgnoreVal	(0x00)
#define XkbWrapIntoRange	(0x00)
#define XkbAllBooleanCtrlsMask	(0x00001FFF)
#define XkbXI_IndicatorsMask	(0x001c)
#define XkbXI_AllDeviceFeaturesMask	(0x001e)
#define XkbXI_AllFeaturesMask	(0x001f)
#define XkbSA_ValScaleMask	(0x07)
#define XkbAX_SKOptionsMask	(0x0C0)
#define XkbExplicitKeyTypesMask	(0x0f)
#define XkbSA_SetValMin	(0x10)
#define XkbPCF_AllFlagsMask	(0x1F)
#define XkbSA_SetValCenter	(0x20)
#define XkbAllCompatMask	(0x3)
#define XkbSA_SetValMax	(0x30)
#define XkbComponentNamesMask	(0x3f)
#define XkbAllNamesMask	(0x3fff)
#define XkbAllStateComponentsMask	(0x3fff)
#define XkbClampIntoRange	(0x40)
#define XkbSA_SetValRelative	(0x40)
#define XkbSA_SetValAbsolute	(0x50)
#define XkbAllNewKeyboardEventsMask	(0x7)
#define XkbSA_ValOpMask	(0x70)
#define XkbSA_ISOAffectMask	(0x78)
#define XkbAllComponentsMask	(0x7f)
#define XkbSI_OpMask	(0x7f)
#define XkbRedirectIntoRange	(0x80)
#define XkbSI_LevelOneOnly	(0x80)
#define XkbAllExtensionDeviceEventsMask	(0x801f)
#define XkbAllAccessXEventsMask	(0xf)
#define XkbAllGroupsMask	(0xf)
#define XkbAllRequiredTypes	(0xf)
#define XkbAX_FBOptionsMask	(0xF3F)
#define XkbAllControlsMask	(0xF8001FFF)
#define XkbAllExplicitMask	(0xff)
#define XkbGBN_AllComponentsMask	(0xff)
#define XkbAX_AllOptionsMask	(0xFFF)
#define XkbAllEventsMask	(0xFFF)
#define XkbAllIndicatorsMask	(0xffffffff)
#define XkbAllRadioGroupsMask	(0xffffffff)
#define XkbSI_AnyOfOrNone	(1)
#define XkbShiftLevelMask(n)	(1<<((n)-1))
#define XkbDF_DisableLocks	(1<<0)
#define XkbExplicitKeyType1Mask	(1<<0)
#define XkbGroup1Mask	(1<<0)
#define XkbKeyTypesMask	(1<<0)
#define XkbKeycodesNameMask	(1<<0)
#define XkbOneLevelMask	(1<<0)
#define XkbSI_AutoRepeat	(1<<0)
#define XkbSymInterpMask	(1<<0)
#define XkbExplicitKeyType2Mask	(1<<1)
#define XkbGeometryNameMask	(1<<1)
#define XkbGroup2Mask	(1<<1)
#define XkbGroupCompatMask	(1<<1)
#define XkbKeySymsMask	(1<<1)
#define XkbSI_LockingKey	(1<<1)
#define XkbTwoLevelMask	(1<<1)
#define XkbKeyAliasesMask	(1<<10)
#define XkbVirtualModNamesMask	(1<<11)
#define XkbGroupNamesMask	(1<<12)
#define XkbRGNamesMask	(1<<13)
#define XkbAlphabeticMask	(1<<2)
#define XkbExplicitKeyType3Mask	(1<<2)
#define XkbGroup3Mask	(1<<2)
#define XkbModifierMapMask	(1<<2)
#define XkbSymbolsNameMask	(1<<2)
#define XkbExplicitComponentsMask	(1<<3)
#define XkbExplicitKeyType4Mask	(1<<3)
#define XkbGroup4Mask	(1<<3)
#define XkbKeypadMask	(1<<3)
#define XkbPhysSymbolsNameMask	(1<<3)
#define XkbExplicitInterpretMask	(1<<4)
#define XkbKeyActionsMask	(1<<4)
#define XkbTypesNameMask	(1<<4)
#define XkbCompatNameMask	(1<<5)
#define XkbExplicitAutoRepeatMask	(1<<5)
#define XkbKeyBehaviorsMask	(1<<5)
#define XkbExplicitBehaviorMask	(1<<6)
#define XkbKeyTypeNamesMask	(1<<6)
#define XkbVirtualModsMask	(1<<6)
#define XkbAnyGroupMask	(1<<7)
#define XkbExplicitVModMapMask	(1<<7)
#define XkbKTLevelNamesMask	(1<<7)
#define XkbVirtualModMapMask	(1<<7)
#define XkbIndicatorNamesMask	(1<<8)
#define XkbKeyNamesMask	(1<<9)
#define XkbAXN_SKPressMask	(1L << 0)
#define XkbAX_SKPressFBMask	(1L << 0)
#define XkbAllActionMessagesMask	(1L << 0)
#define XkbAllBellEventsMask	(1L << 0)
#define XkbClientMapMask	(1L << 0)
#define XkbGBN_TypesMask	(1L << 0)
#define XkbIM_UseBase	(1L << 0)
#define XkbLC_Hidden	(1L << 0)
#define XkbModifierStateMask	(1L << 0)
#define XkbNKN_KeycodesMask	(1L << 0)
#define XkbNewKeyboardNotifyMask	(1L << 0)
#define XkbPCF_DetectableAutoRepeatMask	(1L << 0)
#define XkbRepeatKeysMask	(1L << 0)
#define XkbSA_ClearLocks	(1L << 0)
#define XkbSA_LockNoLock	(1L << 0)
#define XkbSA_MessageOnPress	(1L << 0)
#define XkbSA_NoAcceleration	(1L << 0)
#define XkbSA_SwitchApplication	(1L << 0)
#define XkbXI_KeyboardsMask	(1L << 0)
#define XkbAXN_SKAcceptMask	(1L << 1)
#define XkbAX_SKAcceptFBMask	(1L << 1)
#define XkbGBN_CompatMapMask	(1L << 1)
#define XkbIM_UseLatched	(1L << 1)
#define XkbLC_Default	(1L << 1)
#define XkbMapNotifyMask	(1L << 1)
#define XkbModifierBaseMask	(1L << 1)
#define XkbNKN_GeometryMask	(1L << 1)
#define XkbPCF_GrabsUseXKBStateMask	(1L << 1)
#define XkbSA_LatchToLock	(1L << 1)
#define XkbSA_LockNoUnlock	(1L << 1)
#define XkbSA_MessageOnRelease	(1L << 1)
#define XkbSA_MoveAbsoluteX	(1L << 1)
#define XkbServerMapMask	(1L << 1)
#define XkbSlowKeysMask	(1L << 1)
#define XkbXI_ButtonActionsMask	(1L << 1)
#define XkbAX_BKRejectFBMask	(1L << 10)
#define XkbAccessXNotifyMask	(1L << 10)
#define XkbCompatGrabModsMask	(1L << 10)
#define XkbLC_KeypadKeys	(1L << 10)
#define XkbOverlay1Mask	(1L << 10)
#define XkbAX_DumbBellFBMask	(1L << 11)
#define XkbExtensionDeviceNotifyMask	(1L << 11)
#define XkbLC_FunctionKeys	(1L << 11)
#define XkbLookupModsMask	(1L << 11)
#define XkbOverlay2Mask	(1L << 11)
#define XkbCompatLookupModsMask	(1L << 12)
#define XkbIgnoreGroupLockMask	(1L << 12)
#define XkbLC_AlternateGroup	(1L << 12)
#define XkbPointerButtonMask	(1L << 13)
#define XkbXI_UnsupportedFeatureMask	(1L << 15)
#define XkbAXN_SKRejectMask	(1L << 2)
#define XkbAX_FeatureFBMask	(1L << 2)
#define XkbBounceKeysMask	(1L << 2)
#define XkbCompatMapMask	(1L << 2)
#define XkbGBN_ClientSymbolsMask	(1L << 2)
#define XkbIM_UseLocked	(1L << 2)
#define XkbLC_Partial	(1L << 2)
#define XkbModifierLatchMask	(1L << 2)
#define XkbNKN_DeviceIDMask	(1L << 2)
#define XkbPCF_AutoResetControlsMask	(1L << 2)
#define XkbSA_DfltBtnAbsolute	(1L << 2)
#define XkbSA_GroupAbsolute	(1L << 2)
#define XkbSA_MessageGenKeyEvent	(1L << 2)
#define XkbSA_MoveAbsoluteY	(1L << 2)
#define XkbSA_SwitchAbsolute	(1L << 2)
#define XkbSA_UseModMapMods	(1L << 2)
#define XkbStateNotifyMask	(1L << 2)
#define XkbXI_IndicatorNamesMask	(1L << 2)
#define XkbGroupsWrapMask	(1L << 27)
#define XkbInternalModsMask	(1L << 28)
#define XkbIgnoreLockModsMask	(1L << 29)
#define XkbAXN_SKReleaseMask	(1L << 3)
#define XkbAX_SlowWarnFBMask	(1L << 3)
#define XkbControlsNotifyMask	(1L << 3)
#define XkbGBN_ServerSymbolsMask	(1L << 3)
#define XkbIM_UseEffective	(1L << 3)
#define XkbIndicatorMapMask	(1L << 3)
#define XkbModifierLockMask	(1L << 3)
#define XkbPCF_LookupStateWhenGrabbed	(1L << 3)
#define XkbSA_ISONoAffectCtrls	(1L << 3)
#define XkbStickyKeysMask	(1L << 3)
#define XkbXI_IndicatorMapsMask	(1L << 3)
#define XkbPerKeyRepeatMask	(1L << 30)
#define XkbControlsEnabledMask	(1L << 31)
#define XkbAXN_BKAcceptMask	(1L << 4)
#define XkbAX_IndicatorFBMask	(1L << 4)
#define XkbGBN_IndicatorMapMask	(1L << 4)
#define XkbGroupStateMask	(1L << 4)
#define XkbIM_UseCompat	(1L << 4)
#define XkbIndicatorStateNotifyMask	(1L << 4)
#define XkbMouseKeysMask	(1L << 4)
#define XkbNamesMask	(1L << 4)
#define XkbPCF_SendEventUsesXKBState	(1L << 4)
#define XkbSA_ISONoAffectPtr	(1L << 4)
#define XkbXI_IndicatorStateMask	(1L << 4)
#define XkbAXN_BKRejectMask	(1L << 5)
#define XkbAX_StickyKeysFBMask	(1L << 5)
#define XkbGBN_KeyNamesMask	(1L << 5)
#define XkbGeometryMask	(1L << 5)
#define XkbGroupBaseMask	(1L << 5)
#define XkbIM_LEDDrivesKB	(1L << 5)
#define XkbIndicatorMapNotifyMask	(1L << 5)
#define XkbMouseKeysAccelMask	(1L << 5)
#define XkbSA_ISONoAffectGroup	(1L << 5)
#define XkbAXN_AXKWarningMask	(1L << 6)
#define XkbAX_TwoKeysMask	(1L << 6)
#define XkbAccessXKeysMask	(1L << 6)
#define XkbControlsMask	(1L << 6)
#define XkbGBN_GeometryMask	(1L << 6)
#define XkbGroupLatchMask	(1L << 6)
#define XkbIM_NoAutomatic	(1L << 6)
#define XkbNamesNotifyMask	(1L << 6)
#define XkbSA_ISONoAffectMods	(1L << 6)
#define XkbAX_LatchToLockMask	(1L << 7)
#define XkbAccessXTimeoutMask	(1L << 7)
#define XkbCompatMapNotifyMask	(1L << 7)
#define XkbGBN_OtherNamesMask	(1L << 7)
#define XkbGroupLockMask	(1L << 7)
#define XkbIM_NoExplicit	(1L << 7)
#define XkbSA_ISODfltIsGroup	(1L << 7)
#define XkbAX_SKReleaseFBMask	(1L << 8)
#define XkbAccessXFeedbackMask	(1L << 8)
#define XkbBellNotifyMask	(1L << 8)
#define XkbCompatStateMask	(1L << 8)
#define XkbLC_AlphanumericKeys	(1L << 8)
#define XkbAX_SKRejectFBMask	(1L << 9)
#define XkbActionMessageMask	(1L << 9)
#define XkbAudibleBellMask	(1L << 9)
#define XkbGrabModsMask	(1L << 9)
#define XkbLC_ModifierKeys	(1L << 9)
#define XkbSI_AnyOf	(2)
#define XkbSI_AllOf	(3)
#define XkbSI_Exactly	(4)
#define XkbAllMapComponentsMask	(XkbAllClientInfoMask|XkbAllServerInfoMask)
#define XkbNumberEvents	(XkbEventCode+1)
#define XkbAllServerInfoMask	(XkbExplicitComponentsMask|XkbKeyActionsMask|XkbKeyBehaviorsMask|XkbVirtualModsMask|XkbVirtualModMapMask)
#define XkbGBN_SymbolsMask	(XkbGBN_ClientSymbolsMask|XkbGBN_ServerSymbolsMask)
#define XkbIM_UseAnyMods	(XkbIM_UseAnyGroup|XkbIM_UseCompat)
#define XkbIM_UseAnyGroup	(XkbIM_UseBase|XkbIM_UseLatched|XkbIM_UseLocked |XkbIM_UseEffective)
#define XkbAllClientInfoMask	(XkbKeyTypesMask|XkbKeySymsMask|XkbModifierMapMask)
#define XkbNumRequiredTypes	(XkbLastRequiredType+1)
#define XkbMaxKeyCount	(XkbMaxLegalKeyCode-XkbMinLegalKeyCode+1)
#define XkbMaxSymsPerKey	(XkbMaxShiftLevel*XkbNumKbdGroups)
#define XkbMaxKbdGroup	(XkbNumKbdGroups-1)
#define XkbSA_NumActions	(XkbSA_LastAction+1)
#define XkbAccessXOptionsMask	(XkbStickyKeysMask|XkbAccessXFeedbackMask)
#define X_kbUseExtension	0
#define XkbAXN_SKPress	0
#define XkbEventCode	0
#define XkbGroup1Index	0
#define XkbIM_UseNone	0
#define XkbKeyboard	0
#define XkbMinorVersion	0
#define XkbNewKeyboardNotify	0
#define XkbNoModifierMask	0
#define XkbOneLevelIndex	0
#define XkbSA_UseDfltButton	0
#define XkbKB_Default	0x00
#define XkbSA_NoAction	0x00
#define XkbKB_Lock	0x01
#define XkbSA_SetMods	0x01
#define XkbUseCoreKbd	0x0100
#define XkbKB_RadioGroup	0x02
#define XkbSA_LatchMods	0x02
#define XkbUseCorePtr	0x0200
#define XkbKB_Overlay1	0x03
#define XkbSA_LockMods	0x03
#define XkbDfltXIClass	0x0300
#define XkbKB_Overlay2	0x04
#define XkbSA_SetGroup	0x04
#define XkbDfltXIId	0x0400
#define XkbSA_LatchGroup	0x05
#define XkbAllXIClasses	0x0500
#define XkbSA_LockGroup	0x06
#define XkbAllXIIds	0x0600
#define XkbSA_MovePtr	0x07
#define XkbSA_PtrBtn	0x08
#define XkbSA_LockPtrBtn	0x09
#define XkbSA_SetPtrDflt	0x0a
#define XkbSA_ISOLock	0x0b
#define XkbSA_Terminate	0x0c
#define XkbSA_SwitchScreen	0x0d
#define XkbSA_SetControls	0x0e
#define XkbSA_LockControls	0x0f
#define XkbSA_ActionMessage	0x10
#define XkbSA_RedirectKey	0x11
#define XkbSA_DeviceBtn	0x12
#define XkbSA_LockDeviceBtn	0x13
#define XkbSA_DeviceValuator	0x14
#define XkbKB_OpMask	0x7f
#define XkbKB_Permanent	0x80
#define XkbKB_RGAllowNone	0x80
#define XkbSA_XFree86Private	0x86
#define XkbErr_BadId	0xfd
#define XkbErr_BadClass	0xfe
#define XkbAllModifiersMask	0xff
#define XkbErr_BadDevice	0xff
#define XkbNoIndicator	0xff
#define XkbNoModifier	0xff
#define XkbNoShape	0xff
#define XkbNoShiftLevel	0xff
#define XkbXINone	0xff00
#define XkbAllVirtualModsMask	0xffff
#define X_kbSelectEvents	1
#define XkbAXN_SKAccept	1
#define XkbGroup2Index	1
#define XkbMajorVersion	1
#define XkbMapNotify	1
#define XkbNumberErrors	1
#define XkbSA_AffectDfltBtn	1
#define XkbTwoLevelIndex	1
#define X_kbGetCompatMap	10
#define XkbAccessXNotify	10
#define XkbGeomPtsPerMM	10
#define X_kbSetDebuggingFlags	101
#define X_kbSetCompatMap	11
#define XkbExtensionDeviceNotify	11
#define X_kbGetIndicatorState	12
#define XkbRGMaxMembers	12
#define X_kbGetIndicatorMap	13
#define X_kbSetIndicatorMap	14
#define X_kbGetNamedIndicator	15
#define X_kbSetNamedIndicator	16
#define XkbNumVirtualMods	16
#define X_kbGetNames	17
#define X_kbSetNames	18
#define X_kbGetGeometry	19
#define XkbAXN_SKReject	2
#define XkbAlphabeticIndex	2
#define XkbGroup3Index	2
#define XkbStateNotify	2
#define X_kbSetGeometry	20
#define X_kbPerClientFlags	21
#define X_kbListComponents	22
#define X_kbGetKbdByName	23
#define X_kbGetDeviceInfo	24
#define X_kbSetDeviceInfo	25
#define XkbAnyGroup	254
#define XkbAllGroups	255
#define XkbGeomMaxPriority	255
#define XkbMaxKeyTypes	255
#define XkbMaxLegalKeyCode	255
#define X_kbBell	3
#define XkbAXN_SKRelease	3
#define XkbControlsNotify	3
#define XkbGeomMaxLabelColors	3
#define XkbGroup4Index	3
#define XkbKeypadIndex	3
#define XkbGeomMaxColors	32
#define XkbMaxRadioGroups	32
#define XkbNumIndicators	32
#define X_kbGetState	4
#define XkbAXN_BKAccept	4
#define XkbIndicatorStateNotify	4
#define XkbKeyNameLength	4
#define XkbMaxMouseKeysBtn	4
#define XkbNumKbdGroups	4
#define X_kbLatchLockState	5
#define XkbAXN_BKReject	5
#define XkbIndicatorMapNotify	5
#define X_kbGetControls	6
#define XkbAXN_AXKWarning	6
#define XkbActionMessageLength	6
#define XkbNamesNotify	6
#define XkbMaxShiftLevel	63
#define X_kbSetControls	7
#define XkbCompatMapNotify	7
#define X_kbGetMap	8
#define XkbBellNotify	8
#define XkbMaxRedirectCount	8
#define XkbMinLegalKeyCode	8
#define XkbNumModifiers	8
#define X_kbSetMap	9
#define XkbActionMessage	9
#define XkbAllCompatMapEventsMask	XkbAllCompatMask
#define XkbAllControlEventsMask	XkbAllControlsMask
#define XkbAllIndicatorEventsMask	XkbAllIndicatorsMask
#define XkbAllMapEventsMask	XkbAllMapComponentsMask
#define XkbAllNameEventsMask	XkbAllNamesMask
#define XkbAllStateEventsMask	XkbAllStateComponentsMask
#define XkbLastRequiredType	XkbKeypadIndex
#define XkbSA_LastAction	XkbSA_DeviceValuator
#define XkbName	"XKEYBOARD"

6.2.17. X11/extensions/XKBgeom.h


#define _XKBGEOM_H_
#define XkbLogoDoodadColor(g,d)	(&(g)->colors[(d)->color_ndx])
#define XkbShapeDoodadColor(g,d)	(&(g)->colors[(d)->color_ndx])
#define XkbTextDoodadColor(g,d)	(&(g)->colors[(d)->color_ndx])
#define XkbIndicatorDoodadOffColor(g,d)	(&(g)->colors[(d)->off_color_ndx])
#define XkbIndicatorDoodadOnColor(g,d)	(&(g)->colors[(d)->on_color_ndx])
#define XkbKeyColor(g,k)	(&(g)->colors[(k)->color_ndx])
#define XkbIndicatorDoodadShape(g,d)	(&(g)->shapes[(d)->shape_ndx])
#define XkbLogoDoodadShape(g,d)	(&(g)->shapes[(d)->shape_ndx])
#define XkbShapeDoodadShape(g,d)	(&(g)->shapes[(d)->shape_ndx])
#define XkbKeyShape(g,k)	(&(g)->shapes[(k)->shape_ndx])
#define XkbBoundsHeight(b)	(((b)->y2)-((b)->y1))
#define XkbSetLogoDoodadColor(g,d,c)	((d)->color_ndx= (c)-&(g)->colors[0])
#define XkbSetShapeDoodadColor(g,d,c)	((d)->color_ndx= (c)-&(g)->colors[0])
#define XkbSetTextDoodadColor(g,d,c)	((d)->color_ndx= (c)-&(g)->colors[0])
#define XkbSetIndicatorDoodadOffColor(g,d,c)	((d)->off_color_ndx= (c)-&(g)->colors[0])
#define XkbSetIndicatorDoodadOnColor(g,d,c)	((d)->on_color_ndx= (c)-&(g)->colors[0])
#define XkbSetIndicatorDoodadShape(g,d,s)	((d)->shape_ndx= (s)-&(g)->shapes[0])
#define XkbSetLogoDoodadShape(g,d,s)	((d)->shape_ndx= (s)-&(g)->shapes[0])
#define XkbSetShapeDoodadShape(g,d,s)	((d)->shape_ndx= (s)-&(g)->shapes[0])
#define XkbGeomColorIndex(g,c)	((int)((c)-&(g)->colors[0]))
#define XkbOutlineIndex(s,o)	((int)((o)-&(s)->outlines[0]))
#define XkbSetKeyColor(g,k,c)	((k)->color_ndx= (c)-&(g)->colors[0])
#define XkbSetKeyShape(g,k,s)	((k)->shape_ndx= (s)-&(g)->shapes[0])
#define XkbGeomAllMask	(0x3f)
#define XkbGeomPropertiesMask	(1<<0)
#define XkbGeomColorsMask	(1<<1)
#define XkbGeomShapesMask	(1<<2)
#define XkbGeomSectionsMask	(1<<3)
#define XkbGeomDoodadsMask	(1<<4)
#define XkbGeomKeyAliasesMask	(1<<5)
#define XkbUnknownDoodad	0
#define XkbOutlineDoodad	1
#define XkbSolidDoodad	2
#define XkbTextDoodad	3
#define XkbIndicatorDoodad	4
#define XkbLogoDoodad	5

typedef struct _XkbProperty {
    char *name;
    char *value;
} XkbPropertyRec;
typedef struct _XkbProperty *XkbPropertyPtr;
typedef struct _XkbColor {
    unsigned int pixel;
    char *spec;
} XkbColorRec;
typedef struct _XkbColor *XkbColorPtr;
typedef struct _XkbPoint {
    short x;
    short y;
} XkbPointRec;
typedef struct _XkbPoint *XkbPointPtr;
typedef struct _XkbBounds {
    short x1;
    short y1;
    short x2;
    short y2;
} XkbBoundsRec;
typedef struct _XkbBounds *XkbBoundsPtr;
typedef struct _XkbOutline {
    unsigned short num_points;
    unsigned short sz_points;
    unsigned short corner_radius;
    XkbPointPtr points;
} XkbOutlineRec;
typedef struct _XkbOutline *XkbOutlinePtr;
typedef struct _XkbShape {
    Atom name;
    unsigned short num_outlines;
    unsigned short sz_outlines;
    XkbOutlinePtr outlines;
    XkbOutlinePtr approx;
    XkbOutlinePtr primary;
    XkbBoundsRec bounds;
} XkbShapeRec;
typedef struct _XkbShape *XkbShapePtr;
typedef struct _XkbShapeDoodad {
    Atom name;
    unsigned char type;
    unsigned char priority;
    short top;
    short left;
    short angle;
    unsigned short color_ndx;
    unsigned short shape_ndx;
} XkbShapeDoodadRec;
typedef struct _XkbShapeDoodad *XkbShapeDoodadPtr;
typedef struct _XkbTextDoodad {
    Atom name;
    unsigned char type;
    unsigned char priority;
    short top;
    short left;
    short angle;
    short width;
    short height;
    unsigned short color_ndx;
    char *text;
    char *font;
} XkbTextDoodadRec;
typedef struct _XkbTextDoodad *XkbTextDoodadPtr;
typedef struct _XkbIndicatorDoodad {
    Atom name;
    unsigned char type;
    unsigned char priority;
    short top;
    short left;
    short angle;
    unsigned short shape_ndx;
    unsigned short on_color_ndx;
    unsigned short off_color_ndx;
} XkbIndicatorDoodadRec;
typedef struct _XkbIndicatorDoodad *XkbIndicatorDoodadPtr;
typedef struct _XkbLogoDoodad {
    Atom name;
    unsigned char type;
    unsigned char priority;
    short top;
    short left;
    short angle;
    unsigned short color_ndx;
    unsigned short shape_ndx;
    char *logo_name;
} XkbLogoDoodadRec;
typedef struct _XkbLogoDoodad *XkbLogoDoodadPtr;
typedef struct _XkbAnyDoodad {
    Atom name;
    unsigned char type;
    unsigned char priority;
    short top;
    short left;
    short angle;
} XkbAnyDoodadRec;
typedef struct _XkbAnyDoodad *XkbAnyDoodadPtr;
union _XkbDoodad {
    XkbAnyDoodadRec any;
    XkbShapeDoodadRec shape;
    XkbTextDoodadRec text;
    XkbIndicatorDoodadRec indicator;
    XkbLogoDoodadRec logo;
};
typedef union _XkbDoodad {
    XkbAnyDoodadRec any;
    XkbShapeDoodadRec shape;
    XkbTextDoodadRec text;
    XkbIndicatorDoodadRec indicator;
    XkbLogoDoodadRec logo;
} XkbDoodadRec;
typedef union _XkbDoodad *XkbDoodadPtr;
typedef struct _XkbKey {
    XkbKeyNameRec name;
    short gap;
    unsigned char shape_ndx;
    unsigned char color_ndx;
} XkbKeyRec;
typedef struct _XkbKey *XkbKeyPtr;
typedef struct _XkbRow {
    short top;
    short left;
    unsigned short num_keys;
    unsigned short sz_keys;
    int vertical;
    XkbKeyPtr keys;
    XkbBoundsRec bounds;
} XkbRowRec;
typedef struct _XkbRow *XkbRowPtr;
typedef struct _XkbSection {
    Atom name;
    unsigned char priority;
    short top;
    short left;
    unsigned short width;
    unsigned short height;
    short angle;
    unsigned short num_rows;
    unsigned short num_doodads;
    unsigned short num_overlays;
    unsigned short sz_rows;
    unsigned short sz_doodads;
    unsigned short sz_overlays;
    XkbRowPtr rows;
    XkbDoodadPtr doodads;
    XkbBoundsRec bounds;
    struct _XkbOverlay *overlays;
} XkbSectionRec;
typedef struct _XkbSection *XkbSectionPtr;
typedef struct _XkbOverlayKey {
    XkbKeyNameRec over;
    XkbKeyNameRec under;
} XkbOverlayKeyRec;
typedef struct _XkbOverlayKey *XkbOverlayKeyPtr;
typedef struct _XkbOverlayRow {
    unsigned short row_under;
    unsigned short num_keys;
    unsigned short sz_keys;
    XkbOverlayKeyPtr keys;
} XkbOverlayRowRec;
typedef struct _XkbOverlayRow *XkbOverlayRowPtr;
typedef struct _XkbOverlay {
    Atom name;
    XkbSectionPtr section_under;
    unsigned short num_rows;
    unsigned short sz_rows;
    XkbOverlayRowPtr rows;
    XkbBoundsPtr bounds;
} XkbOverlayRec;
typedef struct _XkbOverlay *XkbOverlayPtr;
typedef struct _XkbGeometry {
    Atom name;
    unsigned short width_mm;
    unsigned short height_mm;
    char *label_font;
    XkbColorPtr label_color;
    XkbColorPtr base_color;
    unsigned short sz_properties;
    unsigned short sz_colors;
    unsigned short sz_shapes;
    unsigned short sz_sections;
    unsigned short sz_doodads;
    unsigned short sz_key_aliases;
    unsigned short num_properties;
    unsigned short num_colors;
    unsigned short num_shapes;
    unsigned short num_sections;
    unsigned short num_doodads;
    unsigned short num_key_aliases;
    XkbPropertyPtr properties;
    XkbColorPtr colors;
    XkbShapePtr shapes;
    XkbSectionPtr sections;
    XkbDoodadPtr doodads;
    XkbKeyAliasPtr key_aliases;
} XkbGeometryRec;
typedef struct _XkbGeometrySizes {
    unsigned int which;
    unsigned short num_properties;
    unsigned short num_colors;
    unsigned short num_shapes;
    unsigned short num_sections;
    unsigned short num_doodads;
    unsigned short num_key_aliases;
} XkbGeometrySizesRec;
typedef struct _XkbGeometrySizes *XkbGeometrySizesPtr;
extern int XkbAllocGeomColors(XkbGeometryPtr, int);
extern int XkbAllocGeomDoodads(XkbGeometryPtr, int);
extern int XkbAllocGeomKeyAliases(XkbGeometryPtr, int);
extern int XkbAllocGeomKeys(XkbRowPtr, int);
extern int XkbAllocGeomOutlines(XkbShapePtr, int);
extern int XkbAllocGeomOverlayKeys(XkbOverlayRowPtr, int);
extern int XkbAllocGeomOverlayRows(XkbOverlayPtr, int);
extern int XkbAllocGeomOverlays(XkbSectionPtr, int);
extern int XkbAllocGeomPoints(XkbOutlinePtr, int);
extern int XkbAllocGeomProps(XkbGeometryPtr, int);
extern int XkbAllocGeomRows(XkbSectionPtr, int);
extern int XkbAllocGeomSectionDoodads(XkbSectionPtr, int);
extern int XkbAllocGeomSections(XkbGeometryPtr, int);
extern int XkbAllocGeomShapes(XkbGeometryPtr, int);
extern int XkbAllocGeometry(XkbDescPtr, XkbGeometrySizesPtr);
extern int XkbComputeRowBounds(XkbGeometryPtr, XkbSectionPtr, XkbRowPtr);
extern int XkbComputeSectionBounds(XkbGeometryPtr, XkbSectionPtr);
extern int XkbComputeShapeBounds(XkbShapePtr);
extern int XkbComputeShapeTop(XkbShapePtr, XkbBoundsPtr);
extern char *XkbFindOverlayForKey(XkbGeometryPtr, XkbSectionPtr, char *);
extern void XkbFreeGeomColors(XkbGeometryPtr, int, int, int);
extern void XkbFreeGeomDoodads(XkbDoodadPtr, int, int);
extern void XkbFreeGeomKeyAliases(XkbGeometryPtr, int, int, int);
extern void XkbFreeGeomKeys(XkbRowPtr, int, int, int);
extern void XkbFreeGeomOutlines(XkbShapePtr, int, int, int);
extern void XkbFreeGeomOverlayKeys(XkbOverlayRowPtr, int, int, int);
extern void XkbFreeGeomOverlayRows(XkbOverlayPtr, int, int, int);
extern void XkbFreeGeomOverlays(XkbSectionPtr, int, int, int);
extern void XkbFreeGeomPoints(XkbOutlinePtr, int, int, int);
extern void XkbFreeGeomProperties(XkbGeometryPtr, int, int, int);
extern void XkbFreeGeomRows(XkbSectionPtr, int, int, int);
extern void XkbFreeGeomSections(XkbGeometryPtr, int, int, int);
extern void XkbFreeGeomShapes(XkbGeometryPtr, int, int, int);
extern void XkbFreeGeometry(XkbGeometryPtr, unsigned int, int);
extern int XkbGetGeometry(Display *, XkbDescPtr);
extern int XkbGetNamedGeometry(Display *, XkbDescPtr, Atom);
extern int XkbSetGeometry(Display *, unsigned int, XkbGeometryPtr);

6.2.18. X11/extensions/XKBproto.h


#define XkbPaddedSize(n)	((((unsigned int)(n)+3) >> 2) << 2)
#define XkbSetMapAllFlags	(0x3)
#define XkbSetMapResizeTypes	(1L<<0)
#define XkbSetMapRecomputeActions	(1L<<1)
#define sz_xkbSetControlsReq	100
#define sz_xkbGetCompatMapReq	12
#define sz_xkbGetGeometryReq	12
#define sz_xkbGetIndicatorMapReq	12
#define sz_xkbGetKbdByNameReq	12
#define sz_xkbGetNamesReq	12
#define sz_xkbIndicatorMapWireDesc	12
#define sz_xkbSetDeviceInfoReq	12
#define sz_xkbSetIndicatorMapReq	12
#define sz_xkbGetDeviceInfoReq	16
#define sz_xkbGetNamedIndicatorReq	16
#define sz_xkbLatchLockStateReq	16
#define sz_xkbSelectEventsReq	16
#define sz_xkbSetCompatMapReq	16
#define sz_xkbSymInterpretWireDesc	16
#define sz_xkbAnyDoodadWireDesc	20
#define sz_xkbDeviceLedsWireDesc	20
#define sz_xkbDoodadWireDesc	20
#define sz_xkbIndicatorDoodadWireDesc	20
#define sz_xkbLogoDoodadWireDesc	20
#define sz_xkbSectionWireDesc	20
#define sz_xkbShapeDoodadWireDesc	20
#define sz_xkbTextDoodadWireDesc	20
#define sz_xkbSetDebuggingFlagsReq	24
#define sz_xkbBellReq	28
#define sz_xkbGetMapReq	28
#define sz_xkbPerClientFlagsReq	28
#define sz_xkbSetGeometryReq	28
#define sz_xkbSetNamesReq	28
#define sz_xkbAccessXNotify	32
#define sz_xkbActionMessage	32
#define sz_xkbAnyEvent	32
#define sz_xkbBellNotify	32
#define sz_xkbCompatMapNotify	32
#define sz_xkbControlsNotify	32
#define sz_xkbEvent	32
#define sz_xkbExtensionDeviceNotify	32
#define sz_xkbGetCompatMapReply	32
#define sz_xkbGetDeviceInfoReply	32
#define sz_xkbGetGeometryReply	32
#define sz_xkbGetIndicatorMapReply	32
#define sz_xkbGetIndicatorStateReply	32
#define sz_xkbGetKbdByNameReply	32
#define sz_xkbGetNamedIndicatorReply	32
#define sz_xkbGetNamesReply	32
#define sz_xkbGetStateReply	32
#define sz_xkbIndicatorNotify	32
#define sz_xkbListComponentsReply	32
#define sz_xkbMapNotify	32
#define sz_xkbNamesNotify	32
#define sz_xkbNewKeyboardNotify	32
#define sz_xkbPerClientFlagsReply	32
#define sz_xkbSetDebuggingFlagsReply	32
#define sz_xkbSetNamedIndicatorReq	32
#define sz_xkbStateNotify	32
#define sz_xkbUseExtensionReply	32
#define sz_xkbSetMapReq	36
#define sz_xkbBehaviorWireDesc	4
#define sz_xkbKTSetMapEntryWireDesc	4
#define sz_xkbModsWireDesc	4
#define sz_xkbOutlineWireDesc	4
#define sz_xkbOverlayRowWireDesc	4
#define sz_xkbPointWireDesc	4
#define sz_xkbVModMapWireDesc	4
#define sz_xkbGetMapReply	40
#define sz_xkbActionWireDesc	8
#define sz_xkbGetControlsReq	8
#define sz_xkbGetIndicatorStateReq	8
#define sz_xkbGetStateReq	8
#define sz_xkbKTMapEntryWireDesc	8
#define sz_xkbKeyTypeWireDesc	8
#define sz_xkbKeyWireDesc	8
#define sz_xkbListComponentsReq	8
#define sz_xkbOverlayKeyWireDesc	8
#define sz_xkbOverlayWireDesc	8
#define sz_xkbRowWireDesc	8
#define sz_xkbShapeWireDesc	8
#define sz_xkbSymMapWireDesc	8
#define sz_xkbUseExtensionReq	8
#define sz_xkbGetControlsReply	92

typedef struct _xkbUseExtension {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 wantedMajor;
    CARD16 wantedMinor;
} xkbUseExtensionReq;
typedef struct _xkbUseExtensionReply {
    BYTE type;
    BOOL supported;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 serverMajor;
    CARD16 serverMinor;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xkbUseExtensionReply;
typedef struct _xkbSelectEvents {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 affectWhich;
    CARD16 clear;
    CARD16 selectAll;
    CARD16 affectMap;
    CARD16 map;
} xkbSelectEventsReq;
typedef struct _xkbBell {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 bellClass;
    CARD16 bellID;
    INT8 percent;
    BOOL forceSound;
    BOOL eventOnly;
    CARD8 pad1;
    INT16 pitch;
    INT16 duration;
    CARD16 pad2;
    CARD32 name;
    CARD32 window;
} xkbBellReq;
typedef struct _xkbGetState {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 pad;
} xkbGetStateReq;
typedef struct _xkbGetStateReply {
    BYTE type;
    BYTE deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 mods;
    CARD8 baseMods;
    CARD8 latchedMods;
    CARD8 lockedMods;
    CARD8 group;
    CARD8 lockedGroup;
    INT16 baseGroup;
    INT16 latchedGroup;
    CARD8 compatState;
    CARD8 grabMods;
    CARD8 compatGrabMods;
    CARD8 lookupMods;
    CARD8 compatLookupMods;
    CARD8 pad1;
    CARD16 ptrBtnState;
    CARD16 pad2;
    CARD32 pad3;
} xkbGetStateReply;
typedef struct _xkbLatchLockState {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD8 affectModLocks;
    CARD8 modLocks;
    BOOL lockGroup;
    CARD8 groupLock;
    CARD8 affectModLatches;
    CARD8 modLatches;
    CARD8 pad;
    BOOL latchGroup;
    INT16 groupLatch;
} xkbLatchLockStateReq;
typedef struct _xkbGetControls {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 pad;
} xkbGetControlsReq;
typedef struct _xkbGetControlsReply {
    BYTE type;
    CARD8 deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 mkDfltBtn;
    CARD8 numGroups;
    CARD8 groupsWrap;
    CARD8 internalMods;
    CARD8 ignoreLockMods;
    CARD8 internalRealMods;
    CARD8 ignoreLockRealMods;
    CARD8 pad1;
    CARD16 internalVMods;
    CARD16 ignoreLockVMods;
    CARD16 repeatDelay;
    CARD16 repeatInterval;
    CARD16 slowKeysDelay;
    CARD16 debounceDelay;
    CARD16 mkDelay;
    CARD16 mkInterval;
    CARD16 mkTimeToMax;
    CARD16 mkMaxSpeed;
    INT16 mkCurve;
    CARD16 axOptions;
    CARD16 axTimeout;
    CARD16 axtOptsMask;
    CARD16 axtOptsValues;
    CARD16 pad2;
    CARD32 axtCtrlsMask;
    CARD32 axtCtrlsValues;
    CARD32 enabledCtrls;
    BYTE perKeyRepeat[32];
} xkbGetControlsReply;
typedef struct _xkbSetControls {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD8 affectInternalMods;
    CARD8 internalMods;
    CARD8 affectIgnoreLockMods;
    CARD8 ignoreLockMods;
    CARD16 affectInternalVMods;
    CARD16 internalVMods;
    CARD16 affectIgnoreLockVMods;
    CARD16 ignoreLockVMods;
    CARD8 mkDfltBtn;
    CARD8 groupsWrap;
    CARD16 axOptions;
    CARD16 pad1;
    CARD32 affectEnabledCtrls;
    CARD32 enabledCtrls;
    CARD32 changeCtrls;
    CARD16 repeatDelay;
    CARD16 repeatInterval;
    CARD16 slowKeysDelay;
    CARD16 debounceDelay;
    CARD16 mkDelay;
    CARD16 mkInterval;
    CARD16 mkTimeToMax;
    CARD16 mkMaxSpeed;
    INT16 mkCurve;
    CARD16 axTimeout;
    CARD32 axtCtrlsMask;
    CARD32 axtCtrlsValues;
    CARD16 axtOptsMask;
    CARD16 axtOptsValues;
    BYTE perKeyRepeat[32];
} xkbSetControlsReq;
typedef struct _xkbKTMapEntryWireDesc {
    BOOL active;
    CARD8 mask;
    CARD8 level;
    CARD8 realMods;
    CARD16 virtualMods;
    CARD16 pad;
} xkbKTMapEntryWireDesc;
typedef struct _xkbKTSetMapEntryWireDesc {
    CARD8 level;
    CARD8 realMods;
    CARD16 virtualMods;
} xkbKTSetMapEntryWireDesc;
typedef struct _xkbModsWireDesc {
    CARD8 mask;
    CARD8 realMods;
    CARD16 virtualMods;
} xkbModsWireDesc;
typedef struct _xkbKeyTypeWireDesc {
    CARD8 mask;
    CARD8 realMods;
    CARD16 virtualMods;
    CARD8 numLevels;
    CARD8 nMapEntries;
    BOOL preserve;
    CARD8 pad;
} xkbKeyTypeWireDesc;
typedef struct _xkbSymMapWireDesc {
    CARD8 ktIndex[4];
    CARD8 groupInfo;
    CARD8 width;
    CARD16 nSyms;
} xkbSymMapWireDesc;
typedef struct _xkbVModMapWireDesc {
    CARD8 key;
    CARD8 pad;
    CARD16 vmods;
} xkbVModMapWireDesc;
typedef struct _xkbBehaviorWireDesc {
    CARD8 key;
    CARD8 type;
    CARD8 data;
    CARD8 pad;
} xkbBehaviorWireDesc;
typedef struct _xkbActionWireDesc {
    CARD8 type;
    CARD8 data[7];
} xkbActionWireDesc;
typedef struct _xkbGetMap {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 full;
    CARD16 partial;
    CARD8 firstType;
    CARD8 nTypes;
    CARD8 firstKeySym;
    CARD8 nKeySyms;
    CARD8 firstKeyAct;
    CARD8 nKeyActs;
    CARD8 firstKeyBehavior;
    CARD8 nKeyBehaviors;
    CARD16 virtualMods;
    CARD8 firstKeyExplicit;
    CARD8 nKeyExplicit;
    CARD8 firstModMapKey;
    CARD8 nModMapKeys;
    CARD8 firstVModMapKey;
    CARD8 nVModMapKeys;
    CARD16 pad1;
} xkbGetMapReq;
typedef struct _xkbGetMapReply {
    CARD8 type;
    CARD8 deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 pad1;
    CARD8 minKeyCode;
    CARD8 maxKeyCode;
    CARD16 present;
    CARD8 firstType;
    CARD8 nTypes;
    CARD8 totalTypes;
    CARD8 firstKeySym;
    CARD16 totalSyms;
    CARD8 nKeySyms;
    CARD8 firstKeyAct;
    CARD16 totalActs;
    CARD8 nKeyActs;
    CARD8 firstKeyBehavior;
    CARD8 nKeyBehaviors;
    CARD8 totalKeyBehaviors;
    CARD8 firstKeyExplicit;
    CARD8 nKeyExplicit;
    CARD8 totalKeyExplicit;
    CARD8 firstModMapKey;
    CARD8 nModMapKeys;
    CARD8 totalModMapKeys;
    CARD8 firstVModMapKey;
    CARD8 nVModMapKeys;
    CARD8 totalVModMapKeys;
    CARD8 pad2;
    CARD16 virtualMods;
} xkbGetMapReply;
typedef struct _xkbSetMap {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 present;
    CARD16 flags;
    CARD8 minKeyCode;
    CARD8 maxKeyCode;
    CARD8 firstType;
    CARD8 nTypes;
    CARD8 firstKeySym;
    CARD8 nKeySyms;
    CARD16 totalSyms;
    CARD8 firstKeyAct;
    CARD8 nKeyActs;
    CARD16 totalActs;
    CARD8 firstKeyBehavior;
    CARD8 nKeyBehaviors;
    CARD8 totalKeyBehaviors;
    CARD8 firstKeyExplicit;
    CARD8 nKeyExplicit;
    CARD8 totalKeyExplicit;
    CARD8 firstModMapKey;
    CARD8 nModMapKeys;
    CARD8 totalModMapKeys;
    CARD8 firstVModMapKey;
    CARD8 nVModMapKeys;
    CARD8 totalVModMapKeys;
    CARD16 virtualMods;
} xkbSetMapReq;
typedef struct _xkbSymInterpretWireDesc {
    CARD32 sym;
    CARD8 mods;
    CARD8 match;
    CARD8 virtualMod;
    CARD8 flags;
    xkbActionWireDesc act;
} xkbSymInterpretWireDesc;
typedef struct _xkbGetCompatMap {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD8 groups;
    BOOL getAllSI;
    CARD16 firstSI;
    CARD16 nSI;
} xkbGetCompatMapReq;
typedef struct _xkbGetCompatMapReply {
    CARD8 type;
    CARD8 deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 groups;
    CARD8 pad1;
    CARD16 firstSI;
    CARD16 nSI;
    CARD16 nTotalSI;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xkbGetCompatMapReply;
typedef struct _xkbSetCompatMap {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD8 pad1;
    BOOL recomputeActions;
    BOOL truncateSI;
    CARD8 groups;
    CARD16 firstSI;
    CARD16 nSI;
    CARD16 pad2;
} xkbSetCompatMapReq;
typedef struct _xkbGetIndicatorState {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 pad1;
} xkbGetIndicatorStateReq;
typedef struct _xkbGetIndicatorStateReply {
    CARD8 type;
    CARD8 deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 state;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xkbGetIndicatorStateReply;
typedef struct _xkbGetIndicatorMap {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 pad;
    CARD32 which;
} xkbGetIndicatorMapReq;
typedef struct _xkbGetIndicatorMapReply {
    CARD8 type;
    CARD8 deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 which;
    CARD32 realIndicators;
    CARD8 nIndicators;
    CARD8 pad1;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xkbGetIndicatorMapReply;
typedef struct _xkbIndicatorMapWireDesc {
    CARD8 flags;
    CARD8 whichGroups;
    CARD8 groups;
    CARD8 whichMods;
    CARD8 mods;
    CARD8 realMods;
    CARD16 virtualMods;
    CARD32 ctrls;
} xkbIndicatorMapWireDesc;
typedef struct _xkbSetIndicatorMap {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 pad1;
    CARD32 which;
} xkbSetIndicatorMapReq;
typedef struct _xkbGetNamedIndicator {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 ledClass;
    CARD16 ledID;
    CARD16 pad1;
    CARD32 indicator;
} xkbGetNamedIndicatorReq;
typedef struct _xkbGetNamedIndicatorReply {
    BYTE type;
    BYTE deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 indicator;
    BOOL found;
    BOOL on;
    BOOL realIndicator;
    CARD8 ndx;
    CARD8 flags;
    CARD8 whichGroups;
    CARD8 groups;
    CARD8 whichMods;
    CARD8 mods;
    CARD8 realMods;
    CARD16 virtualMods;
    CARD32 ctrls;
    BOOL supported;
    CARD8 pad1;
    CARD16 pad2;
} xkbGetNamedIndicatorReply;
typedef struct _xkbSetNamedIndicator {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 ledClass;
    CARD16 ledID;
    CARD16 pad1;
    CARD32 indicator;
    BOOL setState;
    BOOL on;
    BOOL setMap;
    BOOL createMap;
    CARD8 pad2;
    CARD8 flags;
    CARD8 whichGroups;
    CARD8 groups;
    CARD8 whichMods;
    CARD8 realMods;
    CARD16 virtualMods;
    CARD32 ctrls;
} xkbSetNamedIndicatorReq;
typedef struct _xkbGetNames {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 pad;
    CARD32 which;
} xkbGetNamesReq;
typedef struct _xkbGetNamesReply {
    BYTE type;
    BYTE deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 which;
    CARD8 minKeyCode;
    CARD8 maxKeyCode;
    CARD8 nTypes;
    CARD8 groupNames;
    CARD16 virtualMods;
    CARD8 firstKey;
    CARD8 nKeys;
    CARD32 indicators;
    CARD8 nRadioGroups;
    CARD8 nKeyAliases;
    CARD16 nKTLevels;
    CARD32 pad3;
} xkbGetNamesReply;
typedef struct _xkbSetNames {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 virtualMods;
    CARD32 which;
    CARD8 firstType;
    CARD8 nTypes;
    CARD8 firstKTLevel;
    CARD8 nKTLevels;
    CARD32 indicators;
    CARD8 groupNames;
    CARD8 nRadioGroups;
    CARD8 firstKey;
    CARD8 nKeys;
    CARD8 nKeyAliases;
    CARD8 pad1;
    CARD16 totalKTLevelNames;
} xkbSetNamesReq;
typedef struct _xkbPointWireDesc {
    INT16 x;
    INT16 y;
} xkbPointWireDesc;
typedef struct _xkbOutlineWireDesc {
    CARD8 nPoints;
    CARD8 cornerRadius;
    CARD16 pad;
} xkbOutlineWireDesc;
typedef struct _xkbShapeWireDesc {
    CARD32 name;
    CARD8 nOutlines;
    CARD8 primaryNdx;
    CARD8 approxNdx;
    CARD8 pad;
} xkbShapeWireDesc;
typedef struct _xkbSectionWireDesc {
    CARD32 name;
    INT16 top;
    INT16 left;
    CARD16 width;
    CARD16 height;
    INT16 angle;
    CARD8 priority;
    CARD8 nRows;
    CARD8 nDoodads;
    CARD8 nOverlays;
    CARD16 pad;
} xkbSectionWireDesc;
typedef struct _xkbRowWireDesc {
    INT16 top;
    INT16 left;
    CARD8 nKeys;
    BOOL vertical;
    CARD16 pad;
} xkbRowWireDesc;
typedef struct _xkbKeyWireDesc {
    CARD8 name[4];
    INT16 gap;
    CARD8 shapeNdx;
    CARD8 colorNdx;
} xkbKeyWireDesc;
typedef struct _xkbOverlayWireDesc {
    CARD32 name;
    CARD8 nRows;
    CARD8 pad1;
    CARD16 pad2;
} xkbOverlayWireDesc;
typedef struct _xkbOverlayRowWireDesc {
    CARD8 rowUnder;
    CARD8 nKeys;
    CARD16 pad1;
} xkbOverlayRowWireDesc;
typedef struct _xkbOverlayKeyWireDesc {
    CARD8 over[4];
    CARD8 under[4];
} xkbOverlayKeyWireDesc;
typedef struct _xkbShapeDoodadWireDesc {
    CARD32 name;
    CARD8 type;
    CARD8 priority;
    INT16 top;
    INT16 left;
    INT16 angle;
    CARD8 colorNdx;
    CARD8 shapeNdx;
    CARD16 pad1;
    CARD32 pad2;
} xkbShapeDoodadWireDesc;
typedef struct _xkbTextDoodadWireDesc {
    CARD32 name;
    CARD8 type;
    CARD8 priority;
    INT16 top;
    INT16 left;
    INT16 angle;
    CARD16 width;
    CARD16 height;
    CARD8 colorNdx;
    CARD8 pad1;
    CARD16 pad2;
} xkbTextDoodadWireDesc;
typedef struct _xkbIndicatorDoodadWireDesc {
    CARD32 name;
    CARD8 type;
    CARD8 priority;
    INT16 top;
    INT16 left;
    INT16 angle;
    CARD8 shapeNdx;
    CARD8 onColorNdx;
    CARD8 offColorNdx;
    CARD8 pad1;
    CARD32 pad2;
} xkbIndicatorDoodadWireDesc;
typedef struct _xkbLogoDoodadWireDesc {
    CARD32 name;
    CARD8 type;
    CARD8 priority;
    INT16 top;
    INT16 left;
    INT16 angle;
    CARD8 colorNdx;
    CARD8 shapeNdx;
    CARD16 pad1;
    CARD32 pad2;
} xkbLogoDoodadWireDesc;
typedef struct _xkbAnyDoodadWireDesc {
    CARD32 name;
    CARD8 type;
    CARD8 priority;
    INT16 top;
    INT16 left;
    INT16 angle;
    CARD32 pad2;
    CARD32 pad3;
} xkbAnyDoodadWireDesc;
union _xkbDoodadWireDesc {
    xkbAnyDoodadWireDesc any;
    xkbShapeDoodadWireDesc shape;
    xkbTextDoodadWireDesc text;
    xkbIndicatorDoodadWireDesc indicator;
    xkbLogoDoodadWireDesc logo;
};
typedef union _xkbDoodadWireDesc {
    xkbAnyDoodadWireDesc any;
    xkbShapeDoodadWireDesc shape;
    xkbTextDoodadWireDesc text;
    xkbIndicatorDoodadWireDesc indicator;
    xkbLogoDoodadWireDesc logo;
} xkbDoodadWireDesc;
typedef struct _xkbGetGeometry {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 pad;
    CARD32 name;
} xkbGetGeometryReq;
typedef struct _xkbGetGeometryReply {
    CARD8 type;
    CARD8 deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 name;
    BOOL found;
    CARD8 pad;
    CARD16 widthMM;
    CARD16 heightMM;
    CARD16 nProperties;
    CARD16 nColors;
    CARD16 nShapes;
    CARD16 nSections;
    CARD16 nDoodads;
    CARD16 nKeyAliases;
    CARD8 baseColorNdx;
    CARD8 labelColorNdx;
} xkbGetGeometryReply;
typedef struct _xkbSetGeometry {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD8 nShapes;
    CARD8 nSections;
    CARD32 name;
    CARD16 widthMM;
    CARD16 heightMM;
    CARD16 nProperties;
    CARD16 nColors;
    CARD16 nDoodads;
    CARD16 nKeyAliases;
    CARD8 baseColorNdx;
    CARD8 labelColorNdx;
    CARD16 pad;
} xkbSetGeometryReq;
typedef struct _xkbPerClientFlags {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 pad1;
    CARD32 change;
    CARD32 value;
    CARD32 ctrlsToChange;
    CARD32 autoCtrls;
    CARD32 autoCtrlValues;
} xkbPerClientFlagsReq;
typedef struct _xkbPerClientFlagsReply {
    CARD8 type;
    CARD8 deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 supported;
    CARD32 value;
    CARD32 autoCtrls;
    CARD32 autoCtrlValues;
    CARD32 pad1;
    CARD32 pad2;
} xkbPerClientFlagsReply;
typedef struct _xkbListComponents {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 maxNames;
} xkbListComponentsReq;
typedef struct _xkbListComponentsReply {
    CARD8 type;
    CARD8 deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 nKeymaps;
    CARD16 nKeycodes;
    CARD16 nTypes;
    CARD16 nCompatMaps;
    CARD16 nSymbols;
    CARD16 nGeometries;
    CARD16 extra;
    CARD16 pad1;
    CARD32 pad2;
    CARD32 pad3;
} xkbListComponentsReply;
typedef struct _xkbGetKbdByName {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 need;
    CARD16 want;
    BOOL load;
    CARD8 pad;
} xkbGetKbdByNameReq;
typedef struct _xkbGetKbdByNameReply {
    CARD8 type;
    CARD8 deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 minKeyCode;
    CARD8 maxKeyCode;
    BOOL loaded;
    BOOL newKeyboard;
    CARD16 found;
    CARD16 reported;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
} xkbGetKbdByNameReply;
typedef struct _xkbDeviceLedsWireDesc {
    CARD16 ledClass;
    CARD16 ledID;
    CARD32 namesPresent;
    CARD32 mapsPresent;
    CARD32 physIndicators;
    CARD32 state;
} xkbDeviceLedsWireDesc;
typedef struct _xkbGetDeviceInfo {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD16 wanted;
    BOOL allBtns;
    CARD8 firstBtn;
    CARD8 nBtns;
    CARD8 pad;
    CARD16 ledClass;
    CARD16 ledID;
} xkbGetDeviceInfoReq;
typedef struct _xkbGetDeviceInfoReply {
    CARD8 type;
    CARD8 deviceID;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 present;
    CARD16 supported;
    CARD16 unsupported;
    CARD16 nDeviceLedFBs;
    CARD8 firstBtnWanted;
    CARD8 nBtnsWanted;
    CARD8 firstBtnRtrn;
    CARD8 nBtnsRtrn;
    CARD8 totalBtns;
    BOOL hasOwnState;
    CARD16 dfltKbdFB;
    CARD16 dfltLedFB;
    CARD16 pad;
    CARD32 devType;
} xkbGetDeviceInfoReply;
typedef struct _xkbSetDeviceInfo {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 deviceSpec;
    CARD8 firstBtn;
    CARD8 nBtns;
    CARD16 change;
    CARD16 nDeviceLedFBs;
} xkbSetDeviceInfoReq;
typedef struct _xkbSetDebuggingFlags {
    CARD8 reqType;
    CARD8 xkbReqType;
    CARD16 length;
    CARD16 msgLength;
    CARD16 pad;
    CARD32 affectFlags;
    CARD32 flags;
    CARD32 affectCtrls;
    CARD32 ctrls;
} xkbSetDebuggingFlagsReq;
typedef struct _xkbSetDebuggingFlagsReply {
    BYTE type;
    CARD8 pad0;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 currentFlags;
    CARD32 currentCtrls;
    CARD32 supportedFlags;
    CARD32 supportedCtrls;
    CARD32 pad1;
    CARD32 pad2;
} xkbSetDebuggingFlagsReply;
typedef struct _xkbAnyEvent {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 pad1;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xkbAnyEvent;
typedef struct _xkbNewKeyboardNotify {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 oldDeviceID;
    CARD8 minKeyCode;
    CARD8 maxKeyCode;
    CARD8 oldMinKeyCode;
    CARD8 oldMaxKeyCode;
    CARD8 requestMajor;
    CARD8 requestMinor;
    CARD16 changed;
    CARD8 detail;
    CARD8 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
} xkbNewKeyboardNotify;
typedef struct _xkbMapNotify {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 ptrBtnActions;
    CARD16 changed;
    CARD8 minKeyCode;
    CARD8 maxKeyCode;
    CARD8 firstType;
    CARD8 nTypes;
    CARD8 firstKeySym;
    CARD8 nKeySyms;
    CARD8 firstKeyAct;
    CARD8 nKeyActs;
    CARD8 firstKeyBehavior;
    CARD8 nKeyBehaviors;
    CARD8 firstKeyExplicit;
    CARD8 nKeyExplicit;
    CARD8 firstModMapKey;
    CARD8 nModMapKeys;
    CARD8 firstVModMapKey;
    CARD8 nVModMapKeys;
    CARD16 virtualMods;
    CARD16 pad1;
} xkbMapNotify;
typedef struct _xkbStateNotify {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 mods;
    CARD8 baseMods;
    CARD8 latchedMods;
    CARD8 lockedMods;
    CARD8 group;
    INT16 baseGroup;
    INT16 latchedGroup;
    CARD8 lockedGroup;
    CARD8 compatState;
    CARD8 grabMods;
    CARD8 compatGrabMods;
    CARD8 lookupMods;
    CARD8 compatLookupMods;
    CARD16 ptrBtnState;
    CARD16 changed;
    CARD8 keycode;
    CARD8 eventType;
    CARD8 requestMajor;
    CARD8 requestMinor;
} xkbStateNotify;
typedef struct _xkbControlsNotify {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 numGroups;
    CARD16 pad1;
    CARD32 changedControls;
    CARD32 enabledControls;
    CARD32 enabledControlChanges;
    CARD8 keycode;
    CARD8 eventType;
    CARD8 requestMajor;
    CARD8 requestMinor;
    CARD32 pad2;
} xkbControlsNotify;
typedef struct _xkbIndicatorNotify {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 pad1;
    CARD16 pad2;
    CARD32 state;
    CARD32 changed;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xkbIndicatorNotify;
typedef struct _xkbNamesNotify {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 pad1;
    CARD16 changed;
    CARD8 firstType;
    CARD8 nTypes;
    CARD8 firstLevelName;
    CARD8 nLevelNames;
    CARD8 pad2;
    CARD8 nRadioGroups;
    CARD8 nAliases;
    CARD8 changedGroupNames;
    CARD16 changedVirtualMods;
    CARD8 firstKey;
    CARD8 nKeys;
    CARD32 changedIndicators;
    CARD32 pad3;
} xkbNamesNotify;
typedef struct _xkbCompatMapNotify {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 changedGroups;
    CARD16 firstSI;
    CARD16 nSI;
    CARD16 nTotalSI;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
} xkbCompatMapNotify;
typedef struct _xkbBellNotify {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 bellClass;
    CARD8 bellID;
    CARD8 percent;
    CARD16 pitch;
    CARD16 duration;
    CARD32 name;
    CARD32 window;
    BOOL eventOnly;
    CARD8 pad1;
    CARD16 pad2;
    CARD32 pad3;
} xkbBellNotify;
typedef struct _xkbActionMessage {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 keycode;
    BOOL press;
    BOOL keyEventFollows;
    CARD8 mods;
    CARD8 group;
    CARD8 message[8];
    CARD16 pad1;
    CARD32 pad2;
    CARD32 pad3;
} xkbActionMessage;
typedef struct _xkbAccessXNotify {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 keycode;
    CARD16 detail;
    CARD16 slowKeysDelay;
    CARD16 debounceDelay;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
} xkbAccessXNotify;
typedef struct _xkbExtensionDeviceNotify {
    BYTE type;
    BYTE xkbType;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 deviceID;
    CARD8 pad1;
    CARD16 reason;
    CARD16 ledClass;
    CARD16 ledID;
    CARD32 ledsDefined;
    CARD32 ledState;
    CARD8 firstBtn;
    CARD8 nBtns;
    CARD16 supported;
    CARD16 unsupported;
    CARD16 pad3;
} xkbExtensionDeviceNotify;
typedef struct _xkbEvent {
    union {
	xkbAnyEvent any;
	xkbNewKeyboardNotify new_kbd;
	xkbMapNotify map;
	xkbStateNotify state;
	xkbControlsNotify ctrls;
	xkbIndicatorNotify indicators;
	xkbNamesNotify names;
	xkbCompatMapNotify compat;
	xkbBellNotify bell;
	xkbActionMessage message;
	xkbAccessXNotify accessx;
	xkbExtensionDeviceNotify device;
    } u;
} xkbEvent;

6.2.19. X11/extensions/XKBstr.h


#define _XKBSTR_H_
#define XkbSMKeyActionsPtr(m,k)	(&(m)->acts[(m)->key_acts[k]])
#define XkbCMKeySymsPtr(m,k)	(&(m)->syms[XkbCMKeySymsOffset(m,k)])
#define XkbCMKeyType(m,k,g)	(&(m)->types[XkbCMKeyTypeIndex(m,k,g)])
#define XkbIM_IsAuto(i)	((((i)->flags&XkbIM_NoAutomatic)==0)&& (((i)->which_groups&&(i)->groups)|| ((i)->which_mods&&(i)->mods.mask)|| ((i)->ctrls)))
#define XkbActionCtrls(a)	((((unsigned int)(a)->ctrls3)<<24)| (((unsigned int)(a)->ctrls2)<<16)| (((unsigned int)(a)->ctrls1)<<8)| ((unsigned int)((a)->ctrls0)))
#define XkbSARedirectVMods(a)	((((unsigned int)(a)->vmods1)<<8)| ((unsigned int)(a)->vmods0))
#define XkbSARedirectVModsMask(a)	((((unsigned int)(a)->vmods_mask1)<<8)| ((unsigned int)(a)->vmods_mask0))
#define XkbActionSetCtrls(a,c)	(((a)->ctrls3=(((c)>>24)&0xff)), ((a)->ctrls2=(((c)>>16)&0xff)), ((a)->ctrls1=(((c)>>8)&0xff)), ((a)->ctrls0=((c)&0xff)))
#define XkbSetModActionVMods(a,v)	(((a)->vmods1=(((v)>>8)&0xff)),(a)->vmods2=((v)&0xff))
#define XkbSARedirectSetVMods(a,m)	(((a)->vmods_mask1=(((m)>>8)&0xff)), ((a)->vmods_mask0=((m)&0xff)))
#define XkbSARedirectSetVModsMask(a,m)	(((a)->vmods_mask1=(((m)>>8)&0xff)), ((a)->vmods_mask0=((m)&0xff)))
#define XkbXI_DevHasBtnActs(d)	(((d)->num_btns>0)&&((d)->btn_acts!=NULL))
#define XkbXI_DevHasLeds(d)	(((d)->num_leds>0)&&((d)->leds!=NULL))
#define XkbOutOfRangeGroupNumber(g)	(((g)&0x30)>>4)
#define XkbSetNumGroups(g,n)	(((g)&0xf0)|((n)&0x0f))
#define XkbIntTo2Chars(i,h,l)	(((h)=((i>>8)&0xff)),((l)=((i)&0xff)))
#define XkbIM_InUse(i)	(((i)->flags)||((i)->which_groups)|| ((i)->which_mods)||((i)->ctrls))
#define XkbKeycodeInRange(d,k)	(((k)>=(d)->min_key_code)&& ((k)<=(d)->max_key_code))
#define XkbSetGroupInfo(g,w,n)	(((w)&0xc0)|(((n)&3)<<4)|((g)&0x0f))
#define XkbSASetGroup(a,g)	((a)->group_XXX=(g))
#define XkbSASetScreen(a,s)	((a)->screenXXX= ((s)&0xff))
#define XkbSASetPtrDfltValue(a,c)	((a)->valueXXX= ((c)&0xff))
#define XkbAX_NeedOption(c,w)	((c)->ax_options&(w))
#define XkbAX_AnyFeedback(c)	((c)->enabled_ctrls&XkbAccessXFeedbackMask)
#define XkbNumKeys(d)	((d)->max_key_code-(d)->min_key_code+1)
#define XkbKeyHasActions(d,k)	((d)->server->key_acts[k]!=0)
#define XkbNumGroups(g)	((g)&0x0f)
#define XkbOutOfRangeGroupAction(g)	((g)&0xc0)
#define XkbOutOfRangeGroupInfo(g)	((g)&0xf0)
#define XkbCMKeyGroupInfo(m,k)	((m)->key_sym_map[k].group_info)
#define XkbCMKeyTypeIndex(m,k,g)	((m)->key_sym_map[k].kt_index[g&0x3])
#define XkbCMKeySymsOffset(m,k)	((m)->key_sym_map[k].offset)
#define XkbCMKeyGroupsWidth(m,k)	((m)->key_sym_map[k].width)
#define XkbStateGroup(s)	((s)->base_group+(s)->latched_group+XkbGroupLock(s))
#define XkbStateMods(s)	((s)->base_mods|(s)->latched_mods|XkbModLocks(s))
#define XkbGroupLock(s)	((s)->locked_group)
#define XkbModLocks(s)	((s)->locked_mods)
#define XkbModActionVMods(a)	((short)(((a)->vmods1<<8)|((a)->vmods2)))
#define Xkb2CharsToInt(h,l)	((short)(((h)<<8)|(l)))
#define XkbCharToInt(v)	((v)&0x80?(int)((v)|(~0xff)):(int)((v)&0x7f))
#define XkbPtrActionX(a)	(Xkb2CharsToInt((a)->high_XXX,(a)->low_XXX))
#define XkbPtrActionY(a)	(Xkb2CharsToInt((a)->high_YYY,(a)->low_YYY))
#define XkbAX_NeedFeedback(c,w)	(XkbAX_AnyFeedback(c)&&XkbAX_NeedOption(c,w))
#define XkbSAGroup(a)	(XkbCharToInt((a)->group_XXX))
#define XkbSAScreen(a)	(XkbCharToInt((a)->screenXXX))
#define XkbSAPtrDfltValue(a)	(XkbCharToInt((a)->valueXXX))
#define XkbKeyGroupInfo(d,k)	(XkbCMKeyGroupInfo((d)->map,(k)))
#define XkbKeyGroupsWidth(d,k)	(XkbCMKeyGroupsWidth((d)->map,k))
#define XkbCMKeyNumSyms(m,k)	(XkbCMKeyGroupsWidth(m,k)*XkbCMKeyNumGroups(m,k))
#define XkbKeyGroupWidth(d,k,g)	(XkbCMKeyGroupWidth((d)->map,k,g))
#define XkbKeyNumGroups(d,k)	(XkbCMKeyNumGroups((d)->map,(k)))
#define XkbKeyNumSyms(d,k)	(XkbCMKeyNumSyms((d)->map,(k)))
#define XkbKeySymsPtr(d,k)	(XkbCMKeySymsPtr((d)->map,(k)))
#define XkbKeyKeyType(d,k,g)	(XkbCMKeyType((d)->map,k,g))
#define XkbCMKeyGroupWidth(m,k,g)	(XkbCMKeyType(m,k,g)->num_levels)
#define XkbKeyKeyTypeIndex(d,k,g)	(XkbCMKeyTypeIndex((d)->map,k,g))
#define XkbSetPtrActionX(a,x)	(XkbIntTo2Chars(x,(a)->high_XXX,(a)->low_XXX))
#define XkbSetPtrActionY(a,y)	(XkbIntTo2Chars(y,(a)->high_YYY,(a)->low_YYY))
#define XkbKeyActionEntry(d,k,sl,g)	(XkbKeyHasActions(d,k)? XkbKeyAction(d,k,((XkbKeyGroupsWidth(d,k)*(g))+(sl))):NULL)
#define XkbKeyAction(d,k,n)	(XkbKeyHasActions(d,k)?&XkbKeyActionsPtr(d,k)[n]:NULL)
#define XkbKeyNumActions(d,k)	(XkbKeyHasActions(d,k)?XkbKeyNumSyms(d,k):1)
#define XkbKeySymEntry(d,k,sl,g)	(XkbKeySym(d,k,((XkbKeyGroupsWidth(d,k)*(g))+(sl))))
#define XkbKeySym(d,k,n)	(XkbKeySymsPtr(d,k)[n])
#define XkbCMKeyNumGroups(m,k)	(XkbNumGroups((m)->key_sym_map[k].group_info))
#define XkbKeyActionsPtr(d,k)	(XkbSMKeyActionsPtr((d)->server,k))
#define XkbXI_LegalDevBtn(d,b)	(XkbXI_DevHasBtnActs(d)&&((b)<(d)->num_btns))
#define XkbAnyActionDataSize	7
#define XkbGrabStateFromRec(s)	XkbBuildCoreState((s)->grab_mods,(s)->group)
#define XkbStateFieldFromRec(s)	XkbBuildCoreState((s)->lookup_mods,(s)->group)

typedef struct _XkbStateRec {
    unsigned char group;
    unsigned char locked_group;
    unsigned short base_group;
    unsigned short latched_group;
    unsigned char mods;
    unsigned char base_mods;
    unsigned char latched_mods;
    unsigned char locked_mods;
    unsigned char compat_state;
    unsigned char grab_mods;
    unsigned char compat_grab_mods;
    unsigned char lookup_mods;
    unsigned char compat_lookup_mods;
    unsigned short ptr_buttons;
} XkbStateRec;
typedef struct _XkbStateRec *XkbStatePtr;
typedef struct _XkbMods *XkbModsPtr;
typedef struct _XkbMods {
    unsigned char mask;
    unsigned char real_mods;
    unsigned short vmods;
} XkbModsRec;
typedef struct _XkbKTMapEntry {
    int active;
    unsigned char level;
    XkbModsRec mods;
} XkbKTMapEntryRec;
typedef struct _XkbKTMapEntry *XkbKTMapEntryPtr;
typedef struct _XkbKeyType {
    XkbModsRec mods;
    unsigned char num_levels;
    unsigned char map_count;
    XkbKTMapEntryPtr map;
    XkbModsPtr preserve;
    Atom name;
    Atom *level_names;
} XkbKeyTypeRec;
typedef struct _XkbKeyType *XkbKeyTypePtr;
typedef struct _XkbBehavior {
    unsigned char type;
    unsigned char data;
} XkbBehavior;
typedef struct _XkbAnyAction {
    unsigned char type;
    unsigned char data[8];
} XkbAnyAction;
typedef struct _XkbModAction {
    unsigned char type;
    unsigned char flags;
    unsigned char mask;
    unsigned char real_mods;
    unsigned char vmods1;
    unsigned char vmods2;
} XkbModAction;
typedef struct _XkbGroupAction {
    unsigned char type;
    unsigned char flags;
    char group_XXX;
} XkbGroupAction;
typedef struct _XkbISOAction {
    unsigned char type;
    unsigned char flags;
    unsigned char mask;
    unsigned char real_mods;
    char group_XXX;
    unsigned char affect;
    unsigned char vmods1;
    unsigned char vmods2;
} XkbISOAction;
typedef struct _XkbPtrAction {
    unsigned char type;
    unsigned char flags;
    unsigned char high_XXX;
    unsigned char low_XXX;
    unsigned char high_YYY;
    unsigned char low_YYY;
} XkbPtrAction;
typedef struct _XkbPtrBtnAction {
    unsigned char type;
    unsigned char flags;
    unsigned char count;
    unsigned char button;
} XkbPtrBtnAction;
typedef struct _XkbPtrDfltAction {
    unsigned char type;
    unsigned char flags;
    unsigned char affect;
    char valueXXX;
} XkbPtrDfltAction;
typedef struct _XkbSwitchScreenAction {
    unsigned char type;
    unsigned char flags;
    char screenXXX;
} XkbSwitchScreenAction;
typedef struct _XkbCtrlsAction {
    unsigned char type;
    unsigned char flags;
    unsigned char ctrls3;
    unsigned char ctrls2;
    unsigned char ctrls1;
    unsigned char ctrls0;
} XkbCtrlsAction;
typedef struct _XkbMessageAction {
    unsigned char type;
    unsigned char flags;
    unsigned char message[6];
} XkbMessageAction;
typedef struct _XkbRedirectKeyAction {
    unsigned char type;
    unsigned char new_key;
    unsigned char mods_mask;
    unsigned char mods;
    unsigned char vmods_mask0;
    unsigned char vmods_mask1;
    unsigned char vmods0;
    unsigned char vmods1;
} XkbRedirectKeyAction;
typedef struct _XkbDeviceBtnAction {
    unsigned char type;
    unsigned char flags;
    unsigned char count;
    unsigned char button;
    unsigned char device;
} XkbDeviceBtnAction;
typedef struct _XkbDeviceValuatorAction {
    unsigned char type;
    unsigned char device;
    unsigned char v1_what;
    unsigned char v1_ndx;
    unsigned char v1_value;
    unsigned char v2_what;
    unsigned char v2_ndx;
    unsigned char v2_value;
} XkbDeviceValuatorAction;
typedef union _XkbAction {
    XkbAnyAction any;
    XkbModAction mods;
    XkbGroupAction group;
    XkbISOAction iso;
    XkbPtrAction ptr;
    XkbPtrBtnAction btn;
    XkbPtrDfltAction dflt;
    XkbSwitchScreenAction screen;
    XkbCtrlsAction ctrls;
    XkbMessageAction msg;
    XkbRedirectKeyAction redirect;
    XkbDeviceBtnAction devbtn;
    XkbDeviceValuatorAction devval;
    unsigned char type;
} XkbAction;
typedef struct _XkbControls {
    unsigned char mk_dflt_btn;
    unsigned char num_groups;
    unsigned char groups_wrap;
    XkbModsRec internal;
    XkbModsRec ignore_lock;
    unsigned int enabled_ctrls;
    unsigned short repeat_delay;
    unsigned short repeat_interval;
    unsigned short slow_keys_delay;
    unsigned short debounce_delay;
    unsigned short mk_delay;
    unsigned short mk_interval;
    unsigned short mk_time_to_max;
    unsigned short mk_max_speed;
    short mk_curve;
    unsigned short ax_options;
    unsigned short ax_timeout;
    unsigned short axt_opts_mask;
    unsigned short axt_opts_values;
    unsigned int axt_ctrls_mask;
    unsigned int axt_ctrls_values;
    unsigned char per_key_repeat[32];
} XkbControlsRec;
typedef struct _XkbControls *XkbControlsPtr;
typedef struct _XkbServerMapRec {
    unsigned short num_acts;
    unsigned short size_acts;
    XkbAction *acts;
    XkbBehavior *behaviors;
    unsigned short *key_acts;
#if defined(__cplusplus) || defined(c_plusplus)
    unsigned char *c_explicit;
#else
    unsigned char *explicit;
#endif
    unsigned char vmods[16];
    unsigned short *vmodmap;
} XkbServerMapRec;
typedef struct _XkbServerMapRec *XkbServerMapPtr;
typedef struct _XkbSymMapRec {
    unsigned char kt_index[4];
    unsigned char group_info;
    unsigned char width;
    unsigned short offset;
} XkbSymMapRec;
typedef struct _XkbSymMapRec *XkbSymMapPtr;
typedef struct _XkbClientMapRec {
    unsigned char size_types;
    unsigned char num_types;
    XkbKeyTypePtr types;
    unsigned short size_syms;
    unsigned short num_syms;
    KeySym *syms;
    XkbSymMapPtr key_sym_map;
    unsigned char *modmap;
} XkbClientMapRec;
typedef struct _XkbClientMapRec *XkbClientMapPtr;
typedef struct _XkbSymInterpretRec {
    KeySym sym;
    unsigned char flags;
    unsigned char match;
    unsigned char mods;
    unsigned char virtual_mod;
    XkbAnyAction act;
} XkbSymInterpretRec;
typedef struct _XkbSymInterpretRec *XkbSymInterpretPtr;
typedef struct _XkbCompatMapRec {
    XkbSymInterpretPtr sym_interpret;
    XkbModsRec groups[4];
    unsigned short num_si;
    unsigned short size_si;
} XkbCompatMapRec;
typedef struct _XkbCompatMapRec *XkbCompatMapPtr;
typedef struct _XkbIndicatorMapRec *XkbIndicatorMapPtr;
typedef struct _XkbIndicatorMapRec {
    unsigned char flags;
    unsigned char which_groups;
    unsigned char groups;
    unsigned char which_mods;
    XkbModsRec mods;
    unsigned int ctrls;
} XkbIndicatorMapRec;
typedef struct _XkbIndicatorRec {
    unsigned long int phys_indicators;
    XkbIndicatorMapRec maps[32];
} XkbIndicatorRec;
typedef struct _XkbIndicatorRec *XkbIndicatorPtr;
typedef struct _XkbKeyNameRec {
    char name[4];
} XkbKeyNameRec;
typedef struct _XkbKeyNameRec *XkbKeyNamePtr;
typedef struct _XkbKeyAliasRec {
    char real[4];
    char alias[4];
} XkbKeyAliasRec;
typedef struct _XkbKeyAliasRec *XkbKeyAliasPtr;
typedef struct _XkbNamesRec {
    Atom keycodes;
    Atom geometry;
    Atom symbols;
    Atom types;
    Atom compat;
    Atom vmods[16];
    Atom indicators[32];
    Atom groups[4];
    XkbKeyNamePtr keys;
    XkbKeyAliasPtr key_aliases;
    Atom *radio_groups;
    Atom phys_symbols;
    unsigned char num_keys;
    unsigned char num_key_aliases;
    unsigned short num_rg;
} XkbNamesRec;
typedef struct _XkbNamesRec *XkbNamesPtr;
typedef struct _XkbGeometry *XkbGeometryPtr;
typedef struct _XkbDesc {
    struct _XDisplay *dpy;
    unsigned short flags;
    unsigned short device_spec;
    KeyCode min_key_code;
    KeyCode max_key_code;
    XkbControlsPtr ctrls;
    XkbServerMapPtr server;
    XkbClientMapPtr map;
    XkbIndicatorPtr indicators;
    XkbNamesPtr names;
    XkbCompatMapPtr compat;
    XkbGeometryPtr geom;
} XkbDescRec;
typedef struct _XkbDesc *XkbDescPtr;
typedef struct _XkbMapChanges *XkbMapChangesPtr;
typedef struct _XkbMapChanges {
    unsigned short changed;
    KeyCode min_key_code;
    KeyCode max_key_code;
    unsigned char first_type;
    unsigned char num_types;
    KeyCode first_key_sym;
    unsigned char num_key_syms;
    KeyCode first_key_act;
    unsigned char num_key_acts;
    KeyCode first_key_behavior;
    unsigned char num_key_behaviors;
    KeyCode first_key_explicit;
    unsigned char num_key_explicit;
    KeyCode first_modmap_key;
    unsigned char num_modmap_keys;
    KeyCode first_vmodmap_key;
    unsigned char num_vmodmap_keys;
    unsigned char pad;
    unsigned short vmods;
} XkbMapChangesRec;
typedef struct _XkbControlsChanges *XkbControlsChangesPtr;
typedef struct _XkbControlsChanges {
    unsigned int changed_ctrls;
    unsigned int enabled_ctrls_changes;
    int num_groups_changed;
} XkbControlsChangesRec;
typedef struct _XkbIndicatorChanges *XkbIndicatorChangesPtr;
typedef struct _XkbIndicatorChanges {
    unsigned int state_changes;
    unsigned int map_changes;
} XkbIndicatorChangesRec;
typedef struct _XkbNameChanges {
    unsigned int changed;
    unsigned char first_type;
    unsigned char num_types;
    unsigned char first_lvl;
    unsigned char num_lvls;
    unsigned char num_aliases;
    unsigned char num_rg;
    unsigned char first_key;
    unsigned char num_keys;
    unsigned short changed_vmods;
    unsigned long int changed_indicators;
    unsigned char changed_groups;
} XkbNameChangesRec;
typedef struct _XkbNameChanges *XkbNameChangesPtr;
typedef struct _XkbCompatChanges {
    unsigned char changed_groups;
    unsigned short first_si;
    unsigned short num_si;
} XkbCompatChangesRec;
typedef struct _XkbCompatChanges *XkbCompatChangesPtr;
typedef struct _XkbChanges {
    unsigned short device_spec;
    unsigned short state_changes;
    XkbMapChangesRec map;
    XkbControlsChangesRec ctrls;
    XkbIndicatorChangesRec indicators;
    XkbNameChangesRec names;
    XkbCompatChangesRec compat;
} XkbChangesRec;
typedef struct _XkbChanges *XkbChangesPtr;
typedef struct _XkbComponentNames {
    char *keymap;
    char *keycodes;
    char *types;
    char *compat;
    char *symbols;
    char *geometry;
} XkbComponentNamesRec;
typedef struct _XkbComponentNames *XkbComponentNamesPtr;
typedef struct _XkbComponentName {
    unsigned short flags;
    char *name;
} XkbComponentNameRec;
typedef struct _XkbComponentName *XkbComponentNamePtr;
typedef struct _XkbComponentList {
    int num_keymaps;
    int num_keycodes;
    int num_types;
    int num_compat;
    int num_symbols;
    int num_geometry;
    XkbComponentNamePtr keymaps;
    XkbComponentNamePtr keycodes;
    XkbComponentNamePtr types;
    XkbComponentNamePtr compat;
    XkbComponentNamePtr symbols;
    XkbComponentNamePtr geometry;
} XkbComponentListRec;
typedef struct _XkbComponentList *XkbComponentListPtr;
typedef struct _XkbDeviceLedInfo {
    unsigned short led_class;
    unsigned short led_id;
    unsigned int phys_indicators;
    unsigned int maps_present;
    unsigned int names_present;
    unsigned int state;
    Atom names[32];
    XkbIndicatorMapRec maps[32];
} XkbDeviceLedInfoRec;
typedef struct _XkbDeviceLedInfo *XkbDeviceLedInfoPtr;
typedef struct _XkbDeviceInfo {
    char *name;
    Atom type;
    unsigned short device_spec;
    int has_own_state;
    unsigned short supported;
    unsigned short unsupported;
    unsigned short num_btns;
    XkbAction *btn_acts;
    unsigned short sz_leds;
    unsigned short num_leds;
    unsigned short dflt_kbd_fb;
    unsigned short dflt_led_fb;
    XkbDeviceLedInfoPtr leds;
} XkbDeviceInfoRec;
typedef struct _XkbDeviceInfo *XkbDeviceInfoPtr;
typedef struct _XkbDeviceLedChanges {
    unsigned short led_class;
    unsigned short led_id;
    unsigned int defined;
    struct _XkbDeviceLedChanges *next;
} XkbDeviceLedChangesRec;
typedef struct _XkbDeviceLedChanges *XkbDeviceLedChangesPtr;
typedef struct _XkbDeviceChanges {
    unsigned int changed;
    unsigned short first_btn;
    unsigned short num_btns;
    XkbDeviceLedChangesRec leds;
} XkbDeviceChangesRec;
typedef struct _XkbDeviceChanges *XkbDeviceChangesPtr;

6.2.20. X11/extensions/securstr.h


#define SECURITY_MINOR_VERSION	0
#define X_SecurityQueryVersion	0
#define SECURITY_MAJOR_VERSION	1
#define X_SecurityGenerateAuthorization	1
#define _SECURSTR_H	1
#define sz_xSecurityGenerateAuthorizationReq	12
#define X_SecurityRevokeAuthorization	2
#define sz_xSecurityAuthorizationRevokedEvent	32
#define sz_xSecurityGenerateAuthorizationReply	32
#define sz_xSecurityQueryVersionReply	32
#define sz_xSecurityQueryVersionReq	8
#define sz_xSecurityRevokeAuthorizationReq	8
#define SECURITY_EXTENSION_NAME	"SECURITY"

typedef struct {
    CARD8 reqType;
    CARD8 securityReqType;
    CARD16 length;
    CARD16 majorVersion;
    CARD16 minorVersion;
} xSecurityQueryVersionReq;
typedef struct {
    CARD8 type;
    CARD8 pad0;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 majorVersion;
    CARD16 minorVersion;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xSecurityQueryVersionReply;
typedef struct {
    CARD8 reqType;
    CARD8 securityReqType;
    CARD16 length;
    CARD16 nbytesAuthProto;
    CARD16 nbytesAuthData;
    CARD32 valueMask;
} xSecurityGenerateAuthorizationReq;
typedef struct {
    CARD8 type;
    CARD8 pad0;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 authId;
    CARD16 dataLength;
    CARD16 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xSecurityGenerateAuthorizationReply;
typedef struct {
    CARD8 reqType;
    CARD8 securityReqType;
    CARD16 length;
    CARD32 authId;
} xSecurityRevokeAuthorizationReq;
typedef struct _xSecurityAuthorizationRevokedEvent {
    BYTE type;
    BYTE detail;
    CARD16 sequenceNumber;
    CARD32 authId;
    CARD32 pad0;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xSecurityAuthorizationRevokedEvent;

6.2.21. X11/keysym.h


#define XK_ARABIC
#define XK_ARMENIAN
#define XK_BRAILLE
#define XK_CAUCASUS
#define XK_CURRENCY
#define XK_CYRILLIC
#define XK_GEORGIAN
#define XK_GREEK
#define XK_HEBREW
#define XK_KATAKANA
#define XK_KOREAN
#define XK_LATIN1
#define XK_LATIN2
#define XK_LATIN3
#define XK_LATIN4
#define XK_LATIN8
#define XK_LATIN9
#define XK_MATHEMATICAL
#define XK_THAI
#define XK_VIETNAMESE
#define XK_XKB_KEYS

6.2.22. X11/keysymdef.h


#define XK_space	0x0020
#define XK_exclam	0x0021
#define XK_quotedbl	0x0022
#define XK_numbersign	0x0023
#define XK_dollar	0x0024
#define XK_percent	0x0025
#define XK_ampersand	0x0026
#define XK_apostrophe	0x0027
#define XK_quoteright	0x0027
#define XK_parenleft	0x0028
#define XK_parenright	0x0029
#define XK_asterisk	0x002a
#define XK_plus	0x002b
#define XK_comma	0x002c
#define XK_minus	0x002d
#define XK_period	0x002e
#define XK_slash	0x002f
#define XK_0	0x0030
#define XK_1	0x0031
#define XK_2	0x0032
#define XK_3	0x0033
#define XK_4	0x0034
#define XK_5	0x0035
#define XK_6	0x0036
#define XK_7	0x0037
#define XK_8	0x0038
#define XK_9	0x0039
#define XK_colon	0x003a
#define XK_semicolon	0x003b
#define XK_less	0x003c
#define XK_equal	0x003d
#define XK_greater	0x003e
#define XK_question	0x003f
#define XK_at	0x0040
#define XK_A	0x0041
#define XK_B	0x0042
#define XK_C	0x0043
#define XK_D	0x0044
#define XK_E	0x0045
#define XK_F	0x0046
#define XK_G	0x0047
#define XK_H	0x0048
#define XK_I	0x0049
#define XK_J	0x004a
#define XK_K	0x004b
#define XK_L	0x004c
#define XK_M	0x004d
#define XK_N	0x004e
#define XK_O	0x004f
#define XK_P	0x0050
#define XK_Q	0x0051
#define XK_R	0x0052
#define XK_S	0x0053
#define XK_T	0x0054
#define XK_U	0x0055
#define XK_V	0x0056
#define XK_W	0x0057
#define XK_X	0x0058
#define XK_Y	0x0059
#define XK_Z	0x005a
#define XK_bracketleft	0x005b
#define XK_backslash	0x005c
#define XK_bracketright	0x005d
#define XK_asciicircum	0x005e
#define XK_underscore	0x005f
#define XK_grave	0x0060
#define XK_quoteleft	0x0060
#define XK_a	0x0061
#define XK_b	0x0062
#define XK_c	0x0063
#define XK_d	0x0064
#define XK_e	0x0065
#define XK_f	0x0066
#define XK_g	0x0067
#define XK_h	0x0068
#define XK_i	0x0069
#define XK_j	0x006a
#define XK_k	0x006b
#define XK_l	0x006c
#define XK_m	0x006d
#define XK_n	0x006e
#define XK_o	0x006f
#define XK_p	0x0070
#define XK_q	0x0071
#define XK_r	0x0072
#define XK_s	0x0073
#define XK_t	0x0074
#define XK_u	0x0075
#define XK_v	0x0076
#define XK_w	0x0077
#define XK_x	0x0078
#define XK_y	0x0079
#define XK_z	0x007a
#define XK_braceleft	0x007b
#define XK_bar	0x007c
#define XK_braceright	0x007d
#define XK_asciitilde	0x007e
#define XK_nobreakspace	0x00a0
#define XK_exclamdown	0x00a1
#define XK_cent	0x00a2
#define XK_sterling	0x00a3
#define XK_currency	0x00a4
#define XK_yen	0x00a5
#define XK_brokenbar	0x00a6
#define XK_section	0x00a7
#define XK_diaeresis	0x00a8
#define XK_copyright	0x00a9
#define XK_ordfeminine	0x00aa
#define XK_guillemotleft	0x00ab
#define XK_notsign	0x00ac
#define XK_hyphen	0x00ad
#define XK_registered	0x00ae
#define XK_macron	0x00af
#define XK_degree	0x00b0
#define XK_plusminus	0x00b1
#define XK_twosuperior	0x00b2
#define XK_threesuperior	0x00b3
#define XK_acute	0x00b4
#define XK_mu	0x00b5
#define XK_paragraph	0x00b6
#define XK_periodcentered	0x00b7
#define XK_cedilla	0x00b8
#define XK_onesuperior	0x00b9
#define XK_masculine	0x00ba
#define XK_guillemotright	0x00bb
#define XK_onequarter	0x00bc
#define XK_onehalf	0x00bd
#define XK_threequarters	0x00be
#define XK_questiondown	0x00bf
#define XK_Agrave	0x00c0
#define XK_Aacute	0x00c1
#define XK_Acircumflex	0x00c2
#define XK_Atilde	0x00c3
#define XK_Adiaeresis	0x00c4
#define XK_Aring	0x00c5
#define XK_AE	0x00c6
#define XK_Ccedilla	0x00c7
#define XK_Egrave	0x00c8
#define XK_Eacute	0x00c9
#define XK_Ecircumflex	0x00ca
#define XK_Ediaeresis	0x00cb
#define XK_Igrave	0x00cc
#define XK_Iacute	0x00cd
#define XK_Icircumflex	0x00ce
#define XK_Idiaeresis	0x00cf
#define XK_ETH	0x00d0
#define XK_Eth	0x00d0
#define XK_Ntilde	0x00d1
#define XK_Ograve	0x00d2
#define XK_Oacute	0x00d3
#define XK_Ocircumflex	0x00d4
#define XK_Otilde	0x00d5
#define XK_Odiaeresis	0x00d6
#define XK_multiply	0x00d7
#define XK_Ooblique	0x00d8
#define XK_Oslash	0x00d8
#define XK_Ugrave	0x00d9
#define XK_Uacute	0x00da
#define XK_Ucircumflex	0x00db
#define XK_Udiaeresis	0x00dc
#define XK_Yacute	0x00dd
#define XK_THORN	0x00de
#define XK_Thorn	0x00de
#define XK_ssharp	0x00df
#define XK_agrave	0x00e0
#define XK_aacute	0x00e1
#define XK_acircumflex	0x00e2
#define XK_atilde	0x00e3
#define XK_adiaeresis	0x00e4
#define XK_aring	0x00e5
#define XK_ae	0x00e6
#define XK_ccedilla	0x00e7
#define XK_egrave	0x00e8
#define XK_eacute	0x00e9
#define XK_ecircumflex	0x00ea
#define XK_ediaeresis	0x00eb
#define XK_igrave	0x00ec
#define XK_iacute	0x00ed
#define XK_icircumflex	0x00ee
#define XK_idiaeresis	0x00ef
#define XK_eth	0x00f0
#define XK_ntilde	0x00f1
#define XK_ograve	0x00f2
#define XK_oacute	0x00f3
#define XK_ocircumflex	0x00f4
#define XK_otilde	0x00f5
#define XK_odiaeresis	0x00f6
#define XK_division	0x00f7
#define XK_ooblique	0x00f8
#define XK_oslash	0x00f8
#define XK_ugrave	0x00f9
#define XK_uacute	0x00fa
#define XK_ucircumflex	0x00fb
#define XK_udiaeresis	0x00fc
#define XK_yacute	0x00fd
#define XK_thorn	0x00fe
#define XK_ydiaeresis	0x00ff
#define XK_Aogonek	0x01a1
#define XK_breve	0x01a2
#define XK_Lstroke	0x01a3
#define XK_Lcaron	0x01a5
#define XK_Sacute	0x01a6
#define XK_Scaron	0x01a9
#define XK_Scedilla	0x01aa
#define XK_Tcaron	0x01ab
#define XK_Zacute	0x01ac
#define XK_Zcaron	0x01ae
#define XK_Zabovedot	0x01af
#define XK_aogonek	0x01b1
#define XK_ogonek	0x01b2
#define XK_lstroke	0x01b3
#define XK_lcaron	0x01b5
#define XK_sacute	0x01b6
#define XK_caron	0x01b7
#define XK_scaron	0x01b9
#define XK_scedilla	0x01ba
#define XK_tcaron	0x01bb
#define XK_zacute	0x01bc
#define XK_doubleacute	0x01bd
#define XK_zcaron	0x01be
#define XK_zabovedot	0x01bf
#define XK_Racute	0x01c0
#define XK_Abreve	0x01c3
#define XK_Lacute	0x01c5
#define XK_Cacute	0x01c6
#define XK_Ccaron	0x01c8
#define XK_Eogonek	0x01ca
#define XK_Ecaron	0x01cc
#define XK_Dcaron	0x01cf
#define XK_Dstroke	0x01d0
#define XK_Nacute	0x01d1
#define XK_Ncaron	0x01d2
#define XK_Odoubleacute	0x01d5
#define XK_Rcaron	0x01d8
#define XK_Uring	0x01d9
#define XK_Udoubleacute	0x01db
#define XK_Tcedilla	0x01de
#define XK_racute	0x01e0
#define XK_abreve	0x01e3
#define XK_lacute	0x01e5
#define XK_cacute	0x01e6
#define XK_ccaron	0x01e8
#define XK_eogonek	0x01ea
#define XK_ecaron	0x01ec
#define XK_dcaron	0x01ef
#define XK_dstroke	0x01f0
#define XK_nacute	0x01f1
#define XK_ncaron	0x01f2
#define XK_odoubleacute	0x01f5
#define XK_rcaron	0x01f8
#define XK_uring	0x01f9
#define XK_udoubleacute	0x01fb
#define XK_tcedilla	0x01fe
#define XK_abovedot	0x01ff
#define XK_Hstroke	0x02a1
#define XK_Hcircumflex	0x02a6
#define XK_Iabovedot	0x02a9
#define XK_Gbreve	0x02ab
#define XK_Jcircumflex	0x02ac
#define XK_hstroke	0x02b1
#define XK_hcircumflex	0x02b6
#define XK_idotless	0x02b9
#define XK_gbreve	0x02bb
#define XK_jcircumflex	0x02bc
#define XK_Cabovedot	0x02c5
#define XK_Ccircumflex	0x02c6
#define XK_Gabovedot	0x02d5
#define XK_Gcircumflex	0x02d8
#define XK_Ubreve	0x02dd
#define XK_Scircumflex	0x02de
#define XK_cabovedot	0x02e5
#define XK_ccircumflex	0x02e6
#define XK_gabovedot	0x02f5
#define XK_gcircumflex	0x02f8
#define XK_ubreve	0x02fd
#define XK_scircumflex	0x02fe
#define XK_kappa	0x03a2
#define XK_kra	0x03a2
#define XK_Rcedilla	0x03a3
#define XK_Itilde	0x03a5
#define XK_Lcedilla	0x03a6
#define XK_Emacron	0x03aa
#define XK_Gcedilla	0x03ab
#define XK_Tslash	0x03ac
#define XK_rcedilla	0x03b3
#define XK_itilde	0x03b5
#define XK_lcedilla	0x03b6
#define XK_emacron	0x03ba
#define XK_gcedilla	0x03bb
#define XK_tslash	0x03bc
#define XK_ENG	0x03bd
#define XK_eng	0x03bf
#define XK_Amacron	0x03c0
#define XK_Iogonek	0x03c7
#define XK_Eabovedot	0x03cc
#define XK_Imacron	0x03cf
#define XK_Ncedilla	0x03d1
#define XK_Omacron	0x03d2
#define XK_Kcedilla	0x03d3
#define XK_Uogonek	0x03d9
#define XK_Utilde	0x03dd
#define XK_Umacron	0x03de
#define XK_amacron	0x03e0
#define XK_iogonek	0x03e7
#define XK_eabovedot	0x03ec
#define XK_imacron	0x03ef
#define XK_ncedilla	0x03f1
#define XK_omacron	0x03f2
#define XK_kcedilla	0x03f3
#define XK_uogonek	0x03f9
#define XK_utilde	0x03fd
#define XK_umacron	0x03fe
#define XK_overline	0x047e
#define XK_kana_fullstop	0x04a1
#define XK_kana_openingbracket	0x04a2
#define XK_kana_closingbracket	0x04a3
#define XK_kana_comma	0x04a4
#define XK_kana_conjunctive	0x04a5
#define XK_kana_middledot	0x04a5
#define XK_kana_WO	0x04a6
#define XK_kana_a	0x04a7
#define XK_kana_i	0x04a8
#define XK_kana_u	0x04a9
#define XK_kana_e	0x04aa
#define XK_kana_o	0x04ab
#define XK_kana_ya	0x04ac
#define XK_kana_yu	0x04ad
#define XK_kana_yo	0x04ae
#define XK_kana_tsu	0x04af
#define XK_kana_tu	0x04af
#define XK_prolongedsound	0x04b0
#define XK_kana_A	0x04b1
#define XK_kana_I	0x04b2
#define XK_kana_U	0x04b3
#define XK_kana_E	0x04b4
#define XK_kana_O	0x04b5
#define XK_kana_KA	0x04b6
#define XK_kana_KI	0x04b7
#define XK_kana_KU	0x04b8
#define XK_kana_KE	0x04b9
#define XK_kana_KO	0x04ba
#define XK_kana_SA	0x04bb
#define XK_kana_SHI	0x04bc
#define XK_kana_SU	0x04bd
#define XK_kana_SE	0x04be
#define XK_kana_SO	0x04bf
#define XK_kana_TA	0x04c0
#define XK_kana_CHI	0x04c1
#define XK_kana_TI	0x04c1
#define XK_kana_TSU	0x04c2
#define XK_kana_TU	0x04c2
#define XK_kana_TE	0x04c3
#define XK_kana_TO	0x04c4
#define XK_kana_NA	0x04c5
#define XK_kana_NI	0x04c6
#define XK_kana_NU	0x04c7
#define XK_kana_NE	0x04c8
#define XK_kana_NO	0x04c9
#define XK_kana_HA	0x04ca
#define XK_kana_HI	0x04cb
#define XK_kana_FU	0x04cc
#define XK_kana_HU	0x04cc
#define XK_kana_HE	0x04cd
#define XK_kana_HO	0x04ce
#define XK_kana_MA	0x04cf
#define XK_kana_MI	0x04d0
#define XK_kana_MU	0x04d1
#define XK_kana_ME	0x04d2
#define XK_kana_MO	0x04d3
#define XK_kana_YA	0x04d4
#define XK_kana_YU	0x04d5
#define XK_kana_YO	0x04d6
#define XK_kana_RA	0x04d7
#define XK_kana_RI	0x04d8
#define XK_kana_RU	0x04d9
#define XK_kana_RE	0x04da
#define XK_kana_RO	0x04db
#define XK_kana_WA	0x04dc
#define XK_kana_N	0x04dd
#define XK_voicedsound	0x04de
#define XK_semivoicedsound	0x04df
#define XK_Arabic_comma	0x05ac
#define XK_Arabic_semicolon	0x05bb
#define XK_Arabic_question_mark	0x05bf
#define XK_Arabic_hamza	0x05c1
#define XK_Arabic_maddaonalef	0x05c2
#define XK_Arabic_hamzaonalef	0x05c3
#define XK_Arabic_hamzaonwaw	0x05c4
#define XK_Arabic_hamzaunderalef	0x05c5
#define XK_Arabic_hamzaonyeh	0x05c6
#define XK_Arabic_alef	0x05c7
#define XK_Arabic_beh	0x05c8
#define XK_Arabic_tehmarbuta	0x05c9
#define XK_Arabic_teh	0x05ca
#define XK_Arabic_theh	0x05cb
#define XK_Arabic_jeem	0x05cc
#define XK_Arabic_hah	0x05cd
#define XK_Arabic_khah	0x05ce
#define XK_Arabic_dal	0x05cf
#define XK_Arabic_thal	0x05d0
#define XK_Arabic_ra	0x05d1
#define XK_Arabic_zain	0x05d2
#define XK_Arabic_seen	0x05d3
#define XK_Arabic_sheen	0x05d4
#define XK_Arabic_sad	0x05d5
#define XK_Arabic_dad	0x05d6
#define XK_Arabic_tah	0x05d7
#define XK_Arabic_zah	0x05d8
#define XK_Arabic_ain	0x05d9
#define XK_Arabic_ghain	0x05da
#define XK_Arabic_tatweel	0x05e0
#define XK_Arabic_feh	0x05e1
#define XK_Arabic_qaf	0x05e2
#define XK_Arabic_kaf	0x05e3
#define XK_Arabic_lam	0x05e4
#define XK_Arabic_meem	0x05e5
#define XK_Arabic_noon	0x05e6
#define XK_Arabic_ha	0x05e7
#define XK_Arabic_heh	0x05e7
#define XK_Arabic_waw	0x05e8
#define XK_Arabic_alefmaksura	0x05e9
#define XK_Arabic_yeh	0x05ea
#define XK_Arabic_fathatan	0x05eb
#define XK_Arabic_dammatan	0x05ec
#define XK_Arabic_kasratan	0x05ed
#define XK_Arabic_fatha	0x05ee
#define XK_Arabic_damma	0x05ef
#define XK_Arabic_kasra	0x05f0
#define XK_Arabic_shadda	0x05f1
#define XK_Arabic_sukun	0x05f2
#define XK_Serbian_dje	0x06a1
#define XK_Macedonia_gje	0x06a2
#define XK_Cyrillic_io	0x06a3
#define XK_Ukrainian_ie	0x06a4
#define XK_Ukranian_je	0x06a4
#define XK_Macedonia_dse	0x06a5
#define XK_Ukrainian_i	0x06a6
#define XK_Ukranian_i	0x06a6
#define XK_Ukrainian_yi	0x06a7
#define XK_Ukranian_yi	0x06a7
#define XK_Cyrillic_je	0x06a8
#define XK_Serbian_je	0x06a8
#define XK_Cyrillic_lje	0x06a9
#define XK_Serbian_lje	0x06a9
#define XK_Cyrillic_nje	0x06aa
#define XK_Serbian_nje	0x06aa
#define XK_Serbian_tshe	0x06ab
#define XK_Macedonia_kje	0x06ac
#define XK_Ukrainian_ghe_with_upturn	0x06ad
#define XK_Byelorussian_shortu	0x06ae
#define XK_Cyrillic_dzhe	0x06af
#define XK_Serbian_dze	0x06af
#define XK_numerosign	0x06b0
#define XK_Serbian_DJE	0x06b1
#define XK_Macedonia_GJE	0x06b2
#define XK_Cyrillic_IO	0x06b3
#define XK_Ukrainian_IE	0x06b4
#define XK_Ukranian_JE	0x06b4
#define XK_Macedonia_DSE	0x06b5
#define XK_Ukrainian_I	0x06b6
#define XK_Ukranian_I	0x06b6
#define XK_Ukrainian_YI	0x06b7
#define XK_Ukranian_YI	0x06b7
#define XK_Cyrillic_JE	0x06b8
#define XK_Serbian_JE	0x06b8
#define XK_Cyrillic_LJE	0x06b9
#define XK_Serbian_LJE	0x06b9
#define XK_Cyrillic_NJE	0x06ba
#define XK_Serbian_NJE	0x06ba
#define XK_Serbian_TSHE	0x06bb
#define XK_Macedonia_KJE	0x06bc
#define XK_Ukrainian_GHE_WITH_UPTURN	0x06bd
#define XK_Byelorussian_SHORTU	0x06be
#define XK_Cyrillic_DZHE	0x06bf
#define XK_Serbian_DZE	0x06bf
#define XK_Cyrillic_yu	0x06c0
#define XK_Cyrillic_a	0x06c1
#define XK_Cyrillic_be	0x06c2
#define XK_Cyrillic_tse	0x06c3
#define XK_Cyrillic_de	0x06c4
#define XK_Cyrillic_ie	0x06c5
#define XK_Cyrillic_ef	0x06c6
#define XK_Cyrillic_ghe	0x06c7
#define XK_Cyrillic_ha	0x06c8
#define XK_Cyrillic_i	0x06c9
#define XK_Cyrillic_shorti	0x06ca
#define XK_Cyrillic_ka	0x06cb
#define XK_Cyrillic_el	0x06cc
#define XK_Cyrillic_em	0x06cd
#define XK_Cyrillic_en	0x06ce
#define XK_Cyrillic_o	0x06cf
#define XK_Cyrillic_pe	0x06d0
#define XK_Cyrillic_ya	0x06d1
#define XK_Cyrillic_er	0x06d2
#define XK_Cyrillic_es	0x06d3
#define XK_Cyrillic_te	0x06d4
#define XK_Cyrillic_u	0x06d5
#define XK_Cyrillic_zhe	0x06d6
#define XK_Cyrillic_ve	0x06d7
#define XK_Cyrillic_softsign	0x06d8
#define XK_Cyrillic_yeru	0x06d9
#define XK_Cyrillic_ze	0x06da
#define XK_Cyrillic_sha	0x06db
#define XK_Cyrillic_e	0x06dc
#define XK_Cyrillic_shcha	0x06dd
#define XK_Cyrillic_che	0x06de
#define XK_Cyrillic_hardsign	0x06df
#define XK_Cyrillic_YU	0x06e0
#define XK_Cyrillic_A	0x06e1
#define XK_Cyrillic_BE	0x06e2
#define XK_Cyrillic_TSE	0x06e3
#define XK_Cyrillic_DE	0x06e4
#define XK_Cyrillic_IE	0x06e5
#define XK_Cyrillic_EF	0x06e6
#define XK_Cyrillic_GHE	0x06e7
#define XK_Cyrillic_HA	0x06e8
#define XK_Cyrillic_I	0x06e9
#define XK_Cyrillic_SHORTI	0x06ea
#define XK_Cyrillic_KA	0x06eb
#define XK_Cyrillic_EL	0x06ec
#define XK_Cyrillic_EM	0x06ed
#define XK_Cyrillic_EN	0x06ee
#define XK_Cyrillic_O	0x06ef
#define XK_Cyrillic_PE	0x06f0
#define XK_Cyrillic_YA	0x06f1
#define XK_Cyrillic_ER	0x06f2
#define XK_Cyrillic_ES	0x06f3
#define XK_Cyrillic_TE	0x06f4
#define XK_Cyrillic_U	0x06f5
#define XK_Cyrillic_ZHE	0x06f6
#define XK_Cyrillic_VE	0x06f7
#define XK_Cyrillic_SOFTSIGN	0x06f8
#define XK_Cyrillic_YERU	0x06f9
#define XK_Cyrillic_ZE	0x06fa
#define XK_Cyrillic_SHA	0x06fb
#define XK_Cyrillic_E	0x06fc
#define XK_Cyrillic_SHCHA	0x06fd
#define XK_Cyrillic_CHE	0x06fe
#define XK_Cyrillic_HARDSIGN	0x06ff
#define XK_Greek_ALPHAaccent	0x07a1
#define XK_Greek_EPSILONaccent	0x07a2
#define XK_Greek_ETAaccent	0x07a3
#define XK_Greek_IOTAaccent	0x07a4
#define XK_Greek_IOTAdiaeresis	0x07a5
#define XK_Greek_IOTAdieresis	0x07a5
#define XK_Greek_OMICRONaccent	0x07a7
#define XK_Greek_UPSILONaccent	0x07a8
#define XK_Greek_UPSILONdieresis	0x07a9
#define XK_Greek_OMEGAaccent	0x07ab
#define XK_Greek_accentdieresis	0x07ae
#define XK_Greek_horizbar	0x07af
#define XK_Greek_alphaaccent	0x07b1
#define XK_Greek_epsilonaccent	0x07b2
#define XK_Greek_etaaccent	0x07b3
#define XK_Greek_iotaaccent	0x07b4
#define XK_Greek_iotadieresis	0x07b5
#define XK_Greek_iotaaccentdieresis	0x07b6
#define XK_Greek_omicronaccent	0x07b7
#define XK_Greek_upsilonaccent	0x07b8
#define XK_Greek_upsilondieresis	0x07b9
#define XK_Greek_upsilonaccentdieresis	0x07ba
#define XK_Greek_omegaaccent	0x07bb
#define XK_Greek_ALPHA	0x07c1
#define XK_Greek_BETA	0x07c2
#define XK_Greek_GAMMA	0x07c3
#define XK_Greek_DELTA	0x07c4
#define XK_Greek_EPSILON	0x07c5
#define XK_Greek_ZETA	0x07c6
#define XK_Greek_ETA	0x07c7
#define XK_Greek_THETA	0x07c8
#define XK_Greek_IOTA	0x07c9
#define XK_Greek_KAPPA	0x07ca
#define XK_Greek_LAMBDA	0x07cb
#define XK_Greek_LAMDA	0x07cb
#define XK_Greek_MU	0x07cc
#define XK_Greek_NU	0x07cd
#define XK_Greek_XI	0x07ce
#define XK_Greek_OMICRON	0x07cf
#define XK_Greek_PI	0x07d0
#define XK_Greek_RHO	0x07d1
#define XK_Greek_SIGMA	0x07d2
#define XK_Greek_TAU	0x07d4
#define XK_Greek_UPSILON	0x07d5
#define XK_Greek_PHI	0x07d6
#define XK_Greek_CHI	0x07d7
#define XK_Greek_PSI	0x07d8
#define XK_Greek_OMEGA	0x07d9
#define XK_Greek_alpha	0x07e1
#define XK_Greek_beta	0x07e2
#define XK_Greek_gamma	0x07e3
#define XK_Greek_delta	0x07e4
#define XK_Greek_epsilon	0x07e5
#define XK_Greek_zeta	0x07e6
#define XK_Greek_eta	0x07e7
#define XK_Greek_theta	0x07e8
#define XK_Greek_iota	0x07e9
#define XK_Greek_kappa	0x07ea
#define XK_Greek_lambda	0x07eb
#define XK_Greek_lamda	0x07eb
#define XK_Greek_mu	0x07ec
#define XK_Greek_nu	0x07ed
#define XK_Greek_xi	0x07ee
#define XK_Greek_omicron	0x07ef
#define XK_Greek_pi	0x07f0
#define XK_Greek_rho	0x07f1
#define XK_Greek_sigma	0x07f2
#define XK_Greek_finalsmallsigma	0x07f3
#define XK_Greek_tau	0x07f4
#define XK_Greek_upsilon	0x07f5
#define XK_Greek_phi	0x07f6
#define XK_Greek_chi	0x07f7
#define XK_Greek_psi	0x07f8
#define XK_Greek_omega	0x07f9
#define XK_leftradical	0x08a1
#define XK_topleftradical	0x08a2
#define XK_horizconnector	0x08a3
#define XK_topintegral	0x08a4
#define XK_botintegral	0x08a5
#define XK_vertconnector	0x08a6
#define XK_topleftsqbracket	0x08a7
#define XK_botleftsqbracket	0x08a8
#define XK_toprightsqbracket	0x08a9
#define XK_botrightsqbracket	0x08aa
#define XK_topleftparens	0x08ab
#define XK_botleftparens	0x08ac
#define XK_toprightparens	0x08ad
#define XK_botrightparens	0x08ae
#define XK_leftmiddlecurlybrace	0x08af
#define XK_rightmiddlecurlybrace	0x08b0
#define XK_topleftsummation	0x08b1
#define XK_botleftsummation	0x08b2
#define XK_topvertsummationconnector	0x08b3
#define XK_botvertsummationconnector	0x08b4
#define XK_toprightsummation	0x08b5
#define XK_botrightsummation	0x08b6
#define XK_rightmiddlesummation	0x08b7
#define XK_lessthanequal	0x08bc
#define XK_notequal	0x08bd
#define XK_greaterthanequal	0x08be
#define XK_integral	0x08bf
#define XK_therefore	0x08c0
#define XK_variation	0x08c1
#define XK_infinity	0x08c2
#define XK_nabla	0x08c5
#define XK_approximate	0x08c8
#define XK_similarequal	0x08c9
#define XK_ifonlyif	0x08cd
#define XK_implies	0x08ce
#define XK_identical	0x08cf
#define XK_radical	0x08d6
#define XK_includedin	0x08da
#define XK_includes	0x08db
#define XK_intersection	0x08dc
#define XK_union	0x08dd
#define XK_logicaland	0x08de
#define XK_logicalor	0x08df
#define XK_partialderivative	0x08ef
#define XK_function	0x08f6
#define XK_leftarrow	0x08fb
#define XK_uparrow	0x08fc
#define XK_rightarrow	0x08fd
#define XK_downarrow	0x08fe
#define XK_blank	0x09df
#define XK_soliddiamond	0x09e0
#define XK_checkerboard	0x09e1
#define XK_ht	0x09e2
#define XK_ff	0x09e3
#define XK_cr	0x09e4
#define XK_lf	0x09e5
#define XK_nl	0x09e8
#define XK_vt	0x09e9
#define XK_lowrightcorner	0x09ea
#define XK_uprightcorner	0x09eb
#define XK_upleftcorner	0x09ec
#define XK_lowleftcorner	0x09ed
#define XK_crossinglines	0x09ee
#define XK_horizlinescan1	0x09ef
#define XK_horizlinescan3	0x09f0
#define XK_horizlinescan5	0x09f1
#define XK_horizlinescan7	0x09f2
#define XK_horizlinescan9	0x09f3
#define XK_leftt	0x09f4
#define XK_rightt	0x09f5
#define XK_bott	0x09f6
#define XK_topt	0x09f7
#define XK_vertbar	0x09f8
#define XK_emspace	0x0aa1
#define XK_enspace	0x0aa2
#define XK_em3space	0x0aa3
#define XK_em4space	0x0aa4
#define XK_digitspace	0x0aa5
#define XK_punctspace	0x0aa6
#define XK_thinspace	0x0aa7
#define XK_hairspace	0x0aa8
#define XK_emdash	0x0aa9
#define XK_endash	0x0aaa
#define XK_signifblank	0x0aac
#define XK_ellipsis	0x0aae
#define XK_doubbaselinedot	0x0aaf
#define XK_onethird	0x0ab0
#define XK_twothirds	0x0ab1
#define XK_onefifth	0x0ab2
#define XK_twofifths	0x0ab3
#define XK_threefifths	0x0ab4
#define XK_fourfifths	0x0ab5
#define XK_onesixth	0x0ab6
#define XK_fivesixths	0x0ab7
#define XK_careof	0x0ab8
#define XK_figdash	0x0abb
#define XK_leftanglebracket	0x0abc
#define XK_decimalpoint	0x0abd
#define XK_rightanglebracket	0x0abe
#define XK_marker	0x0abf
#define XK_oneeighth	0x0ac3
#define XK_threeeighths	0x0ac4
#define XK_fiveeighths	0x0ac5
#define XK_seveneighths	0x0ac6
#define XK_trademark	0x0ac9
#define XK_signaturemark	0x0aca
#define XK_trademarkincircle	0x0acb
#define XK_leftopentriangle	0x0acc
#define XK_rightopentriangle	0x0acd
#define XK_emopencircle	0x0ace
#define XK_emopenrectangle	0x0acf
#define XK_leftsinglequotemark	0x0ad0
#define XK_rightsinglequotemark	0x0ad1
#define XK_leftdoublequotemark	0x0ad2
#define XK_rightdoublequotemark	0x0ad3
#define XK_prescription	0x0ad4
#define XK_minutes	0x0ad6
#define XK_seconds	0x0ad7
#define XK_latincross	0x0ad9
#define XK_hexagram	0x0ada
#define XK_filledrectbullet	0x0adb
#define XK_filledlefttribullet	0x0adc
#define XK_filledrighttribullet	0x0add
#define XK_emfilledcircle	0x0ade
#define XK_emfilledrect	0x0adf
#define XK_enopencircbullet	0x0ae0
#define XK_enopensquarebullet	0x0ae1
#define XK_openrectbullet	0x0ae2
#define XK_opentribulletup	0x0ae3
#define XK_opentribulletdown	0x0ae4
#define XK_openstar	0x0ae5
#define XK_enfilledcircbullet	0x0ae6
#define XK_enfilledsqbullet	0x0ae7
#define XK_filledtribulletup	0x0ae8
#define XK_filledtribulletdown	0x0ae9
#define XK_leftpointer	0x0aea
#define XK_rightpointer	0x0aeb
#define XK_club	0x0aec
#define XK_diamond	0x0aed
#define XK_heart	0x0aee
#define XK_maltesecross	0x0af0
#define XK_dagger	0x0af1
#define XK_doubledagger	0x0af2
#define XK_checkmark	0x0af3
#define XK_ballotcross	0x0af4
#define XK_musicalsharp	0x0af5
#define XK_musicalflat	0x0af6
#define XK_malesymbol	0x0af7
#define XK_femalesymbol	0x0af8
#define XK_telephone	0x0af9
#define XK_telephonerecorder	0x0afa
#define XK_phonographcopyright	0x0afb
#define XK_caret	0x0afc
#define XK_singlelowquotemark	0x0afd
#define XK_doublelowquotemark	0x0afe
#define XK_cursor	0x0aff
#define XK_leftcaret	0x0ba3
#define XK_rightcaret	0x0ba6
#define XK_downcaret	0x0ba8
#define XK_upcaret	0x0ba9
#define XK_overbar	0x0bc0
#define XK_downtack	0x0bc2
#define XK_upshoe	0x0bc3
#define XK_downstile	0x0bc4
#define XK_underbar	0x0bc6
#define XK_jot	0x0bca
#define XK_quad	0x0bcc
#define XK_uptack	0x0bce
#define XK_circle	0x0bcf
#define XK_upstile	0x0bd3
#define XK_downshoe	0x0bd6
#define XK_rightshoe	0x0bd8
#define XK_leftshoe	0x0bda
#define XK_lefttack	0x0bdc
#define XK_righttack	0x0bfc
#define XK_hebrew_doublelowline	0x0cdf
#define XK_hebrew_aleph	0x0ce0
#define XK_hebrew_bet	0x0ce1
#define XK_hebrew_beth	0x0ce1
#define XK_hebrew_gimel	0x0ce2
#define XK_hebrew_gimmel	0x0ce2
#define XK_hebrew_dalet	0x0ce3
#define XK_hebrew_daleth	0x0ce3
#define XK_hebrew_he	0x0ce4
#define XK_hebrew_waw	0x0ce5
#define XK_hebrew_zain	0x0ce6
#define XK_hebrew_zayin	0x0ce6
#define XK_hebrew_chet	0x0ce7
#define XK_hebrew_het	0x0ce7
#define XK_hebrew_tet	0x0ce8
#define XK_hebrew_teth	0x0ce8
#define XK_hebrew_yod	0x0ce9
#define XK_hebrew_finalkaph	0x0cea
#define XK_hebrew_kaph	0x0ceb
#define XK_hebrew_lamed	0x0cec
#define XK_hebrew_finalmem	0x0ced
#define XK_hebrew_mem	0x0cee
#define XK_hebrew_finalnun	0x0cef
#define XK_hebrew_nun	0x0cf0
#define XK_hebrew_samech	0x0cf1
#define XK_hebrew_samekh	0x0cf1
#define XK_hebrew_ayin	0x0cf2
#define XK_hebrew_finalpe	0x0cf3
#define XK_hebrew_pe	0x0cf4
#define XK_hebrew_finalzade	0x0cf5
#define XK_hebrew_finalzadi	0x0cf5
#define XK_hebrew_zade	0x0cf6
#define XK_hebrew_zadi	0x0cf6
#define XK_hebrew_kuf	0x0cf7
#define XK_hebrew_qoph	0x0cf7
#define XK_hebrew_resh	0x0cf8
#define XK_hebrew_shin	0x0cf9
#define XK_hebrew_taf	0x0cfa
#define XK_hebrew_taw	0x0cfa
#define XK_Thai_kokai	0x0da1
#define XK_Thai_khokhai	0x0da2
#define XK_Thai_khokhuat	0x0da3
#define XK_Thai_khokhwai	0x0da4
#define XK_Thai_khokhon	0x0da5
#define XK_Thai_khorakhang	0x0da6
#define XK_Thai_ngongu	0x0da7
#define XK_Thai_chochan	0x0da8
#define XK_Thai_choching	0x0da9
#define XK_Thai_chochang	0x0daa
#define XK_Thai_soso	0x0dab
#define XK_Thai_chochoe	0x0dac
#define XK_Thai_yoying	0x0dad
#define XK_Thai_dochada	0x0dae
#define XK_Thai_topatak	0x0daf
#define XK_Thai_thothan	0x0db0
#define XK_Thai_thonangmontho	0x0db1
#define XK_Thai_thophuthao	0x0db2
#define XK_Thai_nonen	0x0db3
#define XK_Thai_dodek	0x0db4
#define XK_Thai_totao	0x0db5
#define XK_Thai_thothung	0x0db6
#define XK_Thai_thothahan	0x0db7
#define XK_Thai_thothong	0x0db8
#define XK_Thai_nonu	0x0db9
#define XK_Thai_bobaimai	0x0dba
#define XK_Thai_popla	0x0dbb
#define XK_Thai_phophung	0x0dbc
#define XK_Thai_fofa	0x0dbd
#define XK_Thai_phophan	0x0dbe
#define XK_Thai_fofan	0x0dbf
#define XK_Thai_phosamphao	0x0dc0
#define XK_Thai_moma	0x0dc1
#define XK_Thai_yoyak	0x0dc2
#define XK_Thai_rorua	0x0dc3
#define XK_Thai_ru	0x0dc4
#define XK_Thai_loling	0x0dc5
#define XK_Thai_lu	0x0dc6
#define XK_Thai_wowaen	0x0dc7
#define XK_Thai_sosala	0x0dc8
#define XK_Thai_sorusi	0x0dc9
#define XK_Thai_sosua	0x0dca
#define XK_Thai_hohip	0x0dcb
#define XK_Thai_lochula	0x0dcc
#define XK_Thai_oang	0x0dcd
#define XK_Thai_honokhuk	0x0dce
#define XK_Thai_paiyannoi	0x0dcf
#define XK_Thai_saraa	0x0dd0
#define XK_Thai_maihanakat	0x0dd1
#define XK_Thai_saraaa	0x0dd2
#define XK_Thai_saraam	0x0dd3
#define XK_Thai_sarai	0x0dd4
#define XK_Thai_saraii	0x0dd5
#define XK_Thai_saraue	0x0dd6
#define XK_Thai_sarauee	0x0dd7
#define XK_Thai_sarau	0x0dd8
#define XK_Thai_sarauu	0x0dd9
#define XK_Thai_phinthu	0x0dda
#define XK_Thai_maihanakat_maitho	0x0dde
#define XK_Thai_baht	0x0ddf
#define XK_Thai_sarae	0x0de0
#define XK_Thai_saraae	0x0de1
#define XK_Thai_sarao	0x0de2
#define XK_Thai_saraaimaimuan	0x0de3
#define XK_Thai_saraaimaimalai	0x0de4
#define XK_Thai_lakkhangyao	0x0de5
#define XK_Thai_maiyamok	0x0de6
#define XK_Thai_maitaikhu	0x0de7
#define XK_Thai_maiek	0x0de8
#define XK_Thai_maitho	0x0de9
#define XK_Thai_maitri	0x0dea
#define XK_Thai_maichattawa	0x0deb
#define XK_Thai_thanthakhat	0x0dec
#define XK_Thai_nikhahit	0x0ded
#define XK_Thai_leksun	0x0df0
#define XK_Thai_leknung	0x0df1
#define XK_Thai_leksong	0x0df2
#define XK_Thai_leksam	0x0df3
#define XK_Thai_leksi	0x0df4
#define XK_Thai_lekha	0x0df5
#define XK_Thai_lekhok	0x0df6
#define XK_Thai_lekchet	0x0df7
#define XK_Thai_lekpaet	0x0df8
#define XK_Thai_lekkao	0x0df9
#define XK_Hangul_Kiyeog	0x0ea1
#define XK_Hangul_SsangKiyeog	0x0ea2
#define XK_Hangul_KiyeogSios	0x0ea3
#define XK_Hangul_Nieun	0x0ea4
#define XK_Hangul_NieunJieuj	0x0ea5
#define XK_Hangul_NieunHieuh	0x0ea6
#define XK_Hangul_Dikeud	0x0ea7
#define XK_Hangul_SsangDikeud	0x0ea8
#define XK_Hangul_Rieul	0x0ea9
#define XK_Hangul_RieulKiyeog	0x0eaa
#define XK_Hangul_RieulMieum	0x0eab
#define XK_Hangul_RieulPieub	0x0eac
#define XK_Hangul_RieulSios	0x0ead
#define XK_Hangul_RieulTieut	0x0eae
#define XK_Hangul_RieulPhieuf	0x0eaf
#define XK_Hangul_RieulHieuh	0x0eb0
#define XK_Hangul_Mieum	0x0eb1
#define XK_Hangul_Pieub	0x0eb2
#define XK_Hangul_SsangPieub	0x0eb3
#define XK_Hangul_PieubSios	0x0eb4
#define XK_Hangul_Sios	0x0eb5
#define XK_Hangul_SsangSios	0x0eb6
#define XK_Hangul_Ieung	0x0eb7
#define XK_Hangul_Jieuj	0x0eb8
#define XK_Hangul_SsangJieuj	0x0eb9
#define XK_Hangul_Cieuc	0x0eba
#define XK_Hangul_Khieuq	0x0ebb
#define XK_Hangul_Tieut	0x0ebc
#define XK_Hangul_Phieuf	0x0ebd
#define XK_Hangul_Hieuh	0x0ebe
#define XK_Hangul_A	0x0ebf
#define XK_Hangul_AE	0x0ec0
#define XK_Hangul_YA	0x0ec1
#define XK_Hangul_YAE	0x0ec2
#define XK_Hangul_EO	0x0ec3
#define XK_Hangul_E	0x0ec4
#define XK_Hangul_YEO	0x0ec5
#define XK_Hangul_YE	0x0ec6
#define XK_Hangul_O	0x0ec7
#define XK_Hangul_WA	0x0ec8
#define XK_Hangul_WAE	0x0ec9
#define XK_Hangul_OE	0x0eca
#define XK_Hangul_YO	0x0ecb
#define XK_Hangul_U	0x0ecc
#define XK_Hangul_WEO	0x0ecd
#define XK_Hangul_WE	0x0ece
#define XK_Hangul_WI	0x0ecf
#define XK_Hangul_YU	0x0ed0
#define XK_Hangul_EU	0x0ed1
#define XK_Hangul_YI	0x0ed2
#define XK_Hangul_I	0x0ed3
#define XK_Hangul_J_Kiyeog	0x0ed4
#define XK_Hangul_J_SsangKiyeog	0x0ed5
#define XK_Hangul_J_KiyeogSios	0x0ed6
#define XK_Hangul_J_Nieun	0x0ed7
#define XK_Hangul_J_NieunJieuj	0x0ed8
#define XK_Hangul_J_NieunHieuh	0x0ed9
#define XK_Hangul_J_Dikeud	0x0eda
#define XK_Hangul_J_Rieul	0x0edb
#define XK_Hangul_J_RieulKiyeog	0x0edc
#define XK_Hangul_J_RieulMieum	0x0edd
#define XK_Hangul_J_RieulPieub	0x0ede
#define XK_Hangul_J_RieulSios	0x0edf
#define XK_Hangul_J_RieulTieut	0x0ee0
#define XK_Hangul_J_RieulPhieuf	0x0ee1
#define XK_Hangul_J_RieulHieuh	0x0ee2
#define XK_Hangul_J_Mieum	0x0ee3
#define XK_Hangul_J_Pieub	0x0ee4
#define XK_Hangul_J_PieubSios	0x0ee5
#define XK_Hangul_J_Sios	0x0ee6
#define XK_Hangul_J_SsangSios	0x0ee7
#define XK_Hangul_J_Ieung	0x0ee8
#define XK_Hangul_J_Jieuj	0x0ee9
#define XK_Hangul_J_Cieuc	0x0eea
#define XK_Hangul_J_Khieuq	0x0eeb
#define XK_Hangul_J_Tieut	0x0eec
#define XK_Hangul_J_Phieuf	0x0eed
#define XK_Hangul_J_Hieuh	0x0eee
#define XK_Hangul_RieulYeorinHieuh	0x0eef
#define XK_Hangul_SunkyeongeumMieum	0x0ef0
#define XK_Hangul_SunkyeongeumPieub	0x0ef1
#define XK_Hangul_PanSios	0x0ef2
#define XK_Hangul_KkogjiDalrinIeung	0x0ef3
#define XK_Hangul_SunkyeongeumPhieuf	0x0ef4
#define XK_Hangul_YeorinHieuh	0x0ef5
#define XK_Hangul_AraeA	0x0ef6
#define XK_Hangul_AraeAE	0x0ef7
#define XK_Hangul_J_PanSios	0x0ef8
#define XK_Hangul_J_KkogjiDalrinIeung	0x0ef9
#define XK_Hangul_J_YeorinHieuh	0x0efa
#define XK_Korean_Won	0x0eff
#define XK_Ibreve	0x100012c
#define XK_ibreve	0x100012d
#define XK_Wcircumflex	0x1000174
#define XK_wcircumflex	0x1000175
#define XK_Ycircumflex	0x1000176
#define XK_ycircumflex	0x1000177
#define XK_SCHWA	0x100018f
#define XK_Obarred	0x100019f
#define XK_Ohorn	0x10001a0
#define XK_ohorn	0x10001a1
#define XK_Uhorn	0x10001af
#define XK_uhorn	0x10001b0
#define XK_Zstroke	0x10001b5
#define XK_zstroke	0x10001b6
#define XK_Ocaron	0x10001d1
#define XK_ocaron	0x10001d2
#define XK_Gcaron	0x10001e6
#define XK_gcaron	0x10001e7
#define XK_schwa	0x1000259
#define XK_obarred	0x1000275
#define XK_Cyrillic_GHE_bar	0x1000492
#define XK_Cyrillic_ghe_bar	0x1000493
#define XK_Cyrillic_ZHE_descender	0x1000496
#define XK_Cyrillic_zhe_descender	0x1000497
#define XK_Cyrillic_KA_descender	0x100049a
#define XK_Cyrillic_ka_descender	0x100049b
#define XK_Cyrillic_KA_vertstroke	0x100049c
#define XK_Cyrillic_ka_vertstroke	0x100049d
#define XK_Cyrillic_EN_descender	0x10004a2
#define XK_Cyrillic_en_descender	0x10004a3
#define XK_Cyrillic_U_straight	0x10004ae
#define XK_Cyrillic_u_straight	0x10004af
#define XK_Cyrillic_U_straight_bar	0x10004b0
#define XK_Cyrillic_u_straight_bar	0x10004b1
#define XK_Cyrillic_HA_descender	0x10004b2
#define XK_Cyrillic_ha_descender	0x10004b3
#define XK_Cyrillic_CHE_descender	0x10004b6
#define XK_Cyrillic_che_descender	0x10004b7
#define XK_Cyrillic_CHE_vertstroke	0x10004b8
#define XK_Cyrillic_che_vertstroke	0x10004b9
#define XK_Cyrillic_SHHA	0x10004ba
#define XK_Cyrillic_shha	0x10004bb
#define XK_Cyrillic_SCHWA	0x10004d8
#define XK_Cyrillic_schwa	0x10004d9
#define XK_Cyrillic_I_macron	0x10004e2
#define XK_Cyrillic_i_macron	0x10004e3
#define XK_Cyrillic_O_bar	0x10004e8
#define XK_Cyrillic_o_bar	0x10004e9
#define XK_Cyrillic_U_macron	0x10004ee
#define XK_Cyrillic_u_macron	0x10004ef
#define XK_Armenian_AYB	0x1000531
#define XK_Armenian_BEN	0x1000532
#define XK_Armenian_GIM	0x1000533
#define XK_Armenian_DA	0x1000534
#define XK_Armenian_YECH	0x1000535
#define XK_Armenian_ZA	0x1000536
#define XK_Armenian_E	0x1000537
#define XK_Armenian_AT	0x1000538
#define XK_Armenian_TO	0x1000539
#define XK_Armenian_ZHE	0x100053a
#define XK_Armenian_INI	0x100053b
#define XK_Armenian_LYUN	0x100053c
#define XK_Armenian_KHE	0x100053d
#define XK_Armenian_TSA	0x100053e
#define XK_Armenian_KEN	0x100053f
#define XK_Armenian_HO	0x1000540
#define XK_Armenian_DZA	0x1000541
#define XK_Armenian_GHAT	0x1000542
#define XK_Armenian_TCHE	0x1000543
#define XK_Armenian_MEN	0x1000544
#define XK_Armenian_HI	0x1000545
#define XK_Armenian_NU	0x1000546
#define XK_Armenian_SHA	0x1000547
#define XK_Armenian_VO	0x1000548
#define XK_Armenian_CHA	0x1000549
#define XK_Armenian_PE	0x100054a
#define XK_Armenian_JE	0x100054b
#define XK_Armenian_RA	0x100054c
#define XK_Armenian_SE	0x100054d
#define XK_Armenian_VEV	0x100054e
#define XK_Armenian_TYUN	0x100054f
#define XK_Armenian_RE	0x1000550
#define XK_Armenian_TSO	0x1000551
#define XK_Armenian_VYUN	0x1000552
#define XK_Armenian_PYUR	0x1000553
#define XK_Armenian_KE	0x1000554
#define XK_Armenian_O	0x1000555
#define XK_Armenian_FE	0x1000556
#define XK_Armenian_apostrophe	0x100055a
#define XK_Armenian_accent	0x100055b
#define XK_Armenian_shesht	0x100055b
#define XK_Armenian_amanak	0x100055c
#define XK_Armenian_exclam	0x100055c
#define XK_Armenian_but	0x100055d
#define XK_Armenian_separation_mark	0x100055d
#define XK_Armenian_paruyk	0x100055e
#define XK_Armenian_question	0x100055e
#define XK_Armenian_ayb	0x1000561
#define XK_Armenian_ben	0x1000562
#define XK_Armenian_gim	0x1000563
#define XK_Armenian_da	0x1000564
#define XK_Armenian_yech	0x1000565
#define XK_Armenian_za	0x1000566
#define XK_Armenian_e	0x1000567
#define XK_Armenian_at	0x1000568
#define XK_Armenian_to	0x1000569
#define XK_Armenian_zhe	0x100056a
#define XK_Armenian_ini	0x100056b
#define XK_Armenian_lyun	0x100056c
#define XK_Armenian_khe	0x100056d
#define XK_Armenian_tsa	0x100056e
#define XK_Armenian_ken	0x100056f
#define XK_Armenian_ho	0x1000570
#define XK_Armenian_dza	0x1000571
#define XK_Armenian_ghat	0x1000572
#define XK_Armenian_tche	0x1000573
#define XK_Armenian_men	0x1000574
#define XK_Armenian_hi	0x1000575
#define XK_Armenian_nu	0x1000576
#define XK_Armenian_sha	0x1000577
#define XK_Armenian_vo	0x1000578
#define XK_Armenian_cha	0x1000579
#define XK_Armenian_pe	0x100057a
#define XK_Armenian_je	0x100057b
#define XK_Armenian_ra	0x100057c
#define XK_Armenian_se	0x100057d
#define XK_Armenian_vev	0x100057e
#define XK_Armenian_tyun	0x100057f
#define XK_Armenian_re	0x1000580
#define XK_Armenian_tso	0x1000581
#define XK_Armenian_vyun	0x1000582
#define XK_Armenian_pyur	0x1000583
#define XK_Armenian_ke	0x1000584
#define XK_Armenian_o	0x1000585
#define XK_Armenian_fe	0x1000586
#define XK_Armenian_ligature_ew	0x1000587
#define XK_Armenian_full_stop	0x1000589
#define XK_Armenian_verjaket	0x1000589
#define XK_Armenian_hyphen	0x100058a
#define XK_Armenian_yentamna	0x100058a
#define XK_Arabic_madda_above	0x1000653
#define XK_Arabic_hamza_above	0x1000654
#define XK_Arabic_hamza_below	0x1000655
#define XK_Arabic_0	0x1000660
#define XK_Arabic_1	0x1000661
#define XK_Arabic_2	0x1000662
#define XK_Arabic_3	0x1000663
#define XK_Arabic_4	0x1000664
#define XK_Arabic_5	0x1000665
#define XK_Arabic_6	0x1000666
#define XK_Arabic_7	0x1000667
#define XK_Arabic_8	0x1000668
#define XK_Arabic_9	0x1000669
#define XK_Arabic_percent	0x100066a
#define XK_Arabic_superscript_alef	0x1000670
#define XK_Arabic_tteh	0x1000679
#define XK_Arabic_peh	0x100067e
#define XK_Arabic_tcheh	0x1000686
#define XK_Arabic_ddal	0x1000688
#define XK_Arabic_rreh	0x1000691
#define XK_Arabic_jeh	0x1000698
#define XK_Arabic_veh	0x10006a4
#define XK_Arabic_keheh	0x10006a9
#define XK_Arabic_gaf	0x10006af
#define XK_Arabic_noon_ghunna	0x10006ba
#define XK_Arabic_heh_doachashmee	0x10006be
#define XK_Arabic_heh_goal	0x10006c1
#define XK_Arabic_farsi_yeh	0x10006cc
#define XK_Farsi_yeh	0x10006cc
#define XK_Arabic_yeh_baree	0x10006d2
#define XK_Arabic_fullstop	0x10006d4
#define XK_Farsi_0	0x10006f0
#define XK_Farsi_1	0x10006f1
#define XK_Farsi_2	0x10006f2
#define XK_Farsi_3	0x10006f3
#define XK_Farsi_4	0x10006f4
#define XK_Farsi_5	0x10006f5
#define XK_Farsi_6	0x10006f6
#define XK_Farsi_7	0x10006f7
#define XK_Farsi_8	0x10006f8
#define XK_Farsi_9	0x10006f9
#define XK_Georgian_an	0x10010d0
#define XK_Georgian_ban	0x10010d1
#define XK_Georgian_gan	0x10010d2
#define XK_Georgian_don	0x10010d3
#define XK_Georgian_en	0x10010d4
#define XK_Georgian_vin	0x10010d5
#define XK_Georgian_zen	0x10010d6
#define XK_Georgian_tan	0x10010d7
#define XK_Georgian_in	0x10010d8
#define XK_Georgian_kan	0x10010d9
#define XK_Georgian_las	0x10010da
#define XK_Georgian_man	0x10010db
#define XK_Georgian_nar	0x10010dc
#define XK_Georgian_on	0x10010dd
#define XK_Georgian_par	0x10010de
#define XK_Georgian_zhar	0x10010df
#define XK_Georgian_rae	0x10010e0
#define XK_Georgian_san	0x10010e1
#define XK_Georgian_tar	0x10010e2
#define XK_Georgian_un	0x10010e3
#define XK_Georgian_phar	0x10010e4
#define XK_Georgian_khar	0x10010e5
#define XK_Georgian_ghan	0x10010e6
#define XK_Georgian_qar	0x10010e7
#define XK_Georgian_shin	0x10010e8
#define XK_Georgian_chin	0x10010e9
#define XK_Georgian_can	0x10010ea
#define XK_Georgian_jil	0x10010eb
#define XK_Georgian_cil	0x10010ec
#define XK_Georgian_char	0x10010ed
#define XK_Georgian_xan	0x10010ee
#define XK_Georgian_jhan	0x10010ef
#define XK_Georgian_hae	0x10010f0
#define XK_Georgian_he	0x10010f1
#define XK_Georgian_hie	0x10010f2
#define XK_Georgian_we	0x10010f3
#define XK_Georgian_har	0x10010f4
#define XK_Georgian_hoe	0x10010f5
#define XK_Georgian_fi	0x10010f6
#define XK_Babovedot	0x1001e02
#define XK_babovedot	0x1001e03
#define XK_Dabovedot	0x1001e0a
#define XK_dabovedot	0x1001e0b
#define XK_Fabovedot	0x1001e1e
#define XK_fabovedot	0x1001e1f
#define XK_Lbelowdot	0x1001e36
#define XK_lbelowdot	0x1001e37
#define XK_Mabovedot	0x1001e40
#define XK_mabovedot	0x1001e41
#define XK_Pabovedot	0x1001e56
#define XK_pabovedot	0x1001e57
#define XK_Sabovedot	0x1001e60
#define XK_sabovedot	0x1001e61
#define XK_Tabovedot	0x1001e6a
#define XK_tabovedot	0x1001e6b
#define XK_Wgrave	0x1001e80
#define XK_wgrave	0x1001e81
#define XK_Wacute	0x1001e82
#define XK_wacute	0x1001e83
#define XK_Wdiaeresis	0x1001e84
#define XK_wdiaeresis	0x1001e85
#define XK_Xabovedot	0x1001e8a
#define XK_xabovedot	0x1001e8b
#define XK_Abelowdot	0x1001ea0
#define XK_abelowdot	0x1001ea1
#define XK_Ahook	0x1001ea2
#define XK_ahook	0x1001ea3
#define XK_Acircumflexacute	0x1001ea4
#define XK_acircumflexacute	0x1001ea5
#define XK_Acircumflexgrave	0x1001ea6
#define XK_acircumflexgrave	0x1001ea7
#define XK_Acircumflexhook	0x1001ea8
#define XK_acircumflexhook	0x1001ea9
#define XK_Acircumflextilde	0x1001eaa
#define XK_acircumflextilde	0x1001eab
#define XK_Acircumflexbelowdot	0x1001eac
#define XK_acircumflexbelowdot	0x1001ead
#define XK_Abreveacute	0x1001eae
#define XK_abreveacute	0x1001eaf
#define XK_Abrevegrave	0x1001eb0
#define XK_abrevegrave	0x1001eb1
#define XK_Abrevehook	0x1001eb2
#define XK_abrevehook	0x1001eb3
#define XK_Abrevetilde	0x1001eb4
#define XK_abrevetilde	0x1001eb5
#define XK_Abrevebelowdot	0x1001eb6
#define XK_abrevebelowdot	0x1001eb7
#define XK_Ebelowdot	0x1001eb8
#define XK_ebelowdot	0x1001eb9
#define XK_Ehook	0x1001eba
#define XK_ehook	0x1001ebb
#define XK_Etilde	0x1001ebc
#define XK_etilde	0x1001ebd
#define XK_Ecircumflexacute	0x1001ebe
#define XK_ecircumflexacute	0x1001ebf
#define XK_Ecircumflexgrave	0x1001ec0
#define XK_ecircumflexgrave	0x1001ec1
#define XK_Ecircumflexhook	0x1001ec2
#define XK_ecircumflexhook	0x1001ec3
#define XK_Ecircumflextilde	0x1001ec4
#define XK_ecircumflextilde	0x1001ec5
#define XK_Ecircumflexbelowdot	0x1001ec6
#define XK_ecircumflexbelowdot	0x1001ec7
#define XK_Ihook	0x1001ec8
#define XK_ihook	0x1001ec9
#define XK_Ibelowdot	0x1001eca
#define XK_ibelowdot	0x1001ecb
#define XK_Obelowdot	0x1001ecc
#define XK_obelowdot	0x1001ecd
#define XK_Ohook	0x1001ece
#define XK_ohook	0x1001ecf
#define XK_Ocircumflexacute	0x1001ed0
#define XK_ocircumflexacute	0x1001ed1
#define XK_Ocircumflexgrave	0x1001ed2
#define XK_ocircumflexgrave	0x1001ed3
#define XK_Ocircumflexhook	0x1001ed4
#define XK_ocircumflexhook	0x1001ed5
#define XK_Ocircumflextilde	0x1001ed6
#define XK_ocircumflextilde	0x1001ed7
#define XK_Ocircumflexbelowdot	0x1001ed8
#define XK_ocircumflexbelowdot	0x1001ed9
#define XK_Ohornacute	0x1001eda
#define XK_ohornacute	0x1001edb
#define XK_Ohorngrave	0x1001edc
#define XK_ohorngrave	0x1001edd
#define XK_Ohornhook	0x1001ede
#define XK_ohornhook	0x1001edf
#define XK_Ohorntilde	0x1001ee0
#define XK_ohorntilde	0x1001ee1
#define XK_Ohornbelowdot	0x1001ee2
#define XK_ohornbelowdot	0x1001ee3
#define XK_Ubelowdot	0x1001ee4
#define XK_ubelowdot	0x1001ee5
#define XK_Uhook	0x1001ee6
#define XK_uhook	0x1001ee7
#define XK_Uhornacute	0x1001ee8
#define XK_uhornacute	0x1001ee9
#define XK_Uhorngrave	0x1001eea
#define XK_uhorngrave	0x1001eeb
#define XK_Uhornhook	0x1001eec
#define XK_uhornhook	0x1001eed
#define XK_Uhorntilde	0x1001eee
#define XK_uhorntilde	0x1001eef
#define XK_Uhornbelowdot	0x1001ef0
#define XK_uhornbelowdot	0x1001ef1
#define XK_Ygrave	0x1001ef2
#define XK_ygrave	0x1001ef3
#define XK_Ybelowdot	0x1001ef4
#define XK_ybelowdot	0x1001ef5
#define XK_Yhook	0x1001ef6
#define XK_yhook	0x1001ef7
#define XK_Ytilde	0x1001ef8
#define XK_ytilde	0x1001ef9
#define XK_zerosuperior	0x1002070
#define XK_foursuperior	0x1002074
#define XK_fivesuperior	0x1002075
#define XK_sixsuperior	0x1002076
#define XK_sevensuperior	0x1002077
#define XK_eightsuperior	0x1002078
#define XK_ninesuperior	0x1002079
#define XK_zerosubscript	0x1002080
#define XK_onesubscript	0x1002081
#define XK_twosubscript	0x1002082
#define XK_threesubscript	0x1002083
#define XK_foursubscript	0x1002084
#define XK_fivesubscript	0x1002085
#define XK_sixsubscript	0x1002086
#define XK_sevensubscript	0x1002087
#define XK_eightsubscript	0x1002088
#define XK_ninesubscript	0x1002089
#define XK_EcuSign	0x10020a0
#define XK_ColonSign	0x10020a1
#define XK_CruzeiroSign	0x10020a2
#define XK_FFrancSign	0x10020a3
#define XK_LiraSign	0x10020a4
#define XK_MillSign	0x10020a5
#define XK_NairaSign	0x10020a6
#define XK_PesetaSign	0x10020a7
#define XK_RupeeSign	0x10020a8
#define XK_WonSign	0x10020a9
#define XK_NewSheqelSign	0x10020aa
#define XK_DongSign	0x10020ab
#define XK_partdifferential	0x1002202
#define XK_emptyset	0x1002205
#define XK_elementof	0x1002208
#define XK_notelementof	0x1002209
#define XK_containsas	0x100220B
#define XK_squareroot	0x100221A
#define XK_cuberoot	0x100221B
#define XK_fourthroot	0x100221C
#define XK_dintegral	0x100222C
#define XK_tintegral	0x100222D
#define XK_because	0x1002235
#define XK_notapproxeq	0x1002247
#define XK_approxeq	0x1002248
#define XK_notidentical	0x1002262
#define XK_stricteq	0x1002263
#define XK_braille_blank	0x1002800
#define XK_braille_dots_1	0x1002801
#define XK_braille_dots_2	0x1002802
#define XK_braille_dots_12	0x1002803
#define XK_braille_dots_3	0x1002804
#define XK_braille_dots_13	0x1002805
#define XK_braille_dots_23	0x1002806
#define XK_braille_dots_123	0x1002807
#define XK_braille_dots_4	0x1002808
#define XK_braille_dots_14	0x1002809
#define XK_braille_dots_24	0x100280a
#define XK_braille_dots_124	0x100280b
#define XK_braille_dots_34	0x100280c
#define XK_braille_dots_134	0x100280d
#define XK_braille_dots_234	0x100280e
#define XK_braille_dots_1234	0x100280f
#define XK_braille_dots_5	0x1002810
#define XK_braille_dots_15	0x1002811
#define XK_braille_dots_25	0x1002812
#define XK_braille_dots_125	0x1002813
#define XK_braille_dots_35	0x1002814
#define XK_braille_dots_135	0x1002815
#define XK_braille_dots_235	0x1002816
#define XK_braille_dots_1235	0x1002817
#define XK_braille_dots_45	0x1002818
#define XK_braille_dots_145	0x1002819
#define XK_braille_dots_245	0x100281a
#define XK_braille_dots_1245	0x100281b
#define XK_braille_dots_345	0x100281c
#define XK_braille_dots_1345	0x100281d
#define XK_braille_dots_2345	0x100281e
#define XK_braille_dots_12345	0x100281f
#define XK_braille_dots_6	0x1002820
#define XK_braille_dots_16	0x1002821
#define XK_braille_dots_26	0x1002822
#define XK_braille_dots_126	0x1002823
#define XK_braille_dots_36	0x1002824
#define XK_braille_dots_136	0x1002825
#define XK_braille_dots_236	0x1002826
#define XK_braille_dots_1236	0x1002827
#define XK_braille_dots_46	0x1002828
#define XK_braille_dots_146	0x1002829
#define XK_braille_dots_246	0x100282a
#define XK_braille_dots_1246	0x100282b
#define XK_braille_dots_346	0x100282c
#define XK_braille_dots_1346	0x100282d
#define XK_braille_dots_2346	0x100282e
#define XK_braille_dots_12346	0x100282f
#define XK_braille_dots_56	0x1002830
#define XK_braille_dots_156	0x1002831
#define XK_braille_dots_256	0x1002832
#define XK_braille_dots_1256	0x1002833
#define XK_braille_dots_356	0x1002834
#define XK_braille_dots_1356	0x1002835
#define XK_braille_dots_2356	0x1002836
#define XK_braille_dots_12356	0x1002837
#define XK_braille_dots_456	0x1002838
#define XK_braille_dots_1456	0x1002839
#define XK_braille_dots_2456	0x100283a
#define XK_braille_dots_12456	0x100283b
#define XK_braille_dots_3456	0x100283c
#define XK_braille_dots_13456	0x100283d
#define XK_braille_dots_23456	0x100283e
#define XK_braille_dots_123456	0x100283f
#define XK_braille_dots_7	0x1002840
#define XK_braille_dots_17	0x1002841
#define XK_braille_dots_27	0x1002842
#define XK_braille_dots_127	0x1002843
#define XK_braille_dots_37	0x1002844
#define XK_braille_dots_137	0x1002845
#define XK_braille_dots_237	0x1002846
#define XK_braille_dots_1237	0x1002847
#define XK_braille_dots_47	0x1002848
#define XK_braille_dots_147	0x1002849
#define XK_braille_dots_247	0x100284a
#define XK_braille_dots_1247	0x100284b
#define XK_braille_dots_347	0x100284c
#define XK_braille_dots_1347	0x100284d
#define XK_braille_dots_2347	0x100284e
#define XK_braille_dots_12347	0x100284f
#define XK_braille_dots_57	0x1002850
#define XK_braille_dots_157	0x1002851
#define XK_braille_dots_257	0x1002852
#define XK_braille_dots_1257	0x1002853
#define XK_braille_dots_357	0x1002854
#define XK_braille_dots_1357	0x1002855
#define XK_braille_dots_2357	0x1002856
#define XK_braille_dots_12357	0x1002857
#define XK_braille_dots_457	0x1002858
#define XK_braille_dots_1457	0x1002859
#define XK_braille_dots_2457	0x100285a
#define XK_braille_dots_12457	0x100285b
#define XK_braille_dots_3457	0x100285c
#define XK_braille_dots_13457	0x100285d
#define XK_braille_dots_23457	0x100285e
#define XK_braille_dots_123457	0x100285f
#define XK_braille_dots_67	0x1002860
#define XK_braille_dots_167	0x1002861
#define XK_braille_dots_267	0x1002862
#define XK_braille_dots_1267	0x1002863
#define XK_braille_dots_367	0x1002864
#define XK_braille_dots_1367	0x1002865
#define XK_braille_dots_2367	0x1002866
#define XK_braille_dots_12367	0x1002867
#define XK_braille_dots_467	0x1002868
#define XK_braille_dots_1467	0x1002869
#define XK_braille_dots_2467	0x100286a
#define XK_braille_dots_12467	0x100286b
#define XK_braille_dots_3467	0x100286c
#define XK_braille_dots_13467	0x100286d
#define XK_braille_dots_23467	0x100286e
#define XK_braille_dots_123467	0x100286f
#define XK_braille_dots_567	0x1002870
#define XK_braille_dots_1567	0x1002871
#define XK_braille_dots_2567	0x1002872
#define XK_braille_dots_12567	0x1002873
#define XK_braille_dots_3567	0x1002874
#define XK_braille_dots_13567	0x1002875
#define XK_braille_dots_23567	0x1002876
#define XK_braille_dots_123567	0x1002877
#define XK_braille_dots_4567	0x1002878
#define XK_braille_dots_14567	0x1002879
#define XK_braille_dots_24567	0x100287a
#define XK_braille_dots_124567	0x100287b
#define XK_braille_dots_34567	0x100287c
#define XK_braille_dots_134567	0x100287d
#define XK_braille_dots_234567	0x100287e
#define XK_braille_dots_1234567	0x100287f
#define XK_braille_dots_8	0x1002880
#define XK_braille_dots_18	0x1002881
#define XK_braille_dots_28	0x1002882
#define XK_braille_dots_128	0x1002883
#define XK_braille_dots_38	0x1002884
#define XK_braille_dots_138	0x1002885
#define XK_braille_dots_238	0x1002886
#define XK_braille_dots_1238	0x1002887
#define XK_braille_dots_48	0x1002888
#define XK_braille_dots_148	0x1002889
#define XK_braille_dots_248	0x100288a
#define XK_braille_dots_1248	0x100288b
#define XK_braille_dots_348	0x100288c
#define XK_braille_dots_1348	0x100288d
#define XK_braille_dots_2348	0x100288e
#define XK_braille_dots_12348	0x100288f
#define XK_braille_dots_58	0x1002890
#define XK_braille_dots_158	0x1002891
#define XK_braille_dots_258	0x1002892
#define XK_braille_dots_1258	0x1002893
#define XK_braille_dots_358	0x1002894
#define XK_braille_dots_1358	0x1002895
#define XK_braille_dots_2358	0x1002896
#define XK_braille_dots_12358	0x1002897
#define XK_braille_dots_458	0x1002898
#define XK_braille_dots_1458	0x1002899
#define XK_braille_dots_2458	0x100289a
#define XK_braille_dots_12458	0x100289b
#define XK_braille_dots_3458	0x100289c
#define XK_braille_dots_13458	0x100289d
#define XK_braille_dots_23458	0x100289e
#define XK_braille_dots_123458	0x100289f
#define XK_braille_dots_68	0x10028a0
#define XK_braille_dots_168	0x10028a1
#define XK_braille_dots_268	0x10028a2
#define XK_braille_dots_1268	0x10028a3
#define XK_braille_dots_368	0x10028a4
#define XK_braille_dots_1368	0x10028a5
#define XK_braille_dots_2368	0x10028a6
#define XK_braille_dots_12368	0x10028a7
#define XK_braille_dots_468	0x10028a8
#define XK_braille_dots_1468	0x10028a9
#define XK_braille_dots_2468	0x10028aa
#define XK_braille_dots_12468	0x10028ab
#define XK_braille_dots_3468	0x10028ac
#define XK_braille_dots_13468	0x10028ad
#define XK_braille_dots_23468	0x10028ae
#define XK_braille_dots_123468	0x10028af
#define XK_braille_dots_568	0x10028b0
#define XK_braille_dots_1568	0x10028b1
#define XK_braille_dots_2568	0x10028b2
#define XK_braille_dots_12568	0x10028b3
#define XK_braille_dots_3568	0x10028b4
#define XK_braille_dots_13568	0x10028b5
#define XK_braille_dots_23568	0x10028b6
#define XK_braille_dots_123568	0x10028b7
#define XK_braille_dots_4568	0x10028b8
#define XK_braille_dots_14568	0x10028b9
#define XK_braille_dots_24568	0x10028ba
#define XK_braille_dots_124568	0x10028bb
#define XK_braille_dots_34568	0x10028bc
#define XK_braille_dots_134568	0x10028bd
#define XK_braille_dots_234568	0x10028be
#define XK_braille_dots_1234568	0x10028bf
#define XK_braille_dots_78	0x10028c0
#define XK_braille_dots_178	0x10028c1
#define XK_braille_dots_278	0x10028c2
#define XK_braille_dots_1278	0x10028c3
#define XK_braille_dots_378	0x10028c4
#define XK_braille_dots_1378	0x10028c5
#define XK_braille_dots_2378	0x10028c6
#define XK_braille_dots_12378	0x10028c7
#define XK_braille_dots_478	0x10028c8
#define XK_braille_dots_1478	0x10028c9
#define XK_braille_dots_2478	0x10028ca
#define XK_braille_dots_12478	0x10028cb
#define XK_braille_dots_3478	0x10028cc
#define XK_braille_dots_13478	0x10028cd
#define XK_braille_dots_23478	0x10028ce
#define XK_braille_dots_123478	0x10028cf
#define XK_braille_dots_578	0x10028d0
#define XK_braille_dots_1578	0x10028d1
#define XK_braille_dots_2578	0x10028d2
#define XK_braille_dots_12578	0x10028d3
#define XK_braille_dots_3578	0x10028d4
#define XK_braille_dots_13578	0x10028d5
#define XK_braille_dots_23578	0x10028d6
#define XK_braille_dots_123578	0x10028d7
#define XK_braille_dots_4578	0x10028d8
#define XK_braille_dots_14578	0x10028d9
#define XK_braille_dots_24578	0x10028da
#define XK_braille_dots_124578	0x10028db
#define XK_braille_dots_34578	0x10028dc
#define XK_braille_dots_134578	0x10028dd
#define XK_braille_dots_234578	0x10028de
#define XK_braille_dots_1234578	0x10028df
#define XK_braille_dots_678	0x10028e0
#define XK_braille_dots_1678	0x10028e1
#define XK_braille_dots_2678	0x10028e2
#define XK_braille_dots_12678	0x10028e3
#define XK_braille_dots_3678	0x10028e4
#define XK_braille_dots_13678	0x10028e5
#define XK_braille_dots_23678	0x10028e6
#define XK_braille_dots_123678	0x10028e7
#define XK_braille_dots_4678	0x10028e8
#define XK_braille_dots_14678	0x10028e9
#define XK_braille_dots_24678	0x10028ea
#define XK_braille_dots_124678	0x10028eb
#define XK_braille_dots_34678	0x10028ec
#define XK_braille_dots_134678	0x10028ed
#define XK_braille_dots_234678	0x10028ee
#define XK_braille_dots_1234678	0x10028ef
#define XK_braille_dots_5678	0x10028f0
#define XK_braille_dots_15678	0x10028f1
#define XK_braille_dots_25678	0x10028f2
#define XK_braille_dots_125678	0x10028f3
#define XK_braille_dots_35678	0x10028f4
#define XK_braille_dots_135678	0x10028f5
#define XK_braille_dots_235678	0x10028f6
#define XK_braille_dots_1235678	0x10028f7
#define XK_braille_dots_45678	0x10028f8
#define XK_braille_dots_145678	0x10028f9
#define XK_braille_dots_245678	0x10028fa
#define XK_braille_dots_1245678	0x10028fb
#define XK_braille_dots_345678	0x10028fc
#define XK_braille_dots_1345678	0x10028fd
#define XK_braille_dots_2345678	0x10028fe
#define XK_braille_dots_12345678	0x10028ff
#define XK_OE	0x13bc
#define XK_oe	0x13bd
#define XK_Ydiaeresis	0x13be
#define XK_EuroSign	0x20ac
#define XK_ISO_Lock	0xfe01
#define XK_ISO_Level2_Latch	0xfe02
#define XK_ISO_Level3_Shift	0xfe03
#define XK_ISO_Level3_Latch	0xfe04
#define XK_ISO_Level3_Lock	0xfe05
#define XK_ISO_Group_Latch	0xfe06
#define XK_ISO_Group_Lock	0xfe07
#define XK_ISO_Next_Group	0xfe08
#define XK_ISO_Next_Group_Lock	0xfe09
#define XK_ISO_Prev_Group	0xfe0a
#define XK_ISO_Prev_Group_Lock	0xfe0b
#define XK_ISO_First_Group	0xfe0c
#define XK_ISO_First_Group_Lock	0xfe0d
#define XK_ISO_Last_Group	0xfe0e
#define XK_ISO_Last_Group_Lock	0xfe0f
#define XK_ISO_Level5_Shift	0xfe11
#define XK_ISO_Level5_Latch	0xfe12
#define XK_ISO_Level5_Lock	0xfe13
#define XK_ISO_Left_Tab	0xfe20
#define XK_ISO_Move_Line_Up	0xfe21
#define XK_ISO_Move_Line_Down	0xfe22
#define XK_ISO_Partial_Line_Up	0xfe23
#define XK_ISO_Partial_Line_Down	0xfe24
#define XK_ISO_Partial_Space_Left	0xfe25
#define XK_ISO_Partial_Space_Right	0xfe26
#define XK_ISO_Set_Margin_Left	0xfe27
#define XK_ISO_Set_Margin_Right	0xfe28
#define XK_ISO_Release_Margin_Left	0xfe29
#define XK_ISO_Release_Margin_Right	0xfe2a
#define XK_ISO_Release_Both_Margins	0xfe2b
#define XK_ISO_Fast_Cursor_Left	0xfe2c
#define XK_ISO_Fast_Cursor_Right	0xfe2d
#define XK_ISO_Fast_Cursor_Up	0xfe2e
#define XK_ISO_Fast_Cursor_Down	0xfe2f
#define XK_ISO_Continuous_Underline	0xfe30
#define XK_ISO_Discontinuous_Underline	0xfe31
#define XK_ISO_Emphasize	0xfe32
#define XK_ISO_Center_Object	0xfe33
#define XK_ISO_Enter	0xfe34
#define XK_dead_grave	0xfe50
#define XK_dead_acute	0xfe51
#define XK_dead_circumflex	0xfe52
#define XK_dead_tilde	0xfe53
#define XK_dead_macron	0xfe54
#define XK_dead_breve	0xfe55
#define XK_dead_abovedot	0xfe56
#define XK_dead_diaeresis	0xfe57
#define XK_dead_abovering	0xfe58
#define XK_dead_doubleacute	0xfe59
#define XK_dead_caron	0xfe5a
#define XK_dead_cedilla	0xfe5b
#define XK_dead_ogonek	0xfe5c
#define XK_dead_iota	0xfe5d
#define XK_dead_voiced_sound	0xfe5e
#define XK_dead_semivoiced_sound	0xfe5f
#define XK_dead_belowdot	0xfe60
#define XK_dead_hook	0xfe61
#define XK_dead_horn	0xfe62
#define XK_dead_stroke	0xfe63
#define XK_dead_abovecomma	0xfe64
#define XK_dead_psili	0xfe64
#define XK_dead_abovereversedcomma	0xfe65
#define XK_dead_dasia	0xfe66
#define XK_dead_belowring	0xfe67
#define XK_dead_belowmacron	0xfe68
#define XK_dead_belowcircumflex	0xfe69
#define XK_dead_belowtilde	0xfe6a
#define XK_dead_belowbreve	0xfe6b
#define XK_dead_belowdiaeresis	0xfe6c
#define XK_AccessX_Enable	0xfe70
#define XK_AccessX_Feedback_Enable	0xfe71
#define XK_RepeatKeys_Enable	0xfe72
#define XK_SlowKeys_Enable	0xfe73
#define XK_BounceKeys_Enable	0xfe74
#define XK_StickyKeys_Enable	0xfe75
#define XK_MouseKeys_Enable	0xfe76
#define XK_MouseKeys_Accel_Enable	0xfe77
#define XK_Overlay1_Enable	0xfe78
#define XK_Overlay2_Enable	0xfe79
#define XK_AudibleBell_Enable	0xfe7a
#define XK_First_Virtual_Screen	0xfed0
#define XK_Prev_Virtual_Screen	0xfed1
#define XK_Next_Virtual_Screen	0xfed2
#define XK_Last_Virtual_Screen	0xfed4
#define XK_Terminate_Server	0xfed5
#define XK_Pointer_Left	0xfee0
#define XK_Pointer_Right	0xfee1
#define XK_Pointer_Up	0xfee2
#define XK_Pointer_Down	0xfee3
#define XK_Pointer_UpLeft	0xfee4
#define XK_Pointer_UpRight	0xfee5
#define XK_Pointer_DownLeft	0xfee6
#define XK_Pointer_DownRight	0xfee7
#define XK_Pointer_Button_Dflt	0xfee8
#define XK_Pointer_Button1	0xfee9
#define XK_Pointer_Button2	0xfeea
#define XK_Pointer_Button3	0xfeeb
#define XK_Pointer_Button4	0xfeec
#define XK_Pointer_Button5	0xfeed
#define XK_Pointer_DblClick_Dflt	0xfeee
#define XK_Pointer_DblClick1	0xfeef
#define XK_Pointer_DblClick2	0xfef0
#define XK_Pointer_DblClick3	0xfef1
#define XK_Pointer_DblClick4	0xfef2
#define XK_Pointer_DblClick5	0xfef3
#define XK_Pointer_Drag_Dflt	0xfef4
#define XK_Pointer_Drag1	0xfef5
#define XK_Pointer_Drag2	0xfef6
#define XK_Pointer_Drag3	0xfef7
#define XK_Pointer_Drag4	0xfef8
#define XK_Pointer_EnableKeys	0xfef9
#define XK_Pointer_Accelerate	0xfefa
#define XK_Pointer_DfltBtnNext	0xfefb
#define XK_Pointer_DfltBtnPrev	0xfefc
#define XK_Pointer_Drag5	0xfefd
#define XK_BackSpace	0xff08
#define XK_Tab	0xff09
#define XK_Linefeed	0xff0a
#define XK_Clear	0xff0b
#define XK_Return	0xff0d
#define XK_Pause	0xff13
#define XK_Scroll_Lock	0xff14
#define XK_Sys_Req	0xff15
#define XK_Escape	0xff1b
#define XK_Multi_key	0xff20
#define XK_Kanji	0xff21
#define XK_Muhenkan	0xff22
#define XK_Henkan	0xff23
#define XK_Henkan_Mode	0xff23
#define XK_Romaji	0xff24
#define XK_Hiragana	0xff25
#define XK_Katakana	0xff26
#define XK_Hiragana_Katakana	0xff27
#define XK_Zenkaku	0xff28
#define XK_Hankaku	0xff29
#define XK_Zenkaku_Hankaku	0xff2a
#define XK_Touroku	0xff2b
#define XK_Massyo	0xff2c
#define XK_Kana_Lock	0xff2d
#define XK_Kana_Shift	0xff2e
#define XK_Eisu_Shift	0xff2f
#define XK_Eisu_toggle	0xff30
#define XK_Hangul	0xff31
#define XK_Hangul_Start	0xff32
#define XK_Hangul_End	0xff33
#define XK_Hangul_Hanja	0xff34
#define XK_Hangul_Jamo	0xff35
#define XK_Hangul_Romaja	0xff36
#define XK_Codeinput	0xff37
#define XK_Hangul_Codeinput	0xff37
#define XK_Kanji_Bangou	0xff37
#define XK_Hangul_Jeonja	0xff38
#define XK_Hangul_Banja	0xff39
#define XK_Hangul_PreHanja	0xff3a
#define XK_Hangul_PostHanja	0xff3b
#define XK_Hangul_SingleCandidate	0xff3c
#define XK_SingleCandidate	0xff3c
#define XK_Hangul_MultipleCandidate	0xff3d
#define XK_MultipleCandidate	0xff3d
#define XK_Zen_Koho	0xff3d
#define XK_Hangul_PreviousCandidate	0xff3e
#define XK_Mae_Koho	0xff3e
#define XK_PreviousCandidate	0xff3e
#define XK_Hangul_Special	0xff3f
#define XK_Home	0xff50
#define XK_Left	0xff51
#define XK_Up	0xff52
#define XK_Right	0xff53
#define XK_Down	0xff54
#define XK_Page_Up	0xff55
#define XK_Prior	0xff55
#define XK_Next	0xff56
#define XK_Page_Down	0xff56
#define XK_End	0xff57
#define XK_Begin	0xff58
#define XK_Select	0xff60
#define XK_Print	0xff61
#define XK_Execute	0xff62
#define XK_Insert	0xff63
#define XK_Undo	0xff65
#define XK_Redo	0xff66
#define XK_Menu	0xff67
#define XK_Find	0xff68
#define XK_Cancel	0xff69
#define XK_Help	0xff6a
#define XK_Break	0xff6b
#define XK_Arabic_switch	0xff7e
#define XK_Greek_switch	0xff7e
#define XK_Hangul_switch	0xff7e
#define XK_Hebrew_switch	0xff7e
#define XK_ISO_Group_Shift	0xff7e
#define XK_Mode_switch	0xff7e
#define XK_kana_switch	0xff7e
#define XK_script_switch	0xff7e
#define XK_Num_Lock	0xff7f
#define XK_KP_Space	0xff80
#define XK_KP_Tab	0xff89
#define XK_KP_Enter	0xff8d
#define XK_KP_F1	0xff91
#define XK_KP_F2	0xff92
#define XK_KP_F3	0xff93
#define XK_KP_F4	0xff94
#define XK_KP_Home	0xff95
#define XK_KP_Left	0xff96
#define XK_KP_Up	0xff97
#define XK_KP_Right	0xff98
#define XK_KP_Down	0xff99
#define XK_KP_Page_Up	0xff9a
#define XK_KP_Prior	0xff9a
#define XK_KP_Next	0xff9b
#define XK_KP_Page_Down	0xff9b
#define XK_KP_End	0xff9c
#define XK_KP_Begin	0xff9d
#define XK_KP_Insert	0xff9e
#define XK_KP_Delete	0xff9f
#define XK_KP_Multiply	0xffaa
#define XK_KP_Add	0xffab
#define XK_KP_Separator	0xffac
#define XK_KP_Subtract	0xffad
#define XK_KP_Decimal	0xffae
#define XK_KP_Divide	0xffaf
#define XK_KP_0	0xffb0
#define XK_KP_1	0xffb1
#define XK_KP_2	0xffb2
#define XK_KP_3	0xffb3
#define XK_KP_4	0xffb4
#define XK_KP_5	0xffb5
#define XK_KP_6	0xffb6
#define XK_KP_7	0xffb7
#define XK_KP_8	0xffb8
#define XK_KP_9	0xffb9
#define XK_KP_Equal	0xffbd
#define XK_F1	0xffbe
#define XK_F2	0xffbf
#define XK_F3	0xffc0
#define XK_F4	0xffc1
#define XK_F5	0xffc2
#define XK_F6	0xffc3
#define XK_F7	0xffc4
#define XK_F8	0xffc5
#define XK_F9	0xffc6
#define XK_F10	0xffc7
#define XK_F11	0xffc8
#define XK_L1	0xffc8
#define XK_F12	0xffc9
#define XK_L2	0xffc9
#define XK_F13	0xffca
#define XK_L3	0xffca
#define XK_F14	0xffcb
#define XK_L4	0xffcb
#define XK_F15	0xffcc
#define XK_L5	0xffcc
#define XK_F16	0xffcd
#define XK_L6	0xffcd
#define XK_F17	0xffce
#define XK_L7	0xffce
#define XK_F18	0xffcf
#define XK_L8	0xffcf
#define XK_F19	0xffd0
#define XK_L9	0xffd0
#define XK_F20	0xffd1
#define XK_L10	0xffd1
#define XK_F21	0xffd2
#define XK_R1	0xffd2
#define XK_F22	0xffd3
#define XK_R2	0xffd3
#define XK_F23	0xffd4
#define XK_R3	0xffd4
#define XK_F24	0xffd5
#define XK_R4	0xffd5
#define XK_F25	0xffd6
#define XK_R5	0xffd6
#define XK_F26	0xffd7
#define XK_R6	0xffd7
#define XK_F27	0xffd8
#define XK_R7	0xffd8
#define XK_F28	0xffd9
#define XK_R8	0xffd9
#define XK_F29	0xffda
#define XK_R9	0xffda
#define XK_F30	0xffdb
#define XK_R10	0xffdb
#define XK_F31	0xffdc
#define XK_R11	0xffdc
#define XK_F32	0xffdd
#define XK_R12	0xffdd
#define XK_F33	0xffde
#define XK_R13	0xffde
#define XK_F34	0xffdf
#define XK_R14	0xffdf
#define XK_F35	0xffe0
#define XK_R15	0xffe0
#define XK_Shift_L	0xffe1
#define XK_Shift_R	0xffe2
#define XK_Control_L	0xffe3
#define XK_Control_R	0xffe4
#define XK_Caps_Lock	0xffe5
#define XK_Shift_Lock	0xffe6
#define XK_Meta_L	0xffe7
#define XK_Meta_R	0xffe8
#define XK_Alt_L	0xffe9
#define XK_Alt_R	0xffea
#define XK_Super_L	0xffeb
#define XK_Super_R	0xffec
#define XK_Hyper_L	0xffed
#define XK_Hyper_R	0xffee
#define XK_braille_dot_1	0xfff1
#define XK_braille_dot_2	0xfff2
#define XK_braille_dot_3	0xfff3
#define XK_braille_dot_4	0xfff4
#define XK_braille_dot_5	0xfff5
#define XK_braille_dot_6	0xfff6
#define XK_braille_dot_7	0xfff7
#define XK_braille_dot_8	0xfff8
#define XK_braille_dot_9	0xfff9
#define XK_braille_dot_10	0xfffa
#define XK_Delete	0xffff
#define XK_VoidSymbol	0xffffff	/* Void symbol */

6.3. Interface Definitions for libX11

The interfaces defined on the following pages are included in libX11 and are defined by this specification. Unless otherwise noted, these interfaces shall be included in the source standard.

Other interfaces listed in Section 6.1 shall behave as described in the referenced base document.


6.4. Interfaces for libSM

Table 6-3 defines the library name and shared object name for the libSM library

Table 6-3. libSM Definition

Library:libSM
SONAME:libSM.so.6

The behavior of the interfaces in this library is specified by the following specifications:

[XSM] X11 Session Management


6.4.1. Session Management Functions


6.4.1.1. Interfaces for Session Management Functions

An LSB conforming implementation shall provide the generic functions for Session Management Functions specified in Table 6-4, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-4. libSM - Session Management Functions Function Interfaces

SmFreeProperty [XSM]SmFreeReasons [XSM]SmcClientID [XSM]SmcCloseConnection [XSM]
SmcDeleteProperties [XSM]SmcGetIceConnection [XSM]SmcGetProperties [XSM]SmcInteractDone [XSM]
SmcInteractRequest [XSM]SmcModifyCallbacks [XSM]SmcOpenConnection [XSM]SmcProtocolRevision [XSM]
SmcProtocolVersion [XSM]SmcRelease [XSM]SmcRequestSaveYourself [XSM]SmcRequestSaveYourselfPhase2 [XSM]
SmcSaveYourselfDone [XSM]SmcSetErrorHandler [XSM]SmcSetProperties [XSM]SmcVendor [XSM]
SmsCleanUp [XSM]SmsClientHostName [XSM]SmsClientID [XSM]SmsDie [XSM]
SmsGenerateClientID [XSM]SmsGetIceConnection [XSM]SmsInitialize [XSM]SmsInteract [XSM]
SmsProtocolRevision [XSM]SmsProtocolVersion [XSM]SmsRegisterClientReply [XSM]SmsReturnProperties [XSM]
SmsSaveComplete [XSM]SmsSaveYourself [XSM]SmsSaveYourselfPhase2 [XSM]SmsSetErrorHandler [XSM]
SmsShutdownCancelled [XSM]   

6.5. Data Definitions for libSM

This section defines global identifiers and their values that are associated with interfaces contained in libSM. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.


6.5.1. X11/SM/SM.h


#define SM_Error	0
#define SmDialogError	0
#define SmInteractStyleNone	0
#define SmProtoMinor	0
#define SmRestartIfRunning	0
#define SmSaveGlobal	0
#define SM_RegisterClient	1
#define SmDialogNormal	1
#define SmInteractStyleErrors	1
#define SmProtoMajor	1
#define SmRestartAnyway	1
#define SmSaveLocal	1
#define SM_ShutdownCancelled	10
#define SM_CloseConnection	11
#define SM_SetProperties	12
#define SM_DeleteProperties	13
#define SM_GetProperties	14
#define SM_PropertiesReply	15
#define SM_SaveYourselfPhase2Request	16
#define SM_SaveYourselfPhase2	17
#define SM_SaveComplete	18
#define SM_RegisterClientReply	2
#define SmInteractStyleAny	2
#define SmRestartImmediately	2
#define SmSaveBoth	2
#define SM_SaveYourself	3
#define SmRestartNever	3
#define SM_SaveYourselfRequest	4
#define SM_InteractRequest	5
#define SM_Interact	6
#define SM_InteractDone	7
#define SM_SaveYourselfDone	8
#define SM_Die	9
#define SmARRAY8	"ARRAY8"
#define SmCARD8	"CARD8"
#define SmCloneCommand	"CloneCommand"
#define SmCurrentDirectory	"CurrentDirectory"
#define SmDiscardCommand	"DiscardCommand"
#define SmEnvironment	"Environment"
#define SmLISTofARRAY8	"LISTofARRAY8"
#define SmProcessID	"ProcessID"
#define SmProgram	"Program"
#define SmResignCommand	"ResignCommand"
#define SmRestartCommand	"RestartCommand"
#define SmRestartStyleHint	"RestartStyleHint"
#define SmShutdownCommand	"ShutdownCommand"
#define SmUserID	"UserID"

6.5.2. X11/SM/SMlib.h


#define SmcSaveYourselfProcMask	(1L << 0)
#define SmsRegisterClientProcMask	(1L << 0)
#define SmcDieProcMask	(1L << 1)
#define SmsInteractRequestProcMask	(1L << 1)
#define SmcSaveCompleteProcMask	(1L << 2)
#define SmsInteractDoneProcMask	(1L << 2)
#define SmcShutdownCancelledProcMask	(1L << 3)
#define SmsSaveYourselfRequestProcMask	(1L << 3)
#define SmsSaveYourselfP2RequestProcMask	(1L << 4)
#define SmsSaveYourselfDoneProcMask	(1L << 5)
#define SmsCloseConnectionProcMask	(1L << 6)
#define SmsSetPropertiesProcMask	(1L << 7)
#define SmsDeletePropertiesProcMask	(1L << 8)
#define SmsGetPropertiesProcMask	(1L << 9)

typedef void *SmPointer;
typedef struct {
    int length;
    SmPointer value;
} SmPropValue;
typedef struct {
    char *name;
    char *type;
    int num_vals;
    SmPropValue *vals;
} SmProp;
struct _SmcConn;
typedef struct _SmcConn *SmcConn;
typedef void (*SmcSaveYourselfProc) (SmcConn, SmPointer, int, int, int,
				     int);
typedef void (*SmcDieProc) (SmcConn, SmPointer);
typedef void (*SmcSaveCompleteProc) (SmcConn, SmPointer);
typedef void (*SmcShutdownCancelledProc) (SmcConn, SmPointer);
typedef struct {
    struct {
	SmcSaveYourselfProc callback;
	SmPointer client_data;
    } save_yourself;
    struct {
	SmcDieProc callback;
	SmPointer client_data;
    } die;
    struct {
	SmcSaveCompleteProc callback;
	SmPointer client_data;
    } save_complete;
    struct {
	SmcShutdownCancelledProc callback;
	SmPointer client_data;
    } shutdown_cancelled;
} SmcCallbacks;
struct _SmsConn;
typedef struct _SmsConn *SmsConn;
typedef void (*SmsErrorHandler) (SmsConn, int, int, long unsigned int, int,
				 int, SmPointer);
typedef void (*SmcErrorHandler) (SmcConn, int, int, long unsigned int, int,
				 int, SmPointer);
typedef int (*SmsRegisterClientProc) (SmsConn, SmPointer, char *);
typedef void (*SmsInteractRequestProc) (SmsConn, SmPointer, int);
typedef void (*SmsInteractDoneProc) (SmsConn, SmPointer, int);
typedef void (*SmsSaveYourselfRequestProc) (SmsConn, SmPointer, int, int,
					    int, int, int);
typedef void (*SmsSaveYourselfPhase2RequestProc) (SmsConn, SmPointer);
typedef void (*SmsSaveYourselfDoneProc) (SmsConn, SmPointer, int);
typedef void (*SmsCloseConnectionProc) (SmsConn, SmPointer, int, char **);
typedef void (*SmsSetPropertiesProc) (SmsConn, SmPointer, int, SmProp * *);
typedef void (*SmsDeletePropertiesProc) (SmsConn, SmPointer, int, char **);
typedef void (*SmsGetPropertiesProc) (SmsConn, SmPointer);
typedef struct {
    struct {
	SmsRegisterClientProc callback;
	SmPointer manager_data;
    } register_client;
    struct {
	SmsInteractRequestProc callback;
	SmPointer manager_data;
    } interact_request;
    struct {
	SmsInteractDoneProc callback;
	SmPointer manager_data;
    } interact_done;
    struct {
	SmsSaveYourselfRequestProc callback;
	SmPointer manager_data;
    } save_yourself_request;
    struct {
	SmsSaveYourselfPhase2RequestProc callback;
	SmPointer manager_data;
    } save_yourself_phase2_request;
    struct {
	SmsSaveYourselfDoneProc callback;
	SmPointer manager_data;
    } save_yourself_done;
    struct {
	SmsCloseConnectionProc callback;
	SmPointer manager_data;
    } close_connection;
    struct {
	SmsSetPropertiesProc callback;
	SmPointer manager_data;
    } set_properties;
    struct {
	SmsDeletePropertiesProc callback;
	SmPointer manager_data;
    } delete_properties;
    struct {
	SmsGetPropertiesProc callback;
	SmPointer manager_data;
    } get_properties;
} SmsCallbacks;
typedef int (*SmsNewClientProc) (SmsConn, SmPointer, long unsigned int *,
				 SmsCallbacks *, char **);
typedef void (*SmcPropReplyProc) (SmcConn, SmPointer, int, SmProp * *);
typedef void (*SmcInteractProc) (SmcConn, SmPointer);
typedef void (*SmcSaveYourselfPhase2Proc) (SmcConn, SmPointer);
typedef enum {
    SmcClosedNow = 0,
    SmcClosedASAP = 1,
    SmcConnectionInUse = 2
} SmcCloseStatus;
extern void SmFreeProperty(SmProp *);
extern void SmFreeReasons(int, char **);
extern char *SmcClientID(SmcConn);
extern SmcCloseStatus SmcCloseConnection(SmcConn, int, char **);
extern void SmcDeleteProperties(SmcConn, int, char **);
extern IceConn SmcGetIceConnection(SmcConn);
extern int SmcGetProperties(SmcConn, SmcPropReplyProc, SmPointer);
extern void SmcInteractDone(SmcConn, int);
extern int SmcInteractRequest(SmcConn, int, SmcInteractProc, SmPointer);
extern void SmcModifyCallbacks(SmcConn, long unsigned int, SmcCallbacks *);
extern SmcConn SmcOpenConnection(char *, SmPointer, int, int,
				 long unsigned int, SmcCallbacks *, char *,
				 char **, int, char *);
extern int SmcProtocolRevision(SmcConn);
extern int SmcProtocolVersion(SmcConn);
extern char *SmcRelease(SmcConn);
extern void SmcRequestSaveYourself(SmcConn, int, int, int, int, int);
extern int SmcRequestSaveYourselfPhase2(SmcConn, SmcSaveYourselfPhase2Proc,
					SmPointer);
extern void SmcSaveYourselfDone(SmcConn, int);
extern SmcErrorHandler SmcSetErrorHandler(SmcErrorHandler);
extern void SmcSetProperties(SmcConn, int, SmProp * *);
extern char *SmcVendor(SmcConn);
extern void SmsCleanUp(SmsConn);
extern char *SmsClientHostName(SmsConn);
extern char *SmsClientID(SmsConn);
extern void SmsDie(SmsConn);
extern char *SmsGenerateClientID(SmsConn);
extern IceConn SmsGetIceConnection(SmsConn);
extern int SmsInitialize(char *, char *, SmsNewClientProc, SmPointer,
			 IceHostBasedAuthProc, int, char *);
extern void SmsInteract(SmsConn);
extern int SmsProtocolRevision(SmsConn);
extern int SmsProtocolVersion(SmsConn);
extern int SmsRegisterClientReply(SmsConn, char *);
extern void SmsReturnProperties(SmsConn, int, SmProp * *);
extern void SmsSaveComplete(SmsConn);
extern void SmsSaveYourself(SmsConn, int, int, int, int);
extern void SmsSaveYourselfPhase2(SmsConn);
extern SmsErrorHandler SmsSetErrorHandler(SmsErrorHandler);
extern void SmsShutdownCancelled(SmsConn);

6.5.3. X11/SM/SMproto.h


#define sz_smSaveYourselfMsg	16
#define sz_smSaveYourselfRequestMsg	16
#define sz_smCloseConnectionMsg	8
#define sz_smDeletePropertiesMsg	8
#define sz_smDieMsg	8
#define sz_smGetPropertiesMsg	8
#define sz_smInteractDoneMsg	8
#define sz_smInteractMsg	8
#define sz_smInteractRequestMsg	8
#define sz_smPropertiesReplyMsg	8
#define sz_smRegisterClientMsg	8
#define sz_smRegisterClientReplyMsg	8
#define sz_smSaveCompleteMsg	8
#define sz_smSaveYourselfDoneMsg	8
#define sz_smSaveYourselfPhase2Msg	8
#define sz_smSaveYourselfPhase2RequestMsg	8
#define sz_smSetPropertiesMsg	8
#define sz_smShutdownCancelledMsg	8

6.6. Interfaces for libICE

Table 6-5 defines the library name and shared object name for the libICE library

Table 6-5. libICE Definition

Library:libICE
SONAME:libICE.so.6

The behavior of the interfaces in this library is specified by the following specifications:

[LSB] This Specification
[XICE] X11 Inter-Client Exchange


6.6.1. ICE Functions


6.6.1.1. Interfaces for ICE Functions

An LSB conforming implementation shall provide the generic functions for ICE Functions specified in Table 6-6, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-6. libICE - ICE Functions Function Interfaces

IceAcceptConnection [XICE]IceAddConnectionWatch [XICE]IceAllocScratch [XICE]IceAppLockConn [XICE]
IceAppUnlockConn [XICE]IceAuthFileName [XICE]IceCheckShutdownNegotiation [XICE]IceCloseConnection [XICE]
IceComposeNetworkIdList [XICE]IceConnectionNumber [XICE]IceConnectionStatus [XICE]IceConnectionString [XICE]
IceFlush [XICE]IceFreeAuthFileEntry [XICE]IceFreeListenObjs [XICE]IceGenerateMagicCookie [XICE]
IceGetAuthFileEntry [XICE]IceGetConnectionContext [XICE]IceGetInBufSize [XICE]IceGetListenConnectionNumber [XICE]
IceGetListenConnectionString [XICE]IceGetOutBufSize [XICE]IceInitThreads [XICE]IceLastReceivedSequenceNumber [XICE]
IceLastSentSequenceNumber [XICE]IceListenForConnections [XICE]IceListenForWellKnownConnections [XICE]IceLockAuthFile [XICE]
IceOpenConnection [XICE]IcePing [XICE]IceProcessMessages [XICE]IceProtocolRevision [XICE]
IceProtocolSetup [XICE]IceProtocolShutdown [XICE]IceProtocolVersion [XICE]IceReadAuthFileEntry [XICE]
IceRegisterForProtocolReply [XICE]IceRegisterForProtocolSetup [XICE]IceRelease [XICE]IceRemoveConnectionWatch [XICE]
IceSetErrorHandler [XICE]IceSetHostBasedAuthProc [XICE]IceSetIOErrorHandler [XICE]IceSetPaAuthData [XICE]
IceSetShutdownNegotiation [XICE]IceSwapping [XICE]IceUnlockAuthFile [XICE]IceVendor [XICE]
IceWriteAuthFileEntry [XICE]_IceRead [LSB]_IceReadSkip [LSB]_IceWrite [LSB]

An LSB conforming implementation shall provide the generic deprecated functions for ICE Functions specified in Table 6-7, with the full mandatory functionality as described in the referenced underlying specification.

Note: These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 6-7. libICE - ICE Functions Deprecated Function Interfaces

IceAppLockConn [XICE]IceAppUnlockConn [XICE]IceInitThreads [XICE] 

6.7. Data Definitions for libICE

This section defines global identifiers and their values that are associated with interfaces contained in libICE. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.


6.7.1. X11/ICE/ICE.h


#define ICE_Error	0
#define IceBadMajor	0
#define IceCanContinue	0
#define IceLSBfirst	0
#define IceProtoMinor	0
#define IceBadMinor	0x8000
#define IceBadState	0x8001
#define IceBadLength	0x8002
#define IceBadValue	0x8003
#define ICE_ByteOrder	1
#define IceFatalToProtocol	1
#define IceMSBfirst	1
#define IceNoAuth	1
#define IceProtoMajor	1
#define ICE_PingReply	10
#define ICE_WantToClose	11
#define ICE_NoClose	12
#define ICE_ConnectionSetup	2
#define IceFatalToConnection	2
#define IceNoVersion	2
#define ICE_AuthRequired	3
#define IceSetupFailed	3
#define ICE_AuthReply	4
#define IceAuthRejected	4
#define ICE_AuthNextPhase	5
#define IceAuthFailed	5
#define ICE_ConnectionReply	6
#define IceProtocolDuplicate	6
#define ICE_ProtocolSetup	7
#define IceMajorOpcodeDuplicate	7
#define ICE_ProtocolReply	8
#define IceUnknownProtocol	8
#define ICE_Ping	9

6.7.2. X11/ICE/ICEconn.h


struct _XtransConnInfo;
typedef struct {
    char *vendor;
    char *release;
    int version_count;
    IcePoVersionRec *version_recs;
    int auth_count;
    char **auth_names;
    IcePoAuthProc *auth_procs;
    IceIOErrorProc io_error_proc;
} _IcePoProtocol;
typedef struct {
    char *vendor;
    char *release;
    int version_count;
    IcePaVersionRec *version_recs;
    IceProtocolSetupProc protocol_setup_proc;
    IceProtocolActivateProc protocol_activate_proc;
    int auth_count;
    char **auth_names;
    IcePaAuthProc *auth_procs;
    IceHostBasedAuthProc host_based_auth_proc;
    IceIOErrorProc io_error_proc;
} _IcePaProtocol;
typedef struct {
    char *protocol_name;
    _IcePoProtocol *orig_client;
    _IcePaProtocol *accept_client;
} _IceProtocol;
typedef struct {
    int in_use;
    int my_opcode;
    _IceProtocol *protocol;
    IcePointer client_data;
    int accept_flag;
    union {
	IcePaProcessMsgProc accept_client;
	IcePoProcessMsgProc orig_client;
    } process_msg_proc;
} _IceProcessMsgInfo;
typedef struct _IceSavedReplyWait {
    IceReplyWaitInfo *reply_wait;
    int reply_ready;
    _IceSavedReplyWait *next;
} _IceSavedReplyWait;
typedef struct _IcePingWait {
    IcePingReplyProc ping_reply_proc;
    IcePointer client_data;
    _IcePingWait *next;
} _IcePingWait;
typedef struct {
    int auth_active;
    char my_auth_index;
    IcePointer my_auth_state;
} _IceConnectToYouInfo;
typedef struct {
    int my_opcode;
    int my_auth_count;
    int *my_auth_indices;
    int auth_active;
    char my_auth_index;
    IcePointer my_auth_state;
} _IceProtoSetupToYouInfo;
typedef struct {
    int his_version_index;
    int my_version_index;
    char *his_vendor;
    char *his_release;
    char my_auth_index;
    IcePointer my_auth_state;
    int must_authenticate;
} _IceConnectToMeInfo;
typedef struct {
    int his_opcode;
    int my_opcode;
    int his_version_index;
    int my_version_index;
    char *his_vendor;
    char *his_release;
    char my_auth_index;
    IcePointer my_auth_state;
    int must_authenticate;
} _IceProtoSetupToMeInfo;
struct _IceConn {
    unsigned int io_ok:1;
    unsigned int swap:1;
    unsigned int waiting_for_byteorder:1;
    unsigned int skip_want_to_close:1;
    unsigned int want_to_close:1;
    unsigned int free_asap:1;
    unsigned int unused1:2;
    unsigned int unused2:8;
    IceConnectStatus connection_status;
    unsigned char my_ice_version_index;
    struct _XtransConnInfo *trans_conn;
    long unsigned int send_sequence;
    long unsigned int receive_sequence;
    char *connection_string;
    char *vendor;
    char *release;
    char *inbuf;
    char *inbufptr;
    char *inbufmax;
    char *outbuf;
    char *outbufptr;
    char *outbufmax;
    char *scratch;
    long unsigned int scratch_size;
    int dispatch_level;
    IcePointer context;
    _IceProcessMsgInfo *process_msg_info;
    char his_min_opcode;
    char his_max_opcode;
    unsigned char open_ref_count;
    unsigned char proto_ref_count;
    IceListenObj listen_obj;
    _IceSavedReplyWait *saved_reply_waits;
    _IcePingWait *ping_waits;
    _IceConnectToYouInfo *connect_to_you;
    _IceProtoSetupToYouInfo *protosetup_to_you;
    _IceConnectToMeInfo *connect_to_me;
    _IceProtoSetupToMeInfo *protosetup_to_me;
};

6.7.3. X11/ICE/ICElib.h


typedef void *IcePointer;
typedef struct _IceConn *IceConn;
typedef void (*IcePaProcessMsgProc) (IceConn, IcePointer, int,
				     long unsigned int, int);
typedef struct {
    int major_version;
    int minor_version;
    IcePaProcessMsgProc process_msg_proc;
} IcePaVersionRec;
typedef struct {
    long unsigned int sequence_of_request;
    int major_opcode_of_request;
    int minor_opcode_of_request;
    IcePointer reply;
} IceReplyWaitInfo;
typedef void (*IcePoProcessMsgProc) (IceConn, IcePointer, int,
				     long unsigned int, int,
				     IceReplyWaitInfo *, int *);
typedef struct {
    int major_version;
    int minor_version;
    IcePoProcessMsgProc process_msg_proc;
} IcePoVersionRec;
typedef IcePoAuthStatus(*IcePoAuthProc) (IceConn, IcePointer *, int, int,
					 int, IcePointer, int *,
					 IcePointer *, char **);
typedef IcePaAuthStatus(*IcePaAuthProc) (IceConn, IcePointer *, int, int,
					 IcePointer, int *, IcePointer *,
					 char **);
typedef enum {
    IceAcceptSuccess = 0,
    IceAcceptFailure = 1,
    IceAcceptBadMalloc = 2
} IceAcceptStatus;
struct _IceListenObj;
typedef struct _IceListenObj *IceListenObj;
typedef enum {
    IceConnectPending = 0,
    IceConnectAccepted = 1,
    IceConnectRejected = 2,
    IceConnectIOError = 3
} IceConnectStatus;
typedef void (*IceIOErrorProc) (IceConn);
typedef int (*IceProtocolSetupProc) (IceConn, int, int, char *, char *,
				     IcePointer *, char **);
typedef void (*IceProtocolActivateProc) (IceConn, IcePointer);
typedef int (*IceHostBasedAuthProc) (char *);
typedef void (*IcePingReplyProc) (IceConn, IcePointer);
typedef enum {
    IceProcessMessagesSuccess = 0,
    IceProcessMessagesIOError = 1,
    IceProcessMessagesConnectionClosed = 2
} IceProcessMessagesStatus;
typedef enum {
    IceClosedNow = 0,
    IceClosedASAP = 1,
    IceConnectionInUse = 2,
    IceStartedShutdownNegotiation = 3
} IceCloseStatus;
typedef enum {
    IceProtocolSetupSuccess = 0,
    IceProtocolSetupFailure = 1,
    IceProtocolSetupIOError = 2,
    IceProtocolAlreadyActive = 3
} IceProtocolSetupStatus;
typedef void (*IceWatchProc) (IceConn, IcePointer, int, IcePointer *);
typedef void (*IceIOErrorHandler) (IceConn);
typedef void (*IceErrorHandler) (IceConn, int, int, long unsigned int, int,
				 int, IcePointer);
typedef enum {
    IcePoAuthHaveReply,
    IcePoAuthRejected,
    IcePoAuthFailed,
    IcePoAuthDoneCleanup
} IcePoAuthStatus;
typedef enum {
    IcePaAuthContinue,
    IcePaAuthAccepted,
    IcePaAuthRejected,
    IcePaAuthFailed
} IcePaAuthStatus;
extern IceConn IceAcceptConnection(IceListenObj, IceAcceptStatus *);
extern int IceAddConnectionWatch(IceWatchProc, IcePointer);
extern char *IceAllocScratch(IceConn, long unsigned int);
extern void IceAppLockConn(IceConn);
extern void IceAppUnlockConn(IceConn);
extern int IceCheckShutdownNegotiation(IceConn);
extern IceCloseStatus IceCloseConnection(IceConn);
extern char *IceComposeNetworkIdList(int, IceListenObj *);
extern int IceConnectionNumber(IceConn);
extern IceConnectStatus IceConnectionStatus(IceConn);
extern char *IceConnectionString(IceConn);
extern int IceFlush(IceConn);
extern void IceFreeListenObjs(int, IceListenObj *);
extern IcePointer IceGetConnectionContext(IceConn);
extern int IceGetInBufSize(IceConn);
extern int IceGetListenConnectionNumber(IceListenObj);
extern char *IceGetListenConnectionString(IceListenObj);
extern int IceGetOutBufSize(IceConn);
extern int IceInitThreads(void);
extern long unsigned int IceLastReceivedSequenceNumber(IceConn);
extern long unsigned int IceLastSentSequenceNumber(IceConn);
extern int IceListenForConnections(int *, IceListenObj * *, int, char *);
extern int IceListenForWellKnownConnections(char *, int *,
					    IceListenObj * *, int, char *);
extern IceConn IceOpenConnection(char *, IcePointer, int, int, int,
				 char *);
extern int IcePing(IceConn, IcePingReplyProc, IcePointer);
extern IceProcessMessagesStatus IceProcessMessages(IceConn,
						   IceReplyWaitInfo *,
						   int *);
extern int IceProtocolRevision(IceConn);
extern IceProtocolSetupStatus IceProtocolSetup(IceConn, int, IcePointer,
					       int, int *, int *, char **,
					       char **, int, char *);
extern int IceProtocolShutdown(IceConn, int);
extern int IceProtocolVersion(IceConn);
extern int IceRegisterForProtocolReply(char *, char *, char *, int,
				       IcePaVersionRec *, int,
				       const char **, IcePaAuthProc *,
				       IceHostBasedAuthProc,
				       IceProtocolSetupProc,
				       IceProtocolActivateProc,
				       IceIOErrorProc);
extern int IceRegisterForProtocolSetup(char *, char *, char *, int,
				       IcePoVersionRec *, int,
				       const char **, IcePoAuthProc *,
				       IceIOErrorProc);
extern char *IceRelease(IceConn);
extern void IceRemoveConnectionWatch(IceWatchProc, IcePointer);
extern IceErrorHandler IceSetErrorHandler(IceErrorHandler);
extern void IceSetHostBasedAuthProc(IceListenObj, IceHostBasedAuthProc);
extern IceIOErrorHandler IceSetIOErrorHandler(IceIOErrorHandler);
extern void IceSetShutdownNegotiation(IceConn, int);
extern int IceSwapping(IceConn);
extern char *IceVendor(IceConn);

6.7.4. X11/ICE/ICEmsg.h


#define IceWriteData16(_iceConn,_bytes,_data)	IceWriteData (_iceConn, _bytes, (char *) _data)
#define IceWriteData32(_iceConn,_bytes,_data)	IceWriteData (_iceConn, _bytes, (char *) _data)
#define IceDisposeCompleteMessage(_iceConn,_pData)	if ((char *) _pData < _iceConn->inbuf || (char *) _pData >= _iceConn->inbufmax) \
    free ((char *) _pData);
#define IceGetHeaderExtra(_iceConn,_major,_minor,_headerSize,_extra,_msgType,_pMsg,_pData)	if ((_iceConn->outbufptr + _headerSize + ((_extra) << 3)) > _iceConn->outbufmax) IceFlush (_iceConn);\
 _pMsg = (_msgType *) _iceConn->outbufptr;\
 if ((_iceConn->outbufptr + _headerSize + ((_extra) << 3)) <= _iceConn->outbufmax) _pData = (char *) _pMsg + _headerSize;\
 else _pData = ((void *)0);\
 _pMsg->majorOpcode = _major;\
 _pMsg->minorOpcode = _minor;\
 _pMsg->length = ((_headerSize - SIZEOF (iceMsg)) >> 3) + (_extra);\
 _iceConn->outbufptr += (_headerSize + ((_extra) << 3));\
 _iceConn->send_sequence++
#define IceGetHeader(_iceConn,_major,_minor,_headerSize,_msgType,_pMsg)	if ((_iceConn->outbufptr + _headerSize) > _iceConn->outbufmax) IceFlush (_iceConn);\
 _pMsg = (_msgType *) _iceConn->outbufptr;\
 _pMsg->majorOpcode = _major;\
 _pMsg->minorOpcode = _minor;\
 _pMsg->length = (_headerSize - SIZEOF (iceMsg)) >> 3;\
 _iceConn->outbufptr += _headerSize;\
 _iceConn->send_sequence++
#define IceValidIO(_iceConn)	_iceConn->io_ok
#define IceReadData(_iceConn,_bytes,_pData)	_IceRead (_iceConn, (unsigned long) (_bytes), (char *) _pData);
#define IceReadSimpleMessage(_iceConn,_msgType,_pMsg)	_pMsg = (_msgType *) (_iceConn->inbuf);
#define IceReadPad(_iceConn,_bytes)	{ char _dummy[7]; _IceRead (_iceConn, (unsigned long) (_bytes), _dummy); }
#define IceErrorHeader(_iceConn,_offendingMajorOpcode,_offendingMinorOpcode,_offendingSequenceNum,_severity,_errorClass,_dataLength)	{ iceErrorMsg *_pMsg;\
 IceGetHeader (_iceConn, _offendingMajorOpcode, ICE_Error, SIZEOF (iceErrorMsg), iceErrorMsg, _pMsg);\
 _pMsg->length += (_dataLength);\
 _pMsg->offendingMinorOpcode = _offendingMinorOpcode;\
 _pMsg->severity = _severity;\
 _pMsg->offendingSequenceNum = _offendingSequenceNum;\
 _pMsg->errorClass = _errorClass;\
 }
#define IceSimpleMessage(_iceConn,_major,_minor)	{ iceMsg *_pMsg; IceGetHeader (_iceConn, _major, _minor, SIZEOF (iceMsg), iceMsg, _pMsg) }
#define IceWritePad(_iceConn,_bytes)	{ if ((_iceConn->outbufptr + (_bytes)) > _iceConn->outbufmax) { char _dummy[7];\
 IceFlush (_iceConn);\
 _IceWrite (_iceConn, (unsigned long) (_bytes), _dummy);\
 } else { _iceConn->outbufptr += (_bytes);\
 } }
#define IceWriteData(_iceConn,_bytes,_data)	{ if ((_iceConn->outbufptr + (_bytes)) > _iceConn->outbufmax) { IceFlush (_iceConn);\
 _IceWrite (_iceConn, (unsigned long) (_bytes), _data);\
 } else { memcpy (_iceConn->outbufptr, _data, _bytes);\
 _iceConn->outbufptr += (_bytes);\
 } }
#define IceSendData(_iceConn,_bytes,_data)	{ if (_iceConn->outbufptr > _iceConn->outbuf) IceFlush (_iceConn);\
 _IceWrite (_iceConn, (unsigned long) (_bytes), _data);\
 }
#define IceReadCompleteMessage(_iceConn,_headerSize,_msgType,_pMsg,_pData)	{ \
    unsigned long _bytes; \
    IceReadMessageHeader (_iceConn, _headerSize, _msgType, _pMsg); \
    _bytes = (_pMsg->length << 3) - (_headerSize - SIZEOF (iceMsg)); \
    if ((_iceConn->inbufmax - _iceConn->inbufptr) >= _bytes) \
    { \
        _IceRead (_iceConn, _bytes, _iceConn->inbufptr); \
        _pData = _iceConn->inbufptr; \
        _iceConn->inbufptr += _bytes; \
    } \
    else \
    { \
        _pData = (char *) malloc ((unsigned) _bytes); \
        if (_pData) \
            _IceRead (_iceConn, _bytes, _pData); \
        else \
            _IceReadSkip (_iceConn, _bytes); \
    } \
}
#define IceReadData16(_iceConn,_swap,_bytes,_pData)	{ _IceRead (_iceConn, (unsigned long) (_bytes), (char *) _pData); }
#define IceReadData32(_iceConn,_swap,_bytes,_pData)	{ _IceRead (_iceConn, (unsigned long) (_bytes), (char *) _pData); }
#define IceReadMessageHeader(_iceConn,_headerSize,_msgType,_pMsg)	{ _IceRead (_iceConn, (unsigned long) (_headerSize - SIZEOF (iceMsg)), _iceConn->inbufptr);\
 _pMsg = (_msgType *) (_iceConn->inbuf);\
 _iceConn->inbufptr += (_headerSize - SIZEOF (iceMsg));\
 }

extern int _IceRead(IceConn, unsigned long int, char *);
extern void _IceReadSkip(IceConn, unsigned long int);
extern void _IceWrite(IceConn, unsigned long int, char *);

6.7.5. X11/ICE/ICEproto.h


#define sz_iceAuthNextPhaseMsg	16
#define sz_iceAuthReplyMsg	16
#define sz_iceAuthRequiredMsg	16
#define sz_iceConnectionSetupMsg	16
#define sz_iceErrorMsg	16
#define sz_iceProtocolSetupMsg	16
#define sz_iceByteOrderMsg	8
#define sz_iceConnectionReplyMsg	8
#define sz_iceMsg	8
#define sz_iceNoCloseMsg	8
#define sz_icePingMsg	8
#define sz_icePingReplyMsg	8
#define sz_iceProtocolReplyMsg	8
#define sz_iceWantToCloseMsg	8

typedef iceErrorMsg icePingMsg;
typedef iceErrorMsg icePingReplyMsg;
typedef iceErrorMsg iceWantToCloseMsg;
typedef iceErrorMsg iceNoCloseMsg;

6.7.6. X11/ICE/ICEutil.h


#define IceAuthLockSuccess	0
#define IceAuthLockError	1
#define IceAuthLockTimeout	2

typedef struct {
    char *protocol_name;
    char *network_id;
    char *auth_name;
    short unsigned int auth_data_length;
    char *auth_data;
} IceAuthDataEntry;
typedef struct {
    char *protocol_name;
    short unsigned int protocol_data_length;
    char *protocol_data;
    char *network_id;
    char *auth_name;
    short unsigned int auth_data_length;
    char *auth_data;
} IceAuthFileEntry;
extern char *IceAuthFileName(void);
extern void IceFreeAuthFileEntry(IceAuthFileEntry *);
extern char *IceGenerateMagicCookie(int);
extern IceAuthFileEntry *IceGetAuthFileEntry(char *, char *, char *);
extern int IceLockAuthFile(char *, int, int, long int);
extern IceAuthFileEntry *IceReadAuthFileEntry(FILE *);
extern void IceSetPaAuthData(int, IceAuthDataEntry *);
extern void IceUnlockAuthFile(char *);
extern int IceWriteAuthFileEntry(FILE *, IceAuthFileEntry *);

6.8. Interface Definitions for libICE

Table of Contents
_IceRead -- read the specified number of bytes from an ICE connection
_IceReadSkip -- advance to the end of the message when a bad header is read
_IceWrite -- write the specified number of bytes of data to an ICE connection

The interfaces defined on the following pages are included in libICE and are defined by this specification. Unless otherwise noted, these interfaces shall be included in the source standard.

Other interfaces listed in Section 6.6 shall behave as described in the referenced base document.

_IceRead

Name

_IceRead -- read the specified number of bytes from an ICE connection

Synopsis

#include <X11/ICE/ICEmsg.h>

int _IceRead(IceConn iceConn, unsigned long int nbytes, char * ptr);

Description

The interface _IceRead() shall read the specified number of bytes from an Inter-Client Exchange connection.

The parameter iceConn shall specify the Inter-Client Exchange connection.

The parameter nbytes shall specify the number of bytes to read.

The output parameter ptr shall contain the data that was read.

Return Value

_IceRead() shall return 0 if it detects that the connection has closed and this was expected.

In the case of a fatal I/O error, _IceRead() shall return 1.

See Also

_IceReadSkip(), _IceWrite().

_IceReadSkip

Name

_IceReadSkip -- advance to the end of the message when a bad header is read

Synopsis

#include <X11/ICE/ICEmsg.h>

void _IceReadSkip(IceConn iceConn, unsigned long int nbytes);

Description

The interface _IceReadSkip() shall advance to the end of the message when a header with a bad major or minor opcode is read, so the next message can be processed correctly.

The parameter iceConn shall specify the Inter-Client Exchange connection.

The parameter nbytes shall specify the number of bytes to skip. If the number of bytes specified is less than 512, the interface shall assume 512 bytes should be skipped.

See Also

_IceRead(), _IceWrite().

_IceWrite

Name

_IceWrite -- write the specified number of bytes of data to an ICE connection

Synopsis

#include <X11/ICE/ICEmsg.h>

void _IceWrite(IceConn iceConn, unsigned long int nbytes, char * ptr);

Description

The interface _IceWrite() shall write the specified number of bytes to an Inter-Client Exchange connection.

The parameter iceConn shall specify the Inter-Client Exchange connection.

The parameter nbytes shall specify the number of bytes of the specified data to write.

The parameter ptr shall contain the data to write.

See Also

_IceRead(), _IceReadSkip().


6.9. Interfaces for libXt

Table 6-8 defines the library name and shared object name for the libXt library

Table 6-8. libXt Definition

Library:libXt
SONAME:libXt.so.6

The behavior of the interfaces in this library is specified by the following specifications:

[LSB] This Specification
[Xt] X11 Toolkit Intrinsics


6.9.1. X Toolkit


6.9.1.1. Interfaces for X Toolkit

An LSB conforming implementation shall provide the generic functions for X Toolkit specified in Table 6-9, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-9. libXt - X Toolkit Function Interfaces

XtAddActions [Xt]XtAddCallback [Xt]XtAddCallbacks [Xt]XtAddConverter [Xt]
XtAddEventHandler [Xt]XtAddExposureToRegion [Xt]XtAddGrab [Xt]XtAddInput [Xt]
XtAddRawEventHandler [Xt]XtAddSignal [Xt]XtAddTimeOut [Xt]XtAddWorkProc [Xt]
XtAllocateGC [Xt]XtAppAddActionHook [Xt]XtAppAddActions [Xt]XtAppAddBlockHook [Xt]
XtAppAddConverter [Xt]XtAppAddInput [Xt]XtAppAddSignal [Xt]XtAppAddTimeOut [Xt]
XtAppAddWorkProc [Xt]XtAppCreateShell [Xt]XtAppError [Xt]XtAppErrorMsg [Xt]
XtAppGetErrorDatabase [Xt]XtAppGetErrorDatabaseText [Xt]XtAppGetExitFlag [Xt]XtAppGetSelectionTimeout [Xt]
XtAppInitialize [Xt]XtAppLock [Xt]XtAppMainLoop [Xt]XtAppNextEvent [Xt]
XtAppPeekEvent [Xt]XtAppPending [Xt]XtAppProcessEvent [Xt]XtAppReleaseCacheRefs [Xt]
XtAppSetErrorHandler [Xt]XtAppSetErrorMsgHandler [Xt]XtAppSetExitFlag [Xt]XtAppSetFallbackResources [Xt]
XtAppSetSelectionTimeout [Xt]XtAppSetTypeConverter [Xt]XtAppSetWarningHandler [Xt]XtAppSetWarningMsgHandler [Xt]
XtAppUnlock [Xt]XtAppWarning [Xt]XtAppWarningMsg [Xt]XtAugmentTranslations [Xt]
XtBuildEventMask [Xt]XtCallAcceptFocus [Xt]XtCallActionProc [Xt]XtCallCallbackList [Xt]
XtCallCallbacks [Xt]XtCallConverter [Xt]XtCallbackExclusive [Xt]XtCallbackNone [Xt]
XtCallbackNonexclusive [Xt]XtCallbackPopdown [Xt]XtCallbackReleaseCacheRef [Xt]XtCallbackReleaseCacheRefList [Xt]
XtCalloc [Xt]XtCancelSelectionRequest [Xt]XtChangeManagedSet [Xt]XtClass [Xt]
XtCloseDisplay [Xt]XtConfigureWidget [Xt]XtConvert [Xt]XtConvertAndStore [Xt]
XtConvertCase [Xt]XtCreateApplicationContext [Xt]XtCreateApplicationShell [Xt]XtCreateManagedWidget [Xt]
XtCreatePopupShell [Xt]XtCreateSelectionRequest [Xt]XtCreateWidget [Xt]XtCreateWindow [Xt]
XtCvtColorToPixel [Xt]XtCvtIntToBool [Xt]XtCvtIntToBoolean [Xt]XtCvtIntToColor [Xt]
XtCvtIntToFloat [Xt]XtCvtIntToFont [Xt]XtCvtIntToPixel [Xt]XtCvtIntToPixmap [Xt]
XtCvtIntToShort [Xt]XtCvtIntToUnsignedChar [Xt]XtCvtStringToAcceleratorTable [Xt]XtCvtStringToAtom [Xt]
XtCvtStringToBool [Xt]XtCvtStringToBoolean [Xt]XtCvtStringToCommandArgArray [Xt]XtCvtStringToCursor [Xt]
XtCvtStringToDimension [Xt]XtCvtStringToDirectoryString [Xt]XtCvtStringToDisplay [Xt]XtCvtStringToFile [Xt]
XtCvtStringToFloat [Xt]XtCvtStringToFont [Xt]XtCvtStringToFontSet [Xt]XtCvtStringToFontStruct [Xt]
XtCvtStringToGravity [Xt]XtCvtStringToInitialState [Xt]XtCvtStringToInt [Xt]XtCvtStringToPixel [Xt]
XtCvtStringToRestartStyle [Xt]XtCvtStringToShort [Xt]XtCvtStringToTranslationTable [Xt]XtCvtStringToUnsignedChar [Xt]
XtCvtStringToVisual [Xt]XtDatabase [Xt]XtDestroyApplicationContext [Xt]XtDestroyGC [Xt]
XtDestroyWidget [Xt]XtDirectConvert [Xt]XtDisownSelection [Xt]XtDispatchEvent [Xt]
XtDispatchEventToWidget [Xt]XtDisplay [Xt]XtDisplayInitialize [Xt]XtDisplayOfObject [Xt]
XtDisplayStringConversionWarning [Xt]XtDisplayToApplicationContext [Xt]XtError [Xt]XtErrorMsg [Xt]
XtFindFile [Xt]XtFree [Xt]XtGetActionKeysym [Xt]XtGetActionList [Xt]
XtGetApplicationNameAndClass [Xt]XtGetApplicationResources [Xt]XtGetClassExtension [Xt]XtGetConstraintResourceList [Xt]
XtGetDisplays [Xt]XtGetErrorDatabase [Xt]XtGetErrorDatabaseText [Xt]XtGetGC [Xt]
XtGetKeyboardFocusWidget [Xt]XtGetKeysymTable [Xt]XtGetMultiClickTime [Xt]XtGetResourceList [Xt]
XtGetSelectionParameters [Xt]XtGetSelectionRequest [Xt]XtGetSelectionTimeout [Xt]XtGetSelectionValue [Xt]
XtGetSelectionValueIncremental [Xt]XtGetSelectionValues [Xt]XtGetSelectionValuesIncremental [Xt]XtGetSubresources [Xt]
XtGetSubvalues [Xt]XtGetValues [Xt]XtGrabButton [Xt]XtGrabKey [Xt]
XtGrabKeyboard [Xt]XtGrabPointer [Xt]XtHasCallbacks [Xt]XtHooksOfDisplay [Xt]
XtInitialize [Xt]XtInitializeWidgetClass [Xt]XtInsertEventHandler [Xt]XtInsertEventTypeHandler [Xt]
XtInsertRawEventHandler [Xt]XtInstallAccelerators [Xt]XtInstallAllAccelerators [Xt]XtIsApplicationShell [Xt]
XtIsComposite [Xt]XtIsConstraint [Xt]XtIsManaged [Xt]XtIsObject [Xt]
XtIsOverrideShell [Xt]XtIsRealized [Xt]XtIsRectObj [Xt]XtIsSensitive [Xt]
XtIsSessionShell [Xt]XtIsShell [Xt]XtIsSubclass [Xt]XtIsTopLevelShell [Xt]
XtIsTransientShell [Xt]XtIsVendorShell [Xt]XtIsWMShell [Xt]XtIsWidget [Xt]
XtKeysymToKeycodeList [Xt]XtLastEventProcessed [Xt]XtLastTimestampProcessed [Xt]XtMainLoop [Xt]
XtMakeGeometryRequest [Xt]XtMakeResizeRequest [Xt]XtMalloc [Xt]XtManageChild [Xt]
XtManageChildren [Xt]XtMapWidget [Xt]XtMenuPopupAction [Xt]XtMergeArgLists [Xt]
XtMoveWidget [Xt]XtName [Xt]XtNameToWidget [Xt]XtNewString [Xt]
XtNextEvent [Xt]XtNoticeSignal [Xt]XtOpenApplication [Xt]XtOpenDisplay [Xt]
XtOverrideTranslations [Xt]XtOwnSelection [Xt]XtOwnSelectionIncremental [Xt]XtParent [Xt]
XtParseAcceleratorTable [Xt]XtParseTranslationTable [Xt]XtPeekEvent [Xt]XtPending [Xt]
XtPopdown [Xt]XtPopup [Xt]XtPopupSpringLoaded [Xt]XtProcessEvent [Xt]
XtProcessLock [Xt]XtProcessUnlock [Xt]XtQueryGeometry [Xt]XtRealizeWidget [Xt]
XtRealloc [Xt]XtRegisterCaseConverter [Xt]XtRegisterDrawable [Xt]XtRegisterExtensionSelector [Xt]
XtRegisterGrabAction [Xt]XtReleaseGC [Xt]XtReleasePropertyAtom [Xt]XtRemoveActionHook [Xt]
XtRemoveAllCallbacks [Xt]XtRemoveBlockHook [Xt]XtRemoveCallback [Xt]XtRemoveCallbacks [Xt]
XtRemoveEventHandler [Xt]XtRemoveEventTypeHandler [Xt]XtRemoveGrab [Xt]XtRemoveInput [Xt]
XtRemoveRawEventHandler [Xt]XtRemoveSignal [Xt]XtRemoveTimeOut [Xt]XtRemoveWorkProc [Xt]
XtReservePropertyAtom [Xt]XtResizeWidget [Xt]XtResizeWindow [Xt]XtResolvePathname [Xt]
XtScreen [Xt]XtScreenDatabase [Xt]XtScreenOfObject [Xt]XtSendSelectionRequest [Xt]
XtSessionGetToken [Xt]XtSessionReturnToken [Xt]XtSetErrorHandler [Xt]XtSetErrorMsgHandler [Xt]
XtSetEventDispatcher [Xt]XtSetKeyTranslator [Xt]XtSetKeyboardFocus [Xt]XtSetLanguageProc [Xt]
XtSetMappedWhenManaged [Xt]XtSetMultiClickTime [Xt]XtSetSelectionParameters [Xt]XtSetSelectionTimeout [Xt]
XtSetSensitive [Xt]XtSetSubvalues [Xt]XtSetTypeConverter [Xt]XtSetValues [Xt]
XtSetWMColormapWindows [Xt]XtSetWarningHandler [Xt]XtSetWarningMsgHandler [Xt]XtStringConversionWarning [Xt]
XtSuperclass [Xt]XtToolkitInitialize [Xt]XtToolkitThreadInitialize [Xt]XtTranslateCoords [Xt]
XtTranslateKey [Xt]XtTranslateKeycode [Xt]XtUngrabButton [Xt]XtUngrabKey [Xt]
XtUngrabKeyboard [Xt]XtUngrabPointer [Xt]XtUninstallTranslations [Xt]XtUnmanageChild [Xt]
XtUnmanageChildren [Xt]XtUnmapWidget [Xt]XtUnrealizeWidget [Xt]XtUnregisterDrawable [Xt]
XtVaAppCreateShell [Xt]XtVaAppInitialize [Xt]XtVaCreateArgsList [Xt]XtVaCreateManagedWidget [Xt]
XtVaCreatePopupShell [Xt]XtVaCreateWidget [Xt]XtVaGetApplicationResources [Xt]XtVaGetSubresources [Xt]
XtVaGetSubvalues [Xt]XtVaGetValues [Xt]XtVaOpenApplication [Xt]XtVaSetSubvalues [Xt]
XtVaSetValues [Xt]XtWarning [Xt]XtWarningMsg [Xt]XtWidgetToApplicationContext [Xt]
XtWindow [Xt]XtWindowOfObject [Xt]XtWindowToWidget [Xt]_XtCheckSubclassFlag [Xt]
_XtCopyFromArg [LSB]_XtInherit [LSB]_XtIsSubclassOf [LSB] 

An LSB conforming implementation shall provide the generic data interfaces for X Toolkit specified in Table 6-10, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-10. libXt - X Toolkit Data Interfaces

XtCXtToolkitError [Xt]XtShellStrings [Xt]XtStrings [Xt]_XtInheritTranslations [LSB]
applicationShellClassRec [Xt]applicationShellWidgetClass [Xt]colorConvertArgs [Xt]compositeClassRec [Xt]
compositeWidgetClass [Xt]constraintClassRec [Xt]constraintWidgetClass [Xt]coreWidgetClass [Xt]
objectClass [Xt]objectClassRec [Xt]overrideShellClassRec [Xt]overrideShellWidgetClass [Xt]
rectObjClass [Xt]rectObjClassRec [Xt]sessionShellClassRec [Xt]sessionShellWidgetClass [Xt]
shellClassRec [Xt]shellWidgetClass [Xt]topLevelShellClassRec [Xt]topLevelShellWidgetClass [Xt]
transientShellClassRec [Xt]transientShellWidgetClass [Xt]widgetClass [Xt]widgetClassRec [Xt]
wmShellClassRec [Xt]wmShellWidgetClass [Xt]  

6.10. Data Definitions for libXt

This section defines global identifiers and their values that are associated with interfaces contained in libXt. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.


6.10.1. X11/Composite.h


#define _XtComposite_h	1

typedef void (*XtDoChangeProc) (Widget, WidgetList, Cardinal *, WidgetList,
				Cardinal *, XtPointer);
typedef struct _CompositeClassRec *CompositeWidgetClass;
typedef Cardinal(*XtOrderProc) (Widget);
extern void XtChangeManagedSet(WidgetList, Cardinal, XtDoChangeProc,
			       XtPointer, WidgetList, Cardinal);
extern void XtManageChild(Widget);
extern void XtManageChildren(WidgetList, Cardinal);
extern void XtUnmanageChild(Widget);
extern void XtUnmanageChildren(WidgetList, Cardinal);
extern WidgetClass compositeWidgetClass;

6.10.2. X11/CompositeP.h


#define XtInheritGeometryManager	((XtGeometryHandler) _XtInherit)
#define XtInheritChangeManaged	((XtWidgetProc) _XtInherit)
#define XtInheritDeleteChild	((XtWidgetProc) _XtInherit)
#define XtInheritInsertChild	((XtWidgetProc) _XtInherit)
#define _XtCompositeP_h	1
#define XtCompositeExtensionVersion	2L

typedef struct _CompositePart {
    WidgetList children;
    Cardinal num_children;
    Cardinal num_slots;
    XtOrderProc insert_position;
} CompositePart;
typedef struct _CompositeClassPart {
    XtGeometryHandler geometry_manager;
    XtWidgetProc change_managed;
    XtWidgetProc insert_child;
    XtWidgetProc delete_child;
    XtPointer extension;
} CompositeClassPart;
typedef struct _CompositePart *CompositePtr;
typedef struct _CompositeRec {
    CorePart core;
    CompositePart composite;
} CompositeRec;
typedef struct _CompositeClassPart *CompositePartPtr;
typedef struct {
    XtPointer next_extension;
    XrmQuark record_type;
    long int version;
    Cardinal record_size;
    Boolean accepts_objects;
    Boolean allows_change_managed_set;
} CompositeClassExtensionRec;
typedef CompositeClassExtensionRec *CompositeClassExtension;

typedef struct _CompositeClassRec CompositeClassRec;
extern CompositeClassRec compositeClassRec;

6.10.3. X11/ConstrainP.h


#define XtConstraintExtensionVersion	1L

typedef struct _ConstraintPart {
    XtPointer mumble;		/* No new fields, keep C compiler happy */
} ConstraintPart;
typedef struct _ConstraintClassRec *ConstraintClassRec;
typedef struct _ConstraintClassPart {
    XtResourceList resources;
    Cardinal num_resources;
    Cardinal constraint_size;
    XtInitProc initialize;
    XtWidgetProc destroy;
    XtSetValuesFunc set_values;
    XtPointer extension;
} ConstraintClassPart;
struct _ConstraintClassRec {
    CoreClassPart core_class;
    CompositeClassPart composite_class;
    ConstraintClassPart constraint_class;
};
typedef struct _ConstraintRec {
    CorePart core;
    CompositePart composite;
    ConstraintPart constraint;
} ConstraintRec;
typedef struct _ConstraintRec *ConstraintWidget;
typedef struct {
    XtPointer next_extension;
    XrmQuark record_type;
    long int version;
    Cardinal record_size;
    XtArgsProc get_values_hook;
} ConstraintClassExtensionRec;
typedef ConstraintClassExtensionRec *ConstraintClassExtension;
extern ConstraintClassRec constraintClassRec;

6.10.4. X11/Constraint.h


#define _XtConstraint_h	1

typedef struct _ConstraintClassRec *ConstraintWidgetClass;
extern WidgetClass constraintWidgetClass;

6.10.5. X11/Core.h


#define _XtCore_h	1

typedef struct _WidgetClassRec *CoreWidgetClass;
typedef struct _WidgetClassRec *CoreWidget;
extern WidgetClass coreWidgetClass;
extern WidgetClass widgetClass;

6.10.6. X11/CoreP.h


#define XtInheritTranslations	((String) &_XtInheritTranslations)
#define XtInheritAcceptFocus	((XtAcceptFocusProc) _XtInherit)
#define XtInheritSetValuesAlmost	((XtAlmostProc) _XtInherit)
#define XtInheritExpose	((XtExposeProc) _XtInherit)
#define XtInheritQueryGeometry	((XtGeometryHandler) _XtInherit)
#define XtInheritRealize	((XtRealizeProc) _XtInherit)
#define XtInheritDisplayAccelerator	((XtStringProc) _XtInherit)
#define XtInheritResize	((XtWidgetProc) _XtInherit)
#define XtCoreP_h_	1

typedef struct _CorePart {
    Widget self;
    WidgetClass widget_class;
    Widget parent;
    XrmName xrm_name;
    Boolean being_destroyed;
    XtCallbackList destroy_callbacks;
    XtPointer constraints;
    Position x;
    Position y;
    Dimension width;
    Dimension height;
    Dimension border_width;
    Boolean managed;
    Boolean sensitive;
    Boolean ancestor_sensitive;
    XtEventTable event_table;
    XtTMRec tm;
    XtTranslations accelerators;
    Pixel border_pixel;
    Pixmap border_pixmap;
    WidgetList popup_list;
    Cardinal num_popups;
    String name;
    Screen *screen;
    Colormap colormap;
    Window window;
    Cardinal depth;
    Pixel background_pixel;
    Pixmap background_pixmap;
    Boolean visible;
    Boolean mapped_when_managed;
} CorePart;
typedef struct _CoreClassPart {
    WidgetClass superclass;
    String class_name;
    Cardinal widget_size;
    XtProc class_initialize;
    XtWidgetClassProc class_part_initialize;
    XtEnum class_inited;
    XtInitProc initialize;
    XtArgsProc initialize_hook;
    XtRealizeProc realize;
    XtActionList actions;
    Cardinal num_actions;
    XtResourceList resources;
    Cardinal num_resources;
    XrmClass xrm_class;
    Boolean compress_motion;
    XtEnum compress_exposure;
    Boolean compress_enterleave;
    Boolean visible_interest;
    XtWidgetProc destroy;
    XtWidgetProc resize;
    XtExposeProc expose;
    XtSetValuesFunc set_values;
    XtArgsFunc set_values_hook;
    XtAlmostProc set_values_almost;
    XtArgsProc get_values_hook;
    XtAcceptFocusProc accept_focus;
    XtVersionType version;
    XtPointer callback_private;
    String tm_table;
    XtGeometryHandler query_geometry;
    XtStringProc display_accelerator;
    XtPointer extension;
} CoreClassPart;
typedef struct _WidgetRec {
    CorePart core;
} WidgetRec;
typedef struct _WidgetRec {
    CorePart core;
} CoreRec;
typedef struct _WidgetClassRec {
    CoreClassPart core_class;
} WidgetClassRec;
typedef struct _WidgetClassRec {
    CoreClassPart core_class;
} CoreClassRec;
extern int _XtInheritTranslations;
extern WidgetClassRec widgetClassRec;

6.10.7. X11/EventI.h


typedef struct _XtGrabRec *XtGrabList;
typedef struct _XtGrabRec {
    XtGrabList next;
    Widget widget;
    unsigned int exclusive:1;
    unsigned int spring_loaded:1;
} XtGrabRec;
typedef struct _XtEventRec {
    XtEventTable next;
    EventMask mask;
    XtEventHandler proc;
    XtPointer closure;
    unsigned int select:1;
    unsigned int has_type_specifier:1;
    unsigned int async:1;
} XtEventRec;

6.10.8. X11/Intrinsic.h


#define XtOffset(p_type,field)	((Cardinal) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
#define XtNumber(arr)	((Cardinal) (sizeof(arr) / sizeof(arr[0])))
#define XtAllEvents	((EventMask) -1L)
#define XtUnspecifiedPixmap	((Pixmap)2)
#define XtNew(type)	((type *) XtMalloc((unsigned) sizeof(type)))
#define XtSetArg(arg,n,d)	((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) ))
#define XtUnspecifiedWindow	((Window)2)
#define XtUnspecifiedWindowGroup	((Window)3)
#define XtUnspecifiedShellInt	(-1)
#define XtCWQueryOnly	(1 << 7)
#define XtInputReadMask	(1L<<0)
#define XtInputWriteMask	(1L<<1)
#define XtInputExceptMask	(1L<<2)
#define XT_CONVERT_FAIL	(Atom)0x80000001
#define XtIMAll	(XtIMXEvent | XtIMTimer | XtIMAlternateInput | XtIMSignal)
#define XtIsRectObj(object)	(_XtCheckSubclassFlag(object, (XtEnum)0x02))
#define XtIsWidget(object)	(_XtCheckSubclassFlag(object, (XtEnum)0x04))
#define XtIsComposite(widget)	(_XtCheckSubclassFlag(widget, (XtEnum)0x08))
#define XtIsConstraint(widget)	(_XtCheckSubclassFlag(widget, (XtEnum)0x10))
#define XtIsShell(widget)	(_XtCheckSubclassFlag(widget, (XtEnum)0x20))
#define XtIsWMShell(widget)	(_XtCheckSubclassFlag(widget, (XtEnum)0x40))
#ifndef FALSE
#define FALSE	0
#endif
#define XtInputNoneMask	0L
#define XtCacheNone	0x001
#define XtCacheAll	0x002
#define XtCacheByDisplay	0x003
#define XtCacheRefCount	0x100
#ifndef TRUE
#define TRUE	1
#endif
#define XtIMXEvent	1
#define _XtIntrinsic_h	1
#define XtIMTimer	2
#define XtIMAlternateInput	4
#define XtSMDontChange	5
#define XtSpecificationRelease	6
#define XtIMSignal	8
#define _XtString	char*
#define externalref	extern
#define _XtBoolean	int
#define _XtPosition	int
#define XtOffsetOf(s_type,field)	offsetof(s_type,field)
#define _XtDimension	unsigned int
#define _XtKeyCode	unsigned int
#define _XtXtEnum	unsigned int
#define XtCurrentDirectory	"XtCurrentDirectory"
#define XtCvtPixelToColor	XtCvtIntToColor
#define XtCvtIntToDimension	XtCvtIntToShort
#define XtCvtIntToPosition	XtCvtIntToShort
#define XtCvtStringToPosition	XtCvtStringToShort
#define XtDefaultBackground	"XtDefaultBackground"
#define XtDefaultFont	"XtDefaultFont"
#define XtDefaultFontSet	"XtDefaultFontSet"
#define XtDefaultForeground	"XtDefaultForeground"
#define XtVaNestedList	"XtVaNestedList"
#define XtVaTypedArg	"XtVaTypedArg"

typedef unsigned int Cardinal;
typedef void *XtPointer;
struct _WidgetRec;
typedef struct _WidgetRec *Widget;
typedef char *String;
typedef unsigned int XtGeometryMask;
typedef short int Position;
typedef short unsigned int Dimension;
typedef struct {
    XtGeometryMask request_mode;
    Position x;
    Position y;
    Dimension width;
    Dimension height;
    Dimension border_width;
    Widget sibling;
    int stack_mode;
} XtWidgetGeometry;
typedef unsigned int Modifiers;
typedef void *XtCacheRef;
typedef struct _XtResource *XtResourceList;
struct _XtAppStruct;
typedef struct _XtAppStruct *XtAppContext;
typedef void (*XtActionProc) (Widget, XEvent *, String *, Cardinal *);
typedef struct _XtActionsRec *XtActionList;
typedef char Boolean;
typedef int XtCacheType;
typedef long unsigned int XtGCMask;
typedef unsigned char XtEnum;
typedef long unsigned int XtSignalId;
typedef long unsigned int XtWorkProcId;
typedef long unsigned int XtInputId;
typedef long unsigned int XtIntervalId;
struct _WidgetClassRec;
typedef struct _WidgetClassRec *WidgetClass;
typedef Widget *WidgetList;
typedef struct _TranslationData *XtAccelerators;
typedef struct _TranslationData *XtTranslations;
typedef enum {
    XtGeometryYes = 0,
    XtGeometryNo = 1,
    XtGeometryAlmost = 2,
    XtGeometryDone = 3
} XtGeometryResult;
typedef enum {
    XtAddress = 0,
    XtBaseOffset = 1,
    XtImmediate = 2,
    XtResourceString = 3,
    XtResourceQuark = 4,
    XtWidgetBaseOffset = 5,
    XtProcedureArg = 6
} XtAddressMode;
typedef struct {
    XtAddressMode address_mode;
    XtPointer address_id;
    Cardinal size;
} XtConvertArgRec;
typedef XtConvertArgRec *XtConvertArgList;
typedef long int XtArgVal;
typedef struct {
    String name;
    XtArgVal value;
} Arg;
typedef Arg *ArgList;
typedef void (*XtSignalCallbackProc) (XtPointer, XtSignalId *);
typedef enum {
    XtCallbackNoList = 0,
    XtCallbackHasNone = 1,
    XtCallbackHasSome = 2
} XtCallbackStatus;
typedef void (*XtInputCallbackProc) (XtPointer, int *, XtInputId *);
typedef void (*XtTimerCallbackProc) (XtPointer, XtIntervalId *);
typedef long unsigned int XtInputMask;
typedef enum {
    XtListHead = 0,
    XtListTail = 1
} XtListPosition;
typedef void (*XtCallbackProc) (Widget, XtPointer, XtPointer);
typedef struct _XtCallbackRec *XtCallbackList;
typedef long unsigned int EventMask;
typedef void *XtVarArgsList;
typedef void (*XtEventHandler) (Widget, XtPointer, XEvent *, Boolean *);
typedef void (*XtCaseProc) (Display *, KeySym, KeySym *, KeySym *);
typedef void (*XtKeyProc) (Display *, unsigned int, Modifiers, Modifiers *,
			   KeySym *);
typedef void (*XtBlockHookProc) (XtPointer);
typedef long unsigned int XtBlockHookId;
typedef void (*XtActionHookProc) (Widget, XtPointer, String, XEvent *,
				  String *, Cardinal *);
typedef void *XtActionHookId;
typedef void (*XtDestructor) (XtAppContext, XrmValue *, XtPointer,
			      XrmValue *, Cardinal *);
typedef Boolean(*XtTypeConverter) (Display *, XrmValue *, Cardinal *,
				   XrmValue *, XrmValue *, XtPointer *);
typedef void (*XtConverter) (XrmValue *, Cardinal *, XrmValue *,
			     XrmValue *);
typedef void *XtRequestId;
typedef Boolean(*XtFilePredicate) (String);
typedef struct {
    char match;
    String substitution;
} SubstitutionRec;
typedef SubstitutionRec *Substitution;
typedef void (*XtSelectionCallbackProc) (Widget, XtPointer, Atom *, Atom *,
					 XtPointer, long unsigned int *,
					 int *);
typedef Boolean(*XtWorkProc) (XtPointer);
typedef void (*XtSelectionDoneProc) (Widget, Atom *, Atom *);
typedef void (*XtLoseSelectionProc) (Widget, Atom *);
typedef void (*XtErrorHandler) (String);
typedef Boolean(*XtConvertSelectionProc) (Widget, Atom *, Atom *, Atom *,
					  XtPointer *, long unsigned int *,
					  int *);
typedef void (*XtErrorMsgHandler) (String, String, String, String,
				   String *, Cardinal *);
typedef String(*XtLanguageProc) (Display *, String, XtPointer);
typedef enum {
    XtGrabNone = 0,
    XtGrabNonexclusive = 1,
    XtGrabExclusive = 2
} XtGrabKind;
typedef struct _XtCheckpointTokenRec *XtCheckpointToken;
typedef void (*XtExtensionSelectProc) (Widget, int *, XtPointer *, int,
				       XtPointer);
typedef Boolean(*XtEventDispatchProc) (XEvent *);
typedef void (*XtCancelConvertSelectionProc) (Widget, Atom *, Atom *,
					      XtRequestId *, XtPointer);
typedef Boolean(*XtConvertSelectionIncrProc) (Widget, Atom *, Atom *,
					      Atom *, XtPointer *,
					      long unsigned int *, int *,
					      long unsigned int *,
					      XtPointer, XtRequestId *);
typedef void (*XtSelectionDoneIncrProc) (Widget, Atom *, Atom *,
					 XtRequestId *, XtPointer);
typedef void (*XtLoseSelectionIncrProc) (Widget, Atom *, XtPointer);
typedef long unsigned int XtValueMask;
typedef struct _XtEventRec *XtEventTable;
typedef void (*XtCreatePopupChildProc) (Widget);
typedef struct _XtResource {
    String resource_name;
    String resource_class;
    String resource_type;
    Cardinal resource_size;
    Cardinal resource_offset;
    String default_type;
    XtPointer default_addr;
} XtResource;
typedef struct _XtCallbackRec {
    XtCallbackProc callback;
    XtPointer closure;
} XtCallbackRec;
typedef struct _XtCheckpointTokenRec {
    int save_type;
    int interact_style;
    Boolean shutdown;
    Boolean fast;
    Boolean cancel_shutdown;
    int phase;
    int interact_dialog_type;
    Boolean request_cancel;
    Boolean request_next_phase;
    Boolean save_success;
    int type;
    Widget widget;
} XtCheckpointTokenRec;
typedef long unsigned int Pixel;
typedef struct _XtActionsRec {
    String string;
    XtActionProc proc;
} XtActionsRec;
typedef struct {
    Widget shell_widget;
    Widget enable_widget;
} XtPopdownIDRec;
typedef XtPopdownIDRec *XtPopdownID;
typedef XtActionProc *XtBoundActions;
typedef struct {
    String type;
    Widget widget;
    ArgList args;
    Cardinal num_args;
} XtCreateHookDataRec;
typedef XtCreateHookDataRec *XtCreateHookData;
typedef struct {
    String type;
    Widget widget;
    XtPointer event_data;
    Cardinal num_event_data;
} XtChangeHookDataRec;
typedef XtChangeHookDataRec *XtChangeHookData;
typedef struct {
    Widget old;
    Widget req;
    ArgList args;
    Cardinal num_args;
} XtChangeHookSetValuesDataRec;
typedef XtChangeHookSetValuesDataRec *XtChangeHookSetValuesData;
typedef struct {
    String type;
    Widget widget;
    XtGeometryMask changeMask;
    XWindowChanges changes;
} XtConfigureHookDataRec;
typedef XtConfigureHookDataRec *XtConfigureHookData;
typedef struct {
    String type;
    Widget widget;
    XtWidgetGeometry *request;
    XtWidgetGeometry *reply;
    XtGeometryResult result;
} XtGeometryHookDataRec;
typedef XtGeometryHookDataRec *XtGeometryHookData;
typedef struct {
    String type;
    Widget widget;
} XtDestroyHookDataRec;
typedef XtDestroyHookDataRec *XtDestroyHookData;
extern void XtAddActions(XtActionList, Cardinal);
extern void XtAddCallback(Widget, const char *, XtCallbackProc, XtPointer);
extern void XtAddCallbacks(Widget, const char *, XtCallbackList);
extern void XtAddConverter(const char *, const char *, XtConverter,
			   XtConvertArgList, Cardinal);
extern void XtAddEventHandler(Widget, EventMask, int, XtEventHandler,
			      XtPointer);
extern void XtAddExposureToRegion(XEvent *, Region);
extern void XtAddGrab(Widget, int, int);
extern XtInputId XtAddInput(int, XtPointer, XtInputCallbackProc,
			    XtPointer);
extern void XtAddRawEventHandler(Widget, EventMask, int, XtEventHandler,
				 XtPointer);
extern XtSignalId XtAddSignal(XtSignalCallbackProc, XtPointer);
extern XtIntervalId XtAddTimeOut(long unsigned int, XtTimerCallbackProc,
				 XtPointer);
extern XtWorkProcId XtAddWorkProc(XtWorkProc, XtPointer);
extern GC XtAllocateGC(Widget, Cardinal, XtGCMask, XGCValues *, XtGCMask,
		       XtGCMask);
extern XtActionHookId XtAppAddActionHook(XtAppContext, XtActionHookProc,
					 XtPointer);
extern void XtAppAddActions(XtAppContext, XtActionList, Cardinal);
extern XtBlockHookId XtAppAddBlockHook(XtAppContext, XtBlockHookProc,
				       XtPointer);
extern void XtAppAddConverter(XtAppContext, const char *, const char *,
			      XtConverter, XtConvertArgList, Cardinal);
extern XtInputId XtAppAddInput(XtAppContext, int, XtPointer,
			       XtInputCallbackProc, XtPointer);
extern XtSignalId XtAppAddSignal(XtAppContext, XtSignalCallbackProc,
				 XtPointer);
extern XtIntervalId XtAppAddTimeOut(XtAppContext, long unsigned int,
				    XtTimerCallbackProc, XtPointer);
extern XtWorkProcId XtAppAddWorkProc(XtAppContext, XtWorkProc, XtPointer);
extern Widget XtAppCreateShell(const char *, const char *, WidgetClass,
			       Display *, ArgList, Cardinal);
extern void XtAppError(XtAppContext, const char *);
extern void XtAppErrorMsg(XtAppContext, const char *, const char *,
			  const char *, const char *, String *,
			  Cardinal *);
extern XrmDatabase *XtAppGetErrorDatabase(XtAppContext);
extern void XtAppGetErrorDatabaseText(XtAppContext, const char *,
				      const char *, const char *,
				      const char *, String, int,
				      XrmDatabase);
extern Boolean XtAppGetExitFlag(XtAppContext);
extern long unsigned int XtAppGetSelectionTimeout(XtAppContext);
extern Widget XtAppInitialize(XtAppContext *, const char *,
			      XrmOptionDescList, Cardinal, int *, String *,
			      String *, ArgList, Cardinal);
extern void XtAppLock(XtAppContext);
extern void XtAppMainLoop(XtAppContext);
extern void XtAppNextEvent(XtAppContext, XEvent *);
extern Boolean XtAppPeekEvent(XtAppContext, XEvent *);
extern XtInputMask XtAppPending(XtAppContext);
extern void XtAppProcessEvent(XtAppContext, XtInputMask);
extern void XtAppReleaseCacheRefs(XtAppContext, XtCacheRef *);
extern XtErrorHandler XtAppSetErrorHandler(XtAppContext, XtErrorHandler);
extern XtErrorMsgHandler XtAppSetErrorMsgHandler(XtAppContext,
						 XtErrorMsgHandler);
extern void XtAppSetExitFlag(XtAppContext);
extern void XtAppSetFallbackResources(XtAppContext, String *);
extern void XtAppSetSelectionTimeout(XtAppContext, long unsigned int);
extern void XtAppSetTypeConverter(XtAppContext, const char *, const char *,
				  XtTypeConverter, XtConvertArgList,
				  Cardinal, XtCacheType, XtDestructor);
extern XtErrorHandler XtAppSetWarningHandler(XtAppContext, XtErrorHandler);
extern XtErrorMsgHandler XtAppSetWarningMsgHandler(XtAppContext,
						   XtErrorMsgHandler);
extern void XtAppUnlock(XtAppContext);
extern void XtAppWarning(XtAppContext, const char *);
extern void XtAppWarningMsg(XtAppContext, const char *, const char *,
			    const char *, const char *, String *,
			    Cardinal *);
extern void XtAugmentTranslations(Widget, XtTranslations);
extern EventMask XtBuildEventMask(Widget);
extern Boolean XtCallAcceptFocus(Widget, Time *);
extern void XtCallActionProc(Widget, const char *, XEvent *, String *,
			     Cardinal);
extern void XtCallCallbackList(Widget, XtCallbackList, XtPointer);
extern void XtCallCallbacks(Widget, const char *, XtPointer);
extern Boolean XtCallConverter(Display *, XtTypeConverter, XrmValuePtr,
			       Cardinal, XrmValuePtr, XrmValue *,
			       XtCacheRef *);
extern void XtCallbackExclusive(Widget, XtPointer, XtPointer);
extern void XtCallbackNone(Widget, XtPointer, XtPointer);
extern void XtCallbackNonexclusive(Widget, XtPointer, XtPointer);
extern void XtCallbackPopdown(Widget, XtPointer, XtPointer);
extern void XtCallbackReleaseCacheRef(Widget, XtPointer, XtPointer);
extern void XtCallbackReleaseCacheRefList(Widget, XtPointer, XtPointer);
extern char *XtCalloc(Cardinal, Cardinal);
extern void XtCancelSelectionRequest(Widget, Atom);
extern WidgetClass XtClass(Widget);
extern void XtCloseDisplay(Display *);
extern void XtConvert(Widget, const char *, XrmValue *, const char *,
		      XrmValue *);
extern Boolean XtConvertAndStore(Widget, const char *, XrmValue *,
				 const char *, XrmValue *);
extern void XtConvertCase(Display *, KeySym, KeySym *, KeySym *);
extern XtAppContext XtCreateApplicationContext(void);
extern Widget XtCreateApplicationShell(const char *, WidgetClass, ArgList,
				       Cardinal);
extern Widget XtCreateManagedWidget(const char *, WidgetClass, Widget,
				    ArgList, Cardinal);
extern Widget XtCreatePopupShell(const char *, WidgetClass, Widget,
				 ArgList, Cardinal);
extern void XtCreateSelectionRequest(Widget, Atom);
extern Widget XtCreateWidget(const char *, WidgetClass, Widget, ArgList,
			     Cardinal);
extern Boolean XtCvtColorToPixel(Display *, XrmValuePtr, Cardinal *,
				 XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtIntToBool(Display *, XrmValuePtr, Cardinal *,
			      XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtIntToBoolean(Display *, XrmValuePtr, Cardinal *,
				 XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtIntToColor(Display *, XrmValuePtr, Cardinal *,
			       XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtIntToFloat(Display *, XrmValuePtr, Cardinal *,
			       XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtIntToFont(Display *, XrmValuePtr, Cardinal *,
			      XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtIntToPixel(Display *, XrmValuePtr, Cardinal *,
			       XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtIntToPixmap(Display *, XrmValuePtr, Cardinal *,
				XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtIntToShort(Display *, XrmValuePtr, Cardinal *,
			       XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtIntToUnsignedChar(Display *, XrmValuePtr, Cardinal *,
				      XrmValuePtr, XrmValuePtr,
				      XtPointer *);
extern Boolean XtCvtStringToAcceleratorTable(Display *, XrmValuePtr,
					     Cardinal *, XrmValuePtr,
					     XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToAtom(Display *, XrmValuePtr, Cardinal *,
				 XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToBool(Display *, XrmValuePtr, Cardinal *,
				 XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToBoolean(Display *, XrmValuePtr, Cardinal *,
				    XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToCommandArgArray(Display *, XrmValuePtr,
					    Cardinal *, XrmValuePtr,
					    XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToCursor(Display *, XrmValuePtr, Cardinal *,
				   XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToDimension(Display *, XrmValuePtr, Cardinal *,
				      XrmValuePtr, XrmValuePtr,
				      XtPointer *);
extern Boolean XtCvtStringToDirectoryString(Display *, XrmValuePtr,
					    Cardinal *, XrmValuePtr,
					    XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToDisplay(Display *, XrmValuePtr, Cardinal *,
				    XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToFile(Display *, XrmValuePtr, Cardinal *,
				 XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToFloat(Display *, XrmValuePtr, Cardinal *,
				  XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToFont(Display *, XrmValuePtr, Cardinal *,
				 XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToFontSet(Display *, XrmValuePtr, Cardinal *,
				    XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToFontStruct(Display *, XrmValuePtr, Cardinal *,
				       XrmValuePtr, XrmValuePtr,
				       XtPointer *);
extern Boolean XtCvtStringToGravity(Display *, XrmValuePtr, Cardinal *,
				    XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToInitialState(Display *, XrmValuePtr,
					 Cardinal *, XrmValuePtr,
					 XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToInt(Display *, XrmValuePtr, Cardinal *,
				XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToPixel(Display *, XrmValuePtr, Cardinal *,
				  XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToRestartStyle(Display *, XrmValuePtr,
					 Cardinal *, XrmValuePtr,
					 XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToShort(Display *, XrmValuePtr, Cardinal *,
				  XrmValuePtr, XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToTranslationTable(Display *, XrmValuePtr,
					     Cardinal *, XrmValuePtr,
					     XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToUnsignedChar(Display *, XrmValuePtr,
					 Cardinal *, XrmValuePtr,
					 XrmValuePtr, XtPointer *);
extern Boolean XtCvtStringToVisual(Display *, XrmValuePtr, Cardinal *,
				   XrmValuePtr, XrmValuePtr, XtPointer *);
extern XrmDatabase XtDatabase(Display *);
extern void XtDestroyApplicationContext(XtAppContext);
extern void XtDestroyGC(GC);
extern void XtDestroyWidget(Widget);
extern void XtDirectConvert(XtConverter, XrmValuePtr, Cardinal,
			    XrmValuePtr, XrmValue *);
extern void XtDisownSelection(Widget, Atom, Time);
extern Boolean XtDispatchEvent(XEvent *);
extern Boolean XtDispatchEventToWidget(Widget, XEvent *);
extern Display *XtDisplay(Widget);
extern void XtDisplayInitialize(XtAppContext, Display *, const char *,
				const char *, XrmOptionDescRec *, Cardinal,
				int *, char **);
extern Display *XtDisplayOfObject(Widget);
extern void XtDisplayStringConversionWarning(Display *, const char *,
					     const char *);
extern XtAppContext XtDisplayToApplicationContext(Display *);
extern void XtError(const char *);
extern void XtErrorMsg(const char *, const char *, const char *,
		       const char *, String *, Cardinal *);
extern String XtFindFile(const char *, Substitution, Cardinal,
			 XtFilePredicate);
extern void XtFree(char *);
extern KeySym XtGetActionKeysym(XEvent *, Modifiers *);
extern void XtGetActionList(WidgetClass, XtActionList *, Cardinal *);
extern void XtGetApplicationNameAndClass(Display *, String *, String *);
extern void XtGetApplicationResources(Widget, XtPointer, XtResourceList,
				      Cardinal, ArgList, Cardinal);
extern XtPointer XtGetClassExtension(WidgetClass, Cardinal, XrmQuark,
				     long int, Cardinal);
extern void XtGetConstraintResourceList(WidgetClass, XtResourceList *,
					Cardinal *);
extern void XtGetDisplays(XtAppContext, Display * **, Cardinal *);
extern XrmDatabase *XtGetErrorDatabase(void);
extern void XtGetErrorDatabaseText(const char *, const char *,
				   const char *, const char *, String,
				   int);
extern GC XtGetGC(Widget, XtGCMask, XGCValues *);
extern Widget XtGetKeyboardFocusWidget(Widget);
extern KeySym *XtGetKeysymTable(Display *, KeyCode *, int *);
extern int XtGetMultiClickTime(Display *);
extern void XtGetResourceList(WidgetClass, XtResourceList *, Cardinal *);
extern void XtGetSelectionParameters(Widget, Atom, XtRequestId, Atom *,
				     XtPointer *, long unsigned int *,
				     int *);
extern XSelectionRequestEvent *XtGetSelectionRequest(Widget, Atom,
						     XtRequestId);
extern long unsigned int XtGetSelectionTimeout(void);
extern void XtGetSelectionValue(Widget, Atom, Atom,
				XtSelectionCallbackProc, XtPointer, Time);
extern void XtGetSelectionValueIncremental(Widget, Atom, Atom,
					   XtSelectionCallbackProc,
					   XtPointer, Time);
extern void XtGetSelectionValues(Widget, Atom, Atom *, int,
				 XtSelectionCallbackProc, XtPointer *,
				 Time);
extern void XtGetSelectionValuesIncremental(Widget, Atom, Atom *, int,
					    XtSelectionCallbackProc,
					    XtPointer *, Time);
extern void XtGetSubresources(Widget, XtPointer, const char *,
			      const char *, XtResourceList, Cardinal,
			      ArgList, Cardinal);
extern void XtGetSubvalues(XtPointer, XtResourceList, Cardinal, ArgList,
			   Cardinal);
extern void XtGetValues(Widget, ArgList, Cardinal);
extern void XtGrabButton(Widget, int, Modifiers, int, unsigned int, int,
			 int, Window, Cursor);
extern void XtGrabKey(Widget, unsigned int, Modifiers, int, int, int);
extern int XtGrabKeyboard(Widget, int, int, int, Time);
extern int XtGrabPointer(Widget, int, unsigned int, int, int, Window,
			 Cursor, Time);
extern XtCallbackStatus XtHasCallbacks(Widget, const char *);
extern Widget XtHooksOfDisplay(Display *);
extern Widget XtInitialize(const char *, const char *, XrmOptionDescRec *,
			   Cardinal, int *, char **);
extern void XtInitializeWidgetClass(WidgetClass);
extern void XtInsertEventHandler(Widget, EventMask, int, XtEventHandler,
				 XtPointer, XtListPosition);
extern void XtInsertEventTypeHandler(Widget, int, XtPointer,
				     XtEventHandler, XtPointer,
				     XtListPosition);
extern void XtInsertRawEventHandler(Widget, EventMask, int, XtEventHandler,
				    XtPointer, XtListPosition);
extern void XtInstallAccelerators(Widget, Widget);
extern void XtInstallAllAccelerators(Widget, Widget);
extern Boolean XtIsApplicationShell(Widget);
extern Boolean XtIsManaged(Widget);
extern Boolean XtIsObject(Widget);
extern Boolean XtIsOverrideShell(Widget);
extern Boolean XtIsRealized(Widget);
extern Boolean XtIsSensitive(Widget);
extern Boolean XtIsSessionShell(Widget);
extern Boolean XtIsSubclass(Widget, WidgetClass);
extern Boolean XtIsTransientShell(Widget);
extern Boolean XtIsVendorShell(Widget);
extern void XtKeysymToKeycodeList(Display *, KeySym, KeyCode * *,
				  Cardinal *);
extern XEvent *XtLastEventProcessed(Display *);
extern Time XtLastTimestampProcessed(Display *);
extern void XtMainLoop(void);
extern XtGeometryResult XtMakeGeometryRequest(Widget, XtWidgetGeometry *,
					      XtWidgetGeometry *);
extern XtGeometryResult XtMakeResizeRequest(Widget, unsigned int,
					    unsigned int, Dimension *,
					    Dimension *);
extern char *XtMalloc(Cardinal);
extern void XtMapWidget(Widget);
extern void XtMenuPopupAction(Widget, XEvent *, String *, Cardinal *);
extern ArgList XtMergeArgLists(ArgList, Cardinal, ArgList, Cardinal);
extern String XtName(Widget);
extern Widget XtNameToWidget(Widget, const char *);
extern String XtNewString(String);
extern void XtNextEvent(XEvent *);
extern void XtNoticeSignal(XtSignalId);
extern Widget XtOpenApplication(XtAppContext *, const char *,
				XrmOptionDescList, Cardinal, int *,
				String *, String *, WidgetClass, ArgList,
				Cardinal);
extern Display *XtOpenDisplay(XtAppContext, const char *, const char *,
			      const char *, XrmOptionDescRec *, Cardinal,
			      int *, char **);
extern void XtOverrideTranslations(Widget, XtTranslations);
extern Boolean XtOwnSelection(Widget, Atom, Time, XtConvertSelectionProc,
			      XtLoseSelectionProc, XtSelectionDoneProc);
extern Boolean XtOwnSelectionIncremental(Widget, Atom, Time,
					 XtConvertSelectionIncrProc,
					 XtLoseSelectionIncrProc,
					 XtSelectionDoneIncrProc,
					 XtCancelConvertSelectionProc,
					 XtPointer);
extern Widget XtParent(Widget);
extern XtAccelerators XtParseAcceleratorTable(const char *);
extern XtTranslations XtParseTranslationTable(const char *);
extern Boolean XtPeekEvent(XEvent *);
extern Boolean XtPending(void);
extern void XtPopdown(Widget);
extern void XtPopup(Widget, XtGrabKind);
extern void XtPopupSpringLoaded(Widget);
extern void XtProcessEvent(XtInputMask);
extern XtGeometryResult XtQueryGeometry(Widget, XtWidgetGeometry *,
					XtWidgetGeometry *);
extern void XtRealizeWidget(Widget);
extern char *XtRealloc(char *, Cardinal);
extern void XtRegisterCaseConverter(Display *, XtCaseProc, KeySym, KeySym);
extern void XtRegisterDrawable(Display *, Drawable, Widget);
extern void XtRegisterExtensionSelector(Display *, int, int,
					XtExtensionSelectProc, XtPointer);
extern void XtRegisterGrabAction(XtActionProc, int, unsigned int, int,
				 int);
extern void XtReleaseGC(Widget, GC);
extern void XtReleasePropertyAtom(Widget, Atom);
extern void XtRemoveActionHook(XtActionHookId);
extern void XtRemoveAllCallbacks(Widget, const char *);
extern void XtRemoveBlockHook(XtBlockHookId);
extern void XtRemoveCallback(Widget, const char *, XtCallbackProc,
			     XtPointer);
extern void XtRemoveCallbacks(Widget, const char *, XtCallbackList);
extern void XtRemoveEventHandler(Widget, EventMask, int, XtEventHandler,
				 XtPointer);
extern void XtRemoveEventTypeHandler(Widget, int, XtPointer,
				     XtEventHandler, XtPointer);
extern void XtRemoveGrab(Widget);
extern void XtRemoveInput(XtInputId);
extern void XtRemoveRawEventHandler(Widget, EventMask, int, XtEventHandler,
				    XtPointer);
extern void XtRemoveSignal(XtSignalId);
extern void XtRemoveTimeOut(XtIntervalId);
extern void XtRemoveWorkProc(XtWorkProcId);
extern Atom XtReservePropertyAtom(Widget);
extern String XtResolvePathname(Display *, const char *, const char *,
				const char *, const char *, Substitution,
				Cardinal, XtFilePredicate);
extern Screen *XtScreen(Widget);
extern XrmDatabase XtScreenDatabase(Screen *);
extern Screen *XtScreenOfObject(Widget);
extern void XtSendSelectionRequest(Widget, Atom, Time);
extern XtCheckpointToken XtSessionGetToken(Widget);
extern void XtSessionReturnToken(XtCheckpointToken);
extern void XtSetErrorHandler(XtErrorHandler);
extern void XtSetErrorMsgHandler(XtErrorMsgHandler);
extern XtEventDispatchProc XtSetEventDispatcher(Display *, int,
						XtEventDispatchProc);
extern void XtSetKeyTranslator(Display *, XtKeyProc);
extern void XtSetKeyboardFocus(Widget, Widget);
extern XtLanguageProc XtSetLanguageProc(XtAppContext, XtLanguageProc,
					XtPointer);
extern void XtSetMappedWhenManaged(Widget, int);
extern void XtSetMultiClickTime(Display *, int);
extern void XtSetSelectionParameters(Widget, Atom, Atom, XtPointer,
				     long unsigned int, int);
extern void XtSetSelectionTimeout(long unsigned int);
extern void XtSetSensitive(Widget, int);
extern void XtSetSubvalues(XtPointer, XtResourceList, Cardinal, ArgList,
			   Cardinal);
extern void XtSetTypeConverter(const char *, const char *, XtTypeConverter,
			       XtConvertArgList, Cardinal, XtCacheType,
			       XtDestructor);
extern void XtSetValues(Widget, ArgList, Cardinal);
extern void XtSetWMColormapWindows(Widget, Widget *, Cardinal);
extern void XtSetWarningHandler(XtErrorHandler);
extern void XtSetWarningMsgHandler(XtErrorMsgHandler);
extern void XtStringConversionWarning(const char *, const char *);
extern WidgetClass XtSuperclass(Widget);
extern void XtToolkitInitialize(void);
extern Boolean XtToolkitThreadInitialize(void);
extern void XtTranslateCoords(Widget, int, int, Position *, Position *);
extern void XtTranslateKey(Display *, unsigned int, Modifiers, Modifiers *,
			   KeySym *);
extern void XtTranslateKeycode(Display *, unsigned int, Modifiers,
			       Modifiers *, KeySym *);
extern void XtUngrabButton(Widget, unsigned int, Modifiers);
extern void XtUngrabKey(Widget, unsigned int, Modifiers);
extern void XtUngrabKeyboard(Widget, Time);
extern void XtUngrabPointer(Widget, Time);
extern void XtUninstallTranslations(Widget);
extern void XtUnmapWidget(Widget);
extern void XtUnrealizeWidget(Widget);
extern void XtUnregisterDrawable(Display *, Drawable);
extern Widget XtVaAppCreateShell(const char *, const char *, WidgetClass,
				 Display *, ...);
extern Widget XtVaAppInitialize(XtAppContext *, const char *,
				XrmOptionDescList, Cardinal, int *,
				String *, String *, ...);
extern XtVarArgsList XtVaCreateArgsList(XtPointer, ...);
extern Widget XtVaCreateManagedWidget(const char *, WidgetClass, Widget,
				      ...);
extern Widget XtVaCreatePopupShell(const char *, WidgetClass, Widget, ...);
extern Widget XtVaCreateWidget(const char *, WidgetClass, Widget, ...);
extern void XtVaGetApplicationResources(Widget, XtPointer, XtResourceList,
					Cardinal, ...);
extern void XtVaGetSubresources(Widget, XtPointer, const char *,
				const char *, XtResourceList, Cardinal,
				...);
extern void XtVaGetSubvalues(XtPointer, XtResourceList, Cardinal, ...);
extern void XtVaGetValues(Widget, ...);
extern Widget XtVaOpenApplication(XtAppContext *, const char *,
				  XrmOptionDescList, Cardinal, int *,
				  String *, String *, WidgetClass, ...);
extern void XtVaSetSubvalues(XtPointer, XtResourceList, Cardinal, ...);
extern void XtVaSetValues(Widget, ...);
extern void XtWarning(const char *);
extern void XtWarningMsg(const char *, const char *, const char *,
			 const char *, String *, Cardinal *);
extern XtAppContext XtWidgetToApplicationContext(Widget);
extern Window XtWindow(Widget);
extern Window XtWindowOfObject(Widget);
extern Widget XtWindowToWidget(Display *, Window);
extern Boolean _XtCheckSubclassFlag(Widget, unsigned int);
extern Boolean _XtIsSubclassOf(Widget, WidgetClass, WidgetClass,
			       unsigned int);
extern const XtConvertArgRec colorConvertArgs[];

6.10.9. X11/IntrinsicI.h


#define CALLGEOTAT(f)
#define XTERROR_PREFIX	""
#define XTWARNING_PREFIX	""
#define XtStackAlloc(size,stack_cache_array)	((size) <= sizeof(stack_cache_array) ? (XtPointer)(stack_cache_array) : XtMalloc((unsigned)(size)))
#define XtWindowOfObject(object)	((XtIsWidget(object) ? (object) : _XtWindowedAncestor(object)) ->core.window)
#define XtIsSensitive(object)	(XtIsRectObj(object) ? ((object)->core.sensitive && (object)->core.ancestor_sensitive) : False)
#define XtIsManaged(object)	(XtIsRectObj(object) ? (object)->core.managed : False)
#define XtScreenOfObject(object)	(XtIsWidget(object) ? (object)->core.screen : _XtIsHookObject(object) ? ((HookObject)(object))->hooks.screen : _XtWindowedAncestor(object)->core.screen)
#define XtDisplayOfObject(object)	(XtIsWidget(object) ? (object)->core.screen->display : _XtIsHookObject(object) ? ((HookObject)(object))->hooks.screen->display : _XtWindowedAncestor(object)->core.screen->display)
#define XFILESEARCHPATHDEFAULT	"/usr/lib/X11/%L/%T/%N%S:/usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S"
#define ERRORDB	"/usr/lib/X11/XtErrorDB"
#define RectObjClassFlag	0x02
#define WidgetClassFlag	0x04
#define CompositeClassFlag	0x08
#define ConstraintClassFlag	0x10
#define ShellClassFlag	0x20
#define WMShellClassFlag	0x40
#define TopLevelClassFlag	0x80
#define _XtintrinsicI_h	1
#define XtBZero(dst,size)	bzero((char *) (dst), (int) (size))
#define XtMemmove(dst,src,size)	if ((char *)(dst) != (char *)(src)) { (void) memcpy((char *) (dst), (char *) (src), (int) (size)); }
#define XtMemcmp(b1,b2,size)	memcmp((char *) (b1), (char *) (b2), (int) (size))
#define _XBCOPYFUNC	_XtBcopy
#define XtStackFree(pointer,stack_cache_array)	{ if ((pointer) != ((XtPointer)(stack_cache_array))) XtFree(pointer); }

extern String XtCXtToolkitError;

6.10.10. X11/IntrinsicP.h


#define XtCheckSubclass(w,widget_class,message)
#define XtExposeNoCompress	((XtEnum)False)
#define XtExposeCompressSeries	((XtEnum)True)
#define XtVersion	(XT_VERSION * 1000 + XT_REVISION)
#define XtVersionDontCheck	0
#define XtExposeGraphicsExpose	0x10
#define XtExposeGraphicsExposeMerged	0x20
#define XtExposeNoExpose	0x40
#define XtExposeNoRegion	0x80
#define _XtintrinsicP_h	1
#define XT_VERSION	11
#define XtExposeCompressMultiple	2
#define XtExposeCompressMaximal	3
#define XT_REVISION	6

typedef struct {
    long int xrm_name;
    long int xrm_class;
    long int xrm_type;
    Cardinal xrm_size;
    int xrm_offset;
    long int xrm_default_type;
    XtPointer xrm_default_addr;
} XrmResource;
typedef XrmResource *XrmResourceList;
typedef struct _XtTMRec *XtTM;
typedef struct {
    String name;
    String type;
    XtArgVal value;
    int size;
} XtTypedArg;
typedef XtTypedArg *XtTypedArgList;
typedef void (*XtProc) (void);
typedef void (*XtWidgetClassProc) (WidgetClass);
typedef void (*XtInitProc) (Widget, Widget, ArgList, Cardinal *);
typedef void (*XtArgsProc) (Widget, ArgList, Cardinal *);
typedef void (*XtRealizeProc) (Widget, XtValueMask *,
			       XSetWindowAttributes *);
typedef void (*XtWidgetProc) (Widget);
typedef void (*XtExposeProc) (Widget, XEvent *, Region);
typedef Boolean(*XtArgsFunc) (Widget, ArgList, Cardinal *);
typedef void (*XtAlmostProc) (Widget, Widget, XtWidgetGeometry *,
			      XtWidgetGeometry *);
typedef Boolean(*XtAcceptFocusProc) (Widget, Time *);
typedef long unsigned int XtVersionType;
typedef XtGeometryResult(*XtGeometryHandler) (Widget, XtWidgetGeometry *,
					      XtWidgetGeometry *);
typedef void (*XtAllocateProc) (WidgetClass, Cardinal *, Cardinal *,
				ArgList, Cardinal *, XtTypedArgList,
				Cardinal *, struct _WidgetRec * *,
				void **);
typedef void (*XtDeallocateProc) (struct _WidgetRec *, void *);
typedef struct _XtTMRec {
    XtTranslations translations;
    XtBoundActions proc_table;
    struct _XtStateRec *current_state;
    long unsigned int lastEventTime;
} XtTMRec;

typedef void (*XtStringProc) (Widget, String);
typedef Boolean(*XtSetValuesFunc) (Widget, Widget, Widget, ArgList,
				   Cardinal *);
extern void XtConfigureWidget(Widget, int, int, unsigned int, unsigned int,
			      unsigned int);
extern void XtCreateWindow(Widget, unsigned int, Visual *, XtValueMask,
			   XSetWindowAttributes *);
extern Boolean XtIsComposite(Widget);
extern Boolean XtIsConstraint(Widget);
extern Boolean XtIsRectObj(Widget);
extern Boolean XtIsShell(Widget);
extern Boolean XtIsTopLevelShell(Widget);
extern Boolean XtIsWMShell(Widget);
extern Boolean XtIsWidget(Widget);
extern void XtMoveWidget(Widget, int, int);
extern void XtProcessLock(void);
extern void XtProcessUnlock(void);
extern void XtResizeWidget(Widget, unsigned int, unsigned int,
			   unsigned int);
extern void XtResizeWindow(Widget);
extern void _XtInherit(void);

6.10.11. X11/Object.h


#define _XtObject_h	1

typedef struct _ObjectClassRec *ObjectClass;
typedef struct _ObjectClassRec *Object;
extern WidgetClass objectClass;

6.10.12. X11/ObjectP.h


#define XtInheritAllocate	((XtAllocateProc) _XtInherit)
#define XtInheritDeallocate	((XtDeallocateProc) _XtInherit)
#define _Xt_ObjectP_h_	1
#define XtObjectExtensionVersion	1L

typedef struct _ObjectPart {
    Widget self;
    WidgetClass widget_class;
    Widget parent;
    XrmName xrm_name;
    Boolean being_destroyed;
    XtCallbackList destroy_callbacks;
    XtPointer constraints;
} ObjectPart;
typedef struct _ObjectRec {
    ObjectPart object;
} ObjectRec;
typedef struct _ObjectClassPart {
    WidgetClass superclass;
    String class_name;
    Cardinal widget_size;
    XtProc class_initialize;
    XtWidgetClassProc class_part_initialize;
    XtEnum class_inited;
    XtInitProc initialize;
    XtArgsProc initialize_hook;
    XtProc obj1;
    XtPointer obj2;
    Cardinal obj3;
    XtResourceList resources;
    Cardinal num_resources;
    XrmClass xrm_class;
    Boolean obj4;
    XtEnum obj5;
    Boolean obj6;
    Boolean obj7;
    XtWidgetProc destroy;
    XtProc obj8;
    XtProc obj9;
    XtSetValuesFunc set_values;
    XtArgsFunc set_values_hook;
    XtProc obj10;
    XtArgsProc get_values_hook;
    XtProc obj11;
    XtVersionType version;
    XtPointer callback_private;
    String obj12;
    XtProc obj13;
    XtProc obj14;
    XtPointer extension;
} ObjectClassPart;
typedef struct {
    XtPointer next_extension;
    XrmQuark record_type;
    long int version;
    Cardinal record_size;
    XtAllocateProc allocate;
    XtDeallocateProc deallocate;
} ObjectClassExtensionRec;
typedef ObjectClassExtensionRec *ObjectClassExtension;

typedef struct _ObjectClassRec {
    ObjectClassPart object_class;
} ObjectClassRec;
extern ObjectClassRec objectClassRec;

6.10.13. X11/RectObj.h


typedef struct _RectObjRec *RectObj;
typedef struct _RectObjClassRec *RectObjClass;
extern WidgetClass rectObjClass;

6.10.14. X11/RectObjP.h


typedef struct _RectObjPart {
    Position x;
    Position y;
    Dimension width;
    Dimension height;
    Dimension border_width;
    Boolean managed;
    Boolean sensitive;
    Boolean ancestor_sensitive;
} RectObjPart;

typedef struct _RectObjRec {
    ObjectPart object;
    RectObjPart rectangle;
} RectObjRec;

typedef struct _RectObjClassPart {
    WidgetClass superclass;
    String class_name;
    Cardinal widget_size;
    XtProc class_initialize;
    XtWidgetClassProc class_part_initialize;
    XtEnum class_inited;
    XtInitProc initialize;
    XtArgsProc initialize_hook;
    XtProc rect1;
    XtPointer rect2;
    Cardinal rect3;
    XtResourceList resources;
    Cardinal num_resources;
    XrmClass xrm_class;
    Boolean rect4;
    XtEnum rect5;
    Boolean rect6;
    Boolean rect7;
    XtWidgetProc destroy;
    XtWidgetProc resize;
    XtExposeProc expose;
    XtSetValuesFunc set_values;
    XtArgsFunc set_values_hook;
    XtAlmostProc set_values_almost;
    XtArgsProc get_values_hook;
    XtProc rect9;
    XtVersionType version;
    XtPointer callback_private;
    String rect10;
    XtGeometryHandler query_geometry;
    XtProc rect11;
    XtPointer extension;
} RectObjClassPart;

typedef struct _RectObjClassRec {
    RectObjClassPart rect_class;
} RectObjClassRec;
extern RectObjClassRec rectObjClassRec;

6.10.15. X11/ResourceI.h


#define _XtresourceI_h
#define StringToClass(string)	XrmStringToQuark(string)
#define StringToName(string)	XrmStringToQuark(string)
#define StringToQuark(string)	XrmStringToQuark(string)

extern void _XtCopyFromArg(XtArgVal, char *, unsigned int);

6.10.16. X11/Shell.h


#define XtNiconName	((char*)&XtShellStrings[0])
#define XtCDiscardCommand	((char*)&XtShellStrings[1001])
#define XtNenvironment	((char*)&XtShellStrings[1016])
#define XtCEnvironment	((char*)&XtShellStrings[1028])
#define XtNinteractCallback	((char*)&XtShellStrings[1040])
#define XtNvisual	((char*)&XtShellStrings[104])
#define XtNjoinSession	((char*)&XtShellStrings[1057])
#define XtCJoinSession	((char*)&XtShellStrings[1069])
#define XtNprogramPath	((char*)&XtShellStrings[1081])
#define XtCProgramPath	((char*)&XtShellStrings[1093])
#define XtNresignCommand	((char*)&XtShellStrings[1105])
#define XtCResignCommand	((char*)&XtShellStrings[1119])
#define XtCVisual	((char*)&XtShellStrings[111])
#define XtNrestartCommand	((char*)&XtShellStrings[1133])
#define XtCRestartCommand	((char*)&XtShellStrings[1148])
#define XtNrestartStyle	((char*)&XtShellStrings[1163])
#define XtCRestartStyle	((char*)&XtShellStrings[1176])
#define XtNsaveCallback	((char*)&XtShellStrings[1189])
#define XtNtitleEncoding	((char*)&XtShellStrings[118])
#define XtNsaveCompleteCallback	((char*)&XtShellStrings[1202])
#define XtNsessionID	((char*)&XtShellStrings[1223])
#define XtCSessionID	((char*)&XtShellStrings[1233])
#define XtNshutdownCommand	((char*)&XtShellStrings[1243])
#define XtCShutdownCommand	((char*)&XtShellStrings[1259])
#define XtNerrorCallback	((char*)&XtShellStrings[1275])
#define XtCTitleEncoding	((char*)&XtShellStrings[132])
#define XtNsaveUnder	((char*)&XtShellStrings[146])
#define XtCSaveUnder	((char*)&XtShellStrings[156])
#define XtNtransient	((char*)&XtShellStrings[166])
#define XtCTransient	((char*)&XtShellStrings[176])
#define XtNoverrideRedirect	((char*)&XtShellStrings[186])
#define XtNiconPixmap	((char*)&XtShellStrings[18])
#define XtCOverrideRedirect	((char*)&XtShellStrings[203])
#define XtNtransientFor	((char*)&XtShellStrings[220])
#define XtCTransientFor	((char*)&XtShellStrings[233])
#define XtNiconNameEncoding	((char*)&XtShellStrings[246])
#define XtCIconNameEncoding	((char*)&XtShellStrings[263])
#define XtNallowShellResize	((char*)&XtShellStrings[280])
#define XtCAllowShellResize	((char*)&XtShellStrings[297])
#define XtCIconPixmap	((char*)&XtShellStrings[29])
#define XtNcreatePopupChildProc	((char*)&XtShellStrings[314])
#define XtCCreatePopupChildProc	((char*)&XtShellStrings[335])
#define XtNtitle	((char*)&XtShellStrings[356])
#define XtCTitle	((char*)&XtShellStrings[362])
#define XtNargc	((char*)&XtShellStrings[373])
#define XtCArgc	((char*)&XtShellStrings[378])
#define XtNargv	((char*)&XtShellStrings[383])
#define XtCArgv	((char*)&XtShellStrings[388])
#define XtNiconX	((char*)&XtShellStrings[393])
#define XtCIconX	((char*)&XtShellStrings[399])
#define XtNiconY	((char*)&XtShellStrings[405])
#define XtNiconWindow	((char*)&XtShellStrings[40])
#define XtCIconY	((char*)&XtShellStrings[411])
#define XtNinput	((char*)&XtShellStrings[417])
#define XtCInput	((char*)&XtShellStrings[423])
#define XtNiconic	((char*)&XtShellStrings[429])
#define XtCIconic	((char*)&XtShellStrings[436])
#define XtNinitialState	((char*)&XtShellStrings[443])
#define XtCInitialState	((char*)&XtShellStrings[456])
#define XtNgeometry	((char*)&XtShellStrings[469])
#define XtCGeometry	((char*)&XtShellStrings[478])
#define XtNbaseWidth	((char*)&XtShellStrings[487])
#define XtCBaseWidth	((char*)&XtShellStrings[497])
#define XtNbaseHeight	((char*)&XtShellStrings[507])
#define XtCBaseHeight	((char*)&XtShellStrings[518])
#define XtCIconWindow	((char*)&XtShellStrings[51])
#define XtNwinGravity	((char*)&XtShellStrings[529])
#define XtCWinGravity	((char*)&XtShellStrings[540])
#define XtNminWidth	((char*)&XtShellStrings[551])
#define XtCMinWidth	((char*)&XtShellStrings[560])
#define XtNminHeight	((char*)&XtShellStrings[569])
#define XtCMinHeight	((char*)&XtShellStrings[579])
#define XtNmaxWidth	((char*)&XtShellStrings[589])
#define XtCMaxWidth	((char*)&XtShellStrings[598])
#define XtNmaxHeight	((char*)&XtShellStrings[607])
#define XtCMaxHeight	((char*)&XtShellStrings[617])
#define XtNwidthInc	((char*)&XtShellStrings[627])
#define XtNiconMask	((char*)&XtShellStrings[62])
#define XtCWidthInc	((char*)&XtShellStrings[636])
#define XtNheightInc	((char*)&XtShellStrings[645])
#define XtCHeightInc	((char*)&XtShellStrings[655])
#define XtNminAspectY	((char*)&XtShellStrings[665])
#define XtCMinAspectY	((char*)&XtShellStrings[676])
#define XtNmaxAspectY	((char*)&XtShellStrings[687])
#define XtCMaxAspectY	((char*)&XtShellStrings[698])
#define XtNminAspectX	((char*)&XtShellStrings[709])
#define XtCIconMask	((char*)&XtShellStrings[71])
#define XtCMinAspectX	((char*)&XtShellStrings[720])
#define XtNmaxAspectX	((char*)&XtShellStrings[731])
#define XtCMaxAspectX	((char*)&XtShellStrings[742])
#define XtNwmTimeout	((char*)&XtShellStrings[753])
#define XtCWmTimeout	((char*)&XtShellStrings[763])
#define XtNwaitForWm	((char*)&XtShellStrings[773])
#define XtCWaitForWm	((char*)&XtShellStrings[783])
#define XtNwaitforwm	((char*)&XtShellStrings[793])
#define XtCWaitforwm	((char*)&XtShellStrings[803])
#define XtNwindowGroup	((char*)&XtShellStrings[80])
#define XtNclientLeader	((char*)&XtShellStrings[813])
#define XtCClientLeader	((char*)&XtShellStrings[826])
#define XtNwindowRole	((char*)&XtShellStrings[839])
#define XtCWindowRole	((char*)&XtShellStrings[850])
#define XtNurgency	((char*)&XtShellStrings[861])
#define XtCUrgency	((char*)&XtShellStrings[869])
#define XtNcancelCallback	((char*)&XtShellStrings[877])
#define XtNcloneCommand	((char*)&XtShellStrings[892])
#define XtCCloneCommand	((char*)&XtShellStrings[905])
#define XtNconnection	((char*)&XtShellStrings[918])
#define XtCConnection	((char*)&XtShellStrings[929])
#define XtCWindowGroup	((char*)&XtShellStrings[92])
#define XtNcurrentDirectory	((char*)&XtShellStrings[940])
#define XtCCurrentDirectory	((char*)&XtShellStrings[957])
#define XtNdieCallback	((char*)&XtShellStrings[974])
#define XtNdiscardCommand	((char*)&XtShellStrings[986])
#define XtCIconName	((char*)&XtShellStrings[9])
#define _XtShell_h	1

extern char XtShellStrings[];
extern WidgetClass applicationShellWidgetClass;
extern WidgetClass overrideShellWidgetClass;
extern WidgetClass sessionShellWidgetClass;
extern WidgetClass shellWidgetClass;
extern WidgetClass topLevelShellWidgetClass;
extern WidgetClass transientShellWidgetClass;
extern WidgetClass wmShellWidgetClass;

6.10.17. X11/ShellP.h


struct _OldXSizeHints {
    long int flags;
    int x;
    int y;
    int width;
    int height;
    int min_width;
    int min_height;
    int max_width;
    int max_height;
    int width_inc;
    int height_inc;
    struct {
	int x;
	int y;
    } min_aspect;
    struct {
	int x;
	int y;
    } max_aspect;
};

#define _XtShellPositionValid	((Boolean)(1<<0))
#define _XtShellNotReparented	((Boolean)(1<<1))
#define _XtShellPPositionOK	((Boolean)(1<<2))
#define _XtShellGeometryParsed	((Boolean)(1<<3))
#define XtInheritRootGeometryManager	((XtGeometryHandler)_XtInherit)
#define XtShellExtensionVersion	1L

typedef struct {
    XtPointer extension;
} ShellClassPart;
typedef struct {
    XtPointer next_extension;
    XrmQuark record_type;
    long int version;
    Cardinal record_size;
    XtGeometryHandler root_geometry_manager;
} ShellClassExtensionRec;
typedef ShellClassExtensionRec *ShellClassExtension;
typedef struct _ShellClassRec {
    CoreClassPart core_class;
    CompositeClassPart composite_class;
    ShellClassPart shell_class;
} ShellClassRec;
typedef struct {
    char *geometry;
    XtCreatePopupChildProc create_popup_child_proc;
    XtGrabKind grab_kind;
    Boolean spring_loaded;
    Boolean popped_up;
    Boolean allow_shell_resize;
    Boolean client_specified;
    Boolean save_under;
    Boolean override_redirect;
    XtCallbackList popup_callback;
    XtCallbackList popdown_callback;
    Visual *visual;
} ShellPart;
typedef struct {
    CorePart core;
    CompositePart composite;
    ShellPart shell;
} ShellRec;
typedef ShellRec *ShellWidget;
typedef struct {
    XtPointer extension;
} OverrideShellClassPart;
typedef struct _OverrideShellClassRec {
    CoreClassPart core_class;
    CompositeClassPart composite_class;
    ShellClassPart shell_class;
    OverrideShellClassPart override_shell_class;
} OverrideShellClassRec;
typedef struct {
    int frabjous;
} OverrideShellPart;
typedef struct {
    CorePart core;
    CompositePart composite;
    ShellPart shell;
    OverrideShellPart override;
} OverrideShellRec;
typedef OverrideShellRec *OverrideShellWidget;
typedef struct {
    XtPointer extension;
} WMShellClassPart;
typedef struct _WMShellClassRec {
    CoreClassPart core_class;
    CompositeClassPart composite_class;
    ShellClassPart shell_class;
    WMShellClassPart wm_shell_class;
} WMShellClassRec;
typedef struct {
    char *title;
    int wm_timeout;
    Boolean wait_for_wm;
    Boolean transient;
    Boolean urgency;
    Widget client_leader;
    String window_role;
    struct _OldXSizeHints size_hints;
    XWMHints wm_hints;
    int base_width;
    int base_height;
    int win_gravity;
    Atom title_encoding;
} WMShellPart;
typedef struct {
    CorePart core;
    CompositePart composite;
    ShellPart shell;
    WMShellPart wm;
} WMShellRec;
typedef WMShellRec *WMShellWidget;
typedef struct {
    XtPointer extension;
} TransientShellClassPart;
typedef struct _TransientShellClassRec {
    CoreClassPart core_class;
    CompositeClassPart composite_class;
    ShellClassPart shell_class;
    WMShellClassPart wm_shell_class;
    VendorShellClassPart vendor_shell_class;
    TransientShellClassPart transient_shell_class;
} TransientShellClassRec;
typedef struct {
    Widget transient_for;
} TransientShellPart;
typedef struct {
    CorePart core;
    CompositePart composite;
    ShellPart shell;
    WMShellPart wm;
    VendorShellPart vendor;
    TransientShellPart transient;
} TransientShellRec;
typedef TransientShellRec *TransientShellWidget;
typedef struct {
    XtPointer extension;
} TopLevelShellClassPart;
typedef struct _TopLevelShellClassRec {
    CoreClassPart core_class;
    CompositeClassPart composite_class;
    ShellClassPart shell_class;
    WMShellClassPart wm_shell_class;
    VendorShellClassPart vendor_shell_class;
    TopLevelShellClassPart top_level_shell_class;
} TopLevelShellClassRec;
typedef struct {
    char *icon_name;
    Boolean iconic;
    Atom icon_name_encoding;
} TopLevelShellPart;
typedef struct {
    CorePart core;
    CompositePart composite;
    ShellPart shell;
    WMShellPart wm;
    VendorShellPart vendor;
    TopLevelShellPart topLevel;
} TopLevelShellRec;
typedef TopLevelShellRec *TopLevelShellWidget;
typedef struct {
    XtPointer extension;
} ApplicationShellClassPart;
typedef struct _ApplicationShellClassRec {
    CoreClassPart core_class;
    CompositeClassPart composite_class;
    ShellClassPart shell_class;
    WMShellClassPart wm_shell_class;
    VendorShellClassPart vendor_shell_class;
    TopLevelShellClassPart top_level_shell_class;
    ApplicationShellClassPart application_shell_class;
} ApplicationShellClassRec;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    char *c_class;
#else
    char *class;
#endif
    XrmClass xrm_class;
    int argc;
    char **argv;
} ApplicationShellPart;
typedef struct {
    CorePart core;
    CompositePart composite;
    ShellPart shell;
    WMShellPart wm;
    VendorShellPart vendor;
    TopLevelShellPart topLevel;
    ApplicationShellPart application;
} ApplicationShellRec;
typedef ApplicationShellRec *ApplicationShellWidget;
typedef struct {
    XtPointer extension;
} SessionShellClassPart;
typedef struct _SessionShellClassRec {
    CoreClassPart core_class;
    CompositeClassPart composite_class;
    ShellClassPart shell_class;
    WMShellClassPart wm_shell_class;
    VendorShellClassPart vendor_shell_class;
    TopLevelShellClassPart top_level_shell_class;
    ApplicationShellClassPart application_shell_class;
    SessionShellClassPart session_shell_class;
} SessionShellClassRec;
typedef struct _XtSaveYourselfRec *XtSaveYourself;
typedef struct {
    SmcConn connection;
    String session_id;
    char **restart_command;
    char **clone_command;
    char **discard_command;
    char **resign_command;
    char **shutdown_command;
    char **environment;
    String current_dir;
    String program_path;
    unsigned char restart_style;
    unsigned char checkpoint_state;
    Boolean join_session;
    XtCallbackList save_callbacks;
    XtCallbackList interact_callbacks;
    XtCallbackList cancel_callbacks;
    XtCallbackList save_complete_callbacks;
    XtCallbackList die_callbacks;
    XtCallbackList error_callbacks;
    XtSaveYourself save;
    XtInputId input_id;
    XtPointer ses20;
    XtPointer ses19;
    XtPointer ses18;
    XtPointer ses17;
    XtPointer ses16;
    XtPointer ses15;
    XtPointer ses14;
    XtPointer ses13;
    XtPointer ses12;
    XtPointer ses11;
    XtPointer ses10;
    XtPointer ses9;
    XtPointer ses8;
    XtPointer ses7;
    XtPointer ses6;
    XtPointer ses5;
    XtPointer ses4;
    XtPointer ses3;
    XtPointer ses2;
    XtPointer ses1;
} SessionShellPart;
typedef struct {
    CorePart core;
    CompositePart composite;
    ShellPart shell;
    WMShellPart wm;
    VendorShellPart vendor;
    TopLevelShellPart topLevel;
    ApplicationShellPart application;
    SessionShellPart session;
} SessionShellRec;
typedef SessionShellRec *SessionShellWidget;
extern ApplicationShellClassRec applicationShellClassRec;
extern OverrideShellClassRec overrideShellClassRec;
extern SessionShellClassRec sessionShellClassRec;
extern ShellClassRec shellClassRec;
extern TopLevelShellClassRec topLevelShellClassRec;
extern TransientShellClassRec transientShellClassRec;
extern WMShellClassRec wmShellClassRec;

6.10.18. X11/StringDefs.h


#define XtNaccelerators	((char*)&XtStrings[0])
#define XtCFile	((char*)&XtStrings[1012])
#define XtCFont	((char*)&XtStrings[1017])
#define XtCForeground	((char*)&XtStrings[1022])
#define XtCFraction	((char*)&XtStrings[1033])
#define XtCFunction	((char*)&XtStrings[1042])
#define XtCHeight	((char*)&XtStrings[1051])
#define XtCHSpace	((char*)&XtStrings[1058])
#define XtCIndex	((char*)&XtStrings[1065])
#define XtCInitialResourcesPersistent	((char*)&XtStrings[1071])
#define XtCInsertPosition	((char*)&XtStrings[1098])
#define XtCInterval	((char*)&XtStrings[1113])
#define XtNborderPixmap	((char*)&XtStrings[111])
#define XtCJustify	((char*)&XtStrings[1122])
#define XtCKnobIndent	((char*)&XtStrings[1130])
#define XtCKnobPixel	((char*)&XtStrings[1141])
#define XtCLabel	((char*)&XtStrings[1151])
#define XtCLength	((char*)&XtStrings[1157])
#define XtCMappedWhenManaged	((char*)&XtStrings[1164])
#define XtCMargin	((char*)&XtStrings[1182])
#define XtCMenuEntry	((char*)&XtStrings[1189])
#define XtCNotify	((char*)&XtStrings[1199])
#define XtCOrientation	((char*)&XtStrings[1206])
#define XtCParameter	((char*)&XtStrings[1218])
#define XtCPixmap	((char*)&XtStrings[1228])
#define XtCPosition	((char*)&XtStrings[1235])
#define XtCReadOnly	((char*)&XtStrings[1244])
#define XtNborderWidth	((char*)&XtStrings[124])
#define XtCResize	((char*)&XtStrings[1253])
#define XtCReverseVideo	((char*)&XtStrings[1260])
#define XtCScreen	((char*)&XtStrings[1273])
#define XtCScrollProc	((char*)&XtStrings[1280])
#define XtCScrollDCursor	((char*)&XtStrings[1291])
#define XtCScrollHCursor	((char*)&XtStrings[1305])
#define XtCScrollLCursor	((char*)&XtStrings[1319])
#define XtCScrollRCursor	((char*)&XtStrings[1333])
#define XtCScrollUCursor	((char*)&XtStrings[1347])
#define XtCScrollVCursor	((char*)&XtStrings[1361])
#define XtNcallback	((char*)&XtStrings[136])
#define XtCSelection	((char*)&XtStrings[1375])
#define XtCSensitive	((char*)&XtStrings[1385])
#define XtCSelectionArray	((char*)&XtStrings[1395])
#define XtNallowHoriz	((char*)&XtStrings[13])
#define XtCSpace	((char*)&XtStrings[1410])
#define XtCString	((char*)&XtStrings[1416])
#define XtCTextOptions	((char*)&XtStrings[1423])
#define XtCTextPosition	((char*)&XtStrings[1435])
#define XtCTextSink	((char*)&XtStrings[1448])
#define XtCTextSource	((char*)&XtStrings[1457])
#define XtNchildren	((char*)&XtStrings[145])
#define XtCThickness	((char*)&XtStrings[1468])
#define XtCThumb	((char*)&XtStrings[1478])
#define XtCTranslations	((char*)&XtStrings[1484])
#define XtCValue	((char*)&XtStrings[1497])
#define XtCVSpace	((char*)&XtStrings[1503])
#define XtCWidth	((char*)&XtStrings[1510])
#define XtCWindow	((char*)&XtStrings[1516])
#define XtCX	((char*)&XtStrings[1523])
#define XtCY	((char*)&XtStrings[1525])
#define XtRAcceleratorTable	((char*)&XtStrings[1527])
#define XtRAtom	((char*)&XtStrings[1544])
#define XtRBitmap	((char*)&XtStrings[1549])
#define XtNcolormap	((char*)&XtStrings[154])
#define XtRBool	((char*)&XtStrings[1556])
#define XtRBoolean	((char*)&XtStrings[1561])
#define XtRCallback	((char*)&XtStrings[1569])
#define XtRCallProc	((char*)&XtStrings[1578])
#define XtRCardinal	((char*)&XtStrings[1587])
#define XtRColor	((char*)&XtStrings[1596])
#define XtRColormap	((char*)&XtStrings[1602])
#define XtRCursor	((char*)&XtStrings[1611])
#define XtRDimension	((char*)&XtStrings[1618])
#define XtRDisplay	((char*)&XtStrings[1628])
#define XtREditMode	((char*)&XtStrings[1636])
#define XtNdepth	((char*)&XtStrings[163])
#define XtREnum	((char*)&XtStrings[1645])
#define XtRFile	((char*)&XtStrings[1650])
#define XtRFloat	((char*)&XtStrings[1655])
#define XtRFont	((char*)&XtStrings[1661])
#define XtRFontStruct	((char*)&XtStrings[1666])
#define XtRFunction	((char*)&XtStrings[1677])
#define XtRGeometry	((char*)&XtStrings[1686])
#define XtRImmediate	((char*)&XtStrings[1695])
#define XtNdestroyCallback	((char*)&XtStrings[169])
#define XtRInitialState	((char*)&XtStrings[1705])
#define XtRInt	((char*)&XtStrings[1718])
#define XtRJustify	((char*)&XtStrings[1722])
#define XtRLongBoolean	((char*)&XtStrings[1730])
#define XtRObject	((char*)&XtStrings[1735])
#define XtROrientation	((char*)&XtStrings[1742])
#define XtRPixel	((char*)&XtStrings[1754])
#define XtRPixmap	((char*)&XtStrings[1760])
#define XtRPointer	((char*)&XtStrings[1767])
#define XtRPosition	((char*)&XtStrings[1775])
#define XtRScreen	((char*)&XtStrings[1784])
#define XtRShort	((char*)&XtStrings[1791])
#define XtRString	((char*)&XtStrings[1797])
#define XtRStringArray	((char*)&XtStrings[1804])
#define XtRStringTable	((char*)&XtStrings[1816])
#define XtRUnsignedChar	((char*)&XtStrings[1828])
#define XtRTranslationTable	((char*)&XtStrings[1841])
#define XtRVisual	((char*)&XtStrings[1858])
#define XtNeditType	((char*)&XtStrings[185])
#define XtRWidget	((char*)&XtStrings[1865])
#define XtRWidgetClass	((char*)&XtStrings[1872])
#define XtRWidgetList	((char*)&XtStrings[1884])
#define XtRWindow	((char*)&XtStrings[1895])
#define XtEoff	((char*)&XtStrings[1902])
#define XtEfalse	((char*)&XtStrings[1906])
#define XtEno	((char*)&XtStrings[1912])
#define XtEon	((char*)&XtStrings[1915])
#define XtEtrue	((char*)&XtStrings[1918])
#define XtEyes	((char*)&XtStrings[1923])
#define XtEvertical	((char*)&XtStrings[1927])
#define XtEhorizontal	((char*)&XtStrings[1936])
#define XtEtextRead	((char*)&XtStrings[1947])
#define XtNfile	((char*)&XtStrings[194])
#define XtEtextAppend	((char*)&XtStrings[1952])
#define XtEtextEdit	((char*)&XtStrings[1959])
#define XtExtdefaultbackground	((char*)&XtStrings[1964])
#define XtExtdefaultforeground	((char*)&XtStrings[1984])
#define XtNfont	((char*)&XtStrings[199])
#define XtExtdefaultfont	((char*)&XtStrings[2004])
#define XtNfontSet	((char*)&XtStrings[2018])
#define XtRFontSet	((char*)&XtStrings[2026])
#define XtCFontSet	((char*)&XtStrings[2034])
#define XtRGravity	((char*)&XtStrings[2042])
#define XtNforceBars	((char*)&XtStrings[204])
#define XtNcreateHook	((char*)&XtStrings[2050])
#define XtNchangeHook	((char*)&XtStrings[2061])
#define XtNconfigureHook	((char*)&XtStrings[2072])
#define XtNgeometryHook	((char*)&XtStrings[2086])
#define XtNdestroyHook	((char*)&XtStrings[2099])
#define XtNshells	((char*)&XtStrings[2111])
#define XtNnumShells	((char*)&XtStrings[2118])
#define XtRCommandArgArray	((char*)&XtStrings[2128])
#define XtRDirectoryString	((char*)&XtStrings[2144])
#define XtNforeground	((char*)&XtStrings[214])
#define XtREnvironmentArray	((char*)&XtStrings[2160])
#define XtRRestartStyle	((char*)&XtStrings[2177])
#define XtRSmcConn	((char*)&XtStrings[2190])
#define XtHcreate	((char*)&XtStrings[2198])
#define XtHsetValues	((char*)&XtStrings[2207])
#define XtHmanageChildren	((char*)&XtStrings[2219])
#define XtHunmanageChildren	((char*)&XtStrings[2236])
#define XtHmanageSet	((char*)&XtStrings[2255])
#define XtNfunction	((char*)&XtStrings[225])
#define XtHunmanageSet	((char*)&XtStrings[2267])
#define XtHrealizeWidget	((char*)&XtStrings[2281])
#define XtHunrealizeWidget	((char*)&XtStrings[2297])
#define XtHaddCallback	((char*)&XtStrings[2315])
#define XtHaddCallbacks	((char*)&XtStrings[2329])
#define XtHremoveCallback	((char*)&XtStrings[2344])
#define XtNheight	((char*)&XtStrings[234])
#define XtHremoveCallbacks	((char*)&XtStrings[2361])
#define XtHremoveAllCallbacks	((char*)&XtStrings[2379])
#define XtHaugmentTranslations	((char*)&XtStrings[2400])
#define XtNhighlight	((char*)&XtStrings[241])
#define XtHoverrideTranslations	((char*)&XtStrings[2422])
#define XtHuninstallTranslations	((char*)&XtStrings[2445])
#define XtHsetKeyboardFocus	((char*)&XtStrings[2469])
#define XtHsetWMColormapWindows	((char*)&XtStrings[2488])
#define XtNallowVert	((char*)&XtStrings[24])
#define XtHsetMappedWhenManaged	((char*)&XtStrings[2511])
#define XtNhSpace	((char*)&XtStrings[251])
#define XtHmapWidget	((char*)&XtStrings[2534])
#define XtHunmapWidget	((char*)&XtStrings[2546])
#define XtHpopup	((char*)&XtStrings[2560])
#define XtHpopupSpringLoaded	((char*)&XtStrings[2568])
#define XtHpopdown	((char*)&XtStrings[2588])
#define XtNindex	((char*)&XtStrings[258])
#define XtHconfigure	((char*)&XtStrings[2598])
#define XtHpreGeometry	((char*)&XtStrings[2610])
#define XtHpostGeometry	((char*)&XtStrings[2624])
#define XtHdestroy	((char*)&XtStrings[2639])
#define XtNinitialResourcesPersistent	((char*)&XtStrings[264])
#define XtNinnerHeight	((char*)&XtStrings[291])
#define XtNinnerWidth	((char*)&XtStrings[303])
#define XtNinnerWindow	((char*)&XtStrings[314])
#define XtNinsertPosition	((char*)&XtStrings[326])
#define XtNinternalHeight	((char*)&XtStrings[341])
#define XtNancestorSensitive	((char*)&XtStrings[34])
#define XtNinternalWidth	((char*)&XtStrings[356])
#define XtNjumpProc	((char*)&XtStrings[370])
#define XtNjustify	((char*)&XtStrings[379])
#define XtNknobHeight	((char*)&XtStrings[387])
#define XtNknobIndent	((char*)&XtStrings[398])
#define XtNknobPixel	((char*)&XtStrings[409])
#define XtNknobWidth	((char*)&XtStrings[419])
#define XtNlabel	((char*)&XtStrings[429])
#define XtNlength	((char*)&XtStrings[435])
#define XtNlowerRight	((char*)&XtStrings[442])
#define XtNmappedWhenManaged	((char*)&XtStrings[453])
#define XtNmenuEntry	((char*)&XtStrings[471])
#define XtNname	((char*)&XtStrings[481])
#define XtNnotify	((char*)&XtStrings[486])
#define XtNnumChildren	((char*)&XtStrings[493])
#define XtNorientation	((char*)&XtStrings[505])
#define XtNparameter	((char*)&XtStrings[517])
#define XtNpixmap	((char*)&XtStrings[527])
#define XtNbackground	((char*)&XtStrings[52])
#define XtNpopupCallback	((char*)&XtStrings[534])
#define XtNpopdownCallback	((char*)&XtStrings[548])
#define XtNresize	((char*)&XtStrings[564])
#define XtNreverseVideo	((char*)&XtStrings[571])
#define XtNscreen	((char*)&XtStrings[584])
#define XtNscrollProc	((char*)&XtStrings[591])
#define XtNscrollDCursor	((char*)&XtStrings[602])
#define XtNscrollHCursor	((char*)&XtStrings[616])
#define XtNscrollLCursor	((char*)&XtStrings[630])
#define XtNbackgroundPixmap	((char*)&XtStrings[63])
#define XtNscrollRCursor	((char*)&XtStrings[644])
#define XtNscrollUCursor	((char*)&XtStrings[658])
#define XtNscrollVCursor	((char*)&XtStrings[672])
#define XtNselection	((char*)&XtStrings[686])
#define XtNselectionArray	((char*)&XtStrings[696])
#define XtNsensitive	((char*)&XtStrings[711])
#define XtNshown	((char*)&XtStrings[721])
#define XtNspace	((char*)&XtStrings[727])
#define XtNstring	((char*)&XtStrings[733])
#define XtNtextOptions	((char*)&XtStrings[740])
#define XtNtextSink	((char*)&XtStrings[752])
#define XtNtextSource	((char*)&XtStrings[761])
#define XtNthickness	((char*)&XtStrings[772])
#define XtNthumb	((char*)&XtStrings[782])
#define XtNthumbProc	((char*)&XtStrings[788])
#define XtNtop	((char*)&XtStrings[798])
#define XtNtranslations	((char*)&XtStrings[802])
#define XtNbitmap	((char*)&XtStrings[80])
#define XtNunrealizeCallback	((char*)&XtStrings[815])
#define XtNupdate	((char*)&XtStrings[833])
#define XtNuseBottom	((char*)&XtStrings[840])
#define XtNuseRight	((char*)&XtStrings[850])
#define XtNvalue	((char*)&XtStrings[859])
#define XtNvSpace	((char*)&XtStrings[865])
#define XtNwidth	((char*)&XtStrings[872])
#define XtNwindow	((char*)&XtStrings[878])
#define XtNborderColor	((char*)&XtStrings[87])
#define XtNx	((char*)&XtStrings[885])
#define XtNy	((char*)&XtStrings[887])
#define XtCAccelerators	((char*)&XtStrings[889])
#define XtCBackground	((char*)&XtStrings[902])
#define XtCBitmap	((char*)&XtStrings[913])
#define XtCBoolean	((char*)&XtStrings[920])
#define XtCBorderColor	((char*)&XtStrings[928])
#define XtCBorderWidth	((char*)&XtStrings[940])
#define XtCCallback	((char*)&XtStrings[952])
#define XtCColormap	((char*)&XtStrings[961])
#define XtCColor	((char*)&XtStrings[970])
#define XtCCursor	((char*)&XtStrings[976])
#define XtCDepth	((char*)&XtStrings[983])
#define XtCEditType	((char*)&XtStrings[989])
#define XtCEventBindings	((char*)&XtStrings[998])
#define XtNborder	((char*)&XtStrings[99])
#define _XtStringDefs_h_	1

extern char XtStrings[];

6.10.19. X11/TranslateI.h


struct _TranslationData {
    unsigned char hasBindings;
    unsigned char operation;
    TMShortCard numStateTrees;
    struct _TranslationData *composers[2];
    EventMask eventMask;
    TMStateTree stateTreeTbl[1];
};
typedef struct _ActionsRec *ActionPtr;
typedef struct _ActionsRec {
    int idx;
    String *params;
    Cardinal num_params;
    ActionPtr next;
} ActionRec;
typedef long unsigned int TMLongCard;
struct _LateBindings {
    unsigned int knot:1;
    unsigned int pair:1;
    short unsigned int ref_count;
    KeySym keysym;
};
typedef struct _LateBindings *LateBindingsPtr;
struct _TMTypeMatchRec {
    TMLongCard eventType;
    TMLongCard eventCode;
    TMLongCard eventCodeMask;
    MatchProc matchEvent;
};
typedef struct _TMTypeMatchRec *TMTypeMatch;
struct _TMModifierMatchRec {
    TMLongCard modifiers;
    TMLongCard modifierMask;
    LateBindingsPtr lateModifiers;
    Boolean standard;
};
typedef struct _TMModifierMatchRec *TMModifierMatch;
typedef struct _TMEventRec *TMEventPtr;
typedef Boolean(*MatchProc) (TMTypeMatch, TMModifierMatch, TMEventPtr);
struct _TMEventRec {
    XEvent *xev;
    Event event;
};
typedef struct _EventRec {
    TMLongCard modifiers;
    TMLongCard modifierMask;
    LateBindingsPtr lateModifiers;
    TMLongCard eventType;
    TMLongCard eventCode;
    TMLongCard eventCodeMask;
    MatchProc matchEvent;
    Boolean standard;
} Event;
typedef short unsigned int TMShortCard;
typedef struct _TMBranchHeadRec {
    unsigned int isSimple:1;
    unsigned int hasActions:1;
    unsigned int hasCycles:1;
    unsigned int more:13;
    TMShortCard typeIndex;
    TMShortCard modIndex;
} TMBranchHeadRec;
typedef struct _TMSimpleStateTreeRec {
    unsigned int isSimple:1;
    unsigned int isAccelerator:1;
    unsigned int mappingNotifyInterest:1;
    unsigned int refCount:13;
    TMShortCard numBranchHeads;
    TMShortCard numQuarks;
    TMShortCard unused;
    TMBranchHeadRec *branchHeadTbl;
    XrmQuark *quarkTbl;
} TMSimpleStateTreeRec;
struct _XtStateRec {
    unsigned int isCycleStart:1;
    unsigned int isCycleEnd:1;
    TMShortCard typeIndex;
    TMShortCard modIndex;
    ActionPtr actions;
    StatePtr nextLevel;
};
typedef struct _XtStateRec *StatePtr;
typedef struct _TMParseStateTreeRec {
    unsigned int isSimple:1;
    unsigned int isAccelerator:1;
    unsigned int mappingNotifyInterest:1;
    unsigned int isStackQuarks:1;
    unsigned int isStackBranchHeads:1;
    unsigned int isStackComplexBranchHeads:1;
    unsigned int unused:10;
    TMShortCard numBranchHeads;
    TMShortCard numQuarks;
    TMShortCard numComplexBranchHeads;
    TMBranchHeadRec *branchHeadTbl;
    XrmQuark *quarkTbl;
    StatePtr *complexBranchHeadTbl;
    TMShortCard branchHeadTblSize;
    TMShortCard quarkTblSize;
    TMShortCard complexBranchHeadTblSize;
    StatePtr head;
} TMParseStateTreeRec;
typedef struct _TMComplexStateTreeRec {
    unsigned int isSimple:1;
    unsigned int isAccelerator:1;
    unsigned int mappingNotifyInterest:1;
    unsigned int refCount:13;
    TMShortCard numBranchHeads;
    TMShortCard numQuarks;
    TMShortCard numComplexBranchHeads;
    TMBranchHeadRec *branchHeadTbl;
    XrmQuark *quarkTbl;
    StatePtr *complexBranchHeadTbl;
} TMComplexStateTreeRec;
union _TMStateTreeRec {
    TMSimpleStateTreeRec simple;
    TMParseStateTreeRec parse;
    TMComplexStateTreeRec complex;
};
typedef union _TMStateTreeRec *TMStateTree;
typedef Boolean(*_XtTraversalProc) (StatePtr, XtPointer);
typedef struct _TMSimpleBindProcsRec {
    XtActionProc *procs;
} TMSimpleBindProcsRec;
typedef struct _TMSimpleBindDataRec {
    unsigned int isComplex:1;
    TMSimpleBindProcsRec bindTbl[8];
} TMSimpleBindDataRec;
typedef struct _TMComplexBindProcsRec {
    Widget widget;
    XtTranslations aXlations;
    XtActionProc *procs;
} TMComplexBindProcsRec;
struct _ATranslationData {
    unsigned char hasBindings;
    unsigned char operation;
    struct _TranslationData *xlations;
    struct _ATranslationData *next;
    TMComplexBindProcsRec bindTbl[24];
};
typedef struct _TMComplexBindDataRec {
    unsigned int isComplex:1;
    struct _ATranslationData *accel_context;
    TMComplexBindProcsRec bindTbl[24];
} TMComplexBindDataRec;
union _TMBindDataRec {
    TMSimpleBindDataRec simple;
    TMComplexBindDataRec complex;
};
typedef union _TMBindDataRec *TMBindData;
typedef struct _TMParseStateTreeRec *TMParseStateTree;
struct _EventSeqRec {
    Event event;
    StatePtr state;
    EventSeqPtr next;
    ActionPtr actions;
};
typedef struct _EventSeqRec *EventSeqPtr;
typedef struct _TMBranchHeadRec *TMBranchHead;
typedef unsigned int _XtTranslateOp;

6.10.20. X11/VendorP.h


typedef struct {
    XtPointer extension;
} VendorShellClassPart;
typedef struct _VendorShellClassRec {
    CoreClassPart core_class;
    CompositeClassPart composite_class;
    ShellClassPart shell_class;
    WMShellClassPart wm_shell_class;
    VendorShellClassPart vendor_shell_class;
} VendorShellClassRec;
typedef struct {
    int vendor_specific;
} VendorShellPart;
typedef struct {
    CorePart core;
    CompositePart composite;
    ShellPart shell;
    WMShellPart wm;
    VendorShellPart vendor;
} VendorShellRec;
typedef VendorShellRec *VendorShellWidget;

6.11. Interface Definitions for libXt

Table of Contents
_XtCopyFromArg -- Copy "size" bytes from src to dst.
_XtInherit -- inheritance operation.
_XtInheritTranslations -- an inheritance constant
_XtIsSubclassOf -- determine if Widget is a subclass of WidgetClass.

The interfaces defined on the following pages are included in libXt and are defined by this specification. Unless otherwise noted, these interfaces shall be included in the source standard.

Other interfaces listed in Section 6.9 shall behave as described in the referenced base document.

_XtCopyFromArg

Name

_XtCopyFromArg -- Copy "size" bytes from src to dst.

Synopsis

void _XtCopyFromArg(XtArgVal src,char* dst,unsigned int size);

Description

The _XtCopyFromArg() function copies "size" bytes from src to dst. This is an internal X function call.

_XtInherit

Name

_XtInherit -- inheritance operation.

Synopsis

#include <IntrinsicP.h>

extern void _XtInherit(
#if NeedFunctionPrototypes
    void
#endif
);

Description

_XtInherit() is a procedure that issues an error message if it is actually called.

_XtInheritTranslations

Name

_XtInheritTranslations -- an inheritance constant

Synopsis

#include <CoreP.h>

externalref int _XtInheritTranslations;

Description

_XtInheritTranslations is an inheritance constant.

_XtIsSubclassOf

Name

_XtIsSubclassOf -- determine if Widget is a subclass of WidgetClass.

Synopsis

#include <Intrinsic.h>

extern Boolean _XtIsSubclassOf(
    Widget              /* object*  /,
    WidgetClass         /* widget_class */,
    WidgetClass         /* flag_class */,
    _XtXtEnum           /* type_flag */,
);

Description

Determine if Widget(object) is a subclass of WidgetClass(widget_class).


6.12. Interfaces for libXext

Table 6-11 defines the library name and shared object name for the libXext library

Table 6-11. libXext Definition

Library:libXext
SONAME:libXext.so.6

The behavior of the interfaces in this library is specified by the following specifications:

[LSB] This Specification
[X-dbe] Double Buffer Extension Library
[X-DPMS] X Display Power Management Signaling
[X-evi] X Extended Visual Interface Extension
[X-security] X Security Extension Specification
[X-shape] X Nonrectangular Window Shape Extension Library
[X-shm] The MIT Shared Memory Extension
[X-sync] X Synchronization Extension Library


6.12.1. libXext interfaces


6.12.1.1. Interfaces for libXext interfaces

An LSB conforming implementation shall provide the generic functions for libXext interfaces specified in Table 6-12, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-12. libXext - libXext interfaces Function Interfaces

XMissingExtension [LSB]XSetExtensionErrorHandler [LSB]XextAddDisplay [LSB]XextCreateExtension [LSB]
XextDestroyExtension [LSB]XextFindDisplay [LSB]XextRemoveDisplay [LSB] 

6.12.2. X Shape Extension


6.12.2.1. Interfaces for X Shape Extension

An LSB conforming implementation shall provide the generic functions for X Shape Extension specified in Table 6-13, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-13. libXext - X Shape Extension Function Interfaces

XShapeCombineMask [X-shape]XShapeCombineRectangles [X-shape]XShapeCombineRegion [X-shape]XShapeCombineShape [X-shape]
XShapeGetRectangles [X-shape]XShapeInputSelected [X-shape]XShapeOffsetShape [X-shape]XShapeQueryExtension [X-shape]
XShapeQueryExtents [X-shape]XShapeQueryVersion [X-shape]XShapeSelectInput [X-shape] 

6.12.3. X Display Power Management Signaling Extension


6.12.3.1. Interfaces for X Display Power Management Signaling Extension

An LSB conforming implementation shall provide the generic functions for X Display Power Management Signaling Extension specified in Table 6-14, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-14. libXext - X Display Power Management Signaling Extension Function Interfaces

DPMSCapable [X-DPMS]DPMSDisable [X-DPMS]DPMSEnable [X-DPMS]DPMSForceLevel [X-DPMS]
DPMSGetTimeouts [X-DPMS]DPMSGetVersion [X-DPMS]DPMSInfo [X-DPMS]DPMSQueryExtension [X-DPMS]
DPMSSetTimeouts [X-DPMS]   

6.12.4. X Shared Memory Extensions


6.12.4.1. Interfaces for X Shared Memory Extensions

An LSB conforming implementation shall provide the generic functions for X Shared Memory Extensions specified in Table 6-15, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-15. libXext - X Shared Memory Extensions Function Interfaces

XShmAttach [X-shm]XShmCreateImage [X-shm]XShmCreatePixmap [X-shm]XShmDetach [X-shm]
XShmGetEventBase [X-shm]XShmGetImage [X-shm]XShmPixmapFormat [X-shm]XShmPutImage [X-shm]
XShmQueryExtension [X-shm]XShmQueryVersion [X-shm]  

6.12.5. X Synchronization Extension


6.12.5.1. Interfaces for X Synchronization Extension

An LSB conforming implementation shall provide the generic functions for X Synchronization Extension specified in Table 6-16, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-16. libXext - X Synchronization Extension Function Interfaces

XSyncAwait [X-sync]XSyncChangeAlarm [X-sync]XSyncChangeCounter [X-sync]XSyncCreateAlarm [X-sync]
XSyncCreateCounter [X-sync]XSyncDestroyAlarm [X-sync]XSyncDestroyCounter [X-sync]XSyncFreeSystemCounterList [X-sync]
XSyncGetPriority [X-sync]XSyncInitialize [X-sync]XSyncIntToValue [X-sync]XSyncIntsToValue [X-sync]
XSyncListSystemCounters [X-sync]XSyncMaxValue [X-sync]XSyncMinValue [X-sync]XSyncQueryAlarm [X-sync]
XSyncQueryCounter [X-sync]XSyncQueryExtension [X-sync]XSyncSetCounter [X-sync]XSyncSetPriority [X-sync]
XSyncValueAdd [X-sync]XSyncValueEqual [X-sync]XSyncValueGreaterOrEqual [X-sync]XSyncValueGreaterThan [X-sync]
XSyncValueHigh32 [X-sync]XSyncValueIsNegative [X-sync]XSyncValueIsPositive [X-sync]XSyncValueIsZero [X-sync]
XSyncValueLessOrEqual [X-sync]XSyncValueLessThan [X-sync]XSyncValueLow32 [X-sync]XSyncValueSubtract [X-sync]

6.12.6. X Security Extension


6.12.6.1. Interfaces for X Security Extension

An LSB conforming implementation shall provide the generic functions for X Security Extension specified in Table 6-17, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-17. libXext - X Security Extension Function Interfaces

XSecurityAllocXauth [X-security]XSecurityFreeXauth [X-security]XSecurityGenerateAuthorization [X-security]XSecurityQueryExtension [X-security]
XSecurityRevokeAuthorization [X-security]   

6.12.7. X Double Buffer Extension


6.12.7.1. Interfaces for X Double Buffer Extension

An LSB conforming implementation shall provide the generic functions for X Double Buffer Extension specified in Table 6-18, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-18. libXext - X Double Buffer Extension Function Interfaces

XdbeAllocateBackBufferName [X-dbe]XdbeBeginIdiom [X-dbe]XdbeDeallocateBackBufferName [X-dbe]XdbeEndIdiom [X-dbe]
XdbeFreeVisualInfo [X-dbe]XdbeGetBackBufferAttributes [X-dbe]XdbeGetVisualInfo [X-dbe]XdbeQueryExtension [X-dbe]
XdbeSwapBuffers [X-dbe]   

6.12.8. X Extended Visual Interface Extension


6.12.8.1. Interfaces for X Extended Visual Interface Extension

An LSB conforming implementation shall provide the generic functions for X Extended Visual Interface Extension specified in Table 6-19, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-19. libXext - X Extended Visual Interface Extension Function Interfaces

XeviGetVisualInfo [X-evi]XeviQueryExtension [X-evi]XeviQueryVersion [X-evi] 

6.13. Data Definitions for libXext

This section defines global identifiers and their values that are associated with interfaces contained in libXext. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.


6.13.1. X11/extensions/XEVI.h


#define XEVI_TRANSPARENCY_NONE	0
#define X_EVIQueryVersion	0
#define XEVI_TRANSPARENCY_PIXEL	1
#define X_EVIGetVisualInfo	1
#define XEVI_TRANSPARENCY_MASK	2

typedef struct {
    VisualID core_visual_id;
    int screen;
    int level;
    unsigned int transparency_type;
    unsigned int transparency_value;
    unsigned int min_hw_colormaps;
    unsigned int max_hw_colormaps;
    unsigned int num_colormap_conflicts;
    VisualID *colormap_conflicts;
} ExtendedVisualInfo;
extern int XeviGetVisualInfo(Display *, VisualID *, int,
			     ExtendedVisualInfo * *, int *);
extern int XeviQueryExtension(Display *);
extern int XeviQueryVersion(Display *, int *, int *);

6.13.2. X11/extensions/XEVIstr.h


#define XEVI_MINOR_VERSION	0
#define XEVI_MAJOR_VERSION	1
#define _EVISTR_H_	1
#define sz_xExtendedVisualInfo	16
#define sz_xEVIGetVisualInfoReply	32
#define sz_xEVIQueryVersionReply	32
#define sz_VisualID32	4
#define sz_xEVIQueryVersionReq	4
#define sz_xEVIGetVisualInfoReq	8
#define EVINAME	"Extended-Visual-Information"

typedef unsigned int VisualID32;
typedef struct _xExtendedVisualInfo {
    CARD32 core_visual_id;
    INT8 screen;
    INT8 level;
    CARD8 transparency_type;
    CARD8 pad0;
    CARD32 transparency_value;
    CARD8 min_hw_colormaps;
    CARD8 max_hw_colormaps;
    CARD16 num_colormap_conflicts;
} xExtendedVisualInfo;
typedef struct _XEVIQueryVersion {
    CARD8 reqType;
    CARD8 xeviReqType;
    CARD16 length;
} xEVIQueryVersionReq;
typedef struct {
    BYTE type;
    CARD8 unused;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 majorVersion;
    CARD16 minorVersion;
    CARD32 pad0;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
} xEVIQueryVersionReply;
typedef struct _XEVIGetVisualInfoReq {
    CARD8 reqType;
    CARD8 xeviReqType;
    CARD16 length;
    CARD32 n_visual;
} xEVIGetVisualInfoReq;
typedef struct _XEVIGetVisualInfoReply {
    BYTE type;
    CARD8 unused;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 n_info;
    CARD32 n_conflicts;
    CARD32 pad0;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
} xEVIGetVisualInfoReply;

6.13.3. X11/extensions/XKBbells.h


#define _XKBBELLS_H_
#define XkbBI_Info	0
#define XkbBI_Warning	1
#define XkbBI_Failure	10
#define XkbBI_Wait	11
#define XkbBI_Proceed	12
#define XkbBI_Ignore	13
#define XkbBI_Iconify	14
#define XkbBI_Deiconify	15
#define XkbBI_Open	16
#define XkbBI_Close	17
#define XkbBI_TerminalBell	18
#define XkbBI_MarginBell	19
#define XkbBI_MinorError	2
#define XkbBI_CursorStuck	20
#define XkbBI_NewMail	21
#define XkbBI_LaunchApp	22
#define XkbBI_AppDeath	23
#define XkbBI_ImAlive	24
#define XkbBI_ClockChimeHour	25
#define XkbBI_ClockChimeHalf	26
#define XkbBI_ClockChimeQuarter	27
#define XkbBI_RepeatingLastBell	28
#define XkbBI_ComposeFail	29
#define XkbBI_MajorError	3
#define XkbBI_AX_FeatureOn	30
#define XkbBI_AX_FeatureOff	31
#define XkbBI_AX_FeatureChange	32
#define XkbBI_AX_IndicatorOn	33
#define XkbBI_AX_IndicatorOff	34
#define XkbBI_AX_IndicatorChange	35
#define XkbBI_AX_SlowKeysWarning	36
#define XkbBI_AX_SlowKeyPress	37
#define XkbBI_AX_SlowKeyAccept	38
#define XkbBI_AX_SlowKeyReject	39
#define XkbBI_BadValue	4
#define XkbBI_AX_SlowKeyRelease	40
#define XkbBI_AX_BounceKeyReject	41
#define XkbBI_AX_StickyLatch	42
#define XkbBI_AX_StickyLock	43
#define XkbBI_AX_StickyUnlock	44
#define XkbBI_NumBells	45
#define XkbBI_InvalidLocation	5
#define XkbBI_Question	6
#define XkbBI_Start	7
#define XkbBI_End	8
#define XkbBI_Success	9
#define XkbBN_AppDeath	"AppDeath"
#define XkbBN_AX_BounceKeyReject	"AX_BounceKeyReject"
#define XkbBN_AX_FeatureChange	"AX_FeatureChange"
#define XkbBN_AX_FeatureOff	"AX_FeatureOff"
#define XkbBN_AX_FeatureOn	"AX_FeatureOn"
#define XkbBN_AX_IndicatorChange	"AX_IndicatorChange"
#define XkbBN_AX_IndicatorOff	"AX_IndicatorOff"
#define XkbBN_AX_IndicatorOn	"AX_IndicatorOn"
#define XkbBN_AX_SlowKeyAccept	"AX_SlowKeyAccept"
#define XkbBN_AX_SlowKeyPress	"AX_SlowKeyPress"
#define XkbBN_AX_SlowKeyReject	"AX_SlowKeyReject"
#define XkbBN_AX_SlowKeyRelease	"AX_SlowKeyRelease"
#define XkbBN_AX_SlowKeysWarning	"AX_SlowKeysWarning"
#define XkbBN_AX_StickyLatch	"AX_StickyLatch"
#define XkbBN_AX_StickyLock	"AX_StickyLock"
#define XkbBN_AX_StickyUnlock	"AX_StickyUnlock"
#define XkbBN_BadValue	"BadValue"
#define XkbBN_ClockChimeHalf	"ClockChimeHalf"
#define XkbBN_ClockChimeHour	"ClockChimeHour"
#define XkbBN_ClockChimeQuarter	"ClockChimeQuarter"
#define XkbBN_Close	"Close"
#define XkbBN_ComposeFail	"ComposeFail"
#define XkbBN_CursorStuck	"CursorStuck"
#define XkbBN_Deiconify	"Deconify"
#define XkbBN_End	"End"
#define XkbBN_Failure	"Failure"
#define XkbBN_Iconify	"Iconify"
#define XkbBN_Ignore	"Ignore"
#define XkbBN_ImAlive	"ImAlive"
#define XkbBN_Info	"Info"
#define XkbBN_InvalidLocation	"InvalidLocation"
#define XkbBN_LaunchApp	"LaunchApp"
#define XkbBN_MajorError	"MajorError"
#define XkbBN_MarginBell	"MarginBell"
#define XkbBN_MinorError	"MinorError"
#define XkbBN_NewMail	"NewMail"
#define XkbBN_Open	"Open"
#define XkbBN_Proceed	"Proceed"
#define XkbBN_Question	"Question"
#define XkbBN_RepeatingLastBell	"RepeatingLastBell"
#define XkbBN_Start	"Start"
#define XkbBN_Success	"Success"
#define XkbBN_TerminalBell	"TerminalBell"
#define XkbBN_Wait	"Wait"
#define XkbBN_Warning	"Warning"

6.13.4. X11/extensions/XShm.h


#define X_ShmQueryVersion	0
#define X_ShmAttach	1
#define X_ShmDetach	2
#define X_ShmPutImage	3
#define X_ShmGetImage	4
#define X_ShmCreatePixmap	5
#define ShmCompletion	0
#define ShmNumberEvents	(ShmCompletion + 1)
#define BadShmSeg	0
#define ShmNumberErrors	(BadShmSeg + 1)

typedef unsigned long int ShmSeg;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Drawable drawable;
    int major_code;
    int minor_code;
    ShmSeg shmseg;
    unsigned long int offset;
} XShmCompletionEvent;
typedef struct {
    ShmSeg shmseg;
    int shmid;
    char *shmaddr;
    int readOnly;
} XShmSegmentInfo;
extern int XShmAttach(Display *, XShmSegmentInfo *);
extern XImage *XShmCreateImage(Display *, Visual *, unsigned int, int,
			       char *, XShmSegmentInfo *, unsigned int,
			       unsigned int);
extern Pixmap XShmCreatePixmap(Display *, Drawable, char *,
			       XShmSegmentInfo *, unsigned int,
			       unsigned int, unsigned int);
extern int XShmDetach(Display *, XShmSegmentInfo *);
extern int XShmGetEventBase(Display *);
extern int XShmGetImage(Display *, Drawable, XImage *, int, int,
			unsigned long int);
extern int XShmPixmapFormat(Display *);
extern int XShmPutImage(Display *, Drawable, GC, XImage *, int, int, int,
			int, unsigned int, unsigned int, int);
extern int XShmQueryExtension(Display *);
extern int XShmQueryVersion(Display *, int *, int *, int *);

6.13.5. X11/extensions/Xdbe.h


#define XdbeBadBuffer	0

typedef Drawable XdbeBackBuffer;
typedef unsigned char XdbeSwapAction;
typedef struct {
    Window swap_window;
    XdbeSwapAction swap_action;
} XdbeSwapInfo;
typedef struct {
    Window window;
} XdbeBackBufferAttributes;
typedef struct {
    int type;
    Display *display;
    XdbeBackBuffer buffer;
    unsigned long int serial;
    unsigned char error_code;
    unsigned char request_code;
    unsigned char minor_code;
} XdbeBufferError;
extern XdbeBackBuffer XdbeAllocateBackBufferName(Display *, Window,
						 XdbeSwapAction);
extern int XdbeBeginIdiom(Display *);
extern int XdbeDeallocateBackBufferName(Display *, XdbeBackBuffer);
extern int XdbeEndIdiom(Display *);
extern void XdbeFreeVisualInfo(XdbeScreenVisualInfo *);
extern XdbeBackBufferAttributes *XdbeGetBackBufferAttributes(Display *,
							     XdbeBackBuffer);
extern XdbeScreenVisualInfo *XdbeGetVisualInfo(Display *, Drawable *,
					       int *);
extern int XdbeQueryExtension(Display *, int *, int *);
extern int XdbeSwapBuffers(Display *, XdbeSwapInfo *, int);

6.13.6. X11/extensions/Xdbeproto.h


#define DbeNumberErrors	(DbeBadBuffer + 1)
#define DBE_MINOR_VERSION	0
#define DbeBadBuffer	0
#define DbeNumberEvents	0
#define X_DbeGetVersion	0
#define XdbeUndefined	0
#define DBE_MAJOR_VERSION	1
#define X_DbeAllocateBackBufferName	1
#define XdbeBackground	1
#define X_DbeDeallocateBackBufferName	2
#define XdbeUntouched	2
#define X_DbeSwapBuffers	3
#define XdbeCopied	3
#define X_DbeBeginIdiom	4
#define X_DbeEndIdiom	5
#define X_DbeGetVisualInfo	6
#define X_DbeGetBackBufferAttributes	7
#define DBE_PROTOCOL_NAME	"DOUBLE-BUFFER"

typedef CARD8 xDbeSwapAction;
typedef CARD32 xDbeBackBuffer;

6.13.7. X11/extensions/Xext.h


#define X_EXTENSION_MISSING	"missing"
#define X_EXTENSION_UNKNOWN	"unknown"

extern int XMissingExtension(Display *, const char *);
extern
    int (*XSetExtensionErrorHandler(int (*)(Display *, char *, char *)))
    (Display *, char *, char *);

6.13.8. X11/extensions/dpms.h


#define DPMSModeOn	0
#define DPMSModeStandby	1
#define DPMSModeSuspend	2
#define DPMSModeOff	3

extern int DPMSCapable(Display *);
extern int DPMSDisable(Display *);
extern int DPMSEnable(Display *);
extern int DPMSForceLevel(Display *, CARD16);
extern int DPMSGetTimeouts(Display *, CARD16 *, CARD16 *, CARD16 *);
extern int DPMSGetVersion(Display *, int *, int *);
extern int DPMSInfo(Display *, CARD16 *, BOOL *);
extern int DPMSQueryExtension(Display *, int *, int *);
extern int DPMSSetTimeouts(Display *, CARD16, CARD16, CARD16);

6.13.9. X11/extensions/dpmsstr.h


#define DPMSNumberErrors	0
#define DPMSNumberEvents	0
#define X_DPMSGetVersion	0
#define DPMSMajorVersion	1
#define DPMSMinorVersion	1
#define X_DPMSCapable	1
#define _DPMSSTR_H_	1
#define sz_xDPMSSetTimeoutsReq	12
#define X_DPMSGetTimeouts	2
#define X_DPMSSetTimeouts	3
#define sz_xDPMSCapableReply	32
#define sz_xDPMSGetTimeoutsReply	32
#define sz_xDPMSGetVersionReply	32
#define sz_xDPMSInfoReply	32
#define X_DPMSEnable	4
#define sz_xDPMSCapableReq	4
#define sz_xDPMSDisableReq	4
#define sz_xDPMSEnableReq	4
#define sz_xDPMSGetTimeoutsReq	4
#define sz_xDPMSInfoReq	4
#define X_DPMSDisable	5
#define X_DPMSForceLevel	6
#define X_DPMSInfo	7
#define sz_xDPMSForceLevelReq	8
#define sz_xDPMSGetVersionReq	8
#define DPMSExtensionName	"DPMS"

typedef struct {
    CARD8 reqType;
    CARD8 dpmsReqType;
    CARD16 length;
    CARD16 majorVersion;
    CARD16 minorVersion;
} xDPMSGetVersionReq;
typedef struct {
    BYTE type;
    CARD8 pad0;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 majorVersion;
    CARD16 minorVersion;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xDPMSGetVersionReply;
typedef struct {
    CARD8 reqType;
    CARD8 dpmsReqType;
    CARD16 length;
} xDPMSCapableReq;
typedef struct {
    BYTE type;
    CARD8 pad0;
    CARD16 sequenceNumber;
    CARD32 length;
    BOOL capable;
    CARD8 pad1;
    CARD16 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
    CARD32 pad7;
} xDPMSCapableReply;
typedef struct {
    CARD8 reqType;
    CARD8 dpmsReqType;
    CARD16 length;
} xDPMSGetTimeoutsReq;
typedef struct {
    BYTE type;
    CARD8 pad0;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 standby;
    CARD16 suspend;
    CARD16 off;
    CARD16 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
} xDPMSGetTimeoutsReply;
typedef struct {
    CARD8 reqType;
    CARD8 dpmsReqType;
    CARD16 length;
    CARD16 standby;
    CARD16 suspend;
    CARD16 off;
    CARD16 pad0;
} xDPMSSetTimeoutsReq;
typedef struct {
    CARD8 reqType;
    CARD8 dpmsReqType;
    CARD16 length;
} xDPMSEnableReq;
typedef struct {
    CARD8 reqType;
    CARD8 dpmsReqType;
    CARD16 length;
} xDPMSDisableReq;
typedef struct {
    CARD8 reqType;
    CARD8 dpmsReqType;
    CARD16 length;
    CARD16 level;
    CARD16 pad0;
} xDPMSForceLevelReq;
typedef struct {
    CARD8 reqType;
    CARD8 dpmsReqType;
    CARD16 length;
} xDPMSInfoReq;
typedef struct {
    BYTE type;
    CARD8 pad0;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 power_level;
    BOOL state;
    CARD8 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xDPMSInfoReply;

6.13.10. X11/extensions/extutil.h


#define XextHasExtension(i)	((i) && ((i)->codes))
#define XEXT_ERROR_STRING_PROTO(proc)	\
        char *proc(Display *dpy, int code, XExtCodes *codes, char *buf, int n)
#define XEXT_CLOSE_DISPLAY_PROTO(proc)	\
        int proc(Display *dpy, XExtCodes *codes)
#define XEXT_FIND_DISPLAY_PROTO(proc)	\
        XExtDisplayInfo *proc(Display *dpy)
#define XextCheckExtension(dpy,i,name,val)	\
  if (!XextHasExtension(i)) { XMissingExtension (dpy, name); return val; }
#define XextSimpleCheckExtension(dpy,i,name)	\
  if (!XextHasExtension(i)) { XMissingExtension (dpy, name); return; }
#define XEXT_GENERATE_ERROR_STRING(proc,extname,nerr,errl)	\
char *proc (Display *dpy, int code, XExtCodes *codes, char *buf, int n) \
{ \
    code -= codes->first_error; \
    if (code >= 0 && code < nerr) { \
        char tmp[256]; \
        sprintf (tmp, "%s.%d", extname, code); \
        XGetErrorDatabaseText (dpy, "XProtoError", tmp, errl[code], buf, n); \
        return buf; \
    } \
    return (char *)0; \
}
#define XEXT_GENERATE_CLOSE_DISPLAY(proc,extinfo)	\
int proc (Display *dpy, XExtCodes *codes) \
{ \
    return XextRemoveDisplay (extinfo, dpy); \
}
#define XEXT_GENERATE_FIND_DISPLAY(proc,extinfo,extname,hooks,nev,data)	\
XExtDisplayInfo *proc (Display *dpy) \
{ \
XExtDisplayInfo *dpyinfo; \
    if (!extinfo) { if (!(extinfo = XextCreateExtension())) return NULL; } \
    if (!(dpyinfo = XextFindDisplay (extinfo, dpy))) \
      dpyinfo = XextAddDisplay (extinfo,dpy,extname,hooks,nev,data); \
    return dpyinfo; \
}

typedef struct _XExtDisplayInfo {
    struct _XExtDisplayInfo *next;
    Display *display;
    XExtCodes *codes;
    XPointer data;
} XExtDisplayInfo;
typedef struct _XExtensionInfo {
    XExtDisplayInfo *head;
    XExtDisplayInfo *cur;
    int ndisplays;
} XExtensionInfo;
typedef struct _XExtensionHooks {
    int (*create_gc) (Display *, GC, XExtCodes *);
    int (*copy_gc) (Display *, GC, XExtCodes *);
    int (*flush_gc) (Display *, GC, XExtCodes *);
    int (*free_gc) (Display *, GC, XExtCodes *);
    int (*create_font) (Display *, XFontStruct *, XExtCodes *);
    int (*free_font) (Display *, XFontStruct *, XExtCodes *);
    int (*close_display) (Display *, XExtCodes *);
    int (*wire_to_event) (Display *, XEvent *, xEvent *);
    int (*event_to_wire) (Display *, XEvent *, xEvent *);
    int (*error) (Display *, xError *, XExtCodes *, int *);
    char *(*error_string) (Display *, int, XExtCodes *, char *, int);
} XExtensionHooks;
extern XExtDisplayInfo *XextAddDisplay(XExtensionInfo *, Display *, char *,
				       XExtensionHooks *, int, XPointer);
extern XExtensionInfo *XextCreateExtension(void);
extern void XextDestroyExtension(XExtensionInfo *);
extern XExtDisplayInfo *XextFindDisplay(XExtensionInfo *, Display *);
extern int XextRemoveDisplay(XExtensionInfo *, Display *);

6.13.11. X11/extensions/security.h


#define XSecurityAuthorizationName	"XC-QUERY-SECURITY-1"
#define XSecurityAuthorizationRevokedMask	(1<<0)
#define XSecurityTimeout	(1<<0)
#define XSecurityTrustLevel	(1<<1)
#define XSecurityGroup	(1<<2)
#define XSecurityEventMask	(1<<3)
#define XSecurityAllAuthorizationAttributes	(XSecurityTimeout | XSecurityTrustLevel | XSecurityGroup | XSecurityEventMask)
#define XSecurityAuthorizationRevoked	0
#define XSecurityBadAuthorization	0
#define XSecurityClientTrusted	0
#define XSecurityBadAuthorizationProtocol	1
#define XSecurityClientUntrusted	1
#define XSecurityNumberEvents	1
#define XSecurityAuthorizationNameLen	19
#define XSecurityNumberErrors	2
#define XSecurityAllEventMasks	XSecurityAuthorizationRevokedMask

typedef unsigned long int XSecurityAuthorization;
typedef struct {
    unsigned int timeout;
    unsigned int trust_level;
    XID group;
    long int event_mask;
} XSecurityAuthorizationAttributes;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    XSecurityAuthorization auth_id;
} XSecurityAuthorizationRevokedEvent;
extern Xauth *XSecurityAllocXauth(void);
extern void XSecurityFreeXauth(Xauth *);
extern Xauth *XSecurityGenerateAuthorization(Display *, Xauth *,
					     unsigned long int,
					     XSecurityAuthorizationAttributes
					     *, XSecurityAuthorization *);
extern int XSecurityQueryExtension(Display *, int *, int *);
extern int XSecurityRevokeAuthorization(Display *, XSecurityAuthorization);

6.13.12. X11/extensions/shape.h


#define X_ShapeQueryVersion	0
#define X_ShapeRectangles	1
#define X_ShapeMask	2
#define X_ShapeCombine	3
#define X_ShapeOffset	4
#define X_ShapeQueryExtents	5
#define X_ShapeSelectInput	6
#define X_ShapeInputSelected	7
#define X_ShapeGetRectangles	8
#define ShapeSet	0
#define ShapeUnion	1
#define ShapeIntersect	2
#define ShapeSubtract	3
#define ShapeInvert	4
#define ShapeBounding	0
#define ShapeClip	1
#define ShapeInput	2
#define ShapeNotifyMask	(1L << 0)
#define ShapeNotify	0
#define ShapeNumberEvents	(ShapeNotify + 1)

typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    Window window;
    int kind;
    int x;
    int y;
    unsigned int width;
    unsigned int height;
    Time time;
    int shaped;
} XShapeEvent;
extern void XShapeCombineMask(Display *, Window, int, int, int, Pixmap,
			      int);
extern void XShapeCombineRectangles(Display *, Window, int, int, int,
				    XRectangle *, int, int, int);
extern void XShapeCombineRegion(Display *, Window, int, int, int, Region,
				int);
extern void XShapeCombineShape(Display *, Window, int, int, int, Window,
			       int, int);
extern XRectangle *XShapeGetRectangles(Display *, Window, int, int *,
				       int *);
extern unsigned long int XShapeInputSelected(Display *, Window);
extern void XShapeOffsetShape(Display *, Window, int, int, int);
extern int XShapeQueryExtension(Display *, int *, int *);
extern int XShapeQueryExtents(Display *, Window, int *, int *, int *,
			      unsigned int *, unsigned int *, int *, int *,
			      int *, unsigned int *, unsigned int *);
extern int XShapeQueryVersion(Display *, int *, int *);
extern void XShapeSelectInput(Display *, Window, unsigned long int);

6.13.13. X11/extensions/sync.h


typedef XID XSyncCounter;
typedef XID XSyncAlarm;
typedef struct _XSyncValue {
    int hi;
    unsigned int lo;
} XSyncValue;
typedef enum {
    XSyncAbsolute,
    XSyncRelative
} XSyncValueType;
typedef enum {
    XSyncPositiveTransition,
    XSyncNegativeTransition,
    XSyncPositiveComparison,
    XSyncNegativeComparison
} XSyncTestType;
typedef enum {
    XSyncAlarmActive,
    XSyncAlarmInactive,
    XSyncAlarmDestroyed
} XSyncAlarmState;

#define SYNC_NAME	"SYNC"
#define _XSyncValueIsPositive(v)	(((v).hi&0x80000000)?0:1)
#define _XSyncValueIsNegative(v)	(((v).hi&0x80000000)?1:0)
#define _XSyncValueLessThan(a,b)	((a).hi<(b).hi || ((a).hi==(b).hi && (a).lo<(b).lo))
#define _XSyncValueLessOrEqual(a,b)	((a).hi<(b).hi || ((a).hi==(b).hi && (a).lo<=(b).lo))
#define _XSyncValueGreaterThan(a,b)	((a).hi>(b).hi || ((a).hi==(b).hi && (a).lo>(b).lo))
#define _XSyncValueGreaterOrEqual(a,b)	((a).hi>(b).hi || ((a).hi==(b).hi && (a).lo>=(b).lo))
#define _XSyncValueEqual(a,b)	((a).lo==(b).lo && (a).hi==(b).hi)
#define _XSyncValueIsZero(a)	((a).lo==0&&(a).hi==0)
#define _XSyncIntToValue(pv,i)	((pv)->hi=((i<0)?~0:0),(pv)->lo=(i))
#define _XSyncMaxValue(pv)	((pv)->hi=0x7fffffff,(pv)->lo=0xffffffff)
#define _XSyncMinValue(pv)	((pv)->hi=0x80000000,(pv)->lo=0)
#define _XSyncIntsToValue(pv,l,h)	((pv)->lo = (l), (pv)->hi = (h))
#define _XSyncValueHigh32(v)	((v).hi)
#define _XSyncValueLow32(v)	((v).lo)
#define XSyncCACounter	(1L<<0)
#define XSyncCAValueType	(1L<<1)
#define XSyncCAValue	(1L<<2)
#define XSyncCATestType	(1L<<3)
#define XSyncCADelta	(1L<<4)
#define XSyncCAEvents	(1L<<5)
#define XSyncAlarmNotifyMask	(1L<<XSyncAlarmNotify)
#define XSyncNumberErrors	(XSyncBadAlarm+1)
#define SYNC_MINOR_VERSION	0
#define XSyncCounterNotify	0
#define X_SyncInitialize	0
#define XSyncBadCounter	0L
#define XSyncAlarmNotify	1
#define X_SyncListSystemCounters	1
#define X_SyncQueryAlarm	10
#define X_SyncDestroyAlarm	11
#define X_SyncSetPriority	12
#define X_SyncGetPriority	13
#define XSyncBadAlarm	1L
#define X_SyncCreateCounter	2
#define XSyncNumberEvents	2L
#define SYNC_MAJOR_VERSION	3
#define X_SyncSetCounter	3
#define X_SyncChangeCounter	4
#define X_SyncQueryCounter	5
#define X_SyncDestroyCounter	6
#define X_SyncAwait	7
#define X_SyncCreateAlarm	8
#define X_SyncChangeAlarm	9
#define _XSyncValueAdd(presult,a,b,poverflow)	{\
int t = (a).lo;\
 Bool signa = XSyncValueIsNegative(a);\
 Bool signb = XSyncValueIsNegative(b);\
 ((presult)->lo = (a).lo + (b).lo);\
 ((presult)->hi = (a).hi + (b).hi);\
 if (t>(presult)->lo) (presult)->hi++;\
  *poverflow = ((signa == signb) && !(signa == XSyncValueIsNegative(*presult)));\
}
#define _XSyncValueSubtract(presult,a,b,poverflow)	{\
int t = (a).lo;\
 Bool signa = XSyncValueIsNegative(a);\
 Bool signb = XSyncValueIsNegative(b);\
 ((presult)->lo = (a).lo - (b).lo);\
 ((presult)->hi = (a).hi - (b).hi);\
 if (t>(presult)->lo) (presult)->hi--;\
 *poverflow = ((signa == signb) && !(signa == XSyncValueIsNegative(*presult)));\
}

typedef struct _XSyncSystemCounter {
    char *name;
    XSyncCounter counter;
    XSyncValue resolution;
} XSyncSystemCounter;
typedef struct {
    XSyncCounter counter;
    XSyncValueType value_type;
    XSyncValue wait_value;
    XSyncTestType test_type;
} XSyncTrigger;
typedef struct {
    XSyncTrigger trigger;
    XSyncValue event_threshold;
} XSyncWaitCondition;
typedef struct {
    XSyncTrigger trigger;
    XSyncValue delta;
    int events;
    XSyncAlarmState state;
} XSyncAlarmAttributes;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    XSyncCounter counter;
    XSyncValue wait_value;
    XSyncValue counter_value;
    Time time;
    int count;
    int destroyed;
} XSyncCounterNotifyEvent;
typedef struct {
    int type;
    unsigned long int serial;
    int send_event;
    Display *display;
    XSyncAlarm alarm;
    XSyncValue counter_value;
    XSyncValue alarm_value;
    Time time;
    XSyncAlarmState state;
} XSyncAlarmNotifyEvent;
typedef struct {
    int type;
    Display *display;
    XSyncAlarm alarm;
    unsigned long int serial;
    unsigned char error_code;
    unsigned char request_code;
    unsigned char minor_code;
} XSyncAlarmError;
typedef struct {
    int type;
    Display *display;
    XSyncCounter counter;
    unsigned long int serial;
    unsigned char error_code;
    unsigned char request_code;
    unsigned char minor_code;
} XSyncCounterError;
extern int XSyncAwait(Display *, XSyncWaitCondition *, int);
extern int XSyncChangeAlarm(Display *, XSyncAlarm, unsigned long int,
			    XSyncAlarmAttributes *);
extern int XSyncChangeCounter(Display *, XSyncCounter, XSyncValue);
extern XSyncAlarm XSyncCreateAlarm(Display *, unsigned long int,
				   XSyncAlarmAttributes *);
extern XSyncCounter XSyncCreateCounter(Display *, XSyncValue);
extern int XSyncDestroyAlarm(Display *, XSyncAlarm);
extern int XSyncDestroyCounter(Display *, XSyncCounter);
extern void XSyncFreeSystemCounterList(XSyncSystemCounter *);
extern int XSyncGetPriority(Display *, XID, int *);
extern int XSyncInitialize(Display *, int *, int *);
extern void XSyncIntToValue(XSyncValue *, int);
extern void XSyncIntsToValue(XSyncValue *, unsigned int, int);
extern XSyncSystemCounter *XSyncListSystemCounters(Display *, int *);
extern void XSyncMaxValue(XSyncValue *);
extern void XSyncMinValue(XSyncValue *);
extern int XSyncQueryAlarm(Display *, XSyncAlarm, XSyncAlarmAttributes *);
extern int XSyncQueryCounter(Display *, XSyncCounter, XSyncValue *);
extern int XSyncQueryExtension(Display *, int *, int *);
extern int XSyncSetCounter(Display *, XSyncCounter, XSyncValue);
extern int XSyncSetPriority(Display *, XID, int);
extern void XSyncValueAdd(XSyncValue *, XSyncValue, XSyncValue, int *);
extern int XSyncValueEqual(XSyncValue, XSyncValue);
extern int XSyncValueGreaterOrEqual(XSyncValue, XSyncValue);
extern int XSyncValueGreaterThan(XSyncValue, XSyncValue);
extern int XSyncValueHigh32(XSyncValue);
extern int XSyncValueIsNegative(XSyncValue);
extern int XSyncValueIsPositive(XSyncValue);
extern int XSyncValueIsZero(XSyncValue);
extern int XSyncValueLessOrEqual(XSyncValue, XSyncValue);
extern int XSyncValueLessThan(XSyncValue, XSyncValue);
extern unsigned int XSyncValueLow32(XSyncValue);
extern void XSyncValueSubtract(XSyncValue *, XSyncValue, XSyncValue,
			       int *);

6.13.14. X11/extensions/syncstr.h


#define sz_xSyncChangeAlarmReq	12
#define sz_xSyncCreateAlarmReq	12
#define sz_xSyncSetPriorityReq	12
#define sz_xSyncSystemCounter	14
#define sz_xSyncChangeCounterReq	16
#define sz_xSyncCreateCounterReq	16
#define sz_xSyncSetCounterReq	16
#define sz_xSyncWaitCondition	28
#define sz_xSyncGetPriorityReply	32
#define sz_xSyncInitializeReply	32
#define sz_xSyncListSystemCountersReply	32
#define sz_xSyncQueryCounterReply	32
#define sz_xSyncAwaitReq	4
#define sz_xSyncListSystemCountersReq	4
#define sz_xSyncQueryAlarmReply	40
#define sz_xSyncDestroyAlarmReq	8
#define sz_xSyncDestroyCounterReq	8
#define sz_xSyncGetPriorityReq	8
#define sz_xSyncInitializeReq	8
#define sz_xSyncQueryAlarmReq	8
#define sz_xSyncQueryCounterReq	8

typedef struct _xSyncInitialize {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD8 majorVersion;
    CARD8 minorVersion;
    CARD16 pad;
} xSyncInitializeReq;
typedef struct {
    BYTE type;
    CARD8 unused;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 majorVersion;
    CARD8 minorVersion;
    CARD16 pad;
    CARD32 pad0;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
} xSyncInitializeReply;
typedef struct _xSyncListSystemCounters {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
} xSyncListSystemCountersReq;
typedef struct {
    BYTE type;
    CARD8 unused;
    CARD16 sequenceNumber;
    CARD32 length;
    INT32 nCounters;
    CARD32 pad0;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
} xSyncListSystemCountersReply;
typedef struct {
    CARD32 counter;
    INT32 resolution_hi;
    CARD32 resolution_lo;
    CARD16 name_length;
} xSyncSystemCounter;
typedef struct _xSyncCreateCounterReq {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD32 cid;
    INT32 initial_value_hi;
    CARD32 initial_value_lo;
} xSyncCreateCounterReq;
typedef struct _xSyncChangeCounterReq {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD32 cid;
    INT32 value_hi;
    CARD32 value_lo;
} xSyncChangeCounterReq;
typedef struct _xSyncSetCounterReq {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD32 cid;
    INT32 value_hi;
    CARD32 value_lo;
} xSyncSetCounterReq;
typedef struct _xSyncDestroyCounterReq {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD32 counter;
} xSyncDestroyCounterReq;
typedef struct _xSyncQueryCounterReq {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD32 counter;
} xSyncQueryCounterReq;
typedef struct {
    BYTE type;
    CARD8 unused;
    CARD16 sequenceNumber;
    CARD32 length;
    INT32 value_hi;
    CARD32 value_lo;
    CARD32 pad0;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
} xSyncQueryCounterReply;
typedef struct _xSyncAwaitReq {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
} xSyncAwaitReq;
typedef struct _xSyncWaitCondition {
    CARD32 counter;
    CARD32 value_type;
    INT32 wait_value_hi;
    CARD32 wait_value_lo;
    CARD32 test_type;
    INT32 event_threshold_hi;
    CARD32 event_threshold_lo;
} xSyncWaitCondition;
typedef struct _xSyncCreateAlarmReq {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD32 id;
    CARD32 valueMask;
} xSyncCreateAlarmReq;
typedef struct _xSyncDestroyAlarmReq {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD32 alarm;
} xSyncDestroyAlarmReq;
typedef struct _xSyncQueryAlarmReq {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD32 alarm;
} xSyncQueryAlarmReq;
typedef struct {
    BYTE type;
    CARD8 unused;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 counter;
    CARD32 value_type;
    INT32 wait_value_hi;
    CARD32 wait_value_lo;
    CARD32 test_type;
    INT32 delta_hi;
    CARD32 delta_lo;
    BOOL events;
    BYTE state;
    BYTE pad0;
    BYTE pad1;
} xSyncQueryAlarmReply;
typedef struct _xSyncChangeAlarmReq {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD32 alarm;
    CARD32 valueMask;
} xSyncChangeAlarmReq;
typedef struct _xSyncSetPriority {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD32 id;
    INT32 priority;
} xSyncSetPriorityReq;
typedef struct _xSyncGetPriority {
    CARD8 reqType;
    CARD8 syncReqType;
    CARD16 length;
    CARD32 id;
} xSyncGetPriorityReq;
typedef struct {
    BYTE type;
    CARD8 unused;
    CARD16 sequenceNumber;
    CARD32 length;
    INT32 priority;
    CARD32 pad0;
    CARD32 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
} xSyncGetPriorityReply;
typedef struct _xSyncCounterNotifyEvent {
    BYTE type;
    BYTE kind;
    CARD16 sequenceNumber;
    CARD32 counter;
    INT32 wait_value_hi;
    CARD32 wait_value_lo;
    INT32 counter_value_hi;
    CARD32 counter_value_lo;
    CARD32 time;
    CARD16 count;
    BOOL destroyed;
    BYTE pad0;
} xSyncCounterNotifyEvent;
typedef struct _xSyncAlarmNotifyEvent {
    BYTE type;
    BYTE kind;
    CARD16 sequenceNumber;
    CARD32 alarm;
    INT32 counter_value_hi;
    CARD32 counter_value_lo;
    INT32 alarm_value_hi;
    CARD32 alarm_value_lo;
    CARD32 time;
    CARD8 state;
    BYTE pad0;
    BYTE pad1;
    BYTE pad2;
} xSyncAlarmNotifyEvent;

6.14. Interface Definitions for libXext

The interfaces defined on the following pages are included in libXext and are defined by this specification. Unless otherwise noted, these interfaces shall be included in the source standard.

Other interfaces listed in Section 6.12 shall behave as described in the referenced base document.


6.15. Interfaces for libXi

Table 6-20 defines the library name and shared object name for the libXi library

Table 6-20. libXi Definition

Library:libXi
SONAME:libXi.so.6

The behavior of the interfaces in this library is specified by the following specifications:

[XINPUT] X11 Input Library


6.15.1. XInput


6.15.1.1. Interfaces for XInput

An LSB conforming implementation shall provide the generic functions for XInput specified in Table 6-21, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-21. libXi - XInput Function Interfaces

XAllowDeviceEvents [XINPUT]XChangeDeviceControl [XINPUT]XChangeDeviceDontPropagateList [XINPUT]XChangeDeviceKeyMapping [XINPUT]
XChangeFeedbackControl [XINPUT]XChangeKeyboardDevice [XINPUT]XChangePointerDevice [XINPUT]XCloseDevice [XINPUT]
XDeviceBell [XINPUT]XFreeDeviceControl [XINPUT]XFreeDeviceList [XINPUT]XFreeDeviceMotionEvents [XINPUT]
XFreeDeviceState [XINPUT]XFreeFeedbackList [XINPUT]XGetDeviceButtonMapping [XINPUT]XGetDeviceControl [XINPUT]
XGetDeviceDontPropagateList [XINPUT]XGetDeviceFocus [XINPUT]XGetDeviceKeyMapping [XINPUT]XGetDeviceModifierMapping [XINPUT]
XGetDeviceMotionEvents [XINPUT]XGetExtensionVersion [XINPUT]XGetFeedbackControl [XINPUT]XGetSelectedExtensionEvents [XINPUT]
XGrabDevice [XINPUT]XGrabDeviceButton [XINPUT]XGrabDeviceKey [XINPUT]XListInputDevices [XINPUT]
XOpenDevice [XINPUT]XQueryDeviceState [XINPUT]XSelectExtensionEvent [XINPUT]XSendExtensionEvent [XINPUT]
XSetDeviceButtonMapping [XINPUT]XSetDeviceFocus [XINPUT]XSetDeviceMode [XINPUT]XSetDeviceModifierMapping [XINPUT]
XSetDeviceValuators [XINPUT]XUngrabDevice [XINPUT]XUngrabDeviceButton [XINPUT]XUngrabDeviceKey [XINPUT]

6.16. Data Definitions for libXi

This section defines global identifiers and their values that are associated with interfaces contained in libXi. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.


6.16.1. X11/extensions/XI.h


#define InProximity	(0L << 1)
#define DeviceMode	(1L << 0)
#define DvAccelNum	(1L << 0)
#define DvInteger	(1L << 0)
#define DvString	(1L << 0)
#define DvAccelDenom	(1L << 1)
#define OutOfProximity	(1L << 1)
#define ProximityState	(1L << 1)
#define DvThreshold	(1L << 2)
#define DvKeyClickPercent	(1L<<0)
#define DvPercent	(1L<<1)
#define DvPitch	(1L<<2)
#define DvDuration	(1L<<3)
#define DvLed	(1L<<4)
#define DvLedMode	(1L<<5)
#define DvKey	(1L<<6)
#define DvAutoRepeatMode	(1L<<7)
#define AddToList	0
#define AsyncThisDevice	0
#define COUNT	0
#define DeviceAdded	0
#define Dont_Check	0
#define IsXPointer	0
#define KbdFeedbackClass	0
#define KeyClass	0
#define NewPointer	0
#define Relative	0
#define XI_Absent	0
#define XI_BadDevice	0
#define XI_Initial_Release_Minor	0
#define XPOINTER	0
#define _devicePointerMotionHint	0
#define _devicePresence	0
#define UseXKeyboard	0xFF
#define Absolute	1
#define ButtonClass	1
#define CREATE	1
#define DEVICE_RESOLUTION	1
#define DeleteFromList	1
#define DeviceRemoved	1
#define IsXKeyboard	1
#define NewKeyboard	1
#define NoSuchExtension	1
#define PtrFeedbackClass	1
#define SyncThisDevice	1
#define XI_Add_DevicePresenceNotify_Major	1
#define XI_Add_XChangeDeviceControl_Major	1
#define XI_Add_XDeviceBell_Major	1
#define XI_Add_XDeviceBell_Minor	1
#define XI_Add_XSetDeviceValuators_Major	1
#define XI_BadEvent	1
#define XI_Initial_Release_Major	1
#define XI_Present	1
#define XInput_Initial_Release	1
#define XKEYBOARD	1
#define _deviceButton1Motion	1
#define sz_xAllowDeviceEventsReq	12
#define sz_xChangeDeviceDontPropagateListReq	12
#define sz_xChangeFeedbackControlReq	12
#define sz_xSelectExtensionEventReq	12
#define sz_xUngrabDeviceReq	12
#define sz_xGetDeviceMotionEventsReq	16
#define sz_xSendExtensionEventReq	16
#define sz_xSetDeviceFocusReq	16
#define sz_xUngrabDeviceButtonReq	16
#define sz_xUngrabDeviceKeyReq	16
#define DEVICE_ABS_CALIB	2
#define DeviceEnabled	2
#define IsXExtensionDevice	2
#define ReplayThisDevice	2
#define StringFeedbackClass	2
#define ValuatorClass	2
#define XI_Add_XSetDeviceValuators_Minor	2
#define XI_BadMode	2
#define XInput_Add_XDeviceBell	2
#define _deviceButton2Motion	2
#define sz_xGrabDeviceButtonReq	20
#define sz_xGrabDeviceKeyReq	20
#define sz_xGrabDeviceReq	20
#define AsyncOtherDevices	3
#define DEVICE_CORE	3
#define DeviceDisabled	3
#define FeedbackClass	3
#define FollowKeyboard	3
#define IntegerFeedbackClass	3
#define IsXExtensionKeyboard	3
#define RevertToFollowKeyboard	3
#define XI_Add_XChangeDeviceControl_Minor	3
#define XI_DeviceBusy	3
#define XInput_Add_XSetDeviceValuators	3
#define _deviceButton3Motion	3
#define sz_xChangeDeviceControlReply	32
#define sz_xChangeKeyboardDeviceReply	32
#define sz_xChangePointerDeviceReply	32
#define sz_xGetDeviceButtonMappingReply	32
#define sz_xGetDeviceControlReply	32
#define sz_xGetDeviceDontPropagateListReply	32
#define sz_xGetDeviceFocusReply	32
#define sz_xGetDeviceKeyMappingReply	32
#define sz_xGetDeviceMotionEventsReply	32
#define sz_xGetExtensionVersionReply	32
#define sz_xGetFeedbackControlReply	32
#define sz_xGetSelectedExtensionEventsReply	32
#define sz_xGrabDeviceButtonReply	32
#define sz_xGrabDeviceKeyReply	32
#define sz_xGrabDeviceReply	32
#define sz_xListInputDevicesReply	32
#define sz_xOpenDeviceReply	32
#define sz_xQueryDeviceStateReply	32
#define sz_xSetDeviceButtonMappingReply	32
#define sz_xSetDeviceModeReply	32
#define sz_xSetDeviceModifierMappingReply	32
#define sz_xSetDeviceValuatorsReply	32
#define AsyncAll	4
#define DEVICE_ENABLE	4
#define DeviceUnrecoverable	4
#define IsXExtensionPointer	4
#define LedFeedbackClass	4
#define ProximityClass	4
#define XI_Add_DevicePresenceNotify_Minor	4
#define XI_BadClass	4
#define XInput_Add_XChangeDeviceControl	4
#define _deviceButton4Motion	4
#define sz_xListInputDevicesReq	4
#define BellFeedbackClass	5
#define DEVICE_ABS_AREA	5
#define FocusClass	5
#define SyncAll	5
#define XInput_Add_DevicePresenceNotify	5
#define _deviceButton5Motion	5
#define OtherClass	6
#define _deviceButtonMotion	6
#define _deviceButtonGrab	7
#define _deviceOwnerGrabButton	8
#define sz_xChangeDeviceControlReq	8
#define sz_xChangeDeviceKeyMappingReq	8
#define sz_xChangeKeyboardDeviceReq	8
#define sz_xChangePointerDeviceReq	8
#define sz_xCloseDeviceReq	8
#define sz_xDeviceBellReq	8
#define sz_xGetDeviceButtonMappingReq	8
#define sz_xGetDeviceControlReq	8
#define sz_xGetDeviceDontPropagateListReq	8
#define sz_xGetDeviceFocusReq	8
#define sz_xGetDeviceKeyMappingReq	8
#define sz_xGetDeviceModifierMappingReq	8
#define sz_xGetExtensionVersionReq	8
#define sz_xGetFeedbackControlReq	8
#define sz_xGetSelectedExtensionEventsReq	8
#define sz_xOpenDeviceReq	8
#define sz_xQueryDeviceStateReq	8
#define sz_xSetDeviceButtonMappingReq	8
#define sz_xSetDeviceModeReq	8
#define sz_xSetDeviceModifierMappingReq	8
#define sz_xSetDeviceValuatorsReq	8
#define _noExtensionEvent	9
#define XI_BARCODE	"BARCODE"
#define XI_BUTTONBOX	"BUTTONBOX"
#define XI_CURSORKEYS	"CURSORKEYS"
#define XI_DATAGLOVE	"DATAGLOVE"
#define XI_EYETRACKER	"EYETRACKER"
#define XI_FOOTMOUSE	"FOOTMOUSE"
#define XI_ID_MODULE	"ID_MODULE"
#define XI_KEYBOARD	"KEYBOARD"
#define XI_KNOB_BOX	"KNOB_BOX"
#define XI_MOUSE	"MOUSE"
#define XI_NINE_KNOB	"NINE_KNOB"
#define XI_ONE_KNOB	"ONE_KNOB"
#define XI_QUADRATURE	"QUADRATURE"
#define XI_SPACEBALL	"SPACEBALL"
#define XI_TABLET	"TABLET"
#define XI_TOUCHPAD	"TOUCHPAD"
#define XI_TOUCHSCREEN	"TOUCHSCREEN"
#define XI_TRACKBALL	"TRACKBALL"
#define INAME	"XInputExtension"

typedef long unsigned int XEventClass;
typedef struct {
    int present;
    short int major_version;
    short int minor_version;
} XExtensionVersion;

6.16.2. X11/extensions/XInput.h


#define _XINPUT_H_
#define DeviceButtonPress(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, ButtonClass, _deviceButtonPress)
#define DeviceButtonRelease(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, ButtonClass, _deviceButtonRelease)
#define DeviceFocusIn(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, FocusClass, _deviceFocusIn)
#define DeviceFocusOut(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, FocusClass, _deviceFocusOut)
#define DeviceKeyPress(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, KeyClass, _deviceKeyPress)
#define DeviceKeyRelease(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, KeyClass, _deviceKeyRelease)
#define ChangeDeviceNotify(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, OtherClass, _changeDeviceNotify)
#define DeviceMappingNotify(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, OtherClass, _deviceMappingNotify)
#define DeviceStateNotify(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, OtherClass, _deviceStateNotify)
#define ProximityIn(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, ProximityClass, _proximityIn)
#define ProximityOut(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, ProximityClass, _proximityOut)
#define DeviceMotionNotify(d,type,_class)	 \
	FindTypeAndClass(d, type, _class, ValuatorClass, _deviceMotionNotify)
#define FindTypeAndClass(d,type,_class,classid,offset)	 \
	{ int _i; XInputClassInfo *_ip; type = 0; _class = 0; for (_i=0, _ip= \
	((XDevice *) d)->classes; _i< ((XDevice *) d)->num_classes; _i++, \
	_ip++) if (_ip->input_class == classid) {type = _ip->event_type_base + \
	offset; _class = ((XDevice *) d)->device_id << 8 | type;}}
#define DevicePointerMotionHint(d,type,_class)	 \
	{ _class = ((XDevice *) d)->device_id << 8 | \
	_devicePointerMotionHint;}
#define DeviceButton1Motion(d,type,_class)	 \
	{ _class = ((XDevice *) d)->device_id << 8 | _deviceButton1Motion;}
#define DeviceButton2Motion(d,type,_class)	 \
	{ _class = ((XDevice *) d)->device_id << 8 | _deviceButton2Motion;}
#define DeviceButton3Motion(d,type,_class)	 \
	{ _class = ((XDevice *) d)->device_id << 8 | _deviceButton3Motion;}
#define DeviceButton5Motion(d,type,_class)	 \
	{ _class = ((XDevice *) d)->device_id << 8 | _deviceButton5Motion;}
#define DeviceButtonPressGrab(d,type,_class)	 \
	{ _class = ((XDevice *) d)->device_id << 8 | _deviceButtonGrab;}
#define DeviceOwnerGrabButton(d,type,_class)	 \
	{ _class = ((XDevice *) d)->device_id << 8 | _deviceOwnerGrabButton;}
#define NoExtensionEvent(d,type,_class)	 \
	{ _class = ((XDevice *) d)->device_id << 8 | _noExtensionEvent;}
#define _deviceButtonPress	0
#define _deviceFocusIn	0
#define _deviceKeyPress	0
#define _deviceMotionNotify	0
#define _deviceStateNotify	0
#define _proximityIn	0
#define _deviceButtonRelease	1
#define _deviceFocusOut	1
#define _deviceKeyRelease	1
#define _deviceMappingNotify	1
#define _proximityOut	1
#define _changeDeviceNotify	2
#define DeviceButton4Motion(d,type, _class)	{ _class =  ((XDevice *) d)->device_id << 8 | _deviceButton4Motion;}
#define DeviceButtonMotion(d,type, _class)	{ _class =  ((XDevice *) d)->device_id << 8 | _deviceButtonMotion;}
#define DevicePresence(dpy, type, _class)	{\
    extern int _XiGetDevicePresenceNotifyEvent(Display *); \
    type = _XiGetDevicePresenceNotifyEvent(dpy);            \
 _class =  (0x10000 | _devicePresence); \
 }

typedef struct {
    unsigned char input_class;
    unsigned char event_type_base;
} XInputClassInfo;
typedef struct {
    XID device_id;
    int num_classes;
    XInputClassInfo *classes;
} XDevice;
typedef struct {
    int type;
    long unsigned int serial;
    int send_event;
    Display *display;
    Window window;
    XID deviceid;
    Window root;
    Window subwindow;
    Time time;
    int x;
    int y;
    int x_root;
    int y_root;
    unsigned int state;
    unsigned int keycode;
    int same_screen;
    unsigned int device_state;
    unsigned char axes_count;
    unsigned char first_axis;
    int axis_data[6];
} XDeviceKeyEvent;
typedef XDeviceKeyEvent XDeviceKeyPressedEvent;
typedef XDeviceKeyEvent XDeviceKeyReleasedEvent;
typedef struct {
    int type;
    long unsigned int serial;
    int send_event;
    Display *display;
    Window window;
    XID deviceid;
    Window root;
    Window subwindow;
    Time time;
    int x;
    int y;
    int x_root;
    int y_root;
    unsigned int state;
    unsigned int button;
    int same_screen;
    unsigned int device_state;
    unsigned char axes_count;
    unsigned char first_axis;
    int axis_data[6];
} XDeviceButtonEvent;
typedef XDeviceButtonEvent XDeviceButtonPressedEvent;
typedef XDeviceButtonEvent XDeviceButtonReleasedEvent;
typedef struct {
    int type;
    long unsigned int serial;
    int send_event;
    Display *display;
    Window window;
    XID deviceid;
    Window root;
    Window subwindow;
    Time time;
    int x;
    int y;
    int x_root;
    int y_root;
    unsigned int state;
    char is_hint;
    int same_screen;
    unsigned int device_state;
    unsigned char axes_count;
    unsigned char first_axis;
    int axis_data[6];
} XDeviceMotionEvent;
typedef struct {
    int type;
    long unsigned int serial;
    int send_event;
    Display *display;
    Window window;
    XID deviceid;
    int mode;
    int detail;
    Time time;
} XDeviceFocusChangeEvent;
typedef XDeviceFocusChangeEvent XDeviceFocusInEvent;
typedef XDeviceFocusChangeEvent XDeviceFocusOutEvent;
typedef struct {
    int type;
    long unsigned int serial;
    int send_event;
    Display *display;
    Window window;
    XID deviceid;
    Window root;
    Window subwindow;
    Time time;
    int x;
    int y;
    int x_root;
    int y_root;
    unsigned int state;
    int same_screen;
    unsigned int device_state;
    unsigned char axes_count;
    unsigned char first_axis;
    int axis_data[6];
} XProximityNotifyEvent;
typedef XProximityNotifyEvent XProximityInEvent;
typedef XProximityNotifyEvent XProximityOutEvent;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    unsigned c_class;
#else
    unsigned class;
#endif
    unsigned char length;
} XInputClass;
typedef struct {
    int type;
    long unsigned int serial;
    int send_event;
    Display *display;
    Window window;
    XID deviceid;
    Time time;
    int num_classes;
    char data[64];
} XDeviceStateNotifyEvent;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    unsigned c_class;
#else
    unsigned class;
#endif
    unsigned char length;
    unsigned char num_valuators;
    unsigned char mode;
    int valuators[6];
} XValuatorStatus;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    unsigned c_class;
#else
    unsigned class;
#endif
    unsigned char length;
    short int num_keys;
    char keys[32];
} XKeyStatus;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    unsigned c_class;
#else
    unsigned class;
#endif
    unsigned char length;
    short int num_buttons;
    char buttons[32];
} XButtonStatus;
typedef struct {
    int type;
    long unsigned int serial;
    int send_event;
    Display *display;
    Window window;
    XID deviceid;
    Time time;
    int request;
    int first_keycode;
    int count;
} XDeviceMappingEvent;
typedef struct {
    int type;
    long unsigned int serial;
    int send_event;
    Display *display;
    Window window;
    XID deviceid;
    Time time;
    int request;
} XChangeDeviceNotifyEvent;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
} XFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int click;
    int percent;
    int pitch;
    int duration;
    int led_mask;
    int global_auto_repeat;
    char auto_repeats[32];
} XKbdFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int accelNum;
    int accelDenom;
    int threshold;
} XPtrFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int resolution;
    int minVal;
    int maxVal;
} XIntegerFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int max_symbols;
    int num_syms_supported;
    KeySym *syms_supported;
} XStringFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int percent;
    int pitch;
    int duration;
} XBellFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int led_values;
    int led_mask;
} XLedFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
} XFeedbackControl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int accelNum;
    int accelDenom;
    int threshold;
} XPtrFeedbackControl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int click;
    int percent;
    int pitch;
    int duration;
    int led_mask;
    int led_value;
    int key;
    int auto_repeat_mode;
} XKbdFeedbackControl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int num_keysyms;
    KeySym *syms_to_display;
} XStringFeedbackControl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int int_to_display;
} XIntegerFeedbackControl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int percent;
    int pitch;
    int duration;
} XBellFeedbackControl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    XID id;
    int led_mask;
    int led_values;
} XLedFeedbackControl;
typedef struct {
    XID control;
    int length;
} XDeviceControl;
typedef struct {
    XID control;
    int length;
    int first_valuator;
    int num_valuators;
    int *resolutions;
} XDeviceResolutionControl;
typedef struct {
    XID control;
    int length;
    int num_valuators;
    int *resolutions;
    int *min_resolutions;
    int *max_resolutions;
} XDeviceResolutionState;
typedef struct _XAnyClassinfo *XAnyClassPtr;
typedef struct _XAnyClassinfo {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
} XAnyClassInfo;
typedef struct _XDeviceInfo *XDeviceInfoPtr;
typedef struct _XDeviceInfo {
    XID id;
    Atom type;
    char *name;
    int num_classes;
    int use;
    XAnyClassPtr inputclassinfo;
} XDeviceInfo;
typedef struct _XKeyInfo *XKeyInfoPtr;
typedef struct _XKeyInfo {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    short unsigned int min_keycode;
    short unsigned int max_keycode;
    short unsigned int num_keys;
} XKeyInfo;
typedef struct _XButtonInfo *XButtonInfoPtr;
typedef struct _XButtonInfo {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    short int num_buttons;
} XButtonInfo;
typedef struct _XAxisInfo *XAxisInfoPtr;
typedef struct _XAxisInfo {
    int resolution;
    int min_value;
    int max_value;
} XAxisInfo;
typedef struct _XValuatorInfo *XValuatorInfoPtr;
typedef struct _XValuatorInfo {
#if defined(__cplusplus) || defined(c_plusplus)
    XID c_class;
#else
    XID class;
#endif
    int length;
    unsigned char num_axes;
    unsigned char mode;
    long unsigned int motion_buffer;
    XAxisInfoPtr axes;
} XValuatorInfo;
typedef struct {
    XEventClass event_type;
    XID device;
} XEventList;
typedef struct {
    Time time;
    int *data;
} XDeviceTimeCoord;
typedef struct {
    XID device_id;
    int num_classes;
    XInputClass *data;
} XDeviceState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    unsigned c_class;
#else
    unsigned class;
#endif
    unsigned char length;
    unsigned char num_valuators;
    unsigned char mode;
    int *valuators;
} XValuatorState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    unsigned c_class;
#else
    unsigned class;
#endif
    unsigned char length;
    short int num_keys;
    char keys[32];
} XKeyState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    unsigned c_class;
#else
    unsigned class;
#endif
    unsigned char length;
    short int num_buttons;
    char buttons[32];
} XButtonState;
extern int XAllowDeviceEvents(Display *, XDevice *, int, Time);
extern int XChangeDeviceControl(Display *, XDevice *, int,
				XDeviceControl *);
extern int XChangeDeviceDontPropagateList(Display *, Window, int,
					  XEventClass *, int);
extern int XChangeDeviceKeyMapping(Display *, XDevice *, int, int,
				   KeySym *, int);
extern int XChangeFeedbackControl(Display *, XDevice *, unsigned long int,
				  XFeedbackControl *);
extern int XChangeKeyboardDevice(Display *, XDevice *);
extern int XChangePointerDevice(Display *, XDevice *, int, int);
extern int XCloseDevice(Display *, XDevice *);
extern int XDeviceBell(Display *, XDevice *, XID, XID, int);
extern void XFreeDeviceControl(XDeviceControl *);
extern void XFreeDeviceList(XDeviceInfo *);
extern void XFreeDeviceMotionEvents(XDeviceTimeCoord *);
extern void XFreeDeviceState(XDeviceState *);
extern void XFreeFeedbackList(XFeedbackState *);
extern int XGetDeviceButtonMapping(Display *, XDevice *, unsigned char *,
				   unsigned int);
extern XDeviceControl *XGetDeviceControl(Display *, XDevice *, int);
extern XEventClass *XGetDeviceDontPropagateList(Display *, Window, int *);
extern int XGetDeviceFocus(Display *, XDevice *, Window *, int *, Time *);
extern KeySym *XGetDeviceKeyMapping(Display *, XDevice *, unsigned int,
				    int, int *);
extern XModifierKeymap *XGetDeviceModifierMapping(Display *, XDevice *);
extern XDeviceTimeCoord *XGetDeviceMotionEvents(Display *, XDevice *, Time,
						Time, int *, int *, int *);
extern XExtensionVersion *XGetExtensionVersion(Display *, const char *);
extern XFeedbackState *XGetFeedbackControl(Display *, XDevice *, int *);
extern int XGetSelectedExtensionEvents(Display *, Window, int *,
				       XEventClass * *, int *,
				       XEventClass * *);
extern int XGrabDevice(Display *, XDevice *, Window, int, int,
		       XEventClass *, int, int, Time);
extern int XGrabDeviceButton(Display *, XDevice *, unsigned int,
			     unsigned int, XDevice *, Window, int,
			     unsigned int, XEventClass *, int, int);
extern int XGrabDeviceKey(Display *, XDevice *, unsigned int, unsigned int,
			  XDevice *, Window, int, unsigned int,
			  XEventClass *, int, int);
extern XDeviceInfo *XListInputDevices(Display *, int *);
extern XDevice *XOpenDevice(Display *, XID);
extern XDeviceState *XQueryDeviceState(Display *, XDevice *);
extern int XSelectExtensionEvent(Display *, Window, XEventClass *, int);
extern int XSendExtensionEvent(Display *, XDevice *, Window, int, int,
			       XEventClass *, XEvent *);
extern int XSetDeviceButtonMapping(Display *, XDevice *, unsigned char *,
				   int);
extern int XSetDeviceFocus(Display *, XDevice *, Window, int, Time);
extern int XSetDeviceMode(Display *, XDevice *, int);
extern int XSetDeviceModifierMapping(Display *, XDevice *,
				     XModifierKeymap *);
extern int XSetDeviceValuators(Display *, XDevice *, int *, int, int);
extern int XUngrabDevice(Display *, XDevice *, Time);
extern int XUngrabDeviceButton(Display *, XDevice *, unsigned int,
			       unsigned int, XDevice *, Window);
extern int XUngrabDeviceKey(Display *, XDevice *, unsigned int,
			    unsigned int, XDevice *, Window);

6.16.3. X11/extensions/XIproto.h


#define XI_DeviceValuator	0
#define InputClassBits	0x3F
#define DEVICE_BITS	0x7F
#define MORE_EVENTS	0x80
#define CLIENT_REQ	1
#define XI_DeviceKeyPress	1
#define X_GetExtensionVersion	1
#define XI_DeviceStateNotify	10
#define X_GetDeviceMotionEvents	10
#define XI_DeviceMappingNotify	11
#define X_ChangeKeyboardDevice	11
#define XI_ChangeDeviceNotify	12
#define X_ChangePointerDevice	12
#define XI_DeviceKeystateNotify	13
#define X_GrabDevice	13
#define XI_DeviceButtonstateNotify	14
#define X_UngrabDevice	14
#define XI_DevicePresenceNotify	15
#define X_GrabDeviceKey	15
#define IEVENTS	16
#define X_UngrabDeviceKey	16
#define X_GrabDeviceButton	17
#define X_UngrabDeviceButton	18
#define X_AllowDeviceEvents	19
#define XI_DeviceKeyRelease	2
#define X_ListInputDevices	2
#define X_GetDeviceFocus	20
#define X_SetDeviceFocus	21
#define X_GetFeedbackControl	22
#define X_ChangeFeedbackControl	23
#define X_GetDeviceKeyMapping	24
#define X_ChangeDeviceKeyMapping	25
#define X_GetDeviceModifierMapping	26
#define X_SetDeviceModifierMapping	27
#define X_GetDeviceButtonMapping	28
#define X_SetDeviceButtonMapping	29
#define XI_DeviceButtonPress	3
#define X_OpenDevice	3
#define X_QueryDeviceState	30
#define X_SendExtensionEvent	31
#define X_DeviceBell	32
#define X_SetDeviceValuators	33
#define X_GetDeviceControl	34
#define X_ChangeDeviceControl	35
#define XI_DeviceButtonRelease	4
#define X_CloseDevice	4
#define IERRORS	5
#define XI_DeviceMotionNotify	5
#define X_SetDeviceMode	5
#define ModeBitsShift	6
#define XI_DeviceFocusIn	6
#define X_SelectExtensionEvent	6
#define XI_DeviceFocusOut	7
#define X_GetSelectedExtensionEvents	7
#define numInputClasses	7
#define XI_ProximityIn	8
#define X_ChangeDeviceDontPropagateList	8
#define XI_ProximityOut	9
#define X_GetDeviceDontPropagateList	9

typedef struct _XExtEventInfo {
    Mask mask;
    BYTE type;
    BYTE word;
} XExtEventInfo;
typedef unsigned char *Pointer;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD16 nbytes;
    CARD8 pad1;
    CARD8 pad2;
} xGetExtensionVersionReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 major_version;
    CARD16 minor_version;
    BOOL present;
    CARD8 pad1;
    CARD8 pad2;
    CARD8 pad3;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
} xGetExtensionVersionReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
} xListInputDevicesReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 ndevices;
    CARD8 pad1;
    CARD8 pad2;
    CARD8 pad3;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
} xListInputDevicesReply;
typedef struct _xDeviceInfo *xDeviceInfoPtr;
typedef struct _xAnyClassinfo *xAnyClassPtr;
typedef struct _xAnyClassinfo {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 length;
} xAnyClassInfo;
typedef struct _xDeviceInfo {
    CARD32 type;
    CARD8 id;
    CARD8 num_classes;
    CARD8 use;
    CARD8 pad1;
} xDeviceInfo;
typedef struct _xKeyInfo *xKeyInfoPtr;
typedef struct _xKeyInfo {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 length;
    CARD8 min_keycode;
    CARD8 max_keycode;
    CARD16 num_keys;
    CARD8 pad1;
    CARD8 pad2;
} xKeyInfo;
typedef struct _xButtonInfo *xButtonInfoPtr;
typedef struct _xButtonInfo {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 length;
    CARD16 num_buttons;
} xButtonInfo;
typedef struct _xValuatorInfo *xValuatorInfoPtr;
typedef struct _xValuatorInfo {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 length;
    CARD8 num_axes;
    CARD8 mode;
    CARD32 motion_buffer_size;
} xValuatorInfo;
typedef struct _xAxisInfo *xAxisInfoPtr;
typedef struct _xAxisInfo {
    CARD32 resolution;
    CARD32 min_value;
    CARD32 max_value;
} xAxisInfo;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xOpenDeviceReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 num_classes;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD32 pad00;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
} xOpenDeviceReply;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 event_type_base;
} xInputClassInfo;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xCloseDeviceReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    CARD8 mode;
    BYTE pad1;
    BYTE pad2;
} xSetDeviceModeReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 status;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
} xSetDeviceModeReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 window;
    CARD16 count;
    CARD16 pad00;
} xSelectExtensionEventReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 window;
} xGetSelectedExtensionEventsReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 this_client_count;
    CARD16 all_clients_count;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
} xGetSelectedExtensionEventsReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 window;
    CARD16 count;
    CARD8 mode;
    BYTE pad;
} xChangeDeviceDontPropagateListReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 window;
} xGetDeviceDontPropagateListReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 count;
    CARD16 pad00;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
} xGetDeviceDontPropagateListReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 start;
    CARD32 stop;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xGetDeviceMotionEventsReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 nEvents;
    CARD8 axes;
    CARD8 mode;
    BYTE pad1;
    BYTE pad2;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
} xGetDeviceMotionEventsReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xChangeKeyboardDeviceReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 status;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
} xChangeKeyboardDeviceReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 xaxis;
    CARD8 yaxis;
    CARD8 deviceid;
    BYTE pad1;
} xChangePointerDeviceReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 status;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
} xChangePointerDeviceReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 grabWindow;
    CARD32 time;
    CARD16 event_count;
    CARD8 this_device_mode;
    CARD8 other_devices_mode;
    BOOL ownerEvents;
    CARD8 deviceid;
    CARD16 pad01;
} xGrabDeviceReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 status;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
} xGrabDeviceReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 time;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xUngrabDeviceReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 grabWindow;
    CARD16 event_count;
    CARD16 modifiers;
    CARD8 modifier_device;
    CARD8 grabbed_device;
    CARD8 key;
    BYTE this_device_mode;
    BYTE other_devices_mode;
    BOOL ownerEvents;
    BYTE pad1;
    BYTE pad2;
} xGrabDeviceKeyReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 grabWindow;
    CARD16 modifiers;
    CARD8 modifier_device;
    CARD8 key;
    CARD8 grabbed_device;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xUngrabDeviceKeyReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 grabWindow;
    CARD8 grabbed_device;
    CARD8 modifier_device;
    CARD16 event_count;
    CARD16 modifiers;
    BYTE this_device_mode;
    BYTE other_devices_mode;
    CARD8 button;
    BOOL ownerEvents;
    BYTE pad1;
    BYTE pad2;
} xGrabDeviceButtonReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 grabWindow;
    CARD16 modifiers;
    CARD8 modifier_device;
    CARD8 button;
    CARD8 grabbed_device;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xUngrabDeviceButtonReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 time;
    CARD8 mode;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
} xAllowDeviceEventsReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xGetDeviceFocusReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD32 focus;
    CARD32 time;
    CARD8 revertTo;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
} xGetDeviceFocusReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 focus;
    CARD32 time;
    CARD8 revertTo;
    CARD8 device;
    CARD16 pad01;
} xSetDeviceFocusReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xGetFeedbackControlReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD16 num_feedbacks;
    CARD16 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
    CARD32 pad06;
} xGetFeedbackControlReply;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
} xFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    CARD16 pitch;
    CARD16 duration;
    CARD32 led_mask;
    CARD32 led_values;
    BOOL global_auto_repeat;
    CARD8 click;
    CARD8 percent;
    BYTE pad;
    BYTE auto_repeats[32];
} xKbdFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    CARD8 pad1;
    CARD8 pad2;
    CARD16 accelNum;
    CARD16 accelDenom;
    CARD16 threshold;
} xPtrFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    CARD32 resolution;
    INT32 min_value;
    INT32 max_value;
} xIntegerFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    CARD16 max_symbols;
    CARD16 num_syms_supported;
} xStringFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    CARD8 percent;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD16 pitch;
    CARD16 duration;
} xBellFeedbackState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    CARD32 led_mask;
    CARD32 led_values;
} xLedFeedbackState;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 mask;
    CARD8 deviceid;
    CARD8 feedbackid;
    BYTE pad1;
    BYTE pad2;
} xChangeFeedbackControlReq;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
} xFeedbackCtl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    CARD8 key;
    CARD8 auto_repeat_mode;
    INT8 click;
    INT8 percent;
    INT16 pitch;
    INT16 duration;
    CARD32 led_mask;
    CARD32 led_values;
} xKbdFeedbackCtl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    CARD8 pad1;
    CARD8 pad2;
    INT16 num;
    INT16 denom;
    INT16 thresh;
} xPtrFeedbackCtl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    INT32 int_to_display;
} xIntegerFeedbackCtl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    CARD8 pad1;
    CARD8 pad2;
    CARD16 num_keysyms;
} xStringFeedbackCtl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    INT8 percent;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    INT16 pitch;
    INT16 duration;
} xBellFeedbackCtl;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 id;
    CARD16 length;
    CARD32 led_mask;
    CARD32 led_values;
} xLedFeedbackCtl;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    CARD8 firstKeyCode;
    CARD8 count;
    BYTE pad1;
} xGetDeviceKeyMappingReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 keySymsPerKeyCode;
    CARD8 pad0;
    CARD16 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xGetDeviceKeyMappingReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    CARD8 firstKeyCode;
    CARD8 keySymsPerKeyCode;
    CARD8 keyCodes;
} xChangeDeviceKeyMappingReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xGetDeviceModifierMappingReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 numKeyPerModifier;
    CARD8 pad0;
    CARD16 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xGetDeviceModifierMappingReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    CARD8 numKeyPerModifier;
    CARD16 pad1;
} xSetDeviceModifierMappingReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 success;
    CARD8 pad0;
    CARD16 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xSetDeviceModifierMappingReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xGetDeviceButtonMappingReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 nElts;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
} xGetDeviceButtonMappingReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    CARD8 map_length;
    BYTE pad1;
    BYTE pad2;
} xSetDeviceButtonMappingReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 status;
    BYTE pad0;
    CARD16 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xSetDeviceButtonMappingReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xQueryDeviceStateReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 num_classes;
    BYTE pad0;
    CARD16 pad1;
    CARD32 pad2;
    CARD32 pad3;
    CARD32 pad4;
    CARD32 pad5;
    CARD32 pad6;
} xQueryDeviceStateReply;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 length;
    CARD8 num_keys;
    BYTE pad1;
    CARD8 keys[32];
} xKeyState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 length;
    CARD8 num_buttons;
    BYTE pad1;
    CARD8 buttons[32];
} xButtonState;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
    CARD8 c_class;
#else
    CARD8 class;
#endif
    CARD8 length;
    CARD8 num_valuators;
    CARD8 mode;
} xValuatorState;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD32 destination;
    CARD8 deviceid;
    BOOL propagate;
    CARD16 count;
    CARD8 num_events;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
} xSendExtensionEventReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    CARD8 feedbackid;
    CARD8 feedbackclass;
    INT8 percent;
} xDeviceBellReq;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD8 deviceid;
    CARD8 first_valuator;
    CARD8 num_valuators;
    BYTE pad1;
} xSetDeviceValuatorsReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 status;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
} xSetDeviceValuatorsReply;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD16 control;
    CARD8 deviceid;
    BYTE pad2;
} xGetDeviceControlReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 status;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
} xGetDeviceControlReply;
typedef struct {
    CARD16 control;
    CARD16 length;
} xDeviceState;
typedef struct {
    CARD16 control;
    CARD16 length;
    CARD32 num_valuators;
} xDeviceResolutionState;
typedef struct {
    CARD8 reqType;
    CARD8 ReqType;
    CARD16 length;
    CARD16 control;
    CARD8 deviceid;
    BYTE pad0;
} xChangeDeviceControlReq;
typedef struct {
    CARD8 repType;
    CARD8 RepType;
    CARD16 sequenceNumber;
    CARD32 length;
    CARD8 status;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
    CARD32 pad05;
} xChangeDeviceControlReply;
typedef struct {
    CARD16 control;
    CARD16 length;
} xDeviceCtl;
typedef struct {
    CARD16 control;
    CARD16 length;
    CARD8 first_valuator;
    CARD8 num_valuators;
    CARD8 pad1;
    CARD8 pad2;
} xDeviceResolutionCtl;
typedef struct {
    BYTE type;
    CARD8 deviceid;
    CARD16 sequenceNumber;
    KeyButMask device_state;
    CARD8 num_valuators;
    CARD8 first_valuator;
    INT32 valuator0;
    INT32 valuator1;
    INT32 valuator2;
    INT32 valuator3;
    INT32 valuator4;
    INT32 valuator5;
} deviceValuator;
typedef struct {
    BYTE type;
    BYTE detail;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD32 root;
    CARD32 event;
    CARD32 child;
    INT16 root_x;
    INT16 root_y;
    INT16 event_x;
    INT16 event_y;
    KeyButMask state;
    BOOL same_screen;
    CARD8 deviceid;
} deviceKeyButtonPointer;
typedef struct {
    BYTE type;
    BYTE detail;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD32 window;
    BYTE mode;
    CARD8 deviceid;
    BYTE pad1;
    BYTE pad2;
    CARD32 pad00;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
} deviceFocus;
typedef struct {
    BYTE type;
    BYTE deviceid;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 num_keys;
    CARD8 num_buttons;
    CARD8 num_valuators;
    CARD8 classes_reported;
    CARD8 buttons[4];
    CARD8 keys[4];
    INT32 valuator0;
    INT32 valuator1;
    INT32 valuator2;
} deviceStateNotify;
typedef struct {
    BYTE type;
    BYTE deviceid;
    CARD16 sequenceNumber;
    CARD8 keys[28];
} deviceKeyStateNotify;
typedef struct {
    BYTE type;
    BYTE deviceid;
    CARD16 sequenceNumber;
    CARD8 buttons[28];
} deviceButtonStateNotify;
typedef struct {
    BYTE type;
    BYTE deviceid;
    CARD16 sequenceNumber;
    CARD8 request;
    CARD8 firstKeyCode;
    CARD8 count;
    BYTE pad1;
    CARD32 time;
    CARD32 pad00;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
} deviceMappingNotify;
typedef struct {
    BYTE type;
    BYTE deviceid;
    CARD16 sequenceNumber;
    CARD32 time;
    CARD8 request;
    BYTE pad1;
    BYTE pad2;
    BYTE pad3;
    CARD32 pad00;
    CARD32 pad01;
    CARD32 pad02;
    CARD32 pad03;
    CARD32 pad04;
} changeDeviceNotify;

6.17. Interfaces for libXtst

Table 6-22 defines the library name and shared object name for the libXtst library

Table 6-22. libXtst Definition

Library:libXtst
SONAME:libXtst.so.6

The behavior of the interfaces in this library is specified by the following specifications:

[X-test] XTEST Extension Library


6.17.1. libXtst Interfaces


6.17.1.1. Interfaces for libXtst Interfaces

An LSB conforming implementation shall provide the generic functions for libXtst Interfaces specified in Table 6-23, with the full mandatory functionality as described in the referenced underlying specification.

Table 6-23. libXtst - libXtst Interfaces Function Interfaces

XTestCompareCurrentCursorWithWindow [X-test]XTestCompareCursorWithWindow [X-test]XTestDiscard [X-test]XTestFakeButtonEvent [X-test]
XTestFakeDeviceButtonEvent [X-test]XTestFakeDeviceKeyEvent [X-test]XTestFakeDeviceMotionEvent [X-test]XTestFakeKeyEvent [X-test]
XTestFakeMotionEvent [X-test]XTestFakeProximityEvent [X-test]XTestFakeRelativeMotionEvent [X-test]XTestGrabControl [X-test]
XTestQueryExtension [X-test]XTestSetGContextOfGC [X-test]XTestSetVisualIDOfVisual [X-test] 

6.18. Data Definitions for libXtst

This section defines global identifiers and their values that are associated with interfaces contained in libXtst. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.


6.18.1. X11/extensions/XTest.h


#define XTestNumberErrors	0
#define XTestNumberEvents	0
#define X_XTestGetVersion	0
#define X_XTestCompareCursor	1
#define XTestMajorVersion	2
#define XTestMinorVersion	2
#define X_XTestFakeInput	2
#define X_XTestGrabControl	3
#define XTestExtensionName	"XTEST"

extern int XTestCompareCurrentCursorWithWindow(Display *, Window);
extern int XTestCompareCursorWithWindow(Display *, Window, Cursor);
extern int XTestDiscard(Display *);
extern int XTestFakeButtonEvent(Display *, unsigned int, int,
				unsigned long int);
extern int XTestFakeDeviceButtonEvent(Display *, XDevice *, unsigned int,
				      int, int *, int, unsigned long int);
extern int XTestFakeDeviceKeyEvent(Display *, XDevice *, unsigned int, int,
				   int *, int, unsigned long int);
extern int XTestFakeDeviceMotionEvent(Display *, XDevice *, int, int,
				      int *, int, unsigned long int);
extern int XTestFakeKeyEvent(Display *, unsigned int, int,
			     unsigned long int);
extern int XTestFakeMotionEvent(Display *, int, int, int,
				unsigned long int);
extern int XTestFakeProximityEvent(Display *, XDevice *, int, int *, int,
				   unsigned long int);
extern int XTestFakeRelativeMotionEvent(Display *, int, int,
					unsigned long int);
extern int XTestGrabControl(Display *, int);
extern int XTestQueryExtension(Display *, int *, int *, int *, int *);
extern void XTestSetGContextOfGC(GC, GContext);
extern void XTestSetVisualIDOfVisual(Visual *, VisualID);

Chapter 7. Libraries

7.1. Interfaces for libGL

Table 7-1 defines the library name and shared object name for the libGL library

Table 7-1. libGL Definition

Library:libGL
SONAME:libGL.so.1

The behavior of the interfaces in this library is specified by the following specifications:

[GLX] OpenGL Extensions
[OGL] OpenGL
[OGL ABI] OpenGL ABI


7.1.1. GL X interface


7.1.1.1. Interfaces for GL X interface

An LSB conforming implementation shall provide the generic functions for GL X interface specified in Table 7-2, with the full mandatory functionality as described in the referenced underlying specification.

Table 7-2. libGL - GL X interface Function Interfaces

glXChooseFBConfig [GLX]glXChooseVisual [GLX]glXCopyContext [GLX]glXCreateContext [GLX]
glXCreateGLXPixmap [GLX]glXCreateNewContext [GLX]glXCreatePbuffer [GLX]glXCreatePixmap [GLX]
glXCreateWindow [GLX]glXDestroyContext [GLX]glXDestroyGLXPixmap [GLX]glXDestroyPbuffer [GLX]
glXDestroyPixmap [GLX]glXDestroyWindow [GLX]glXFreeContextEXT [GLX]glXGetClientString [GLX]
glXGetConfig [GLX]glXGetContextIDEXT [GLX]glXGetCurrentContext [GLX]glXGetCurrentDisplay [GLX]
glXGetCurrentDrawable [GLX]glXGetCurrentReadDrawable [GLX]glXGetFBConfigAttrib [GLX]glXGetFBConfigs [GLX]
glXGetProcAddressARB [OGL ABI]glXGetSelectedEvent [GLX]glXGetVisualFromFBConfig [GLX]glXImportContextEXT [GLX]
glXIsDirect [GLX]glXMakeContextCurrent [GLX]glXMakeCurrent [GLX]glXQueryContext [GLX]
glXQueryContextInfoEXT [GLX]glXQueryDrawable [GLX]glXQueryExtension [GLX]glXQueryExtensionsString [GLX]
glXQueryServerString [GLX]glXQueryVersion [GLX]glXSelectEvent [GLX]glXSwapBuffers [GLX]
glXUseXFont [GLX]glXWaitGL [GLX]glXWaitX [GLX] 

7.1.2. OpenGL


7.1.2.1. Interfaces for OpenGL

An LSB conforming implementation shall provide the generic functions for OpenGL specified in Table 7-3, with the full mandatory functionality as described in the referenced underlying specification.

Table 7-3. libGL - OpenGL Function Interfaces

glAccum [OGL]glActiveTextureARB [OGL]glAlphaFunc [OGL]glAreTexturesResident [OGL]
glArrayElement [OGL]glBegin [OGL]glBindTexture [OGL]glBitmap [OGL]
glBlendColor [OGL]glBlendEquation [OGL]glBlendFunc [OGL]glCallList [OGL]
glCallLists [OGL]glClear [OGL]glClearAccum [OGL]glClearColor [OGL]
glClearDepth [OGL]glClearIndex [OGL]glClearStencil [OGL]glClientActiveTextureARB [OGL]
glClipPlane [OGL]glColor3b [OGL]glColor3bv [OGL]glColor3d [OGL]
glColor3dv [OGL]glColor3f [OGL]glColor3fv [OGL]glColor3i [OGL]
glColor3iv [OGL]glColor3s [OGL]glColor3sv [OGL]glColor3ub [OGL]
glColor3ubv [OGL]glColor3ui [OGL]glColor3uiv [OGL]glColor3us [OGL]
glColor3usv [OGL]glColor4b [OGL]glColor4bv [OGL]glColor4d [OGL]
glColor4dv [OGL]glColor4f [OGL]glColor4fv [OGL]glColor4i [OGL]
glColor4iv [OGL]glColor4s [OGL]glColor4sv [OGL]glColor4ub [OGL]
glColor4ubv [OGL]glColor4ui [OGL]glColor4uiv [OGL]glColor4us [OGL]
glColor4usv [OGL]glColorMask [OGL]glColorMaterial [OGL]glColorPointer [OGL]
glColorSubTable [OGL]glColorTable [OGL]glColorTableParameterfv [OGL]glColorTableParameteriv [OGL]
glConvolutionFilter1D [OGL]glConvolutionFilter2D [OGL]glConvolutionParameterf [OGL]glConvolutionParameterfv [OGL]
glConvolutionParameteri [OGL]glConvolutionParameteriv [OGL]glCopyColorSubTable [OGL]glCopyColorTable [OGL]
glCopyConvolutionFilter1D [OGL]glCopyConvolutionFilter2D [OGL]glCopyPixels [OGL]glCopyTexImage1D [OGL]
glCopyTexImage2D [OGL]glCopyTexSubImage1D [OGL]glCopyTexSubImage2D [OGL]glCopyTexSubImage3D [OGL]
glCullFace [OGL]glDeleteLists [OGL]glDeleteTextures [OGL]glDepthFunc [OGL]
glDepthMask [OGL]glDepthRange [OGL]glDisable [OGL]glDisableClientState [OGL]
glDrawArrays [OGL]glDrawBuffer [OGL]glDrawElements [OGL]glDrawPixels [OGL]
glDrawRangeElements [OGL]glEdgeFlag [OGL]glEdgeFlagPointer [OGL]glEdgeFlagv [OGL]
glEnable [OGL]glEnableClientState [OGL]glEnd [OGL]glEndList [OGL]
glEvalCoord1d [OGL]glEvalCoord1dv [OGL]glEvalCoord1f [OGL]glEvalCoord1fv [OGL]
glEvalCoord2d [OGL]glEvalCoord2dv [OGL]glEvalCoord2f [OGL]glEvalCoord2fv [OGL]
glEvalMesh1 [OGL]glEvalMesh2 [OGL]glEvalPoint1 [OGL]glEvalPoint2 [OGL]
glFeedbackBuffer [OGL]glFinish [OGL]glFlush [OGL]glFogf [OGL]
glFogfv [OGL]glFogi [OGL]glFogiv [OGL]glFrontFace [OGL]
glFrustum [OGL]glGenLists [OGL]glGenTextures [OGL]glGetBooleanv [OGL]
glGetClipPlane [OGL]glGetColorTable [OGL]glGetColorTableParameterfv [OGL]glGetColorTableParameteriv [OGL]
glGetConvolutionFilter [OGL]glGetConvolutionParameterfv [OGL]glGetConvolutionParameteriv [OGL]glGetDoublev [OGL]
glGetError [OGL]glGetFloatv [OGL]glGetHistogram [OGL]glGetHistogramParameterfv [OGL]
glGetHistogramParameteriv [OGL]glGetIntegerv [OGL]glGetLightfv [OGL]glGetLightiv [OGL]
glGetMapdv [OGL]glGetMapfv [OGL]glGetMapiv [OGL]glGetMaterialfv [OGL]
glGetMaterialiv [OGL]glGetMinmax [OGL]glGetMinmaxParameterfv [OGL]glGetMinmaxParameteriv [OGL]
glGetPixelMapfv [OGL]glGetPixelMapuiv [OGL]glGetPixelMapusv [OGL]glGetPointerv [OGL]
glGetPolygonStipple [OGL]glGetSeparableFilter [OGL]glGetString [OGL]glGetTexEnvfv [OGL]
glGetTexEnviv [OGL]glGetTexGendv [OGL]glGetTexGenfv [OGL]glGetTexGeniv [OGL]
glGetTexImage [OGL]glGetTexLevelParameterfv [OGL]glGetTexLevelParameteriv [OGL]glGetTexParameterfv [OGL]
glGetTexParameteriv [OGL]glHint [OGL]glHistogram [OGL]glIndexMask [OGL]
glIndexPointer [OGL]glIndexd [OGL]glIndexdv [OGL]glIndexf [OGL]
glIndexfv [OGL]glIndexi [OGL]glIndexiv [OGL]glIndexs [OGL]
glIndexsv [OGL]glIndexub [OGL]glIndexubv [OGL]glInitNames [OGL]
glInterleavedArrays [OGL]glIsEnabled [OGL]glIsList [OGL]glIsTexture [OGL]
glLightModelf [OGL]glLightModelfv [OGL]glLightModeli [OGL]glLightModeliv [OGL]
glLightf [OGL]glLightfv [OGL]glLighti [OGL]glLightiv [OGL]
glLineStipple [OGL]glLineWidth [OGL]glListBase [OGL]glLoadIdentity [OGL]
glLoadMatrixd [OGL]glLoadMatrixf [OGL]glLoadName [OGL]glLogicOp [OGL]
glMap1d [OGL]glMap1f [OGL]glMap2d [OGL]glMap2f [OGL]
glMapGrid1d [OGL]glMapGrid1f [OGL]glMapGrid2d [OGL]glMapGrid2f [OGL]
glMaterialf [OGL]glMaterialfv [OGL]glMateriali [OGL]glMaterialiv [OGL]
glMatrixMode [OGL]glMinmax [OGL]glMultMatrixd [OGL]glMultMatrixf [OGL]
glMultiTexCoord1dARB [OGL]glMultiTexCoord1dvARB [OGL]glMultiTexCoord1fARB [OGL]glMultiTexCoord1fvARB [OGL]
glMultiTexCoord1iARB [OGL]glMultiTexCoord1ivARB [OGL]glMultiTexCoord1sARB [OGL]glMultiTexCoord1svARB [OGL]
glMultiTexCoord2dARB [OGL]glMultiTexCoord2dvARB [OGL]glMultiTexCoord2fARB [OGL]glMultiTexCoord2fvARB [OGL]
glMultiTexCoord2iARB [OGL]glMultiTexCoord2ivARB [OGL]glMultiTexCoord2sARB [OGL]glMultiTexCoord2svARB [OGL]
glMultiTexCoord3dARB [OGL]glMultiTexCoord3dvARB [OGL]glMultiTexCoord3fARB [OGL]glMultiTexCoord3fvARB [OGL]
glMultiTexCoord3iARB [OGL]glMultiTexCoord3ivARB [OGL]glMultiTexCoord3sARB [OGL]glMultiTexCoord3svARB [OGL]
glMultiTexCoord4dARB [OGL]glMultiTexCoord4dvARB [OGL]glMultiTexCoord4fARB [OGL]glMultiTexCoord4fvARB [OGL]
glMultiTexCoord4iARB [OGL]glMultiTexCoord4ivARB [OGL]glMultiTexCoord4sARB [OGL]glMultiTexCoord4svARB [OGL]
glNewList [OGL]glNormal3b [OGL]glNormal3bv [OGL]glNormal3d [OGL]
glNormal3dv [OGL]glNormal3f [OGL]glNormal3fv [OGL]glNormal3i [OGL]
glNormal3iv [OGL]glNormal3s [OGL]glNormal3sv [OGL]glNormalPointer [OGL]
glOrtho [OGL]glPassThrough [OGL]glPixelMapfv [OGL]glPixelMapuiv [OGL]
glPixelMapusv [OGL]glPixelStoref [OGL]glPixelStorei [OGL]glPixelTransferf [OGL]
glPixelTransferi [OGL]glPixelZoom [OGL]glPointSize [OGL]glPolygonMode [OGL]
glPolygonOffset [OGL]glPolygonStipple [OGL]glPopAttrib [OGL]glPopClientAttrib [OGL]
glPopMatrix [OGL]glPopName [OGL]glPrioritizeTextures [OGL]glPushAttrib [OGL]
glPushClientAttrib [OGL]glPushMatrix [OGL]glPushName [OGL]glRasterPos2d [OGL]
glRasterPos2dv [OGL]glRasterPos2f [OGL]glRasterPos2fv [OGL]glRasterPos2i [OGL]
glRasterPos2iv [OGL]glRasterPos2s [OGL]glRasterPos2sv [OGL]glRasterPos3d [OGL]
glRasterPos3dv [OGL]glRasterPos3f [OGL]glRasterPos3fv [OGL]glRasterPos3i [OGL]
glRasterPos3iv [OGL]glRasterPos3s [OGL]glRasterPos3sv [OGL]glRasterPos4d [OGL]
glRasterPos4dv [OGL]glRasterPos4f [OGL]glRasterPos4fv [OGL]glRasterPos4i [OGL]
glRasterPos4iv [OGL]glRasterPos4s [OGL]glRasterPos4sv [OGL]glReadBuffer [OGL]
glReadPixels [OGL]glRectd [OGL]glRectdv [OGL]glRectf [OGL]
glRectfv [OGL]glRecti [OGL]glRectiv [OGL]glRects [OGL]
glRectsv [OGL]glRenderMode [OGL]glResetHistogram [OGL]glResetMinmax [OGL]
glRotated [OGL]glRotatef [OGL]glScaled [OGL]glScalef [OGL]
glScissor [OGL]glSelectBuffer [OGL]glSeparableFilter2D [OGL]glShadeModel [OGL]
glStencilFunc [OGL]glStencilMask [OGL]glStencilOp [OGL]glTexCoord1d [OGL]
glTexCoord1dv [OGL]glTexCoord1f [OGL]glTexCoord1fv [OGL]glTexCoord1i [OGL]
glTexCoord1iv [OGL]glTexCoord1s [OGL]glTexCoord1sv [OGL]glTexCoord2d [OGL]
glTexCoord2dv [OGL]glTexCoord2f [OGL]glTexCoord2fv [OGL]glTexCoord2i [OGL]
glTexCoord2iv [OGL]glTexCoord2s [OGL]glTexCoord2sv [OGL]glTexCoord3d [OGL]
glTexCoord3dv [OGL]glTexCoord3f [OGL]glTexCoord3fv [OGL]glTexCoord3i [OGL]
glTexCoord3iv [OGL]glTexCoord3s [OGL]glTexCoord3sv [OGL]glTexCoord4d [OGL]
glTexCoord4dv [OGL]glTexCoord4f [OGL]glTexCoord4fv [OGL]glTexCoord4i [OGL]
glTexCoord4iv [OGL]glTexCoord4s [OGL]glTexCoord4sv [OGL]glTexCoordPointer [OGL]
glTexEnvf [OGL]glTexEnvfv [OGL]glTexEnvi [OGL]glTexEnviv [OGL]
glTexGend [OGL]glTexGendv [OGL]glTexGenf [OGL]glTexGenfv [OGL]
glTexGeni [OGL]glTexGeniv [OGL]glTexImage1D [OGL]glTexImage2D [OGL]
glTexImage3D [OGL]glTexParameterf [OGL]glTexParameterfv [OGL]glTexParameteri [OGL]
glTexParameteriv [OGL]glTexSubImage1D [OGL]glTexSubImage2D [OGL]glTexSubImage3D [OGL]
glTranslated [OGL]glTranslatef [OGL]glVertex2d [OGL]glVertex2dv [OGL]
glVertex2f [OGL]glVertex2fv [OGL]glVertex2i [OGL]glVertex2iv [OGL]
glVertex2s [OGL]glVertex2sv [OGL]glVertex3d [OGL]glVertex3dv [OGL]
glVertex3f [OGL]glVertex3fv [OGL]glVertex3i [OGL]glVertex3iv [OGL]
glVertex3s [OGL]glVertex3sv [OGL]glVertex4d [OGL]glVertex4dv [OGL]
glVertex4f [OGL]glVertex4fv [OGL]glVertex4i [OGL]glVertex4iv [OGL]
glVertex4s [OGL]glVertex4sv [OGL]glVertexPointer [OGL]glViewport [OGL]

7.2. Data Definitions for libGL

This section defines global identifiers and their values that are associated with interfaces contained in libGL. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.


7.2.1. GL/gl.h


#define GL_VERSION_1_1	1
#define GL_VERSION_1_2	1

typedef unsigned int GLenum;
typedef unsigned char GLboolean;
typedef unsigned int GLbitfield;
typedef void GLvoid;
typedef char GLbyte;
typedef short GLshort;
typedef int GLint;
typedef unsigned char GLubyte;
typedef unsigned short GLushort;
typedef unsigned int GLuint;
typedef int GLsizei;
typedef float GLfloat;
typedef float GLclampf;
typedef double GLdouble;
typedef double GLclampd;

#define GL_BYTE	0x1400
#define GL_UNSIGNED_BYTE	0x1401
#define GL_SHORT	0x1402
#define GL_UNSIGNED_SHORT	0x1403
#define GL_INT	0x1404
#define GL_UNSIGNED_INT	0x1405
#define GL_FLOAT	0x1406
#define GL_2_BYTES	0x1407
#define GL_3_BYTES	0x1408
#define GL_4_BYTES	0x1409
#define GL_DOUBLE	0x140A

#define GL_POINTS	0x0000
#define GL_LINES	0x0001
#define GL_LINE_LOOP	0x0002
#define GL_LINE_STRIP	0x0003
#define GL_TRIANGLES	0x0004
#define GL_TRIANGLE_STRIP	0x0005
#define GL_TRIANGLE_FAN	0x0006
#define GL_QUADS	0x0007
#define GL_QUAD_STRIP	0x0008
#define GL_POLYGON	0x0009

#define GL_V2F	0x2A20
#define GL_V3F	0x2A21
#define GL_C4UB_V2F	0x2A22
#define GL_C4UB_V3F	0x2A23
#define GL_C3F_V3F	0x2A24
#define GL_N3F_V3F	0x2A25
#define GL_C4F_N3F_V3F	0x2A26
#define GL_T2F_V3F	0x2A27
#define GL_T4F_V4F	0x2A28
#define GL_T2F_C4UB_V3F	0x2A29
#define GL_T2F_C3F_V3F	0x2A2A
#define GL_T2F_N3F_V3F	0x2A2B
#define GL_T2F_C4F_N3F_V3F	0x2A2C
#define GL_T4F_C4F_N3F_V4F	0x2A2D
#define GL_VERTEX_ARRAY	0x8074
#define GL_NORMAL_ARRAY	0x8075
#define GL_COLOR_ARRAY	0x8076
#define GL_INDEX_ARRAY	0x8077
#define GL_TEXTURE_COORD_ARRAY	0x8078
#define GL_EDGE_FLAG_ARRAY	0x8079
#define GL_VERTEX_ARRAY_SIZE	0x807A
#define GL_VERTEX_ARRAY_TYPE	0x807B
#define GL_VERTEX_ARRAY_STRIDE	0x807C
#define GL_NORMAL_ARRAY_TYPE	0x807E
#define GL_NORMAL_ARRAY_STRIDE	0x807F
#define GL_COLOR_ARRAY_SIZE	0x8081
#define GL_COLOR_ARRAY_TYPE	0x8082
#define GL_COLOR_ARRAY_STRIDE	0x8083
#define GL_INDEX_ARRAY_TYPE	0x8085
#define GL_INDEX_ARRAY_STRIDE	0x8086
#define GL_TEXTURE_COORD_ARRAY_SIZE	0x8088
#define GL_TEXTURE_COORD_ARRAY_TYPE	0x8089
#define GL_TEXTURE_COORD_ARRAY_STRIDE	0x808A
#define GL_EDGE_FLAG_ARRAY_STRIDE	0x808C
#define GL_VERTEX_ARRAY_POINTER	0x808E
#define GL_NORMAL_ARRAY_POINTER	0x808F
#define GL_COLOR_ARRAY_POINTER	0x8090
#define GL_INDEX_ARRAY_POINTER	0x8091
#define GL_TEXTURE_COORD_ARRAY_POINTER	0x8092
#define GL_EDGE_FLAG_ARRAY_POINTER	0x8093

#define GL_MATRIX_MODE	0x0BA0
#define GL_MODELVIEW	0x1700
#define GL_PROJECTION	0x1701
#define GL_TEXTURE	0x1702

#define GL_POINT_SMOOTH	0x0B10
#define GL_POINT_SIZE	0x0B11
#define GL_POINT_SIZE_RANGE	0x0B12
#define GL_POINT_SIZE_GRANULARITY	0x0B13

#define GL_LINE_SMOOTH	0x0B20
#define GL_LINE_WIDTH	0x0B21
#define GL_LINE_WIDTH_RANGE	0x0B22
#define GL_LINE_WIDTH_GRANULARITY	0x0B23
#define GL_LINE_STIPPLE	0x0B24
#define GL_LINE_STIPPLE_PATTERN	0x0B25
#define GL_LINE_STIPPLE_REPEAT	0x0B26

#define GL_FRONT	0x0404
#define GL_BACK	0x0405
#define GL_CW	0x0900
#define GL_CCW	0x0901
#define GL_POLYGON_MODE	0x0B40
#define GL_POLYGON_SMOOTH	0x0B41
#define GL_POLYGON_STIPPLE	0x0B42
#define GL_EDGE_FLAG	0x0B43
#define GL_CULL_FACE	0x0B44
#define GL_CULL_FACE_MODE	0x0B45
#define GL_FRONT_FACE	0x0B46
#define GL_POINT	0x1B00
#define GL_LINE	0x1B01
#define GL_FILL	0x1B02
#define GL_POLYGON_OFFSET_UNITS	0x2A00
#define GL_POLYGON_OFFSET_POINT	0x2A01
#define GL_POLYGON_OFFSET_LINE	0x2A02
#define GL_POLYGON_OFFSET_FILL	0x8037
#define GL_POLYGON_OFFSET_FACTOR	0x8038

#define GL_LIST_MODE	0x0B30
#define GL_LIST_BASE	0x0B32
#define GL_LIST_INDEX	0x0B33
#define GL_COMPILE	0x1300
#define GL_COMPILE_AND_EXECUTE	0x1301

#define GL_NEVER	0x0200
#define GL_LESS	0x0201
#define GL_EQUAL	0x0202
#define GL_LEQUAL	0x0203
#define GL_GREATER	0x0204
#define GL_NOTEQUAL	0x0205
#define GL_GEQUAL	0x0206
#define GL_ALWAYS	0x0207
#define GL_DEPTH_RANGE	0x0B70
#define GL_DEPTH_TEST	0x0B71
#define GL_DEPTH_WRITEMASK	0x0B72
#define GL_DEPTH_CLEAR_VALUE	0x0B73
#define GL_DEPTH_FUNC	0x0B74
#define GL_DEPTH_BITS	0x0D56
#define GL_DEPTH_COMPONENT	0x1902

#define GL_FRONT_AND_BACK	0x0408
#define GL_LIGHTING	0x0B50
#define GL_LIGHT_MODEL_LOCAL_VIEWER	0x0B51
#define GL_LIGHT_MODEL_TWO_SIDE	0x0B52
#define GL_LIGHT_MODEL_AMBIENT	0x0B53
#define GL_SHADE_MODEL	0x0B54
#define GL_COLOR_MATERIAL_FACE	0x0B55
#define GL_COLOR_MATERIAL_PARAMETER	0x0B56
#define GL_COLOR_MATERIAL	0x0B57
#define GL_NORMALIZE	0x0BA1
#define GL_AMBIENT	0x1200
#define GL_DIFFUSE	0x1201
#define GL_SPECULAR	0x1202
#define GL_POSITION	0x1203
#define GL_SPOT_DIRECTION	0x1204
#define GL_SPOT_EXPONENT	0x1205
#define GL_SPOT_CUTOFF	0x1206
#define GL_CONSTANT_ATTENUATION	0x1207
#define GL_LINEAR_ATTENUATION	0x1208
#define GL_QUADRATIC_ATTENUATION	0x1209
#define GL_EMISSION	0x1600
#define GL_SHININESS	0x1601
#define GL_AMBIENT_AND_DIFFUSE	0x1602
#define GL_COLOR_INDEXES	0x1603
#define GL_FLAT	0x1D00
#define GL_SMOOTH	0x1D01
#define GL_LIGHT0	0x4000
#define GL_LIGHT1	0x4001
#define GL_LIGHT2	0x4002
#define GL_LIGHT3	0x4003
#define GL_LIGHT4	0x4004
#define GL_LIGHT5	0x4005
#define GL_LIGHT6	0x4006
#define GL_LIGHT7	0x4007

#define GL_CLIP_PLANE0	0x3000
#define GL_CLIP_PLANE1	0x3001
#define GL_CLIP_PLANE2	0x3002
#define GL_CLIP_PLANE3	0x3003
#define GL_CLIP_PLANE4	0x3004
#define GL_CLIP_PLANE5	0x3005

#define GL_ACCUM	0x0100
#define GL_LOAD	0x0101
#define GL_RETURN	0x0102
#define GL_MULT	0x0103
#define GL_ADD	0x0104
#define GL_ACCUM_CLEAR_VALUE	0x0B80
#define GL_ACCUM_RED_BITS	0x0D58
#define GL_ACCUM_GREEN_BITS	0x0D59
#define GL_ACCUM_BLUE_BITS	0x0D5A
#define GL_ACCUM_ALPHA_BITS	0x0D5B

#define GL_ALPHA_TEST	0x0BC0
#define GL_ALPHA_TEST_FUNC	0x0BC1
#define GL_ALPHA_TEST_REF	0x0BC2

#define GL_ZERO	0x0
#define GL_SRC_COLOR	0x0300
#define GL_ONE_MINUS_SRC_COLOR	0x0301
#define GL_SRC_ALPHA	0x0302
#define GL_ONE_MINUS_SRC_ALPHA	0x0303
#define GL_DST_ALPHA	0x0304
#define GL_ONE_MINUS_DST_ALPHA	0x0305
#define GL_DST_COLOR	0x0306
#define GL_ONE_MINUS_DST_COLOR	0x0307
#define GL_SRC_ALPHA_SATURATE	0x0308
#define GL_BLEND_DST	0x0BE0
#define GL_BLEND_SRC	0x0BE1
#define GL_BLEND	0x0BE2
#define GL_ONE	0x1

#define GL_RENDER	0x1C00
#define GL_FEEDBACK	0x1C01
#define GL_SELECT	0x1C02

#define GL_2D	0x0600
#define GL_3D	0x0601
#define GL_3D_COLOR	0x0602
#define GL_3D_COLOR_TEXTURE	0x0603
#define GL_4D_COLOR_TEXTURE	0x0604
#define GL_PASS_THROUGH_TOKEN	0x0700
#define GL_POINT_TOKEN	0x0701
#define GL_LINE_TOKEN	0x0702
#define GL_POLYGON_TOKEN	0x0703
#define GL_BITMAP_TOKEN	0x0704
#define GL_DRAW_PIXEL_TOKEN	0x0705
#define GL_COPY_PIXEL_TOKEN	0x0706
#define GL_LINE_RESET_TOKEN	0x0707
#define GL_FEEDBACK_BUFFER_POINTER	0x0DF0
#define GL_FEEDBACK_BUFFER_SIZE	0x0DF1
#define GL_FEEDBACK_BUFFER_TYPE	0x0DF2
#define GL_ALPHA_BLEND_EQUATION_ATI	0x883D
#define GL_ATI_blend_equation_separate	1

#define GL_CURRENT_BIT	0x00000001
#define GL_POINT_BIT	0x00000002
#define GL_LINE_BIT	0x00000004
#define GL_POLYGON_BIT	0x00000008
#define GL_POLYGON_STIPPLE_BIT	0x00000010
#define GL_PIXEL_MODE_BIT	0x00000020
#define GL_LIGHTING_BIT	0x00000040
#define GL_FOG_BIT	0x00000080
#define GL_DEPTH_BUFFER_BIT	0x00000100
#define GL_ACCUM_BUFFER_BIT	0x00000200
#define GL_STENCIL_BUFFER_BIT	0x00000400
#define GL_VIEWPORT_BIT	0x00000800
#define GL_TRANSFORM_BIT	0x00001000
#define GL_ENABLE_BIT	0x00002000
#define GL_COLOR_BUFFER_BIT	0x00004000
#define GL_HINT_BIT	0x00008000
#define GL_EVAL_BIT	0x00010000
#define GL_LIST_BIT	0x00020000
#define GL_TEXTURE_BIT	0x00040000
#define GL_SCISSOR_BIT	0x00080000
#define GL_ALL_ATTRIB_BITS	0x000FFFFF

#define GL_CLIENT_PIXEL_STORE_BIT	0x00000001
#define GL_CLIENT_VERTEX_ARRAY_BIT	0x00000002
#define GL_TEXTURE_INTERNAL_FORMAT	0x1003
#define GL_R3_G3_B2	0x2A10
#define GL_ALPHA4	0x803B
#define GL_ALPHA8	0x803C
#define GL_ALPHA12	0x803D
#define GL_ALPHA16	0x803E
#define GL_LUMINANCE4	0x803F
#define GL_LUMINANCE8	0x8040
#define GL_LUMINANCE12	0x8041
#define GL_LUMINANCE16	0x8042
#define GL_LUMINANCE4_ALPHA4	0x8043
#define GL_LUMINANCE6_ALPHA2	0x8044
#define GL_LUMINANCE8_ALPHA8	0x8045
#define GL_LUMINANCE12_ALPHA4	0x8046
#define GL_LUMINANCE12_ALPHA12	0x8047
#define GL_LUMINANCE16_ALPHA16	0x8048
#define GL_INTENSITY	0x8049
#define GL_INTENSITY4	0x804A
#define GL_INTENSITY8	0x804B
#define GL_INTENSITY12	0x804C
#define GL_INTENSITY16	0x804D
#define GL_RGB4	0x804F
#define GL_RGB5	0x8050
#define GL_RGB8	0x8051
#define GL_RGB10	0x8052
#define GL_RGB12	0x8053
#define GL_RGB16	0x8054
#define GL_RGBA2	0x8055
#define GL_RGBA4	0x8056
#define GL_RGB5_A1	0x8057
#define GL_RGBA8	0x8058
#define GL_RGB10_A2	0x8059
#define GL_RGBA12	0x805A
#define GL_RGBA16	0x805B
#define GL_PROXY_TEXTURE_1D	0x8063
#define GL_PROXY_TEXTURE_2D	0x8064
#define GL_TEXTURE_PRIORITY	0x8066
#define GL_TEXTURE_RESIDENT	0x8067
#define GL_TEXTURE_BINDING_1D	0x8068
#define GL_TEXTURE_BINDING_2D	0x8069
#define GL_ALL_CLIENT_ATTRIB_BITS	0xFFFFFFFF
#define GL_CLIENT_ALL_ATTRIB_BITS	0xFFFFFFFF

#define GL_SMOOTH_POINT_SIZE_RANGE	0x0B12
#define GL_SMOOTH_POINT_SIZE_GRANULARITY	0x0B13
#define GL_SMOOTH_LINE_WIDTH_RANGE	0x0B22
#define GL_SMOOTH_LINE_WIDTH_GRANULARITY	0x0B23
#define GL_UNSIGNED_BYTE_3_3_2	0x8032
#define GL_UNSIGNED_SHORT_4_4_4_4	0x8033
#define GL_UNSIGNED_SHORT_5_5_5_1	0x8034
#define GL_UNSIGNED_INT_8_8_8_8	0x8035
#define GL_UNSIGNED_INT_10_10_10_2	0x8036
#define GL_RESCALE_NORMAL	0x803A
#define GL_TEXTURE_BINDING_3D	0x806A
#define GL_PACK_SKIP_IMAGES	0x806B
#define GL_PACK_IMAGE_HEIGHT	0x806C
#define GL_UNPACK_SKIP_IMAGES	0x806D
#define GL_UNPACK_IMAGE_HEIGHT	0x806E
#define GL_TEXTURE_3D	0x806F
#define GL_PROXY_TEXTURE_3D	0x8070
#define GL_TEXTURE_DEPTH	0x8071
#define GL_TEXTURE_WRAP_R	0x8072
#define GL_MAX_3D_TEXTURE_SIZE	0x8073
#define GL_BGR	0x80E0
#define GL_BGRA	0x80E1
#define GL_MAX_ELEMENTS_VERTICES	0x80E8
#define GL_MAX_ELEMENTS_INDICES	0x80E9
#define GL_CLAMP_TO_EDGE	0x812F
#define GL_TEXTURE_MIN_LOD	0x813A
#define GL_TEXTURE_MAX_LOD	0x813B
#define GL_TEXTURE_BASE_LEVEL	0x813C
#define GL_TEXTURE_MAX_LEVEL	0x813D
#define GL_LIGHT_MODEL_COLOR_CONTROL	0x81F8
#define GL_SINGLE_COLOR	0x81F9
#define GL_SEPARATE_SPECULAR_COLOR	0x81FA
#define GL_UNSIGNED_BYTE_2_3_3_REV	0x8362
#define GL_UNSIGNED_SHORT_5_6_5	0x8363
#define GL_UNSIGNED_SHORT_5_6_5_REV	0x8364
#define GL_UNSIGNED_SHORT_4_4_4_4_REV	0x8365
#define GL_UNSIGNED_SHORT_1_5_5_5_REV	0x8366
#define GL_UNSIGNED_INT_8_8_8_8_REV	0x8367
#define GL_UNSIGNED_INT_2_10_10_10_REV	0x8368
#define GL_ALIASED_POINT_SIZE_RANGE	0x846D
#define GL_ALIASED_LINE_WIDTH_RANGE	0x846E

#define GL_CONSTANT_COLOR	0x8001
#define GL_ONE_MINUS_CONSTANT_COLOR	0x8002
#define GL_CONSTANT_ALPHA	0x8003
#define GL_ONE_MINUS_CONSTANT_ALPHA	0x8004
#define GL_BLEND_COLOR	0x8005
#define GL_FUNC_ADD	0x8006
#define GL_MIN	0x8007
#define GL_MAX	0x8008
#define GL_BLEND_EQUATION	0x8009
#define GL_FUNC_SUBTRACT	0x800A
#define GL_FUNC_REVERSE_SUBTRACT	0x800B
#define GL_CONVOLUTION_1D	0x8010
#define GL_CONVOLUTION_2D	0x8011
#define GL_SEPARABLE_2D	0x8012
#define GL_CONVOLUTION_BORDER_MODE	0x8013
#define GL_CONVOLUTION_FILTER_SCALE	0x8014
#define GL_CONVOLUTION_FILTER_BIAS	0x8015
#define GL_REDUCE	0x8016
#define GL_CONVOLUTION_FORMAT	0x8017
#define GL_CONVOLUTION_WIDTH	0x8018
#define GL_CONVOLUTION_HEIGHT	0x8019
#define GL_MAX_CONVOLUTION_WIDTH	0x801A
#define GL_MAX_CONVOLUTION_HEIGHT	0x801B
#define GL_POST_CONVOLUTION_RED_SCALE	0x801C
#define GL_POST_CONVOLUTION_GREEN_SCALE	0x801D
#define GL_POST_CONVOLUTION_BLUE_SCALE	0x801E
#define GL_POST_CONVOLUTION_ALPHA_SCALE	0x801F
#define GL_POST_CONVOLUTION_RED_BIAS	0x8020
#define GL_POST_CONVOLUTION_GREEN_BIAS	0x8021
#define GL_POST_CONVOLUTION_BLUE_BIAS	0x8022
#define GL_POST_CONVOLUTION_ALPHA_BIAS	0x8023
#define GL_HISTOGRAM	0x8024
#define GL_PROXY_HISTOGRAM	0x8025
#define GL_HISTOGRAM_WIDTH	0x8026
#define GL_HISTOGRAM_FORMAT	0x8027
#define GL_HISTOGRAM_RED_SIZE	0x8028
#define GL_HISTOGRAM_GREEN_SIZE	0x8029
#define GL_HISTOGRAM_BLUE_SIZE	0x802A
#define GL_HISTOGRAM_ALPHA_SIZE	0x802B
#define GL_HISTOGRAM_LUMINANCE_SIZE	0x802C
#define GL_HISTOGRAM_SINK	0x802D
#define GL_MINMAX	0x802E
#define GL_MINMAX_FORMAT	0x802F
#define GL_MINMAX_SINK	0x8030
#define GL_TABLE_TOO_LARGE	0x8031
#define GL_COLOR_MATRIX	0x80B1
#define GL_COLOR_MATRIX_STACK_DEPTH	0x80B2
#define GL_MAX_COLOR_MATRIX_STACK_DEPTH	0x80B3
#define GL_POST_COLOR_MATRIX_RED_SCALE	0x80B4
#define GL_POST_COLOR_MATRIX_GREEN_SCALE	0x80B5
#define GL_POST_COLOR_MATRIX_BLUE_SCALE	0x80B6
#define GL_POST_COLOR_MATRIX_ALPHA_SCALE	0x80B7
#define GL_POST_COLOR_MATRIX_RED_BIAS	0x80B8
#define GL_POST_COLOR_MATRIX_GREEN_BIAS	0x80B9
#define GL_POST_COLOR_MATRIX_BLUE_BIAS	0x80BA
#define GL_POST_COLOR_MATRIX_ALPHA_BIAS	0x80BB
#define GL_COLOR_TABLE	0x80D0
#define GL_POST_CONVOLUTION_COLOR_TABLE	0x80D1
#define GL_POST_COLOR_MATRIX_COLOR_TABLE	0x80D2
#define GL_PROXY_COLOR_TABLE	0x80D3
#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE	0x80D4
#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE	0x80D5
#define GL_COLOR_TABLE_SCALE	0x80D6
#define GL_COLOR_TABLE_BIAS	0x80D7
#define GL_COLOR_TABLE_FORMAT	0x80D8
#define GL_COLOR_TABLE_WIDTH	0x80D9
#define GL_COLOR_TABLE_RED_SIZE	0x80DA
#define GL_COLOR_TABLE_GREEN_SIZE	0x80DB
#define GL_COLOR_TABLE_BLUE_SIZE	0x80DC
#define GL_COLOR_TABLE_ALPHA_SIZE	0x80DD
#define GL_COLOR_TABLE_LUMINANCE_SIZE	0x80DE
#define GL_COLOR_TABLE_INTENSITY_SIZE	0x80DF
#define GL_CONSTANT_BORDER	0x8151
#define GL_REPLICATE_BORDER	0x8153
#define GL_CONVOLUTION_BORDER_COLOR	0x8154

#define GL_TEXTURE0	0x84C0
#define GL_TEXTURE1	0x84C1
#define GL_TEXTURE2	0x84C2
#define GL_TEXTURE3	0x84C3
#define GL_TEXTURE4	0x84C4
#define GL_TEXTURE5	0x84C5
#define GL_TEXTURE6	0x84C6
#define GL_TEXTURE7	0x84C7
#define GL_TEXTURE8	0x84C8
#define GL_TEXTURE9	0x84C9
#define GL_TEXTURE10	0x84CA
#define GL_TEXTURE11	0x84CB
#define GL_TEXTURE12	0x84CC
#define GL_TEXTURE13	0x84CD
#define GL_TEXTURE14	0x84CE
#define GL_TEXTURE15	0x84CF
#define GL_TEXTURE16	0x84D0
#define GL_TEXTURE17	0x84D1
#define GL_TEXTURE18	0x84D2
#define GL_TEXTURE19	0x84D3
#define GL_TEXTURE20	0x84D4
#define GL_TEXTURE21	0x84D5
#define GL_TEXTURE22	0x84D6
#define GL_TEXTURE23	0x84D7
#define GL_TEXTURE24	0x84D8
#define GL_TEXTURE25	0x84D9
#define GL_TEXTURE26	0x84DA
#define GL_TEXTURE27	0x84DB
#define GL_TEXTURE28	0x84DC
#define GL_TEXTURE29	0x84DD
#define GL_TEXTURE30	0x84DE
#define GL_TEXTURE31	0x84DF
#define GL_ACTIVE_TEXTURE	0x84E0
#define GL_CLIENT_ACTIVE_TEXTURE	0x84E1
#define GL_MAX_TEXTURE_UNITS	0x84E2

#define GL_NORMAL_MAP	0x8511
#define GL_REFLECTION_MAP	0x8512
#define GL_TEXTURE_CUBE_MAP	0x8513
#define GL_TEXTURE_BINDING_CUBE_MAP	0x8514
#define GL_TEXTURE_CUBE_MAP_POSITIVE_X	0x8515
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X	0x8516
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y	0x8517
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y	0x8518
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z	0x8519
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z	0x851A
#define GL_PROXY_TEXTURE_CUBE_MAP	0x851B
#define GL_MAX_CUBE_MAP_TEXTURE_SIZE	0x851C

#define GL_COMPRESSED_ALPHA	0x84E9
#define GL_COMPRESSED_LUMINANCE	0x84EA
#define GL_COMPRESSED_LUMINANCE_ALPHA	0x84EB
#define GL_COMPRESSED_INTENSITY	0x84EC
#define GL_COMPRESSED_RGB	0x84ED
#define GL_COMPRESSED_RGBA	0x84EE
#define GL_TEXTURE_COMPRESSION_HINT	0x84EF
#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE	0x86A0
#define GL_TEXTURE_COMPRESSED	0x86A1
#define GL_NUM_COMPRESSED_TEXTURE_FORMATS	0x86A2
#define GL_COMPRESSED_TEXTURE_FORMATS	0x86A3

#define GL_MULTISAMPLE_BIT	0x20000000
#define GL_MULTISAMPLE	0x809D
#define GL_SAMPLE_ALPHA_TO_COVERAGE	0x809E
#define GL_SAMPLE_ALPHA_TO_ONE	0x809F
#define GL_SAMPLE_COVERAGE	0x80A0
#define GL_SAMPLE_BUFFERS	0x80A8
#define GL_SAMPLES	0x80A9
#define GL_SAMPLE_COVERAGE_VALUE	0x80AA
#define GL_SAMPLE_COVERAGE_INVERT	0x80AB

#define GL_TRANSPOSE_MODELVIEW_MATRIX	0x84E3
#define GL_TRANSPOSE_PROJECTION_MATRIX	0x84E4
#define GL_TRANSPOSE_TEXTURE_MATRIX	0x84E5
#define GL_TRANSPOSE_COLOR_MATRIX	0x84E6

#define GL_SUBTRACT	0x84E7
#define GL_COMBINE	0x8570
#define GL_COMBINE_RGB	0x8571
#define GL_COMBINE_ALPHA	0x8572
#define GL_RGB_SCALE	0x8573
#define GL_ADD_SIGNED	0x8574
#define GL_INTERPOLATE	0x8575
#define GL_CONSTANT	0x8576
#define GL_PRIMARY_COLOR	0x8577
#define GL_PREVIOUS	0x8578
#define GL_SOURCE0_RGB	0x8580
#define GL_SOURCE1_RGB	0x8581
#define GL_SOURCE2_RGB	0x8582
#define GL_SOURCE0_ALPHA	0x8588
#define GL_SOURCE1_ALPHA	0x8589
#define GL_SOURCE2_ALPHA	0x858A
#define GL_OPERAND0_RGB	0x8590
#define GL_OPERAND1_RGB	0x8591
#define GL_OPERAND2_RGB	0x8592
#define GL_OPERAND0_ALPHA	0x8598
#define GL_OPERAND1_ALPHA	0x8599
#define GL_OPERAND2_ALPHA	0x859A

#define GL_DOT3_RGB	0x86AE
#define GL_DOT3_RGBA	0x86AF

#define GL_CLAMP_TO_BORDER	0x812D

#define GL_TEXTURE0_ARB	0x84C0
#define GL_TEXTURE1_ARB	0x84C1
#define GL_TEXTURE2_ARB	0x84C2
#define GL_TEXTURE3_ARB	0x84C3
#define GL_TEXTURE4_ARB	0x84C4
#define GL_TEXTURE5_ARB	0x84C5
#define GL_TEXTURE6_ARB	0x84C6
#define GL_TEXTURE7_ARB	0x84C7
#define GL_TEXTURE8_ARB	0x84C8
#define GL_TEXTURE9_ARB	0x84C9
#define GL_TEXTURE10_ARB	0x84CA
#define GL_TEXTURE11_ARB	0x84CB
#define GL_TEXTURE12_ARB	0x84CC
#define GL_TEXTURE13_ARB	0x84CD
#define GL_TEXTURE14_ARB	0x84CE
#define GL_TEXTURE15_ARB	0x84CF
#define GL_TEXTURE16_ARB	0x84D0
#define GL_TEXTURE17_ARB	0x84D1
#define GL_TEXTURE18_ARB	0x84D2
#define GL_TEXTURE19_ARB	0x84D3
#define GL_TEXTURE20_ARB	0x84D4
#define GL_TEXTURE21_ARB	0x84D5
#define GL_TEXTURE22_ARB	0x84D6
#define GL_TEXTURE23_ARB	0x84D7
#define GL_TEXTURE24_ARB	0x84D8
#define GL_TEXTURE25_ARB	0x84D9
#define GL_TEXTURE26_ARB	0x84DA
#define GL_TEXTURE27_ARB	0x84DB
#define GL_TEXTURE28_ARB	0x84DC
#define GL_TEXTURE29_ARB	0x84DD
#define GL_TEXTURE30_ARB	0x84DE
#define GL_TEXTURE31_ARB	0x84DF
#define GL_ACTIVE_TEXTURE_ARB	0x84E0
#define GL_CLIENT_ACTIVE_TEXTURE_ARB	0x84E1
#define GL_MAX_TEXTURE_UNITS_ARB	0x84E2
#define GL_ARB_imaging	1
#ifndef GL_ARB_multitexture
#define GL_ARB_multitexture	1
#endif

#define GL_NO_ERROR	0x0
#define GL_INVALID_ENUM	0x0500
#define GL_INVALID_VALUE	0x0501
#define GL_INVALID_OPERATION	0x0502
#define GL_STACK_OVERFLOW	0x0503
#define GL_STACK_UNDERFLOW	0x0504
#define GL_OUT_OF_MEMORY	0x0505

#define GL_VENDOR	0x1F00
#define GL_RENDERER	0x1F01
#define GL_VERSION	0x1F02
#define GL_EXTENSIONS	0x1F03

#define GL_SELECTION_BUFFER_POINTER	0x0DF3
#define GL_SELECTION_BUFFER_SIZE	0x0DF4

#define GL_EXP	0x0800
#define GL_EXP2	0x0801
#define GL_FOG	0x0B60
#define GL_FOG_INDEX	0x0B61
#define GL_FOG_DENSITY	0x0B62
#define GL_FOG_START	0x0B63
#define GL_FOG_END	0x0B64
#define GL_FOG_MODE	0x0B65
#define GL_FOG_COLOR	0x0B66
#define GL_LINEAR	0x2601

#define GL_LOGIC_OP_MODE	0x0BF0
#define GL_INDEX_LOGIC_OP	0x0BF1
#define GL_LOGIC_OP	0x0BF1
#define GL_COLOR_LOGIC_OP	0x0BF2
#define GL_CLEAR	0x1500
#define GL_AND	0x1501
#define GL_AND_REVERSE	0x1502
#define GL_COPY	0x1503
#define GL_AND_INVERTED	0x1504
#define GL_NOOP	0x1505
#define GL_XOR	0x1506
#define GL_OR	0x1507
#define GL_NOR	0x1508
#define GL_EQUIV	0x1509
#define GL_INVERT	0x150A
#define GL_OR_REVERSE	0x150B
#define GL_COPY_INVERTED	0x150C
#define GL_OR_INVERTED	0x150D
#define GL_NAND	0x150E
#define GL_SET	0x150F

#define GL_STENCIL_TEST	0x0B90
#define GL_STENCIL_CLEAR_VALUE	0x0B91
#define GL_STENCIL_FUNC	0x0B92
#define GL_STENCIL_VALUE_MASK	0x0B93
#define GL_STENCIL_FAIL	0x0B94
#define GL_STENCIL_PASS_DEPTH_FAIL	0x0B95
#define GL_STENCIL_PASS_DEPTH_PASS	0x0B96
#define GL_STENCIL_REF	0x0B97
#define GL_STENCIL_WRITEMASK	0x0B98
#define GL_STENCIL_BITS	0x0D57
#define GL_STENCIL_INDEX	0x1901
#define GL_KEEP	0x1E00
#define GL_REPLACE	0x1E01
#define GL_INCR	0x1E02
#define GL_DECR	0x1E03

#define GL_NONE	0x0
#define GL_FRONT_LEFT	0x0400
#define GL_FRONT_RIGHT	0x0401
#define GL_BACK_LEFT	0x0402
#define GL_BACK_RIGHT	0x0403
#define GL_LEFT	0x0406
#define GL_RIGHT	0x0407
#define GL_AUX0	0x0409
#define GL_AUX1	0x040A
#define GL_AUX2	0x040B
#define GL_AUX3	0x040C
#define GL_DITHER	0x0BD0
#define GL_AUX_BUFFERS	0x0C00
#define GL_DRAW_BUFFER	0x0C01
#define GL_READ_BUFFER	0x0C02
#define GL_DOUBLEBUFFER	0x0C32
#define GL_STEREO	0x0C33
#define GL_SUBPIXEL_BITS	0x0D50
#define GL_INDEX_BITS	0x0D51
#define GL_RED_BITS	0x0D52
#define GL_GREEN_BITS	0x0D53
#define GL_BLUE_BITS	0x0D54
#define GL_ALPHA_BITS	0x0D55
#define GL_COLOR	0x1800
#define GL_DEPTH	0x1801
#define GL_STENCIL	0x1802
#define GL_COLOR_INDEX	0x1900
#define GL_RED	0x1903
#define GL_GREEN	0x1904
#define GL_BLUE	0x1905
#define GL_ALPHA	0x1906
#define GL_RGB	0x1907
#define GL_RGBA	0x1908
#define GL_LUMINANCE	0x1909
#define GL_LUMINANCE_ALPHA	0x190A
#define GL_BITMAP	0x1A00

#define GL_MAX_LIST_NESTING	0x0B31
#define GL_MAX_EVAL_ORDER	0x0D30
#define GL_MAX_LIGHTS	0x0D31
#define GL_MAX_CLIP_PLANES	0x0D32
#define GL_MAX_TEXTURE_SIZE	0x0D33
#define GL_MAX_PIXEL_MAP_TABLE	0x0D34
#define GL_MAX_ATTRIB_STACK_DEPTH	0x0D35
#define GL_MAX_MODELVIEW_STACK_DEPTH	0x0D36
#define GL_MAX_NAME_STACK_DEPTH	0x0D37
#define GL_MAX_PROJECTION_STACK_DEPTH	0x0D38
#define GL_MAX_TEXTURE_STACK_DEPTH	0x0D39
#define GL_MAX_VIEWPORT_DIMS	0x0D3A
#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH	0x0D3B

#define GL_CURRENT_COLOR	0x0B00
#define GL_CURRENT_INDEX	0x0B01
#define GL_CURRENT_NORMAL	0x0B02
#define GL_CURRENT_TEXTURE_COORDS	0x0B03
#define GL_CURRENT_RASTER_COLOR	0x0B04
#define GL_CURRENT_RASTER_INDEX	0x0B05
#define GL_CURRENT_RASTER_TEXTURE_COORDS	0x0B06
#define GL_CURRENT_RASTER_POSITION	0x0B07
#define GL_CURRENT_RASTER_POSITION_VALID	0x0B08
#define GL_CURRENT_RASTER_DISTANCE	0x0B09
#define GL_VIEWPORT	0x0BA2
#define GL_MODELVIEW_STACK_DEPTH	0x0BA3
#define GL_PROJECTION_STACK_DEPTH	0x0BA4
#define GL_TEXTURE_STACK_DEPTH	0x0BA5
#define GL_MODELVIEW_MATRIX	0x0BA6
#define GL_PROJECTION_MATRIX	0x0BA7
#define GL_TEXTURE_MATRIX	0x0BA8
#define GL_ATTRIB_STACK_DEPTH	0x0BB0
#define GL_CLIENT_ATTRIB_STACK_DEPTH	0x0BB1
#define GL_INDEX_CLEAR_VALUE	0x0C20
#define GL_INDEX_WRITEMASK	0x0C21
#define GL_COLOR_CLEAR_VALUE	0x0C22
#define GL_COLOR_WRITEMASK	0x0C23
#define GL_INDEX_MODE	0x0C30
#define GL_RGBA_MODE	0x0C31
#define GL_RENDER_MODE	0x0C40
#define GL_NAME_STACK_DEPTH	0x0D70

#define GL_COEFF	0x0A00
#define GL_ORDER	0x0A01
#define GL_DOMAIN	0x0A02
#define GL_AUTO_NORMAL	0x0D80
#define GL_MAP1_COLOR_4	0x0D90
#define GL_MAP1_INDEX	0x0D91
#define GL_MAP1_NORMAL	0x0D92
#define GL_MAP1_TEXTURE_COORD_1	0x0D93
#define GL_MAP1_TEXTURE_COORD_2	0x0D94
#define GL_MAP1_TEXTURE_COORD_3	0x0D95
#define GL_MAP1_TEXTURE_COORD_4	0x0D96
#define GL_MAP1_VERTEX_3	0x0D97
#define GL_MAP1_VERTEX_4	0x0D98
#define GL_MAP2_COLOR_4	0x0DB0
#define GL_MAP2_INDEX	0x0DB1
#define GL_MAP2_NORMAL	0x0DB2
#define GL_MAP2_TEXTURE_COORD_1	0x0DB3
#define GL_MAP2_TEXTURE_COORD_2	0x0DB4
#define GL_MAP2_TEXTURE_COORD_3	0x0DB5
#define GL_MAP2_TEXTURE_COORD_4	0x0DB6
#define GL_MAP2_VERTEX_3	0x0DB7
#define GL_MAP2_VERTEX_4	0x0DB8
#define GL_MAP1_GRID_DOMAIN	0x0DD0
#define GL_MAP1_GRID_SEGMENTS	0x0DD1
#define GL_MAP2_GRID_DOMAIN	0x0DD2
#define GL_MAP2_GRID_SEGMENTS	0x0DD3

#define GL_PERSPECTIVE_CORRECTION_HINT	0x0C50
#define GL_POINT_SMOOTH_HINT	0x0C51
#define GL_LINE_SMOOTH_HINT	0x0C52
#define GL_POLYGON_SMOOTH_HINT	0x0C53
#define GL_FOG_HINT	0x0C54
#define GL_DONT_CARE	0x1100
#define GL_FASTEST	0x1101
#define GL_NICEST	0x1102

#define GL_SCISSOR_BOX	0x0C10
#define GL_SCISSOR_TEST	0x0C11

#define GL_PIXEL_MAP_I_TO_I	0x0C70
#define GL_PIXEL_MAP_S_TO_S	0x0C71
#define GL_PIXEL_MAP_I_TO_R	0x0C72
#define GL_PIXEL_MAP_I_TO_G	0x0C73
#define GL_PIXEL_MAP_I_TO_B	0x0C74
#define GL_PIXEL_MAP_I_TO_A	0x0C75
#define GL_PIXEL_MAP_R_TO_R	0x0C76
#define GL_PIXEL_MAP_G_TO_G	0x0C77
#define GL_PIXEL_MAP_B_TO_B	0x0C78
#define GL_PIXEL_MAP_A_TO_A	0x0C79
#define GL_PIXEL_MAP_I_TO_I_SIZE	0x0CB0
#define GL_PIXEL_MAP_S_TO_S_SIZE	0x0CB1
#define GL_PIXEL_MAP_I_TO_R_SIZE	0x0CB2
#define GL_PIXEL_MAP_I_TO_G_SIZE	0x0CB3
#define GL_PIXEL_MAP_I_TO_B_SIZE	0x0CB4
#define GL_PIXEL_MAP_I_TO_A_SIZE	0x0CB5
#define GL_PIXEL_MAP_R_TO_R_SIZE	0x0CB6
#define GL_PIXEL_MAP_G_TO_G_SIZE	0x0CB7
#define GL_PIXEL_MAP_B_TO_B_SIZE	0x0CB8
#define GL_PIXEL_MAP_A_TO_A_SIZE	0x0CB9
#define GL_UNPACK_SWAP_BYTES	0x0CF0
#define GL_UNPACK_LSB_FIRST	0x0CF1
#define GL_UNPACK_ROW_LENGTH	0x0CF2
#define GL_UNPACK_SKIP_ROWS	0x0CF3
#define GL_UNPACK_SKIP_PIXELS	0x0CF4
#define GL_UNPACK_ALIGNMENT	0x0CF5
#define GL_PACK_SWAP_BYTES	0x0D00
#define GL_PACK_LSB_FIRST	0x0D01
#define GL_PACK_ROW_LENGTH	0x0D02
#define GL_PACK_SKIP_ROWS	0x0D03
#define GL_PACK_SKIP_PIXELS	0x0D04
#define GL_PACK_ALIGNMENT	0x0D05
#define GL_MAP_COLOR	0x0D10
#define GL_MAP_STENCIL	0x0D11
#define GL_INDEX_SHIFT	0x0D12
#define GL_INDEX_OFFSET	0x0D13
#define GL_RED_SCALE	0x0D14
#define GL_RED_BIAS	0x0D15
#define GL_ZOOM_X	0x0D16
#define GL_ZOOM_Y	0x0D17
#define GL_GREEN_SCALE	0x0D18
#define GL_GREEN_BIAS	0x0D19
#define GL_BLUE_SCALE	0x0D1A
#define GL_BLUE_BIAS	0x0D1B
#define GL_ALPHA_SCALE	0x0D1C
#define GL_ALPHA_BIAS	0x0D1D
#define GL_DEPTH_SCALE	0x0D1E
#define GL_DEPTH_BIAS	0x0D1F

#define GL_TEXTURE_GEN_S	0x0C60
#define GL_TEXTURE_GEN_T	0x0C61
#define GL_TEXTURE_GEN_R	0x0C62
#define GL_TEXTURE_GEN_Q	0x0C63
#define GL_TEXTURE_1D	0x0DE0
#define GL_TEXTURE_2D	0x0DE1
#define GL_TEXTURE_WIDTH	0x1000
#define GL_TEXTURE_HEIGHT	0x1001
#define GL_TEXTURE_COMPONENTS	0x1003
#define GL_TEXTURE_BORDER_COLOR	0x1004
#define GL_TEXTURE_BORDER	0x1005
#define GL_S	0x2000
#define GL_T	0x2001
#define GL_R	0x2002
#define GL_Q	0x2003
#define GL_MODULATE	0x2100
#define GL_DECAL	0x2101
#define GL_TEXTURE_ENV_MODE	0x2200
#define GL_TEXTURE_ENV_COLOR	0x2201
#define GL_TEXTURE_ENV	0x2300
#define GL_EYE_LINEAR	0x2400
#define GL_OBJECT_LINEAR	0x2401
#define GL_SPHERE_MAP	0x2402
#define GL_TEXTURE_GEN_MODE	0x2500
#define GL_OBJECT_PLANE	0x2501
#define GL_EYE_PLANE	0x2502
#define GL_NEAREST	0x2600
#define GL_NEAREST_MIPMAP_NEAREST	0x2700
#define GL_LINEAR_MIPMAP_NEAREST	0x2701
#define GL_NEAREST_MIPMAP_LINEAR	0x2702
#define GL_LINEAR_MIPMAP_LINEAR	0x2703
#define GL_TEXTURE_MAG_FILTER	0x2800
#define GL_TEXTURE_MIN_FILTER	0x2801
#define GL_TEXTURE_WRAP_S	0x2802
#define GL_TEXTURE_WRAP_T	0x2803
#define GL_CLAMP	0x2900
#define GL_REPEAT	0x2901
#define GL_TEXTURE_RED_SIZE	0x805C
#define GL_TEXTURE_GREEN_SIZE	0x805D
#define GL_TEXTURE_BLUE_SIZE	0x805E
#define GL_TEXTURE_ALPHA_SIZE	0x805F
#define GL_TEXTURE_LUMINANCE_SIZE	0x8060
#define GL_TEXTURE_INTENSITY_SIZE	0x8061

#define GL_FALSE	0x0
#define GL_TRUE	0x1

extern void glAccum(GLenum op, GLfloat value);
extern void glActiveTextureARB(GLenum texture);
extern void glAlphaFunc(GLenum func, GLclampf ref);
extern GLboolean glAreTexturesResident(GLsizei n, const GLuint * textures,
				       GLboolean * residences);
extern void glArrayElement(GLint i);
extern void glBegin(GLenum mode);
extern void glBindTexture(GLenum target, GLuint texture);
extern void glBitmap(GLsizei width, GLsizei height, GLfloat xorig,
		     GLfloat yorig, GLfloat xmove, GLfloat ymove,
		     const GLubyte * bitmap);
extern void glBlendColor(GLclampf red, GLclampf green, GLclampf blue,
			 GLclampf alpha);
extern void glBlendEquation(GLenum mode);
extern void glBlendFunc(GLenum sfactor, GLenum dfactor);
extern void glCallList(GLuint list);
extern void glCallLists(GLsizei n, GLenum type, const GLvoid * lists);
extern void glClear(GLbitfield mask);
extern void glClearAccum(GLfloat red, GLfloat green, GLfloat blue,
			 GLfloat alpha);
extern void glClearColor(GLclampf red, GLclampf green, GLclampf blue,
			 GLclampf alpha);
extern void glClearDepth(GLclampd depth);
extern void glClearIndex(GLfloat c);
extern void glClearStencil(GLint s);
extern void glClientActiveTextureARB(GLenum texture);
extern void glClipPlane(GLenum plane, const GLdouble * equation);
extern void glColor3b(GLbyte red, GLbyte green, GLbyte blue);
extern void glColor3bv(const GLbyte * v);
extern void glColor3d(GLdouble red, GLdouble green, GLdouble blue);
extern void glColor3dv(const GLdouble * v);
extern void glColor3f(GLfloat red, GLfloat green, GLfloat blue);
extern void glColor3fv(const GLfloat * v);
extern void glColor3i(GLint red, GLint green, GLint blue);
extern void glColor3iv(const GLint * v);
extern void glColor3s(GLshort red, GLshort green, GLshort blue);
extern void glColor3sv(const GLshort * v);
extern void glColor3ub(GLubyte red, GLubyte green, GLubyte blue);
extern void glColor3ubv(const GLubyte * v);
extern void glColor3ui(GLuint red, GLuint green, GLuint blue);
extern void glColor3uiv(const GLuint * v);
extern void glColor3us(GLushort red, GLushort green, GLushort blue);
extern void glColor3usv(const GLushort * v);
extern void glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
extern void glColor4bv(const GLbyte * v);
extern void glColor4d(GLdouble red, GLdouble green, GLdouble blue,
		      GLdouble alpha);
extern void glColor4dv(const GLdouble * v);
extern void glColor4f(GLfloat red, GLfloat green, GLfloat blue,
		      GLfloat alpha);
extern void glColor4fv(const GLfloat * v);
extern void glColor4i(GLint red, GLint green, GLint blue, GLint alpha);
extern void glColor4iv(const GLint * v);
extern void glColor4s(GLshort red, GLshort green, GLshort blue,
		      GLshort alpha);
extern void glColor4sv(const GLshort * v);
extern void glColor4ub(GLubyte red, GLubyte green, GLubyte blue,
		       GLubyte alpha);
extern void glColor4ubv(const GLubyte * v);
extern void glColor4ui(GLuint red, GLuint green, GLuint blue,
		       GLuint alpha);
extern void glColor4uiv(const GLuint * v);
extern void glColor4us(GLushort red, GLushort green, GLushort blue,
		       GLushort alpha);
extern void glColor4usv(const GLushort * v);
extern void glColorMask(GLboolean red, GLboolean green, GLboolean blue,
			GLboolean alpha);
extern void glColorMaterial(GLenum face, GLenum mode);
extern void glColorPointer(GLint size, GLenum type, GLsizei stride,
			   const GLvoid * pointer);
extern void glColorSubTable(GLenum target, GLsizei start, GLsizei count,
			    GLenum format, GLenum type,
			    const GLvoid * data);
extern void glColorTable(GLenum target, GLenum internalformat,
			 GLsizei width, GLenum format, GLenum type,
			 const GLvoid * table);
extern void glColorTableParameterfv(GLenum target, GLenum pname,
				    const GLfloat * params);
extern void glColorTableParameteriv(GLenum target, GLenum pname,
				    const GLint * params);
extern void glConvolutionFilter1D(GLenum target, GLenum internalformat,
				  GLsizei width, GLenum format,
				  GLenum type, const GLvoid * image);
extern void glConvolutionFilter2D(GLenum target, GLenum internalformat,
				  GLsizei width, GLsizei height,
				  GLenum format, GLenum type,
				  const GLvoid * image);
extern void glConvolutionParameterf(GLenum target, GLenum pname,
				    GLfloat params);
extern void glConvolutionParameterfv(GLenum target, GLenum pname,
				     const GLfloat * params);
extern void glConvolutionParameteri(GLenum target, GLenum pname,
				    GLint params);
extern void glConvolutionParameteriv(GLenum target, GLenum pname,
				     const GLint * params);
extern void glCopyColorSubTable(GLenum target, GLsizei start, GLint x,
				GLint y, GLsizei width);
extern void glCopyColorTable(GLenum target, GLenum internalformat, GLint x,
			     GLint y, GLsizei width);
extern void glCopyConvolutionFilter1D(GLenum target, GLenum internalformat,
				      GLint x, GLint y, GLsizei width);
extern void glCopyConvolutionFilter2D(GLenum target, GLenum internalformat,
				      GLint x, GLint y, GLsizei width,
				      GLsizei height);
extern void glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height,
			 GLenum type);
extern void glCopyTexImage1D(GLenum target, GLint level,
			     GLenum internalFormat, GLint x, GLint y,
			     GLsizei width, GLint border);
extern void glCopyTexImage2D(GLenum target, GLint level,
			     GLenum internalFormat, GLint x, GLint y,
			     GLsizei width, GLsizei height, GLint border);
extern void glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset,
				GLint x, GLint y, GLsizei width);
extern void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset,
				GLint yoffset, GLint x, GLint y,
				GLsizei width, GLsizei height);
extern void glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset,
				GLint yoffset, GLint zoffset, GLint x,
				GLint y, GLsizei width, GLsizei height);
extern void glCullFace(GLenum mode);
extern void glDeleteLists(GLuint list, GLsizei range);
extern void glDeleteTextures(GLsizei n, const GLuint * textures);
extern void glDepthFunc(GLenum func);
extern void glDepthMask(GLboolean flag);
extern void glDepthRange(GLclampd zNear, GLclampd zFar);
extern void glDisable(GLenum cap);
extern void glDisableClientState(GLenum array);
extern void glDrawArrays(GLenum mode, GLint first, GLsizei count);
extern void glDrawBuffer(GLenum mode);
extern void glDrawElements(GLenum mode, GLsizei count, GLenum type,
			   const GLvoid * indices);
extern void glDrawPixels(GLsizei width, GLsizei height, GLenum format,
			 GLenum type, const GLvoid * pixels);
extern void glDrawRangeElements(GLenum mode, GLuint start, GLuint end,
				GLsizei count, GLenum type,
				const GLvoid * indices);
extern void glEdgeFlag(GLboolean flag);
extern void glEdgeFlagPointer(GLsizei stride, const GLvoid * pointer);
extern void glEdgeFlagv(const GLboolean * flag);
extern void glEnable(GLenum cap);
extern void glEnableClientState(GLenum array);
extern void glEnd(void);
extern void glEndList(void);
extern void glEvalCoord1d(GLdouble u);
extern void glEvalCoord1dv(const GLdouble * u);
extern void glEvalCoord1f(GLfloat u);
extern void glEvalCoord1fv(const GLfloat * u);
extern void glEvalCoord2d(GLdouble u, GLdouble v);
extern void glEvalCoord2dv(const GLdouble * u);
extern void glEvalCoord2f(GLfloat u, GLfloat v);
extern void glEvalCoord2fv(const GLfloat * u);
extern void glEvalMesh1(GLenum mode, GLint i1, GLint i2);
extern void glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1,
			GLint j2);
extern void glEvalPoint1(GLint i);
extern void glEvalPoint2(GLint i, GLint j);
extern void glFeedbackBuffer(GLsizei size, GLenum type, GLfloat * buffer);
extern void glFinish(void);
extern void glFlush(void);
extern void glFogf(GLenum pname, GLfloat param);
extern void glFogfv(GLenum pname, const GLfloat * params);
extern void glFogi(GLenum pname, GLint param);
extern void glFogiv(GLenum pname, const GLint * params);
extern void glFrontFace(GLenum mode);
extern void glFrustum(GLdouble left, GLdouble right, GLdouble bottom,
		      GLdouble top, GLdouble zNear, GLdouble zFar);
extern GLuint glGenLists(GLsizei range);
extern void glGenTextures(GLsizei n, GLuint * textures);
extern void glGetBooleanv(GLenum pname, GLboolean * params);
extern void glGetClipPlane(GLenum plane, GLdouble * equation);
extern void glGetColorTable(GLenum target, GLenum format, GLenum type,
			    GLvoid * table);
extern void glGetColorTableParameterfv(GLenum target, GLenum pname,
				       GLfloat * params);
extern void glGetColorTableParameteriv(GLenum target, GLenum pname,
				       GLint * params);
extern void glGetConvolutionFilter(GLenum target, GLenum format,
				   GLenum type, GLvoid * image);
extern void glGetConvolutionParameterfv(GLenum target, GLenum pname,
					GLfloat * params);
extern void glGetConvolutionParameteriv(GLenum target, GLenum pname,
					GLint * params);
extern void glGetDoublev(GLenum pname, GLdouble * params);
extern GLenum glGetError(void);
extern void glGetFloatv(GLenum pname, GLfloat * params);
extern void glGetHistogram(GLenum target, GLboolean reset, GLenum format,
			   GLenum type, GLvoid * values);
extern void glGetHistogramParameterfv(GLenum target, GLenum pname,
				      GLfloat * params);
extern void glGetHistogramParameteriv(GLenum target, GLenum pname,
				      GLint * params);
extern void glGetIntegerv(GLenum pname, GLint * params);
extern void glGetLightfv(GLenum light, GLenum pname, GLfloat * params);
extern void glGetLightiv(GLenum light, GLenum pname, GLint * params);
extern void glGetMapdv(GLenum target, GLenum query, GLdouble * v);
extern void glGetMapfv(GLenum target, GLenum query, GLfloat * v);
extern void glGetMapiv(GLenum target, GLenum query, GLint * v);
extern void glGetMaterialfv(GLenum face, GLenum pname, GLfloat * params);
extern void glGetMaterialiv(GLenum face, GLenum pname, GLint * params);
extern void glGetMinmax(GLenum target, GLboolean reset, GLenum format,
			GLenum types, GLvoid * values);
extern void glGetMinmaxParameterfv(GLenum target, GLenum pname,
				   GLfloat * params);
extern void glGetMinmaxParameteriv(GLenum target, GLenum pname,
				   GLint * params);
extern void glGetPixelMapfv(GLenum map, GLfloat * values);
extern void glGetPixelMapuiv(GLenum map, GLuint * values);
extern void glGetPixelMapusv(GLenum map, GLushort * values);
extern void glGetPointerv(GLenum pname, void **params);
extern void glGetPolygonStipple(GLubyte * mask);
extern void glGetSeparableFilter(GLenum target, GLenum format, GLenum type,
				 GLvoid * row, GLvoid * column,
				 GLvoid * span);
extern const GLubyte *glGetString(GLenum name);
extern void glGetTexEnvfv(GLenum target, GLenum pname, GLfloat * params);
extern void glGetTexEnviv(GLenum target, GLenum pname, GLint * params);
extern void glGetTexGendv(GLenum coord, GLenum pname, GLdouble * params);
extern void glGetTexGenfv(GLenum coord, GLenum pname, GLfloat * params);
extern void glGetTexGeniv(GLenum coord, GLenum pname, GLint * params);
extern void glGetTexImage(GLenum target, GLint level, GLenum format,
			  GLenum type, GLvoid * pixels);
extern void glGetTexLevelParameterfv(GLenum target, GLint level,
				     GLenum pname, GLfloat * params);
extern void glGetTexLevelParameteriv(GLenum target, GLint level,
				     GLenum pname, GLint * params);
extern void glGetTexParameterfv(GLenum target, GLenum pname,
				GLfloat * params);
extern void glGetTexParameteriv(GLenum target, GLenum pname,
				GLint * params);
extern void glHint(GLenum target, GLenum mode);
extern void glHistogram(GLenum target, GLsizei width,
			GLenum internalformat, GLboolean sink);
extern void glIndexMask(GLuint mask);
extern void glIndexPointer(GLenum type, GLsizei stride,
			   const GLvoid * pointer);
extern void glIndexd(GLdouble c);
extern void glIndexdv(const GLdouble * c);
extern void glIndexf(GLfloat c);
extern void glIndexfv(const GLfloat * c);
extern void glIndexi(GLint c);
extern void glIndexiv(const GLint * c);
extern void glIndexs(GLshort c);
extern void glIndexsv(const GLshort * c);
extern void glIndexub(GLubyte c);
extern void glIndexubv(const GLubyte * c);
extern void glInitNames(void);
extern void glInterleavedArrays(GLenum format, GLsizei stride,
				const GLvoid * pointer);
extern GLboolean glIsEnabled(GLenum cap);
extern GLboolean glIsList(GLuint list);
extern GLboolean glIsTexture(GLuint texture);
extern void glLightModelf(GLenum pname, GLfloat param);
extern void glLightModelfv(GLenum pname, const GLfloat * params);
extern void glLightModeli(GLenum pname, GLint param);
extern void glLightModeliv(GLenum pname, const GLint * params);
extern void glLightf(GLenum light, GLenum pname, GLfloat param);
extern void glLightfv(GLenum light, GLenum pname, const GLfloat * params);
extern void glLighti(GLenum light, GLenum pname, GLint param);
extern void glLightiv(GLenum light, GLenum pname, const GLint * params);
extern void glLineStipple(GLint factor, GLushort pattern);
extern void glLineWidth(GLfloat width);
extern void glListBase(GLuint base);
extern void glLoadIdentity(void);
extern void glLoadMatrixd(const GLdouble * m);
extern void glLoadMatrixf(const GLfloat * m);
extern void glLoadName(GLuint name);
extern void glLogicOp(GLenum opcode);
extern void glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride,
		    GLint order, const GLdouble * points);
extern void glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride,
		    GLint order, const GLfloat * points);
extern void glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride,
		    GLint uorder, GLdouble v1, GLdouble v2, GLint vstride,
		    GLint vorder, const GLdouble * points);
extern void glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride,
		    GLint uorder, GLfloat v1, GLfloat v2, GLint vstride,
		    GLint vorder, const GLfloat * points);
extern void glMapGrid1d(GLint un, GLdouble u1, GLdouble u2);
extern void glMapGrid1f(GLint un, GLfloat u1, GLfloat u2);
extern void glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn,
			GLdouble v1, GLdouble v2);
extern void glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn,
			GLfloat v1, GLfloat v2);
extern void glMaterialf(GLenum face, GLenum pname, GLfloat param);
extern void glMaterialfv(GLenum face, GLenum pname,
			 const GLfloat * params);
extern void glMateriali(GLenum face, GLenum pname, GLint param);
extern void glMaterialiv(GLenum face, GLenum pname, const GLint * params);
extern void glMatrixMode(GLenum mode);
extern void glMinmax(GLenum target, GLenum internalformat, GLboolean sink);
extern void glMultMatrixd(const GLdouble * m);
extern void glMultMatrixf(const GLfloat * m);
extern void glMultiTexCoord1dARB(GLenum target, GLdouble s);
extern void glMultiTexCoord1dvARB(GLenum target, const GLdouble * v);
extern void glMultiTexCoord1fARB(GLenum target, GLfloat s);
extern void glMultiTexCoord1fvARB(GLenum target, const GLfloat * v);
extern void glMultiTexCoord1iARB(GLenum target, GLint s);
extern void glMultiTexCoord1ivARB(GLenum target, const GLint * v);
extern void glMultiTexCoord1sARB(GLenum target, GLshort s);
extern void glMultiTexCoord1svARB(GLenum target, const GLshort * v);
extern void glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t);
extern void glMultiTexCoord2dvARB(GLenum target, const GLdouble * v);
extern void glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
extern void glMultiTexCoord2fvARB(GLenum target, const GLfloat * v);
extern void glMultiTexCoord2iARB(GLenum target, GLint s, GLint t);
extern void glMultiTexCoord2ivARB(GLenum target, const GLint * v);
extern void glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t);
extern void glMultiTexCoord2svARB(GLenum target, const GLshort * v);
extern void glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t,
				 GLdouble r);
extern void glMultiTexCoord3dvARB(GLenum target, const GLdouble * v);
extern void glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t,
				 GLfloat r);
extern void glMultiTexCoord3fvARB(GLenum target, const GLfloat * v);
extern void glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r);
extern void glMultiTexCoord3ivARB(GLenum target, const GLint * v);
extern void glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t,
				 GLshort r);
extern void glMultiTexCoord3svARB(GLenum target, const GLshort * v);
extern void glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t,
				 GLdouble r, GLdouble q);
extern void glMultiTexCoord4dvARB(GLenum target, const GLdouble * v);
extern void glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t,
				 GLfloat r, GLfloat q);
extern void glMultiTexCoord4fvARB(GLenum target, const GLfloat * v);
extern void glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r,
				 GLint q);
extern void glMultiTexCoord4ivARB(GLenum target, const GLint * v);
extern void glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t,
				 GLshort r, GLshort q);
extern void glMultiTexCoord4svARB(GLenum target, const GLshort * v);
extern void glNewList(GLuint list, GLenum mode);
extern void glNormal3b(GLbyte nx, GLbyte ny, GLbyte nz);
extern void glNormal3bv(const GLbyte * v);
extern void glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz);
extern void glNormal3dv(const GLdouble * v);
extern void glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz);
extern void glNormal3fv(const GLfloat * v);
extern void glNormal3i(GLint nx, GLint ny, GLint nz);
extern void glNormal3iv(const GLint * v);
extern void glNormal3s(GLshort nx, GLshort ny, GLshort nz);
extern void glNormal3sv(const GLshort * v);
extern void glNormalPointer(GLenum type, GLsizei stride,
			    const GLvoid * pointer);
extern void glOrtho(GLdouble left, GLdouble right, GLdouble bottom,
		    GLdouble top, GLdouble zNear, GLdouble zFar);
extern void glPassThrough(GLfloat token);
extern void glPixelMapfv(GLenum map, GLint mapsize,
			 const GLfloat * values);
extern void glPixelMapuiv(GLenum map, GLint mapsize,
			  const GLuint * values);
extern void glPixelMapusv(GLenum map, GLint mapsize,
			  const GLushort * values);
extern void glPixelStoref(GLenum pname, GLfloat param);
extern void glPixelStorei(GLenum pname, GLint param);
extern void glPixelTransferf(GLenum pname, GLfloat param);
extern void glPixelTransferi(GLenum pname, GLint param);
extern void glPixelZoom(GLfloat xfactor, GLfloat yfactor);
extern void glPointSize(GLfloat size);
extern void glPolygonMode(GLenum face, GLenum mode);
extern void glPolygonOffset(GLfloat factor, GLfloat units);
extern void glPolygonStipple(const GLubyte * mask);
extern void glPopAttrib(void);
extern void glPopClientAttrib(void);
extern void glPopMatrix(void);
extern void glPopName(void);
extern void glPrioritizeTextures(GLsizei n, const GLuint * textures,
				 const GLclampf * priorities);
extern void glPushAttrib(GLbitfield mask);
extern void glPushClientAttrib(GLbitfield mask);
extern void glPushMatrix(void);
extern void glPushName(GLuint name);
extern void glRasterPos2d(GLdouble x, GLdouble y);
extern void glRasterPos2dv(const GLdouble * v);
extern void glRasterPos2f(GLfloat x, GLfloat y);
extern void glRasterPos2fv(const GLfloat * v);
extern void glRasterPos2i(GLint x, GLint y);
extern void glRasterPos2iv(const GLint * v);
extern void glRasterPos2s(GLshort x, GLshort y);
extern void glRasterPos2sv(const GLshort * v);
extern void glRasterPos3d(GLdouble x, GLdouble y, GLdouble z);
extern void glRasterPos3dv(const GLdouble * v);
extern void glRasterPos3f(GLfloat x, GLfloat y, GLfloat z);
extern void glRasterPos3fv(const GLfloat * v);
extern void glRasterPos3i(GLint x, GLint y, GLint z);
extern void glRasterPos3iv(const GLint * v);
extern void glRasterPos3s(GLshort x, GLshort y, GLshort z);
extern void glRasterPos3sv(const GLshort * v);
extern void glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
extern void glRasterPos4dv(const GLdouble * v);
extern void glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
extern void glRasterPos4fv(const GLfloat * v);
extern void glRasterPos4i(GLint x, GLint y, GLint z, GLint w);
extern void glRasterPos4iv(const GLint * v);
extern void glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w);
extern void glRasterPos4sv(const GLshort * v);
extern void glReadBuffer(GLenum mode);
extern void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
			 GLenum format, GLenum type, GLvoid * pixels);
extern void glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
extern void glRectdv(const GLdouble * v1, const GLdouble * v2);
extern void glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
extern void glRectfv(const GLfloat * v1, const GLfloat * v2);
extern void glRecti(GLint x1, GLint y1, GLint x2, GLint y2);
extern void glRectiv(const GLint * v1, const GLint * v2);
extern void glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
extern void glRectsv(const GLshort * v1, const GLshort * v2);
extern GLint glRenderMode(GLenum mode);
extern void glResetHistogram(GLenum target);
extern void glResetMinmax(GLenum target);
extern void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
extern void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
extern void glScaled(GLdouble x, GLdouble y, GLdouble z);
extern void glScalef(GLfloat x, GLfloat y, GLfloat z);
extern void glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
extern void glSelectBuffer(GLsizei size, GLuint * buffer);
extern void glSeparableFilter2D(GLenum target, GLenum internalformat,
				GLsizei width, GLsizei height,
				GLenum format, GLenum type,
				const GLvoid * row, const GLvoid * column);
extern void glShadeModel(GLenum mode);
extern void glStencilFunc(GLenum func, GLint ref, GLuint mask);
extern void glStencilMask(GLuint mask);
extern void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass);
extern void glTexCoord1d(GLdouble s);
extern void glTexCoord1dv(const GLdouble * v);
extern void glTexCoord1f(GLfloat s);
extern void glTexCoord1fv(const GLfloat * v);
extern void glTexCoord1i(GLint s);
extern void glTexCoord1iv(const GLint * v);
extern void glTexCoord1s(GLshort s);
extern void glTexCoord1sv(const GLshort * v);
extern void glTexCoord2d(GLdouble s, GLdouble t);
extern void glTexCoord2dv(const GLdouble * v);
extern void glTexCoord2f(GLfloat s, GLfloat t);
extern void glTexCoord2fv(const GLfloat * v);
extern void glTexCoord2i(GLint s, GLint t);
extern void glTexCoord2iv(const GLint * v);
extern void glTexCoord2s(GLshort s, GLshort t);
extern void glTexCoord2sv(const GLshort * v);
extern void glTexCoord3d(GLdouble s, GLdouble t, GLdouble r);
extern void glTexCoord3dv(const GLdouble * v);
extern void glTexCoord3f(GLfloat s, GLfloat t, GLfloat r);
extern void glTexCoord3fv(const GLfloat * v);
extern void glTexCoord3i(GLint s, GLint t, GLint r);
extern void glTexCoord3iv(const GLint * v);
extern void glTexCoord3s(GLshort s, GLshort t, GLshort r);
extern void glTexCoord3sv(const GLshort * v);
extern void glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
extern void glTexCoord4dv(const GLdouble * v);
extern void glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
extern void glTexCoord4fv(const GLfloat * v);
extern void glTexCoord4i(GLint s, GLint t, GLint r, GLint q);
extern void glTexCoord4iv(const GLint * v);
extern void glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q);
extern void glTexCoord4sv(const GLshort * v);
extern void glTexCoordPointer(GLint size, GLenum type, GLsizei stride,
			      const GLvoid * pointer);
extern void glTexEnvf(GLenum target, GLenum pname, GLfloat param);
extern void glTexEnvfv(GLenum target, GLenum pname,
		       const GLfloat * params);
extern void glTexEnvi(GLenum target, GLenum pname, GLint param);
extern void glTexEnviv(GLenum target, GLenum pname, const GLint * params);
extern void glTexGend(GLenum coord, GLenum pname, GLdouble param);
extern void glTexGendv(GLenum coord, GLenum pname,
		       const GLdouble * params);
extern void glTexGenf(GLenum coord, GLenum pname, GLfloat param);
extern void glTexGenfv(GLenum coord, GLenum pname, const GLfloat * params);
extern void glTexGeni(GLenum coord, GLenum pname, GLint param);
extern void glTexGeniv(GLenum coord, GLenum pname, const GLint * params);
extern void glTexImage1D(GLenum target, GLint level, GLint internalformat,
			 GLsizei width, GLint border, GLenum format,
			 GLenum type, const GLvoid * pixels);
extern void glTexImage2D(GLenum target, GLint level, GLint internalformat,
			 GLsizei width, GLsizei height, GLint border,
			 GLenum format, GLenum type,
			 const GLvoid * pixels);
extern void glTexImage3D(GLenum target, GLint level, GLint internalFormat,
			 GLsizei width, GLsizei height, GLsizei depth,
			 GLint border, GLenum format, GLenum type,
			 const GLvoid * pixels);
extern void glTexParameterf(GLenum target, GLenum pname, GLfloat param);
extern void glTexParameterfv(GLenum target, GLenum pname,
			     const GLfloat * params);
extern void glTexParameteri(GLenum target, GLenum pname, GLint param);
extern void glTexParameteriv(GLenum target, GLenum pname,
			     const GLint * params);
extern void glTexSubImage1D(GLenum target, GLint level, GLint xoffset,
			    GLsizei width, GLenum format, GLenum type,
			    const GLvoid * pixels);
extern void glTexSubImage2D(GLenum target, GLint level, GLint xoffset,
			    GLint yoffset, GLsizei width, GLsizei height,
			    GLenum format, GLenum type,
			    const GLvoid * pixels);
extern void glTexSubImage3D(GLenum target, GLint level, GLint xoffset,
			    GLint yoffset, GLint zoffset, GLsizei width,
			    GLsizei height, GLsizei depth, GLenum format,
			    GLenum type, const GLvoid * pixels);
extern void glTranslated(GLdouble x, GLdouble y, GLdouble z);
extern void glTranslatef(GLfloat x, GLfloat y, GLfloat z);
extern void glVertex2d(GLdouble x, GLdouble y);
extern void glVertex2dv(const GLdouble * v);
extern void glVertex2f(GLfloat x, GLfloat y);
extern void glVertex2fv(const GLfloat * v);
extern void glVertex2i(GLint x, GLint y);
extern void glVertex2iv(const GLint * v);
extern void glVertex2s(GLshort x, GLshort y);
extern void glVertex2sv(const GLshort * v);
extern void glVertex3d(GLdouble x, GLdouble y, GLdouble z);
extern void glVertex3dv(const GLdouble * v);
extern void glVertex3f(GLfloat x, GLfloat y, GLfloat z);
extern void glVertex3fv(const GLfloat * v);
extern void glVertex3i(GLint x, GLint y, GLint z);
extern void glVertex3iv(const GLint * v);
extern void glVertex3s(GLshort x, GLshort y, GLshort z);
extern void glVertex3sv(const GLshort * v);
extern void glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
extern void glVertex4dv(const GLdouble * v);
extern void glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
extern void glVertex4fv(const GLfloat * v);
extern void glVertex4i(GLint x, GLint y, GLint z, GLint w);
extern void glVertex4iv(const GLint * v);
extern void glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w);
extern void glVertex4sv(const GLshort * v);
extern void glVertexPointer(GLint size, GLenum type, GLsizei stride,
			    const GLvoid * pointer);
extern void glViewport(GLint x, GLint y, GLsizei width, GLsizei height);

7.2.2. GL/glext.h


#define GLEXT_64_TYPES_DEFINED
#define GL_2X_BIT_ATI	0x00000001
#define GL_RED_BIT_ATI	0x00000001
#define GL_4X_BIT_ATI	0x00000002
#define GL_COMP_BIT_ATI	0x00000002
#define GL_GREEN_BIT_ATI	0x00000002
#define GL_8X_BIT_ATI	0x00000004
#define GL_BLUE_BIT_ATI	0x00000004
#define GL_NEGATE_BIT_ATI	0x00000004
#define GL_VERTEX23_BIT_PGI	0x00000004
#define GL_BIAS_BIT_ATI	0x00000008
#define GL_HALF_BIT_ATI	0x00000008
#define GL_VERTEX4_BIT_PGI	0x00000008
#define GL_QUARTER_BIT_ATI	0x00000010
#define GL_EIGHTH_BIT_ATI	0x00000020
#define GL_SATURATE_BIT_ATI	0x00000040
#define GL_RESTART_SUN	0x0001
#define GL_COLOR3_BIT_PGI	0x00010000
#define GL_REPLACE_MIDDLE_SUN	0x0002
#define GL_COLOR4_BIT_PGI	0x00020000
#define GL_REPLACE_OLDEST_SUN	0x0003
#define GL_EDGEFLAG_BIT_PGI	0x00040000
#define GL_INDEX_BIT_PGI	0x00080000
#define GL_MAT_AMBIENT_BIT_PGI	0x00100000
#define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI	0x00200000
#define GL_MAT_DIFFUSE_BIT_PGI	0x00400000
#define GL_MAT_EMISSION_BIT_PGI	0x00800000
#define GL_MAT_COLOR_INDEXES_BIT_PGI	0x01000000
#define GL_MAT_SHININESS_BIT_PGI	0x02000000
#define GL_MAT_SPECULAR_BIT_PGI	0x04000000
#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT	0x0506
#define GL_NORMAL_BIT_PGI	0x08000000
#define GL_TEXCOORD1_BIT_PGI	0x10000000
#define GL_HALF_FLOAT_ARB	0x140B
#define GL_MODELVIEW0_ARB	0x1700
#define GL_RASTER_POSITION_UNCLIPPED_IBM	0x19262
#define GL_PREFER_DOUBLEBUFFER_HINT_PGI	0x1A1F8
#define GL_CONSERVE_MEMORY_HINT_PGI	0x1A1FD
#define GL_RECLAIM_MEMORY_HINT_PGI	0x1A1FE
#define GL_NATIVE_GRAPHICS_HANDLE_PGI	0x1A202
#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI	0x1A203
#define GL_NATIVE_GRAPHICS_END_HINT_PGI	0x1A204
#define GL_ALWAYS_FAST_HINT_PGI	0x1A20C
#define GL_ALWAYS_SOFT_HINT_PGI	0x1A20D
#define GL_ALLOW_DRAW_OBJ_HINT_PGI	0x1A20E
#define GL_ALLOW_DRAW_WIN_HINT_PGI	0x1A20F
#define GL_ALLOW_DRAW_FRG_HINT_PGI	0x1A210
#define GL_ALLOW_DRAW_MEM_HINT_PGI	0x1A211
#define GL_STRICT_DEPTHFUNC_HINT_PGI	0x1A216
#define GL_STRICT_LIGHTING_HINT_PGI	0x1A217
#define GL_STRICT_SCISSOR_HINT_PGI	0x1A218
#define GL_FULL_STIPPLE_HINT_PGI	0x1A219
#define GL_CLIP_NEAR_HINT_PGI	0x1A220
#define GL_CLIP_FAR_HINT_PGI	0x1A221
#define GL_WIDE_LINE_HINT_PGI	0x1A222
#define GL_BACK_NORMALS_HINT_PGI	0x1A223
#define GL_VERTEX_DATA_HINT_PGI	0x1A22A
#define GL_VERTEX_CONSISTENT_HINT_PGI	0x1A22B
#define GL_MATERIAL_SIDE_HINT_PGI	0x1A22C
#define GL_MAX_VERTEX_HINT_PGI	0x1A22D
#define GL_MULTISAMPLE_BIT_3DFX	0x20000000
#define GL_MULTISAMPLE_BIT_ARB	0x20000000
#define GL_MULTISAMPLE_BIT_EXT	0x20000000
#define GL_TEXCOORD2_BIT_PGI	0x20000000
#define GL_TEXCOORD3_BIT_PGI	0x40000000
#define GL_ABGR_EXT	0x8000
#define GL_TEXCOORD4_BIT_PGI	0x80000000
#define GL_CONSTANT_COLOR_EXT	0x8001
#define GL_ONE_MINUS_CONSTANT_COLOR_EXT	0x8002
#define GL_CONSTANT_ALPHA_EXT	0x8003
#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT	0x8004
#define GL_BLEND_COLOR_EXT	0x8005
#define GL_FUNC_ADD_EXT	0x8006
#define GL_MIN_EXT	0x8007
#define GL_MAX_EXT	0x8008
#define GL_BLEND_EQUATION_EXT	0x8009
#define GL_FUNC_SUBTRACT_EXT	0x800A
#define GL_FUNC_REVERSE_SUBTRACT_EXT	0x800B
#define GL_CMYK_EXT	0x800C
#define GL_CMYKA_EXT	0x800D
#define GL_PACK_CMYK_HINT_EXT	0x800E
#define GL_UNPACK_CMYK_HINT_EXT	0x800F
#define GL_CONVOLUTION_1D_EXT	0x8010
#define GL_CONVOLUTION_2D_EXT	0x8011
#define GL_SEPARABLE_2D_EXT	0x8012
#define GL_CONVOLUTION_BORDER_MODE_EXT	0x8013
#define GL_CONVOLUTION_FILTER_SCALE_EXT	0x8014
#define GL_CONVOLUTION_FILTER_BIAS_EXT	0x8015
#define GL_REDUCE_EXT	0x8016
#define GL_CONVOLUTION_FORMAT_EXT	0x8017
#define GL_CONVOLUTION_WIDTH_EXT	0x8018
#define GL_CONVOLUTION_HEIGHT_EXT	0x8019
#define GL_MAX_CONVOLUTION_WIDTH_EXT	0x801A
#define GL_MAX_CONVOLUTION_HEIGHT_EXT	0x801B
#define GL_POST_CONVOLUTION_RED_SCALE_EXT	0x801C
#define GL_POST_CONVOLUTION_GREEN_SCALE_EXT	0x801D
#define GL_POST_CONVOLUTION_BLUE_SCALE_EXT	0x801E
#define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT	0x801F
#define GL_POST_CONVOLUTION_RED_BIAS_EXT	0x8020
#define GL_POST_CONVOLUTION_GREEN_BIAS_EXT	0x8021
#define GL_POST_CONVOLUTION_BLUE_BIAS_EXT	0x8022
#define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT	0x8023
#define GL_HISTOGRAM_EXT	0x8024
#define GL_PROXY_HISTOGRAM_EXT	0x8025
#define GL_HISTOGRAM_WIDTH_EXT	0x8026
#define GL_HISTOGRAM_FORMAT_EXT	0x8027
#define GL_HISTOGRAM_RED_SIZE_EXT	0x8028
#define GL_HISTOGRAM_GREEN_SIZE_EXT	0x8029
#define GL_HISTOGRAM_BLUE_SIZE_EXT	0x802A
#define GL_HISTOGRAM_ALPHA_SIZE_EXT	0x802B
#define GL_HISTOGRAM_LUMINANCE_SIZE_EXT	0x802C
#define GL_HISTOGRAM_SINK_EXT	0x802D
#define GL_MINMAX_EXT	0x802E
#define GL_MINMAX_FORMAT_EXT	0x802F
#define GL_MINMAX_SINK_EXT	0x8030
#define GL_TABLE_TOO_LARGE_EXT	0x8031
#define GL_UNSIGNED_BYTE_3_3_2_EXT	0x8032
#define GL_UNSIGNED_SHORT_4_4_4_4_EXT	0x8033
#define GL_UNSIGNED_SHORT_5_5_5_1_EXT	0x8034
#define GL_UNSIGNED_INT_8_8_8_8_EXT	0x8035
#define GL_UNSIGNED_INT_10_10_10_2_EXT	0x8036
#define GL_POLYGON_OFFSET_EXT	0x8037
#define GL_POLYGON_OFFSET_FACTOR_EXT	0x8038
#define GL_POLYGON_OFFSET_BIAS_EXT	0x8039
#define GL_RESCALE_NORMAL_EXT	0x803A
#define GL_ALPHA4_EXT	0x803B
#define GL_ALPHA8_EXT	0x803C
#define GL_ALPHA12_EXT	0x803D
#define GL_ALPHA16_EXT	0x803E
#define GL_LUMINANCE4_EXT	0x803F
#define GL_LUMINANCE8_EXT	0x8040
#define GL_LUMINANCE12_EXT	0x8041
#define GL_LUMINANCE16_EXT	0x8042
#define GL_LUMINANCE4_ALPHA4_EXT	0x8043
#define GL_LUMINANCE6_ALPHA2_EXT	0x8044
#define GL_LUMINANCE8_ALPHA8_EXT	0x8045
#define GL_LUMINANCE12_ALPHA4_EXT	0x8046
#define GL_LUMINANCE12_ALPHA12_EXT	0x8047
#define GL_LUMINANCE16_ALPHA16_EXT	0x8048
#define GL_INTENSITY_EXT	0x8049
#define GL_INTENSITY4_EXT	0x804A
#define GL_INTENSITY8_EXT	0x804B
#define GL_INTENSITY12_EXT	0x804C
#define GL_INTENSITY16_EXT	0x804D
#define GL_RGB2_EXT	0x804E
#define GL_RGB4_EXT	0x804F
#define GL_RGB5_EXT	0x8050
#define GL_RGB8_EXT	0x8051
#define GL_RGB10_EXT	0x8052
#define GL_RGB12_EXT	0x8053
#define GL_RGB16_EXT	0x8054
#define GL_RGBA2_EXT	0x8055
#define GL_RGBA4_EXT	0x8056
#define GL_RGB5_A1_EXT	0x8057
#define GL_RGBA8_EXT	0x8058
#define GL_RGB10_A2_EXT	0x8059
#define GL_RGBA12_EXT	0x805A
#define GL_RGBA16_EXT	0x805B
#define GL_TEXTURE_RED_SIZE_EXT	0x805C
#define GL_TEXTURE_GREEN_SIZE_EXT	0x805D
#define GL_TEXTURE_BLUE_SIZE_EXT	0x805E
#define GL_TEXTURE_ALPHA_SIZE_EXT	0x805F
#define GL_TEXTURE_LUMINANCE_SIZE_EXT	0x8060
#define GL_TEXTURE_INTENSITY_SIZE_EXT	0x8061
#define GL_REPLACE_EXT	0x8062
#define GL_PROXY_TEXTURE_1D_EXT	0x8063
#define GL_PROXY_TEXTURE_2D_EXT	0x8064
#define GL_TEXTURE_TOO_LARGE_EXT	0x8065
#define GL_TEXTURE_PRIORITY_EXT	0x8066
#define GL_TEXTURE_RESIDENT_EXT	0x8067
#define GL_TEXTURE_1D_BINDING_EXT	0x8068
#define GL_TEXTURE_2D_BINDING_EXT	0x8069
#define GL_TEXTURE_3D_BINDING_EXT	0x806A
#define GL_PACK_SKIP_IMAGES_EXT	0x806B
#define GL_PACK_IMAGE_HEIGHT_EXT	0x806C
#define GL_UNPACK_SKIP_IMAGES_EXT	0x806D
#define GL_UNPACK_IMAGE_HEIGHT_EXT	0x806E
#define GL_TEXTURE_3D_EXT	0x806F
#define GL_PROXY_TEXTURE_3D_EXT	0x8070
#define GL_TEXTURE_DEPTH_EXT	0x8071
#define GL_TEXTURE_WRAP_R_EXT	0x8072
#define GL_MAX_3D_TEXTURE_SIZE_EXT	0x8073
#define GL_VERTEX_ARRAY_EXT	0x8074
#define GL_NORMAL_ARRAY_EXT	0x8075
#define GL_COLOR_ARRAY_EXT	0x8076
#define GL_INDEX_ARRAY_EXT	0x8077
#define GL_TEXTURE_COORD_ARRAY_EXT	0x8078
#define GL_EDGE_FLAG_ARRAY_EXT	0x8079
#define GL_VERTEX_ARRAY_SIZE_EXT	0x807A
#define GL_VERTEX_ARRAY_TYPE_EXT	0x807B
#define GL_VERTEX_ARRAY_STRIDE_EXT	0x807C
#define GL_VERTEX_ARRAY_COUNT_EXT	0x807D
#define GL_NORMAL_ARRAY_TYPE_EXT	0x807E
#define GL_NORMAL_ARRAY_STRIDE_EXT	0x807F
#define GL_NORMAL_ARRAY_COUNT_EXT	0x8080
#define GL_COLOR_ARRAY_SIZE_EXT	0x8081
#define GL_COLOR_ARRAY_TYPE_EXT	0x8082
#define GL_COLOR_ARRAY_STRIDE_EXT	0x8083
#define GL_COLOR_ARRAY_COUNT_EXT	0x8084
#define GL_INDEX_ARRAY_TYPE_EXT	0x8085
#define GL_INDEX_ARRAY_STRIDE_EXT	0x8086
#define GL_INDEX_ARRAY_COUNT_EXT	0x8087
#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT	0x8088
#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT	0x8089
#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT	0x808A
#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT	0x808B
#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT	0x808C
#define GL_EDGE_FLAG_ARRAY_COUNT_EXT	0x808D
#define GL_VERTEX_ARRAY_POINTER_EXT	0x808E
#define GL_NORMAL_ARRAY_POINTER_EXT	0x808F
#define GL_COLOR_ARRAY_POINTER_EXT	0x8090
#define GL_INDEX_ARRAY_POINTER_EXT	0x8091
#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT	0x8092
#define GL_EDGE_FLAG_ARRAY_POINTER_EXT	0x8093
#define GL_MULTISAMPLE_ARB	0x809D
#define GL_MULTISAMPLE_EXT	0x809D
#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB	0x809E
#define GL_SAMPLE_ALPHA_TO_MASK_EXT	0x809E
#define GL_SAMPLE_ALPHA_TO_ONE_ARB	0x809F
#define GL_SAMPLE_ALPHA_TO_ONE_EXT	0x809F
#define GL_SAMPLE_COVERAGE_ARB	0x80A0
#define GL_SAMPLE_MASK_EXT	0x80A0
#define GL_1PASS_EXT	0x80A1
#define GL_2PASS_0_EXT	0x80A2
#define GL_2PASS_1_EXT	0x80A3
#define GL_4PASS_0_EXT	0x80A4
#define GL_4PASS_1_EXT	0x80A5
#define GL_4PASS_2_EXT	0x80A6
#define GL_4PASS_3_EXT	0x80A7
#define GL_SAMPLE_BUFFERS_ARB	0x80A8
#define GL_SAMPLE_BUFFERS_EXT	0x80A8
#define GL_SAMPLES_ARB	0x80A9
#define GL_SAMPLES_EXT	0x80A9
#define GL_SAMPLE_COVERAGE_VALUE_ARB	0x80AA
#define GL_SAMPLE_MASK_VALUE_EXT	0x80AA
#define GL_SAMPLE_COVERAGE_INVERT_ARB	0x80AB
#define GL_SAMPLE_MASK_INVERT_EXT	0x80AB
#define GL_SAMPLE_PATTERN_EXT	0x80AC
#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB	0x80BF
#define GL_BLEND_DST_RGB	0x80C8
#define GL_BLEND_DST_RGB_EXT	0x80C8
#define GL_BLEND_SRC_RGB	0x80C9
#define GL_BLEND_SRC_RGB_EXT	0x80C9
#define GL_BLEND_DST_ALPHA	0x80CA
#define GL_BLEND_DST_ALPHA_EXT	0x80CA
#define GL_BLEND_SRC_ALPHA	0x80CB
#define GL_BLEND_SRC_ALPHA_EXT	0x80CB
#define GL_422_EXT	0x80CC
#define GL_422_REV_EXT	0x80CD
#define GL_422_AVERAGE_EXT	0x80CE
#define GL_422_REV_AVERAGE_EXT	0x80CF
#define GL_BGR_EXT	0x80E0
#define GL_BGRA_EXT	0x80E1
#define GL_COLOR_INDEX1_EXT	0x80E2
#define GL_COLOR_INDEX2_EXT	0x80E3
#define GL_COLOR_INDEX4_EXT	0x80E4
#define GL_COLOR_INDEX8_EXT	0x80E5
#define GL_COLOR_INDEX12_EXT	0x80E6
#define GL_COLOR_INDEX16_EXT	0x80E7
#define GL_MAX_ELEMENTS_VERTICES_EXT	0x80E8
#define GL_MAX_ELEMENTS_INDICES_EXT	0x80E9
#define GL_PHONG_WIN	0x80EA
#define GL_PHONG_HINT_WIN	0x80EB
#define GL_FOG_SPECULAR_TEXTURE_WIN	0x80EC
#define GL_TEXTURE_INDEX_SIZE_EXT	0x80ED
#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT	0x80F0
#define GL_POINT_SIZE_MIN	0x8126
#define GL_POINT_SIZE_MIN_ARB	0x8126
#define GL_POINT_SIZE_MIN_EXT	0x8126
#define GL_POINT_SIZE_MAX	0x8127
#define GL_POINT_SIZE_MAX_ARB	0x8127
#define GL_POINT_SIZE_MAX_EXT	0x8127
#define GL_POINT_FADE_THRESHOLD_SIZE	0x8128
#define GL_POINT_FADE_THRESHOLD_SIZE_ARB	0x8128
#define GL_POINT_FADE_THRESHOLD_SIZE_EXT	0x8128
#define GL_DISTANCE_ATTENUATION_EXT	0x8129
#define GL_POINT_DISTANCE_ATTENUATION	0x8129
#define GL_POINT_DISTANCE_ATTENUATION_ARB	0x8129
#define GL_CLAMP_TO_BORDER_ARB	0x812D
#define GL_IGNORE_BORDER_HP	0x8150
#define GL_CONSTANT_BORDER_HP	0x8151
#define GL_REPLICATE_BORDER_HP	0x8153
#define GL_CONVOLUTION_BORDER_COLOR_HP	0x8154
#define GL_IMAGE_SCALE_X_HP	0x8155
#define GL_IMAGE_SCALE_Y_HP	0x8156
#define GL_IMAGE_TRANSLATE_X_HP	0x8157
#define GL_IMAGE_TRANSLATE_Y_HP	0x8158
#define GL_IMAGE_ROTATE_ANGLE_HP	0x8159
#define GL_IMAGE_ROTATE_ORIGIN_X_HP	0x815A
#define GL_IMAGE_ROTATE_ORIGIN_Y_HP	0x815B
#define GL_IMAGE_MAG_FILTER_HP	0x815C
#define GL_IMAGE_MIN_FILTER_HP	0x815D
#define GL_IMAGE_CUBIC_WEIGHT_HP	0x815E
#define GL_CUBIC_HP	0x815F
#define GL_AVERAGE_HP	0x8160
#define GL_IMAGE_TRANSFORM_2D_HP	0x8161
#define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP	0x8162
#define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP	0x8163
#define GL_OCCLUSION_TEST_HP	0x8165
#define GL_OCCLUSION_TEST_RESULT_HP	0x8166
#define GL_TEXTURE_LIGHTING_MODE_HP	0x8167
#define GL_TEXTURE_POST_SPECULAR_HP	0x8168
#define GL_TEXTURE_PRE_SPECULAR_HP	0x8169
#define GL_GENERATE_MIPMAP	0x8191
#define GL_GENERATE_MIPMAP_HINT	0x8192
#define GL_DEPTH_COMPONENT16	0x81A5
#define GL_DEPTH_COMPONENT16_ARB	0x81A5
#define GL_DEPTH_COMPONENT24	0x81A6
#define GL_DEPTH_COMPONENT24_ARB	0x81A6
#define GL_DEPTH_COMPONENT32	0x81A7
#define GL_DEPTH_COMPONENT32_ARB	0x81A7
#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT	0x81A8
#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT	0x81A9
#define GL_CULL_VERTEX_EXT	0x81AA
#define GL_CULL_VERTEX_EYE_POSITION_EXT	0x81AB
#define GL_CULL_VERTEX_OBJECT_POSITION_EXT	0x81AC
#define GL_IUI_V2F_EXT	0x81AD
#define GL_IUI_V3F_EXT	0x81AE
#define GL_IUI_N3F_V2F_EXT	0x81AF
#define GL_IUI_N3F_V3F_EXT	0x81B0
#define GL_T2F_IUI_V2F_EXT	0x81B1
#define GL_T2F_IUI_V3F_EXT	0x81B2
#define GL_T2F_IUI_N3F_V2F_EXT	0x81B3
#define GL_T2F_IUI_N3F_V3F_EXT	0x81B4
#define GL_INDEX_TEST_EXT	0x81B5
#define GL_INDEX_TEST_FUNC_EXT	0x81B6
#define GL_INDEX_TEST_REF_EXT	0x81B7
#define GL_INDEX_MATERIAL_EXT	0x81B8
#define GL_INDEX_MATERIAL_PARAMETER_EXT	0x81B9
#define GL_INDEX_MATERIAL_FACE_EXT	0x81BA
#define GL_WRAP_BORDER_SUN	0x81D4
#define GL_UNPACK_CONSTANT_DATA_SUNX	0x81D5
#define GL_TEXTURE_CONSTANT_DATA_SUNX	0x81D6
#define GL_TRIANGLE_LIST_SUN	0x81D7
#define GL_REPLACEMENT_CODE_SUN	0x81D8
#define GL_GLOBAL_ALPHA_SUN	0x81D9
#define GL_GLOBAL_ALPHA_FACTOR_SUN	0x81DA
#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT	0x81F8
#define GL_SINGLE_COLOR_EXT	0x81F9
#define GL_SEPARATE_SPECULAR_COLOR_EXT	0x81FA
#define GL_SHARED_TEXTURE_PALETTE_EXT	0x81FB
#define GL_TEXT_FRAGMENT_SHADER_ATI	0x8200
#define GL_PIXEL_TRANSFORM_2D_EXT	0x8330
#define GL_PIXEL_MAG_FILTER_EXT	0x8331
#define GL_PIXEL_MIN_FILTER_EXT	0x8332
#define GL_PIXEL_CUBIC_WEIGHT_EXT	0x8333
#define GL_CUBIC_EXT	0x8334
#define GL_AVERAGE_EXT	0x8335
#define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT	0x8336
#define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT	0x8337
#define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT	0x8338
#define GL_FRAGMENT_MATERIAL_EXT	0x8349
#define GL_FRAGMENT_NORMAL_EXT	0x834A
#define GL_FRAGMENT_COLOR_EXT	0x834C
#define GL_ATTENUATION_EXT	0x834D
#define GL_SHADOW_ATTENUATION_EXT	0x834E
#define GL_TEXTURE_APPLICATION_MODE_EXT	0x834F
#define GL_TEXTURE_LIGHT_EXT	0x8350
#define GL_TEXTURE_MATERIAL_FACE_EXT	0x8351
#define GL_TEXTURE_MATERIAL_PARAMETER_EXT	0x8352
#define GL_MIRRORED_REPEAT	0x8370
#define GL_MIRRORED_REPEAT_ARB	0x8370
#define GL_MIRRORED_REPEAT_IBM	0x8370
#define GL_RGB_S3TC	0x83A0
#define GL_RGB4_S3TC	0x83A1
#define GL_RGBA_S3TC	0x83A2
#define GL_RGBA4_S3TC	0x83A3
#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT	0x83F0
#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT	0x83F1
#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT	0x83F2
#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT	0x83F3
#define GL_PARALLEL_ARRAYS_INTEL	0x83F4
#define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL	0x83F5
#define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL	0x83F6
#define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL	0x83F7
#define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL	0x83F8
#define GL_TANGENT_ARRAY_EXT	0x8439
#define GL_BINORMAL_ARRAY_EXT	0x843A
#define GL_CURRENT_TANGENT_EXT	0x843B
#define GL_CURRENT_BINORMAL_EXT	0x843C
#define GL_TANGENT_ARRAY_TYPE_EXT	0x843E
#define GL_TANGENT_ARRAY_STRIDE_EXT	0x843F
#define GL_BINORMAL_ARRAY_TYPE_EXT	0x8440
#define GL_BINORMAL_ARRAY_STRIDE_EXT	0x8441
#define GL_TANGENT_ARRAY_POINTER_EXT	0x8442
#define GL_BINORMAL_ARRAY_POINTER_EXT	0x8443
#define GL_MAP1_TANGENT_EXT	0x8444
#define GL_MAP2_TANGENT_EXT	0x8445
#define GL_MAP1_BINORMAL_EXT	0x8446
#define GL_MAP2_BINORMAL_EXT	0x8447
#define GL_FOG_COORDINATE_SOURCE	0x8450
#define GL_FOG_COORDINATE_SOURCE_EXT	0x8450
#define GL_FOG_COORDINATE	0x8451
#define GL_FOG_COORDINATE_EXT	0x8451
#define GL_FRAGMENT_DEPTH	0x8452
#define GL_FRAGMENT_DEPTH_EXT	0x8452
#define GL_CURRENT_FOG_COORDINATE	0x8453
#define GL_CURRENT_FOG_COORDINATE_EXT	0x8453
#define GL_FOG_COORDINATE_ARRAY_TYPE	0x8454
#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT	0x8454
#define GL_FOG_COORDINATE_ARRAY_STRIDE	0x8455
#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT	0x8455
#define GL_FOG_COORDINATE_ARRAY_POINTER	0x8456
#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT	0x8456
#define GL_FOG_COORDINATE_ARRAY	0x8457
#define GL_FOG_COORDINATE_ARRAY_EXT	0x8457
#define GL_COLOR_SUM	0x8458
#define GL_COLOR_SUM_ARB	0x8458
#define GL_COLOR_SUM_EXT	0x8458
#define GL_CURRENT_SECONDARY_COLOR	0x8459
#define GL_CURRENT_SECONDARY_COLOR_EXT	0x8459
#define GL_SECONDARY_COLOR_ARRAY_SIZE	0x845A
#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT	0x845A
#define GL_SECONDARY_COLOR_ARRAY_TYPE	0x845B
#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT	0x845B
#define GL_SECONDARY_COLOR_ARRAY_STRIDE	0x845C
#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT	0x845C
#define GL_SECONDARY_COLOR_ARRAY_POINTER	0x845D
#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT	0x845D
#define GL_SECONDARY_COLOR_ARRAY	0x845E
#define GL_SECONDARY_COLOR_ARRAY_EXT	0x845E
#define GL_SCREEN_COORDINATES_REND	0x8490
#define GL_INVERTED_SCREEN_W_REND	0x8491
#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB	0x84E3
#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB	0x84E4
#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB	0x84E5
#define GL_TRANSPOSE_COLOR_MATRIX_ARB	0x84E6
#define GL_SUBTRACT_ARB	0x84E7
#define GL_MAX_RENDERBUFFER_SIZE_EXT	0x84E8
#define GL_COMPRESSED_ALPHA_ARB	0x84E9
#define GL_COMPRESSED_LUMINANCE_ARB	0x84EA
#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB	0x84EB
#define GL_COMPRESSED_INTENSITY_ARB	0x84EC
#define GL_COMPRESSED_RGB_ARB	0x84ED
#define GL_COMPRESSED_RGBA_ARB	0x84EE
#define GL_TEXTURE_COMPRESSION_HINT_ARB	0x84EF
#define GL_TEXTURE_RECTANGLE_ARB	0x84F5
#define GL_TEXTURE_BINDING_RECTANGLE_ARB	0x84F6
#define GL_PROXY_TEXTURE_RECTANGLE_ARB	0x84F7
#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB	0x84F8
#define GL_MAX_TEXTURE_LOD_BIAS	0x84FD
#define GL_MAX_TEXTURE_LOD_BIAS_EXT	0x84FD
#define GL_TEXTURE_MAX_ANISOTROPY_EXT	0x84FE
#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT	0x84FF
#define GL_TEXTURE_FILTER_CONTROL	0x8500
#define GL_TEXTURE_FILTER_CONTROL_EXT	0x8500
#define GL_TEXTURE_LOD_BIAS	0x8501
#define GL_TEXTURE_LOD_BIAS_EXT	0x8501
#define GL_MODELVIEW1_STACK_DEPTH_EXT	0x8502
#define GL_MODELVIEW1_MATRIX_EXT	0x8506
#define GL_INCR_WRAP	0x8507
#define GL_INCR_WRAP_EXT	0x8507
#define GL_DECR_WRAP	0x8508
#define GL_DECR_WRAP_EXT	0x8508
#define GL_VERTEX_WEIGHTING_EXT	0x8509
#define GL_MODELVIEW1_ARB	0x850A
#define GL_MODELVIEW1_EXT	0x850A
#define GL_CURRENT_VERTEX_WEIGHT_EXT	0x850B
#define GL_VERTEX_WEIGHT_ARRAY_EXT	0x850C
#define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT	0x850D
#define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT	0x850E
#define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT	0x850F
#define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT	0x8510
#define GL_NORMAL_MAP_ARB	0x8511
#define GL_NORMAL_MAP_EXT	0x8511
#define GL_REFLECTION_MAP_ARB	0x8512
#define GL_REFLECTION_MAP_EXT	0x8512
#define GL_TEXTURE_CUBE_MAP_ARB	0x8513
#define GL_TEXTURE_CUBE_MAP_EXT	0x8513
#define GL_TEXTURE_BINDING_CUBE_MAP_ARB	0x8514
#define GL_TEXTURE_BINDING_CUBE_MAP_EXT	0x8514
#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB	0x8515
#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT	0x8515
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB	0x8516
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT	0x8516
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB	0x8517
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT	0x8517
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB	0x8518
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT	0x8518
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB	0x8519
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT	0x8519
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB	0x851A
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT	0x851A
#define GL_PROXY_TEXTURE_CUBE_MAP_ARB	0x851B
#define GL_PROXY_TEXTURE_CUBE_MAP_EXT	0x851B
#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB	0x851C
#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT	0x851C
#define GL_RED_MIN_CLAMP_INGR	0x8560
#define GL_GREEN_MIN_CLAMP_INGR	0x8561
#define GL_BLUE_MIN_CLAMP_INGR	0x8562
#define GL_ALPHA_MIN_CLAMP_INGR	0x8563
#define GL_RED_MAX_CLAMP_INGR	0x8564
#define GL_GREEN_MAX_CLAMP_INGR	0x8565
#define GL_BLUE_MAX_CLAMP_INGR	0x8566
#define GL_ALPHA_MAX_CLAMP_INGR	0x8567
#define GL_INTERLACE_READ_INGR	0x8568
#define GL_COMBINE_ARB	0x8570
#define GL_COMBINE_EXT	0x8570
#define GL_COMBINE_RGB_ARB	0x8571
#define GL_COMBINE_RGB_EXT	0x8571
#define GL_COMBINE_ALPHA_ARB	0x8572
#define GL_COMBINE_ALPHA_EXT	0x8572
#define GL_RGB_SCALE_ARB	0x8573
#define GL_RGB_SCALE_EXT	0x8573
#define GL_ADD_SIGNED_ARB	0x8574
#define GL_ADD_SIGNED_EXT	0x8574
#define GL_INTERPOLATE_ARB	0x8575
#define GL_INTERPOLATE_EXT	0x8575
#define GL_CONSTANT_ARB	0x8576
#define GL_CONSTANT_EXT	0x8576
#define GL_PRIMARY_COLOR_ARB	0x8577
#define GL_PRIMARY_COLOR_EXT	0x8577
#define GL_PREVIOUS_ARB	0x8578
#define GL_PREVIOUS_EXT	0x8578
#define GL_SOURCE0_RGB_ARB	0x8580
#define GL_SOURCE0_RGB_EXT	0x8580
#define GL_SOURCE1_RGB_ARB	0x8581
#define GL_SOURCE1_RGB_EXT	0x8581
#define GL_SOURCE2_RGB_ARB	0x8582
#define GL_SOURCE2_RGB_EXT	0x8582
#define GL_SOURCE0_ALPHA_ARB	0x8588
#define GL_SOURCE0_ALPHA_EXT	0x8588
#define GL_SOURCE1_ALPHA_ARB	0x8589
#define GL_SOURCE1_ALPHA_EXT	0x8589
#define GL_SOURCE2_ALPHA_ARB	0x858A
#define GL_SOURCE2_ALPHA_EXT	0x858A
#define GL_OPERAND0_RGB_ARB	0x8590
#define GL_OPERAND0_RGB_EXT	0x8590
#define GL_OPERAND1_RGB_ARB	0x8591
#define GL_OPERAND1_RGB_EXT	0x8591
#define GL_OPERAND2_RGB_ARB	0x8592
#define GL_OPERAND2_RGB_EXT	0x8592
#define GL_OPERAND0_ALPHA_ARB	0x8598
#define GL_OPERAND0_ALPHA_EXT	0x8598
#define GL_OPERAND1_ALPHA_ARB	0x8599
#define GL_OPERAND1_ALPHA_EXT	0x8599
#define GL_OPERAND2_ALPHA_ARB	0x859A
#define GL_OPERAND2_ALPHA_EXT	0x859A
#define GL_PERTURB_EXT	0x85AE
#define GL_TEXTURE_NORMAL_EXT	0x85AF
#define GL_REPLACEMENT_CODE_ARRAY_SUN	0x85C0
#define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN	0x85C1
#define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN	0x85C2
#define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN	0x85C3
#define GL_R1UI_V3F_SUN	0x85C4
#define GL_R1UI_C4UB_V3F_SUN	0x85C5
#define GL_R1UI_C3F_V3F_SUN	0x85C6
#define GL_R1UI_N3F_V3F_SUN	0x85C7
#define GL_R1UI_C4F_N3F_V3F_SUN	0x85C8
#define GL_R1UI_T2F_V3F_SUN	0x85C9
#define GL_R1UI_T2F_N3F_V3F_SUN	0x85CA
#define GL_R1UI_T2F_C4F_N3F_V3F_SUN	0x85CB
#define GL_SLICE_ACCUM_SUN	0x85CC
#define GL_QUAD_MESH_SUN	0x8614
#define GL_TRIANGLE_MESH_SUN	0x8615
#define GL_VERTEX_PROGRAM_ARB	0x8620
#define GL_VERTEX_ATTRIB_ARRAY_ENABLED	0x8622
#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB	0x8622
#define GL_VERTEX_ATTRIB_ARRAY_SIZE	0x8623
#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB	0x8623
#define GL_VERTEX_ATTRIB_ARRAY_STRIDE	0x8624
#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB	0x8624
#define GL_VERTEX_ATTRIB_ARRAY_TYPE	0x8625
#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB	0x8625
#define GL_CURRENT_VERTEX_ATTRIB	0x8626
#define GL_CURRENT_VERTEX_ATTRIB_ARB	0x8626
#define GL_PROGRAM_LENGTH_ARB	0x8627
#define GL_PROGRAM_STRING_ARB	0x8628
#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB	0x862E
#define GL_MAX_PROGRAM_MATRICES_ARB	0x862F
#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB	0x8640
#define GL_CURRENT_MATRIX_ARB	0x8641
#define GL_VERTEX_PROGRAM_POINT_SIZE	0x8642
#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB	0x8642
#define GL_VERTEX_PROGRAM_TWO_SIDE	0x8643
#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB	0x8643
#define GL_VERTEX_ATTRIB_ARRAY_POINTER	0x8645
#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB	0x8645
#define GL_PROGRAM_ERROR_POSITION_ARB	0x864B
#define GL_PROGRAM_BINDING_ARB	0x8677
#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB	0x86A0
#define GL_TEXTURE_COMPRESSED_ARB	0x86A1
#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB	0x86A2
#define GL_COMPRESSED_TEXTURE_FORMATS_ARB	0x86A3
#define GL_MAX_VERTEX_UNITS_ARB	0x86A4
#define GL_ACTIVE_VERTEX_UNITS_ARB	0x86A5
#define GL_WEIGHT_SUM_UNITY_ARB	0x86A6
#define GL_VERTEX_BLEND_ARB	0x86A7
#define GL_CURRENT_WEIGHT_ARB	0x86A8
#define GL_WEIGHT_ARRAY_TYPE_ARB	0x86A9
#define GL_WEIGHT_ARRAY_STRIDE_ARB	0x86AA
#define GL_WEIGHT_ARRAY_SIZE_ARB	0x86AB
#define GL_WEIGHT_ARRAY_POINTER_ARB	0x86AC
#define GL_WEIGHT_ARRAY_ARB	0x86AD
#define GL_DOT3_RGB_ARB	0x86AE
#define GL_DOT3_RGBA_ARB	0x86AF
#define GL_COMPRESSED_RGB_FXT1_3DFX	0x86B0
#define GL_COMPRESSED_RGBA_FXT1_3DFX	0x86B1
#define GL_MULTISAMPLE_3DFX	0x86B2
#define GL_SAMPLE_BUFFERS_3DFX	0x86B3
#define GL_SAMPLES_3DFX	0x86B4
#define GL_MODELVIEW2_ARB	0x8722
#define GL_MODELVIEW3_ARB	0x8723
#define GL_MODELVIEW4_ARB	0x8724
#define GL_MODELVIEW5_ARB	0x8725
#define GL_MODELVIEW6_ARB	0x8726
#define GL_MODELVIEW7_ARB	0x8727
#define GL_MODELVIEW8_ARB	0x8728
#define GL_MODELVIEW9_ARB	0x8729
#define GL_MODELVIEW10_ARB	0x872A
#define GL_MODELVIEW11_ARB	0x872B
#define GL_MODELVIEW12_ARB	0x872C
#define GL_MODELVIEW13_ARB	0x872D
#define GL_MODELVIEW14_ARB	0x872E
#define GL_MODELVIEW15_ARB	0x872F
#define GL_MODELVIEW16_ARB	0x8730
#define GL_MODELVIEW17_ARB	0x8731
#define GL_MODELVIEW18_ARB	0x8732
#define GL_MODELVIEW19_ARB	0x8733
#define GL_MODELVIEW20_ARB	0x8734
#define GL_MODELVIEW21_ARB	0x8735
#define GL_MODELVIEW22_ARB	0x8736
#define GL_MODELVIEW23_ARB	0x8737
#define GL_MODELVIEW24_ARB	0x8738
#define GL_MODELVIEW25_ARB	0x8739
#define GL_MODELVIEW26_ARB	0x873A
#define GL_MODELVIEW27_ARB	0x873B
#define GL_MODELVIEW28_ARB	0x873C
#define GL_MODELVIEW29_ARB	0x873D
#define GL_MODELVIEW30_ARB	0x873E
#define GL_MODELVIEW31_ARB	0x873F
#define GL_DOT3_RGB_EXT	0x8740
#define GL_DOT3_RGBA_EXT	0x8741
#define GL_MIRROR_CLAMP_ATI	0x8742
#define GL_MIRROR_CLAMP_EXT	0x8742
#define GL_MIRROR_CLAMP_TO_EDGE_ATI	0x8743
#define GL_MIRROR_CLAMP_TO_EDGE_EXT	0x8743
#define GL_MODULATE_ADD_ATI	0x8744
#define GL_MODULATE_SIGNED_ADD_ATI	0x8745
#define GL_MODULATE_SUBTRACT_ATI	0x8746
#define GL_STATIC_ATI	0x8760
#define GL_DYNAMIC_ATI	0x8761
#define GL_PRESERVE_ATI	0x8762
#define GL_DISCARD_ATI	0x8763
#define GL_BUFFER_SIZE	0x8764
#define GL_BUFFER_SIZE_ARB	0x8764
#define GL_OBJECT_BUFFER_SIZE_ATI	0x8764
#define GL_BUFFER_USAGE	0x8765
#define GL_BUFFER_USAGE_ARB	0x8765
#define GL_OBJECT_BUFFER_USAGE_ATI	0x8765
#define GL_ARRAY_OBJECT_BUFFER_ATI	0x8766
#define GL_ARRAY_OBJECT_OFFSET_ATI	0x8767
#define GL_ELEMENT_ARRAY_ATI	0x8768
#define GL_ELEMENT_ARRAY_TYPE_ATI	0x8769
#define GL_ELEMENT_ARRAY_POINTER_ATI	0x876A
#define GL_MAX_VERTEX_STREAMS_ATI	0x876B
#define GL_VERTEX_STREAM0_ATI	0x876C
#define GL_VERTEX_STREAM1_ATI	0x876D
#define GL_VERTEX_STREAM2_ATI	0x876E
#define GL_VERTEX_STREAM3_ATI	0x876F
#define GL_VERTEX_STREAM4_ATI	0x8770
#define GL_VERTEX_STREAM5_ATI	0x8771
#define GL_VERTEX_STREAM6_ATI	0x8772
#define GL_VERTEX_STREAM7_ATI	0x8773
#define GL_VERTEX_SOURCE_ATI	0x8774
#define GL_BUMP_ROT_MATRIX_ATI	0x8775
#define GL_BUMP_ROT_MATRIX_SIZE_ATI	0x8776
#define GL_BUMP_NUM_TEX_UNITS_ATI	0x8777
#define GL_BUMP_TEX_UNITS_ATI	0x8778
#define GL_DUDV_ATI	0x8779
#define GL_DU8DV8_ATI	0x877A
#define GL_BUMP_ENVMAP_ATI	0x877B
#define GL_BUMP_TARGET_ATI	0x877C
#define GL_VERTEX_SHADER_EXT	0x8780
#define GL_VERTEX_SHADER_BINDING_EXT	0x8781
#define GL_OP_INDEX_EXT	0x8782
#define GL_OP_NEGATE_EXT	0x8783
#define GL_OP_DOT3_EXT	0x8784
#define GL_OP_DOT4_EXT	0x8785
#define GL_OP_MUL_EXT	0x8786
#define GL_OP_ADD_EXT	0x8787
#define GL_OP_MADD_EXT	0x8788
#define GL_OP_FRAC_EXT	0x8789
#define GL_OP_MAX_EXT	0x878A
#define GL_OP_MIN_EXT	0x878B
#define GL_OP_SET_GE_EXT	0x878C
#define GL_OP_SET_LT_EXT	0x878D
#define GL_OP_CLAMP_EXT	0x878E
#define GL_OP_FLOOR_EXT	0x878F
#define GL_OP_ROUND_EXT	0x8790
#define GL_OP_EXP_BASE_2_EXT	0x8791
#define GL_OP_LOG_BASE_2_EXT	0x8792
#define GL_OP_POWER_EXT	0x8793
#define GL_OP_RECIP_EXT	0x8794
#define GL_OP_RECIP_SQRT_EXT	0x8795
#define GL_OP_SUB_EXT	0x8796
#define GL_OP_CROSS_PRODUCT_EXT	0x8797
#define GL_OP_MULTIPLY_MATRIX_EXT	0x8798
#define GL_OP_MOV_EXT	0x8799
#define GL_OUTPUT_VERTEX_EXT	0x879A
#define GL_OUTPUT_COLOR0_EXT	0x879B
#define GL_OUTPUT_COLOR1_EXT	0x879C
#define GL_OUTPUT_TEXTURE_COORD0_EXT	0x879D
#define GL_OUTPUT_TEXTURE_COORD1_EXT	0x879E
#define GL_OUTPUT_TEXTURE_COORD2_EXT	0x879F
#define GL_OUTPUT_TEXTURE_COORD3_EXT	0x87A0
#define GL_OUTPUT_TEXTURE_COORD4_EXT	0x87A1
#define GL_OUTPUT_TEXTURE_COORD5_EXT	0x87A2
#define GL_OUTPUT_TEXTURE_COORD6_EXT	0x87A3
#define GL_OUTPUT_TEXTURE_COORD7_EXT	0x87A4
#define GL_OUTPUT_TEXTURE_COORD8_EXT	0x87A5
#define GL_OUTPUT_TEXTURE_COORD9_EXT	0x87A6
#define GL_OUTPUT_TEXTURE_COORD10_EXT	0x87A7
#define GL_OUTPUT_TEXTURE_COORD11_EXT	0x87A8
#define GL_OUTPUT_TEXTURE_COORD12_EXT	0x87A9
#define GL_OUTPUT_TEXTURE_COORD13_EXT	0x87AA
#define GL_OUTPUT_TEXTURE_COORD14_EXT	0x87AB
#define GL_OUTPUT_TEXTURE_COORD15_EXT	0x87AC
#define GL_OUTPUT_TEXTURE_COORD16_EXT	0x87AD
#define GL_OUTPUT_TEXTURE_COORD17_EXT	0x87AE
#define GL_OUTPUT_TEXTURE_COORD18_EXT	0x87AF
#define GL_OUTPUT_TEXTURE_COORD19_EXT	0x87B0
#define GL_OUTPUT_TEXTURE_COORD20_EXT	0x87B1
#define GL_OUTPUT_TEXTURE_COORD21_EXT	0x87B2
#define GL_OUTPUT_TEXTURE_COORD22_EXT	0x87B3
#define GL_OUTPUT_TEXTURE_COORD23_EXT	0x87B4
#define GL_OUTPUT_TEXTURE_COORD24_EXT	0x87B5
#define GL_OUTPUT_TEXTURE_COORD25_EXT	0x87B6
#define GL_OUTPUT_TEXTURE_COORD26_EXT	0x87B7
#define GL_OUTPUT_TEXTURE_COORD27_EXT	0x87B8
#define GL_OUTPUT_TEXTURE_COORD28_EXT	0x87B9
#define GL_OUTPUT_TEXTURE_COORD29_EXT	0x87BA
#define GL_OUTPUT_TEXTURE_COORD30_EXT	0x87BB
#define GL_OUTPUT_TEXTURE_COORD31_EXT	0x87BC
#define GL_OUTPUT_FOG_EXT	0x87BD
#define GL_SCALAR_EXT	0x87BE
#define GL_VECTOR_EXT	0x87BF
#define GL_MATRIX_EXT	0x87C0
#define GL_VARIANT_EXT	0x87C1
#define GL_INVARIANT_EXT	0x87C2
#define GL_LOCAL_CONSTANT_EXT	0x87C3
#define GL_LOCAL_EXT	0x87C4
#define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT	0x87C5
#define GL_MAX_VERTEX_SHADER_VARIANTS_EXT	0x87C6
#define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT	0x87C7
#define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT	0x87C8
#define GL_MAX_VERTEX_SHADER_LOCALS_EXT	0x87C9
#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT	0x87CA
#define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT	0x87CB
#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT	0x87CC
#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT	0x87CD
#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT	0x87CE
#define GL_VERTEX_SHADER_INSTRUCTIONS_EXT	0x87CF
#define GL_VERTEX_SHADER_VARIANTS_EXT	0x87D0
#define GL_VERTEX_SHADER_INVARIANTS_EXT	0x87D1
#define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT	0x87D2
#define GL_VERTEX_SHADER_LOCALS_EXT	0x87D3
#define GL_VERTEX_SHADER_OPTIMIZED_EXT	0x87D4
#define GL_X_EXT	0x87D5
#define GL_Y_EXT	0x87D6
#define GL_Z_EXT	0x87D7
#define GL_W_EXT	0x87D8
#define GL_NEGATIVE_X_EXT	0x87D9
#define GL_NEGATIVE_Y_EXT	0x87DA
#define GL_NEGATIVE_Z_EXT	0x87DB
#define GL_NEGATIVE_W_EXT	0x87DC
#define GL_ZERO_EXT	0x87DD
#define GL_ONE_EXT	0x87DE
#define GL_NEGATIVE_ONE_EXT	0x87DF
#define GL_NORMALIZED_RANGE_EXT	0x87E0
#define GL_FULL_RANGE_EXT	0x87E1
#define GL_CURRENT_VERTEX_EXT	0x87E2
#define GL_MVP_MATRIX_EXT	0x87E3
#define GL_VARIANT_VALUE_EXT	0x87E4
#define GL_VARIANT_DATATYPE_EXT	0x87E5
#define GL_VARIANT_ARRAY_STRIDE_EXT	0x87E6
#define GL_VARIANT_ARRAY_TYPE_EXT	0x87E7
#define GL_VARIANT_ARRAY_EXT	0x87E8
#define GL_VARIANT_ARRAY_POINTER_EXT	0x87E9
#define GL_INVARIANT_VALUE_EXT	0x87EA
#define GL_INVARIANT_DATATYPE_EXT	0x87EB
#define GL_LOCAL_CONSTANT_VALUE_EXT	0x87EC
#define GL_LOCAL_CONSTANT_DATATYPE_EXT	0x87ED
#define GL_PN_TRIANGLES_ATI	0x87F0
#define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI	0x87F1
#define GL_PN_TRIANGLES_POINT_MODE_ATI	0x87F2
#define GL_PN_TRIANGLES_NORMAL_MODE_ATI	0x87F3
#define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI	0x87F4
#define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI	0x87F5
#define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI	0x87F6
#define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI	0x87F7
#define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI	0x87F8
#define GL_STENCIL_BACK_FUNC	0x8800
#define GL_STENCIL_BACK_FUNC_ATI	0x8800
#define GL_STENCIL_BACK_FAIL	0x8801
#define GL_STENCIL_BACK_FAIL_ATI	0x8801
#define GL_STENCIL_BACK_PASS_DEPTH_FAIL	0x8802
#define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI	0x8802
#define GL_STENCIL_BACK_PASS_DEPTH_PASS	0x8803
#define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI	0x8803
#define GL_FRAGMENT_PROGRAM_ARB	0x8804
#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB	0x8805
#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB	0x8806
#define GL_PROGRAM_TEX_INDIRECTIONS_ARB	0x8807
#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB	0x8808
#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB	0x8809
#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB	0x880A
#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB	0x880B
#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB	0x880C
#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB	0x880D
#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB	0x880E
#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB	0x880F
#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB	0x8810
#define GL_RGBA32F_ARB	0x8814
#define GL_RGBA_FLOAT32_ATI	0x8814
#define GL_RGB32F_ARB	0x8815
#define GL_RGB_FLOAT32_ATI	0x8815
#define GL_ALPHA32F_ARB	0x8816
#define GL_ALPHA_FLOAT32_ATI	0x8816
#define GL_INTENSITY32F_ARB	0x8817
#define GL_INTENSITY_FLOAT32_ATI	0x8817
#define GL_LUMINANCE32F_ARB	0x8818
#define GL_LUMINANCE_FLOAT32_ATI	0x8818
#define GL_LUMINANCE_ALPHA32F_ARB	0x8819
#define GL_LUMINANCE_ALPHA_FLOAT32_ATI	0x8819
#define GL_RGBA16F_ARB	0x881A
#define GL_RGBA_FLOAT16_ATI	0x881A
#define GL_RGB16F_ARB	0x881B
#define GL_RGB_FLOAT16_ATI	0x881B
#define GL_ALPHA16F_ARB	0x881C
#define GL_ALPHA_FLOAT16_ATI	0x881C
#define GL_INTENSITY16F_ARB	0x881D
#define GL_INTENSITY_FLOAT16_ATI	0x881D
#define GL_LUMINANCE16F_ARB	0x881E
#define GL_LUMINANCE_FLOAT16_ATI	0x881E
#define GL_LUMINANCE_ALPHA16F_ARB	0x881F
#define GL_LUMINANCE_ALPHA_FLOAT16_ATI	0x881F
#define GL_RGBA_FLOAT_MODE_ARB	0x8820
#define GL_TYPE_RGBA_FLOAT_ATI	0x8820
#define GL_MAX_DRAW_BUFFERS	0x8824
#define GL_MAX_DRAW_BUFFERS_ARB	0x8824
#define GL_MAX_DRAW_BUFFERS_ATI	0x8824
#define GL_DRAW_BUFFER0	0x8825
#define GL_DRAW_BUFFER0_ARB	0x8825
#define GL_DRAW_BUFFER0_ATI	0x8825
#define GL_DRAW_BUFFER1	0x8826
#define GL_DRAW_BUFFER1_ARB	0x8826
#define GL_DRAW_BUFFER1_ATI	0x8826
#define GL_DRAW_BUFFER2	0x8827
#define GL_DRAW_BUFFER2_ARB	0x8827
#define GL_DRAW_BUFFER2_ATI	0x8827
#define GL_DRAW_BUFFER3	0x8828
#define GL_DRAW_BUFFER3_ARB	0x8828
#define GL_DRAW_BUFFER3_ATI	0x8828
#define GL_DRAW_BUFFER4	0x8829
#define GL_DRAW_BUFFER4_ARB	0x8829
#define GL_DRAW_BUFFER4_ATI	0x8829
#define GL_DRAW_BUFFER5	0x882A
#define GL_DRAW_BUFFER5_ARB	0x882A
#define GL_DRAW_BUFFER5_ATI	0x882A
#define GL_DRAW_BUFFER6	0x882B
#define GL_DRAW_BUFFER6_ARB	0x882B
#define GL_DRAW_BUFFER6_ATI	0x882B
#define GL_DRAW_BUFFER7	0x882C
#define GL_DRAW_BUFFER7_ARB	0x882C
#define GL_DRAW_BUFFER7_ATI	0x882C
#define GL_DRAW_BUFFER8	0x882D
#define GL_DRAW_BUFFER8_ARB	0x882D
#define GL_DRAW_BUFFER8_ATI	0x882D
#define GL_DRAW_BUFFER9	0x882E
#define GL_DRAW_BUFFER9_ARB	0x882E
#define GL_DRAW_BUFFER9_ATI	0x882E
#define GL_DRAW_BUFFER10	0x882F
#define GL_DRAW_BUFFER10_ARB	0x882F
#define GL_DRAW_BUFFER10_ATI	0x882F
#define GL_DRAW_BUFFER11	0x8830
#define GL_DRAW_BUFFER11_ARB	0x8830
#define GL_DRAW_BUFFER11_ATI	0x8830
#define GL_DRAW_BUFFER12	0x8831
#define GL_DRAW_BUFFER12_ARB	0x8831
#define GL_DRAW_BUFFER12_ATI	0x8831
#define GL_DRAW_BUFFER13	0x8832
#define GL_DRAW_BUFFER13_ARB	0x8832
#define GL_DRAW_BUFFER13_ATI	0x8832
#define GL_DRAW_BUFFER14	0x8833
#define GL_DRAW_BUFFER14_ARB	0x8833
#define GL_DRAW_BUFFER14_ATI	0x8833
#define GL_DRAW_BUFFER15	0x8834
#define GL_DRAW_BUFFER15_ARB	0x8834
#define GL_DRAW_BUFFER15_ATI	0x8834
#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI	0x8835
#define GL_BLEND_EQUATION_ALPHA	0x883D
#define GL_BLEND_EQUATION_ALPHA_EXT	0x883D
#define GL_MATRIX_PALETTE_ARB	0x8840
#define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB	0x8841
#define GL_MAX_PALETTE_MATRICES_ARB	0x8842
#define GL_CURRENT_PALETTE_MATRIX_ARB	0x8843
#define GL_MATRIX_INDEX_ARRAY_ARB	0x8844
#define GL_CURRENT_MATRIX_INDEX_ARB	0x8845
#define GL_MATRIX_INDEX_ARRAY_SIZE_ARB	0x8846
#define GL_MATRIX_INDEX_ARRAY_TYPE_ARB	0x8847
#define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB	0x8848
#define GL_MATRIX_INDEX_ARRAY_POINTER_ARB	0x8849
#define GL_TEXTURE_DEPTH_SIZE	0x884A
#define GL_TEXTURE_DEPTH_SIZE_ARB	0x884A
#define GL_DEPTH_TEXTURE_MODE	0x884B
#define GL_DEPTH_TEXTURE_MODE_ARB	0x884B
#define GL_TEXTURE_COMPARE_MODE	0x884C
#define GL_TEXTURE_COMPARE_MODE_ARB	0x884C
#define GL_TEXTURE_COMPARE_FUNC	0x884D
#define GL_TEXTURE_COMPARE_FUNC_ARB	0x884D
#define GL_COMPARE_R_TO_TEXTURE	0x884E
#define GL_COMPARE_R_TO_TEXTURE_ARB	0x884E
#define GL_POINT_SPRITE	0x8861
#define GL_POINT_SPRITE_ARB	0x8861
#define GL_COORD_REPLACE	0x8862
#define GL_COORD_REPLACE_ARB	0x8862
#define GL_QUERY_COUNTER_BITS	0x8864
#define GL_QUERY_COUNTER_BITS_ARB	0x8864
#define GL_CURRENT_QUERY	0x8865
#define GL_CURRENT_QUERY_ARB	0x8865
#define GL_QUERY_RESULT	0x8866
#define GL_QUERY_RESULT_ARB	0x8866
#define GL_QUERY_RESULT_AVAILABLE	0x8867
#define GL_QUERY_RESULT_AVAILABLE_ARB	0x8867
#define GL_MAX_VERTEX_ATTRIBS	0x8869
#define GL_MAX_VERTEX_ATTRIBS_ARB	0x8869
#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED	0x886A
#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB	0x886A
#define GL_MAX_TEXTURE_COORDS	0x8871
#define GL_MAX_TEXTURE_COORDS_ARB	0x8871
#define GL_MAX_TEXTURE_IMAGE_UNITS	0x8872
#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB	0x8872
#define GL_PROGRAM_ERROR_STRING_ARB	0x8874
#define GL_PROGRAM_FORMAT_ASCII_ARB	0x8875
#define GL_PROGRAM_FORMAT_ARB	0x8876
#define GL_DEPTH_BOUNDS_TEST_EXT	0x8890
#define GL_DEPTH_BOUNDS_EXT	0x8891
#define GL_ARRAY_BUFFER	0x8892
#define GL_ARRAY_BUFFER_ARB	0x8892
#define GL_ELEMENT_ARRAY_BUFFER	0x8893
#define GL_ELEMENT_ARRAY_BUFFER_ARB	0x8893
#define GL_ARRAY_BUFFER_BINDING	0x8894
#define GL_ARRAY_BUFFER_BINDING_ARB	0x8894
#define GL_ELEMENT_ARRAY_BUFFER_BINDING	0x8895
#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB	0x8895
#define GL_VERTEX_ARRAY_BUFFER_BINDING	0x8896
#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB	0x8896
#define GL_NORMAL_ARRAY_BUFFER_BINDING	0x8897
#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB	0x8897
#define GL_COLOR_ARRAY_BUFFER_BINDING	0x8898
#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB	0x8898
#define GL_INDEX_ARRAY_BUFFER_BINDING	0x8899
#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB	0x8899
#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING	0x889A
#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB	0x889A
#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING	0x889B
#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB	0x889B
#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING	0x889C
#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB	0x889C
#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING	0x889D
#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB	0x889D
#define GL_WEIGHT_ARRAY_BUFFER_BINDING	0x889E
#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB	0x889E
#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING	0x889F
#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB	0x889F
#define GL_PROGRAM_INSTRUCTIONS_ARB	0x88A0
#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB	0x88A1
#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB	0x88A2
#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB	0x88A3
#define GL_PROGRAM_TEMPORARIES_ARB	0x88A4
#define GL_MAX_PROGRAM_TEMPORARIES_ARB	0x88A5
#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB	0x88A6
#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB	0x88A7
#define GL_PROGRAM_PARAMETERS_ARB	0x88A8
#define GL_MAX_PROGRAM_PARAMETERS_ARB	0x88A9
#define GL_PROGRAM_NATIVE_PARAMETERS_ARB	0x88AA
#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB	0x88AB
#define GL_PROGRAM_ATTRIBS_ARB	0x88AC
#define GL_MAX_PROGRAM_ATTRIBS_ARB	0x88AD
#define GL_PROGRAM_NATIVE_ATTRIBS_ARB	0x88AE
#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB	0x88AF
#define GL_PROGRAM_ADDRESS_REGISTERS_ARB	0x88B0
#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB	0x88B1
#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB	0x88B2
#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB	0x88B3
#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB	0x88B4
#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB	0x88B5
#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB	0x88B6
#define GL_TRANSPOSE_CURRENT_MATRIX_ARB	0x88B7
#define GL_READ_ONLY	0x88B8
#define GL_READ_ONLY_ARB	0x88B8
#define GL_WRITE_ONLY	0x88B9
#define GL_WRITE_ONLY_ARB	0x88B9
#define GL_READ_WRITE	0x88BA
#define GL_READ_WRITE_ARB	0x88BA
#define GL_BUFFER_ACCESS	0x88BB
#define GL_BUFFER_ACCESS_ARB	0x88BB
#define GL_BUFFER_MAPPED	0x88BC
#define GL_BUFFER_MAPPED_ARB	0x88BC
#define GL_BUFFER_MAP_POINTER	0x88BD
#define GL_BUFFER_MAP_POINTER_ARB	0x88BD
#define GL_MATRIX0_ARB	0x88C0
#define GL_MATRIX1_ARB	0x88C1
#define GL_MATRIX2_ARB	0x88C2
#define GL_MATRIX3_ARB	0x88C3
#define GL_MATRIX4_ARB	0x88C4
#define GL_MATRIX5_ARB	0x88C5
#define GL_MATRIX6_ARB	0x88C6
#define GL_MATRIX7_ARB	0x88C7
#define GL_MATRIX8_ARB	0x88C8
#define GL_MATRIX9_ARB	0x88C9
#define GL_MATRIX10_ARB	0x88CA
#define GL_MATRIX11_ARB	0x88CB
#define GL_MATRIX12_ARB	0x88CC
#define GL_MATRIX13_ARB	0x88CD
#define GL_MATRIX14_ARB	0x88CE
#define GL_MATRIX15_ARB	0x88CF
#define GL_MATRIX16_ARB	0x88D0
#define GL_MATRIX17_ARB	0x88D1
#define GL_MATRIX18_ARB	0x88D2
#define GL_MATRIX19_ARB	0x88D3
#define GL_MATRIX20_ARB	0x88D4
#define GL_MATRIX21_ARB	0x88D5
#define GL_MATRIX22_ARB	0x88D6
#define GL_MATRIX23_ARB	0x88D7
#define GL_MATRIX24_ARB	0x88D8
#define GL_MATRIX25_ARB	0x88D9
#define GL_MATRIX26_ARB	0x88DA
#define GL_MATRIX27_ARB	0x88DB
#define GL_MATRIX28_ARB	0x88DC
#define GL_MATRIX29_ARB	0x88DD
#define GL_MATRIX30_ARB	0x88DE
#define GL_MATRIX31_ARB	0x88DF
#define GL_STREAM_DRAW	0x88E0
#define GL_STREAM_DRAW_ARB	0x88E0
#define GL_STREAM_READ	0x88E1
#define GL_STREAM_READ_ARB	0x88E1
#define GL_STREAM_COPY	0x88E2
#define GL_STREAM_COPY_ARB	0x88E2
#define GL_STATIC_DRAW	0x88E4
#define GL_STATIC_DRAW_ARB	0x88E4
#define GL_STATIC_READ	0x88E5
#define GL_STATIC_READ_ARB	0x88E5
#define GL_STATIC_COPY	0x88E6
#define GL_STATIC_COPY_ARB	0x88E6
#define GL_DYNAMIC_DRAW	0x88E8
#define GL_DYNAMIC_DRAW_ARB	0x88E8
#define GL_DYNAMIC_READ	0x88E9
#define GL_DYNAMIC_READ_ARB	0x88E9
#define GL_DYNAMIC_COPY	0x88EA
#define GL_DYNAMIC_COPY_ARB	0x88EA
#define GL_PIXEL_PACK_BUFFER_ARB	0x88EB
#define GL_PIXEL_PACK_BUFFER_EXT	0x88EB
#define GL_PIXEL_UNPACK_BUFFER_ARB	0x88EC
#define GL_PIXEL_UNPACK_BUFFER_EXT	0x88EC
#define GL_PIXEL_PACK_BUFFER_BINDING_ARB	0x88ED
#define GL_PIXEL_PACK_BUFFER_BINDING_EXT	0x88ED
#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB	0x88EF
#define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT	0x88EF
#define GL_STENCIL_TEST_TWO_SIDE_EXT	0x8910
#define GL_ACTIVE_STENCIL_FACE_EXT	0x8911
#define GL_MIRROR_CLAMP_TO_BORDER_EXT	0x8912
#define GL_SAMPLES_PASSED	0x8914
#define GL_SAMPLES_PASSED_ARB	0x8914
#define GL_CLAMP_VERTEX_COLOR_ARB	0x891A
#define GL_CLAMP_FRAGMENT_COLOR_ARB	0x891B
#define GL_CLAMP_READ_COLOR_ARB	0x891C
#define GL_FIXED_ONLY_ARB	0x891D
#define GL_FRAGMENT_SHADER_ATI	0x8920
#define GL_REG_0_ATI	0x8921
#define GL_REG_1_ATI	0x8922
#define GL_REG_2_ATI	0x8923
#define GL_REG_3_ATI	0x8924
#define GL_REG_4_ATI	0x8925
#define GL_REG_5_ATI	0x8926
#define GL_REG_6_ATI	0x8927
#define GL_REG_7_ATI	0x8928
#define GL_REG_8_ATI	0x8929
#define GL_REG_9_ATI	0x892A
#define GL_REG_10_ATI	0x892B
#define GL_REG_11_ATI	0x892C
#define GL_REG_12_ATI	0x892D
#define GL_REG_13_ATI	0x892E
#define GL_REG_14_ATI	0x892F
#define GL_REG_15_ATI	0x8930
#define GL_REG_16_ATI	0x8931
#define GL_REG_17_ATI	0x8932
#define GL_REG_18_ATI	0x8933
#define GL_REG_19_ATI	0x8934
#define GL_REG_20_ATI	0x8935
#define GL_REG_21_ATI	0x8936
#define GL_REG_22_ATI	0x8937
#define GL_REG_23_ATI	0x8938
#define GL_REG_24_ATI	0x8939
#define GL_REG_25_ATI	0x893A
#define GL_REG_26_ATI	0x893B
#define GL_REG_27_ATI	0x893C
#define GL_REG_28_ATI	0x893D
#define GL_REG_29_ATI	0x893E
#define GL_REG_30_ATI	0x893F
#define GL_REG_31_ATI	0x8940
#define GL_CON_0_ATI	0x8941
#define GL_CON_1_ATI	0x8942
#define GL_CON_2_ATI	0x8943
#define GL_CON_3_ATI	0x8944
#define GL_CON_4_ATI	0x8945
#define GL_CON_5_ATI	0x8946
#define GL_CON_6_ATI	0x8947
#define GL_CON_7_ATI	0x8948
#define GL_CON_8_ATI	0x8949
#define GL_CON_9_ATI	0x894A
#define GL_CON_10_ATI	0x894B
#define GL_CON_11_ATI	0x894C
#define GL_CON_12_ATI	0x894D
#define GL_CON_13_ATI	0x894E
#define GL_CON_14_ATI	0x894F
#define GL_CON_15_ATI	0x8950
#define GL_CON_16_ATI	0x8951
#define GL_CON_17_ATI	0x8952
#define GL_CON_18_ATI	0x8953
#define GL_CON_19_ATI	0x8954
#define GL_CON_20_ATI	0x8955
#define GL_CON_21_ATI	0x8956
#define GL_CON_22_ATI	0x8957
#define GL_CON_23_ATI	0x8958
#define GL_CON_24_ATI	0x8959
#define GL_CON_25_ATI	0x895A
#define GL_CON_26_ATI	0x895B
#define GL_CON_27_ATI	0x895C
#define GL_CON_28_ATI	0x895D
#define GL_CON_29_ATI	0x895E
#define GL_CON_30_ATI	0x895F
#define GL_CON_31_ATI	0x8960
#define GL_MOV_ATI	0x8961
#define GL_ADD_ATI	0x8963
#define GL_MUL_ATI	0x8964
#define GL_SUB_ATI	0x8965
#define GL_DOT3_ATI	0x8966
#define GL_DOT4_ATI	0x8967
#define GL_MAD_ATI	0x8968
#define GL_LERP_ATI	0x8969
#define GL_CND_ATI	0x896A
#define GL_CND0_ATI	0x896B
#define GL_DOT2_ADD_ATI	0x896C
#define GL_SECONDARY_INTERPOLATOR_ATI	0x896D
#define GL_NUM_FRAGMENT_REGISTERS_ATI	0x896E
#define GL_NUM_FRAGMENT_CONSTANTS_ATI	0x896F
#define GL_NUM_PASSES_ATI	0x8970
#define GL_NUM_INSTRUCTIONS_PER_PASS_ATI	0x8971
#define GL_NUM_INSTRUCTIONS_TOTAL_ATI	0x8972
#define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI	0x8973
#define GL_NUM_LOOPBACK_COMPONENTS_ATI	0x8974
#define GL_COLOR_ALPHA_PAIRING_ATI	0x8975
#define GL_SWIZZLE_STR_ATI	0x8976
#define GL_SWIZZLE_STQ_ATI	0x8977
#define GL_SWIZZLE_STR_DR_ATI	0x8978
#define GL_SWIZZLE_STQ_DQ_ATI	0x8979
#define GL_SWIZZLE_STRQ_ATI	0x897A
#define GL_SWIZZLE_STRQ_DQ_ATI	0x897B
#define GL_FRAGMENT_SHADER	0x8B30
#define GL_FRAGMENT_SHADER_ARB	0x8B30
#define GL_VERTEX_SHADER	0x8B31
#define GL_VERTEX_SHADER_ARB	0x8B31
#define GL_PROGRAM_OBJECT_ARB	0x8B40
#define GL_SHADER_OBJECT_ARB	0x8B48
#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS	0x8B49
#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB	0x8B49
#define GL_MAX_VERTEX_UNIFORM_COMPONENTS	0x8B4A
#define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB	0x8B4A
#define GL_MAX_VARYING_FLOATS	0x8B4B
#define GL_MAX_VARYING_FLOATS_ARB	0x8B4B
#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS	0x8B4C
#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB	0x8B4C
#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS	0x8B4D
#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB	0x8B4D
#define GL_OBJECT_TYPE_ARB	0x8B4E
#define GL_OBJECT_SUBTYPE_ARB	0x8B4F
#define GL_SHADER_TYPE	0x8B4F
#define GL_FLOAT_VEC2	0x8B50
#define GL_FLOAT_VEC2_ARB	0x8B50
#define GL_FLOAT_VEC3	0x8B51
#define GL_FLOAT_VEC3_ARB	0x8B51
#define GL_FLOAT_VEC4	0x8B52
#define GL_FLOAT_VEC4_ARB	0x8B52
#define GL_INT_VEC2	0x8B53
#define GL_INT_VEC2_ARB	0x8B53
#define GL_INT_VEC3	0x8B54
#define GL_INT_VEC3_ARB	0x8B54
#define GL_INT_VEC4	0x8B55
#define GL_INT_VEC4_ARB	0x8B55
#define GL_BOOL	0x8B56
#define GL_BOOL_ARB	0x8B56
#define GL_BOOL_VEC2	0x8B57
#define GL_BOOL_VEC2_ARB	0x8B57
#define GL_BOOL_VEC3	0x8B58
#define GL_BOOL_VEC3_ARB	0x8B58
#define GL_BOOL_VEC4	0x8B59
#define GL_BOOL_VEC4_ARB	0x8B59
#define GL_FLOAT_MAT2	0x8B5A
#define GL_FLOAT_MAT2_ARB	0x8B5A
#define GL_FLOAT_MAT3	0x8B5B
#define GL_FLOAT_MAT3_ARB	0x8B5B
#define GL_FLOAT_MAT4	0x8B5C
#define GL_FLOAT_MAT4_ARB	0x8B5C
#define GL_SAMPLER_1D	0x8B5D
#define GL_SAMPLER_1D_ARB	0x8B5D
#define GL_SAMPLER_2D	0x8B5E
#define GL_SAMPLER_2D_ARB	0x8B5E
#define GL_SAMPLER_3D	0x8B5F
#define GL_SAMPLER_3D_ARB	0x8B5F
#define GL_SAMPLER_CUBE	0x8B60
#define GL_SAMPLER_CUBE_ARB	0x8B60
#define GL_SAMPLER_1D_SHADOW	0x8B61
#define GL_SAMPLER_1D_SHADOW_ARB	0x8B61
#define GL_SAMPLER_2D_SHADOW	0x8B62
#define GL_SAMPLER_2D_SHADOW_ARB	0x8B62
#define GL_SAMPLER_2D_RECT_ARB	0x8B63
#define GL_SAMPLER_2D_RECT_SHADOW_ARB	0x8B64
#define GL_DELETE_STATUS	0x8B80
#define GL_OBJECT_DELETE_STATUS_ARB	0x8B80
#define GL_COMPILE_STATUS	0x8B81
#define GL_OBJECT_COMPILE_STATUS_ARB	0x8B81
#define GL_LINK_STATUS	0x8B82
#define GL_OBJECT_LINK_STATUS_ARB	0x8B82
#define GL_OBJECT_VALIDATE_STATUS_ARB	0x8B83
#define GL_VALIDATE_STATUS	0x8B83
#define GL_INFO_LOG_LENGTH	0x8B84
#define GL_OBJECT_INFO_LOG_LENGTH_ARB	0x8B84
#define GL_ATTACHED_SHADERS	0x8B85
#define GL_OBJECT_ATTACHED_OBJECTS_ARB	0x8B85
#define GL_ACTIVE_UNIFORMS	0x8B86
#define GL_OBJECT_ACTIVE_UNIFORMS_ARB	0x8B86
#define GL_ACTIVE_UNIFORM_MAX_LENGTH	0x8B87
#define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB	0x8B87
#define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB	0x8B88
#define GL_SHADER_SOURCE_LENGTH	0x8B88
#define GL_ACTIVE_ATTRIBUTES	0x8B89
#define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB	0x8B89
#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH	0x8B8A
#define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB	0x8B8A
#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT	0x8B8B
#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB	0x8B8B
#define GL_SHADING_LANGUAGE_VERSION	0x8B8C
#define GL_SHADING_LANGUAGE_VERSION_ARB	0x8B8C
#define GL_CURRENT_PROGRAM	0x8B8D
#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES	0x8B9A
#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES	0x8B9B
#define GL_TEXTURE_RED_TYPE_ARB	0x8C10
#define GL_TEXTURE_GREEN_TYPE_ARB	0x8C11
#define GL_TEXTURE_BLUE_TYPE_ARB	0x8C12
#define GL_TEXTURE_ALPHA_TYPE_ARB	0x8C13
#define GL_TEXTURE_LUMINANCE_TYPE_ARB	0x8C14
#define GL_TEXTURE_INTENSITY_TYPE_ARB	0x8C15
#define GL_TEXTURE_DEPTH_TYPE_ARB	0x8C16
#define GL_UNSIGNED_NORMALIZED_ARB	0x8C17
#define GL_POINT_SPRITE_COORD_ORIGIN	0x8CA0
#define GL_LOWER_LEFT	0x8CA1
#define GL_UPPER_LEFT	0x8CA2
#define GL_STENCIL_BACK_REF	0x8CA3
#define GL_STENCIL_BACK_VALUE_MASK	0x8CA4
#define GL_STENCIL_BACK_WRITEMASK	0x8CA5
#define GL_FRAMEBUFFER_BINDING_EXT	0x8CA6
#define GL_RENDERBUFFER_BINDING_EXT	0x8CA7
#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT	0x8CD0
#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT	0x8CD1
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT	0x8CD2
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT	0x8CD3
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT	0x8CD4
#define GL_FRAMEBUFFER_COMPLETE_EXT	0x8CD5
#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT	0x8CD6
#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT	0x8CD7
#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT	0x8CD9
#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT	0x8CDA
#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT	0x8CDB
#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT	0x8CDC
#define GL_FRAMEBUFFER_UNSUPPORTED_EXT	0x8CDD
#define GL_MAX_COLOR_ATTACHMENTS_EXT	0x8CDF
#define GL_COLOR_ATTACHMENT0_EXT	0x8CE0
#define GL_COLOR_ATTACHMENT1_EXT	0x8CE1
#define GL_COLOR_ATTACHMENT2_EXT	0x8CE2
#define GL_COLOR_ATTACHMENT3_EXT	0x8CE3
#define GL_COLOR_ATTACHMENT4_EXT	0x8CE4
#define GL_COLOR_ATTACHMENT5_EXT	0x8CE5
#define GL_COLOR_ATTACHMENT6_EXT	0x8CE6
#define GL_COLOR_ATTACHMENT7_EXT	0x8CE7
#define GL_COLOR_ATTACHMENT8_EXT	0x8CE8
#define GL_COLOR_ATTACHMENT9_EXT	0x8CE9
#define GL_COLOR_ATTACHMENT10_EXT	0x8CEA
#define GL_COLOR_ATTACHMENT11_EXT	0x8CEB
#define GL_COLOR_ATTACHMENT12_EXT	0x8CEC
#define GL_COLOR_ATTACHMENT13_EXT	0x8CED
#define GL_COLOR_ATTACHMENT14_EXT	0x8CEE
#define GL_COLOR_ATTACHMENT15_EXT	0x8CEF
#define GL_DEPTH_ATTACHMENT_EXT	0x8D00
#define GL_STENCIL_ATTACHMENT_EXT	0x8D20
#define GL_FRAMEBUFFER_EXT	0x8D40
#define GL_RENDERBUFFER_EXT	0x8D41
#define GL_RENDERBUFFER_WIDTH_EXT	0x8D42
#define GL_RENDERBUFFER_HEIGHT_EXT	0x8D43
#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT	0x8D44
#define GL_STENCIL_INDEX1_EXT	0x8D46
#define GL_STENCIL_INDEX4_EXT	0x8D47
#define GL_STENCIL_INDEX8_EXT	0x8D48
#define GL_STENCIL_INDEX16_EXT	0x8D49
#define GL_RENDERBUFFER_RED_SIZE_EXT	0x8D50
#define GL_RENDERBUFFER_GREEN_SIZE_EXT	0x8D51
#define GL_RENDERBUFFER_BLUE_SIZE_EXT	0x8D52
#define GL_RENDERBUFFER_ALPHA_SIZE_EXT	0x8D53
#define GL_RENDERBUFFER_DEPTH_SIZE_EXT	0x8D54
#define GL_RENDERBUFFER_STENCIL_SIZE_EXT	0x8D55
#define GL_3DFX_multisample	1
#define GL_3DFX_tbuffer	1
#define GL_3DFX_texture_compression_FXT1	1
#define GL_ARB_color_buffer_float	1
#define GL_ARB_depth_texture	1
#define GL_ARB_draw_buffers	1
#define GL_ARB_fragment_program	1
#define GL_ARB_fragment_program_shadow	1
#define GL_ARB_fragment_shader	1
#define GL_ARB_half_float_pixel	1
#define GL_ARB_matrix_palette	1
#define GL_ARB_multisample	1
#define GL_ARB_occlusion_query	1
#define GL_ARB_pixel_buffer_object	1
#define GL_ARB_point_parameters	1
#define GL_ARB_point_sprite	1
#define GL_ARB_shader_objects	1
#define GL_ARB_shading_language_100	1
#define GL_ARB_shadow	1
#define GL_ARB_shadow_ambient	1
#define GL_ARB_texture_border_clamp	1
#define GL_ARB_texture_compression	1
#define GL_ARB_texture_cube_map	1
#define GL_ARB_texture_env_add	1
#define GL_ARB_texture_env_combine	1
#define GL_ARB_texture_env_crossbar	1
#define GL_ARB_texture_env_dot3	1
#define GL_ARB_texture_float	1
#define GL_ARB_texture_mirrored_repeat	1
#define GL_ARB_texture_non_power_of_two	1
#define GL_ARB_texture_rectangle	1
#define GL_ARB_transpose_matrix	1
#define GL_ARB_vertex_blend	1
#define GL_ARB_vertex_buffer_object	1
#define GL_ARB_vertex_shader	1
#define GL_ARB_window_pos	1
#define GL_ATI_draw_buffers	1
#define GL_ATI_element_array	1
#define GL_ATI_envmap_bumpmap	1
#define GL_ATI_fragment_shader	1
#define GL_ATI_map_object_buffer	1
#define GL_ATI_pixel_format_float	1
#define GL_ATI_pn_triangles	1
#define GL_ATI_separate_stencil	1
#define GL_ATI_text_fragment_shader	1
#define GL_ATI_texture_env_combine3	1
#define GL_ATI_texture_float	1
#define GL_ATI_texture_mirror_once	1
#define GL_ATI_vertex_array_object	1
#define GL_ATI_vertex_attrib_array_object	1
#define GL_ATI_vertex_streams	1
#define GL_EXT_422_pixels	1
#define GL_EXT_abgr	1
#define GL_EXT_bgra	1
#define GL_EXT_blend_color	1
#define GL_EXT_blend_equation_separate	1
#define GL_EXT_blend_func_separate	1
#define GL_EXT_blend_logic_op	1
#define GL_EXT_blend_minmax	1
#define GL_EXT_blend_subtract	1
#define GL_EXT_clip_volume_hint	1
#define GL_EXT_cmyka	1
#define GL_EXT_color_subtable	1
#define GL_EXT_compiled_vertex_array	1
#define GL_EXT_convolution	1
#define GL_EXT_coordinate_frame	1
#define GL_EXT_copy_texture	1
#define GL_EXT_cull_vertex	1
#define GL_EXT_depth_bounds_test	1
#define GL_EXT_draw_range_elements	1
#define GL_EXT_fog_coord	1
#define GL_EXT_histogram	1
#define GL_EXT_index_array_formats	1
#define GL_EXT_index_func	1
#define GL_EXT_index_material	1
#define GL_EXT_index_texture	1
#define GL_EXT_light_texture	1
#define GL_EXT_misc_attribute	1
#define GL_EXT_multi_draw_arrays	1
#define GL_EXT_multisample	1
#define GL_EXT_packed_pixels	1
#define GL_EXT_paletted_texture	1
#define GL_EXT_pixel_buffer_object	1
#define GL_EXT_pixel_transform	1
#define GL_EXT_pixel_transform_color_table	1
#define GL_EXT_point_parameters	1
#define GL_EXT_polygon_offset	1
#define GL_EXT_rescale_normal	1
#define GL_EXT_secondary_color	1
#define GL_EXT_separate_specular_color	1
#define GL_EXT_shadow_funcs	1
#define GL_EXT_shared_texture_palette	1
#define GL_EXT_stencil_two_side	1
#define GL_EXT_stencil_wrap	1
#define GL_EXT_subtexture	1
#define GL_EXT_texture	1
#define GL_EXT_texture3D	1
#define GL_EXT_texture_env_add	1
#define GL_EXT_texture_env_combine	1
#define GL_EXT_texture_env_dot3	1
#define GL_EXT_texture_filter_anisotropic	1
#define GL_EXT_texture_lod_bias	1
#define GL_EXT_texture_mirror_clamp	1
#define GL_EXT_texture_object	1
#define GL_EXT_texture_perturb_normal	1
#define GL_EXT_vertex_array	1
#define GL_EXT_vertex_shader	1
#define GL_EXT_vertex_weighting	1
#define GL_GREMEDY_string_marker	1
#define GL_HP_convolution_border_modes	1
#define GL_HP_image_transform	1
#define GL_HP_occlusion_test	1
#define GL_HP_texture_lighting	1
#define GL_IBM_cull_vertex	1
#define GL_IBM_multimode_draw_arrays	1
#define GL_IBM_rasterpos_clip	1
#define GL_IBM_vertex_array_lists	1
#define GL_INGR_blend_func_separate	1
#define GL_INGR_color_clamp	1
#define GL_INGR_interlace_read	1
#define GL_INTEL_parallel_arrays	1
#define GL_OES_read_format	1
#define GL_PGI_misc_hints	1
#define GL_PGI_vertex_hints	1
#define GL_REND_screen_coordinates	1
#define GL_S3_s3tc	1
#define GL_SUNX_constant_data	1
#define GL_SUN_convolution_border_modes	1
#define GL_SUN_global_alpha	1
#define GL_SUN_mesh_array	1
#define GL_SUN_slice_accum	1
#define GL_SUN_triangle_list	1
#define GL_SUN_vertex	1
#define GL_WIN_phong_shading	1
#define GL_WIN_specular_fog	1
#define GL_CULL_VERTEX_IBM	103050
#define GL_VERTEX_ARRAY_LIST_IBM	103070
#define GL_NORMAL_ARRAY_LIST_IBM	103071
#define GL_COLOR_ARRAY_LIST_IBM	103072
#define GL_INDEX_ARRAY_LIST_IBM	103073
#define GL_TEXTURE_COORD_ARRAY_LIST_IBM	103074
#define GL_EDGE_FLAG_ARRAY_LIST_IBM	103075
#define GL_FOG_COORDINATE_ARRAY_LIST_IBM	103076
#define GL_SECONDARY_COLOR_ARRAY_LIST_IBM	103077
#define GL_VERTEX_ARRAY_LIST_STRIDE_IBM	103080
#define GL_NORMAL_ARRAY_LIST_STRIDE_IBM	103081
#define GL_COLOR_ARRAY_LIST_STRIDE_IBM	103082
#define GL_INDEX_ARRAY_LIST_STRIDE_IBM	103083
#define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM	103084
#define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM	103085
#define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM	103086
#define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM	103087
#define GL_MODELVIEW0_EXT	GL_MODELVIEW
#define GL_MODELVIEW0_MATRIX_EXT	GL_MODELVIEW_MATRIX
#define GL_MODELVIEW0_STACK_DEPTH_EXT	GL_MODELVIEW_STACK_DEPTH

typedef unsigned int GLhandleARB;
typedef ptrdiff_t GLintptr;
typedef char GLchar;
typedef char GLcharARB;
typedef ptrdiff_t GLsizeiptr;
typedef ptrdiff_t GLsizeiptrARB;
typedef long int GLintptrARB;

7.2.3. GL/glx.h


#define GLX_EXTENSION_NAME	"GLX"
#define GLX_FRONT_LEFT_BUFFER_BIT	0x00000001
#define GLX_RGBA_BIT	0x00000001
#define GLX_WINDOW_BIT	0x00000001
#define GLX_COLOR_INDEX_BIT	0x00000002
#define GLX_FRONT_RIGHT_BUFFER_BIT	0x00000002
#define GLX_PIXMAP_BIT	0x00000002
#define GLX_BACK_LEFT_BUFFER_BIT	0x00000004
#define GLX_PBUFFER_BIT	0x00000004
#define GLX_BACK_RIGHT_BUFFER_BIT	0x00000008
#define GLX_AUX_BUFFERS_BIT	0x00000010
#define GLX_DEPTH_BUFFER_BIT	0x00000020
#define GLX_STENCIL_BUFFER_BIT	0x00000040
#define GLX_ACCUM_BUFFER_BIT	0x00000080
#define GLX_PBUFFER_CLOBBER_MASK	0x08000000
#define GLX_SAMPLE_BUFFERS	0x186a0
#define GLX_SAMPLES	0x186a1
#define GLX_CONFIG_CAVEAT	0x20
#define GLX_X_VISUAL_TYPE	0x22
#define GLX_TRANSPARENT_TYPE	0x23
#define GLX_TRANSPARENT_INDEX_VALUE	0x24
#define GLX_TRANSPARENT_RED_VALUE	0x25
#define GLX_TRANSPARENT_GREEN_VALUE	0x26
#define GLX_TRANSPARENT_BLUE_VALUE	0x27
#define GLX_TRANSPARENT_ALPHA_VALUE	0x28
#define GLX_NONE	0x8000
#define GLX_SLOW_CONFIG	0x8001
#define GLX_TRUE_COLOR	0x8002
#define GLX_DIRECT_COLOR	0x8003
#define GLX_PSEUDO_COLOR	0x8004
#define GLX_STATIC_COLOR	0x8005
#define GLX_GRAY_SCALE	0x8006
#define GLX_STATIC_GRAY	0x8007
#define GLX_TRANSPARENT_RGB	0x8008
#define GLX_TRANSPARENT_INDEX	0x8009
#define GLX_VISUAL_ID	0x800B
#define GLX_SCREEN	0x800C
#define GLX_NON_CONFORMANT_CONFIG	0x800D
#define GLX_DRAWABLE_TYPE	0x8010
#define GLX_RENDER_TYPE	0x8011
#define GLX_X_RENDERABLE	0x8012
#define GLX_FBCONFIG_ID	0x8013
#define GLX_RGBA_TYPE	0x8014
#define GLX_COLOR_INDEX_TYPE	0x8015
#define GLX_MAX_PBUFFER_WIDTH	0x8016
#define GLX_MAX_PBUFFER_HEIGHT	0x8017
#define GLX_MAX_PBUFFER_PIXELS	0x8018
#define GLX_PRESERVED_CONTENTS	0x801B
#define GLX_LARGEST_PBUFFER	0x801C
#define GLX_WIDTH	0x801D
#define GLX_HEIGHT	0x801E
#define GLX_EVENT_MASK	0x801F
#define GLX_DAMAGED	0x8020
#define GLX_SAVED	0x8021
#define GLX_WINDOW	0x8022
#define GLX_PBUFFER	0x8023
#define GLX_PBUFFER_HEIGHT	0x8040
#define GLX_PBUFFER_WIDTH	0x8041
#define GLX_DONT_CARE	0xFFFFFFFF
#define GLX_ARB_get_proc_address	1
#define GLX_ARB_render_texture	1
#define GLX_BAD_SCREEN	1
#define GLX_EXT_texture_from_pixmap	1
#define GLX_USE_GL	1
#define GLX_VENDOR	1
#define GLX_VERSION_1_1	1
#define GLX_VERSION_1_2	1
#define GLX_VERSION_1_3	1
#define GLX_VERSION_1_4	1
#define GLX_BLUE_SIZE	10
#define GLX_ALPHA_SIZE	11
#define GLX_DEPTH_SIZE	12
#define GLX_STENCIL_SIZE	13
#define GLX_ACCUM_RED_SIZE	14
#define GLX_ACCUM_GREEN_SIZE	15
#define GLX_ACCUM_BLUE_SIZE	16
#define GLX_ACCUM_ALPHA_SIZE	17
#define GLX_BAD_ATTRIBUTE	2
#define GLX_BUFFER_SIZE	2
#define GLX_VERSION	2
#define GLX_EXTENSIONS	3
#define GLX_LEVEL	3
#define GLX_NO_EXTENSION	3
#define GLX_BAD_VISUAL	4
#define GLX_RGBA	4
#define GLX_BAD_CONTEXT	5
#define GLX_DOUBLEBUFFER	5
#define GLX_BAD_VALUE	6
#define GLX_GLXEXT_VERSION	6
#define GLX_STEREO	6
#define GLX_AUX_BUFFERS	7
#define GLX_BAD_ENUM	7
#define GLX_RED_SIZE	8
#define GLX_GREEN_SIZE	9

typedef struct __GLXcontextRec *GLXContext;
typedef struct __GLXFBConfigRec *GLXFBConfig;
typedef XID GLXDrawable;
typedef union __GLXEvent {
    GLXPbufferClobberEvent glxpbufferclobber;
    long int pad;
} GLXEvent;
typedef XID GLXContextID;
typedef XID GLXPixmap;
typedef struct {
    int event_type;
    int draw_type;
    unsigned long int serial;
    int send_event;
    Display *display;
    GLXDrawable drawable;
    unsigned int buffer_mask;
    unsigned int aux_buffer;
    int x;
    int y;
    int width;
    int height;
    int count;
} GLXPbufferClobberEvent;
typedef XID GLXPbuffer;
typedef XID GLXWindow;
typedef XID GLXFBConfigID;
typedef void (*__GLXextFuncPtr) (void);
extern GLXFBConfig *glXChooseFBConfig(Display * dpy, int screen,
				      const int *attribList, int *nitems);
extern XVisualInfo *glXChooseVisual(Display * dpy, int screen,
				    int *attribList);
extern void glXCopyContext(Display * dpy, struct __GLXcontextRec *src,
			   struct __GLXcontextRec *dst,
			   long unsigned int mask);
extern GLXContext glXCreateContext(Display * dpy, XVisualInfo * vis,
				   struct __GLXcontextRec *shareList,
				   int direct);
extern GLXPixmap glXCreateGLXPixmap(Display * dpy, XVisualInfo * vis,
				    Pixmap pixmap);
extern GLXContext glXCreateNewContext(Display * dpy,
				      struct __GLXFBConfigRec *config,
				      int renderType,
				      struct __GLXcontextRec *shareList,
				      int direct);
extern GLXPbuffer glXCreatePbuffer(Display * dpy,
				   struct __GLXFBConfigRec *config,
				   const int *attribList);
extern GLXPixmap glXCreatePixmap(Display * dpy,
				 struct __GLXFBConfigRec *config,
				 Pixmap pixmap, const int *attribList);
extern GLXWindow glXCreateWindow(Display * dpy,
				 struct __GLXFBConfigRec *config,
				 Window win, const int *attribList);
extern void glXDestroyContext(Display * dpy, struct __GLXcontextRec *ctx);
extern void glXDestroyGLXPixmap(Display * dpy, GLXPixmap pix);
extern void glXDestroyPbuffer(Display * dpy, GLXPbuffer pbuf);
extern void glXDestroyPixmap(Display * dpy, GLXPixmap pixmap);
extern void glXDestroyWindow(Display * dpy, GLXWindow window);
extern const char *glXGetClientString(Display * dpy, int name);
extern int glXGetConfig(Display * dpy, XVisualInfo * vis, int attrib,
			int *value);
extern GLXContext glXGetCurrentContext(void);
extern Display *glXGetCurrentDisplay(void);
extern GLXDrawable glXGetCurrentDrawable(void);
extern GLXDrawable glXGetCurrentReadDrawable(void);
extern int glXGetFBConfigAttrib(Display * dpy, GLXFBConfig config,
				int attribute, int *value);
extern GLXFBConfig *glXGetFBConfigs(Display * dpy, int screen,
				    int *nelements);
extern void glXGetSelectedEvent(Display * dpy, GLXDrawable drawable,
				unsigned long int *mask);
extern XVisualInfo *glXGetVisualFromFBConfig(Display * dpy,
					     GLXFBConfig config);
extern int glXIsDirect(Display * dpy, struct __GLXcontextRec *ctx);
extern int glXMakeContextCurrent(Display * dpy, GLXDrawable draw,
				 GLXDrawable read, GLXContext ctx);
extern int glXMakeCurrent(Display * dpy, GLXDrawable drawable,
			  struct __GLXcontextRec *ctx);
extern int glXQueryContext(Display * dpy, GLXContext ctx, int attribute,
			   int *value);
extern void glXQueryDrawable(Display * dpy, GLXDrawable draw,
			     int attribute, unsigned int *value);
extern int glXQueryExtension(Display * dpy, int *errorBase,
			     int *eventBase);
extern const char *glXQueryExtensionsString(Display * dpy, int screen);
extern const char *glXQueryServerString(Display * dpy, int screen,
					int name);
extern int glXQueryVersion(Display * dpy, int *major, int *minor);
extern void glXSelectEvent(Display * dpy, GLXDrawable drawable,
			   long unsigned int mask);
extern void glXSwapBuffers(Display * dpy, GLXDrawable drawable);
extern void glXUseXFont(Font font, int first, int count, int listBase);
extern void glXWaitGL(void);
extern void glXWaitX(void);

7.2.4. GL/glxext.h


#define GLX_VISUAL_CAVEAT_EXT	0x20
#define GLX_X_VISUAL_TYPE_EXT	0x22
#define GLX_TRANSPARENT_TYPE_EXT	0x23
#define GLX_TRANSPARENT_INDEX_VALUE_EXT	0x24
#define GLX_TRANSPARENT_RED_VALUE_EXT	0x25
#define GLX_TRANSPARENT_GREEN_VALUE_EXT	0x26
#define GLX_TRANSPARENT_BLUE_VALUE_EXT	0x27
#define GLX_TRANSPARENT_ALPHA_VALUE_EXT	0x28
#define GLX_NONE_EXT	0x8000
#define GLX_SLOW_VISUAL_EXT	0x8001
#define GLX_TRUE_COLOR_EXT	0x8002
#define GLX_DIRECT_COLOR_EXT	0x8003
#define GLX_PSEUDO_COLOR_EXT	0x8004
#define GLX_STATIC_COLOR_EXT	0x8005
#define GLX_GRAY_SCALE_EXT	0x8006
#define GLX_STATIC_GRAY_EXT	0x8007
#define GLX_TRANSPARENT_RGB_EXT	0x8008
#define GLX_TRANSPARENT_INDEX_EXT	0x8009
#define GLX_SHARE_CONTEXT_EXT	0x800A
#define GLX_VISUAL_ID_EXT	0x800B
#define GLX_SCREEN_EXT	0x800C
#define GLX_NON_CONFORMANT_VISUAL_EXT	0x800D
#define GLX_SAMPLE_BUFFERS_3DFX	0x8050
#define GLX_SAMPLES_3DFX	0x8051
#define GLX_ARB_multisample	1
#define GLX_EXT_import_context	1
#define GLX_EXT_visual_info	1
#define GLX_EXT_visual_rating	1
#define GLX_SUN_get_transparent_index	1
#define GLX_SAMPLE_BUFFERS_ARB	100000
#define GLX_SAMPLES_ARB	100001

extern void glXFreeContextEXT(Display *, GLXContext);
extern GLXContextID glXGetContextIDEXT(GLXContext);
extern __GLXextFuncPtr glXGetProcAddressARB(const GLubyte * procName);
extern GLXContext glXImportContextEXT(Display *, GLXContextID);
extern int glXQueryContextInfoEXT(Display *, GLXContext, int, int *);

7.3. Interfaces for libGLU

Table 7-4 defines the library name and shared object name for the libGLU library

Table 7-4. libGLU Definition

Library:libGLU
SONAME:libGLU.so.1

The behavior of the interfaces in this library is specified by the following specifications:

[GLU] OpenGL Utilities


7.3.1. GL Utilities


7.3.1.1. Interfaces for GL Utilities

An LSB conforming implementation shall provide the generic functions for GL Utilities specified in Table 7-5, with the full mandatory functionality as described in the referenced underlying specification.

Table 7-5. libGLU - GL Utilities Function Interfaces

gluBeginCurve [GLU]gluBeginPolygon [GLU]gluBeginSurface [GLU]gluBeginTrim [GLU]
gluBuild1DMipmapLevels [GLU]gluBuild1DMipmaps [GLU]gluBuild2DMipmapLevels [GLU]gluBuild2DMipmaps [GLU]
gluBuild3DMipmapLevels [GLU]gluBuild3DMipmaps [GLU]gluCheckExtension [GLU]gluCylinder [GLU]
gluDeleteNurbsRenderer [GLU]gluDeleteQuadric [GLU]gluDeleteTess [GLU]gluDisk [GLU]
gluEndCurve [GLU]gluEndPolygon [GLU]gluEndSurface [GLU]gluEndTrim [GLU]
gluErrorString [GLU]gluGetNurbsProperty [GLU]gluGetString [GLU]gluGetTessProperty [GLU]
gluLoadSamplingMatrices [GLU]gluLookAt [GLU]gluNewNurbsRenderer [GLU]gluNewQuadric [GLU]
gluNewTess [GLU]gluNextContour [GLU]gluNurbsCallback [GLU]gluNurbsCallbackData [GLU]
gluNurbsCallbackDataEXT [GLU]gluNurbsCurve [GLU]gluNurbsProperty [GLU]gluNurbsSurface [GLU]
gluOrtho2D [GLU]gluPartialDisk [GLU]gluPerspective [GLU]gluPickMatrix [GLU]
gluProject [GLU]gluPwlCurve [GLU]gluQuadricCallback [GLU]gluQuadricDrawStyle [GLU]
gluQuadricNormals [GLU]gluQuadricOrientation [GLU]gluQuadricTexture [GLU]gluScaleImage [GLU]
gluSphere [GLU]gluTessBeginContour [GLU]gluTessBeginPolygon [GLU]gluTessCallback [GLU]
gluTessEndContour [GLU]gluTessEndPolygon [GLU]gluTessNormal [GLU]gluTessProperty [GLU]
gluTessVertex [GLU]gluUnProject [GLU]gluUnProject4 [GLU] 

7.4. Data Definitions for libGLU

This section defines global identifiers and their values that are associated with interfaces contained in libGLU. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.


7.4.1. GL/glu.h


#define GLU_FALSE	0
#define GLU_EXT_nurbs_tessellator	1
#define GLU_EXT_object_space_tess	1
#define GLU_TRUE	1
#define GLU_VERSION_1_1	1
#define GLU_VERSION_1_2	1
#define GLU_VERSION_1_3	1
#define GLU_TESS_MAX_COORD	1.0e150
#define GLU_SMOOTH	100000
#define GLU_FLAT	100001
#define GLU_NONE	100002
#define GLU_POINT	100010
#define GLU_LINE	100011
#define GLU_FILL	100012
#define GLU_SILHOUETTE	100013
#define GLU_OUTSIDE	100020
#define GLU_INSIDE	100021
#define GLU_BEGIN	100100
#define GLU_TESS_BEGIN	100100
#define GLU_TESS_VERTEX	100101
#define GLU_VERTEX	100101
#define GLU_END	100102
#define GLU_TESS_END	100102
#define GLU_ERROR	100103
#define GLU_NURBS_ERROR	100103
#define GLU_TESS_ERROR	100103
#define GLU_EDGE_FLAG	100104
#define GLU_TESS_EDGE_FLAG	100104
#define GLU_TESS_COMBINE	100105
#define GLU_TESS_BEGIN_DATA	100106
#define GLU_TESS_VERTEX_DATA	100107
#define GLU_TESS_END_DATA	100108
#define GLU_TESS_ERROR_DATA	100109
#define GLU_TESS_EDGE_FLAG_DATA	100110
#define GLU_TESS_COMBINE_DATA	100111
#define GLU_CW	100120
#define GLU_CCW	100121
#define GLU_INTERIOR	100122
#define GLU_EXTERIOR	100123
#define GLU_UNKNOWN	100124
#define GLU_TESS_WINDING_ODD	100130
#define GLU_TESS_WINDING_NONZERO	100131
#define GLU_TESS_WINDING_POSITIVE	100132
#define GLU_TESS_WINDING_NEGATIVE	100133
#define GLU_TESS_WINDING_ABS_GEQ_TWO	100134
#define GLU_TESS_WINDING_RULE	100140
#define GLU_TESS_BOUNDARY_ONLY	100141
#define GLU_TESS_TOLERANCE	100142
#define GLU_TESS_ERROR1	100151
#define GLU_TESS_MISSING_BEGIN_POLYGON	100151
#define GLU_TESS_ERROR2	100152
#define GLU_TESS_MISSING_BEGIN_CONTOUR	100152
#define GLU_TESS_ERROR3	100153
#define GLU_TESS_MISSING_END_POLYGON	100153
#define GLU_TESS_ERROR4	100154
#define GLU_TESS_MISSING_END_CONTOUR	100154
#define GLU_TESS_COORD_TOO_LARGE	100155
#define GLU_TESS_ERROR5	100155
#define GLU_TESS_ERROR6	100156
#define GLU_TESS_NEED_COMBINE_CALLBACK	100156
#define GLU_TESS_ERROR7	100157
#define GLU_TESS_ERROR8	100158
#define GLU_NURBS_MODE	100160
#define GLU_NURBS_MODE_EXT	100160
#define GLU_NURBS_TESSELLATOR	100161
#define GLU_NURBS_TESSELLATOR_EXT	100161
#define GLU_NURBS_RENDERER	100162
#define GLU_NURBS_RENDERER_EXT	100162
#define GLU_NURBS_BEGIN	100164
#define GLU_NURBS_BEGIN_EXT	100164
#define GLU_NURBS_VERTEX	100165
#define GLU_NURBS_VERTEX_EXT	100165
#define GLU_NURBS_NORMAL	100166
#define GLU_NURBS_NORMAL_EXT	100166
#define GLU_NURBS_COLOR	100167
#define GLU_NURBS_COLOR_EXT	100167
#define GLU_NURBS_TEXTURE_COORD	100168
#define GLU_NURBS_TEX_COORD_EXT	100168
#define GLU_NURBS_END	100169
#define GLU_NURBS_END_EXT	100169
#define GLU_NURBS_BEGIN_DATA	100170
#define GLU_NURBS_BEGIN_DATA_EXT	100170
#define GLU_NURBS_VERTEX_DATA	100171
#define GLU_NURBS_VERTEX_DATA_EXT	100171
#define GLU_NURBS_NORMAL_DATA	100172
#define GLU_NURBS_NORMAL_DATA_EXT	100172
#define GLU_NURBS_COLOR_DATA	100173
#define GLU_NURBS_COLOR_DATA_EXT	100173
#define GLU_NURBS_TEXTURE_COORD_DATA	100174
#define GLU_NURBS_TEX_COORD_DATA_EXT	100174
#define GLU_NURBS_END_DATA	100175
#define GLU_NURBS_END_DATA_EXT	100175
#define GLU_AUTO_LOAD_MATRIX	100200
#define GLU_CULLING	100201
#define GLU_PARAMETRIC_TOLERANCE	100202
#define GLU_SAMPLING_TOLERANCE	100203
#define GLU_DISPLAY_MODE	100204
#define GLU_SAMPLING_METHOD	100205
#define GLU_U_STEP	100206
#define GLU_V_STEP	100207
#define GLU_OBJECT_PARAMETRIC_ERROR	100208
#define GLU_OBJECT_PARAMETRIC_ERROR_EXT	100208
#define GLU_OBJECT_PATH_LENGTH	100209
#define GLU_OBJECT_PATH_LENGTH_EXT	100209
#define GLU_MAP1_TRIM_2	100210
#define GLU_MAP1_TRIM_3	100211
#define GLU_PATH_LENGTH	100215
#define GLU_PARAMETRIC_ERROR	100216
#define GLU_DOMAIN_DISTANCE	100217
#define GLU_OUTLINE_POLYGON	100240
#define GLU_OUTLINE_PATCH	100241
#define GLU_NURBS_ERROR1	100251
#define GLU_NURBS_ERROR2	100252
#define GLU_NURBS_ERROR3	100253
#define GLU_NURBS_ERROR4	100254
#define GLU_NURBS_ERROR5	100255
#define GLU_NURBS_ERROR6	100256
#define GLU_NURBS_ERROR7	100257
#define GLU_NURBS_ERROR8	100258
#define GLU_NURBS_ERROR9	100259
#define GLU_NURBS_ERROR10	100260
#define GLU_NURBS_ERROR11	100261
#define GLU_NURBS_ERROR12	100262
#define GLU_NURBS_ERROR13	100263
#define GLU_NURBS_ERROR14	100264
#define GLU_NURBS_ERROR15	100265
#define GLU_NURBS_ERROR16	100266
#define GLU_NURBS_ERROR17	100267
#define GLU_NURBS_ERROR18	100268
#define GLU_NURBS_ERROR19	100269
#define GLU_NURBS_ERROR20	100270
#define GLU_NURBS_ERROR21	100271
#define GLU_NURBS_ERROR22	100272
#define GLU_NURBS_ERROR23	100273
#define GLU_NURBS_ERROR24	100274
#define GLU_NURBS_ERROR25	100275
#define GLU_NURBS_ERROR26	100276
#define GLU_NURBS_ERROR27	100277
#define GLU_NURBS_ERROR28	100278
#define GLU_NURBS_ERROR29	100279
#define GLU_NURBS_ERROR30	100280
#define GLU_NURBS_ERROR31	100281
#define GLU_NURBS_ERROR32	100282
#define GLU_NURBS_ERROR33	100283
#define GLU_NURBS_ERROR34	100284
#define GLU_NURBS_ERROR35	100285
#define GLU_NURBS_ERROR36	100286
#define GLU_NURBS_ERROR37	100287
#define GLU_VERSION	100800
#define GLU_EXTENSIONS	100801
#define GLU_INVALID_ENUM	100900
#define GLU_INVALID_VALUE	100901
#define GLU_OUT_OF_MEMORY	100902
#define GLU_INCOMPATIBLE_GL_VERSION	100903
#define GLU_INVALID_OPERATION	100904

typedef void *_GLUfuncptr;
typedef struct GLUtesselator GLUtesselatorObj;
typedef struct GLUtesselator GLUtriangulatorObj;
typedef struct GLUquadric GLUquadricObj;
typedef struct GLUnurbs GLUnurbsObj;
typedef struct GLUnurbs GLUnurbs;
typedef struct GLUquadric GLUquadric;
typedef struct GLUtesselator GLUtesselator;
extern void gluBeginCurve(GLUnurbs * nurb);
extern void gluBeginPolygon(GLUtesselator * tess);
extern void gluBeginSurface(GLUnurbs * nurb);
extern void gluBeginTrim(GLUnurbs * nurb);
extern GLint gluBuild1DMipmapLevels(GLenum target, GLint internalFormat,
				    GLsizei width, GLenum format,
				    GLenum type, GLint level, GLint base,
				    GLint max, const void *data);
extern GLint gluBuild1DMipmaps(GLenum target, GLint internalFormat,
			       GLsizei width, GLenum format, GLenum type,
			       const void *data);
extern GLint gluBuild2DMipmapLevels(GLenum target, GLint internalFormat,
				    GLsizei width, GLsizei height,
				    GLenum format, GLenum type,
				    GLint level, GLint base, GLint max,
				    const void *data);
extern GLint gluBuild2DMipmaps(GLenum target, GLint internalFormat,
			       GLsizei width, GLsizei height,
			       GLenum format, GLenum type,
			       const void *data);
extern GLint gluBuild3DMipmapLevels(GLenum target, GLint internalFormat,
				    GLsizei width, GLsizei height,
				    GLsizei depth, GLenum format,
				    GLenum type, GLint level, GLint base,
				    GLint max, const void *data);
extern GLint gluBuild3DMipmaps(GLenum target, GLint internalFormat,
			       GLsizei width, GLsizei height,
			       GLsizei depth, GLenum format, GLenum type,
			       const void *data);
extern GLboolean gluCheckExtension(const GLubyte * extName,
				   const GLubyte * extString);
extern void gluCylinder(GLUquadric * quad, GLdouble base, GLdouble top,
			GLdouble height, GLint slices, GLint stacks);
extern void gluDeleteNurbsRenderer(GLUnurbs * nurb);
extern void gluDeleteQuadric(GLUquadric * quad);
extern void gluDeleteTess(GLUtesselator * tess);
extern void gluDisk(GLUquadric * quad, GLdouble inner, GLdouble outer,
		    GLint slices, GLint loops);
extern void gluEndCurve(GLUnurbs * nurb);
extern void gluEndPolygon(GLUtesselator * tess);
extern void gluEndSurface(GLUnurbs * nurb);
extern void gluEndTrim(GLUnurbs * nurb);
extern const GLubyte *gluErrorString(GLenum error);
extern void gluGetNurbsProperty(GLUnurbs * nurb, GLenum property,
				GLfloat * data);
extern const GLubyte *gluGetString(GLenum name);
extern void gluGetTessProperty(GLUtesselator * tess, GLenum which,
			       GLdouble * data);
extern void gluLoadSamplingMatrices(GLUnurbs * nurb, const GLfloat * model,
				    const GLfloat * perspective,
				    const GLint * view);
extern void gluLookAt(GLdouble eyeX, GLdouble eyeY, GLdouble eyeZ,
		      GLdouble centerX, GLdouble centerY, GLdouble centerZ,
		      GLdouble upX, GLdouble upY, GLdouble upZ);
extern GLUnurbs *gluNewNurbsRenderer(void);
extern GLUquadric *gluNewQuadric(void);
extern GLUtesselator *gluNewTess(void);
extern void gluNextContour(GLUtesselator * tess, GLenum type);
extern void gluNurbsCallback(GLUnurbs * nurb, GLenum which,
			     _GLUfuncptr CallBackFunc);
extern void gluNurbsCallbackData(GLUnurbs * nurb, GLvoid * userData);
extern void gluNurbsCallbackDataEXT(GLUnurbs * nurb, GLvoid * userData);
extern void gluNurbsCurve(GLUnurbs * nurb, GLint knotCount,
			  GLfloat * knots, GLint stride, GLfloat * control,
			  GLint order, GLenum type);
extern void gluNurbsProperty(GLUnurbs * nurb, GLenum property,
			     GLfloat value);
extern void gluNurbsSurface(GLUnurbs * nurb, GLint sKnotCount,
			    GLfloat * sKnots, GLint tKnotCount,
			    GLfloat * tKnots, GLint sStride, GLint tStride,
			    GLfloat * control, GLint sOrder, GLint tOrder,
			    GLenum type);
extern void gluOrtho2D(GLdouble left, GLdouble right, GLdouble bottom,
		       GLdouble top);
extern void gluPartialDisk(GLUquadric * quad, GLdouble inner,
			   GLdouble outer, GLint slices, GLint loops,
			   GLdouble start, GLdouble sweep);
extern void gluPerspective(GLdouble fovy, GLdouble aspect, GLdouble zNear,
			   GLdouble zFar);
extern void gluPickMatrix(GLdouble x, GLdouble y, GLdouble delX,
			  GLdouble delY, GLint * viewport);
extern GLint gluProject(GLdouble objX, GLdouble objY, GLdouble objZ,
			const GLdouble * model, const GLdouble * proj,
			const GLint * view, GLdouble * winX,
			GLdouble * winY, GLdouble * winZ);
extern void gluPwlCurve(GLUnurbs * nurb, GLint count, GLfloat * data,
			GLint stride, GLenum type);
extern void gluQuadricCallback(GLUquadric * quad, GLenum which,
			       _GLUfuncptr CallBackFunc);
extern void gluQuadricDrawStyle(GLUquadric * quad, GLenum draw);
extern void gluQuadricNormals(GLUquadric * quad, GLenum normal);
extern void gluQuadricOrientation(GLUquadric * quad, GLenum orientation);
extern void gluQuadricTexture(GLUquadric * quad, GLboolean texture);
extern GLint gluScaleImage(GLenum format, GLsizei wIn, GLsizei hIn,
			   GLenum typeIn, const void *dataIn, GLsizei wOut,
			   GLsizei hOut, GLenum typeOut, GLvoid * dataOut);
extern void gluSphere(GLUquadric * quad, GLdouble radius, GLint slices,
		      GLint stacks);
extern void gluTessBeginContour(GLUtesselator * tess);
extern void gluTessBeginPolygon(GLUtesselator * tess, GLvoid * data);
extern void gluTessCallback(GLUtesselator * tess, GLenum which,
			    _GLUfuncptr CallBackFunc);
extern void gluTessEndContour(GLUtesselator * tess);
extern void gluTessEndPolygon(GLUtesselator * tess);
extern void gluTessNormal(GLUtesselator * tess, GLdouble valueX,
			  GLdouble valueY, GLdouble valueZ);
extern void gluTessProperty(GLUtesselator * tess, GLenum which,
			    GLdouble data);
extern void gluTessVertex(GLUtesselator * tess, GLdouble * location,
			  GLvoid * data);
extern GLint gluUnProject(GLdouble winX, GLdouble winY, GLdouble winZ,
			  const GLdouble * model, const GLdouble * proj,
			  const GLint * view, GLdouble * objX,
			  GLdouble * objY, GLdouble * objZ);
extern GLint gluUnProject4(GLdouble winX, GLdouble winY, GLdouble winZ,
			   GLdouble clipW, const GLdouble * model,
			   const GLdouble * proj, const GLint * view,
			   GLdouble nearVal, GLdouble farVal,
			   GLdouble * objX, GLdouble * objY,
			   GLdouble * objZ, GLdouble * objW);

IV. PNG12 library

Table of Contents
8. Libraries
8.1. Interfaces for libpng12
8.1.1. PNG Reference library
8.2. Data Definitions for libpng12
8.2.1. png.h
8.3. Interface Definitions for libpng12
png_access_version_number -- return version of the run-time library
png_check_sig -- INSERT PURPOSE HERE
png_convert_from_struct_tm -- convert struct tm to png_time
png_convert_from_time_t -- convert time_t to png_time
png_create_info_struct -- allocate and initialize a png_info structure
png_create_read_struct -- allocate and initialize a png_struct structure for reading PNG file
png_create_read_struct_2 -- register custom read function
png_create_write_struct -- allocate and initialize a png_struct structure for writing PNG file
png_create_write_struct_2 -- register custom write function
png_data_freer -- change the default behavior for freeing data
png_destroy_info_struct -- free memory in PNG info structure
png_destroy_read_struct -- free the memory associated with read png_struct
png_destroy_write_struct -- free the memory associated with write png_struct
png_error -- default function to handle fatal errors
png_free -- free a pointer allocated by png_malloc()
png_free_data -- free internally allocated data
png_get_IHDR -- get PNG_IHDR chunk information from png_info structure
png_get_PLTE -- get image palette information from png_info structure
png_get_bKGD -- get background color for given image
png_get_bit_depth -- return image bit_depth
png_get_cHRM -- get CIE chromacities and referenced white point for given image
png_get_channels -- get number of color channels in image
png_get_color_type -- return image color type
png_get_error_ptr -- return error_ptr for user-defined functions
png_get_gAMA -- get the gamma value for given image
png_get_hIST -- get the histogram for given image
png_get_header_ver -- get version information for libpng header files
png_get_iCCP -- get the embedded ICC profile data for given image
png_get_image_height -- return image height
png_get_image_width -- return image width
png_get_interlace_type -- returns interlace method
png_get_io_ptr -- return pointer for user-defined I/O
png_get_libpng_ver -- get the library version string
png_get_oFFs -- get screen offsets for the given image
png_get_pHYs -- get the physical resolution for given image
png_get_progressive_ptr -- return pointer to user-defined push read functions
png_get_rowbytes -- Return number of bytes for a row
png_get_rows -- retrieve image data from png_info structure
png_get_sBIT -- get number of significant bits for each color channel
png_get_sRGB -- get the rendering intent for given image
png_get_tIME -- get last modification time for the image
png_get_tRNS -- get transparency data for images
png_get_text -- get comments information from png_info structure
png_get_unknown_chunks -- retrieve the unknown chunks from a PNG file
png_get_user_chunk_ptr -- get pointer to user chunk data
png_get_valid -- determine if given chunk data is valid
png_get_x_offset_pixels -- return x offset in pixels from oFFs chunk
png_get_x_pixels_per_meter -- return horizontal pixel density per meter
png_get_y_offset_pixels -- return y offset in pixels from oFFs chunk
png_get_y_pixels_per_meter -- return vertical pixel density per meter
png_info_init_3 -- initialize an info structure (DEPRECATED)
png_init_io -- initialize input/output for the PNG file
png_libpng_ver -- external variable holding version number of libpng
png_malloc -- allocate memory
png_permit_mng_features -- enable MNG extensions for PNG image wrapped in MNG datastream
png_process_data -- read PNG file progressively
png_progressive_combine_row -- combines current row data with processed row
png_read_end -- read the end of PNG file
png_read_image -- read the entire image into memory
png_read_info -- read the PNG image information
png_read_png -- read the entire PNG file
png_read_row -- read a row of image data
png_read_rows -- read multiple rows of image data
png_read_update_info -- update png_info structure
png_set_IHDR -- set the PNG_IHDR chunk information
png_set_PLTE -- set color values for the palette
png_set_bKGD -- set the background color for given image
png_set_background -- set the background for given image
png_set_bgr -- set pixel order to blue, green, red
png_set_cHRM -- set CIE chromacities and referenced white point for given image
png_set_compression_buffer_size -- set the size of the compression buffer
png_set_compression_level -- set image compression level
png_set_compression_mem_level -- set how much memory to use for the internal state during PNG compression
png_set_compression_method -- set PNG compression algorithm
png_set_compression_strategy -- set PNG compression strategy
png_set_compression_window_bits -- set PNG compression window size
png_set_dither -- turn on dithering to 8-bit
png_set_error_fn -- set user defined functions for error handling
png_set_expand -- set expansion transformation
png_set_filler -- add a filler byte to given image
png_set_filter -- set filtering method
png_set_gAMA -- set the gamma value for given image
png_set_gamma -- transform the image from file gamma to screen gamma
png_set_gray_1_2_4_to_8 -- set expansion transformation
png_set_gray_to_rgb -- expand the grayscale image to 24-bit RGB
png_set_hIST -- set the histogram of color palette
png_set_iCCP -- set ICC component
png_set_interlace_handling -- get the number of passes for image interlacing
png_set_invert_alpha -- invert the level of opacity of a PNG file
png_set_invert_mono -- reverse values for monochromicity
png_set_keep_unknown_chunks -- specify list of chunks and how to handle them
png_set_mem_fn -- install custom memory allocation functions
png_set_oFFs -- set screen offsets for given image
png_set_pHYs -- set physical resolution
png_set_packing -- expand image to 1 pixel per byte for bit-depths 1,2 and 4
png_set_packswap -- swap the order of pixels for packed-pixel image
png_set_palette_to_rgb -- set expansion transformation
png_set_progressive_read_fn -- set progressive read callback functions
png_set_read_fn -- set user-defined function for reading a PNG stream
png_set_read_user_chunk_fn -- install custom callback function to handle unknown chunks in the input stream
png_set_read_user_transform_fn -- install a custom input transformation callback function
png_set_rgb_to_gray -- reduce 24-bit RGB to grayscale image
png_set_rows -- put image data in png_info structure
png_set_sBIT -- set number of significant bits for each channel
png_set_sRGB -- set the rendering intent for given image
png_set_sRGB_gAMA_and_cHRM -- set rendering intent, gamma values, and CIE chromaticities of a PNG file
png_set_shift -- shift pixel values to valid bit-depth
png_set_sig_bytes -- number of bytes read from PNG file
png_set_strip_16 -- strip 16 bit PNG file to 8 bit depth
png_set_strip_alpha -- remove alpha channel on the given image
png_set_swap -- swap byte-order for 16 bit depth files
png_set_swap_alpha -- swap image data from RGBA to ARGB format
png_set_tIME -- set last modification time for the image
png_set_tRNS -- set transparency values for images
png_set_tRNS_to_alpha -- set expansion transformation
png_set_text -- stores information for image comments
png_set_unknown_chunk_location -- set the location of an unknown chunk in a PNG file
png_set_unknown_chunks -- insert unknown chunks into a PNG file
png_set_write_fn -- set user-defined function for writing a PNG stream
png_set_write_status_fn -- install custom callback function to be called after row is written
png_set_write_user_transform_fn -- install a custom output transformation callback function
png_sig_cmp -- match the PNG signature
png_start_read_image -- start reading a PNG file
png_warning -- default function to handle non-fatal errors
png_write_chunk -- write a PNG chunk
png_write_end -- write the end of a PNG file
png_write_flush -- flush the current output buffers
png_write_image -- write the given image data
png_write_info -- write PNG information to file
png_write_png -- write the entire PNG file
png_write_row -- write a row of image data
png_write_rows -- write multiple rows of image data

Chapter 8. Libraries

8.1. Interfaces for libpng12

Table 8-1 defines the library name and shared object name for the libpng12 library

Table 8-1. libpng12 Definition

Library:libpng12
SONAME:libpng12.so.0

The behavior of the interfaces in this library is specified by the following specifications:

[LSB] This Specification


8.1.1. PNG Reference library


8.1.1.1. Interfaces for PNG Reference library

An LSB conforming implementation shall provide the generic functions for PNG Reference library specified in Table 8-2, with the full mandatory functionality as described in the referenced underlying specification.

Table 8-2. libpng12 - PNG Reference library Function Interfaces

png_access_version_number(PNG12_0) [LSB]png_check_sig(PNG12_0) [LSB]png_convert_from_struct_tm(PNG12_0) [LSB]
png_convert_from_time_t(PNG12_0) [LSB]png_create_info_struct(PNG12_0) [LSB]png_create_read_struct(PNG12_0) [LSB]
png_create_read_struct_2(PNG12_0) [LSB]png_create_write_struct(PNG12_0) [LSB]png_create_write_struct_2(PNG12_0) [LSB]
png_data_freer(PNG12_0) [LSB]png_destroy_info_struct(PNG12_0) [LSB]png_destroy_read_struct(PNG12_0) [LSB]
png_destroy_write_struct(PNG12_0) [LSB]png_error(PNG12_0) [LSB]png_free(PNG12_0) [LSB]
png_free_data(PNG12_0) [LSB]png_get_IHDR(PNG12_0) [LSB]png_get_PLTE(PNG12_0) [LSB]
png_get_bKGD(PNG12_0) [LSB]png_get_bit_depth(PNG12_0) [LSB]png_get_cHRM(PNG12_0) [LSB]
png_get_channels(PNG12_0) [LSB]png_get_color_type(PNG12_0) [LSB]png_get_error_ptr(PNG12_0) [LSB]
png_get_gAMA(PNG12_0) [LSB]png_get_hIST(PNG12_0) [LSB]png_get_header_ver(PNG12_0) [LSB]
png_get_iCCP(PNG12_0) [LSB]png_get_image_height(PNG12_0) [LSB]png_get_image_width(PNG12_0) [LSB]
png_get_interlace_type(PNG12_0) [LSB]png_get_io_ptr(PNG12_0) [LSB]png_get_libpng_ver(PNG12_0) [LSB]
png_get_oFFs(PNG12_0) [LSB]png_get_pHYs(PNG12_0) [LSB]png_get_progressive_ptr(PNG12_0) [LSB]
png_get_rowbytes(PNG12_0) [LSB]png_get_rows(PNG12_0) [LSB]png_get_sBIT(PNG12_0) [LSB]
png_get_sRGB(PNG12_0) [LSB]png_get_tIME(PNG12_0) [LSB]png_get_tRNS(PNG12_0) [LSB]
png_get_text(PNG12_0) [LSB]png_get_unknown_chunks(PNG12_0) [LSB]png_get_user_chunk_ptr(PNG12_0) [LSB]
png_get_valid(PNG12_0) [LSB]png_get_x_offset_pixels(PNG12_0) [LSB]png_get_x_pixels_per_meter(PNG12_0) [LSB]
png_get_y_offset_pixels(PNG12_0) [LSB]png_get_y_pixels_per_meter(PNG12_0) [LSB]png_info_init_3(PNG12_0) [LSB]
png_init_io(PNG12_0) [LSB]png_malloc(PNG12_0) [LSB]png_permit_mng_features(PNG12_0) [LSB]
png_process_data(PNG12_0) [LSB]png_progressive_combine_row(PNG12_0) [LSB]png_read_end(PNG12_0) [LSB]
png_read_image(PNG12_0) [LSB]png_read_info(PNG12_0) [LSB]png_read_png(PNG12_0) [LSB]
png_read_row(PNG12_0) [LSB]png_read_rows(PNG12_0) [LSB]png_read_update_info(PNG12_0) [LSB]
png_set_IHDR(PNG12_0) [LSB]png_set_PLTE(PNG12_0) [LSB]png_set_bKGD(PNG12_0) [LSB]
png_set_background(PNG12_0) [LSB]png_set_bgr(PNG12_0) [LSB]png_set_cHRM(PNG12_0) [LSB]
png_set_compression_buffer_size(PNG12_0) [LSB]png_set_compression_level(PNG12_0) [LSB]png_set_compression_mem_level(PNG12_0) [LSB]
png_set_compression_method(PNG12_0) [LSB]png_set_compression_strategy(PNG12_0) [LSB]png_set_compression_window_bits(PNG12_0) [LSB]
png_set_dither(PNG12_0) [LSB]png_set_error_fn(PNG12_0) [LSB]png_set_expand(PNG12_0) [LSB]
png_set_filler(PNG12_0) [LSB]png_set_filter(PNG12_0) [LSB]png_set_gAMA(PNG12_0) [LSB]
png_set_gamma(PNG12_0) [LSB]png_set_gray_1_2_4_to_8(PNG12_0) [LSB]png_set_gray_to_rgb(PNG12_0) [LSB]
png_set_hIST(PNG12_0) [LSB]png_set_iCCP(PNG12_0) [LSB]png_set_interlace_handling(PNG12_0) [LSB]
png_set_invert_alpha(PNG12_0) [LSB]png_set_invert_mono(PNG12_0) [LSB]png_set_keep_unknown_chunks(PNG12_0) [LSB]
png_set_mem_fn(PNG12_0) [LSB]png_set_oFFs(PNG12_0) [LSB]png_set_pHYs(PNG12_0) [LSB]
png_set_packing(PNG12_0) [LSB]png_set_packswap(PNG12_0) [LSB]png_set_palette_to_rgb(PNG12_0) [LSB]
png_set_progressive_read_fn(PNG12_0) [LSB]png_set_read_fn(PNG12_0) [LSB]png_set_read_user_chunk_fn(PNG12_0) [LSB]
png_set_read_user_transform_fn(PNG12_0) [LSB]png_set_rgb_to_gray(PNG12_0) [LSB]png_set_rows(PNG12_0) [LSB]
png_set_sBIT(PNG12_0) [LSB]png_set_sRGB(PNG12_0) [LSB]png_set_sRGB_gAMA_and_cHRM(PNG12_0) [LSB]
png_set_shift(PNG12_0) [LSB]png_set_sig_bytes(PNG12_0) [LSB]png_set_strip_16(PNG12_0) [LSB]
png_set_strip_alpha(PNG12_0) [LSB]png_set_swap(PNG12_0) [LSB]png_set_swap_alpha(PNG12_0) [LSB]
png_set_tIME(PNG12_0) [LSB]png_set_tRNS(PNG12_0) [LSB]png_set_tRNS_to_alpha(PNG12_0) [LSB]
png_set_text(PNG12_0) [LSB]png_set_unknown_chunk_location(PNG12_0) [LSB]png_set_unknown_chunks(PNG12_0) [LSB]
png_set_write_fn(PNG12_0) [LSB]png_set_write_status_fn(PNG12_0) [LSB]png_set_write_user_transform_fn(PNG12_0) [LSB]
png_sig_cmp(PNG12_0) [LSB]png_start_read_image(PNG12_0) [LSB]png_warning(PNG12_0) [LSB]
png_write_chunk(PNG12_0) [LSB]png_write_end(PNG12_0) [LSB]png_write_flush(PNG12_0) [LSB]
png_write_image(PNG12_0) [LSB]png_write_info(PNG12_0) [LSB]png_write_png(PNG12_0) [LSB]
png_write_row(PNG12_0) [LSB]png_write_rows(PNG12_0) [LSB] 

An LSB conforming implementation shall provide the generic data interfaces for PNG Reference library specified in Table 8-3, with the full mandatory functionality as described in the referenced underlying specification.

Table 8-3. libpng12 - PNG Reference library Data Interfaces

png_libpng_ver(PNG12_0) [LSB]  

8.2. Data Definitions for libpng12

This section defines global identifiers and their values that are associated with interfaces contained in libpng12. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.


8.2.1. png.h


#define FARDATA
#define PNGAPI
#define PNG_1_2_X
#define PNG_EASY_ACCESS_SUPPORTED
#define PNG_ERROR_NUMBERS_SUPPORTED
#define PNG_FIXED_POINT_SUPPORTED
#define PNG_FLOATING_POINT_SUPPORTED
#define PNG_FREE_ME_SUPPORTED
#define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
#define PNG_IMPEXP
#define PNG_INFO_IMAGE_SUPPORTED
#define PNG_MMX_CODE_SUPPORTED
#define PNG_MNG_FEATURES_SUPPORTED
#define PNG_NO_READ_iTXt
#define PNG_NO_WRITE_iTXt
#define PNG_PROGRESSIVE_READ_SUPPORTED
#define PNG_READ_16_TO_8_SUPPORTED
#define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
#define PNG_READ_BACKGROUND_SUPPORTED
#define PNG_READ_BGR_SUPPORTED
#define PNG_READ_COMPOSITE_NODIV_SUPPORTED
#define PNG_READ_DITHER_SUPPORTED
#define PNG_READ_EMPTY_PLTE_SUPPORTED
#define PNG_READ_EXPAND_SUPPORTED
#define PNG_READ_FILLER_SUPPORTED
#define PNG_READ_GAMMA_SUPPORTED
#define PNG_READ_GRAY_TO_RGB_SUPPORTED
#define PNG_READ_INTERLACING_SUPPORTED
#define PNG_READ_INVERT_ALPHA_SUPPORTED
#define PNG_READ_INVERT_SUPPORTED
#define PNG_READ_OPT_PLTE_SUPPORTED
#define PNG_READ_PACKSWAP_SUPPORTED
#define PNG_READ_PACK_SUPPORTED
#define PNG_READ_RGB_TO_GRAY_SUPPORTED
#define PNG_READ_SHIFT_SUPPORTED
#define PNG_READ_STRIP_ALPHA_SUPPORTED
#define PNG_READ_SUPPORTED
#define PNG_READ_SWAP_ALPHA_SUPPORTED
#define PNG_READ_SWAP_SUPPORTED
#define PNG_READ_TEXT_SUPPORTED
#define PNG_READ_TRANSFORMS_SUPPORTED
#define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
#define PNG_READ_USER_CHUNKS_SUPPORTED
#define PNG_READ_USER_TRANSFORM_SUPPORTED
#define PNG_READ_bKGD_SUPPORTED
#define PNG_READ_cHRM_SUPPORTED
#define PNG_READ_gAMA_SUPPORTED
#define PNG_READ_hIST_SUPPORTED
#define PNG_READ_iCCP_SUPPORTED
#define PNG_READ_oFFs_SUPPORTED
#define PNG_READ_pCAL_SUPPORTED
#define PNG_READ_pHYs_SUPPORTED
#define PNG_READ_sBIT_SUPPORTED
#define PNG_READ_sCAL_SUPPORTED
#define PNG_READ_sPLT_SUPPORTED
#define PNG_READ_sRGB_SUPPORTED
#define PNG_READ_tEXt_SUPPORTED
#define PNG_READ_tIME_SUPPORTED
#define PNG_READ_tRNS_SUPPORTED
#define PNG_READ_zTXt_SUPPORTED
#define PNG_SETJMP_SUPPORTED
#define PNG_SET_USER_LIMITS_SUPPORTED
#define PNG_TEXT_SUPPORTED
#define PNG_TIME_RFC1123_SUPPORTED
#define PNG_UNKNOWN_CHUNKS_SUPPORTED
#define PNG_USER_CHUNKS_SUPPORTED
#define PNG_USER_MEM_SUPPORTED
#define PNG_USER_TRANSFORM_PTR_SUPPORTED
#define PNG_USE_GLOBAL_ARRAYS
#define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
#define PNG_WRITE_BGR_SUPPORTED
#define PNG_WRITE_EMPTY_PLTE_SUPPORTED
#define PNG_WRITE_FILLER_SUPPORTED
#define PNG_WRITE_FLUSH_SUPPORTED
#define PNG_WRITE_INTERLACING_SUPPORTED
#define PNG_WRITE_INVERT_ALPHA_SUPPORTED
#define PNG_WRITE_INVERT_SUPPORTED
#define PNG_WRITE_PACKSWAP_SUPPORTED
#define PNG_WRITE_PACK_SUPPORTED
#define PNG_WRITE_SHIFT_SUPPORTED
#define PNG_WRITE_SUPPORTED
#define PNG_WRITE_SWAP_ALPHA_SUPPORTED
#define PNG_WRITE_SWAP_SUPPORTED
#define PNG_WRITE_TEXT_SUPPORTED
#define PNG_WRITE_TRANSFORMS_SUPPORTED
#define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED
#define PNG_WRITE_USER_TRANSFORM_SUPPORTED
#define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
#define PNG_WRITE_bKGD_SUPPORTED
#define PNG_WRITE_cHRM_SUPPORTED
#define PNG_WRITE_gAMA_SUPPORTED
#define PNG_WRITE_hIST_SUPPORTED
#define PNG_WRITE_iCCP_SUPPORTED
#define PNG_WRITE_oFFs_SUPPORTED
#define PNG_WRITE_pCAL_SUPPORTED
#define PNG_WRITE_pHYs_SUPPORTED
#define PNG_WRITE_sBIT_SUPPORTED
#define PNG_WRITE_sCAL_SUPPORTED
#define PNG_WRITE_sPLT_SUPPORTED
#define PNG_WRITE_sRGB_SUPPORTED
#define PNG_WRITE_tEXt_SUPPORTED
#define PNG_WRITE_tIME_SUPPORTED
#define PNG_WRITE_tRNS_SUPPORTED
#define PNG_WRITE_zTXt_SUPPORTED
#define PNG_bKGD_SUPPORTED
#define PNG_cHRM_SUPPORTED
#define PNG_gAMA_SUPPORTED
#define PNG_hIST_SUPPORTED
#define PNG_iCCP_SUPPORTED
#define PNG_oFFs_SUPPORTED
#define PNG_pCAL_SUPPORTED
#define PNG_pHYs_SUPPORTED
#define PNG_sBIT_SUPPORTED
#define PNG_sCAL_SUPPORTED
#define PNG_sPLT_SUPPORTED
#define PNG_sRGB_SUPPORTED
#define PNG_tEXt_SUPPORTED
#define PNG_tIME_SUPPORTED
#define PNG_tRNS_SUPPORTED
#define PNG_zTXt_SUPPORTED
#define PNG_HEADER_VERSION_STRING	" libpng version 1.2.8 - December 3, 2004 (header)\n"
#define PNG_MMX_READ_FLAGS	 \
	( PNG_ASM_FLAG_MMX_READ_COMBINE_ROW | PNG_ASM_FLAG_MMX_READ_INTERLACE \
	| PNG_ASM_FLAG_MMX_READ_FILTER_SUB | PNG_ASM_FLAG_MMX_READ_FILTER_UP | \
	PNG_ASM_FLAG_MMX_READ_FILTER_AVG | PNG_ASM_FLAG_MMX_READ_FILTER_PAETH \
	)
#define PNG_MMX_FLAGS	 \
	( PNG_ASM_FLAG_MMX_SUPPORT_COMPILED | PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU \
	| PNG_MMX_READ_FLAGS | PNG_MMX_WRITE_FLAGS )
#define PNG_ALL_FILTERS	 \
	(PNG_FILTER_NONE | PNG_FILTER_SUB | PNG_FILTER_UP | PNG_FILTER_AVG | \
	PNG_FILTER_PAETH)
#define png_info_init(info_ptr)	 \
	png_info_init_3(&info_ptr, png_sizeof(png_info));
#define png_composite(composite,fg,alpha,bg)	 \
	{ png_uint_16 temp = (png_uint_16)((png_uint_16)(fg) * \
	(png_uint_16)(alpha) + (png_uint_16)(bg)*(png_uint_16)(255 - \
	(png_uint_16)(alpha)) + (png_uint_16)128); (composite) = \
	(png_byte)((temp + (temp >> 8)) >> 8); }
#define png_composite_16(composite,fg,alpha,bg)	 \
	{ png_uint_32 temp = (png_uint_32)((png_uint_32)(fg) * \
	(png_uint_32)(alpha) + (png_uint_32)(bg)*(png_uint_32)(65535L - \
	(png_uint_32)(alpha)) + (png_uint_32)32768L); (composite) = \
	(png_uint_16)((temp + (temp >> 16)) >> 16); }
#define PNG_MMX_WRITE_FLAGS	( 0 )
#define png_jmpbuf(png_ptr)	((png_ptr)->jmpbuf)
#define PNG_SIZE_MAX	((png_size_t)(-1))
#define PNG_UINT_32_MAX	((png_uint_32)(-1))
#define PNG_UINT_31_MAX	((png_uint_32)0x7fffffffL)
#define int_p_NULL	(int *)NULL
#define png_bytep_NULL	(png_bytep)NULL
#define png_bytepp_NULL	(png_bytepp)NULL
#define PNG_COLOR_TYPE_GRAY_ALPHA	(PNG_COLOR_MASK_ALPHA)
#define PNG_COLOR_TYPE_RGB_ALPHA	(PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA)
#define PNG_COLOR_TYPE_PALETTE	(PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE)
#define PNG_COLOR_TYPE_RGB	(PNG_COLOR_MASK_COLOR)
#define png_doublep_NULL	(png_doublep)NULL
#define png_error_ptr_NULL	(png_error_ptr)NULL
#define png_flush_ptr_NULL	(png_flush_ptr)NULL
#define png_infopp_NULL	(png_infopp)NULL
#define png_rw_ptr_NULL	(png_rw_ptr)NULL
#define png_structp_NULL	(png_structp)NULL
#define png_uint_16p_NULL	(png_uint_16p)NULL
#define png_voidp_NULL	(png_voidp)NULL
#define CVT_PTR(ptr)	(ptr)
#define CVT_PTR_NOCHECK(ptr)	(ptr)
#define PNG_TEXT_COMPRESSION_NONE	-1
#define PNG_TEXT_COMPRESSION_zTXt_WR	-2
#define PNG_TEXT_COMPRESSION_NONE_WR	-3
#define PNG_BACKGROUND_GAMMA_UNKNOWN	0
#define PNG_COLOR_TYPE_GRAY	0
#define PNG_COMPRESSION_TYPE_BASE	0
#define PNG_CRC_DEFAULT	0
#define PNG_EQUATION_LINEAR	0
#define PNG_FILLER_BEFORE	0
#define PNG_FILTER_HEURISTIC_DEFAULT	0
#define PNG_FILTER_TYPE_BASE	0
#define PNG_FILTER_VALUE_NONE	0
#define PNG_HANDLE_CHUNK_AS_DEFAULT	0
#define PNG_INTERLACE_NONE	0
#define PNG_LIBPNG_VER_BUILD	0
#define PNG_LIBPNG_VER_SONUM	0
#define PNG_OFFSET_PIXEL	0
#define PNG_RESOLUTION_UNKNOWN	0
#define PNG_SCALE_UNKNOWN	0
#define PNG_TEXT_COMPRESSION_zTXt	0
#define PNG_sRGB_INTENT_PERCEPTUAL	0
#define PNG_NO_FILTERS	0x00
#define PNG_TRANSFORM_IDENTITY	0x0000
#define PNG_INFO_gAMA	0x0001
#define PNG_TRANSFORM_STRIP_16	0x0001
#define PNG_INFO_sBIT	0x0002
#define PNG_TRANSFORM_STRIP_ALPHA	0x0002
#define PNG_INFO_cHRM	0x0004
#define PNG_TRANSFORM_PACKING	0x0004
#define PNG_FREE_HIST	0x0008
#define PNG_INFO_PLTE	0x0008
#define PNG_TRANSFORM_PACKSWAP	0x0008
#define PNG_FREE_ICCP	0x0010
#define PNG_INFO_tRNS	0x0010
#define PNG_TRANSFORM_EXPAND	0x0010
#define PNG_FREE_SPLT	0x0020
#define PNG_INFO_bKGD	0x0020
#define PNG_TRANSFORM_INVERT_MONO	0x0020
#define PNG_FREE_ROWS	0x0040
#define PNG_INFO_hIST	0x0040
#define PNG_TRANSFORM_SHIFT	0x0040
#define PNG_FREE_PCAL	0x0080
#define PNG_INFO_pHYs	0x0080
#define PNG_TRANSFORM_BGR	0x0080
#define PNG_ASM_FLAG_MMX_SUPPORT_COMPILED	0x01
#define PNG_FLAG_MNG_EMPTY_PLTE	0x01
#define PNG_FREE_SCAL	0x0100
#define PNG_INFO_oFFs	0x0100
#define PNG_TRANSFORM_SWAP_ALPHA	0x0100
#define PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU	0x02
#define PNG_FREE_UNKN	0x0200
#define PNG_INFO_tIME	0x0200
#define PNG_TRANSFORM_SWAP_ENDIAN	0x0200
#define PNG_ASM_FLAG_MMX_READ_COMBINE_ROW	0x04
#define PNG_FLAG_MNG_FILTER_64	0x04
#define PNG_FREE_LIST	0x0400
#define PNG_INFO_pCAL	0x0400
#define PNG_TRANSFORM_INVERT_ALPHA	0x0400
#define PNG_ALL_MNG_FEATURES	0x05
#define PNG_ASM_FLAG_MMX_READ_INTERLACE	0x08
#define PNG_FILTER_NONE	0x08
#define PNG_INFO_sRGB	0x0800
#define PNG_TRANSFORM_STRIP_FILLER	0x0800
#define PNG_ASM_FLAG_MMX_READ_FILTER_SUB	0x10
#define PNG_FILTER_SUB	0x10
#define PNG_FREE_PLTE	0x1000
#define PNG_INFO_iCCP	0x1000
#define PNG_ASM_FLAG_MMX_READ_FILTER_UP	0x20
#define PNG_FILTER_UP	0x20
#define PNG_FREE_TRNS	0x2000
#define PNG_INFO_sPLT	0x2000
#define PNG_ASM_FLAG_MMX_READ_FILTER_AVG	0x40
#define PNG_FILTER_AVG	0x40
#define PNG_FREE_TEXT	0x4000
#define PNG_INFO_sCAL	0x4000
#define PNG_FREE_MUL	0x4220
#define PNG_FREE_ALL	0x7fff
#define PNG_ASM_FLAG_MMX_READ_FILTER_PAETH	0x80
#define PNG_FILTER_PAETH	0x80
#define PNG_ASM_FLAGS_INITIALIZED	0x80000000
#define PNG_INFO_IDAT	0x8000L
#define PNG_BACKGROUND_GAMMA_SCREEN	1
#define PNG_COLOR_MASK_PALETTE	1
#define PNG_CRC_ERROR_QUIT	1
#define PNG_DESTROY_WILL_FREE_DATA	1
#define PNG_EQUATION_BASE_E	1
#define PNG_FILLER_AFTER	1
#define PNG_FILTER_HEURISTIC_UNWEIGHTED	1
#define PNG_FILTER_VALUE_SUB	1
#define PNG_HANDLE_CHUNK_NEVER	1
#define PNG_INTERLACE_ADAM7	1
#define PNG_ITXT_COMPRESSION_NONE	1
#define PNG_LIBPNG_BUILD_ALPHA	1
#define PNG_LIBPNG_VER_MAJOR	1
#define PNG_OFFSET_MICROMETER	1
#define PNG_RESOLUTION_METER	1
#define PNG_SCALE_METER	1
#define PNG_SELECT_READ	1
#define PNG_SET_WILL_FREE_DATA	1
#define PNG_sRGB_INTENT_RELATIVE	1
#define PNG_LIBPNG_VER_STRING	"1.2.8"
#define PNG_USER_HEIGHT_MAX	1000000L
#define PNG_USER_WIDTH_MAX	1000000L
#define PNG_LIBPNG_VER	10208
#define PNG_LIBPNG_VER_DLLNUM	13
#define PNG_LIBPNG_BUILD_PRIVATE	16
#define PNG_BACKGROUND_GAMMA_FILE	2
#define PNG_COLOR_MASK_COLOR	2
#define PNG_CRC_WARN_DISCARD	2
#define PNG_EQUATION_ARBITRARY	2
#define PNG_FILTER_HEURISTIC_WEIGHTED	2
#define PNG_FILTER_VALUE_UP	2
#define PNG_HANDLE_CHUNK_IF_SAFE	2
#define PNG_INTERLACE_LAST	2
#define PNG_ITXT_COMPRESSION_zTXt	2
#define PNG_LIBPNG_BUILD_BETA	2
#define PNG_LIBPNG_VER_MINOR	2
#define PNG_OFFSET_LAST	2
#define PNG_RESOLUTION_LAST	2
#define PNG_SCALE_RADIAN	2
#define PNG_SELECT_WRITE	2
#define PNG_USER_WILL_FREE_DATA	2
#define PNG_sRGB_INTENT_SATURATION	2
#define PNG_MAX_PALETTE_LENGTH	256
#define PNG_BACKGROUND_GAMMA_UNIQUE	3
#define PNG_CRC_WARN_USE	3
#define PNG_EQUATION_HYPERBOLIC	3
#define PNG_FILTER_HEURISTIC_LAST	3
#define PNG_FILTER_VALUE_AVG	3
#define PNG_HANDLE_CHUNK_ALWAYS	3
#define PNG_LIBPNG_BUILD_RC	3
#define PNG_SCALE_LAST	3
#define PNG_TEXT_COMPRESSION_LAST	3
#define PNG_sRGB_INTENT_ABSOLUTE	3
#define PNG_LIBPNG_BUILD_SPECIAL	32
#define PNG_COLOR_MASK_ALPHA	4
#define PNG_CRC_QUIET_USE	4
#define PNG_EQUATION_LAST	4
#define PNG_FILTER_VALUE_PAETH	4
#define PNG_LIBPNG_BUILD_STABLE	4
#define PNG_sRGB_INTENT_LAST	4
#define PNG_CRC_NO_CHANGE	5
#define PNG_FILTER_VALUE_LAST	5
#define PNG_INTRAPIXEL_DIFFERENCING	64
#define PNG_LIBPNG_BUILD_RELEASE_STATUS_MASK	7
#define PNG_KEYWORD_MAX_LENGTH	79
#define PNG_LIBPNG_BUILD_PATCH	8
#define PNG_LIBPNG_VER_RELEASE	8
#define PNG_ZBUF_SIZE	8192
#define PNG_ABORT()	abort()
#define PNG_CONST	const
#define PNG_EXPORT_VAR(type)	extern PNG_IMPEXP type
#define png_memcmp	memcmp
#define png_memcpy	memcpy
#define png_memset	memset
#define PNG_COLOR_TYPE_GA	PNG_COLOR_TYPE_GRAY_ALPHA
#define PNG_COLOR_TYPE_RGBA	PNG_COLOR_TYPE_RGB_ALPHA
#define PNG_COMPRESSION_TYPE_DEFAULT	PNG_COMPRESSION_TYPE_BASE
#define PNG_FILTER_TYPE_DEFAULT	PNG_FILTER_TYPE_BASE
#define PNG_EXPORT(type,symbol)	PNG_IMPEXP type PNGAPI symbol
#define PNG_LIBPNG_BUILD_TYPE	PNG_LIBPNG_BUILD_BASE_TYPE
#define PNG_LIBPNG_BUILD_BASE_TYPE	PNG_LIBPNG_BUILD_STABLE
#define PNG_MAX_UINT	PNG_UINT_31_MAX
#define png_sizeof(x)	sizeof (x)
#define png_strcpy	strcpy
#define png_strlen	strlen
#define png_strncpy	strncpy

typedef png_unknown_chunk **png_unknown_chunkpp;
typedef struct png_sPLT_entry_struct {
    png_uint_16 red;
    png_uint_16 green;
    png_uint_16 blue;
    png_uint_16 alpha;
    png_uint_16 frequency;
} png_sPLT_entry;
typedef png_sPLT_entry *png_sPLT_entryp;
typedef png_sPLT_entry **png_sPLT_entrypp;
typedef struct png_sPLT_struct {
    png_charp name;
    png_byte depth;
    png_sPLT_entryp entries;
    png_int_32 nentries;
} png_sPLT_t;
typedef png_sPLT_t *png_sPLT_tp;
typedef png_sPLT_t **png_sPLT_tpp;
typedef struct png_unknown_chunk_t {
    png_byte name[5];
    png_byte *data;
    png_size_t size;
    png_byte location;
} png_unknown_chunk;
typedef png_unknown_chunk *png_unknown_chunkp;
typedef struct png_struct_def {
    struct __jmp_buf_tag jmpbuf[1];
    png_error_ptr error_fn;
    png_error_ptr warning_fn;
    png_voidp error_ptr;
    png_rw_ptr write_data_fn;
    png_rw_ptr read_data_fn;
    png_voidp io_ptr;
    png_user_transform_ptr read_user_transform_fn;
    png_user_transform_ptr write_user_transform_fn;
    png_voidp user_transform_ptr;
    png_byte user_transform_depth;
    png_byte user_transform_channels;
    png_uint_32 mode;
    png_uint_32 flags;
    png_uint_32 transformations;
    z_stream zstream;
    png_bytep zbuf;
    png_size_t zbuf_size;
    int zlib_level;
    int zlib_method;
    int zlib_window_bits;
    int zlib_mem_level;
    int zlib_strategy;
    png_uint_32 width;
    png_uint_32 height;
    png_uint_32 num_rows;
    png_uint_32 usr_width;
    png_uint_32 rowbytes;
    png_uint_32 irowbytes;
    png_uint_32 iwidth;
    png_uint_32 row_number;
    png_bytep prev_row;
    png_bytep row_buf;
    png_bytep sub_row;
    png_bytep up_row;
    png_bytep avg_row;
    png_bytep paeth_row;
    png_row_info row_info;
    png_uint_32 idat_size;
    png_uint_32 crc;
    png_colorp palette;
    png_uint_16 num_palette;
    png_uint_16 num_trans;
    png_byte chunk_name[5];
    png_byte compression;
    png_byte filter;
    png_byte interlaced;
    png_byte pass;
    png_byte do_filter;
    png_byte color_type;
    png_byte bit_depth;
    png_byte usr_bit_depth;
    png_byte pixel_depth;
    png_byte channels;
    png_byte usr_channels;
    png_byte sig_bytes;
    png_uint_16 filler;
    png_byte background_gamma_type;
    float background_gamma;
    png_color_16 background;
    png_color_16 background_1;
    png_flush_ptr output_flush_fn;
    png_uint_32 flush_dist;
    png_uint_32 flush_rows;
    int gamma_shift;
    float gamma;
    float screen_gamma;
    png_bytep gamma_table;
    png_bytep gamma_from_1;
    png_bytep gamma_to_1;
    png_uint_16pp gamma_16_table;
    png_uint_16pp gamma_16_from_1;
    png_uint_16pp gamma_16_to_1;
    png_color_8 sig_bit;
    png_color_8 shift;
    png_bytep trans;
    png_color_16 trans_values;
    png_read_status_ptr read_row_fn;
    png_write_status_ptr write_row_fn;
    png_progressive_info_ptr info_fn;
    png_progressive_row_ptr row_fn;
    png_progressive_end_ptr end_fn;
    png_bytep save_buffer_ptr;
    png_bytep save_buffer;
    png_bytep current_buffer_ptr;
    png_bytep current_buffer;
    png_uint_32 push_length;
    png_uint_32 skip_length;
    png_size_t save_buffer_size;
    png_size_t save_buffer_max;
    png_size_t buffer_size;
    png_size_t current_buffer_size;
    int process_mode;
    int cur_palette;
    png_size_t current_text_size;
    png_size_t current_text_left;
    png_charp current_text;
    png_charp current_text_ptr;
    png_bytep palette_lookup;
    png_bytep dither_index;
    png_uint_16p hist;
    png_byte heuristic_method;
    png_byte num_prev_filters;
    png_bytep prev_filters;
    png_uint_16p filter_weights;
    png_uint_16p inv_filter_weights;
    png_uint_16p filter_costs;
    png_uint_16p inv_filter_costs;
    png_charp time_buffer;
    png_uint_32 free_me;
    png_voidp user_chunk_ptr;
    png_user_chunk_ptr read_user_chunk_fn;
    int num_chunk_list;
    png_bytep chunk_list;
    png_byte rgb_to_gray_status;
    png_uint_16 rgb_to_gray_red_coeff;
    png_uint_16 rgb_to_gray_green_coeff;
    png_uint_16 rgb_to_gray_blue_coeff;
    png_uint_32 mng_features_permitted;
    png_fixed_point int_gamma;
    png_byte filter_type;
    png_voidp mem_ptr;
    png_malloc_ptr malloc_fn;
    png_free_ptr free_fn;
    png_bytep big_row_buf;
    png_bytep dither_sort;
    png_bytep index_to_palette;
    png_bytep palette_to_index;
    png_byte compression_type;
    png_uint_32 user_width_max;
    png_uint_32 user_height_max;
} png_struct;
typedef png_struct *png_structp;
typedef struct png_info_struct {
    png_uint_32 width;
    png_uint_32 height;
    png_uint_32 valid;
    png_uint_32 rowbytes;
    png_colorp palette;
    png_uint_16 num_palette;
    png_uint_16 num_trans;
    png_byte bit_depth;
    png_byte color_type;
    png_byte compression_type;
    png_byte filter_type;
    png_byte interlace_type;
    png_byte channels;
    png_byte pixel_depth;
    png_byte spare_byte;
    png_byte signature[8];
    float gamma;
    png_byte srgb_intent;
    int num_text;
    int max_text;
    png_textp text;
    png_time mod_time;
    png_color_8 sig_bit;
    png_bytep trans;
    png_color_16 trans_values;
    png_color_16 background;
    png_int_32 x_offset;
    png_int_32 y_offset;
    png_byte offset_unit_type;
    png_uint_32 x_pixels_per_unit;
    png_uint_32 y_pixels_per_unit;
    png_byte phys_unit_type;
    png_uint_16p hist;
    float x_white;
    float y_white;
    float x_red;
    float y_red;
    float x_green;
    float y_green;
    float x_blue;
    float y_blue;
    png_charp pcal_purpose;
    png_int_32 pcal_X0;
    png_int_32 pcal_X1;
    png_charp pcal_units;
    png_charpp pcal_params;
    png_byte pcal_type;
    png_byte pcal_nparams;
    png_uint_32 free_me;
    png_unknown_chunkp unknown_chunks;
    png_size_t unknown_chunks_num;
    png_charp iccp_name;
    png_charp iccp_profile;
    png_uint_32 iccp_proflen;
    png_byte iccp_compression;
    png_sPLT_tp splt_palettes;
    png_uint_32 splt_palettes_num;
    png_byte scal_unit;
    double scal_pixel_width;
    double scal_pixel_height;
    png_charp scal_s_width;
    png_charp scal_s_height;
    png_bytepp row_pointers;
    png_fixed_point int_gamma;
    png_fixed_point int_x_white;
    png_fixed_point int_y_white;
    png_fixed_point int_x_red;
    png_fixed_point int_y_red;
    png_fixed_point int_x_green;
    png_fixed_point int_y_green;
    png_fixed_point int_x_blue;
    png_fixed_point int_y_blue;
} png_info;
typedef png_info *png_infop;
typedef void *png_voidp;
typedef void (*png_progressive_info_ptr) (png_structp, png_infop);
typedef unsigned char png_byte;
typedef png_byte *png_bytep;
typedef unsigned long int png_uint_32;
typedef void (*png_progressive_row_ptr) (png_structp, png_bytep,
					 png_uint_32, int);
typedef void (*png_progressive_end_ptr) (png_structp, png_infop);
typedef struct png_color_8_struct {
    png_byte red;
    png_byte green;
    png_byte blue;
    png_byte gray;
    png_byte alpha;
} png_color_8;
typedef png_color_8 *png_color_8p;
typedef long int png_int_32;
typedef char *png_charp;
typedef size_t png_size_t;
typedef struct png_text_struct {
    int compression;
    png_charp key;
    png_charp text;
    png_size_t text_length;
} png_text;
typedef png_text *png_textp;
typedef png_byte **png_bytepp;
typedef unsigned short png_uint_16;
typedef struct png_color_16_struct {
    png_byte index;
    png_uint_16 red;
    png_uint_16 green;
    png_uint_16 blue;
    png_uint_16 gray;
} png_color_16;
typedef png_color_16 *png_color_16p;
typedef struct png_color_struct {
    png_byte red;
    png_byte green;
    png_byte blue;
} png_color;
typedef png_color *png_colorp;
typedef const char *png_const_charp;
typedef void (*png_error_ptr) (png_structp, png_const_charp);
typedef void (*png_rw_ptr) (png_structp, png_bytep, png_size_t);
typedef struct png_time_struct {
    png_uint_16 year;
    png_byte month;
    png_byte day;
    png_byte hour;
    png_byte minute;
    png_byte second;
} png_time;
typedef png_time *png_timep;
typedef png_uint_16 *png_uint_16p;
typedef void (*png_flush_ptr) (png_structp);
typedef char **png_charpp;
typedef png_struct **png_structpp;
typedef png_info **png_infopp;
typedef FILE *png_FILE_p;
typedef struct png_row_info_struct {
    png_uint_32 width;
    png_uint_32 rowbytes;
    png_byte color_type;
    png_byte bit_depth;
    png_byte channels;
    png_byte pixel_depth;
} png_row_info;
typedef png_row_info *png_row_infop;
typedef png_structp version_1_2_8;
typedef png_uint_32 *png_uint_32p;
typedef png_uint_16 **png_uint_16pp;
typedef png_int_32 png_fixed_point;
typedef double *png_doublep;
typedef charf *png_zcharp;
typedef png_fixed_point *png_fixed_point_p;
typedef png_int_32 *png_int_32p;
typedef z_stream *png_zstreamp;
typedef short png_int_16;
typedef png_int_16 *png_int_16p;
typedef png_int_16 **png_int_16pp;
typedef png_int_32 **png_int_32pp;
typedef png_uint_32 **png_uint_32pp;
typedef charf **png_zcharpp;
typedef char ***png_charppp;
typedef const char **png_const_charpp;
typedef double **png_doublepp;
typedef png_colorp *png_colorpp;
typedef png_color_16p *png_color_16pp;
typedef png_color_8p *png_color_8pp;
typedef png_fixed_point **png_fixed_point_pp;
typedef png_row_info **png_row_infopp;
typedef png_textp *png_textpp;
typedef png_timep *png_timepp;
typedef void (*png_user_transform_ptr) (png_structp, png_row_infop,
					png_bytep);
typedef void (*png_read_status_ptr) (png_structp, png_uint_32, int);
typedef void (*png_write_status_ptr) (png_structp, png_uint_32, int);
typedef int (*png_user_chunk_ptr) (png_structp, png_unknown_chunkp);
typedef png_voidp(*png_malloc_ptr) (png_structp, png_size_t);
typedef void (*png_free_ptr) (png_structp, png_voidp);
extern png_uint_32 png_access_version_number(void);
extern int png_check_sig(png_bytep sig, int num);
extern void png_convert_from_struct_tm(png_timep ptime, struct tm *ttime);
extern void png_convert_from_time_t(png_timep ptime, time_t ttime);
extern png_infop png_create_info_struct(png_structp png_ptr);
extern png_structp png_create_read_struct(png_const_charp user_png_ver,
					  png_voidp error_ptr,
					  png_error_ptr error_fn,
					  png_error_ptr warn_fn);
extern png_structp png_create_read_struct_2(png_const_charp user_png_ver,
					    png_voidp error_ptr,
					    png_error_ptr error_fn,
					    png_error_ptr warn_fn,
					    png_voidp mem_ptr,
					    png_malloc_ptr malloc_fn,
					    png_free_ptr free_fn);
extern png_structp png_create_write_struct(png_const_charp user_png_ver,
					   png_voidp error_ptr,
					   png_error_ptr error_fn,
					   png_error_ptr warn_fn);
extern png_structp png_create_write_struct_2(png_const_charp user_png_ver,
					     png_voidp error_ptr,
					     png_error_ptr error_fn,
					     png_error_ptr warn_fn,
					     png_voidp mem_ptr,
					     png_malloc_ptr malloc_fn,
					     png_free_ptr free_fn);
extern void png_data_freer(png_structp png_ptr, png_infop info_ptr,
			   int freer, png_uint_32 mask);
extern void png_destroy_info_struct(png_structp png_ptr,
				    png_infopp info_ptr_ptr);
extern void png_destroy_read_struct(png_structpp png_ptr_ptr,
				    png_infopp info_ptr_ptr,
				    png_infopp end_info_ptr_ptr);
extern void png_destroy_write_struct(png_structpp png_ptr_ptr,
				     png_infopp info_ptr_ptr);
extern void png_error(png_structp png_ptr, png_const_charp error_message);
extern void png_free(png_structp png_ptr, png_voidp ptr);
extern void png_free_data(png_structp png_ptr, png_infop info_ptr,
			  png_uint_32 free_me, int num);
extern png_uint_32 png_get_IHDR(png_structp png_ptr, png_infop info_ptr,
				png_uint_32 * width, png_uint_32 * height,
				int *bit_depth, int *color_type,
				int *interlace_method,
				int *compression_method,
				int *filter_method);
extern png_uint_32 png_get_PLTE(png_structp png_ptr, png_infop info_ptr,
				png_colorp * palette, int *num_palette);
extern png_uint_32 png_get_bKGD(png_structp png_ptr, png_infop info_ptr,
				png_color_16p * background);
extern png_byte png_get_bit_depth(png_structp png_ptr, png_infop info_ptr);
extern png_uint_32 png_get_cHRM(png_structp png_ptr, png_infop info_ptr,
				double *white_x, double *white_y,
				double *red_x, double *red_y,
				double *green_x, double *green_y,
				double *blue_x, double *blue_y);
extern png_byte png_get_channels(png_structp png_ptr, png_infop info_ptr);
extern png_byte png_get_color_type(png_structp png_ptr,
				   png_infop info_ptr);
extern png_voidp png_get_error_ptr(png_structp png_ptr);
extern png_uint_32 png_get_gAMA(png_structp png_ptr, png_infop info_ptr,
				double *file_gamma);
extern png_uint_32 png_get_hIST(png_structp png_ptr, png_infop info_ptr,
				png_uint_16p * hist);
extern png_charp png_get_header_ver(png_structp png_ptr);
extern png_uint_32 png_get_iCCP(png_structp png_ptr, png_infop info_ptr,
				png_charpp name, int *compression_type,
				png_charpp profile, png_uint_32 * proflen);
extern png_uint_32 png_get_image_height(png_structp png_ptr,
					png_infop info_ptr);
extern png_uint_32 png_get_image_width(png_structp png_ptr,
				       png_infop info_ptr);
extern png_byte png_get_interlace_type(png_structp png_ptr,
				       png_infop info_ptr);
extern png_voidp png_get_io_ptr(png_structp png_ptr);
extern png_charp png_get_libpng_ver(png_structp png_ptr);
extern png_uint_32 png_get_oFFs(png_structp png_ptr, png_infop info_ptr,
				png_int_32 * offset_x,
				png_int_32 * offset_y, int *unit_type);
extern png_uint_32 png_get_pHYs(png_structp png_ptr, png_infop info_ptr,
				png_uint_32 * res_x, png_uint_32 * res_y,
				int *unit_type);
extern png_voidp png_get_progressive_ptr(png_structp png_ptr);
extern png_uint_32 png_get_rowbytes(png_structp png_ptr,
				    png_infop info_ptr);
extern png_bytepp png_get_rows(png_structp png_ptr, png_infop info_ptr);
extern png_uint_32 png_get_sBIT(png_structp png_ptr, png_infop info_ptr,
				png_color_8p * sig_bit);
extern png_uint_32 png_get_sRGB(png_structp png_ptr, png_infop info_ptr,
				int *intent);
extern png_uint_32 png_get_tIME(png_structp png_ptr, png_infop info_ptr,
				png_timep * mod_time);
extern png_uint_32 png_get_tRNS(png_structp png_ptr, png_infop info_ptr,
				png_bytep * trans, int *num_trans,
				png_color_16p * trans_values);
extern png_uint_32 png_get_text(png_structp png_ptr, png_infop info_ptr,
				png_textp * text_ptr, int *num_text);
extern png_uint_32 png_get_unknown_chunks(png_structp png_ptr,
					  png_infop info_ptr,
					  png_unknown_chunkpp entries);
extern png_voidp png_get_user_chunk_ptr(png_structp png_ptr);
extern png_uint_32 png_get_valid(png_structp png_ptr, png_infop info_ptr,
				 png_uint_32 flag);
extern png_int_32 png_get_x_offset_pixels(png_structp png_ptr,
					  png_infop info_ptr);
extern png_uint_32 png_get_x_pixels_per_meter(png_structp png_ptr,
					      png_infop info_ptr);
extern png_int_32 png_get_y_offset_pixels(png_structp png_ptr,
					  png_infop info_ptr);
extern png_uint_32 png_get_y_pixels_per_meter(png_structp png_ptr,
					      png_infop info_ptr);
extern void png_info_init_3(png_infopp info_ptr,
			    png_size_t png_info_struct_size);
extern void png_init_io(png_structp png_ptr, png_FILE_p fp);
extern const char png_libpng_ver[];
extern png_voidp png_malloc(png_structp png_ptr, png_uint_32 size);
extern png_uint_32 png_permit_mng_features(png_structp png_ptr,
					   png_uint_32
					   mng_features_permitted);
extern void png_process_data(png_structp png_ptr, png_infop info_ptr,
			     png_bytep buffer, png_size_t buffer_size);
extern void png_progressive_combine_row(png_structp png_ptr,
					png_bytep old_row,
					png_bytep new_row);
extern void png_read_end(png_structp png_ptr, png_infop info_ptr);
extern void png_read_image(png_structp png_ptr, png_bytepp image);
extern void png_read_info(png_structp png_ptr, png_infop info_ptr);
extern void png_read_png(png_structp png_ptr, png_infop info_ptr,
			 int transforms, voidp params);
extern void png_read_row(png_structp png_ptr, png_bytep row,
			 png_bytep display_row);
extern void png_read_rows(png_structp png_ptr, png_bytepp row,
			  png_bytepp display_row, png_uint_32 num_rows);
extern void png_read_update_info(png_structp png_ptr, png_infop info_ptr);
extern void png_set_IHDR(png_structp png_ptr, png_infop info_ptr,
			 png_uint_32 width, png_uint_32 height,
			 int bit_depth, int color_type,
			 int interlace_method, int compression_method,
			 int filter_method);
extern void png_set_PLTE(png_structp png_ptr, png_infop info_ptr,
			 png_colorp palette, int num_palette);
extern void png_set_bKGD(png_structp png_ptr, png_infop info_ptr,
			 png_color_16p background);
extern void png_set_background(png_structp png_ptr,
			       png_color_16p background_color,
			       int background_gamma_code, int need_expand,
			       double background_gamma);
extern void png_set_bgr(png_structp png_ptr);
extern void png_set_cHRM(png_structp png_ptr, png_infop info_ptr,
			 double white_x, double white_y, double red_x,
			 double red_y, double green_x, double green_y,
			 double blue_x, double blue_y);
extern void png_set_compression_buffer_size(png_structp png_ptr,
					    png_uint_32 size);
extern void png_set_compression_level(png_structp png_ptr, int level);
extern void png_set_compression_mem_level(png_structp png_ptr,
					  int mem_level);
extern void png_set_compression_method(png_structp png_ptr, int method);
extern void png_set_compression_strategy(png_structp png_ptr,
					 int strategy);
extern void png_set_compression_window_bits(png_structp png_ptr,
					    int window_bits);
extern void png_set_dither(png_structp png_ptr, png_colorp palette,
			   int num_palette, int maximum_colors,
			   png_uint_16p histogram, int full_dither);
extern void png_set_error_fn(png_structp png_ptr, png_voidp error_ptr,
			     png_error_ptr error_fn,
			     png_error_ptr warning_fn);
extern void png_set_expand(png_structp png_ptr);
extern void png_set_filler(png_structp png_ptr, png_uint_32 filler,
			   int flags);
extern void png_set_filter(png_structp png_ptr, int method, int filters);
extern void png_set_gAMA(png_structp png_ptr, png_infop info_ptr,
			 double file_gamma);
extern void png_set_gamma(png_structp png_ptr, double screen_gamma,
			  double default_file_gamma);
extern void png_set_gray_1_2_4_to_8(png_structp png_ptr);
extern void png_set_gray_to_rgb(png_structp png_ptr);
extern void png_set_hIST(png_structp png_ptr, png_infop info_ptr,
			 png_uint_16p hist);
extern void png_set_iCCP(png_structp png_ptr, png_infop info_ptr,
			 png_charp name, int compression_type,
			 png_charp profile, png_uint_32 proflen);
extern int png_set_interlace_handling(png_structp png_ptr);
extern void png_set_invert_alpha(png_structp png_ptr);
extern void png_set_invert_mono(png_structp png_ptr);
extern void png_set_keep_unknown_chunks(png_structp png_ptr, int keep,
					png_bytep chunk_list,
					int num_chunks);
extern void png_set_mem_fn(png_structp png_ptr, png_voidp mem_ptr,
			   png_malloc_ptr malloc_fn, png_free_ptr free_fn);
extern void png_set_oFFs(png_structp png_ptr, png_infop info_ptr,
			 png_int_32 offset_x, png_int_32 offset_y,
			 int unit_type);
extern void png_set_pHYs(png_structp png_ptr, png_infop info_ptr,
			 png_uint_32 res_x, png_uint_32 res_y,
			 int unit_type);
extern void png_set_packing(png_structp png_ptr);
extern void png_set_packswap(png_structp png_ptr);
extern void png_set_palette_to_rgb(png_structp png_ptr);
extern void png_set_progressive_read_fn(png_structp png_ptr,
					png_voidp progressive_ptr,
					png_progressive_info_ptr info_fn,
					png_progressive_row_ptr row_fn,
					png_progressive_end_ptr end_fn);
extern void png_set_read_fn(png_structp png_ptr, png_voidp io_ptr,
			    png_rw_ptr read_data_fn);
extern void png_set_read_user_chunk_fn(png_structp png_ptr,
				       png_voidp user_chunk_ptr,
				       png_user_chunk_ptr
				       read_user_chunk_fn);
extern void png_set_read_user_transform_fn(png_structp png_ptr,
					   png_user_transform_ptr
					   read_user_transform_fn);
extern void png_set_rgb_to_gray(png_structp png_ptr, int error_action,
				double red, double green);
extern void png_set_rows(png_structp png_ptr, png_infop info_ptr,
			 png_bytepp row_pointers);
extern void png_set_sBIT(png_structp png_ptr, png_infop info_ptr,
			 png_color_8p sig_bit);
extern void png_set_sRGB(png_structp png_ptr, png_infop info_ptr,
			 int intent);
extern void png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr,
				       png_infop info_ptr, int intent);
extern void png_set_shift(png_structp png_ptr, png_color_8p true_bits);
extern void png_set_sig_bytes(png_structp png_ptr, int num_bytes);
extern void png_set_strip_16(png_structp png_ptr);
extern void png_set_strip_alpha(png_structp png_ptr);
extern void png_set_swap(png_structp png_ptr);
extern void png_set_swap_alpha(png_structp png_ptr);
extern void png_set_tIME(png_structp png_ptr, png_infop info_ptr,
			 png_timep mod_time);
extern void png_set_tRNS(png_structp png_ptr, png_infop info_ptr,
			 png_bytep trans, int num_trans,
			 png_color_16p trans_values);
extern void png_set_tRNS_to_alpha(png_structp png_ptr);
extern void png_set_text(png_structp png_ptr, png_infop info_ptr,
			 png_textp text_ptr, int num_text);
extern void png_set_unknown_chunk_location(png_structp png_ptr,
					   png_infop info_ptr, int chunk,
					   int location);
extern void png_set_unknown_chunks(png_structp png_ptr, png_infop info_ptr,
				   png_unknown_chunkp unknowns,
				   int num_unknowns);
extern void png_set_write_fn(png_structp png_ptr, png_voidp io_ptr,
			     png_rw_ptr write_data_fn,
			     png_flush_ptr output_flush_fn);
extern void png_set_write_status_fn(png_structp png_ptr,
				    png_write_status_ptr write_row_fn);
extern void png_set_write_user_transform_fn(png_structp png_ptr,
					    png_user_transform_ptr
					    write_user_transform_fn);
extern int png_sig_cmp(png_bytep sig, png_size_t start,
		       png_size_t num_to_check);
extern void png_start_read_image(png_structp png_ptr);
extern void png_warning(png_structp png_ptr,
			png_const_charp warning_message);
extern void png_write_chunk(png_structp png_ptr, png_bytep chunk_name,
			    png_bytep data, png_size_t length);
extern void png_write_end(png_structp png_ptr, png_infop info_ptr);
extern void png_write_flush(png_structp png_ptr);
extern void png_write_image(png_structp png_ptr, png_bytepp image);
extern void png_write_info(png_structp png_ptr, png_infop info_ptr);
extern void png_write_png(png_structp png_ptr, png_infop info_ptr,
			  int transforms, voidp params);
extern void png_write_row(png_structp png_ptr, png_bytep row);
extern void png_write_rows(png_structp png_ptr, png_bytepp row,
			   png_uint_32 num_rows);

8.3. Interface Definitions for libpng12

Table of Contents
png_access_version_number -- return version of the run-time library
png_check_sig -- INSERT PURPOSE HERE
png_convert_from_struct_tm -- convert struct tm to png_time
png_convert_from_time_t -- convert time_t to png_time
png_create_info_struct -- allocate and initialize a png_info structure
png_create_read_struct -- allocate and initialize a png_struct structure for reading PNG file
png_create_read_struct_2 -- register custom read function
png_create_write_struct -- allocate and initialize a png_struct structure for writing PNG file
png_create_write_struct_2 -- register custom write function
png_data_freer -- change the default behavior for freeing data
png_destroy_info_struct -- free memory in PNG info structure
png_destroy_read_struct -- free the memory associated with read png_struct
png_destroy_write_struct -- free the memory associated with write png_struct
png_error -- default function to handle fatal errors
png_free -- free a pointer allocated by png_malloc()
png_free_data -- free internally allocated data
png_get_IHDR -- get PNG_IHDR chunk information from png_info structure
png_get_PLTE -- get image palette information from png_info structure
png_get_bKGD -- get background color for given image
png_get_bit_depth -- return image bit_depth
png_get_cHRM -- get CIE chromacities and referenced white point for given image
png_get_channels -- get number of color channels in image
png_get_color_type -- return image color type
png_get_error_ptr -- return error_ptr for user-defined functions
png_get_gAMA -- get the gamma value for given image
png_get_hIST -- get the histogram for given image
png_get_header_ver -- get version information for libpng header files
png_get_iCCP -- get the embedded ICC profile data for given image
png_get_image_height -- return image height
png_get_image_width -- return image width
png_get_interlace_type -- returns interlace method
png_get_io_ptr -- return pointer for user-defined I/O
png_get_libpng_ver -- get the library version string
png_get_oFFs -- get screen offsets for the given image
png_get_pHYs -- get the physical resolution for given image
png_get_progressive_ptr -- return pointer to user-defined push read functions
png_get_rowbytes -- Return number of bytes for a row
png_get_rows -- retrieve image data from png_info structure
png_get_sBIT -- get number of significant bits for each color channel
png_get_sRGB -- get the rendering intent for given image
png_get_tIME -- get last modification time for the image
png_get_tRNS -- get transparency data for images
png_get_text -- get comments information from png_info structure
png_get_unknown_chunks -- retrieve the unknown chunks from a PNG file
png_get_user_chunk_ptr -- get pointer to user chunk data
png_get_valid -- determine if given chunk data is valid
png_get_x_offset_pixels -- return x offset in pixels from oFFs chunk
png_get_x_pixels_per_meter -- return horizontal pixel density per meter
png_get_y_offset_pixels -- return y offset in pixels from oFFs chunk
png_get_y_pixels_per_meter -- return vertical pixel density per meter
png_info_init_3 -- initialize an info structure (DEPRECATED)
png_init_io -- initialize input/output for the PNG file
png_libpng_ver -- external variable holding version number of libpng
png_malloc -- allocate memory
png_permit_mng_features -- enable MNG extensions for PNG image wrapped in MNG datastream
png_process_data -- read PNG file progressively
png_progressive_combine_row -- combines current row data with processed row
png_read_end -- read the end of PNG file
png_read_image -- read the entire image into memory
png_read_info -- read the PNG image information
png_read_png -- read the entire PNG file
png_read_row -- read a row of image data
png_read_rows -- read multiple rows of image data
png_read_update_info -- update png_info structure
png_set_IHDR -- set the PNG_IHDR chunk information
png_set_PLTE -- set color values for the palette
png_set_bKGD -- set the background color for given image
png_set_background -- set the background for given image
png_set_bgr -- set pixel order to blue, green, red
png_set_cHRM -- set CIE chromacities and referenced white point for given image
png_set_compression_buffer_size -- set the size of the compression buffer
png_set_compression_level -- set image compression level
png_set_compression_mem_level -- set how much memory to use for the internal state during PNG compression
png_set_compression_method -- set PNG compression algorithm
png_set_compression_strategy -- set PNG compression strategy
png_set_compression_window_bits -- set PNG compression window size
png_set_dither -- turn on dithering to 8-bit
png_set_error_fn -- set user defined functions for error handling
png_set_expand -- set expansion transformation
png_set_filler -- add a filler byte to given image
png_set_filter -- set filtering method
png_set_gAMA -- set the gamma value for given image
png_set_gamma -- transform the image from file gamma to screen gamma
png_set_gray_1_2_4_to_8 -- set expansion transformation
png_set_gray_to_rgb -- expand the grayscale image to 24-bit RGB
png_set_hIST -- set the histogram of color palette
png_set_iCCP -- set ICC component
png_set_interlace_handling -- get the number of passes for image interlacing
png_set_invert_alpha -- invert the level of opacity of a PNG file
png_set_invert_mono -- reverse values for monochromicity
png_set_keep_unknown_chunks -- specify list of chunks and how to handle them
png_set_mem_fn -- install custom memory allocation functions
png_set_oFFs -- set screen offsets for given image
png_set_pHYs -- set physical resolution
png_set_packing -- expand image to 1 pixel per byte for bit-depths 1,2 and 4
png_set_packswap -- swap the order of pixels for packed-pixel image
png_set_palette_to_rgb -- set expansion transformation
png_set_progressive_read_fn -- set progressive read callback functions
png_set_read_fn -- set user-defined function for reading a PNG stream
png_set_read_user_chunk_fn -- install custom callback function to handle unknown chunks in the input stream
png_set_read_user_transform_fn -- install a custom input transformation callback function
png_set_rgb_to_gray -- reduce 24-bit RGB to grayscale image
png_set_rows -- put image data in png_info structure
png_set_sBIT -- set number of significant bits for each channel
png_set_sRGB -- set the rendering intent for given image
png_set_sRGB_gAMA_and_cHRM -- set rendering intent, gamma values, and CIE chromaticities of a PNG file
png_set_shift -- shift pixel values to valid bit-depth
png_set_sig_bytes -- number of bytes read from PNG file
png_set_strip_16 -- strip 16 bit PNG file to 8 bit depth
png_set_strip_alpha -- remove alpha channel on the given image
png_set_swap -- swap byte-order for 16 bit depth files
png_set_swap_alpha -- swap image data from RGBA to ARGB format
png_set_tIME -- set last modification time for the image
png_set_tRNS --&nb