├── .gitignore ├── CMakeLists.txt ├── README.md ├── aarch64_linux_gnu.cmake ├── build.sh ├── cmake_install.cmake ├── main_gbm.cpp ├── main_wayland.cpp └── native ├── include ├── CL │ ├── cl.h │ ├── cl.hpp │ ├── cl_d3d10.h │ ├── cl_d3d11.h │ ├── cl_dx9_media_sharing.h │ ├── cl_egl.h │ ├── cl_ext.h │ ├── cl_gl.h │ ├── cl_gl_ext.h │ ├── cl_platform.h │ └── opencl.h ├── CL_1_2 │ └── CL │ │ ├── cl.h │ │ ├── cl_d3d10.h │ │ ├── cl_d3d11.h │ │ ├── cl_dx9_media_sharing.h │ │ ├── cl_egl.h │ │ ├── cl_ext.h │ │ ├── cl_gl.h │ │ ├── cl_gl_ext.h │ │ ├── cl_platform.h │ │ └── opencl.h ├── CL_2_0 │ └── CL │ │ ├── cl.h │ │ ├── cl.hpp │ │ ├── cl2.hpp │ │ ├── cl_d3d10.h │ │ ├── cl_d3d11.h │ │ ├── cl_dx9_media_sharing.h │ │ ├── cl_egl.h │ │ ├── cl_ext.h │ │ ├── cl_gl.h │ │ ├── cl_gl_ext.h │ │ ├── cl_platform.h │ │ └── opencl.h ├── EGLs │ ├── origin │ │ └── EGL │ │ │ ├── egl.h │ │ │ ├── eglext.h │ │ │ └── eglplatform.h │ ├── winsys_dummy │ │ └── EGL │ │ │ ├── egl.h │ │ │ ├── eglext.h │ │ │ └── eglplatform.h │ ├── winsys_fbdev │ │ └── EGL │ │ │ ├── egl.h │ │ │ ├── eglext.h │ │ │ ├── eglplatform.h │ │ │ └── mali_fbdev_types.h │ ├── winsys_gbm │ │ └── EGL │ │ │ ├── egl.h │ │ │ ├── eglext.h │ │ │ └── eglplatform.h │ ├── winsys_wayland │ │ ├── EGL │ │ │ ├── egl.h │ │ │ ├── eglext.h │ │ │ └── eglplatform.h │ │ └── weston-egl-ext.h │ └── winsys_x11 │ │ └── EGL │ │ ├── egl.h │ │ ├── eglext.h │ │ └── eglplatform.h ├── GLES │ ├── egl.h │ ├── gl.h │ ├── glext.h │ └── glplatform.h ├── GLES2 │ ├── gl2.h │ ├── gl2ext.h │ └── gl2platform.h ├── GLES3 │ ├── gl3.h │ ├── gl31.h │ ├── gl32.h │ └── gl3platform.h ├── KHR │ └── khrplatform.h ├── X11 │ ├── DECkeysym.h │ ├── HPkeysym.h │ ├── ImUtil.h │ ├── Sunkeysym.h │ ├── X.h │ ├── XF86keysym.h │ ├── XKBlib.h │ ├── XWDFile.h │ ├── Xalloca.h │ ├── Xarch.h │ ├── Xatom.h │ ├── Xauth.h │ ├── Xcms.h │ ├── Xdefs.h │ ├── Xdmcp.h │ ├── Xfuncproto.h │ ├── Xfuncs.h │ ├── Xlib-xcb.h │ ├── Xlib.h │ ├── XlibConf.h │ ├── Xlibint.h │ ├── Xlocale.h │ ├── Xmd.h │ ├── Xos.h │ ├── Xos_r.h │ ├── Xosdefs.h │ ├── Xpoll.h │ ├── Xproto.h │ ├── Xprotostr.h │ ├── Xregion.h │ ├── Xresource.h │ ├── Xthreads.h │ ├── Xtrans │ │ ├── Xtrans.c │ │ ├── Xtrans.h │ │ ├── Xtransint.h │ │ ├── Xtranslcl.c │ │ ├── Xtranssock.c │ │ ├── Xtransutil.c │ │ └── transport.c │ ├── Xutil.h │ ├── Xw32defs.h │ ├── Xwindows.h │ ├── Xwinsock.h │ ├── ap_keysym.h │ ├── cursorfont.h │ ├── dri │ │ ├── xf86dri.h │ │ ├── xf86driproto.h │ │ └── xf86dristr.h │ ├── extensions │ │ ├── EVI.h │ │ ├── EVIproto.h │ │ ├── MITMisc.h │ │ ├── XEVI.h │ │ ├── XI.h │ │ ├── XI2.h │ │ ├── XI2proto.h │ │ ├── XIproto.h │ │ ├── XKB.h │ │ ├── XKBbells.h │ │ ├── XKBconfig.h │ │ ├── XKBfile.h │ │ ├── XKBgeom.h │ │ ├── XKBproto.h │ │ ├── XKBrules.h │ │ ├── XKBsrv.h │ │ ├── XKBstr.h │ │ ├── XKM.h │ │ ├── XKMformat.h │ │ ├── XLbx.h │ │ ├── XResproto.h │ │ ├── XShm.h │ │ ├── Xag.h │ │ ├── Xcomposite.h │ │ ├── Xcup.h │ │ ├── Xdamage.h │ │ ├── Xdbe.h │ │ ├── Xeviestr.h │ │ ├── Xext.h │ │ ├── Xfixes.h │ │ ├── Xge.h │ │ ├── Xinerama.h │ │ ├── Xrandr.h │ │ ├── Xrender.h │ │ ├── Xv.h │ │ ├── XvMC.h │ │ ├── XvMClib.h │ │ ├── XvMCproto.h │ │ ├── Xvlib.h │ │ ├── Xvproto.h │ │ ├── ag.h │ │ ├── agproto.h │ │ ├── bigreqsproto.h │ │ ├── bigreqstr.h │ │ ├── composite.h │ │ ├── compositeproto.h │ │ ├── cup.h │ │ ├── cupproto.h │ │ ├── damageproto.h │ │ ├── damagewire.h │ │ ├── dbe.h │ │ ├── dbeproto.h │ │ ├── dpms.h │ │ ├── dpmsconst.h │ │ ├── dpmsproto.h │ │ ├── dri2proto.h │ │ ├── dri2tokens.h │ │ ├── evieproto.h │ │ ├── extutil.h │ │ ├── ge.h │ │ ├── geproto.h │ │ ├── lbx.h │ │ ├── lbxproto.h │ │ ├── mitmiscconst.h │ │ ├── mitmiscproto.h │ │ ├── multibuf.h │ │ ├── multibufconst.h │ │ ├── multibufproto.h │ │ ├── panoramiXext.h │ │ ├── panoramiXproto.h │ │ ├── presentproto.h │ │ ├── presenttokens.h │ │ ├── randr.h │ │ ├── randrproto.h │ │ ├── render.h │ │ ├── renderproto.h │ │ ├── saver.h │ │ ├── saverproto.h │ │ ├── secur.h │ │ ├── security.h │ │ ├── securproto.h │ │ ├── shape.h │ │ ├── shapeconst.h │ │ ├── shapeproto.h │ │ ├── shapestr.h │ │ ├── shm.h │ │ ├── shmproto.h │ │ ├── shmstr.h │ │ ├── sync.h │ │ ├── syncconst.h │ │ ├── syncproto.h │ │ ├── syncstr.h │ │ ├── vldXvMC.h │ │ ├── xcmiscproto.h │ │ ├── xcmiscstr.h │ │ ├── xf86dga.h │ │ ├── xf86dga1const.h │ │ ├── xf86dga1proto.h │ │ ├── xf86dga1str.h │ │ ├── xf86dgaconst.h │ │ ├── xf86dgaproto.h │ │ ├── xf86dgastr.h │ │ ├── xf86vm.h │ │ ├── xf86vmode.h │ │ ├── xf86vmproto.h │ │ ├── xf86vmstr.h │ │ ├── xfixesproto.h │ │ ├── xfixeswire.h │ │ ├── xtestconst.h │ │ ├── xtestext1.h │ │ ├── xtestext1const.h │ │ ├── xtestext1proto.h │ │ └── xtestproto.h │ ├── fonts │ │ ├── FS.h │ │ ├── FSproto.h │ │ ├── bdfint.h │ │ ├── bitmap.h │ │ ├── bufio.h │ │ ├── fntfil.h │ │ ├── fntfilio.h │ │ ├── fntfilst.h │ │ ├── font.h │ │ ├── fontconf.h │ │ ├── fontenc.h │ │ ├── fontencc.h │ │ ├── fontmisc.h │ │ ├── fontproto.h │ │ ├── fontshow.h │ │ ├── fontstruct.h │ │ ├── fontutil.h │ │ ├── fontxlfd.h │ │ ├── fsmasks.h │ │ ├── ft.h │ │ ├── ftfuncs.h │ │ └── pcf.h │ ├── keysym.h │ └── keysymdef.h ├── drm.h ├── drm_mode.h ├── gbm.h ├── xcb │ ├── bigreq.h │ ├── composite.h │ ├── damage.h │ ├── dpms.h │ ├── dri2.h │ ├── dri3.h │ ├── glx.h │ ├── present.h │ ├── randr.h │ ├── record.h │ ├── render.h │ ├── res.h │ ├── screensaver.h │ ├── shape.h │ ├── shm.h │ ├── sync.h │ ├── xc_misc.h │ ├── xcb.h │ ├── xcbext.h │ ├── xevie.h │ ├── xf86dri.h │ ├── xfixes.h │ ├── xinerama.h │ ├── xinput.h │ ├── xkb.h │ ├── xprint.h │ ├── xproto.h │ ├── xselinux.h │ ├── xtest.h │ ├── xv.h │ └── xvmc.h ├── xf86drm.h ├── xf86drmMode.h └── xorg │ ├── BT.h │ ├── IBM.h │ ├── TI.h │ ├── XIstubs.h │ ├── Xprintf.h │ ├── callback.h │ ├── client.h │ ├── closestr.h │ ├── closure.h │ ├── colormap.h │ ├── colormapst.h │ ├── compiler.h │ ├── compositeext.h │ ├── cursor.h │ ├── cursorstr.h │ ├── damage.h │ ├── damagestr.h │ ├── dbestruct.h │ ├── dgaproc.h │ ├── dix.h │ ├── dixaccess.h │ ├── dixevents.h │ ├── dixfont.h │ ├── dixfontstr.h │ ├── dixgrabs.h │ ├── dixstruct.h │ ├── dri2.h │ ├── edid.h │ ├── events.h │ ├── exa.h │ ├── exevents.h │ ├── extension.h │ ├── extinit.h │ ├── extnsionst.h │ ├── fb.h │ ├── fbdevhw.h │ ├── fboverlay.h │ ├── fbpict.h │ ├── fbrop.h │ ├── fourcc.h │ ├── gc.h │ ├── gcstruct.h │ ├── geext.h │ ├── geint.h │ ├── globals.h │ ├── glx_extinit.h │ ├── glyphstr.h │ ├── hotplug.h │ ├── i2c_def.h │ ├── input.h │ ├── inputstr.h │ ├── list.h │ ├── mi.h │ ├── micmap.h │ ├── micoord.h │ ├── migc.h │ ├── miline.h │ ├── mioverlay.h │ ├── mipict.h │ ├── mipointer.h │ ├── mipointrst.h │ ├── misc.h │ ├── miscstruct.h │ ├── mistruct.h │ ├── misync.h │ ├── misyncfd.h │ ├── misyncshm.h │ ├── misyncstr.h │ ├── mizerarc.h │ ├── opaque.h │ ├── optionstr.h │ ├── os.h │ ├── panoramiX.h │ ├── panoramiXsrv.h │ ├── picture.h │ ├── picturestr.h │ ├── pixmap.h │ ├── pixmapstr.h │ ├── present.h │ ├── presentext.h │ ├── privates.h │ ├── property.h │ ├── propertyst.h │ ├── ptrveloc.h │ ├── randrstr.h │ ├── region.h │ ├── regionstr.h │ ├── registry.h │ ├── resource.h │ ├── rgb.h │ ├── rrtransform.h │ ├── screenint.h │ ├── scrnintstr.h │ ├── selection.h │ ├── servermd.h │ ├── shadow.h │ ├── shadowfb.h │ ├── shmint.h │ ├── site.h │ ├── swaprep.h │ ├── swapreq.h │ ├── syncsdk.h │ ├── validate.h │ ├── vbe.h │ ├── vbeModes.h │ ├── vgaHW.h │ ├── vidmodeproc.h │ ├── wfbrename.h │ ├── window.h │ ├── windowstr.h │ ├── xaarop.h │ ├── xace.h │ ├── xacestr.h │ ├── xf86-mouse-properties.h │ ├── xf86.h │ ├── xf86Crtc.h │ ├── xf86Cursor.h │ ├── xf86DDC.h │ ├── xf86Modes.h │ ├── xf86Module.h │ ├── xf86Opt.h │ ├── xf86Optionstr.h │ ├── xf86Optrec.h │ ├── xf86Parser.h │ ├── xf86Pci.h │ ├── xf86PciInfo.h │ ├── xf86Priv.h │ ├── xf86Privstr.h │ ├── xf86RamDac.h │ ├── xf86RandR12.h │ ├── xf86VGAarbiter.h │ ├── xf86Xinput.h │ ├── xf86_OSlib.h │ ├── xf86_OSproc.h │ ├── xf86cmap.h │ ├── xf86fbman.h │ ├── xf86i2c.h │ ├── xf86int10.h │ ├── xf86platformBus.h │ ├── xf86sbusBus.h │ ├── xf86str.h │ ├── xf86xv.h │ ├── xf86xvmc.h │ ├── xf86xvpriv.h │ ├── xfixes.h │ ├── xisb.h │ ├── xkbfile.h │ ├── xkbrules.h │ ├── xkbsrv.h │ ├── xkbstr.h │ ├── xorg-server.h │ ├── xorgVersion.h │ ├── xserver-properties.h │ ├── xvdix.h │ └── xvmcext.h └── lib ├── README.md ├── libdrm.so ├── libdrm.so.2 ├── libmali-gbm.so ├── libmali-wayland.so ├── libmali-x11.so └── libmali ├── libmali.so_gbm_opencl_r13p0_aarch64 ├── libmali.so_wayland_gbm_opencl_r13p0_aarch64 ├── libmali.so_wayland_gbm_opencl_r13p0_arm32 ├── libmali.so_x11_gbm_opencl_r13p0_aarch64 └── libmali.so_x11_gbm_opencl_r13p0_arm32 /.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | cmake-build-debug/ 3 | .idea/ 4 | CMakeFiles/ 5 | CMakeCache.txt 6 | glsample 7 | glsample.cbp 8 | glsample_gbm 9 | glsample_wl 10 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | project(glsample) 3 | 4 | set(CMAKE_CXX_STANDARD 11) 5 | 6 | include_directories(./native/include) 7 | 8 | link_directories(./native/lib) 9 | 10 | add_executable(glsample_gbm main_gbm.cpp) 11 | add_executable(glsample_wl main_wayland.cpp) 12 | 13 | target_include_directories(glsample_gbm PUBLIC ./native/include/EGLs/winsys_gbm) 14 | target_include_directories(glsample_wl PUBLIC ./native/include/EGLs/winsys_wayland) 15 | 16 | target_link_libraries(glsample_gbm mali-gbm drm) 17 | target_link_libraries(glsample_wl mali-wayland drm) -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Opengl via libdrm sample 2 | ## Build: 3 | 4 | 1. building in target borad: 5 | cmake . 6 | make 7 | 8 | 2. building in cross-compiling env 9 | cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./aarch64_linux_gnu.cmake 10 | make 11 | (also you can run build.sh) 12 | 13 | ## Depandency Libarary 14 | 15 | * libdrm.so (libdrm-rockchip) 16 | * libmali.so (libmali.so_gbm_opencl_r13p0_aarch64) 17 | 18 | ## Note: 19 | 20 | You can find more infomation as below:
21 | http://stackoverflow.com/questions/23139886/how-to-create-opengl-context-via-drm-linux
22 | 23 | Here is another sample:
24 | https://github.com/robclark/kmscube.git
25 | 26 | And anothre:
27 | https://github.com/glmark2/glmark2
28 | -------------------------------------------------------------------------------- /aarch64_linux_gnu.cmake: -------------------------------------------------------------------------------- 1 | SET(CMAKE_SYSTEM_NAME Linux) 2 | SET(CMAKE_C_COMPILER "aarch64-linux-gnu-gcc") 3 | SET(CMAKE_CXX_COMPILER "aarch64-linux-gnu-g++") 4 | SET(CMAKE_SYSTEM_PROCESSOR "armv8") 5 | 6 | add_definitions(-fPIC) 7 | add_definitions(-DARMLINUX) -------------------------------------------------------------------------------- /build.sh: -------------------------------------------------------------------------------- 1 | rm -f CMakeCache.txt 2 | cmake -DCMAKE_BUILD_TYPE=Release \ 3 | -DCMAKE_TOOLCHAIN_FILE=./aarch64_linux_gnu.cmake 4 | 5 | make -j2 6 | -------------------------------------------------------------------------------- /cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/zhanghao/Workspace/Rockchip/rk3399_opengl_sample 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Release") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "1") 33 | endif() 34 | 35 | if(CMAKE_INSTALL_COMPONENT) 36 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 37 | else() 38 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 39 | endif() 40 | 41 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 42 | "${CMAKE_INSTALL_MANIFEST_FILES}") 43 | file(WRITE "/home/zhanghao/Workspace/Rockchip/rk3399_opengl_sample/${CMAKE_INSTALL_MANIFEST}" 44 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 45 | -------------------------------------------------------------------------------- /main_wayland.cpp: -------------------------------------------------------------------------------- 1 | 2 | int main() { 3 | 4 | } -------------------------------------------------------------------------------- /native/include/CL/cl_gl_ext.h: -------------------------------------------------------------------------------- 1 | /********************************************************************************** 2 | * Copyright (c) 2008-2012 The Khronos Group Inc. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and/or associated documentation files (the 6 | * "Materials"), to deal in the Materials without restriction, including 7 | * without limitation the rights to use, copy, modify, merge, publish, 8 | * distribute, sublicense, and/or sell copies of the Materials, and to 9 | * permit persons to whom the Materials are furnished to do so, subject to 10 | * the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included 13 | * in all copies or substantial portions of the Materials. 14 | * 15 | * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 22 | **********************************************************************************/ 23 | 24 | /* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */ 25 | 26 | /* cl_gl_ext.h contains vendor (non-KHR) OpenCL extensions which have */ 27 | /* OpenGL dependencies. */ 28 | 29 | #ifndef __OPENCL_CL_GL_EXT_H 30 | #define __OPENCL_CL_GL_EXT_H 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | #ifdef __APPLE__ 37 | #include 38 | #else 39 | #include 40 | #endif 41 | 42 | /* 43 | * For each extension, follow this template 44 | * cl_VEN_extname extension */ 45 | /* #define cl_VEN_extname 1 46 | * ... define new types, if any 47 | * ... define new tokens, if any 48 | * ... define new APIs, if any 49 | * 50 | * If you need GLtypes here, mirror them with a cl_GLtype, rather than including a GL header 51 | * This allows us to avoid having to decide whether to include GL headers or GLES here. 52 | */ 53 | 54 | /* 55 | * cl_khr_gl_event extension 56 | * See section 9.9 in the OpenCL 1.1 spec for more information 57 | */ 58 | #define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D 59 | 60 | extern CL_API_ENTRY cl_event CL_API_CALL 61 | clCreateEventFromGLsyncKHR(cl_context /* context */, 62 | cl_GLsync /* cl_GLsync */, 63 | cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1; 64 | 65 | #ifdef __cplusplus 66 | } 67 | #endif 68 | 69 | #endif /* __OPENCL_CL_GL_EXT_H */ 70 | -------------------------------------------------------------------------------- /native/include/CL/opencl.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2008-2012 The Khronos Group Inc. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and/or associated documentation files (the 6 | * "Materials"), to deal in the Materials without restriction, including 7 | * without limitation the rights to use, copy, modify, merge, publish, 8 | * distribute, sublicense, and/or sell copies of the Materials, and to 9 | * permit persons to whom the Materials are furnished to do so, subject to 10 | * the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included 13 | * in all copies or substantial portions of the Materials. 14 | * 15 | * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 22 | ******************************************************************************/ 23 | 24 | /* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */ 25 | 26 | #ifndef __OPENCL_H 27 | #define __OPENCL_H 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | #ifdef __APPLE__ 34 | 35 | #include 36 | #include 37 | #include 38 | #include 39 | 40 | #else 41 | 42 | #include 43 | #include 44 | #include 45 | #include 46 | 47 | #endif 48 | 49 | #ifdef __cplusplus 50 | } 51 | #endif 52 | 53 | #endif /* __OPENCL_H */ 54 | 55 | -------------------------------------------------------------------------------- /native/include/CL_1_2/CL/cl_gl_ext.h: -------------------------------------------------------------------------------- 1 | /********************************************************************************** 2 | * Copyright (c) 2008-2012 The Khronos Group Inc. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and/or associated documentation files (the 6 | * "Materials"), to deal in the Materials without restriction, including 7 | * without limitation the rights to use, copy, modify, merge, publish, 8 | * distribute, sublicense, and/or sell copies of the Materials, and to 9 | * permit persons to whom the Materials are furnished to do so, subject to 10 | * the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included 13 | * in all copies or substantial portions of the Materials. 14 | * 15 | * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 22 | **********************************************************************************/ 23 | 24 | /* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */ 25 | 26 | /* cl_gl_ext.h contains vendor (non-KHR) OpenCL extensions which have */ 27 | /* OpenGL dependencies. */ 28 | 29 | #ifndef __OPENCL_CL_GL_EXT_H 30 | #define __OPENCL_CL_GL_EXT_H 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | #ifdef __APPLE__ 37 | #include 38 | #else 39 | #include 40 | #endif 41 | 42 | /* 43 | * For each extension, follow this template 44 | * cl_VEN_extname extension */ 45 | /* #define cl_VEN_extname 1 46 | * ... define new types, if any 47 | * ... define new tokens, if any 48 | * ... define new APIs, if any 49 | * 50 | * If you need GLtypes here, mirror them with a cl_GLtype, rather than including a GL header 51 | * This allows us to avoid having to decide whether to include GL headers or GLES here. 52 | */ 53 | 54 | /* 55 | * cl_khr_gl_event extension 56 | * See section 9.9 in the OpenCL 1.1 spec for more information 57 | */ 58 | #define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D 59 | 60 | extern CL_API_ENTRY cl_event CL_API_CALL 61 | clCreateEventFromGLsyncKHR(cl_context /* context */, 62 | cl_GLsync /* cl_GLsync */, 63 | cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1; 64 | 65 | #ifdef __cplusplus 66 | } 67 | #endif 68 | 69 | #endif /* __OPENCL_CL_GL_EXT_H */ 70 | -------------------------------------------------------------------------------- /native/include/CL_1_2/CL/opencl.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2008-2012 The Khronos Group Inc. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and/or associated documentation files (the 6 | * "Materials"), to deal in the Materials without restriction, including 7 | * without limitation the rights to use, copy, modify, merge, publish, 8 | * distribute, sublicense, and/or sell copies of the Materials, and to 9 | * permit persons to whom the Materials are furnished to do so, subject to 10 | * the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included 13 | * in all copies or substantial portions of the Materials. 14 | * 15 | * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 22 | ******************************************************************************/ 23 | 24 | /* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */ 25 | 26 | #ifndef __OPENCL_H 27 | #define __OPENCL_H 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | #ifdef __APPLE__ 34 | 35 | #include 36 | #include 37 | #include 38 | #include 39 | 40 | #else 41 | 42 | #include 43 | #include 44 | #include 45 | #include 46 | 47 | #endif 48 | 49 | #ifdef __cplusplus 50 | } 51 | #endif 52 | 53 | #endif /* __OPENCL_H */ 54 | -------------------------------------------------------------------------------- /native/include/CL_2_0/CL/cl_gl_ext.h: -------------------------------------------------------------------------------- 1 | /********************************************************************************** 2 | * Copyright (c) 2008-2013 The Khronos Group Inc. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and/or associated documentation files (the 6 | * "Materials"), to deal in the Materials without restriction, including 7 | * without limitation the rights to use, copy, modify, merge, publish, 8 | * distribute, sublicense, and/or sell copies of the Materials, and to 9 | * permit persons to whom the Materials are furnished to do so, subject to 10 | * the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included 13 | * in all copies or substantial portions of the Materials. 14 | * 15 | * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 22 | **********************************************************************************/ 23 | 24 | /* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */ 25 | 26 | /* cl_gl_ext.h contains vendor (non-KHR) OpenCL extensions which have */ 27 | /* OpenGL dependencies. */ 28 | 29 | #ifndef __OPENCL_CL_GL_EXT_H 30 | #define __OPENCL_CL_GL_EXT_H 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | #ifdef __APPLE__ 37 | #include 38 | #else 39 | #include 40 | #endif 41 | 42 | /* 43 | * For each extension, follow this template 44 | * cl_VEN_extname extension */ 45 | /* #define cl_VEN_extname 1 46 | * ... define new types, if any 47 | * ... define new tokens, if any 48 | * ... define new APIs, if any 49 | * 50 | * If you need GLtypes here, mirror them with a cl_GLtype, rather than including a GL header 51 | * This allows us to avoid having to decide whether to include GL headers or GLES here. 52 | */ 53 | 54 | /* 55 | * cl_khr_gl_event extension 56 | * See section 9.9 in the OpenCL 1.1 spec for more information 57 | */ 58 | #define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D 59 | 60 | extern CL_API_ENTRY cl_event CL_API_CALL 61 | clCreateEventFromGLsyncKHR(cl_context /* context */, 62 | cl_GLsync /* cl_GLsync */, 63 | cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1; 64 | 65 | #ifdef __cplusplus 66 | } 67 | #endif 68 | 69 | #endif /* __OPENCL_CL_GL_EXT_H */ 70 | -------------------------------------------------------------------------------- /native/include/CL_2_0/CL/opencl.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2008-2013 The Khronos Group Inc. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and/or associated documentation files (the 6 | * "Materials"), to deal in the Materials without restriction, including 7 | * without limitation the rights to use, copy, modify, merge, publish, 8 | * distribute, sublicense, and/or sell copies of the Materials, and to 9 | * permit persons to whom the Materials are furnished to do so, subject to 10 | * the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included 13 | * in all copies or substantial portions of the Materials. 14 | * 15 | * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 22 | ******************************************************************************/ 23 | 24 | /* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */ 25 | 26 | #ifndef __OPENCL_H 27 | #define __OPENCL_H 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | #ifdef __APPLE__ 34 | 35 | #include 36 | #include 37 | #include 38 | #include 39 | 40 | #else 41 | 42 | #include 43 | #include 44 | #include 45 | #include 46 | 47 | #endif 48 | 49 | #ifdef __cplusplus 50 | } 51 | #endif 52 | 53 | #endif /* __OPENCL_H */ 54 | 55 | -------------------------------------------------------------------------------- /native/include/EGLs/winsys_fbdev/EGL/eglplatform.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This confidential and proprietary software may be used only as 3 | * authorised by a licensing agreement from ARM Limited 4 | * (C) COPYRIGHT 2011-2014 ARM Limited 5 | * ALL RIGHTS RESERVED 6 | * The entire notice above must be reproduced on all authorised 7 | * copies and copies may only be made to the extent permitted 8 | * by a licensing agreement from ARM Limited. 9 | */ 10 | 11 | /** 12 | * @file eglplatform.h 13 | * Platform related definitions 14 | */ 15 | 16 | #ifndef _EGLPLATFORM_H_ 17 | #define _EGLPLATFORM_H_ 18 | 19 | #ifdef __cplusplus 20 | extern "C" 21 | { 22 | #endif /* __cplusplus */ 23 | 24 | 25 | #include 26 | #include 27 | 28 | #if defined(EGL_FBDEV) || defined(EGL_DUMMY) 29 | #include "mali_fbdev_types.h" 30 | #endif 31 | 32 | #ifndef EGLAPI 33 | #define EGLAPI 34 | #endif 35 | 36 | #ifndef EGLAPIENTRY 37 | #define EGLAPIENTRY 38 | #endif 39 | 40 | #ifndef EGLAPIENTRYP 41 | #define EGLAPIENTRYP EGLAPIENTRY * 42 | #endif 43 | 44 | #if defined(EGL_FBDEV) || defined(EGL_DUMMY) 45 | typedef fbdev_window * EGLNativeWindowType; 46 | 47 | typedef int32_t EGLNativePixmapType; 48 | 49 | #endif 50 | 51 | #ifdef EGL_FBDEV 52 | typedef void * EGLNativeDisplayType; 53 | #elif defined(EGL_DUMMY) 54 | typedef dummy_display * EGLNativeDisplayType; 55 | #else 56 | #error "Window system unknown" 57 | #endif 58 | 59 | typedef EGLNativeWindowType NativeWindowType; 60 | typedef EGLNativePixmapType NativePixmapType; 61 | typedef EGLNativeDisplayType NativeDisplayType; 62 | 63 | typedef int32_t EGLint; 64 | 65 | #ifdef __cplusplus 66 | } 67 | #endif /* __cplusplus */ 68 | 69 | #endif /* _EGLPLATFORM_H_ */ 70 | -------------------------------------------------------------------------------- /native/include/EGLs/winsys_gbm/EGL/eglplatform.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This confidential and proprietary software may be used only as 3 | * authorised by a licensing agreement from ARM Limited 4 | * (C) COPYRIGHT 2014 ARM Limited 5 | * ALL RIGHTS RESERVED 6 | * The entire notice above must be reproduced on all authorised 7 | * copies and copies may only be made to the extent permitted 8 | * by a licensing agreement from ARM Limited. 9 | */ 10 | 11 | /** 12 | * @file eglplatform.h 13 | * Platform related definitions 14 | */ 15 | 16 | #ifndef _EGLPLATFORM_H_ 17 | #define _EGLPLATFORM_H_ 18 | 19 | #ifdef __cplusplus 20 | extern "C" 21 | { 22 | #endif /* __cplusplus */ 23 | 24 | 25 | #include 26 | #include 27 | 28 | #ifndef EGLAPI 29 | #define EGLAPI 30 | #endif 31 | 32 | #ifndef EGLAPIENTRY 33 | #define EGLAPIENTRY 34 | #endif 35 | 36 | #ifndef EGLAPIENTRYP 37 | #define EGLAPIENTRYP EGLAPIENTRY * 38 | #endif 39 | 40 | struct gbm_device; 41 | struct gbm_surface; 42 | 43 | typedef struct gbm_device * EGLNativeDisplayType; 44 | typedef struct gbm_surface * EGLNativeWindowType; 45 | typedef void * EGLNativePixmapType; 46 | 47 | typedef EGLNativeWindowType NativeWindowType; 48 | typedef EGLNativePixmapType NativePixmapType; 49 | typedef EGLNativeDisplayType NativeDisplayType; 50 | 51 | typedef khronos_int32_t EGLint; 52 | 53 | #ifdef __cplusplus 54 | } 55 | #endif /* __cplusplus */ 56 | 57 | #endif /* _EGLPLATFORM_H_ */ 58 | -------------------------------------------------------------------------------- /native/include/EGLs/winsys_wayland/EGL/eglplatform.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This confidential and proprietary software may be used only as 3 | * authorised by a licensing agreement from ARM Limited 4 | * (C) COPYRIGHT 2011-2014 ARM Limited 5 | * ALL RIGHTS RESERVED 6 | * The entire notice above must be reproduced on all authorised 7 | * copies and copies may only be made to the extent permitted 8 | * by a licensing agreement from ARM Limited. 9 | */ 10 | 11 | /** 12 | * @file eglplatform.h 13 | * Platform related definitions 14 | */ 15 | 16 | #ifndef _EGLPLATFORM_H_ 17 | #define _EGLPLATFORM_H_ 18 | 19 | #ifdef __cplusplus 20 | extern "C" 21 | { 22 | #endif /* __cplusplus */ 23 | #define EGL_WAYLAND 1 24 | #include 25 | 26 | #if defined(EGL_WAYLAND) 27 | #ifndef EGLAPI 28 | #define EGLAPI KHRONOS_APICALL 29 | #endif 30 | 31 | #ifndef EGLAPIENTRY 32 | #define EGLAPIENTRY KHRONOS_APIENTRY 33 | #endif 34 | #define EGLAPIENTRYP EGLAPIENTRY* 35 | 36 | typedef struct wl_display *EGLNativeDisplayType; 37 | typedef void *EGLNativePixmapType; 38 | typedef struct wl_egl_window *EGLNativeWindowType; 39 | 40 | 41 | /* EGL 1.2 types, renamed for consistency in EGL 1.3 */ 42 | typedef EGLNativeDisplayType NativeDisplayType; 43 | typedef EGLNativePixmapType NativePixmapType; 44 | typedef EGLNativeWindowType NativeWindowType; 45 | 46 | 47 | /* Define EGLint. This must be a signed integral type large enough to contain 48 | * all legal attribute names and values passed into and out of EGL, whether 49 | * their type is boolean, bitmask, enumerant (symbolic constant), integer, 50 | * handle, or other. While in general a 32-bit integer will suffice, if 51 | * handles are 64 bit types, then EGLint should be defined as a signed 64-bit 52 | * integer type. 53 | */ 54 | typedef khronos_int32_t EGLint; 55 | 56 | #else 57 | #error "Unsupported platform" 58 | #endif 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif /* __cplusplus */ 63 | 64 | #endif /* _EGLPLATFORM_H_ */ 65 | -------------------------------------------------------------------------------- /native/include/GLES/egl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Skeleton egl.h to provide compatibility for early GLES 1.0 3 | * applications. Several early implementations included gl.h 4 | * in egl.h leading applications to include only egl.h 5 | * 6 | * $Revision: 6252 $ on $Date:: 2008-08-06 16:35:08 -0700 #$ 7 | */ 8 | 9 | #ifndef __legacy_egl_h_ 10 | #define __legacy_egl_h_ 11 | 12 | #include 13 | #include 14 | 15 | #endif /* __legacy_egl_h_ */ 16 | -------------------------------------------------------------------------------- /native/include/GLES/glplatform.h: -------------------------------------------------------------------------------- 1 | #ifndef __glplatform_h_ 2 | #define __glplatform_h_ 3 | 4 | /* $Revision: 10601 $ on $Date:: 2010-03-04 22:15:27 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 1.X gl.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | #include 21 | 22 | #ifndef GL_API 23 | #define GL_API KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __glplatform_h_ */ 31 | -------------------------------------------------------------------------------- /native/include/GLES2/gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* $Revision: 23328 $ on $Date:: 2013-10-02 02:28:28 -0700 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | #include 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl2platform_h_ */ 31 | -------------------------------------------------------------------------------- /native/include/GLES3/gl3platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl3platform_h_ 2 | #define __gl3platform_h_ 3 | 4 | /* $Revision: 23328 $ on $Date:: 2013-10-02 02:28:28 -0700 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 3.X gl3.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | #include 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl3platform_h_ */ 31 | -------------------------------------------------------------------------------- /native/include/X11/ImUtil.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _X11_IMUTIL_H_ 3 | #define _X11_IMUTIL_H_ 4 | 5 | extern int 6 | _XGetScanlinePad( 7 | Display *dpy, 8 | int depth); 9 | 10 | extern int 11 | _XGetBitsPerPixel( 12 | Display *dpy, 13 | int depth); 14 | 15 | extern int 16 | _XSetImage( 17 | XImage *srcimg, 18 | register XImage *dstimg, 19 | register int x, 20 | register int y); 21 | 22 | extern int 23 | _XReverse_Bytes( 24 | register unsigned char *bpt, 25 | register int nb); 26 | extern void 27 | _XInitImageFuncPtrs( 28 | register XImage *image); 29 | 30 | #endif /* _X11_IMUTIL_H_ */ 31 | -------------------------------------------------------------------------------- /native/include/X11/Xatom.h: -------------------------------------------------------------------------------- 1 | #ifndef XATOM_H 2 | #define XATOM_H 1 3 | 4 | /* THIS IS A GENERATED FILE 5 | * 6 | * Do not change! Changing this file implies a protocol change! 7 | */ 8 | 9 | #define XA_PRIMARY ((Atom) 1) 10 | #define XA_SECONDARY ((Atom) 2) 11 | #define XA_ARC ((Atom) 3) 12 | #define XA_ATOM ((Atom) 4) 13 | #define XA_BITMAP ((Atom) 5) 14 | #define XA_CARDINAL ((Atom) 6) 15 | #define XA_COLORMAP ((Atom) 7) 16 | #define XA_CURSOR ((Atom) 8) 17 | #define XA_CUT_BUFFER0 ((Atom) 9) 18 | #define XA_CUT_BUFFER1 ((Atom) 10) 19 | #define XA_CUT_BUFFER2 ((Atom) 11) 20 | #define XA_CUT_BUFFER3 ((Atom) 12) 21 | #define XA_CUT_BUFFER4 ((Atom) 13) 22 | #define XA_CUT_BUFFER5 ((Atom) 14) 23 | #define XA_CUT_BUFFER6 ((Atom) 15) 24 | #define XA_CUT_BUFFER7 ((Atom) 16) 25 | #define XA_DRAWABLE ((Atom) 17) 26 | #define XA_FONT ((Atom) 18) 27 | #define XA_INTEGER ((Atom) 19) 28 | #define XA_PIXMAP ((Atom) 20) 29 | #define XA_POINT ((Atom) 21) 30 | #define XA_RECTANGLE ((Atom) 22) 31 | #define XA_RESOURCE_MANAGER ((Atom) 23) 32 | #define XA_RGB_COLOR_MAP ((Atom) 24) 33 | #define XA_RGB_BEST_MAP ((Atom) 25) 34 | #define XA_RGB_BLUE_MAP ((Atom) 26) 35 | #define XA_RGB_DEFAULT_MAP ((Atom) 27) 36 | #define XA_RGB_GRAY_MAP ((Atom) 28) 37 | #define XA_RGB_GREEN_MAP ((Atom) 29) 38 | #define XA_RGB_RED_MAP ((Atom) 30) 39 | #define XA_STRING ((Atom) 31) 40 | #define XA_VISUALID ((Atom) 32) 41 | #define XA_WINDOW ((Atom) 33) 42 | #define XA_WM_COMMAND ((Atom) 34) 43 | #define XA_WM_HINTS ((Atom) 35) 44 | #define XA_WM_CLIENT_MACHINE ((Atom) 36) 45 | #define XA_WM_ICON_NAME ((Atom) 37) 46 | #define XA_WM_ICON_SIZE ((Atom) 38) 47 | #define XA_WM_NAME ((Atom) 39) 48 | #define XA_WM_NORMAL_HINTS ((Atom) 40) 49 | #define XA_WM_SIZE_HINTS ((Atom) 41) 50 | #define XA_WM_ZOOM_HINTS ((Atom) 42) 51 | #define XA_MIN_SPACE ((Atom) 43) 52 | #define XA_NORM_SPACE ((Atom) 44) 53 | #define XA_MAX_SPACE ((Atom) 45) 54 | #define XA_END_SPACE ((Atom) 46) 55 | #define XA_SUPERSCRIPT_X ((Atom) 47) 56 | #define XA_SUPERSCRIPT_Y ((Atom) 48) 57 | #define XA_SUBSCRIPT_X ((Atom) 49) 58 | #define XA_SUBSCRIPT_Y ((Atom) 50) 59 | #define XA_UNDERLINE_POSITION ((Atom) 51) 60 | #define XA_UNDERLINE_THICKNESS ((Atom) 52) 61 | #define XA_STRIKEOUT_ASCENT ((Atom) 53) 62 | #define XA_STRIKEOUT_DESCENT ((Atom) 54) 63 | #define XA_ITALIC_ANGLE ((Atom) 55) 64 | #define XA_X_HEIGHT ((Atom) 56) 65 | #define XA_QUAD_WIDTH ((Atom) 57) 66 | #define XA_WEIGHT ((Atom) 58) 67 | #define XA_POINT_SIZE ((Atom) 59) 68 | #define XA_RESOLUTION ((Atom) 60) 69 | #define XA_COPYRIGHT ((Atom) 61) 70 | #define XA_NOTICE ((Atom) 62) 71 | #define XA_FONT_NAME ((Atom) 63) 72 | #define XA_FAMILY_NAME ((Atom) 64) 73 | #define XA_FULL_NAME ((Atom) 65) 74 | #define XA_CAP_HEIGHT ((Atom) 66) 75 | #define XA_WM_CLASS ((Atom) 67) 76 | #define XA_WM_TRANSIENT_FOR ((Atom) 68) 77 | 78 | #define XA_LAST_PREDEFINED ((Atom) 68) 79 | #endif /* XATOM_H */ 80 | -------------------------------------------------------------------------------- /native/include/X11/Xdefs.h: -------------------------------------------------------------------------------- 1 | /*********************************************************** 2 | 3 | Copyright (c) 1999 The XFree86 Project Inc. 4 | 5 | All Rights Reserved. 6 | 7 | The above copyright notice and this permission notice shall be included in 8 | all copies or substantial portions of the Software. 9 | 10 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 11 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 12 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 13 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 14 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 15 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 16 | 17 | Except as contained in this notice, the name of The XFree86 Project 18 | Inc. shall not be used in advertising or otherwise to promote the 19 | sale, use or other dealings in this Software without prior written 20 | authorization from The XFree86 Project Inc.. 21 | 22 | */ 23 | 24 | /** 25 | ** Types definitions shared between server and clients 26 | **/ 27 | 28 | #ifndef _XDEFS_H 29 | #define _XDEFS_H 30 | 31 | #ifdef _XSERVER64 32 | #include 33 | #endif 34 | 35 | #ifndef _XTYPEDEF_ATOM 36 | # define _XTYPEDEF_ATOM 37 | # ifndef _XSERVER64 38 | typedef unsigned long Atom; 39 | # else 40 | typedef CARD32 Atom; 41 | # endif 42 | #endif 43 | 44 | #ifndef Bool 45 | # ifndef _XTYPEDEF_BOOL 46 | # define _XTYPEDEF_BOOL 47 | typedef int Bool; 48 | # endif 49 | #endif 50 | 51 | #ifndef _XTYPEDEF_POINTER 52 | # define _XTYPEDEF_POINTER 53 | typedef void *pointer; 54 | #endif 55 | 56 | #ifndef _XTYPEDEF_CLIENTPTR 57 | typedef struct _Client *ClientPtr; 58 | # define _XTYPEDEF_CLIENTPTR 59 | #endif 60 | 61 | #ifndef _XTYPEDEF_XID 62 | # define _XTYPEDEF_XID 63 | # ifndef _XSERVER64 64 | typedef unsigned long XID; 65 | # else 66 | typedef CARD32 XID; 67 | # endif 68 | #endif 69 | 70 | #ifndef _XTYPEDEF_MASK 71 | # define _XTYPEDEF_MASK 72 | # ifndef _XSERVER64 73 | typedef unsigned long Mask; 74 | # else 75 | typedef CARD32 Mask; 76 | # endif 77 | #endif 78 | 79 | #ifndef _XTYPEDEF_FONTPTR 80 | # define _XTYPEDEF_FONTPTR 81 | typedef struct _Font *FontPtr; /* also in fonts/include/font.h */ 82 | #endif 83 | 84 | #ifndef _XTYPEDEF_FONT 85 | # define _XTYPEDEF_FONT 86 | typedef XID Font; 87 | #endif 88 | 89 | #ifndef _XTYPEDEF_FSID 90 | # ifndef _XSERVER64 91 | typedef unsigned long FSID; 92 | # else 93 | typedef CARD32 FSID; 94 | # endif 95 | #endif 96 | 97 | typedef FSID AccContext; 98 | 99 | /* OS independent time value 100 | XXX Should probably go in Xos.h */ 101 | typedef struct timeval **OSTimePtr; 102 | 103 | 104 | typedef void (* BlockHandlerProcPtr)(void * /* blockData */, 105 | OSTimePtr /* pTimeout */, 106 | void * /* pReadmask */); 107 | 108 | #endif 109 | -------------------------------------------------------------------------------- /native/include/X11/Xfuncs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | Copyright 1990, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | * 25 | */ 26 | 27 | #ifndef _XFUNCS_H_ 28 | # define _XFUNCS_H_ 29 | 30 | # include 31 | 32 | /* the old Xfuncs.h, for pre-R6 */ 33 | # if !(defined(XFree86LOADER) && defined(IN_MODULE)) 34 | 35 | # ifdef X_USEBFUNCS 36 | void bcopy(); 37 | void bzero(); 38 | int bcmp(); 39 | # else 40 | # if defined(SYSV) && !defined(__SCO__) && !defined(__sun) && !defined(__UNIXWARE__) && !defined(_AIX) 41 | # include 42 | void bcopy(); 43 | # define bzero(b,len) memset(b, 0, len) 44 | # define bcmp(b1,b2,len) memcmp(b1, b2, len) 45 | # else 46 | # include 47 | # if defined(__SCO__) || defined(__sun) || defined(__UNIXWARE__) || defined(__CYGWIN__) || defined(_AIX) || defined(__APPLE__) 48 | # include 49 | # endif 50 | # define _XFUNCS_H_INCLUDED_STRING_H 51 | # endif 52 | # endif /* X_USEBFUNCS */ 53 | 54 | /* the new Xfuncs.h */ 55 | 56 | /* the ANSI C way */ 57 | # ifndef _XFUNCS_H_INCLUDED_STRING_H 58 | # include 59 | # endif 60 | # undef bzero 61 | # define bzero(b,len) memset(b,0,len) 62 | 63 | # if defined WIN32 && defined __MINGW32__ 64 | # define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len)) 65 | # endif 66 | 67 | # endif /* !(defined(XFree86LOADER) && defined(IN_MODULE)) */ 68 | 69 | #endif /* _XFUNCS_H_ */ 70 | -------------------------------------------------------------------------------- /native/include/X11/Xlib-xcb.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2003-2006 Jamey Sharp, Josh Triplett 2 | * This file is licensed under the MIT license. See the file COPYING. */ 3 | 4 | #ifndef _X11_XLIB_XCB_H_ 5 | #define _X11_XLIB_XCB_H_ 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | _XFUNCPROTOBEGIN 12 | 13 | xcb_connection_t *XGetXCBConnection(Display *dpy); 14 | 15 | enum XEventQueueOwner { XlibOwnsEventQueue = 0, XCBOwnsEventQueue }; 16 | void XSetEventQueueOwner(Display *dpy, enum XEventQueueOwner owner); 17 | 18 | _XFUNCPROTOEND 19 | 20 | #endif /* _X11_XLIB_XCB_H_ */ 21 | -------------------------------------------------------------------------------- /native/include/X11/XlibConf.h: -------------------------------------------------------------------------------- 1 | /* include/X11/XlibConf.h. Generated from XlibConf.h.in by configure. */ 2 | /* 3 | * Copyright © 2005 Keith Packard 4 | * 5 | * Permission to use, copy, modify, distribute, and sell this software and its 6 | * documentation for any purpose is hereby granted without fee, provided that 7 | * the above copyright notice appear in all copies and that both that 8 | * copyright notice and this permission notice appear in supporting 9 | * documentation, and that the name of Keith Packard not be used in 10 | * advertising or publicity pertaining to distribution of the software without 11 | * specific, written prior permission. Keith Packard makes no 12 | * representations about the suitability of this software for any purpose. It 13 | * is provided "as is" without express or implied warranty. 14 | * 15 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 16 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 17 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 18 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 19 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 20 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 21 | * PERFORMANCE OF THIS SOFTWARE. 22 | */ 23 | 24 | #ifndef _XLIBCONF_H_ 25 | #define _XLIBCONF_H_ 26 | /* 27 | * This header file exports defines necessary to correctly 28 | * use Xlibint.h both inside Xlib and by external libraries 29 | * such as extensions. 30 | */ 31 | 32 | /* Threading support? */ 33 | #define XTHREADS 1 34 | 35 | /* Use multi-threaded libc functions? */ 36 | #define XUSE_MTSAFE_API 1 37 | 38 | #endif /* _XLIBCONF_H_ */ 39 | -------------------------------------------------------------------------------- /native/include/X11/Xlocale.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 1991, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included 12 | in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 | OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall 23 | not be used in advertising or otherwise to promote the sale, use or 24 | other dealings in this Software without prior written authorization 25 | from The Open Group. 26 | 27 | */ 28 | 29 | #ifndef _X11_XLOCALE_H_ 30 | #define _X11_XLOCALE_H_ 31 | 32 | #include 33 | #include 34 | 35 | #include 36 | 37 | #endif /* _X11_XLOCALE_H_ */ 38 | -------------------------------------------------------------------------------- /native/include/X11/Xw32defs.h: -------------------------------------------------------------------------------- 1 | #ifndef _XW32DEFS_H 2 | # define _XW32DEFS_H 3 | 4 | # ifdef __GNUC__ /* mingw is more close to unix than msvc */ 5 | # if !defined(__daddr_t_defined) 6 | typedef char *caddr_t; 7 | # endif 8 | # define lstat stat 9 | 10 | # else 11 | typedef char *caddr_t; 12 | 13 | # define access _access 14 | # define alloca _alloca 15 | # define chdir _chdir 16 | # define chmod _chmod 17 | # define close _close 18 | # define creat _creat 19 | # define dup _dup 20 | # define dup2 _dup2 21 | # define environ _environ 22 | # define execl _execl 23 | # define execle _execle 24 | # define execlp _execlp 25 | # define execlpe _execlpe 26 | # define execv _execv 27 | # define execve _execve 28 | # define execvp _execvp 29 | # define execvpe _execvpe 30 | # define fdopen _fdopen 31 | # define fileno _fileno 32 | # define fstat _fstat 33 | # define getcwd _getcwd 34 | # define getpid _getpid 35 | # define hypot _hypot 36 | # define isascii __isascii 37 | # define isatty _isatty 38 | # define lseek _lseek 39 | # define mkdir _mkdir 40 | # define mktemp _mktemp 41 | # define open _open 42 | # define putenv _putenv 43 | # define read _read 44 | # define rmdir _rmdir 45 | # define sleep(x) Sleep((x) * 1000) 46 | # define stat _stat 47 | # define sys_errlist _sys_errlist 48 | # define sys_nerr _sys_nerr 49 | # define umask _umask 50 | # define unlink _unlink 51 | # define write _write 52 | # define random rand 53 | # define srandom srand 54 | 55 | # define O_RDONLY _O_RDONLY 56 | # define O_WRONLY _O_WRONLY 57 | # define O_RDWR _O_RDWR 58 | # define O_APPEND _O_APPEND 59 | # define O_CREAT _O_CREAT 60 | # define O_TRUNC _O_TRUNC 61 | # define O_EXCL _O_EXCL 62 | # define O_TEXT _O_TEXT 63 | # define O_BINARY _O_BINARY 64 | # define O_RAW _O_BINARY 65 | 66 | # define S_IFMT _S_IFMT 67 | # define S_IFDIR _S_IFDIR 68 | # define S_IFCHR _S_IFCHR 69 | # define S_IFREG _S_IFREG 70 | # define S_IREAD _S_IREAD 71 | # define S_IWRITE _S_IWRITE 72 | # define S_IEXEC _S_IEXEC 73 | 74 | # define F_OK 0 75 | # define X_OK 1 76 | # define W_OK 2 77 | # define R_OK 4 78 | # endif /* __GNUC__ */ 79 | #endif 80 | -------------------------------------------------------------------------------- /native/include/X11/Xwinsock.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 1996, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included 12 | in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- 16 | ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 17 | SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABIL- 18 | ITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 20 | IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall 23 | not be used in advertising or otherwise to promote the sale, use or 24 | other dealings in this Software without prior written authorization from 25 | The Open Group. 26 | 27 | */ 28 | 29 | /* 30 | * This header file has for sole purpose to allow to include winsock.h 31 | * without getting any name conflicts with our code. 32 | * Conflicts come from the fact that including winsock.h actually pulls 33 | * in the whole Windows API... 34 | */ 35 | 36 | #undef _XFree86Server 37 | #ifdef XFree86Server 38 | # define _XFree86Server 39 | # undef XFree86Server 40 | #endif 41 | 42 | /* 43 | * mingw-w64 headers define BOOL as a typedef, protecting against macros 44 | * mingw.org headers define BOOL in terms of WINBOOL 45 | * ... so try to come up with something which works with both :-) 46 | */ 47 | #define _NO_BOOL_TYPEDEF 48 | #define BOOL WINBOOL 49 | #define INT32 wINT32 50 | #undef Status 51 | #define Status wStatus 52 | #define ATOM wATOM 53 | #define BYTE wBYTE 54 | #define FreeResource wFreeResource 55 | #include 56 | #undef Status 57 | #define Status int 58 | #undef BYTE 59 | #undef BOOL 60 | #undef INT32 61 | #undef ATOM 62 | #undef FreeResource 63 | #undef CreateWindowA 64 | #undef RT_FONT 65 | #undef RT_CURSOR 66 | 67 | /* 68 | * Older version of this header used to name the windows API bool type wBOOL, 69 | * rather than more standard name WINBOOL 70 | */ 71 | #define wBOOL WINBOOL 72 | 73 | #ifdef _XFree86Server 74 | # define XFree86Server 75 | # undef _XFree86Server 76 | #endif 77 | 78 | -------------------------------------------------------------------------------- /native/include/X11/ap_keysym.h: -------------------------------------------------------------------------------- 1 | /****************************************************************** 2 | Copyright 1987 by Apollo Computer Inc., Chelmsford, Massachusetts. 3 | Copyright 1989 by Hewlett-Packard Company. 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, duplicate, change, and distribute this software and 8 | its documentation for any purpose and without fee is granted, provided 9 | that the above copyright notice appear in such copy and that this 10 | copyright notice appear in all supporting documentation, and that the 11 | names of Apollo Computer Inc., the Hewlett-Packard Company, or the X 12 | Consortium not be used in advertising or publicity pertaining to 13 | distribution of the software without written prior permission. 14 | 15 | HEWLETT-PACKARD MAKES NO WARRANTY OF ANY KIND WITH REGARD 16 | TO THIS SOFWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 18 | PURPOSE. Hewlett-Packard shall not be liable for errors 19 | contained herein or direct, indirect, special, incidental or 20 | consequential damages in connection with the furnishing, 21 | performance, or use of this material. 22 | 23 | This software is not subject to any license of the American 24 | Telephone and Telegraph Company or of the Regents of the 25 | University of California. 26 | ******************************************************************/ 27 | 28 | #define apXK_LineDel 0x1000FF00 29 | #define apXK_CharDel 0x1000FF01 30 | #define apXK_Copy 0x1000FF02 31 | #define apXK_Cut 0x1000FF03 32 | #define apXK_Paste 0x1000FF04 33 | #define apXK_Move 0x1000FF05 34 | #define apXK_Grow 0x1000FF06 35 | #define apXK_Cmd 0x1000FF07 36 | #define apXK_Shell 0x1000FF08 37 | #define apXK_LeftBar 0x1000FF09 38 | #define apXK_RightBar 0x1000FF0A 39 | #define apXK_LeftBox 0x1000FF0B 40 | #define apXK_RightBox 0x1000FF0C 41 | #define apXK_UpBox 0x1000FF0D 42 | #define apXK_DownBox 0x1000FF0E 43 | #define apXK_Pop 0x1000FF0F 44 | #define apXK_Read 0x1000FF10 45 | #define apXK_Edit 0x1000FF11 46 | #define apXK_Save 0x1000FF12 47 | #define apXK_Exit 0x1000FF13 48 | #define apXK_Repeat 0x1000FF14 49 | 50 | #define apXK_KP_parenleft 0x1000FFA8 51 | #define apXK_KP_parenright 0x1000FFA9 52 | -------------------------------------------------------------------------------- /native/include/X11/dri/xf86dri.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | 3 | Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. 4 | Copyright 2000 VA Linux Systems, Inc. 5 | All Rights Reserved. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a 8 | copy of this software and associated documentation files (the 9 | "Software"), to deal in the Software without restriction, including 10 | without limitation the rights to use, copy, modify, merge, publish, 11 | distribute, sub license, and/or sell copies of the Software, and to 12 | permit persons to whom the Software is furnished to do so, subject to 13 | the following conditions: 14 | 15 | The above copyright notice and this permission notice (including the 16 | next paragraph) shall be included in all copies or substantial portions 17 | of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 20 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 22 | IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR 23 | ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 24 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 25 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | **************************************************************************/ 28 | 29 | /** 30 | * \file xf86dri.h 31 | * Protocol numbers and function prototypes for DRI X protocol. 32 | * 33 | * \author Kevin E. Martin 34 | * \author Jens Owen 35 | * \author Rickard E. (Rik) Faith 36 | */ 37 | 38 | #ifndef _XF86DRI_H_ 39 | #define _XF86DRI_H_ 40 | 41 | #include 42 | 43 | #define X_XF86DRIQueryVersion 0 44 | #define X_XF86DRIQueryDirectRenderingCapable 1 45 | #define X_XF86DRIOpenConnection 2 46 | #define X_XF86DRICloseConnection 3 47 | #define X_XF86DRIGetClientDriverName 4 48 | #define X_XF86DRICreateContext 5 49 | #define X_XF86DRIDestroyContext 6 50 | #define X_XF86DRICreateDrawable 7 51 | #define X_XF86DRIDestroyDrawable 8 52 | #define X_XF86DRIGetDrawableInfo 9 53 | #define X_XF86DRIGetDeviceInfo 10 54 | #define X_XF86DRIAuthConnection 11 55 | #define X_XF86DRIOpenFullScreen 12 /* Deprecated */ 56 | #define X_XF86DRICloseFullScreen 13 /* Deprecated */ 57 | 58 | #define XF86DRINumberEvents 0 59 | 60 | #define XF86DRIClientNotLocal 0 61 | #define XF86DRIOperationNotSupported 1 62 | #define XF86DRINumberErrors (XF86DRIOperationNotSupported + 1) 63 | 64 | #endif /* _XF86DRI_H_ */ 65 | 66 | -------------------------------------------------------------------------------- /native/include/X11/dri/xf86dristr.h: -------------------------------------------------------------------------------- 1 | #warning "xf86dristr.h is obsolete and may be removed in the future." 2 | #warning "include for the protocol defines." 3 | #include 4 | -------------------------------------------------------------------------------- /native/include/X11/extensions/EVI.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc. 3 | Permission to use, copy, modify, and distribute this 4 | software and its documentation for any purpose and without 5 | fee is hereby granted, provided that the above copyright 6 | notice appear in all copies and that both that copyright 7 | notice and this permission notice appear in supporting 8 | documentation, and that the name of Silicon Graphics not be 9 | used in advertising or publicity pertaining to distribution 10 | of the software without specific prior written permission. 11 | Silicon Graphics makes no representation about the suitability 12 | of this software for any purpose. It is provided "as is" 13 | without any express or implied warranty. 14 | SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 15 | SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 16 | AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON 17 | GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 18 | DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 19 | DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 20 | OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH 21 | THE USE OR PERFORMANCE OF THIS SOFTWARE. 22 | ********************************************************/ 23 | 24 | #ifndef _EVI_H_ 25 | #define _EVI_H_ 26 | 27 | #define XEVI_TRANSPARENCY_NONE 0 28 | #define XEVI_TRANSPARENCY_PIXEL 1 29 | #define XEVI_TRANSPARENCY_MASK 2 30 | 31 | #define EVINAME "Extended-Visual-Information" 32 | 33 | #define XEVI_MAJOR_VERSION 1 /* current version numbers */ 34 | #define XEVI_MINOR_VERSION 0 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /native/include/X11/extensions/MITMisc.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1989, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | ********************************************************/ 26 | 27 | /* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */ 28 | 29 | #ifndef _XMITMISC_H_ 30 | #define _XMITMISC_H_ 31 | 32 | #include 33 | #include 34 | 35 | _XFUNCPROTOBEGIN 36 | 37 | Bool XMITMiscQueryExtension( 38 | Display* /* dpy */, 39 | int* /* event_basep */, 40 | int* /* error_basep */ 41 | ); 42 | 43 | Status XMITMiscSetBugMode( 44 | Display* /* dpy */, 45 | Bool /* onOff */ 46 | ); 47 | 48 | Bool XMITMiscGetBugMode( 49 | Display* /* dpy */ 50 | ); 51 | 52 | _XFUNCPROTOEND 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /native/include/X11/extensions/XEVI.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc. 3 | Permission to use, copy, modify, and distribute this 4 | software and its documentation for any purpose and without 5 | fee is hereby granted, provided that the above copyright 6 | notice appear in all copies and that both that copyright 7 | notice and this permission notice appear in supporting 8 | documentation, and that the name of Silicon Graphics not be 9 | used in advertising or publicity pertaining to distribution 10 | of the software without specific prior written permission. 11 | Silicon Graphics makes no representation about the suitability 12 | of this software for any purpose. It is provided "as is" 13 | without any express or implied warranty. 14 | SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 15 | SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 16 | AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON 17 | GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 18 | DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 19 | DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 20 | OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH 21 | THE USE OR PERFORMANCE OF THIS SOFTWARE. 22 | ********************************************************/ 23 | 24 | #ifndef _XEVI_H_ 25 | #define _XEVI_H_ 26 | #include 27 | #include 28 | 29 | typedef struct { 30 | VisualID core_visual_id; 31 | int screen; 32 | int level; 33 | unsigned int transparency_type; 34 | unsigned int transparency_value; 35 | unsigned int min_hw_colormaps; 36 | unsigned int max_hw_colormaps; 37 | unsigned int num_colormap_conflicts; 38 | VisualID* colormap_conflicts; 39 | } ExtendedVisualInfo; 40 | 41 | _XFUNCPROTOBEGIN 42 | 43 | Bool XeviQueryExtension( 44 | Display* /* dpy */ 45 | ); 46 | Status XeviQueryVersion( 47 | Display* /* dpy */, 48 | int* /* majorVersion */, 49 | int* /* minorVersion */ 50 | ); 51 | Status XeviGetVisualInfo( 52 | Display* /* dpy */, 53 | VisualID* /* visual_query */, 54 | int /* nVisual_query */, 55 | ExtendedVisualInfo** /* extendedVisualInfo_return */, 56 | int* /* nInfo_return */ 57 | ); 58 | 59 | _XFUNCPROTOEND 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /native/include/X11/extensions/XLbx.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 Network Computing Devices 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that 7 | * copyright notice and this permission notice appear in supporting 8 | * documentation, and that the name of NCD. not be used in advertising or 9 | * publicity pertaining to distribution of the software without specific, 10 | * written prior permission. NCD. makes no representations about the 11 | * suitability of this software for any purpose. It is provided "as is" 12 | * without express or implied warranty. 13 | * 14 | * NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 15 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD. 16 | * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 17 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 18 | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 19 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 20 | * 21 | */ 22 | 23 | #ifndef _XLBX_H_ 24 | #define _XLBX_H_ 25 | 26 | #include 27 | #include 28 | #include 29 | #include 30 | 31 | _XFUNCPROTOBEGIN 32 | 33 | Bool XLbxQueryExtension( 34 | Display* /* dpy */, 35 | int* /* requestp */, 36 | int* /* event_basep */, 37 | int* /* error_basep */ 38 | ); 39 | 40 | Bool XLbxQueryVersion( 41 | Display* /* dpy */, 42 | int* /* majorVersion */, 43 | int* /* minorVersion */ 44 | ); 45 | 46 | int XLbxGetEventBase(Display *dpy); 47 | 48 | _XFUNCPROTOEND 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /native/include/X11/extensions/Xag.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 1996, 1998 The Open Group 3 | 4 | Permission to use, copy, modify, distribute, and sell this software and its 5 | documentation for any purpose is hereby granted without fee, provided that 6 | the above copyright notice appear in all copies and that both that 7 | copyright notice and this permission notice appear in supporting 8 | documentation. 9 | 10 | The above copyright notice and this permission notice shall be included 11 | in all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 14 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 15 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 16 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 17 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 18 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 19 | OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall 22 | not be used in advertising or otherwise to promote the sale, use or 23 | other dealings in this Software without prior written authorization 24 | from The Open Group. 25 | */ 26 | 27 | #ifndef _XAG_H_ 28 | #define _XAG_H_ 29 | 30 | #include 31 | #include 32 | 33 | #include 34 | 35 | _XFUNCPROTOBEGIN 36 | 37 | typedef XID XAppGroup; 38 | 39 | Bool XagQueryVersion( 40 | Display* /* dpy */, 41 | int* /* major_version */, 42 | int* /* minor_version */ 43 | ); 44 | 45 | Status XagCreateEmbeddedApplicationGroup( 46 | Display* /* dpy */, 47 | VisualID /* root_visual */, 48 | Colormap /* default_colormap */, 49 | unsigned long /* black_pixel */, 50 | unsigned long /* white_pixel */, 51 | XAppGroup* /* app_group_return */ 52 | ); 53 | 54 | Status XagCreateNonembeddedApplicationGroup( 55 | Display* /* dpy */, 56 | XAppGroup* /* app_group_return */ 57 | ); 58 | 59 | Status XagDestroyApplicationGroup( 60 | Display* /* dpy */, 61 | XAppGroup /* app_group */ 62 | ); 63 | 64 | Status XagGetApplicationGroupAttributes( 65 | Display* /* dpy */, 66 | XAppGroup /* app_group */, 67 | ... 68 | ); 69 | 70 | Status XagQueryApplicationGroup( 71 | Display* /* dpy */, 72 | XID /* resource_base */, 73 | XAppGroup* /* app_group_ret */ 74 | ); 75 | 76 | Status XagCreateAssociation( 77 | Display* /* dpy */, 78 | Window* /* window_ret */, 79 | void* /* system_window */ 80 | ); 81 | 82 | Status XagDestroyAssociation( 83 | Display* /* dpy */, 84 | Window /* window */ 85 | ); 86 | 87 | _XFUNCPROTOEND 88 | 89 | #endif /* _XAG_H_ */ 90 | 91 | -------------------------------------------------------------------------------- /native/include/X11/extensions/Xcup.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 1987, 1988, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | */ 26 | 27 | #ifndef _XCUP_H_ 28 | #define _XCUP_H_ 29 | 30 | #include 31 | #include 32 | 33 | _XFUNCPROTOBEGIN 34 | 35 | Bool XcupQueryVersion( 36 | Display* /* dpy */, 37 | int* /* major_version */, 38 | int* /* minor_version */ 39 | ); 40 | 41 | Status XcupGetReservedColormapEntries( 42 | Display* /* dpy */, 43 | int /* screen */, 44 | XColor** /* colors_out */, 45 | int* /* ncolors */ 46 | ); 47 | 48 | Status XcupStoreColors( 49 | Display* /* dpy */, 50 | Colormap /* colormap */, 51 | XColor* /* colors */, 52 | int /* ncolors */ 53 | ); 54 | 55 | _XFUNCPROTOEND 56 | 57 | #endif /* _XCUP_H_ */ 58 | 59 | -------------------------------------------------------------------------------- /native/include/X11/extensions/Xdamage.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2003 Keith Packard 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that 7 | * copyright notice and this permission notice appear in supporting 8 | * documentation, and that the name of Keith Packard not be used in 9 | * advertising or publicity pertaining to distribution of the software without 10 | * specific, written prior permission. Keith Packard makes no 11 | * representations about the suitability of this software for any purpose. It 12 | * is provided "as is" without express or implied warranty. 13 | * 14 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20 | * PERFORMANCE OF THIS SOFTWARE. 21 | */ 22 | 23 | #ifndef _XDAMAGE_H_ 24 | #define _XDAMAGE_H_ 25 | 26 | #include 27 | #include 28 | #include 29 | 30 | #define XDAMAGE_1_1_INTERFACE 31 | 32 | typedef XID Damage; 33 | 34 | typedef struct { 35 | int type; /* event base */ 36 | unsigned long serial; 37 | Bool send_event; 38 | Display *display; 39 | Drawable drawable; 40 | Damage damage; 41 | int level; 42 | Bool more; /* more events will be delivered immediately */ 43 | Time timestamp; 44 | XRectangle area; 45 | XRectangle geometry; 46 | } XDamageNotifyEvent; 47 | 48 | _XFUNCPROTOBEGIN 49 | 50 | Bool XDamageQueryExtension (Display *dpy, 51 | int *event_base_return, 52 | int *error_base_return); 53 | 54 | Status XDamageQueryVersion (Display *dpy, 55 | int *major_version_return, 56 | int *minor_version_return); 57 | 58 | Damage 59 | XDamageCreate (Display *dpy, Drawable drawable, int level); 60 | 61 | void 62 | XDamageDestroy (Display *dpy, Damage damage); 63 | 64 | void 65 | XDamageSubtract (Display *dpy, Damage damage, 66 | XserverRegion repair, XserverRegion parts); 67 | 68 | void 69 | XDamageAdd (Display *dpy, Drawable drawable, XserverRegion region); 70 | 71 | _XFUNCPROTOEND 72 | 73 | #endif /* _XDAMAGE_H_ */ 74 | -------------------------------------------------------------------------------- /native/include/X11/extensions/Xeviestr.h: -------------------------------------------------------------------------------- 1 | #warning "Xeviestr.h is obsolete and may be removed in the future." 2 | #warning "include for the protocol defines." 3 | #include 4 | -------------------------------------------------------------------------------- /native/include/X11/extensions/Xext.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | Copyright 1989, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | */ 25 | 26 | #ifndef _XEXT_H_ 27 | #define _XEXT_H_ 28 | 29 | #include 30 | 31 | _XFUNCPROTOBEGIN 32 | 33 | typedef int (*XextErrorHandler) ( 34 | Display * /* dpy */, 35 | _Xconst char* /* ext_name */, 36 | _Xconst char* /* reason */ 37 | ); 38 | 39 | extern XextErrorHandler XSetExtensionErrorHandler( 40 | XextErrorHandler /* handler */ 41 | ); 42 | 43 | extern int XMissingExtension( 44 | Display* /* dpy */, 45 | _Xconst char* /* ext_name */ 46 | ); 47 | 48 | _XFUNCPROTOEND 49 | 50 | #define X_EXTENSION_UNKNOWN "unknown" 51 | #define X_EXTENSION_MISSING "missing" 52 | 53 | #endif /* _XEXT_H_ */ 54 | -------------------------------------------------------------------------------- /native/include/X11/extensions/Xge.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jerzha/samples-rklinux-opengl/70faec3c35dcb44deb7ce054743d36bf52f5a89e/native/include/X11/extensions/Xge.h -------------------------------------------------------------------------------- /native/include/X11/extensions/Xinerama.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2003 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | */ 26 | 27 | #ifndef _Xinerama_h 28 | #define _Xinerama_h 29 | 30 | #include 31 | 32 | typedef struct { 33 | int screen_number; 34 | short x_org; 35 | short y_org; 36 | short width; 37 | short height; 38 | } XineramaScreenInfo; 39 | 40 | _XFUNCPROTOBEGIN 41 | 42 | Bool XineramaQueryExtension ( 43 | Display *dpy, 44 | int *event_base, 45 | int *error_base 46 | ); 47 | 48 | Status XineramaQueryVersion( 49 | Display *dpy, 50 | int *major_versionp, 51 | int *minor_versionp 52 | ); 53 | 54 | Bool XineramaIsActive(Display *dpy); 55 | 56 | 57 | /* 58 | Returns the number of heads and a pointer to an array of 59 | structures describing the position and size of the individual 60 | heads. Returns NULL and number = 0 if Xinerama is not active. 61 | 62 | Returned array should be freed with XFree(). 63 | */ 64 | 65 | XineramaScreenInfo * 66 | XineramaQueryScreens( 67 | Display *dpy, 68 | int *number 69 | ); 70 | 71 | _XFUNCPROTOEND 72 | 73 | #endif /* _Xinerama_h */ 74 | 75 | -------------------------------------------------------------------------------- /native/include/X11/extensions/ag.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 1996, 1998 The Open Group 3 | 4 | Permission to use, copy, modify, distribute, and sell this software and its 5 | documentation for any purpose is hereby granted without fee, provided that 6 | the above copyright notice appear in all copies and that both that 7 | copyright notice and this permission notice appear in supporting 8 | documentation. 9 | 10 | The above copyright notice and this permission notice shall be included 11 | in all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 14 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 15 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 16 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 17 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 18 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 19 | OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall 22 | not be used in advertising or otherwise to promote the sale, use or 23 | other dealings in this Software without prior written authorization 24 | from The Open Group. 25 | */ 26 | 27 | #ifndef _AG_H_ 28 | #define _AG_H_ 29 | 30 | #define XAGNAME "XC-APPGROUP" 31 | 32 | #define XAG_MAJOR_VERSION 1 /* current version numbers */ 33 | #define XAG_MINOR_VERSION 0 34 | 35 | #define XagWindowTypeX11 0 36 | #define XagWindowTypeMacintosh 1 37 | #define XagWindowTypeWin32 2 38 | #define XagWindowTypeWin16 3 39 | 40 | #define XagBadAppGroup 0 41 | #define XagNumberErrors (XagBadAppGroup + 1) 42 | 43 | #define XagNsingleScreen 7 44 | #define XagNdefaultRoot 1 45 | #define XagNrootVisual 2 46 | #define XagNdefaultColormap 3 47 | #define XagNblackPixel 4 48 | #define XagNwhitePixel 5 49 | #define XagNappGroupLeader 6 50 | 51 | #endif /* _AG_H_ */ 52 | 53 | -------------------------------------------------------------------------------- /native/include/X11/extensions/bigreqsproto.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 1992, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | */ 26 | 27 | #ifndef _BIGREQSPROTO_H_ 28 | #define _BIGREQSPROTO_H_ 29 | 30 | #define X_BigReqEnable 0 31 | 32 | #define XBigReqNumberEvents 0 33 | 34 | #define XBigReqNumberErrors 0 35 | 36 | #define XBigReqExtensionName "BIG-REQUESTS" 37 | 38 | typedef struct { 39 | CARD8 reqType; /* always XBigReqCode */ 40 | CARD8 brReqType; /* always X_BigReqEnable */ 41 | CARD16 length B16; 42 | } xBigReqEnableReq; 43 | #define sz_xBigReqEnableReq 4 44 | 45 | typedef struct { 46 | BYTE type; /* X_Reply */ 47 | CARD8 pad0; 48 | CARD16 sequenceNumber B16; 49 | CARD32 length B32; 50 | CARD32 max_request_size B32; 51 | CARD32 pad1 B32; 52 | CARD32 pad2 B32; 53 | CARD32 pad3 B32; 54 | CARD32 pad4 B32; 55 | CARD32 pad5 B32; 56 | } xBigReqEnableReply; 57 | #define sz_xBigReqEnableReply 32 58 | 59 | 60 | typedef struct { 61 | CARD8 reqType; 62 | CARD8 data; 63 | CARD16 zero B16; 64 | CARD32 length B32; 65 | } xBigReq; 66 | 67 | #endif /* _BIGREQSPROTO_H_ */ 68 | -------------------------------------------------------------------------------- /native/include/X11/extensions/bigreqstr.h: -------------------------------------------------------------------------------- 1 | #warning "bigreqstr.h is obsolete and may be removed in the future." 2 | #warning "include for the protocol defines." 3 | #include 4 | -------------------------------------------------------------------------------- /native/include/X11/extensions/cup.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 1987, 1988, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | */ 26 | 27 | #ifndef _CUP_H_ 28 | #define _CUP_H_ 29 | 30 | #define XCUPNAME "TOG-CUP" 31 | 32 | #define XCUP_MAJOR_VERSION 1 /* current version numbers */ 33 | #define XCUP_MINOR_VERSION 0 34 | 35 | #define XcupNumberErrors 0 36 | 37 | #endif /* _CUP_H_ */ 38 | 39 | -------------------------------------------------------------------------------- /native/include/X11/extensions/damagewire.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2003 Keith Packard 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that 7 | * copyright notice and this permission notice appear in supporting 8 | * documentation, and that the name of Keith Packard not be used in 9 | * advertising or publicity pertaining to distribution of the software without 10 | * specific, written prior permission. Keith Packard makes no 11 | * representations about the suitability of this software for any purpose. It 12 | * is provided "as is" without express or implied warranty. 13 | * 14 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20 | * PERFORMANCE OF THIS SOFTWARE. 21 | */ 22 | 23 | #ifndef _DAMAGEWIRE_H_ 24 | #define _DAMAGEWIRE_H_ 25 | 26 | #define DAMAGE_NAME "DAMAGE" 27 | #define DAMAGE_MAJOR 1 28 | #define DAMAGE_MINOR 1 29 | 30 | /************* Version 1 ****************/ 31 | 32 | /* Constants */ 33 | #define XDamageReportRawRectangles 0 34 | #define XDamageReportDeltaRectangles 1 35 | #define XDamageReportBoundingBox 2 36 | #define XDamageReportNonEmpty 3 37 | 38 | /* Requests */ 39 | #define X_DamageQueryVersion 0 40 | #define X_DamageCreate 1 41 | #define X_DamageDestroy 2 42 | #define X_DamageSubtract 3 43 | #define X_DamageAdd 4 44 | 45 | #define XDamageNumberRequests (X_DamageAdd + 1) 46 | 47 | /* Events */ 48 | #define XDamageNotify 0 49 | 50 | #define XDamageNumberEvents (XDamageNotify + 1) 51 | 52 | /* Errors */ 53 | #define BadDamage 0 54 | #define XDamageNumberErrors (BadDamage + 1) 55 | 56 | #endif /* _DAMAGEWIRE_H_ */ 57 | -------------------------------------------------------------------------------- /native/include/X11/extensions/dbe.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (c) 1994, 1995 Hewlett-Packard Company 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining 6 | * a copy of this software and associated documentation files (the 7 | * "Software"), to deal in the Software without restriction, including 8 | * without limitation the rights to use, copy, modify, merge, publish, 9 | * distribute, sublicense, and/or sell copies of the Software, and to 10 | * permit persons to whom the Software is furnished to do so, subject to 11 | * the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included 14 | * in all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | * IN NO EVENT SHALL HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM, 20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | * 24 | * Except as contained in this notice, the name of the Hewlett-Packard 25 | * Company shall not be used in advertising or otherwise to promote the 26 | * sale, use or other dealings in this Software without prior written 27 | * authorization from the Hewlett-Packard Company. 28 | * 29 | * Header file for Xlib-related DBE 30 | * 31 | *****************************************************************************/ 32 | 33 | #ifndef DBE_H 34 | #define DBE_H 35 | 36 | /* Values for swap_action field of XdbeSwapInfo structure */ 37 | #define XdbeUndefined 0 38 | #define XdbeBackground 1 39 | #define XdbeUntouched 2 40 | #define XdbeCopied 3 41 | 42 | /* Errors */ 43 | #define XdbeBadBuffer 0 44 | 45 | #define DBE_PROTOCOL_NAME "DOUBLE-BUFFER" 46 | 47 | /* Current version numbers */ 48 | #define DBE_MAJOR_VERSION 1 49 | #define DBE_MINOR_VERSION 0 50 | 51 | /* Used when adding extension; also used in Xdbe macros */ 52 | #define DbeNumberEvents 0 53 | #define DbeBadBuffer 0 54 | #define DbeNumberErrors (DbeBadBuffer + 1) 55 | 56 | #endif /* DBE_H */ 57 | 58 | -------------------------------------------------------------------------------- /native/include/X11/extensions/dpms.h: -------------------------------------------------------------------------------- 1 | /***************************************************************** 2 | 3 | Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, 18 | BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, 19 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 20 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of Digital Equipment Corporation 23 | shall not be used in advertising or otherwise to promote the sale, use or other 24 | dealings in this Software without prior written authorization from Digital 25 | Equipment Corporation. 26 | 27 | ******************************************************************/ 28 | 29 | #ifndef _X11_EXTENSIONS_DPMS_H 30 | #define _X11_EXTENSIONS_DPMS_H 1 31 | 32 | #include 33 | #include 34 | #include 35 | 36 | #ifndef DPMS_SERVER 37 | _XFUNCPROTOBEGIN 38 | 39 | extern Bool DPMSQueryExtension(Display *, int *, int *); 40 | extern Status DPMSGetVersion(Display *, int *, int *); 41 | extern Bool DPMSCapable(Display *); 42 | extern Status DPMSSetTimeouts(Display *, CARD16, CARD16, CARD16); 43 | extern Bool DPMSGetTimeouts(Display *, CARD16 *, CARD16 *, CARD16 *); 44 | extern Status DPMSEnable(Display *); 45 | extern Status DPMSDisable(Display *); 46 | extern Status DPMSForceLevel(Display *, CARD16); 47 | extern Status DPMSInfo(Display *, CARD16 *, BOOL *); 48 | 49 | _XFUNCPROTOEND 50 | #endif 51 | 52 | #endif /* !_X11_EXTENSIONS_DPMS_H */ 53 | 54 | -------------------------------------------------------------------------------- /native/include/X11/extensions/dpmsconst.h: -------------------------------------------------------------------------------- 1 | /***************************************************************** 2 | 3 | Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, 18 | BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, 19 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 20 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of Digital Equipment Corporation 23 | shall not be used in advertising or otherwise to promote the sale, use or other 24 | dealings in this Software without prior written authorization from Digital 25 | Equipment Corporation. 26 | 27 | ******************************************************************/ 28 | 29 | #ifndef _DPMSCONST_H 30 | #define _DPMSCONST_H 1 31 | 32 | #define DPMSMajorVersion 1 33 | #define DPMSMinorVersion 1 34 | 35 | #define DPMSExtensionName "DPMS" 36 | 37 | #define DPMSModeOn 0 38 | #define DPMSModeStandby 1 39 | #define DPMSModeSuspend 2 40 | #define DPMSModeOff 3 41 | 42 | #endif /* !_DPMSCONST_H */ 43 | 44 | -------------------------------------------------------------------------------- /native/include/X11/extensions/dri2tokens.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2008 Red Hat, Inc. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Soft- 6 | * ware"), to deal in the Software without restriction, including without 7 | * limitation the rights to use, copy, modify, merge, publish, distribute, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, provided that the above copyright 10 | * notice(s) and this permission notice appear in all copies of the Soft- 11 | * ware and that both the above copyright notice(s) and this permission 12 | * notice appear in supporting documentation. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- 16 | * ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY 17 | * RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN 18 | * THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE- 19 | * QUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 20 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 21 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR- 22 | * MANCE OF THIS SOFTWARE. 23 | * 24 | * Except as contained in this notice, the name of a copyright holder shall 25 | * not be used in advertising or otherwise to promote the sale, use or 26 | * other dealings in this Software without prior written authorization of 27 | * the copyright holder. 28 | * 29 | * Authors: 30 | * Kristian Høgsberg (krh@redhat.com) 31 | */ 32 | 33 | #ifndef _DRI2_TOKENS_H_ 34 | #define _DRI2_TOKENS_H_ 35 | 36 | #define DRI2BufferFrontLeft 0 37 | #define DRI2BufferBackLeft 1 38 | #define DRI2BufferFrontRight 2 39 | #define DRI2BufferBackRight 3 40 | #define DRI2BufferDepth 4 41 | #define DRI2BufferStencil 5 42 | #define DRI2BufferAccum 6 43 | #define DRI2BufferFakeFrontLeft 7 44 | #define DRI2BufferFakeFrontRight 8 45 | #define DRI2BufferDepthStencil 9 46 | #define DRI2BufferHiz 10 47 | 48 | /* keep bits 16 and above for prime IDs */ 49 | #define DRI2DriverPrimeMask 7 /* 0 - 7 - allows for 6 devices*/ 50 | #define DRI2DriverPrimeShift 16 51 | #define DRI2DriverPrimeId(x) (((x) >> DRI2DriverPrimeShift) & (DRI2DriverPrimeMask)) 52 | 53 | #define DRI2DriverDRI 0 54 | #define DRI2DriverVDPAU 1 55 | 56 | /* Event sub-types for the swap complete event */ 57 | #define DRI2_EXCHANGE_COMPLETE 0x1 58 | #define DRI2_BLIT_COMPLETE 0x2 59 | #define DRI2_FLIP_COMPLETE 0x3 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /native/include/X11/extensions/ge.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2007-2008 Peter Hutterer 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | * DEALINGS IN THE SOFTWARE. 22 | * 23 | * Authors: Peter Hutterer, University of South Australia, NICTA 24 | * 25 | */ 26 | 27 | #ifndef _GE_H_ 28 | #define _GE_H_ 29 | 30 | #define GE_NAME "Generic Event Extension" 31 | #define GE_MAJOR 1 32 | #define GE_MINOR 0 33 | 34 | /********************************************************* 35 | * 36 | * Requests 37 | * 38 | */ 39 | 40 | #define X_GEQueryVersion 0 41 | 42 | #define GENumberRequests (X_GEQueryVersion + 1) 43 | 44 | /********************************************************* 45 | * 46 | * Events 47 | * 48 | */ 49 | 50 | #define GENumberEvents 0 51 | 52 | /********************************************************* 53 | * 54 | * Errors 55 | * 56 | */ 57 | 58 | #define GENumberErrors 0 59 | 60 | #endif /* _GE_H_ */ 61 | -------------------------------------------------------------------------------- /native/include/X11/extensions/geproto.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2007-2008 Peter Hutterer 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | * DEALINGS IN THE SOFTWARE. 22 | * 23 | * Authors: Peter Hutterer, University of South Australia, NICTA 24 | * 25 | */ 26 | 27 | #ifndef _GEPROTO_H_ 28 | #define _GEPROTO_H_ 29 | 30 | #include 31 | #include 32 | #include 33 | 34 | 35 | /********************************************************* 36 | * 37 | * Protocol request constants 38 | * 39 | */ 40 | 41 | #define X_GEGetExtensionVersion 1 42 | 43 | /********************************************************* 44 | * 45 | * XGE protocol requests/replies 46 | * 47 | */ 48 | 49 | /* generic request */ 50 | typedef struct { 51 | CARD8 reqType; 52 | CARD8 ReqType; 53 | CARD16 length B16; 54 | } xGEReq; 55 | 56 | 57 | /* QueryVersion */ 58 | typedef struct { 59 | CARD8 reqType; /* input extension major code */ 60 | CARD8 ReqType; /* always X_GEQueryVersion */ 61 | CARD16 length B16; 62 | CARD16 majorVersion B16; 63 | CARD16 minorVersion B16; 64 | } xGEQueryVersionReq; 65 | 66 | #define sz_xGEQueryVersionReq 8 67 | 68 | typedef struct { 69 | CARD8 repType; /* X_Reply */ 70 | CARD8 RepType; /* always X_GEQueryVersion */ 71 | CARD16 sequenceNumber B16; 72 | CARD32 length B32; 73 | CARD16 majorVersion B16; 74 | CARD16 minorVersion B16; 75 | CARD32 pad00 B32; 76 | CARD32 pad01 B32; 77 | CARD32 pad02 B32; 78 | CARD32 pad03 B32; 79 | CARD32 pad04 B32; 80 | } xGEQueryVersionReply; 81 | 82 | #define sz_xGEQueryVersionReply 32 83 | 84 | #endif /* _GEPROTO_H_ */ 85 | 86 | -------------------------------------------------------------------------------- /native/include/X11/extensions/lbx.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 Network Computing Devices 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that 7 | * copyright notice and this permission notice appear in supporting 8 | * documentation, and that the name of NCD. not be used in advertising or 9 | * publicity pertaining to distribution of the software without specific, 10 | * written prior permission. NCD. makes no representations about the 11 | * suitability of this software for any purpose. It is provided "as is" 12 | * without express or implied warranty. 13 | * 14 | * NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 15 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD. 16 | * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 17 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 18 | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 19 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 20 | * 21 | */ 22 | 23 | #ifndef _LBX_H_ 24 | #define _LBX_H_ 25 | 26 | #define LBXNAME "LBX" 27 | 28 | #define LBX_MAJOR_VERSION 1 29 | #define LBX_MINOR_VERSION 0 30 | 31 | #define LbxNumberReqs 44 32 | #define LbxEvent 0 33 | #define LbxQuickMotionDeltaEvent 1 34 | #define LbxNumberEvents 2 35 | 36 | /* This is always the master client */ 37 | #define LbxMasterClientIndex 0 38 | 39 | /* LbxEvent lbxType sub-fields */ 40 | #define LbxSwitchEvent 0 41 | #define LbxCloseEvent 1 42 | #define LbxDeltaEvent 2 43 | #define LbxInvalidateTagEvent 3 44 | #define LbxSendTagDataEvent 4 45 | #define LbxListenToOne 5 46 | #define LbxListenToAll 6 47 | #define LbxMotionDeltaEvent 7 48 | #define LbxReleaseCmapEvent 8 49 | #define LbxFreeCellsEvent 9 50 | 51 | /* 52 | * Lbx image compression methods 53 | * 54 | * No compression is always assigned the value of 0. 55 | * 56 | * The rest of the compression method opcodes are assigned dynamically 57 | * at option negotiation time. 58 | */ 59 | 60 | #define LbxImageCompressNone 0 61 | 62 | 63 | #define BadLbxClient 0 64 | #define LbxNumberErrors (BadLbxClient + 1) 65 | 66 | /* tagged data types */ 67 | #define LbxTagTypeModmap 1 68 | #define LbxTagTypeKeymap 2 69 | #define LbxTagTypeProperty 3 70 | #define LbxTagTypeFont 4 71 | #define LbxTagTypeConnInfo 5 72 | 73 | #endif 74 | -------------------------------------------------------------------------------- /native/include/X11/extensions/mitmiscconst.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1989, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | ********************************************************/ 26 | 27 | /* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */ 28 | 29 | 30 | #ifndef _MITMISCCONST_H_ 31 | #define _MITMISCCONST_H_ 32 | 33 | #define MITMiscNumberEvents 0 34 | #define MITMiscNumberErrors 0 35 | 36 | #define MITMISCNAME "MIT-SUNDRY-NONSTANDARD" 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /native/include/X11/extensions/mitmiscproto.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1989, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | ********************************************************/ 26 | 27 | /* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */ 28 | 29 | #ifndef _MITMISCPROTO_H_ 30 | #define _MITMISCPROTO_H_ 31 | 32 | #include 33 | 34 | #define X_MITSetBugMode 0 35 | #define X_MITGetBugMode 1 36 | 37 | typedef struct _SetBugMode { 38 | CARD8 reqType; /* always MITReqCode */ 39 | CARD8 mitReqType; /* always X_MITSetBugMode */ 40 | CARD16 length B16; 41 | BOOL onOff; 42 | BYTE pad0; 43 | CARD16 pad1; 44 | } xMITSetBugModeReq; 45 | #define sz_xMITSetBugModeReq 8 46 | 47 | typedef struct _GetBugMode { 48 | CARD8 reqType; /* always MITReqCode */ 49 | CARD8 mitReqType; /* always X_MITGetBugMode */ 50 | CARD16 length B16; 51 | } xMITGetBugModeReq; 52 | #define sz_xMITGetBugModeReq 4 53 | 54 | typedef struct { 55 | BYTE type; /* X_Reply */ 56 | BOOL onOff; 57 | CARD16 sequenceNumber B16; 58 | CARD32 length B32; 59 | CARD32 pad0 B32; 60 | CARD32 pad1 B32; 61 | CARD32 pad2 B32; 62 | CARD32 pad3 B32; 63 | CARD32 pad4 B32; 64 | CARD32 pad5 B32; 65 | } xMITGetBugModeReply; 66 | #define sz_xMITGetBugModeReply 32 67 | 68 | #endif /* _MITMISCPROTO_H_ */ 69 | -------------------------------------------------------------------------------- /native/include/X11/extensions/multibufconst.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 1989, 1998 The Open Group 3 | 4 | Permission to use, copy, modify, distribute, and sell this software and its 5 | documentation for any purpose is hereby granted without fee, provided that 6 | the above copyright notice appear in all copies and that both that 7 | copyright notice and this permission notice appear in supporting 8 | documentation. 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 17 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | 20 | Except as contained in this notice, the name of The Open Group shall not be 21 | used in advertising or otherwise to promote the sale, use or other dealings 22 | in this Software without prior written authorization from The Open Group. 23 | */ 24 | 25 | #ifndef _MULTIBUFCONST_H_ 26 | #define _MULTIBUFCONST_H_ 27 | 28 | #define MULTIBUFFER_PROTOCOL_NAME "Multi-Buffering" 29 | 30 | #define MULTIBUFFER_MAJOR_VERSION 1 /* current version numbers */ 31 | #define MULTIBUFFER_MINOR_VERSION 1 /* has ClearImageBufferArea */ 32 | 33 | /* 34 | * update_action field 35 | */ 36 | #define MultibufferUpdateActionUndefined 0 37 | #define MultibufferUpdateActionBackground 1 38 | #define MultibufferUpdateActionUntouched 2 39 | #define MultibufferUpdateActionCopied 3 40 | 41 | /* 42 | * update_hint field 43 | */ 44 | #define MultibufferUpdateHintFrequent 0 45 | #define MultibufferUpdateHintIntermittent 1 46 | #define MultibufferUpdateHintStatic 2 47 | 48 | /* 49 | * valuemask fields 50 | */ 51 | #define MultibufferWindowUpdateHint (1L << 0) 52 | #define MultibufferBufferEventMask (1L << 0) 53 | 54 | /* 55 | * mono vs. stereo and left vs. right 56 | */ 57 | #define MultibufferModeMono 0 58 | #define MultibufferModeStereo 1 59 | #define MultibufferSideMono 0 60 | #define MultibufferSideLeft 1 61 | #define MultibufferSideRight 2 62 | 63 | /* 64 | * clobber state 65 | */ 66 | #define MultibufferUnclobbered 0 67 | #define MultibufferPartiallyClobbered 1 68 | #define MultibufferFullyClobbered 2 69 | 70 | /* 71 | * event stuff 72 | */ 73 | #define MultibufferClobberNotifyMask 0x02000000 74 | #define MultibufferUpdateNotifyMask 0x04000000 75 | 76 | #define MultibufferClobberNotify 0 77 | #define MultibufferUpdateNotify 1 78 | #define MultibufferNumberEvents (MultibufferUpdateNotify + 1) 79 | 80 | #define MultibufferBadBuffer 0 81 | #define MultibufferNumberErrors (MultibufferBadBuffer + 1) 82 | 83 | #endif /* _MULTIBUFCONST_H_ */ 84 | -------------------------------------------------------------------------------- /native/include/X11/extensions/saver.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 1992 X Consortium 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of the X Consortium shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from the X Consortium. 24 | * 25 | * Author: Keith Packard, MIT X Consortium 26 | */ 27 | 28 | #ifndef _SAVER_H_ 29 | #define _SAVER_H_ 30 | 31 | #define ScreenSaverName "MIT-SCREEN-SAVER" 32 | #define ScreenSaverPropertyName "_MIT_SCREEN_SAVER_ID" 33 | 34 | #define ScreenSaverNotifyMask 0x00000001 35 | #define ScreenSaverCycleMask 0x00000002 36 | 37 | #define ScreenSaverMajorVersion 1 38 | #define ScreenSaverMinorVersion 1 39 | 40 | #define ScreenSaverOff 0 41 | #define ScreenSaverOn 1 42 | #define ScreenSaverCycle 2 43 | #define ScreenSaverDisabled 3 44 | 45 | #define ScreenSaverBlanked 0 46 | #define ScreenSaverInternal 1 47 | #define ScreenSaverExternal 2 48 | 49 | #define ScreenSaverNotify 0 50 | #define ScreenSaverNumberEvents 1 51 | 52 | #endif /* _SAVER_H_ */ 53 | -------------------------------------------------------------------------------- /native/include/X11/extensions/secur.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 1996, 1998 The Open Group 3 | 4 | Permission to use, copy, modify, distribute, and sell this software and its 5 | documentation for any purpose is hereby granted without fee, provided that 6 | the above copyright notice appear in all copies and that both that 7 | copyright notice and this permission notice appear in supporting 8 | documentation. 9 | 10 | The above copyright notice and this permission notice shall be included 11 | in all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 14 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 15 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 16 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 17 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 18 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 19 | OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall 22 | not be used in advertising or otherwise to promote the sale, use or 23 | other dealings in this Software without prior written authorization 24 | from The Open Group. 25 | */ 26 | 27 | #ifndef _SECUR_H 28 | #define _SECUR_H 29 | 30 | #define SECURITY_EXTENSION_NAME "SECURITY" 31 | #define SECURITY_MAJOR_VERSION 1 32 | #define SECURITY_MINOR_VERSION 0 33 | 34 | #define XSecurityNumberEvents 1 35 | #define XSecurityNumberErrors 2 36 | #define XSecurityBadAuthorization 0 37 | #define XSecurityBadAuthorizationProtocol 1 38 | 39 | /* trust levels */ 40 | #define XSecurityClientTrusted 0 41 | #define XSecurityClientUntrusted 1 42 | 43 | /* authorization attribute masks */ 44 | #define XSecurityTimeout (1<<0) 45 | #define XSecurityTrustLevel (1<<1) 46 | #define XSecurityGroup (1<<2) 47 | #define XSecurityEventMask (1<<3) 48 | #define XSecurityAllAuthorizationAttributes \ 49 | (XSecurityTimeout | XSecurityTrustLevel | XSecurityGroup | XSecurityEventMask) 50 | 51 | /* event masks */ 52 | #define XSecurityAuthorizationRevokedMask (1<<0) 53 | #define XSecurityAllEventMasks XSecurityAuthorizationRevokedMask 54 | 55 | /* event offsets */ 56 | #define XSecurityAuthorizationRevoked 0 57 | 58 | #define XSecurityAuthorizationName "XC-QUERY-SECURITY-1" 59 | #define XSecurityAuthorizationNameLen 19 60 | 61 | #endif /* _SECUR_H */ 62 | -------------------------------------------------------------------------------- /native/include/X11/extensions/security.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 1996, 1998 The Open Group 3 | 4 | Permission to use, copy, modify, distribute, and sell this software and its 5 | documentation for any purpose is hereby granted without fee, provided that 6 | the above copyright notice appear in all copies and that both that 7 | copyright notice and this permission notice appear in supporting 8 | documentation. 9 | 10 | The above copyright notice and this permission notice shall be included 11 | in all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 14 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 15 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 16 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 17 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 18 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 19 | OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall 22 | not be used in advertising or otherwise to promote the sale, use or 23 | other dealings in this Software without prior written authorization 24 | from The Open Group. 25 | */ 26 | 27 | #ifndef _SECURITY_H 28 | #define _SECURITY_H 29 | 30 | #define _XAUTH_STRUCT_ONLY 31 | #include 32 | 33 | #include 34 | 35 | _XFUNCPROTOBEGIN 36 | 37 | Status XSecurityQueryExtension ( 38 | Display *dpy, 39 | int *major_version_return, 40 | int *minor_version_return); 41 | 42 | Xauth *XSecurityAllocXauth(void); 43 | 44 | void XSecurityFreeXauth(Xauth *auth); 45 | 46 | /* type for returned auth ids */ 47 | typedef unsigned long XSecurityAuthorization; 48 | 49 | typedef struct { 50 | unsigned int timeout; 51 | unsigned int trust_level; 52 | XID group; 53 | long event_mask; 54 | } XSecurityAuthorizationAttributes; 55 | 56 | Xauth *XSecurityGenerateAuthorization( 57 | Display *dpy, 58 | Xauth *auth_in, 59 | unsigned long valuemask, 60 | XSecurityAuthorizationAttributes *attributes, 61 | XSecurityAuthorization *auth_id_return); 62 | 63 | Status XSecurityRevokeAuthorization( 64 | Display *dpy, 65 | XSecurityAuthorization auth_id); 66 | 67 | _XFUNCPROTOEND 68 | 69 | typedef struct { 70 | int type; /* event base + XSecurityAuthorizationRevoked */ 71 | unsigned long serial; /* # of last request processed by server */ 72 | Bool send_event; /* true if this came from a SendEvent request */ 73 | Display *display; /* Display the event was read from */ 74 | XSecurityAuthorization auth_id; /* revoked authorization id */ 75 | } XSecurityAuthorizationRevokedEvent; 76 | 77 | #endif /* _SECURITY_H */ 78 | -------------------------------------------------------------------------------- /native/include/X11/extensions/shapeconst.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1989, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | ********************************************************/ 26 | 27 | #ifndef _SHAPECONST_H_ 28 | #define _SHAPECONST_H_ 29 | 30 | /* 31 | * Protocol requests constants and alignment values 32 | * These would really be in SHAPE's X.h and Xproto.h equivalents 33 | */ 34 | 35 | #define SHAPENAME "SHAPE" 36 | 37 | #define SHAPE_MAJOR_VERSION 1 /* current version numbers */ 38 | #define SHAPE_MINOR_VERSION 1 39 | 40 | #define ShapeSet 0 41 | #define ShapeUnion 1 42 | #define ShapeIntersect 2 43 | #define ShapeSubtract 3 44 | #define ShapeInvert 4 45 | 46 | #define ShapeBounding 0 47 | #define ShapeClip 1 48 | #define ShapeInput 2 49 | 50 | #define ShapeNotifyMask (1L << 0) 51 | #define ShapeNotify 0 52 | 53 | #define ShapeNumberEvents (ShapeNotify + 1) 54 | 55 | #endif /* _SHAPECONST_H_ */ 56 | -------------------------------------------------------------------------------- /native/include/X11/extensions/shapestr.h: -------------------------------------------------------------------------------- 1 | #ifndef _SHAPESTR_H_ 2 | #define _SHAPESTR_H_ 3 | 4 | #warning "shapestr.h is obsolete and may be removed in the future." 5 | #warning "include for the protocol defines." 6 | #include 7 | 8 | #endif /* _SHAPESTR_H_ */ 9 | -------------------------------------------------------------------------------- /native/include/X11/extensions/shm.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1989, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | ********************************************************/ 26 | 27 | /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */ 28 | 29 | #ifndef _SHM_H_ 30 | #define _SHM_H_ 31 | 32 | #define SHMNAME "MIT-SHM" 33 | 34 | #define SHM_MAJOR_VERSION 1 /* current version numbers */ 35 | #define SHM_MINOR_VERSION 2 36 | 37 | #define ShmCompletion 0 38 | #define ShmNumberEvents (ShmCompletion + 1) 39 | 40 | #define BadShmSeg 0 41 | #define ShmNumberErrors (BadShmSeg + 1) 42 | 43 | 44 | #endif /* _SHM_H_ */ 45 | -------------------------------------------------------------------------------- /native/include/X11/extensions/shmstr.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1989, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | ********************************************************/ 26 | 27 | /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */ 28 | 29 | #ifndef _SHMSTR_H_ 30 | #define _SHMSTR_H_ 31 | 32 | #include 33 | 34 | #ifdef _XSHM_SERVER_ 35 | #define XSHM_PUT_IMAGE_ARGS \ 36 | DrawablePtr /* dst */, \ 37 | GCPtr /* pGC */, \ 38 | int /* depth */, \ 39 | unsigned int /* format */, \ 40 | int /* w */, \ 41 | int /* h */, \ 42 | int /* sx */, \ 43 | int /* sy */, \ 44 | int /* sw */, \ 45 | int /* sh */, \ 46 | int /* dx */, \ 47 | int /* dy */, \ 48 | char * /* data */ 49 | 50 | #define XSHM_CREATE_PIXMAP_ARGS \ 51 | ScreenPtr /* pScreen */, \ 52 | int /* width */, \ 53 | int /* height */, \ 54 | int /* depth */, \ 55 | char * /* addr */ 56 | 57 | typedef struct _ShmFuncs { 58 | PixmapPtr (* CreatePixmap)(XSHM_CREATE_PIXMAP_ARGS); 59 | void (* PutImage)(XSHM_PUT_IMAGE_ARGS); 60 | } ShmFuncs, *ShmFuncsPtr; 61 | #endif 62 | 63 | #endif /* _SHMSTR_H_ */ 64 | -------------------------------------------------------------------------------- /native/include/X11/extensions/xcmiscstr.h: -------------------------------------------------------------------------------- 1 | #warning "xcmiscstr.h is obsolete and may be removed in the future." 2 | #warning "include for the protocol defines." 3 | #include 4 | -------------------------------------------------------------------------------- /native/include/X11/extensions/xf86dga.h: -------------------------------------------------------------------------------- 1 | #ifdef _XF86DGA_SERVER_ 2 | 3 | #warning "xf86dga.h is obsolete and may be removed in the future." 4 | #warning "include instead." 5 | #include 6 | 7 | #else 8 | 9 | #warning "xf86dga.h is obsolete and may be removed in the future." 10 | #warning "include instead." 11 | #include 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /native/include/X11/extensions/xf86dga1const.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright (c) 1995 Jon Tombs 4 | Copyright (c) 1995 XFree86 Inc 5 | 6 | */ 7 | 8 | /************************************************************************ 9 | 10 | THIS IS THE OLD DGA API AND IS OBSOLETE. PLEASE DO NOT USE IT ANYMORE 11 | 12 | ************************************************************************/ 13 | 14 | #ifndef _XF86DGA1CONST_H_ 15 | #define _XF86DGA1CONST_H_ 16 | 17 | #define X_XF86DGAQueryVersion 0 18 | #define X_XF86DGAGetVideoLL 1 19 | #define X_XF86DGADirectVideo 2 20 | #define X_XF86DGAGetViewPortSize 3 21 | #define X_XF86DGASetViewPort 4 22 | #define X_XF86DGAGetVidPage 5 23 | #define X_XF86DGASetVidPage 6 24 | #define X_XF86DGAInstallColormap 7 25 | #define X_XF86DGAQueryDirectVideo 8 26 | #define X_XF86DGAViewPortChanged 9 27 | 28 | #define XF86DGADirectPresent 0x0001 29 | #define XF86DGADirectGraphics 0x0002 30 | #define XF86DGADirectMouse 0x0004 31 | #define XF86DGADirectKeyb 0x0008 32 | #define XF86DGAHasColormap 0x0100 33 | #define XF86DGADirectColormap 0x0200 34 | 35 | 36 | #endif /* _XF86DGA1CONST_H_ */ 37 | -------------------------------------------------------------------------------- /native/include/X11/extensions/xf86dga1str.h: -------------------------------------------------------------------------------- 1 | #warning "xf86dga1str.h is obsolete and may be removed in the future." 2 | #warning "include for the protocol defines." 3 | #include 4 | -------------------------------------------------------------------------------- /native/include/X11/extensions/xf86dgaconst.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 1999 XFree86 Inc 3 | */ 4 | 5 | #ifndef _XF86DGACONST_H_ 6 | #define _XF86DGACONST_H_ 7 | 8 | #include 9 | 10 | #define X_XDGAQueryVersion 0 11 | 12 | /* 1 through 9 are in xf86dga1.h */ 13 | 14 | /* 10 and 11 are reserved to avoid conflicts with rogue DGA extensions */ 15 | 16 | #define X_XDGAQueryModes 12 17 | #define X_XDGASetMode 13 18 | #define X_XDGASetViewport 14 19 | #define X_XDGAInstallColormap 15 20 | #define X_XDGASelectInput 16 21 | #define X_XDGAFillRectangle 17 22 | #define X_XDGACopyArea 18 23 | #define X_XDGACopyTransparentArea 19 24 | #define X_XDGAGetViewportStatus 20 25 | #define X_XDGASync 21 26 | #define X_XDGAOpenFramebuffer 22 27 | #define X_XDGACloseFramebuffer 23 28 | #define X_XDGASetClientVersion 24 29 | #define X_XDGAChangePixmapMode 25 30 | #define X_XDGACreateColormap 26 31 | 32 | 33 | #define XDGAConcurrentAccess 0x00000001 34 | #define XDGASolidFillRect 0x00000002 35 | #define XDGABlitRect 0x00000004 36 | #define XDGABlitTransRect 0x00000008 37 | #define XDGAPixmap 0x00000010 38 | 39 | #define XDGAInterlaced 0x00010000 40 | #define XDGADoublescan 0x00020000 41 | 42 | #define XDGAFlipImmediate 0x00000001 43 | #define XDGAFlipRetrace 0x00000002 44 | 45 | #define XDGANeedRoot 0x00000001 46 | 47 | #define XF86DGANumberEvents 7 48 | 49 | #define XDGAPixmapModeLarge 0 50 | #define XDGAPixmapModeSmall 1 51 | 52 | #define XF86DGAClientNotLocal 0 53 | #define XF86DGANoDirectVideoMode 1 54 | #define XF86DGAScreenNotActive 2 55 | #define XF86DGADirectNotActivated 3 56 | #define XF86DGAOperationNotSupported 4 57 | #define XF86DGANumberErrors (XF86DGAOperationNotSupported + 1) 58 | 59 | 60 | typedef struct { 61 | int num; /* A unique identifier for the mode (num > 0) */ 62 | char *name; /* name of mode given in the XF86Config */ 63 | float verticalRefresh; 64 | int flags; /* DGA_CONCURRENT_ACCESS, etc... */ 65 | int imageWidth; /* linear accessible portion (pixels) */ 66 | int imageHeight; 67 | int pixmapWidth; /* Xlib accessible portion (pixels) */ 68 | int pixmapHeight; /* both fields ignored if no concurrent access */ 69 | int bytesPerScanline; 70 | int byteOrder; /* MSBFirst, LSBFirst */ 71 | int depth; 72 | int bitsPerPixel; 73 | unsigned long redMask; 74 | unsigned long greenMask; 75 | unsigned long blueMask; 76 | short visualClass; 77 | int viewportWidth; 78 | int viewportHeight; 79 | int xViewportStep; /* viewport position granularity */ 80 | int yViewportStep; 81 | int maxViewportX; /* max viewport origin */ 82 | int maxViewportY; 83 | int viewportFlags; /* types of page flipping possible */ 84 | int reserved1; 85 | int reserved2; 86 | } XDGAMode; 87 | 88 | 89 | typedef struct { 90 | XDGAMode mode; 91 | unsigned char *data; 92 | Pixmap pixmap; 93 | } XDGADevice; 94 | 95 | 96 | #endif /* _XF86DGACONST_H_ */ 97 | -------------------------------------------------------------------------------- /native/include/X11/extensions/xf86dgastr.h: -------------------------------------------------------------------------------- 1 | #warning "xf86dgastr.h is obsolete and may be removed in the future." 2 | #warning "include for the protocol defines." 3 | #include 4 | -------------------------------------------------------------------------------- /native/include/X11/extensions/xf86vm.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 1995 Kaleb S. KEITHLEY 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES 20 | OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | Except as contained in this notice, the name of Kaleb S. KEITHLEY 25 | shall not be used in advertising or otherwise to promote the sale, use 26 | or other dealings in this Software without prior written authorization 27 | from Kaleb S. KEITHLEY 28 | 29 | */ 30 | 31 | /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */ 32 | 33 | #ifndef _XF86VM_H_ 34 | #define _XF86VM_H_ 35 | 36 | #include 37 | 38 | 39 | #define CLKFLAG_PROGRAMABLE 1 40 | 41 | #ifdef XF86VIDMODE_EVENTS 42 | #define XF86VidModeNotify 0 43 | #define XF86VidModeNumberEvents (XF86VidModeNotify + 1) 44 | 45 | #define XF86VidModeNotifyMask 0x00000001 46 | 47 | #define XF86VidModeNonEvent 0 48 | #define XF86VidModeModeChange 1 49 | #else 50 | #define XF86VidModeNumberEvents 0 51 | #endif 52 | 53 | #define XF86VidModeBadClock 0 54 | #define XF86VidModeBadHTimings 1 55 | #define XF86VidModeBadVTimings 2 56 | #define XF86VidModeModeUnsuitable 3 57 | #define XF86VidModeExtensionDisabled 4 58 | #define XF86VidModeClientNotLocal 5 59 | #define XF86VidModeZoomLocked 6 60 | #define XF86VidModeNumberErrors (XF86VidModeZoomLocked + 1) 61 | 62 | #define XF86VM_READ_PERMISSION 1 63 | #define XF86VM_WRITE_PERMISSION 2 64 | 65 | #endif 66 | -------------------------------------------------------------------------------- /native/include/X11/extensions/xf86vmstr.h: -------------------------------------------------------------------------------- 1 | #warning "xf86vmstr.h is obsolete and may be removed in the future." 2 | #warning "include for the protocol defines." 3 | #include 4 | -------------------------------------------------------------------------------- /native/include/X11/extensions/xtestconst.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 1992, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | */ 26 | 27 | #ifndef _XTEST_CONST_H_ 28 | #define _XTEST_CONST_H_ 29 | 30 | #define XTestNumberEvents 0 31 | 32 | #define XTestNumberErrors 0 33 | 34 | #define XTestCurrentCursor ((Cursor)1) 35 | 36 | #define XTestMajorVersion 2 37 | #define XTestMinorVersion 2 38 | 39 | #define XTestExtensionName "XTEST" 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /native/include/X11/fonts/fntfilio.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 1991, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | */ 26 | 27 | /* 28 | * Author: Keith Packard, MIT X Consortium 29 | */ 30 | 31 | #ifndef _FNTFILIO_H_ 32 | #define _FNTFILIO_H_ 33 | 34 | #include 35 | 36 | typedef BufFilePtr FontFilePtr; 37 | 38 | #define FontFileGetc(f) BufFileGet(f) 39 | #define FontFilePutc(c,f) BufFilePut(c,f) 40 | #define FontFileRead(f,b,n) BufFileRead(f,b,n) 41 | #define FontFileWrite(f,b,n) BufFileWrite(f,b,n) 42 | #define FontFileSkip(f,n) (BufFileSkip (f, n) != BUFFILEEOF) 43 | #define FontFileSeek(f,n) (BufFileSeek (f,n,0) != BUFFILEEOF) 44 | 45 | #define FontFileEOF BUFFILEEOF 46 | 47 | extern FontFilePtr FontFileOpen ( const char *name ); 48 | extern int FontFileClose ( FontFilePtr f ); 49 | extern FontFilePtr FontFileOpenWrite ( const char *name ); 50 | extern FontFilePtr FontFileOpenWriteFd ( int fd ); 51 | extern FontFilePtr FontFileOpenFd ( int fd ); 52 | 53 | #endif /* _FNTFILIO_H_ */ 54 | -------------------------------------------------------------------------------- /native/include/X11/fonts/fontconf.h: -------------------------------------------------------------------------------- 1 | /* include/X11/fonts/fontconf.h. Generated from fontconf.h.in by configure. */ 2 | /* 3 | * Copyright © 2005 Keith Packard 4 | * 5 | * Permission to use, copy, modify, distribute, and sell this software and its 6 | * documentation for any purpose is hereby granted without fee, provided that 7 | * the above copyright notice appear in all copies and that both that 8 | * copyright notice and this permission notice appear in supporting 9 | * documentation, and that the name of Keith Packard not be used in 10 | * advertising or publicity pertaining to distribution of the software without 11 | * specific, written prior permission. Keith Packard makes no 12 | * representations about the suitability of this software for any purpose. It 13 | * is provided "as is" without express or implied warranty. 14 | * 15 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 16 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 17 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 18 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 19 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 20 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 21 | * PERFORMANCE OF THIS SOFTWARE. 22 | */ 23 | 24 | /* Define as 1 if you have FreeType support in Xfont */ 25 | #define XFONT_FREETYPE 1 26 | 27 | /* Define as 1 if you have builtin font support in Xfont */ 28 | #define XFONT_BUILTINS 1 29 | 30 | /* Define as 1 if you have pcf font support in Xfont */ 31 | #define XFONT_PCFFORMAT 1 32 | 33 | /* Define as 1 if you have bdf font support in Xfont */ 34 | #define XFONT_BDFFORMAT 1 35 | 36 | /* Define as 1 if you have snf font support in Xfont */ 37 | /* #undef XFONT_SNFFORMAT */ 38 | 39 | /* Define as 1 if you have bitmap font support in Xfont */ 40 | #define XFONT_BITMAP 1 41 | 42 | /* Define as 1 if you have fontfile support in Xfont */ 43 | #define XFONT_FONTFILE 1 44 | 45 | /* Define as 1 if you have font cache support in Xfont */ 46 | /* #undef XFONT_FONTCACHE */ 47 | 48 | /* Define as 1 if you have X Font Services Protocol support in Xfont */ 49 | #define XFONT_FC 1 50 | 51 | -------------------------------------------------------------------------------- /native/include/X11/fonts/fontencc.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 1998-2001 by Juliusz Chroboczek 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | */ 22 | 23 | /* Binary compatibility entry points. */ 24 | 25 | /* This file includes code to make modules compiled for earlier 26 | versions of the fontenc interfaces link with this one. It does 27 | *not* provide source compatibility, as many of the data structures 28 | now have different names. */ 29 | 30 | extern char *font_encoding_from_xlfd(const char*, int); 31 | extern unsigned font_encoding_recode(unsigned, FontEncPtr, FontMapPtr); 32 | extern FontEncPtr font_encoding_find(const char*, const char*); 33 | extern char *font_encoding_name(unsigned, FontEncPtr, FontMapPtr); 34 | extern char **identifyEncodingFile(const char *fileName); 35 | 36 | -------------------------------------------------------------------------------- /native/include/X11/fonts/fontmisc.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 1991, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | */ 26 | 27 | /* 28 | * Author: Keith Packard, MIT X Consortium 29 | */ 30 | 31 | #ifndef _FONTMISC_H_ 32 | #define _FONTMISC_H_ 33 | 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | 40 | 41 | #ifndef LSBFirst 42 | #define LSBFirst 0 43 | #define MSBFirst 1 44 | #endif 45 | 46 | #ifndef None 47 | #define None 0l 48 | #endif 49 | 50 | #ifndef TRUE 51 | #define TRUE 1 52 | #define FALSE 0 53 | #endif 54 | 55 | extern Atom MakeAtom ( const char *string, unsigned len, int makeit ); 56 | extern int ValidAtom ( Atom atom ); 57 | extern char *NameForAtom (Atom atom); 58 | 59 | #define lowbit(x) ((x) & (~(x) + 1)) 60 | 61 | #undef assert 62 | #define assert(x) ((void)0) 63 | 64 | extern void 65 | BitOrderInvert( 66 | register unsigned char *, 67 | register int 68 | ); 69 | 70 | extern void 71 | TwoByteSwap( 72 | register unsigned char *, 73 | register int 74 | ); 75 | 76 | extern void 77 | FourByteSwap( 78 | register unsigned char *, 79 | register int 80 | ); 81 | 82 | extern int 83 | RepadBitmap ( 84 | char*, 85 | char*, 86 | unsigned, 87 | unsigned, 88 | int, 89 | int 90 | ); 91 | 92 | extern void CopyISOLatin1Lowered( 93 | char * /*dest*/, 94 | const char * /*source*/, 95 | int /*length*/ 96 | ); 97 | 98 | extern void register_fpe_functions(void); 99 | 100 | #endif /* _FONTMISC_H_ */ 101 | -------------------------------------------------------------------------------- /native/include/X11/fonts/fontshow.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 1990, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | */ 26 | 27 | /* 28 | * Author: Keith Packard, MIT X Consortium 29 | */ 30 | 31 | #define FONT_SHOW_INFO (1<<0) 32 | #define FONT_SHOW_PROPS (1<<1) 33 | #define FONT_SHOW_METRICS (1<<2) 34 | #define FONT_SHOW_GLYPHS (1<<3) 35 | #define FONT_SHOW_ALL (FONT_SHOW_INFO|FONT_SHOW_PROPS|FONT_SHOW_GLYPHS) 36 | -------------------------------------------------------------------------------- /native/include/X11/fonts/fontutil.h: -------------------------------------------------------------------------------- 1 | #ifndef _FONTUTIL_H_ 2 | #define _FONTUTIL_H_ 3 | 4 | #include 5 | 6 | extern int FontCouldBeTerminal(FontInfoPtr); 7 | extern int CheckFSFormat(fsBitmapFormat, fsBitmapFormatMask, int *, int *, 8 | int *, int *, int *); 9 | extern void FontComputeInfoAccelerators(FontInfoPtr); 10 | 11 | extern void GetGlyphs ( FontPtr font, unsigned long count, 12 | unsigned char *chars, FontEncoding fontEncoding, 13 | unsigned long *glyphcount, CharInfoPtr *glyphs ); 14 | extern void QueryGlyphExtents ( FontPtr pFont, CharInfoPtr *charinfo, 15 | unsigned long count, ExtentInfoRec *info ); 16 | extern Bool QueryTextExtents ( FontPtr pFont, unsigned long count, 17 | unsigned char *chars, ExtentInfoRec *info ); 18 | extern Bool ParseGlyphCachingMode ( char *str ); 19 | extern void InitGlyphCaching ( void ); 20 | extern void SetGlyphCachingMode ( int newmode ); 21 | extern int add_range ( fsRange *newrange, int *nranges, fsRange **range, 22 | Bool charset_subset ); 23 | 24 | #endif /* _FONTUTIL_H_ */ 25 | -------------------------------------------------------------------------------- /native/include/X11/fonts/ft.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 1997 by Mark Leisher 3 | Copyright (c) 1998-2002 by Juliusz Chroboczek 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | */ 23 | 24 | #ifndef _FT_H_ 25 | #define _FT_H_ 26 | 27 | #include 28 | 29 | #define FREETYPE_VERSION (FREETYPE_MAJOR * 1000000 + FREETYPE_MINOR * 1000 + FREETYPE_PATCH) 30 | 31 | #undef DEBUG_TRUETYPE 32 | 33 | #ifdef DEBUG_TRUETYPE 34 | #define MUMBLE ErrorF 35 | #else 36 | #define MUMBLE(...) 37 | #endif 38 | 39 | #undef MAX 40 | #define MAX(h,i) ((h) > (i) ? (h) : (i)) 41 | #define ADJUSTMAX(m,v) if((v)>(m)) (m)=(v) 42 | #undef MIN 43 | #define MIN(l,o) ((l) < (o) ? (l) : (o)) 44 | #define ADJUSTMIN(m,v) if ((v)<(m)) (m)=(v) 45 | 46 | /* When comparing floating point values, we want to ignore small errors. */ 47 | #define NEGLIGIBLE ((double)0.001) 48 | /* Are x and y significantly different? */ 49 | #define DIFFER(x,y) (fabs((x)-(y))>=NEGLIGIBLE*fabs(x)) 50 | /* Is x significantly different from 0 w.r.t. y? */ 51 | #define DIFFER0(x,y) (fabs(x)>=NEGLIGIBLE*fabs(y)) 52 | 53 | #ifndef ABS 54 | #define ABS(x) ((x) >= 0 ? (x) : -(x)) 55 | #endif 56 | 57 | /* Two to the sixteenth power, as a double. */ 58 | #define TWO_SIXTEENTH ((double)(1<<16)) 59 | #define TWO_SIXTH ((double)(1<<6)) 60 | 61 | /* Data structures used across files */ 62 | 63 | typedef struct _FTMapping 64 | { 65 | int named; 66 | FT_CharMap cmap; 67 | int base; 68 | struct _FontMap *mapping; /* allow inclusion without fontenc.h */ 69 | } FTMappingRec, *FTMappingPtr; 70 | 71 | /* Prototypes */ 72 | 73 | /* ftfuncs.c */ 74 | 75 | /* ftenc.c */ 76 | 77 | int FTPickMapping(char*, int, char*, FT_Face, FTMappingPtr); 78 | unsigned FTRemap(FT_Face face, FTMappingPtr, unsigned code); 79 | 80 | /* fttools.c */ 81 | 82 | int FTtoXReturnCode(int); 83 | int FTGetEnglishName(FT_Face, int, char *, int); 84 | 85 | extern void ErrorF(const char*, ...); 86 | 87 | #endif /* _FT_H_ */ 88 | -------------------------------------------------------------------------------- /native/include/xorg/BT.h: -------------------------------------------------------------------------------- 1 | 2 | #include "xf86RamDac.h" 3 | 4 | extern _X_EXPORT RamDacHelperRecPtr BTramdacProbe(ScrnInfoPtr pScrn, 5 | RamDacSupportedInfoRecPtr 6 | ramdacs); 7 | extern _X_EXPORT void BTramdacSave(ScrnInfoPtr pScrn, RamDacRecPtr RamDacRec, 8 | RamDacRegRecPtr RamDacRegRec); 9 | extern _X_EXPORT void BTramdacRestore(ScrnInfoPtr pScrn, RamDacRecPtr RamDacRec, 10 | RamDacRegRecPtr RamDacRegRec); 11 | extern _X_EXPORT void BTramdacSetBpp(ScrnInfoPtr pScrn, 12 | RamDacRegRecPtr RamDacRegRec); 13 | 14 | #define ATT20C504_RAMDAC (VENDOR_BT << 16) | 0x00 15 | #define ATT20C505_RAMDAC (VENDOR_BT << 16) | 0x01 16 | #define BT485_RAMDAC (VENDOR_BT << 16) | 0x02 17 | 18 | /* 19 | * BT registers 20 | */ 21 | 22 | #define BT_WRITE_ADDR 0x00 23 | #define BT_RAMDAC_DATA 0x01 24 | #define BT_PIXEL_MASK 0x02 25 | #define BT_READ_ADDR 0x03 26 | #define BT_CURS_WR_ADDR 0x04 27 | #define BT_CURS_DATA 0x05 28 | #define BT_COMMAND_REG_0 0x06 29 | #define BT_CURS_RD_ADDR 0x07 30 | #define BT_COMMAND_REG_1 0x08 31 | #define BT_COMMAND_REG_2 0x09 32 | #define BT_STATUS_REG 0x0A 33 | #define BT_CURS_RAM_DATA 0x0B 34 | #define BT_CURS_X_LOW 0x0C 35 | #define BT_CURS_X_HIGH 0x0D 36 | #define BT_CURS_Y_LOW 0x0E 37 | #define BT_CURS_Y_HIGH 0x0F 38 | -------------------------------------------------------------------------------- /native/include/xorg/XIstubs.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifndef XI_STUBS_H 27 | #define XI_STUBS_H 1 28 | 29 | extern _X_EXPORT int 30 | SetDeviceMode(ClientPtr /* client */ , 31 | DeviceIntPtr /* dev */ , 32 | int /* mode */ ); 33 | 34 | extern _X_EXPORT int 35 | SetDeviceValuators(ClientPtr /* client */ , 36 | DeviceIntPtr /* dev */ , 37 | int * /* valuators */ , 38 | int /* first_valuator */ , 39 | int /* num_valuators */ ); 40 | 41 | extern _X_EXPORT int 42 | ChangeDeviceControl(ClientPtr /* client */ , 43 | DeviceIntPtr /* dev */ , 44 | xDeviceCtl * /* control */ ); 45 | 46 | #endif /* XI_STUBS_H */ 47 | -------------------------------------------------------------------------------- /native/include/xorg/client.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). All 3 | * rights reserved. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | /* Author: Rami Ylimäki */ 25 | 26 | #ifndef CLIENT_H 27 | #define CLIENT_H 28 | 29 | #ifdef HAVE_DIX_CONFIG_H 30 | #include 31 | #endif /* HAVE_DIX_CONFIG_H */ 32 | #include 33 | #include 34 | 35 | /* Client IDs. Use GetClientPid, GetClientCmdName and GetClientCmdArgs 36 | * instead of accessing the fields directly. */ 37 | typedef struct { 38 | pid_t pid; /* process ID, -1 if not available */ 39 | const char *cmdname; /* process name, NULL if not available */ 40 | const char *cmdargs; /* process arguments, NULL if not available */ 41 | } ClientIdRec, *ClientIdPtr; 42 | 43 | struct _Client; 44 | 45 | /* Initialize and clean up. */ 46 | void ReserveClientIds(struct _Client *client); 47 | void ReleaseClientIds(struct _Client *client); 48 | 49 | /* Determine client IDs for caching. Exported on purpose for 50 | * extensions such as SELinux. */ 51 | extern _X_EXPORT pid_t DetermineClientPid(struct _Client *client); 52 | extern _X_EXPORT void DetermineClientCmd(pid_t, const char **cmdname, 53 | const char **cmdargs); 54 | 55 | /* Query cached client IDs. Exported on purpose for drivers. */ 56 | extern _X_EXPORT pid_t GetClientPid(struct _Client *client); 57 | extern _X_EXPORT const char *GetClientCmdName(struct _Client *client); 58 | extern _X_EXPORT const char *GetClientCmdArgs(struct _Client *client); 59 | 60 | #endif /* CLIENT_H */ 61 | -------------------------------------------------------------------------------- /native/include/xorg/closure.h: -------------------------------------------------------------------------------- 1 | /*********************************************************** 2 | 3 | Copyright 1987, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 26 | 27 | All Rights Reserved 28 | 29 | Permission to use, copy, modify, and distribute this software and its 30 | documentation for any purpose and without fee is hereby granted, 31 | provided that the above copyright notice appear in all copies and that 32 | both that copyright notice and this permission notice appear in 33 | supporting documentation, and that the name of Digital not be 34 | used in advertising or publicity pertaining to distribution of the 35 | software without specific, written prior permission. 36 | 37 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 38 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 39 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 40 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 41 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 42 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 43 | SOFTWARE. 44 | 45 | ******************************************************************/ 46 | 47 | #ifndef CLOSURE_H 48 | #define CLOSURE_H 1 49 | 50 | typedef struct _LFclosure *LFclosurePtr; 51 | typedef struct _LFWIclosure *LFWIclosurePtr; 52 | typedef struct _OFclosure *OFclosurePtr; 53 | typedef struct _PTclosure *PTclosurePtr; 54 | typedef struct _ITclosure *ITclosurePtr; 55 | 56 | #endif /* CLOSURE_H */ 57 | -------------------------------------------------------------------------------- /native/include/xorg/compositeext.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2009 NVIDIA Corporation 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), to 6 | * deal in the Software without restriction, including without limitation the 7 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 8 | * sell copies of the Software, and to permit persons to whom the Software is 9 | * furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | * SOFTWARE. 22 | */ 23 | 24 | #ifdef HAVE_DIX_CONFIG_H 25 | #include 26 | #endif 27 | 28 | #ifndef _COMPOSITEEXT_H_ 29 | #define _COMPOSITEEXT_H_ 30 | 31 | #include "misc.h" 32 | #include "scrnintstr.h" 33 | 34 | extern _X_EXPORT Bool CompositeRegisterAlternateVisuals(ScreenPtr pScreen, 35 | VisualID * vids, 36 | int nVisuals); 37 | 38 | extern _X_EXPORT Bool CompositeRegisterImplicitRedirectionException(ScreenPtr pScreen, 39 | VisualID parentVisual, 40 | VisualID winVisual); 41 | 42 | extern _X_EXPORT RESTYPE CompositeClientWindowType; 43 | 44 | #endif /* _COMPOSITEEXT_H_ */ 45 | -------------------------------------------------------------------------------- /native/include/xorg/dixaccess.h: -------------------------------------------------------------------------------- 1 | /*********************************************************** 2 | 3 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 4 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 5 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 6 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 7 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 8 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 9 | 10 | ******************************************************************/ 11 | 12 | #ifndef DIX_ACCESS_H 13 | #define DIX_ACCESS_H 14 | 15 | /* These are the access modes that can be passed in the last parameter 16 | * to several of the dix lookup functions. They were originally part 17 | * of the Security extension, now used by XACE. 18 | * 19 | * You can or these values together to indicate multiple modes 20 | * simultaneously. 21 | */ 22 | 23 | #define DixUnknownAccess 0 /* don't know intentions */ 24 | #define DixReadAccess (1<<0) /* inspecting the object */ 25 | #define DixWriteAccess (1<<1) /* changing the object */ 26 | #define DixDestroyAccess (1<<2) /* destroying the object */ 27 | #define DixCreateAccess (1<<3) /* creating the object */ 28 | #define DixGetAttrAccess (1<<4) /* get object attributes */ 29 | #define DixSetAttrAccess (1<<5) /* set object attributes */ 30 | #define DixListPropAccess (1<<6) /* list properties of object */ 31 | #define DixGetPropAccess (1<<7) /* get properties of object */ 32 | #define DixSetPropAccess (1<<8) /* set properties of object */ 33 | #define DixGetFocusAccess (1<<9) /* get focus of object */ 34 | #define DixSetFocusAccess (1<<10) /* set focus of object */ 35 | #define DixListAccess (1<<11) /* list objects */ 36 | #define DixAddAccess (1<<12) /* add object */ 37 | #define DixRemoveAccess (1<<13) /* remove object */ 38 | #define DixHideAccess (1<<14) /* hide object */ 39 | #define DixShowAccess (1<<15) /* show object */ 40 | #define DixBlendAccess (1<<16) /* mix contents of objects */ 41 | #define DixGrabAccess (1<<17) /* exclusive access to object */ 42 | #define DixFreezeAccess (1<<18) /* freeze status of object */ 43 | #define DixForceAccess (1<<19) /* force status of object */ 44 | #define DixInstallAccess (1<<20) /* install object */ 45 | #define DixUninstallAccess (1<<21) /* uninstall object */ 46 | #define DixSendAccess (1<<22) /* send to object */ 47 | #define DixReceiveAccess (1<<23) /* receive from object */ 48 | #define DixUseAccess (1<<24) /* use object */ 49 | #define DixManageAccess (1<<25) /* manage object */ 50 | #define DixDebugAccess (1<<26) /* debug object */ 51 | #define DixBellAccess (1<<27) /* audible sound */ 52 | #define DixPostAccess (1<<28) /* post or follow-up call */ 53 | 54 | #endif /* DIX_ACCESS_H */ 55 | -------------------------------------------------------------------------------- /native/include/xorg/events.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2009 Red Hat, Inc. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | * DEALINGS IN THE SOFTWARE. 22 | * 23 | */ 24 | 25 | #ifndef EVENTS_H 26 | #define EVENTS_H 27 | typedef struct _DeviceEvent DeviceEvent; 28 | typedef struct _DeviceChangedEvent DeviceChangedEvent; 29 | typedef struct _TouchOwnershipEvent TouchOwnershipEvent; 30 | typedef struct _BarrierEvent BarrierEvent; 31 | 32 | #if XFreeXDGA 33 | typedef struct _DGAEvent DGAEvent; 34 | #endif 35 | typedef struct _RawDeviceEvent RawDeviceEvent; 36 | 37 | #ifdef XQUARTZ 38 | typedef struct _XQuartzEvent XQuartzEvent; 39 | #endif 40 | typedef union _InternalEvent InternalEvent; 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /native/include/xorg/fbpict.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. 4 | * 5 | * Permission to use, copy, modify, distribute, and sell this software and its 6 | * documentation for any purpose is hereby granted without fee, provided that 7 | * the above copyright notice appear in all copies and that both that 8 | * copyright notice and this permission notice appear in supporting 9 | * documentation, and that the name of Keith Packard not be used in 10 | * advertising or publicity pertaining to distribution of the software without 11 | * specific, written prior permission. Keith Packard makes no 12 | * representations about the suitability of this software for any purpose. It 13 | * is provided "as is" without express or implied warranty. 14 | * 15 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 16 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 17 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 18 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 19 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 20 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 21 | * PERFORMANCE OF THIS SOFTWARE. 22 | */ 23 | 24 | #ifdef HAVE_DIX_CONFIG_H 25 | #include 26 | #endif 27 | 28 | #ifndef _FBPICT_H_ 29 | #define _FBPICT_H_ 30 | 31 | /* fbpict.c */ 32 | extern _X_EXPORT void 33 | 34 | fbComposite(CARD8 op, 35 | PicturePtr pSrc, 36 | PicturePtr pMask, 37 | PicturePtr pDst, 38 | INT16 xSrc, 39 | INT16 ySrc, 40 | INT16 xMask, 41 | INT16 yMask, INT16 xDst, INT16 yDst, CARD16 width, CARD16 height); 42 | 43 | /* fbtrap.c */ 44 | 45 | extern _X_EXPORT void 46 | 47 | fbAddTraps(PicturePtr pPicture, 48 | INT16 xOff, INT16 yOff, int ntrap, xTrap * traps); 49 | 50 | extern _X_EXPORT void 51 | 52 | fbRasterizeTrapezoid(PicturePtr alpha, xTrapezoid * trap, int x_off, int y_off); 53 | 54 | extern _X_EXPORT void 55 | 56 | fbAddTriangles(PicturePtr pPicture, 57 | INT16 xOff, INT16 yOff, int ntri, xTriangle * tris); 58 | 59 | extern _X_EXPORT void 60 | 61 | fbTrapezoids(CARD8 op, 62 | PicturePtr pSrc, 63 | PicturePtr pDst, 64 | PictFormatPtr maskFormat, 65 | INT16 xSrc, INT16 ySrc, int ntrap, xTrapezoid * traps); 66 | 67 | extern _X_EXPORT void 68 | fbTriangles(CARD8 op, 69 | PicturePtr pSrc, 70 | PicturePtr pDst, 71 | PictFormatPtr maskFormat, 72 | INT16 xSrc, INT16 ySrc, int ntris, xTriangle * tris); 73 | 74 | extern _X_EXPORT void 75 | fbGlyphs(CARD8 op, 76 | PicturePtr pSrc, 77 | PicturePtr pDst, 78 | PictFormatPtr maskFormat, 79 | INT16 xSrc, 80 | INT16 ySrc, int nlist, 81 | GlyphListPtr list, 82 | GlyphPtr *glyphs); 83 | 84 | #endif /* _FBPICT_H_ */ 85 | -------------------------------------------------------------------------------- /native/include/xorg/geint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007-2008 Peter Hutterer 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | * DEALINGS IN THE SOFTWARE. 22 | * 23 | * Author: Peter Hutterer, University of South Australia, NICTA 24 | */ 25 | #ifdef HAVE_DIX_CONFIG_H 26 | #include 27 | #endif 28 | 29 | #ifndef _GEINT_H_ 30 | #define _GEINT_H_ 31 | 32 | #include 33 | #include 34 | #include "misc.h" 35 | #include "os.h" 36 | #include "dixstruct.h" 37 | #include "extnsionst.h" 38 | #include 39 | 40 | extern _X_EXPORT DevPrivateKeyRec GEClientPrivateKeyRec; 41 | 42 | #define GEClientPrivateKey (&GEClientPrivateKeyRec) 43 | 44 | typedef struct _GEClientInfo { 45 | CARD32 major_version; 46 | CARD32 minor_version; 47 | } GEClientInfoRec, *GEClientInfoPtr; 48 | 49 | #define GEGetClient(pClient) ((GEClientInfoPtr)(dixLookupPrivate(&((pClient)->devPrivates), GEClientPrivateKey))) 50 | 51 | extern _X_EXPORT int (*ProcGEVector[ /*GENumRequests */ ]) (ClientPtr); 52 | extern _X_EXPORT int (*SProcGEVector[ /*GENumRequests */ ]) (ClientPtr); 53 | 54 | #endif /* _GEINT_H_ */ 55 | -------------------------------------------------------------------------------- /native/include/xorg/globals.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _XSERV_GLOBAL_H_ 3 | #define _XSERV_GLOBAL_H_ 4 | 5 | #include 6 | 7 | #include "window.h" /* for WindowPtr */ 8 | #include "extinit.h" 9 | 10 | /* Global X server variables that are visible to mi, dix, os, and ddx */ 11 | 12 | extern _X_EXPORT CARD32 defaultScreenSaverTime; 13 | extern _X_EXPORT CARD32 defaultScreenSaverInterval; 14 | extern _X_EXPORT CARD32 ScreenSaverTime; 15 | extern _X_EXPORT CARD32 ScreenSaverInterval; 16 | 17 | #ifdef SCREENSAVER 18 | extern _X_EXPORT Bool screenSaverSuspended; 19 | #endif 20 | 21 | extern _X_EXPORT const char *defaultFontPath; 22 | extern _X_EXPORT int monitorResolution; 23 | extern _X_EXPORT int defaultColorVisualClass; 24 | 25 | extern _X_EXPORT int GrabInProgress; 26 | extern _X_EXPORT Bool noTestExtensions; 27 | extern _X_EXPORT char *SeatId; 28 | extern _X_EXPORT char *ConnectionInfo; 29 | extern _X_EXPORT sig_atomic_t inSignalContext; 30 | 31 | #ifdef DPMSExtension 32 | extern _X_EXPORT CARD32 DPMSStandbyTime; 33 | extern _X_EXPORT CARD32 DPMSSuspendTime; 34 | extern _X_EXPORT CARD32 DPMSOffTime; 35 | extern _X_EXPORT CARD16 DPMSPowerLevel; 36 | extern _X_EXPORT Bool DPMSEnabled; 37 | extern _X_EXPORT Bool DPMSDisabledSwitch; 38 | extern _X_EXPORT Bool DPMSCapableFlag; 39 | #endif 40 | 41 | #ifdef PANORAMIX 42 | extern _X_EXPORT Bool PanoramiXExtensionDisabledHack; 43 | #endif 44 | 45 | #ifdef XSELINUX 46 | #define SELINUX_MODE_DEFAULT 0 47 | #define SELINUX_MODE_DISABLED 1 48 | #define SELINUX_MODE_PERMISSIVE 2 49 | #define SELINUX_MODE_ENFORCING 3 50 | extern _X_EXPORT int selinuxEnforcingState; 51 | #endif 52 | 53 | #endif /* !_XSERV_GLOBAL_H_ */ 54 | -------------------------------------------------------------------------------- /native/include/xorg/glx_extinit.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 1994-2003 The XFree86 Project, Inc. All Rights Reserved. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 5 | * this software and associated documentation files (the "Software"), to deal in 6 | * the Software without restriction, including without limitation the rights to 7 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 8 | * of the Software, and to permit persons to whom the Software is furnished to do 9 | * so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in all 12 | * copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT- 16 | * NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 19 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | * 21 | * Except as contained in this notice, the name of the XFree86 Project shall not 22 | * be used in advertising or otherwise to promote the sale, use or other dealings 23 | * in this Software without prior written authorization from the XFree86 Project. 24 | */ 25 | 26 | #ifndef GLX_EXT_INIT_H 27 | #define GLX_EXT_INIT_H 28 | 29 | /* this is separate due to sdksyms pulling in extinit.h */ 30 | #ifdef GLXEXT 31 | extern void GlxExtensionInit(void); 32 | #endif 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /native/include/xorg/i2c_def.h: -------------------------------------------------------------------------------- 1 | #ifndef __I2C_DEF_H__ 2 | #define __I2C_DEF_H__ 3 | 4 | #include "xf86i2c.h" 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /native/include/xorg/micmap.h: -------------------------------------------------------------------------------- 1 | 2 | #include "colormapst.h" 3 | 4 | #ifndef _MICMAP_H_ 5 | #define _MICMAP_H_ 6 | 7 | #define GetInstalledmiColormap(s) \ 8 | ((ColormapPtr) dixLookupPrivate(&(s)->devPrivates, micmapScrPrivateKey)) 9 | #define SetInstalledmiColormap(s,c) \ 10 | (dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c)) 11 | 12 | extern _X_EXPORT DevPrivateKeyRec micmapScrPrivateKeyRec; 13 | 14 | #define micmapScrPrivateKey (&micmapScrPrivateKeyRec) 15 | 16 | typedef Bool (*miInitVisualsProcPtr) (VisualPtr *, DepthPtr *, int *, int *, 17 | int *, VisualID *, unsigned long, int, 18 | int); 19 | 20 | extern _X_EXPORT int miListInstalledColormaps(ScreenPtr pScreen, 21 | Colormap * pmaps); 22 | extern _X_EXPORT void miInstallColormap(ColormapPtr pmap); 23 | extern _X_EXPORT void miUninstallColormap(ColormapPtr pmap); 24 | 25 | extern _X_EXPORT void miResolveColor(unsigned short *, unsigned short *, 26 | unsigned short *, VisualPtr); 27 | extern _X_EXPORT Bool miInitializeColormap(ColormapPtr); 28 | extern _X_EXPORT int miExpandDirectColors(ColormapPtr, int, xColorItem *, 29 | xColorItem *); 30 | extern _X_EXPORT Bool miCreateDefColormap(ScreenPtr); 31 | extern _X_EXPORT void miClearVisualTypes(void); 32 | extern _X_EXPORT Bool miSetVisualTypes(int, int, int, int); 33 | extern _X_EXPORT Bool miSetPixmapDepths(void); 34 | extern _X_EXPORT Bool miSetVisualTypesAndMasks(int depth, int visuals, 35 | int bitsPerRGB, int preferredCVC, 36 | Pixel redMask, Pixel greenMask, 37 | Pixel blueMask); 38 | extern _X_EXPORT int miGetDefaultVisualMask(int); 39 | extern _X_EXPORT Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *, 40 | int *, VisualID *, unsigned long, int, int); 41 | 42 | #define MAX_PSEUDO_DEPTH 10 43 | #define MIN_TRUE_DEPTH 6 44 | 45 | #define StaticGrayMask (1 << StaticGray) 46 | #define GrayScaleMask (1 << GrayScale) 47 | #define StaticColorMask (1 << StaticColor) 48 | #define PseudoColorMask (1 << PseudoColor) 49 | #define TrueColorMask (1 << TrueColor) 50 | #define DirectColorMask (1 << DirectColor) 51 | 52 | #define ALL_VISUALS (StaticGrayMask|\ 53 | GrayScaleMask|\ 54 | StaticColorMask|\ 55 | PseudoColorMask|\ 56 | TrueColorMask|\ 57 | DirectColorMask) 58 | 59 | #define LARGE_VISUALS (TrueColorMask|\ 60 | DirectColorMask) 61 | 62 | #define SMALL_VISUALS (StaticGrayMask|\ 63 | GrayScaleMask|\ 64 | StaticColorMask|\ 65 | PseudoColorMask) 66 | 67 | #endif /* _MICMAP_H_ */ 68 | -------------------------------------------------------------------------------- /native/include/xorg/micoord.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2000 The XFree86 Project, Inc. All Rights Reserved. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy 5 | * of this software and associated documentation files (the "Software"), to 6 | * deal in the Software without restriction, including without limitation the 7 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 8 | * sell copies of the Software, and to permit persons to whom the Software is 9 | * furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | * 21 | * Except as contained in this notice, the name of the XFree86 Project shall 22 | * not be used in advertising or otherwise to promote the sale, use or other 23 | * dealings in this Software without prior written authorization from the 24 | * XFree86 Project. 25 | * 26 | */ 27 | 28 | #ifndef _MICOORD_H_ 29 | #define _MICOORD_H_ 1 30 | 31 | #include "servermd.h" 32 | 33 | /* Macros which handle a coordinate in a single register */ 34 | 35 | #define GetHighWord(x) (((int) (x)) >> 16) 36 | 37 | #if IMAGE_BYTE_ORDER == MSBFirst 38 | #define intToCoord(i,x,y) (((x) = GetHighWord(i)), ((y) = (int) ((short) (i)))) 39 | #define coordToInt(x,y) (((x) << 16) | ((y) & 0xffff)) 40 | #define intToX(i) (GetHighWord(i)) 41 | #define intToY(i) ((int) ((short) i)) 42 | #else 43 | #define intToCoord(i,x,y) (((x) = (int) ((short) (i))), ((y) = GetHighWord(i))) 44 | #define coordToInt(x,y) (((y) << 16) | ((x) & 0xffff)) 45 | #define intToX(i) ((int) ((short) (i))) 46 | #define intToY(i) (GetHighWord(i)) 47 | #endif 48 | 49 | #endif /* _MICOORD_H_ */ 50 | -------------------------------------------------------------------------------- /native/include/xorg/migc.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 1993, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included 12 | in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 | OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall 23 | not be used in advertising or otherwise to promote the sale, use or 24 | other dealings in this Software without prior written authorization 25 | from The Open Group. 26 | 27 | */ 28 | 29 | extern _X_EXPORT void miChangeGC(GCPtr pGC, 30 | unsigned long mask); 31 | 32 | extern _X_EXPORT void miDestroyGC(GCPtr pGC); 33 | 34 | extern _X_EXPORT void miDestroyClip(GCPtr pGC); 35 | 36 | extern _X_EXPORT void miChangeClip(GCPtr pGC, 37 | int type, 38 | void *pvalue, 39 | int nrects); 40 | 41 | extern _X_EXPORT void miCopyClip(GCPtr pgcDst, 42 | GCPtr pgcSrc); 43 | 44 | extern _X_EXPORT void miCopyGC(GCPtr pGCSrc, 45 | unsigned long changes, 46 | GCPtr pGCDst); 47 | 48 | extern _X_EXPORT void miComputeCompositeClip(GCPtr pGC, 49 | DrawablePtr pDrawable); 50 | -------------------------------------------------------------------------------- /native/include/xorg/mioverlay.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef HAVE_DIX_CONFIG_H 3 | #include 4 | #endif 5 | 6 | #ifndef __MIOVERLAY_H 7 | #define __MIOVERLAY_H 8 | 9 | typedef void (*miOverlayTransFunc) (ScreenPtr, int, BoxPtr); 10 | typedef Bool (*miOverlayInOverlayFunc) (WindowPtr); 11 | 12 | extern _X_EXPORT Bool 13 | 14 | miInitOverlay(ScreenPtr pScreen, 15 | miOverlayInOverlayFunc inOverlay, miOverlayTransFunc trans); 16 | 17 | extern _X_EXPORT Bool 18 | 19 | miOverlayGetPrivateClips(WindowPtr pWin, 20 | RegionPtr *borderClip, RegionPtr *clipList); 21 | 22 | extern _X_EXPORT Bool miOverlayCollectUnderlayRegions(WindowPtr, RegionPtr *); 23 | extern _X_EXPORT void miOverlayComputeCompositeClip(GCPtr, WindowPtr); 24 | extern _X_EXPORT Bool miOverlayCopyUnderlay(ScreenPtr); 25 | extern _X_EXPORT void miOverlaySetTransFunction(ScreenPtr, miOverlayTransFunc); 26 | extern _X_EXPORT void miOverlaySetRootClip(ScreenPtr, Bool); 27 | 28 | #endif /* __MIOVERLAY_H */ 29 | -------------------------------------------------------------------------------- /native/include/xorg/mipointrst.h: -------------------------------------------------------------------------------- 1 | /* 2 | * mipointrst.h 3 | * 4 | */ 5 | 6 | /* 7 | 8 | Copyright 1989, 1998 The Open Group 9 | 10 | Permission to use, copy, modify, distribute, and sell this software and its 11 | documentation for any purpose is hereby granted without fee, provided that 12 | the above copyright notice appear in all copies and that both that 13 | copyright notice and this permission notice appear in supporting 14 | documentation. 15 | 16 | The above copyright notice and this permission notice shall be included in 17 | all copies or substantial portions of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 22 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 23 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 24 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | 26 | Except as contained in this notice, the name of The Open Group shall not be 27 | used in advertising or otherwise to promote the sale, use or other dealings 28 | in this Software without prior written authorization from The Open Group. 29 | */ 30 | 31 | #ifndef MIPOINTRST_H 32 | #define MIPOINTRST_H 33 | 34 | #include "mipointer.h" 35 | #include "scrnintstr.h" 36 | 37 | typedef struct { 38 | ScreenPtr pScreen; /* current screen */ 39 | ScreenPtr pSpriteScreen; /* screen containing current sprite */ 40 | CursorPtr pCursor; /* current cursor */ 41 | CursorPtr pSpriteCursor; /* cursor on screen */ 42 | BoxRec limits; /* current constraints */ 43 | Bool confined; /* pointer can't change screens */ 44 | int x, y; /* hot spot location */ 45 | int devx, devy; /* sprite position */ 46 | Bool generateEvent; /* generate an event during warping? */ 47 | } miPointerRec, *miPointerPtr; 48 | 49 | typedef struct { 50 | miPointerSpriteFuncPtr spriteFuncs; /* sprite-specific methods */ 51 | miPointerScreenFuncPtr screenFuncs; /* screen-specific methods */ 52 | CloseScreenProcPtr CloseScreen; 53 | Bool waitForUpdate; /* don't move cursor in SIGIO */ 54 | Bool showTransparent; /* show empty cursors */ 55 | } miPointerScreenRec, *miPointerScreenPtr; 56 | #endif /* MIPOINTRST_H */ 57 | -------------------------------------------------------------------------------- /native/include/xorg/miscstruct.h: -------------------------------------------------------------------------------- 1 | /*********************************************************** 2 | 3 | Copyright 1987, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 26 | 27 | All Rights Reserved 28 | 29 | Permission to use, copy, modify, and distribute this software and its 30 | documentation for any purpose and without fee is hereby granted, 31 | provided that the above copyright notice appear in all copies and that 32 | both that copyright notice and this permission notice appear in 33 | supporting documentation, and that the name of Digital not be 34 | used in advertising or publicity pertaining to distribution of the 35 | software without specific, written prior permission. 36 | 37 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 38 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 39 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 40 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 41 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 42 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 43 | SOFTWARE. 44 | 45 | ******************************************************************/ 46 | 47 | #ifndef MISCSTRUCT_H 48 | #define MISCSTRUCT_H 1 49 | 50 | #include "misc.h" 51 | #include 52 | #include 53 | 54 | typedef xPoint DDXPointRec; 55 | 56 | typedef struct pixman_box16 BoxRec; 57 | 58 | typedef union _DevUnion { 59 | void *ptr; 60 | long val; 61 | unsigned long uval; 62 | void *(*fptr) (void); 63 | } DevUnion; 64 | 65 | #endif /* MISCSTRUCT_H */ 66 | -------------------------------------------------------------------------------- /native/include/xorg/misyncfd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2013 Keith Packard 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that copyright 7 | * notice and this permission notice appear in supporting documentation, and 8 | * that the name of the copyright holders not be used in advertising or 9 | * publicity pertaining to distribution of the software without specific, 10 | * written prior permission. The copyright holders make no representations 11 | * about the suitability of this software for any purpose. It is provided "as 12 | * is" without express or implied warranty. 13 | * 14 | * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 | * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 20 | * OF THIS SOFTWARE. 21 | */ 22 | 23 | #ifndef _MISYNCFD_H_ 24 | #define _MISYNCFD_H_ 25 | 26 | typedef int (*SyncScreenCreateFenceFromFdFunc) (ScreenPtr screen, 27 | SyncFence *fence, 28 | int fd, 29 | Bool initially_triggered); 30 | 31 | typedef int (*SyncScreenGetFenceFdFunc) (ScreenPtr screen, 32 | SyncFence *fence); 33 | 34 | #define SYNC_FD_SCREEN_FUNCS_VERSION 1 35 | 36 | typedef struct _syncFdScreenFuncs { 37 | int version; 38 | SyncScreenCreateFenceFromFdFunc CreateFenceFromFd; 39 | SyncScreenGetFenceFdFunc GetFenceFd; 40 | } SyncFdScreenFuncsRec, *SyncFdScreenFuncsPtr; 41 | 42 | extern _X_EXPORT Bool miSyncFdScreenInit(ScreenPtr pScreen, 43 | const SyncFdScreenFuncsRec *funcs); 44 | 45 | #endif /* _MISYNCFD_H_ */ 46 | -------------------------------------------------------------------------------- /native/include/xorg/misyncshm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2013 Keith Packard 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that copyright 7 | * notice and this permission notice appear in supporting documentation, and 8 | * that the name of the copyright holders not be used in advertising or 9 | * publicity pertaining to distribution of the software without specific, 10 | * written prior permission. The copyright holders make no representations 11 | * about the suitability of this software for any purpose. It is provided "as 12 | * is" without express or implied warranty. 13 | * 14 | * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 | * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 20 | * OF THIS SOFTWARE. 21 | */ 22 | 23 | #ifndef _MISYNCSHM_H_ 24 | #define _MISYNCSHM_H_ 25 | 26 | extern _X_EXPORT Bool miSyncShmScreenInit(ScreenPtr pScreen); 27 | 28 | #endif /* _MISYNCSHM_H_ */ 29 | -------------------------------------------------------------------------------- /native/include/xorg/optionstr.h: -------------------------------------------------------------------------------- 1 | #ifndef OPTIONSTR_H_ 2 | #define OPTIONSTR_H_ 3 | #include "list.h" 4 | 5 | struct _InputOption { 6 | GenericListRec list; 7 | char *opt_name; 8 | char *opt_val; 9 | int opt_used; 10 | char *opt_comment; 11 | }; 12 | 13 | #endif /* INPUTSTRUCT_H */ 14 | -------------------------------------------------------------------------------- /native/include/xorg/panoramiXsrv.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef HAVE_DIX_CONFIG_H 3 | #include 4 | #endif 5 | 6 | #ifndef _PANORAMIXSRV_H_ 7 | #define _PANORAMIXSRV_H_ 8 | 9 | #include "panoramiX.h" 10 | 11 | extern _X_EXPORT int PanoramiXNumScreens; 12 | extern _X_EXPORT int PanoramiXPixWidth; 13 | extern _X_EXPORT int PanoramiXPixHeight; 14 | extern _X_EXPORT RegionRec PanoramiXScreenRegion; 15 | 16 | extern _X_EXPORT VisualID PanoramiXTranslateVisualID(int screen, VisualID orig); 17 | extern _X_EXPORT void PanoramiXConsolidate(void); 18 | extern _X_EXPORT Bool PanoramiXCreateConnectionBlock(void); 19 | extern _X_EXPORT PanoramiXRes *PanoramiXFindIDByScrnum(RESTYPE, XID, int); 20 | extern _X_EXPORT Bool 21 | XineramaRegisterConnectionBlockCallback(void (*func) (void)); 22 | extern _X_EXPORT int XineramaDeleteResource(void *, XID); 23 | 24 | extern _X_EXPORT void XineramaReinitData(void); 25 | 26 | extern _X_EXPORT RESTYPE XRC_DRAWABLE; 27 | extern _X_EXPORT RESTYPE XRT_WINDOW; 28 | extern _X_EXPORT RESTYPE XRT_PIXMAP; 29 | extern _X_EXPORT RESTYPE XRT_GC; 30 | extern _X_EXPORT RESTYPE XRT_COLORMAP; 31 | extern _X_EXPORT RESTYPE XRT_PICTURE; 32 | 33 | /* 34 | * Drivers are allowed to wrap this function. Each wrapper can decide that the 35 | * two visuals are unequal, but if they are deemed equal, the wrapper must call 36 | * down and return FALSE if the wrapped function does. This ensures that all 37 | * layers agree that the visuals are equal. The first visual is always from 38 | * screen 0. 39 | */ 40 | typedef Bool (*XineramaVisualsEqualProcPtr) (VisualPtr, ScreenPtr, VisualPtr); 41 | extern _X_EXPORT XineramaVisualsEqualProcPtr XineramaVisualsEqualPtr; 42 | 43 | extern _X_EXPORT void XineramaGetImageData(DrawablePtr *pDrawables, 44 | int left, 45 | int top, 46 | int width, 47 | int height, 48 | unsigned int format, 49 | unsigned long planemask, 50 | char *data, int pitch, Bool isRoot); 51 | 52 | static inline void 53 | panoramix_setup_ids(PanoramiXRes * resource, ClientPtr client, XID base_id) 54 | { 55 | int j; 56 | 57 | resource->info[0].id = base_id; 58 | FOR_NSCREENS_FORWARD_SKIP(j) { 59 | resource->info[j].id = FakeClientID(client->index); 60 | } 61 | } 62 | 63 | #endif /* _PANORAMIXSRV_H_ */ 64 | -------------------------------------------------------------------------------- /native/include/xorg/presentext.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2013 Keith Packard 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that copyright 7 | * notice and this permission notice appear in supporting documentation, and 8 | * that the name of the copyright holders not be used in advertising or 9 | * publicity pertaining to distribution of the software without specific, 10 | * written prior permission. The copyright holders make no representations 11 | * about the suitability of this software for any purpose. It is provided "as 12 | * is" without express or implied warranty. 13 | * 14 | * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 | * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 20 | * OF THIS SOFTWARE. 21 | */ 22 | 23 | #ifndef _PRESENTEXT_H_ 24 | #define _PRESENTEXT_H_ 25 | 26 | extern _X_EXPORT void 27 | present_extension_init(void); 28 | 29 | #endif /* _PRESENTEXT_H_ */ 30 | -------------------------------------------------------------------------------- /native/include/xorg/region.h: -------------------------------------------------------------------------------- 1 | /*********************************************************** 2 | 3 | Copyright 1987, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 26 | 27 | All Rights Reserved 28 | 29 | Permission to use, copy, modify, and distribute this software and its 30 | documentation for any purpose and without fee is hereby granted, 31 | provided that the above copyright notice appear in all copies and that 32 | both that copyright notice and this permission notice appear in 33 | supporting documentation, and that the name of Digital not be 34 | used in advertising or publicity pertaining to distribution of the 35 | software without specific, written prior permission. 36 | 37 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 38 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 39 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 40 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 41 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 42 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 43 | SOFTWARE. 44 | 45 | ******************************************************************/ 46 | 47 | #ifndef REGION_H 48 | #define REGION_H 49 | 50 | #include "regionstr.h" 51 | 52 | #endif /* REGION_H */ 53 | -------------------------------------------------------------------------------- /native/include/xorg/registry.h: -------------------------------------------------------------------------------- 1 | /*********************************************************** 2 | 3 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 4 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 5 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 6 | AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 7 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 8 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 9 | 10 | ******************************************************************/ 11 | 12 | #ifndef DIX_REGISTRY_H 13 | #define DIX_REGISTRY_H 14 | 15 | /* 16 | * Result returned from any unsuccessful lookup 17 | */ 18 | #define XREGISTRY_UNKNOWN "" 19 | 20 | #include "resource.h" 21 | #include "extnsionst.h" 22 | 23 | #if defined(XSELINUX) || defined(RES) 24 | #define X_REGISTRY_RESOURCE 1 25 | #endif 26 | 27 | #if defined(XSELINUX) || defined(XCSECURITY) || defined(XSERVER_DTRACE) 28 | #define X_REGISTRY_REQUEST 1 29 | #endif 30 | 31 | /* Internal string registry - for auditing, debugging, security, etc. */ 32 | 33 | #ifdef X_REGISTRY_RESOURCE 34 | /* Functions used by the X-Resource extension */ 35 | extern _X_EXPORT void RegisterResourceName(RESTYPE type, const char *name); 36 | extern _X_EXPORT const char *LookupResourceName(RESTYPE rtype); 37 | #endif 38 | 39 | #ifdef X_REGISTRY_REQUEST 40 | extern _X_EXPORT void RegisterExtensionNames(ExtensionEntry * ext); 41 | 42 | /* 43 | * Lookup functions. The returned string must not be modified or freed. 44 | */ 45 | extern _X_EXPORT const char *LookupMajorName(int major); 46 | extern _X_EXPORT const char *LookupRequestName(int major, int minor); 47 | extern _X_EXPORT const char *LookupEventName(int event); 48 | extern _X_EXPORT const char *LookupErrorName(int error); 49 | #endif 50 | 51 | /* 52 | * Setup and teardown 53 | */ 54 | extern _X_EXPORT void dixResetRegistry(void); 55 | extern _X_EXPORT void dixFreeRegistry(void); 56 | extern _X_EXPORT void dixCloseRegistry(void); 57 | 58 | #endif /* DIX_REGISTRY_H */ 59 | -------------------------------------------------------------------------------- /native/include/xorg/rgb.h: -------------------------------------------------------------------------------- 1 | /*********************************************************** 2 | 3 | Copyright 1987, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 26 | 27 | All Rights Reserved 28 | 29 | Permission to use, copy, modify, and distribute this software and its 30 | documentation for any purpose and without fee is hereby granted, 31 | provided that the above copyright notice appear in all copies and that 32 | both that copyright notice and this permission notice appear in 33 | supporting documentation, and that the name of Digital not be 34 | used in advertising or publicity pertaining to distribution of the 35 | software without specific, written prior permission. 36 | 37 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 38 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 39 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 40 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 41 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 42 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 43 | SOFTWARE. 44 | 45 | ******************************************************************/ 46 | 47 | #ifndef RGB_H 48 | #define RGB_H 49 | typedef struct _RGB { 50 | unsigned short red, green, blue; 51 | } RGB; 52 | #endif /* RGB_H */ 53 | -------------------------------------------------------------------------------- /native/include/xorg/shadowfb.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _SHADOWFB_H 3 | #define _SHADOWFB_H 4 | 5 | #include "xf86str.h" 6 | 7 | /* 8 | * User defined callback function. Passed a pointer to the ScrnInfo struct, 9 | * the number of dirty rectangles, and a pointer to the first dirty rectangle 10 | * in the array. 11 | */ 12 | typedef void (*RefreshAreaFuncPtr) (ScrnInfoPtr, int, BoxPtr); 13 | 14 | /* 15 | * ShadowFBInit initializes the shadowfb subsystem. refreshArea is a pointer 16 | * to a user supplied callback function. This function will be called after 17 | * any operation that modifies the framebuffer. The newly dirtied rectangles 18 | * are passed to the callback. 19 | * 20 | * Returns FALSE in the event of an error. 21 | */ 22 | extern _X_EXPORT Bool 23 | ShadowFBInit(ScreenPtr pScreen, RefreshAreaFuncPtr refreshArea); 24 | 25 | /* 26 | * ShadowFBInit2 is a more featureful refinement of the original shadowfb. 27 | * ShadowFBInit2 allows you to specify two callbacks, one to be called 28 | * immediately before an operation that modifies the framebuffer, and another 29 | * to be called immediately after. 30 | * 31 | * Returns FALSE in the event of an error 32 | */ 33 | extern _X_EXPORT Bool 34 | 35 | ShadowFBInit2(ScreenPtr pScreen, 36 | RefreshAreaFuncPtr preRefreshArea, 37 | RefreshAreaFuncPtr postRefreshArea); 38 | 39 | #endif /* _SHADOWFB_H */ 40 | -------------------------------------------------------------------------------- /native/include/xorg/syncsdk.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2010 NVIDIA Corporation 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | * DEALINGS IN THE SOFTWARE. 22 | */ 23 | 24 | #ifndef _SYNCSDK_H_ 25 | #define _SYNCSDK_H_ 26 | 27 | #include "misync.h" 28 | 29 | extern _X_EXPORT int 30 | SyncVerifyFence(SyncFence ** ppFence, XID fid, ClientPtr client, Mask mode); 31 | 32 | #define VERIFY_SYNC_FENCE(pFence, fid, client, mode) \ 33 | do { \ 34 | int rc; \ 35 | rc = SyncVerifyFence(&(pFence), (fid), (client), (mode)); \ 36 | if (Success != rc) return rc; \ 37 | } while (0) 38 | 39 | #define VERIFY_SYNC_FENCE_OR_NONE(pFence, fid, client, mode) \ 40 | do { \ 41 | pFence = 0; \ 42 | if (None != fid) \ 43 | VERIFY_SYNC_FENCE((pFence), (fid), (client), (mode)); \ 44 | } while (0) 45 | 46 | #endif /* _SYNCSDK_H_ */ 47 | -------------------------------------------------------------------------------- /native/include/xorg/validate.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | 4 | Copyright 1989, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | */ 26 | 27 | #ifndef VALIDATE_H 28 | #define VALIDATE_H 29 | 30 | #include "miscstruct.h" 31 | #include "regionstr.h" 32 | 33 | typedef enum { VTOther, VTStack, VTMove, VTUnmap, VTMap, VTBroken } VTKind; 34 | 35 | /* union _Validate is now device dependent; see mivalidate.h for an example */ 36 | typedef union _Validate *ValidatePtr; 37 | 38 | #define UnmapValData ((ValidatePtr)1) 39 | 40 | #endif /* VALIDATE_H */ 41 | -------------------------------------------------------------------------------- /native/include/xorg/xf86-mouse-properties.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | * DEALINGS IN THE SOFTWARE. 22 | */ 23 | 24 | #ifndef _XF86_MOUSE_PROPERTIES_H_ 25 | #define _XF86_MOUSE_PROPERTIES_H_ 26 | 27 | /* Middle mouse button emulation */ 28 | /* BOOL */ 29 | #define MOUSE_PROP_MIDBUTTON "Mouse Middle Button Emulation" 30 | /* CARD32 */ 31 | #define MOUSE_PROP_MIDBUTTON_TIMEOUT "Mouse Middle Button Timeout" 32 | 33 | #endif /* _XF86_MOUSE_PROPERTIES_H_ */ 34 | -------------------------------------------------------------------------------- /native/include/xorg/xf86Optionstr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2011 Red Hat, Inc. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | * DEALINGS IN THE SOFTWARE. 22 | * 23 | */ 24 | 25 | #ifndef XF86OPTIONSTR_H 26 | #define XF86OPTIONSTR_H 27 | #include "list.h" 28 | 29 | /* 30 | * All options are stored using this data type. 31 | */ 32 | typedef struct _XF86OptionRec { 33 | GenericListRec list; 34 | const char *opt_name; 35 | const char *opt_val; 36 | int opt_used; 37 | const char *opt_comment; 38 | } XF86OptionRec; 39 | 40 | typedef struct _InputOption *XF86OptionPtr; 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /native/include/xorg/xf86RandR12.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006 Keith Packard 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that copyright 7 | * notice and this permission notice appear in supporting documentation, and 8 | * that the name of the copyright holders not be used in advertising or 9 | * publicity pertaining to distribution of the software without specific, 10 | * written prior permission. The copyright holders make no representations 11 | * about the suitability of this software for any purpose. It is provided "as 12 | * is" without express or implied warranty. 13 | * 14 | * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 | * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 20 | * OF THIS SOFTWARE. 21 | */ 22 | 23 | #ifndef _XF86_RANDR_H_ 24 | #define _XF86_RANDR_H_ 25 | #include 26 | #include 27 | 28 | extern _X_EXPORT Bool xf86RandR12CreateScreenResources(ScreenPtr pScreen); 29 | extern _X_EXPORT Bool xf86RandR12Init(ScreenPtr pScreen); 30 | extern _X_EXPORT void xf86RandR12CloseScreen(ScreenPtr pScreen); 31 | extern _X_EXPORT void xf86RandR12SetRotations(ScreenPtr pScreen, 32 | Rotation rotation); 33 | extern _X_EXPORT void xf86RandR12SetTransformSupport(ScreenPtr pScreen, 34 | Bool transforms); 35 | extern _X_EXPORT Bool xf86RandR12SetConfig(ScreenPtr pScreen, Rotation rotation, 36 | int rate, RRScreenSizePtr pSize); 37 | extern _X_EXPORT Rotation xf86RandR12GetRotation(ScreenPtr pScreen); 38 | extern _X_EXPORT void xf86RandR12GetOriginalVirtualSize(ScrnInfoPtr pScrn, 39 | int *x, int *y); 40 | extern _X_EXPORT Bool xf86RandR12PreInit(ScrnInfoPtr pScrn); 41 | extern _X_EXPORT void xf86RandR12TellChanged(ScreenPtr pScreen); 42 | 43 | #endif /* _XF86_RANDR_H_ */ 44 | -------------------------------------------------------------------------------- /native/include/xorg/xf86VGAarbiter.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009 Tiago Vignatti 3 | * 4 | * Permission is hereby granted, free of charge, to any person 5 | * obtaining a copy of this software and associated documentation 6 | * files (the "Software"), to deal in the Software without 7 | * restriction, including without limitation the rights to use, 8 | * copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the 10 | * Software is furnished to do so, subject to the following 11 | * conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be 14 | * included in all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | * OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | #ifndef __XF86VGAARBITER_H 27 | #define __XF86VGAARBITER_H 28 | 29 | #include "screenint.h" 30 | #include "misc.h" 31 | #include "xf86.h" 32 | 33 | /* Functions */ 34 | extern void xf86VGAarbiterInit(void); 35 | extern void xf86VGAarbiterFini(void); 36 | void xf86VGAarbiterScrnInit(ScrnInfoPtr pScrn); 37 | extern Bool xf86VGAarbiterWrapFunctions(void); 38 | extern void xf86VGAarbiterLock(ScrnInfoPtr pScrn); 39 | extern void xf86VGAarbiterUnlock(ScrnInfoPtr pScrn); 40 | 41 | /* allow a driver to remove itself from arbiter - really should be 42 | * done in the kernel though */ 43 | extern _X_EXPORT void xf86VGAarbiterDeviceDecodes(ScrnInfoPtr pScrn, int rsrc); 44 | 45 | /* DRI and arbiter are really not possible together, 46 | * you really want to remove the card from arbitration if you can */ 47 | extern _X_EXPORT Bool xf86VGAarbiterAllowDRI(ScreenPtr pScreen); 48 | 49 | #endif /* __XF86VGAARBITER_H */ 50 | -------------------------------------------------------------------------------- /native/include/xorg/xf86cmap.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Copyright (c) 1998-2001 by The XFree86 Project, Inc. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a 6 | * copy of this software and associated documentation files (the "Software"), 7 | * to deal in the Software without restriction, including without limitation 8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | * and/or sell copies of the Software, and to permit persons to whom the 10 | * Software is furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 | * OTHER DEALINGS IN THE SOFTWARE. 22 | * 23 | * Except as contained in this notice, the name of the copyright holder(s) 24 | * and author(s) shall not be used in advertising or otherwise to promote 25 | * the sale, use or other dealings in this Software without prior written 26 | * authorization from the copyright holder(s) and author(s). 27 | */ 28 | 29 | #ifndef _XF86CMAP_H 30 | #define _XF86CMAP_H 31 | 32 | #include "xf86str.h" 33 | #include "colormapst.h" 34 | 35 | #define CMAP_PALETTED_TRUECOLOR 0x0000001 36 | #define CMAP_RELOAD_ON_MODE_SWITCH 0x0000002 37 | #define CMAP_LOAD_EVEN_IF_OFFSCREEN 0x0000004 38 | 39 | extern _X_EXPORT Bool xf86HandleColormaps(ScreenPtr pScreen, 40 | int maxCol, 41 | int sigRGBbits, 42 | xf86LoadPaletteProc * loadPalette, 43 | xf86SetOverscanProc * setOverscan, 44 | unsigned int flags); 45 | 46 | extern _X_EXPORT Bool xf86ColormapAllocatePrivates(ScrnInfoPtr pScrn); 47 | 48 | extern _X_EXPORT int 49 | xf86ChangeGamma(ScreenPtr pScreen, Gamma newGamma); 50 | 51 | extern _X_EXPORT int 52 | 53 | xf86ChangeGammaRamp(ScreenPtr pScreen, 54 | int size, 55 | unsigned short *red, 56 | unsigned short *green, unsigned short *blue); 57 | 58 | extern _X_EXPORT int xf86GetGammaRampSize(ScreenPtr pScreen); 59 | 60 | extern _X_EXPORT int 61 | 62 | xf86GetGammaRamp(ScreenPtr pScreen, 63 | int size, 64 | unsigned short *red, 65 | unsigned short *green, unsigned short *blue); 66 | 67 | #endif /* _XF86CMAP_H */ 68 | -------------------------------------------------------------------------------- /native/include/xorg/xfixes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2002 Keith Packard 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that 7 | * copyright notice and this permission notice appear in supporting 8 | * documentation, and that the name of Keith Packard not be used in 9 | * advertising or publicity pertaining to distribution of the software without 10 | * specific, written prior permission. Keith Packard makes no 11 | * representations about the suitability of this software for any purpose. It 12 | * is provided "as is" without express or implied warranty. 13 | * 14 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20 | * PERFORMANCE OF THIS SOFTWARE. 21 | */ 22 | 23 | #ifdef HAVE_DIX_CONFIG_H 24 | #include 25 | #endif 26 | 27 | #ifndef _XFIXES_H_ 28 | #define _XFIXES_H_ 29 | 30 | #include "resource.h" 31 | 32 | extern _X_EXPORT RESTYPE RegionResType; 33 | extern _X_EXPORT int XFixesErrorBase; 34 | 35 | #define VERIFY_REGION(pRegion, rid, client, mode) \ 36 | do { \ 37 | int err; \ 38 | err = dixLookupResourceByType((void **) &pRegion, rid, \ 39 | RegionResType, client, mode); \ 40 | if (err != Success) { \ 41 | client->errorValue = rid; \ 42 | return err; \ 43 | } \ 44 | } while (0) 45 | 46 | #define VERIFY_REGION_OR_NONE(pRegion, rid, client, mode) { \ 47 | pRegion = 0; \ 48 | if (rid) VERIFY_REGION(pRegion, rid, client, mode); \ 49 | } 50 | 51 | extern _X_EXPORT RegionPtr 52 | XFixesRegionCopy(RegionPtr pRegion); 53 | 54 | #include "xibarriers.h" 55 | 56 | #endif /* _XFIXES_H_ */ 57 | -------------------------------------------------------------------------------- /native/include/xorg/xisb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1997 Metro Link Incorporated 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | * THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 18 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF 19 | * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 | * SOFTWARE. 21 | * 22 | * Except as contained in this notice, the name of the Metro Link shall not be 23 | * used in advertising or otherwise to promote the sale, use or other dealings 24 | * in this Software without prior written authorization from Metro Link. 25 | * 26 | */ 27 | 28 | #ifndef _xisb_H_ 29 | #define _xisb_H_ 30 | 31 | #include 32 | 33 | /****************************************************************************** 34 | * Definitions 35 | * structs, typedefs, #defines, enums 36 | *****************************************************************************/ 37 | 38 | typedef struct _XISBuffer { 39 | int fd; 40 | int trace; 41 | int block_duration; 42 | ssize_t current; /* bytes read */ 43 | ssize_t end; 44 | ssize_t buffer_size; 45 | unsigned char *buf; 46 | } XISBuffer; 47 | 48 | /****************************************************************************** 49 | * Declarations 50 | * variables: use xisb_LOC in front 51 | * of globals. 52 | * put locals in the .c file. 53 | *****************************************************************************/ 54 | extern _X_EXPORT XISBuffer *XisbNew(int fd, ssize_t size); 55 | extern _X_EXPORT void XisbFree(XISBuffer * b); 56 | extern _X_EXPORT int XisbRead(XISBuffer * b); 57 | extern _X_EXPORT ssize_t XisbWrite(XISBuffer * b, unsigned char *msg, 58 | ssize_t len); 59 | extern _X_EXPORT void XisbTrace(XISBuffer * b, int trace); 60 | extern _X_EXPORT void XisbBlockDuration(XISBuffer * b, int block_duration); 61 | 62 | /* 63 | * DO NOT PUT ANYTHING AFTER THIS ENDIF 64 | */ 65 | #endif 66 | -------------------------------------------------------------------------------- /native/include/xorg/xorgVersion.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Copyright (c) 2004, X.Org Foundation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a 6 | * copy of this software and associated documentation files (the "Software"), 7 | * to deal in the Software without restriction, including without limitation 8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | * and/or sell copies of the Software, and to permit persons to whom the 10 | * Software is furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 | * OTHER DEALINGS IN THE SOFTWARE. 22 | * 23 | * Except as contained in this notice, the name of the copyright holder(s) 24 | * and author(s) shall not be used in advertising or otherwise to promote 25 | * the sale, use or other dealings in this Software without prior written 26 | * authorization from the copyright holder(s) and author(s). 27 | */ 28 | 29 | #ifndef XORG_VERSION_H 30 | #define XORG_VERSION_H 31 | 32 | #ifndef XORG_VERSION_CURRENT 33 | #error 34 | #endif 35 | 36 | #define XORG_VERSION_NUMERIC(major,minor,patch,snap,dummy) \ 37 | (((major) * 10000000) + ((minor) * 100000) + ((patch) * 1000) + snap) 38 | 39 | #define XORG_GET_MAJOR_VERSION(vers) ((vers) / 10000000) 40 | #define XORG_GET_MINOR_VERSION(vers) (((vers) % 10000000) / 100000) 41 | #define XORG_GET_PATCH_VERSION(vers) (((vers) % 100000) / 1000) 42 | #define XORG_GET_SNAP_VERSION(vers) ((vers) % 1000) 43 | 44 | #define XORG_VERSION_MAJOR XORG_GET_MAJOR_VERSION(XORG_VERSION_CURRENT) 45 | #define XORG_VERSION_MINOR XORG_GET_MINOR_VERSION(XORG_VERSION_CURRENT) 46 | #define XORG_VERSION_PATCH XORG_GET_PATCH_VERSION(XORG_VERSION_CURRENT) 47 | #define XORG_VERSION_SNAP XORG_GET_SNAP_VERSION(XORG_VERSION_CURRENT) 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /native/lib/README.md: -------------------------------------------------------------------------------- 1 | folder libmali include: 2 | * libmali for drm (need libdrm.so.2) 3 | * libmali for x11 (need xserver) 4 | * libmali for wayland (need weston) 5 | -------------------------------------------------------------------------------- /native/lib/libdrm.so: -------------------------------------------------------------------------------- 1 | ./libdrm.so.2 -------------------------------------------------------------------------------- /native/lib/libdrm.so.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jerzha/samples-rklinux-opengl/70faec3c35dcb44deb7ce054743d36bf52f5a89e/native/lib/libdrm.so.2 -------------------------------------------------------------------------------- /native/lib/libmali-gbm.so: -------------------------------------------------------------------------------- 1 | ./libmali/libmali.so_gbm_opencl_r13p0_aarch64 -------------------------------------------------------------------------------- /native/lib/libmali-wayland.so: -------------------------------------------------------------------------------- 1 | ./libmali/libmali.so_wayland_gbm_opencl_r13p0_aarch64 -------------------------------------------------------------------------------- /native/lib/libmali-x11.so: -------------------------------------------------------------------------------- 1 | ./libmali/libmali.so_x11_gbm_opencl_r13p0_aarch64 -------------------------------------------------------------------------------- /native/lib/libmali/libmali.so_gbm_opencl_r13p0_aarch64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jerzha/samples-rklinux-opengl/70faec3c35dcb44deb7ce054743d36bf52f5a89e/native/lib/libmali/libmali.so_gbm_opencl_r13p0_aarch64 -------------------------------------------------------------------------------- /native/lib/libmali/libmali.so_wayland_gbm_opencl_r13p0_aarch64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jerzha/samples-rklinux-opengl/70faec3c35dcb44deb7ce054743d36bf52f5a89e/native/lib/libmali/libmali.so_wayland_gbm_opencl_r13p0_aarch64 -------------------------------------------------------------------------------- /native/lib/libmali/libmali.so_wayland_gbm_opencl_r13p0_arm32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jerzha/samples-rklinux-opengl/70faec3c35dcb44deb7ce054743d36bf52f5a89e/native/lib/libmali/libmali.so_wayland_gbm_opencl_r13p0_arm32 -------------------------------------------------------------------------------- /native/lib/libmali/libmali.so_x11_gbm_opencl_r13p0_aarch64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jerzha/samples-rklinux-opengl/70faec3c35dcb44deb7ce054743d36bf52f5a89e/native/lib/libmali/libmali.so_x11_gbm_opencl_r13p0_aarch64 -------------------------------------------------------------------------------- /native/lib/libmali/libmali.so_x11_gbm_opencl_r13p0_arm32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jerzha/samples-rklinux-opengl/70faec3c35dcb44deb7ce054743d36bf52f5a89e/native/lib/libmali/libmali.so_x11_gbm_opencl_r13p0_arm32 --------------------------------------------------------------------------------