From da28b3d90fa1bcae71f26c8963e3afd7a1784eaa Mon Sep 17 00:00:00 2001 From: Eirikr Hinngart <151315375+Oichkatzelesfrettschen@users.noreply.github.com> Date: Sat, 31 May 2025 17:59:54 -0700 Subject: [PATCH] final removal --- external/mit/xorg/Makefile | 86 - external/mit/xorg/bin/Makefile | 28 - external/mit/xorg/bin/Makefile.inc | 3 - external/mit/xorg/bin/appres/Makefile | 16 - external/mit/xorg/bin/bdftopcf/Makefile | 16 - external/mit/xorg/bin/bdftruncate/Makefile | 10 - external/mit/xorg/bin/beforelight/Makefile | 18 - external/mit/xorg/bin/bitmap/Makefile | 29 - .../mit/xorg/bin/bitmap/app-defaults/Makefile | 9 - external/mit/xorg/bin/bitmap/atobm/Makefile | 16 - external/mit/xorg/bin/bitmap/bmtoa/Makefile | 16 - external/mit/xorg/bin/ccmakedep/Makefile | 15 - external/mit/xorg/bin/cleanlinks/Makefile | 11 - external/mit/xorg/bin/cxpm/Makefile | 17 - external/mit/xorg/bin/editres/Makefile | 21 - external/mit/xorg/bin/fc-cache/Makefile | 18 - external/mit/xorg/bin/fc-cat/Makefile | 17 - external/mit/xorg/bin/fc-list/Makefile | 17 - external/mit/xorg/bin/fc-match/Makefile | 17 - external/mit/xorg/bin/fc-pattern/Makefile | 18 - external/mit/xorg/bin/fc-query/Makefile | 17 - external/mit/xorg/bin/fc-scan/Makefile | 17 - external/mit/xorg/bin/fc-validate/Makefile | 17 - external/mit/xorg/bin/fonttosfnt/Makefile | 24 - external/mit/xorg/bin/fslsfonts/Makefile | 16 - external/mit/xorg/bin/fstobdf/Makefile | 17 - external/mit/xorg/bin/glxgears/Makefile | 18 - external/mit/xorg/bin/glxinfo/Makefile | 24 - external/mit/xorg/bin/iceauth/Makefile | 16 - external/mit/xorg/bin/ico/Makefile | 18 - external/mit/xorg/bin/imake/Makefile | 19 - external/mit/xorg/bin/listres/Makefile | 15 - external/mit/xorg/bin/lndir/Makefile | 10 - external/mit/xorg/bin/luit/Makefile | 24 - external/mit/xorg/bin/makedepend/Makefile | 17 - external/mit/xorg/bin/makeg/Makefile | 11 - external/mit/xorg/bin/makestrs/Makefile | 10 - external/mit/xorg/bin/mergelib/Makefile | 13 - external/mit/xorg/bin/mkdirhier/Makefile | 11 - external/mit/xorg/bin/mkfontdir/Makefile | 18 - external/mit/xorg/bin/mkfontscale/Makefile | 18 - external/mit/xorg/bin/mkhtmlindex/Makefile | 13 - external/mit/xorg/bin/oclock/Makefile | 17 - external/mit/xorg/bin/proxymngr/Makefile | 29 - external/mit/xorg/bin/revpath/Makefile | 10 - external/mit/xorg/bin/rgb/Makefile | 20 - external/mit/xorg/bin/rstart/Makefile | 41 - external/mit/xorg/bin/rstart/Makefile.rstart | 21 - .../mit/xorg/bin/rstart/commands/Makefile | 18 - .../xorg/bin/rstart/commands/x11r6/Makefile | 12 - .../mit/xorg/bin/rstart/contexts/Makefile | 14 - external/mit/xorg/bin/sessreg/Makefile | 19 - external/mit/xorg/bin/setxkbmap/Makefile | 21 - external/mit/xorg/bin/showfont/Makefile | 16 - external/mit/xorg/bin/smproxy/Makefile | 19 - external/mit/xorg/bin/ssh-askpass/Makefile | 49 - external/mit/xorg/bin/sxpm/Makefile | 17 - external/mit/xorg/bin/twm/Makefile | 54 - external/mit/xorg/bin/ucs2any/Makefile | 12 - external/mit/xorg/bin/viewres/Makefile | 17 - external/mit/xorg/bin/x11perf/Makefile | 38 - external/mit/xorg/bin/xauth/Makefile | 24 - external/mit/xorg/bin/xbiff/Makefile | 18 - external/mit/xorg/bin/xcalc/Makefile | 20 - external/mit/xorg/bin/xclipboard/Makefile | 17 - external/mit/xorg/bin/xclock/Makefile | 23 - external/mit/xorg/bin/xcmsdb/Makefile | 17 - external/mit/xorg/bin/xconsole/Makefile | 19 - external/mit/xorg/bin/xcutsel/Makefile | 15 - external/mit/xorg/bin/xditview/Makefile | 28 - external/mit/xorg/bin/xdm/Makefile | 63 - external/mit/xorg/bin/xdm/Makefile.xdm | 53 - external/mit/xorg/bin/xdm/chooser/Makefile | 23 - external/mit/xorg/bin/xdm/config/Makefile | 77 - .../mit/xorg/bin/xdm/config/Xresources.cpp | 108 - external/mit/xorg/bin/xdpyinfo/Makefile | 26 - external/mit/xorg/bin/xdriinfo/Makefile | 18 - external/mit/xorg/bin/xedit/Makefile | 5 - external/mit/xorg/bin/xedit/Makefile.inc | 3 - external/mit/xorg/bin/xedit/lisp/Makefile | 32 - external/mit/xorg/bin/xedit/modules/Makefile | 14 - .../xorg/bin/xedit/modules/progmodes/Makefile | 12 - external/mit/xorg/bin/xedit/mp/Makefile | 13 - external/mit/xorg/bin/xedit/re/Makefile | 13 - external/mit/xorg/bin/xedit/xedit/Makefile | 28 - .../mit/xorg/bin/xedit/xedit/Makefile.inc | 3 - external/mit/xorg/bin/xev/Makefile | 16 - external/mit/xorg/bin/xeyes/Makefile | 14 - external/mit/xorg/bin/xf86dga/Makefile | 15 - external/mit/xorg/bin/xfd/Makefile | 22 - external/mit/xorg/bin/xfindproxy/Makefile | 15 - external/mit/xorg/bin/xfontsel/Makefile | 18 - external/mit/xorg/bin/xfs/Makefile | 69 - external/mit/xorg/bin/xfsinfo/Makefile | 16 - external/mit/xorg/bin/xfwp/Makefile | 16 - external/mit/xorg/bin/xgamma/Makefile | 17 - external/mit/xorg/bin/xgc/Makefile | 22 - external/mit/xorg/bin/xhost/Makefile | 16 - external/mit/xorg/bin/xinit/Makefile | 37 - external/mit/xorg/bin/xinput/Makefile | 17 - external/mit/xorg/bin/xkbcomp/Makefile | 36 - external/mit/xorg/bin/xkbcomp/Makefile.common | 5 - external/mit/xorg/bin/xkbevd/Makefile | 22 - external/mit/xorg/bin/xkbprint/Makefile | 21 - external/mit/xorg/bin/xkbutils/Makefile | 5 - external/mit/xorg/bin/xkbutils/Makefile.inc | 3 - .../mit/xorg/bin/xkbutils/Makefile.xkbutils | 19 - .../mit/xorg/bin/xkbutils/xkbbell/Makefile | 5 - .../mit/xorg/bin/xkbutils/xkbvleds/Makefile | 6 - .../mit/xorg/bin/xkbutils/xkbwatch/Makefile | 6 - external/mit/xorg/bin/xkill/Makefile | 15 - external/mit/xorg/bin/xload/Makefile | 20 - external/mit/xorg/bin/xlogo/Makefile | 22 - external/mit/xorg/bin/xlsatoms/Makefile | 21 - external/mit/xorg/bin/xlsclients/Makefile | 23 - external/mit/xorg/bin/xlsfonts/Makefile | 19 - external/mit/xorg/bin/xmag/Makefile | 22 - external/mit/xorg/bin/xman/Makefile | 27 - external/mit/xorg/bin/xmessage/Makefile | 19 - external/mit/xorg/bin/xmh/Makefile | 27 - external/mit/xorg/bin/xmkmf/Makefile | 13 - external/mit/xorg/bin/xmlwf/Makefile | 8 - external/mit/xorg/bin/xmodmap/Makefile | 21 - external/mit/xorg/bin/xmore/Makefile | 19 - external/mit/xorg/bin/xprop/Makefile | 19 - external/mit/xorg/bin/xrandr/Makefile | 17 - external/mit/xorg/bin/xrdb/Makefile | 17 - external/mit/xorg/bin/xrefresh/Makefile | 14 - external/mit/xorg/bin/xset/Makefile | 18 - external/mit/xorg/bin/xsetmode/Makefile | 13 - external/mit/xorg/bin/xsetpointer/Makefile | 13 - external/mit/xorg/bin/xsetroot/Makefile | 16 - external/mit/xorg/bin/xsetwallpaper/Makefile | 31 - external/mit/xorg/bin/xsm/Makefile | 30 - external/mit/xorg/bin/xstdcmap/Makefile | 16 - external/mit/xorg/bin/xterm/Makefile | 56 - external/mit/xorg/bin/xterm/Makefile.inc | 3 - external/mit/xorg/bin/xterm/resize/Makefile | 17 - external/mit/xorg/bin/xterm/uxterm/Makefile | 12 - external/mit/xorg/bin/xtrap/Makefile | 17 - external/mit/xorg/bin/xtrap/Makefile.inc | 3 - external/mit/xorg/bin/xtrap/Makefile.xtrap | 22 - .../mit/xorg/bin/xtrap/xtrapchar/Makefile | 6 - external/mit/xorg/bin/xtrap/xtrapin/Makefile | 5 - .../mit/xorg/bin/xtrap/xtrapinfo/Makefile | 5 - external/mit/xorg/bin/xtrap/xtrapout/Makefile | 5 - .../mit/xorg/bin/xtrap/xtrapproto/Makefile | 5 - .../mit/xorg/bin/xtrap/xtrapreset/Makefile | 5 - .../mit/xorg/bin/xtrap/xtrapstats/Makefile | 5 - external/mit/xorg/bin/xvidtune/Makefile | 20 - external/mit/xorg/bin/xvinfo/Makefile | 17 - external/mit/xorg/bin/xwd/Makefile | 18 - external/mit/xorg/bin/xwininfo/Makefile | 19 - external/mit/xorg/bin/xwud/Makefile | 14 - external/mit/xorg/etc/Makefile | 20 - .../mit/xorg/etc/etc.dreamcast/Makefile.inc | 3 - .../xorg/etc/etc.dreamcast/xorg.conf.jpkbd | 49 - .../xorg/etc/etc.dreamcast/xorg.conf.uskbd | 49 - external/mit/xorg/etc/etc.hpc/Makefile.inc | 9 - .../mit/xorg/etc/etc.hpc/xorg.conf.640x240-jp | 77 - .../mit/xorg/etc/etc.hpc/xorg.conf.640x240-us | 77 - .../mit/xorg/etc/etc.hpc/xorg.conf.640x480-jp | 77 - .../mit/xorg/etc/etc.hpc/xorg.conf.640x480-us | 77 - .../mit/xorg/etc/etc.hpc/xorg.conf.800x600-jp | 78 - .../mit/xorg/etc/etc.hpc/xorg.conf.800x600-us | 78 - external/mit/xorg/etc/etc.hpcarm/Makefile.inc | 9 - .../mit/xorg/etc/etc.hpcarm/xorg.conf.ws003sh | 78 - .../mit/xorg/etc/etc.hpcarm/xorg.conf.ws007sh | 78 - .../mit/xorg/etc/etc.hpcarm/xorg.conf.ws011sh | 78 - .../mit/xorg/etc/etc.hpcarm/xorg.conf.ws020sh | 78 - .../mit/xorg/etc/etc.hpcmips/Makefile.inc | 5 - external/mit/xorg/etc/etc.hpcsh/Makefile.inc | 5 - external/mit/xorg/etc/etc.zaurus/Makefile.inc | 3 - .../mit/xorg/etc/etc.zaurus/xorg.conf.C3x00 | 57 - .../mit/xorg/etc/etc.zaurus/xorg.conf.C7x0 | 57 - external/mit/xorg/include/Makefile | 13 - .../mit/xorg/include/bigreqsproto/Makefile | 17 - .../mit/xorg/include/compositeproto/Makefile | 15 - .../mit/xorg/include/damageproto/Makefile | 15 - external/mit/xorg/include/dri2proto/Makefile | 15 - external/mit/xorg/include/dri3proto/Makefile | 15 - external/mit/xorg/include/evieext/Makefile | 18 - external/mit/xorg/include/fixesproto/Makefile | 19 - .../mit/xorg/include/fontcacheproto/Makefile | 15 - external/mit/xorg/include/fontsproto/Makefile | 15 - external/mit/xorg/include/glproto/Makefile | 18 - .../xorg/include/glproto/internal/Makefile | 13 - external/mit/xorg/include/inputproto/Makefile | 21 - external/mit/xorg/include/kbproto/Makefile | 15 - .../mit/xorg/include/presentproto/Makefile | 15 - external/mit/xorg/include/randrproto/Makefile | 15 - .../mit/xorg/include/recordproto/Makefile | 18 - .../mit/xorg/include/renderproto/Makefile | 15 - .../mit/xorg/include/resourceproto/Makefile | 15 - .../mit/xorg/include/scrnsaverproto/Makefile | 15 - external/mit/xorg/include/trapproto/Makefile | 16 - external/mit/xorg/include/videoproto/Makefile | 15 - external/mit/xorg/include/xbitmaps/Makefile | 24 - external/mit/xorg/include/xcb-proto/Makefile | 24 - .../mit/xorg/include/xcmiscproto/Makefile | 17 - external/mit/xorg/include/xextproto/Makefile | 47 - .../xorg/include/xf86bigfontproto/Makefile | 18 - .../mit/xorg/include/xf86dgaproto/Makefile | 22 - .../mit/xorg/include/xf86driproto/Makefile | 18 - .../mit/xorg/include/xf86miscproto/Makefile | 15 - .../xorg/include/xf86vidmodeproto/Makefile | 18 - .../mit/xorg/include/xineramaproto/Makefile | 15 - external/mit/xorg/include/xproto/Makefile | 29 - .../include/xproxymanagementprotocol/Makefile | 16 - external/mit/xorg/include/xtrans/Makefile | 16 - external/mit/xorg/lib/Makefile | 50 - external/mit/xorg/lib/Makefile.inc | 4 - external/mit/xorg/lib/asm.mk | 16 - external/mit/xorg/lib/dri/Makefile | 418 - external/mit/xorg/lib/dri7/Makefile | 9 - external/mit/xorg/lib/dri7/dri.mk | 55 - external/mit/xorg/lib/dri7/libglsl7.mk | 102 - external/mit/xorg/lib/dri7/libmesa/Makefile | 46 - external/mit/xorg/lib/dri7/libmesa7.mk | 351 - external/mit/xorg/lib/dri7/r300/Makefile | 111 - external/mit/xorg/lib/driver.mk | 24 - external/mit/xorg/lib/fontconfig/Makefile | 8 - external/mit/xorg/lib/fontconfig/etc/Makefile | 17 - .../lib/fontconfig/etc/conf.avail/Makefile | 41 - .../xorg/lib/fontconfig/etc/conf.d/Makefile | 31 - .../mit/xorg/lib/fontconfig/etc/fonts.conf | 157 - .../xorg/lib/fontconfig/fontconfig/Makefile | 12 - external/mit/xorg/lib/fontconfig/src/Makefile | 140 - .../xorg/lib/fontconfig/src/Makefile.fcarch | 8 - .../mit/xorg/lib/fontconfig/src/shlib_version | 4 - external/mit/xorg/lib/freetype/Makefile | 103 - .../mit/xorg/lib/freetype/freetype/Makefile | 51 - .../xorg/lib/freetype/freetype/cache/Makefile | 13 - .../lib/freetype/freetype/config/Makefile | 12 - .../mit/xorg/lib/freetype/freetype2.pc.in | 11 - external/mit/xorg/lib/freetype/shlib_version | 6 - external/mit/xorg/lib/gallium/Makefile | 485 - external/mit/xorg/lib/libFS/Makefile | 41 - external/mit/xorg/lib/libFS/shlib_version | 4 - external/mit/xorg/lib/libGL/Makefile | 190 - external/mit/xorg/lib/libGL/internal/Makefile | 13 - external/mit/xorg/lib/libGL/mesa-ver.mk | 3 - external/mit/xorg/lib/libGL/shlib_version | 5 - external/mit/xorg/lib/libGLU/Makefile | 168 - external/mit/xorg/lib/libGLU/shlib_version | 5 - external/mit/xorg/lib/libGLw/Makefile | 44 - external/mit/xorg/lib/libGLw/shlib_version | 4 - external/mit/xorg/lib/libI810XvMC/Makefile | 25 - .../mit/xorg/lib/libI810XvMC/shlib_version | 4 - external/mit/xorg/lib/libICE/Makefile | 30 - external/mit/xorg/lib/libICE/shlib_version | 4 - external/mit/xorg/lib/libIntelXvMC/Makefile | 33 - .../mit/xorg/lib/libIntelXvMC/shlib_version | 4 - external/mit/xorg/lib/libSM/Makefile | 31 - external/mit/xorg/lib/libSM/shlib_version | 4 - external/mit/xorg/lib/libX11/Makefile | 113 - external/mit/xorg/lib/libX11/Makefile.libx11 | 473 - external/mit/xorg/lib/libX11/Makefile.ximcp | 47 - external/mit/xorg/lib/libX11/Makefile.xlcDef | 13 - .../mit/xorg/lib/libX11/Makefile.xlcUTF8Load | 15 - .../mit/xorg/lib/libX11/Makefile.xlibi18n | 14 - .../mit/xorg/lib/libX11/Makefile.xomGeneric | 23 - external/mit/xorg/lib/libX11/dynamic/Makefile | 29 - .../mit/xorg/lib/libX11/dynamic/shlib_version | 4 - .../mit/xorg/lib/libX11/libX11-xcb/Makefile | 21 - .../xorg/lib/libX11/libX11-xcb/shlib_version | 4 - external/mit/xorg/lib/libX11/static/Makefile | 26 - external/mit/xorg/lib/libX11/ximcp/Makefile | 17 - external/mit/xorg/lib/libX11/xlcDef/Makefile | 14 - .../mit/xorg/lib/libX11/xlcUTF8Load/Makefile | 14 - .../mit/xorg/lib/libX11/xlibi18n/Makefile | 14 - .../mit/xorg/lib/libX11/xomGeneric/Makefile | 14 - external/mit/xorg/lib/libXScrnSaver/Makefile | 37 - .../mit/xorg/lib/libXScrnSaver/shlib_version | 4 - external/mit/xorg/lib/libXTrap/Makefile | 25 - external/mit/xorg/lib/libXTrap/shlib_version | 4 - external/mit/xorg/lib/libXau/Makefile | 33 - external/mit/xorg/lib/libXau/shlib_version | 4 - external/mit/xorg/lib/libXaw/Makefile | 80 - external/mit/xorg/lib/libXaw/shlib_version | 4 - external/mit/xorg/lib/libXaw6/Makefile | 44 - external/mit/xorg/lib/libXaw6/shlib_version | 4 - external/mit/xorg/lib/libXcomposite/Makefile | 34 - .../mit/xorg/lib/libXcomposite/shlib_version | 4 - external/mit/xorg/lib/libXcursor/Makefile | 33 - .../mit/xorg/lib/libXcursor/shlib_version | 4 - external/mit/xorg/lib/libXdamage/Makefile | 22 - .../mit/xorg/lib/libXdamage/shlib_version | 4 - external/mit/xorg/lib/libXdmGreet/Makefile | 40 - .../mit/xorg/lib/libXdmGreet/shlib_version | 4 - external/mit/xorg/lib/libXdmcp/Makefile | 29 - external/mit/xorg/lib/libXdmcp/shlib_version | 4 - external/mit/xorg/lib/libXevie/Makefile | 31 - external/mit/xorg/lib/libXevie/shlib_version | 4 - external/mit/xorg/lib/libXext/Makefile | 104 - external/mit/xorg/lib/libXext/shlib_version | 4 - external/mit/xorg/lib/libXfixes/Makefile | 27 - external/mit/xorg/lib/libXfixes/shlib_version | 4 - external/mit/xorg/lib/libXfont/Makefile | 74 - external/mit/xorg/lib/libXfont/shlib_version | 4 - external/mit/xorg/lib/libXfontcache/Makefile | 27 - .../mit/xorg/lib/libXfontcache/shlib_version | 4 - external/mit/xorg/lib/libXft/Makefile | 37 - external/mit/xorg/lib/libXft/shlib_version | 4 - external/mit/xorg/lib/libXi/Makefile | 89 - external/mit/xorg/lib/libXi/shlib_version | 4 - external/mit/xorg/lib/libXinerama/Makefile | 32 - .../mit/xorg/lib/libXinerama/shlib_version | 4 - external/mit/xorg/lib/libXmu/Makefile | 45 - external/mit/xorg/lib/libXmu/shlib_version | 4 - external/mit/xorg/lib/libXmuu/Makefile | 20 - external/mit/xorg/lib/libXmuu/shlib_version | 4 - external/mit/xorg/lib/libXpm/Makefile | 28 - external/mit/xorg/lib/libXpm/shlib_version | 4 - external/mit/xorg/lib/libXpresent/Makefile | 29 - .../mit/xorg/lib/libXpresent/shlib_version | 4 - external/mit/xorg/lib/libXrandr/Makefile | 34 - external/mit/xorg/lib/libXrandr/shlib_version | 4 - external/mit/xorg/lib/libXrender/Makefile | 28 - .../mit/xorg/lib/libXrender/shlib_version | 4 - external/mit/xorg/lib/libXres/Makefile | 31 - external/mit/xorg/lib/libXres/shlib_version | 4 - external/mit/xorg/lib/libXt/Makefile | 317 - external/mit/xorg/lib/libXt/shlib_version | 4 - external/mit/xorg/lib/libXtst/Makefile | 28 - external/mit/xorg/lib/libXtst/shlib_version | 4 - external/mit/xorg/lib/libXv/Makefile | 31 - external/mit/xorg/lib/libXv/shlib_version | 4 - external/mit/xorg/lib/libXvMC/Makefile | 23 - external/mit/xorg/lib/libXvMC/shlib_version | 4 - external/mit/xorg/lib/libXvMCW/Makefile | 21 - external/mit/xorg/lib/libXvMCW/shlib_version | 4 - external/mit/xorg/lib/libXxf86dga/Makefile | 51 - .../mit/xorg/lib/libXxf86dga/shlib_version | 4 - external/mit/xorg/lib/libXxf86misc/Makefile | 27 - .../mit/xorg/lib/libXxf86misc/shlib_version | 4 - external/mit/xorg/lib/libXxf86vm/Makefile | 47 - .../mit/xorg/lib/libXxf86vm/shlib_version | 4 - external/mit/xorg/lib/libchromeXvMC/Makefile | 30 - .../mit/xorg/lib/libchromeXvMC/shlib_version | 4 - .../mit/xorg/lib/libchromeXvMCPro/Makefile | 30 - .../xorg/lib/libchromeXvMCPro/shlib_version | 4 - external/mit/xorg/lib/libdrm/Makefile | 38 - external/mit/xorg/lib/libdrm/Makefile.defines | 16 - external/mit/xorg/lib/libdrm/drm/Makefile | 40 - external/mit/xorg/lib/libdrm/kms/Makefile | 14 - external/mit/xorg/lib/libdrm/shlib_version | 4 - external/mit/xorg/lib/libdrm_intel/Makefile | 27 - .../mit/xorg/lib/libdrm_intel/shlib_version | 4 - external/mit/xorg/lib/libdrm_radeon/Makefile | 30 - .../mit/xorg/lib/libdrm_radeon/shlib_version | 4 - external/mit/xorg/lib/libfontenc/Makefile | 24 - .../mit/xorg/lib/libfontenc/shlib_version | 4 - external/mit/xorg/lib/libgbm/Makefile | 51 - external/mit/xorg/lib/libgbm/shlib_version | 4 - external/mit/xorg/lib/libglapi/Makefile | 107 - external/mit/xorg/lib/libglsl.mk | 111 - external/mit/xorg/lib/libglut/Makefile | 81 - external/mit/xorg/lib/libglut/shlib_version | 4 - external/mit/xorg/lib/libloader.mk | 18 - external/mit/xorg/lib/libmesa.mk | 444 - external/mit/xorg/lib/libpciaccess/Makefile | 53 - .../mit/xorg/lib/libpciaccess/shlib_version | 4 - .../mit/xorg/lib/libpthread-stubs/Makefile | 15 - external/mit/xorg/lib/libxcb/Makefile | 30 - external/mit/xorg/lib/libxcb/bigreq/Makefile | 5 - .../mit/xorg/lib/libxcb/composite/Makefile | 5 - external/mit/xorg/lib/libxcb/damage/Makefile | 5 - external/mit/xorg/lib/libxcb/dpms/Makefile | 5 - external/mit/xorg/lib/libxcb/dri2/Makefile | 5 - external/mit/xorg/lib/libxcb/dri3/Makefile | 5 - external/mit/xorg/lib/libxcb/files/Makefile | 26 - .../xorg/lib/libxcb/files/Makefile.xmlsrcs | 34 - external/mit/xorg/lib/libxcb/files/bigreq.c | 75 - external/mit/xorg/lib/libxcb/files/bigreq.h | 109 - .../mit/xorg/lib/libxcb/files/composite.c | 541 - .../mit/xorg/lib/libxcb/files/composite.h | 504 - external/mit/xorg/lib/libxcb/files/config.h | 138 - external/mit/xorg/lib/libxcb/files/damage.c | 333 - external/mit/xorg/lib/libxcb/files/damage.h | 365 - external/mit/xorg/lib/libxcb/files/dpms.c | 459 - external/mit/xorg/lib/libxcb/files/dpms.h | 511 - external/mit/xorg/lib/libxcb/files/dri2.c | 1227 -- external/mit/xorg/lib/libxcb/files/dri2.h | 1305 -- external/mit/xorg/lib/libxcb/files/dri3.c | 443 - external/mit/xorg/lib/libxcb/files/dri3.h | 511 - external/mit/xorg/lib/libxcb/files/glx.c | 10266 ------------- external/mit/xorg/lib/libxcb/files/glx.h | 8424 ----------- external/mit/xorg/lib/libxcb/files/present.c | 495 - external/mit/xorg/lib/libxcb/files/present.h | 624 - external/mit/xorg/lib/libxcb/files/randr.c | 4869 ------- external/mit/xorg/lib/libxcb/files/randr.h | 4022 ------ external/mit/xorg/lib/libxcb/files/record.c | 979 -- external/mit/xorg/lib/libxcb/files/record.h | 888 -- external/mit/xorg/lib/libxcb/files/render.c | 3747 ----- external/mit/xorg/lib/libxcb/files/render.h | 2917 ---- external/mit/xorg/lib/libxcb/files/res.c | 850 -- external/mit/xorg/lib/libxcb/files/res.h | 864 -- .../mit/xorg/lib/libxcb/files/screensaver.c | 439 - .../mit/xorg/lib/libxcb/files/screensaver.h | 433 - external/mit/xorg/lib/libxcb/files/shape.c | 746 - external/mit/xorg/lib/libxcb/files/shape.h | 743 - external/mit/xorg/lib/libxcb/files/shm.c | 629 - external/mit/xorg/lib/libxcb/files/shm.h | 647 - external/mit/xorg/lib/libxcb/files/sync.c | 1952 --- external/mit/xorg/lib/libxcb/files/sync.h | 1598 --- external/mit/xorg/lib/libxcb/files/xc_misc.c | 252 - external/mit/xorg/lib/libxcb/files/xc_misc.h | 281 - external/mit/xorg/lib/libxcb/files/xevie.c | 347 - external/mit/xorg/lib/libxcb/files/xevie.h | 473 - external/mit/xorg/lib/libxcb/files/xf86dri.c | 1005 -- external/mit/xorg/lib/libxcb/files/xf86dri.h | 988 -- external/mit/xorg/lib/libxcb/files/xfixes.c | 2481 ---- external/mit/xorg/lib/libxcb/files/xfixes.h | 1960 --- external/mit/xorg/lib/libxcb/files/xinerama.c | 451 - external/mit/xorg/lib/libxcb/files/xinerama.h | 557 - external/mit/xorg/lib/libxcb/files/xinput.c | 10140 ------------- external/mit/xorg/lib/libxcb/files/xinput.h | 8619 ----------- external/mit/xorg/lib/libxcb/files/xkb.c | 10835 -------------- external/mit/xorg/lib/libxcb/files/xkb.h | 7048 --------- external/mit/xorg/lib/libxcb/files/xprint.c | 2493 ---- external/mit/xorg/lib/libxcb/files/xprint.h | 1877 --- external/mit/xorg/lib/libxcb/files/xproto.c | 11610 --------------- external/mit/xorg/lib/libxcb/files/xproto.h | 11864 ---------------- external/mit/xorg/lib/libxcb/files/xselinux.c | 2538 ---- external/mit/xorg/lib/libxcb/files/xselinux.h | 1826 --- external/mit/xorg/lib/libxcb/files/xtest.c | 286 - external/mit/xorg/lib/libxcb/files/xtest.h | 303 - external/mit/xorg/lib/libxcb/files/xv.c | 2331 --- external/mit/xorg/lib/libxcb/files/xv.h | 2078 --- external/mit/xorg/lib/libxcb/files/xvmc.c | 913 -- external/mit/xorg/lib/libxcb/files/xvmc.h | 868 -- external/mit/xorg/lib/libxcb/glx/Makefile | 5 - external/mit/xorg/lib/libxcb/libxcb/Makefile | 72 - .../mit/xorg/lib/libxcb/libxcb/shlib_version | 4 - external/mit/xorg/lib/libxcb/present/Makefile | 5 - external/mit/xorg/lib/libxcb/randr/Makefile | 8 - external/mit/xorg/lib/libxcb/record/Makefile | 5 - external/mit/xorg/lib/libxcb/render/Makefile | 5 - external/mit/xorg/lib/libxcb/res/Makefile | 5 - .../mit/xorg/lib/libxcb/screensaver/Makefile | 5 - external/mit/xorg/lib/libxcb/shape/Makefile | 5 - external/mit/xorg/lib/libxcb/shm/Makefile | 5 - external/mit/xorg/lib/libxcb/sync/Makefile | 8 - external/mit/xorg/lib/libxcb/xc_misc/Makefile | 5 - external/mit/xorg/lib/libxcb/xcb.mk | 26 - external/mit/xorg/lib/libxcb/xevie/Makefile | 5 - external/mit/xorg/lib/libxcb/xf86dri/Makefile | 5 - external/mit/xorg/lib/libxcb/xfixes/Makefile | 5 - .../mit/xorg/lib/libxcb/xinerama/Makefile | 5 - external/mit/xorg/lib/libxcb/xkb/Makefile | 8 - external/mit/xorg/lib/libxcb/xproto/Makefile | 5 - external/mit/xorg/lib/libxcb/xtest/Makefile | 5 - external/mit/xorg/lib/libxcb/xv/Makefile | 5 - external/mit/xorg/lib/libxcb/xvmc/Makefile | 5 - external/mit/xorg/lib/libxkbfile/Makefile | 25 - .../mit/xorg/lib/libxkbfile/shlib_version | 4 - external/mit/xorg/lib/libxkbui/Makefile | 28 - external/mit/xorg/lib/libxkbui/shlib_version | 4 - external/mit/xorg/lib/pixman/Makefile | 130 - external/mit/xorg/lib/pixman/shlib_version | 4 - external/mit/xorg/lib/xcb-util/Makefile | 25 - external/mit/xorg/lib/xcb-util/atom/Makefile | 9 - external/mit/xorg/lib/xcb-util/atom/atoms.c | 837 -- external/mit/xorg/lib/xcb-util/aux/Makefile | 7 - external/mit/xorg/lib/xcb-util/event/Makefile | 9 - external/mit/xorg/lib/xcb-util/icccm/Makefile | 18 - external/mit/xorg/lib/xcb-util/image/Makefile | 16 - .../mit/xorg/lib/xcb-util/keysyms/Makefile | 9 - .../mit/xorg/lib/xcb-util/property/Makefile | 14 - .../xorg/lib/xcb-util/render-util/Makefile | 18 - external/mit/xorg/lib/xcb-util/reply/Makefile | 11 - external/mit/xorg/lib/xcb-util/xcb-util.mk | 28 - .../mit/xorg/lib/xkeyboard-config/Makefile | 13 - .../lib/xkeyboard-config/Makefile.xkbdata | 24 - .../xorg/lib/xkeyboard-config/compat/Makefile | 15 - .../lib/xkeyboard-config/geometry/Makefile | 18 - .../geometry/digital_vndr/Makefile | 11 - .../geometry/sgi_vndr/Makefile | 11 - .../lib/xkeyboard-config/keycodes/Makefile | 17 - .../keycodes/digital_vndr/Makefile | 11 - .../keycodes/sgi_vndr/Makefile | 11 - .../xorg/lib/xkeyboard-config/rules/Makefile | 26 - .../mit/xorg/lib/xkeyboard-config/rules/base | 1228 -- .../xorg/lib/xkeyboard-config/rules/base.lst | 898 -- .../mit/xorg/lib/xkeyboard-config/rules/evdev | 1117 -- .../xorg/lib/xkeyboard-config/rules/evdev.lst | 898 -- .../lib/xkeyboard-config/symbols/Makefile | 40 - .../symbols/digital_vndr/Makefile | 11 - .../symbols/fujitsu_vndr/Makefile | 11 - .../xkeyboard-config/symbols/hp_vndr/Makefile | 11 - .../symbols/macintosh_vndr/Makefile | 11 - .../symbols/nec_vndr/Makefile | 11 - .../symbols/nokia_vndr/Makefile | 11 - .../symbols/sgi_vndr/Makefile | 11 - .../symbols/sharp_vndr/Makefile | 11 - .../symbols/sony_vndr/Makefile | 11 - .../symbols/sun_vndr/Makefile | 13 - .../symbols/xfree68_vndr/Makefile | 11 - .../lib/xkeyboard-config/torture/Makefile | 14 - .../xorg/lib/xkeyboard-config/types/Makefile | 14 - external/mit/xorg/share/Makefile | 11 - external/mit/xorg/share/cf/Makefile | 47 - external/mit/xorg/share/cf/date.def | 0 external/mit/xorg/share/cf/host.def | 0 external/mit/xorg/share/cf/xorgsite.def | 9 - external/mit/xorg/share/fonts/100dpi/Makefile | 10 - .../fonts/100dpi/font-adobe-100dpi/Makefile | 15 - .../100dpi/font-adobe-symbol-100dpi/Makefile | 14 - .../100dpi/font-adobe-utopia-100dpi/Makefile | 15 - .../fonts/100dpi/font-bh-100dpi/Makefile | 15 - .../font-bh-lucidatypewriter-100dpi/Makefile | 15 - .../100dpi/font-bitstream-100dpi/Makefile | 14 - external/mit/xorg/share/fonts/75dpi/Makefile | 10 - .../fonts/75dpi/font-adobe-75dpi/Makefile | 15 - .../75dpi/font-adobe-symbol-75dpi/Makefile | 14 - .../75dpi/font-adobe-utopia-75dpi/Makefile | 15 - .../share/fonts/75dpi/font-bh-75dpi/Makefile | 15 - .../font-bh-lucidatypewriter-75dpi/Makefile | 15 - .../fonts/75dpi/font-bitstream-75dpi/Makefile | 14 - external/mit/xorg/share/fonts/Makefile | 15 - external/mit/xorg/share/fonts/Makefile.bdf | 57 - external/mit/xorg/share/fonts/Makefile.dpi | 82 - .../mit/xorg/share/fonts/Makefile.fccache | 21 - external/mit/xorg/share/fonts/Makefile.font | 4 - .../mit/xorg/share/fonts/Makefile.fontdir | 6 - .../mit/xorg/share/fonts/Makefile.mkfontscale | 43 - external/mit/xorg/share/fonts/TTF/Makefile | 9 - .../xorg/share/fonts/TTF/font-bh-ttf/Makefile | 15 - .../fonts/TTF/ttf-bitstream-vera/Makefile | 15 - external/mit/xorg/share/fonts/Type1/Makefile | 10 - .../Type1/font-adobe-utopia-type1/Makefile | 14 - .../share/fonts/Type1/font-bh-type1/Makefile | 18 - .../fonts/Type1/font-bitstream-type1/Makefile | 16 - .../share/fonts/Type1/font-ibm-type1/Makefile | 14 - .../mit/xorg/share/fonts/encodings/Makefile | 29 - .../xorg/share/fonts/encodings/Makefile.enc | 30 - .../xorg/share/fonts/encodings/large/Makefile | 20 - .../share/fonts/font-alias/100dpi/Makefile | 5 - .../share/fonts/font-alias/75dpi/Makefile | 5 - .../mit/xorg/share/fonts/font-alias/Makefile | 5 - .../share/fonts/font-alias/Makefile.alias | 9 - .../share/fonts/font-alias/cyrillic/Makefile | 5 - .../xorg/share/fonts/font-alias/misc/Makefile | 5 - .../mit/xorg/share/fonts/font-util/Makefile | 20 - external/mit/xorg/share/fonts/misc/Makefile | 10 - .../fonts/misc/font-cursor-misc/Makefile | 14 - .../fonts/misc/font-daewoo-misc/Makefile | 14 - .../share/fonts/misc/font-dec-misc/Makefile | 14 - .../share/fonts/misc/font-isas-misc/Makefile | 14 - .../share/fonts/misc/font-jis-misc/Makefile | 14 - .../share/fonts/misc/font-misc-misc/Makefile | 62 - .../share/fonts/misc/font-mutt-misc/Makefile | 15 - .../share/fonts/misc/font-sony-misc/Makefile | 14 - external/mit/xorg/share/man/Makefile | 7 - external/mit/xorg/share/man/man7/Makefile | 11 - external/mit/xorg/share/nls/C/Makefile | 5 - external/mit/xorg/share/nls/Makefile | 66 - external/mit/xorg/share/nls/Makefile.nls | 30 - .../mit/xorg/share/nls/am_ET.UTF-8/Makefile | 5 - .../mit/xorg/share/nls/armscii-8/Makefile | 5 - .../mit/xorg/share/nls/el_GR.UTF-8/Makefile | 5 - .../mit/xorg/share/nls/en_US.UTF-8/Makefile | 5 - .../xorg/share/nls/georgian-academy/Makefile | 5 - .../mit/xorg/share/nls/georgian-ps/Makefile | 5 - .../mit/xorg/share/nls/ibm-cp1133/Makefile | 5 - .../mit/xorg/share/nls/iscii-dev/Makefile | 5 - .../mit/xorg/share/nls/isiri-3342/Makefile | 5 - .../mit/xorg/share/nls/iso8859-1/Makefile | 5 - .../mit/xorg/share/nls/iso8859-10/Makefile | 5 - .../mit/xorg/share/nls/iso8859-11/Makefile | 5 - .../mit/xorg/share/nls/iso8859-13/Makefile | 5 - .../mit/xorg/share/nls/iso8859-14/Makefile | 5 - .../mit/xorg/share/nls/iso8859-15/Makefile | 5 - .../mit/xorg/share/nls/iso8859-2/Makefile | 5 - .../mit/xorg/share/nls/iso8859-3/Makefile | 5 - .../mit/xorg/share/nls/iso8859-4/Makefile | 5 - .../mit/xorg/share/nls/iso8859-5/Makefile | 5 - .../mit/xorg/share/nls/iso8859-6/Makefile | 5 - .../mit/xorg/share/nls/iso8859-7/Makefile | 5 - .../mit/xorg/share/nls/iso8859-8/Makefile | 5 - .../mit/xorg/share/nls/iso8859-9/Makefile | 5 - .../mit/xorg/share/nls/iso8859-9e/Makefile | 5 - external/mit/xorg/share/nls/ja.JIS/Makefile | 5 - external/mit/xorg/share/nls/ja.SJIS/Makefile | 5 - external/mit/xorg/share/nls/ja/Makefile | 5 - .../mit/xorg/share/nls/ja_JP.UTF-8/Makefile | 5 - .../mit/xorg/share/nls/km_KH.UTF-8/Makefile | 5 - external/mit/xorg/share/nls/ko/Makefile | 5 - .../mit/xorg/share/nls/ko_KR.UTF-8/Makefile | 5 - external/mit/xorg/share/nls/koi8-c/Makefile | 5 - external/mit/xorg/share/nls/koi8-r/Makefile | 5 - external/mit/xorg/share/nls/koi8-u/Makefile | 5 - .../xorg/share/nls/microsoft-cp1251/Makefile | 5 - .../xorg/share/nls/microsoft-cp1255/Makefile | 5 - .../xorg/share/nls/microsoft-cp1256/Makefile | 5 - .../mit/xorg/share/nls/mulelao-1/Makefile | 5 - .../mit/xorg/share/nls/nokhchi-1/Makefile | 5 - .../mit/xorg/share/nls/pt_BR.UTF-8/Makefile | 5 - .../mit/xorg/share/nls/ru_RU.UTF-8/Makefile | 5 - .../mit/xorg/share/nls/sr_CS.UTF-8/Makefile | 5 - .../mit/xorg/share/nls/tatar-cyr/Makefile | 5 - .../mit/xorg/share/nls/th_TH.UTF-8/Makefile | 5 - external/mit/xorg/share/nls/th_TH/Makefile | 5 - external/mit/xorg/share/nls/tscii-0/Makefile | 5 - .../mit/xorg/share/nls/vi_VN.tcvn/Makefile | 5 - .../mit/xorg/share/nls/vi_VN.viscii/Makefile | 5 - .../mit/xorg/share/nls/zh_CN.UTF-8/Makefile | 5 - .../mit/xorg/share/nls/zh_CN.gb18030/Makefile | 5 - .../mit/xorg/share/nls/zh_CN.gbk/Makefile | 5 - external/mit/xorg/share/nls/zh_CN/Makefile | 5 - .../mit/xorg/share/nls/zh_HK.UTF-8/Makefile | 5 - .../mit/xorg/share/nls/zh_HK.big5/Makefile | 5 - .../xorg/share/nls/zh_HK.big5hkscs/Makefile | 5 - .../mit/xorg/share/nls/zh_TW.UTF-8/Makefile | 5 - .../mit/xorg/share/nls/zh_TW.big5/Makefile | 5 - external/mit/xorg/share/nls/zh_TW/Makefile | 5 - external/mit/xorg/tools/Makefile | 21 - external/mit/xorg/tools/bdftopcf/Makefile | 36 - .../mit/xorg/tools/bdftopcf/Makefile.bdftopcf | 7 - external/mit/xorg/tools/getlibvers | 29 - external/mit/xorg/tools/makekeys/Makefile | 40 - .../mit/xorg/tools/makekeys/Makefile.makekeys | 11 - .../mit/xorg/tools/makestrs/Makefile.makestrs | 3 - external/mit/xorg/tools/ucs2any/Makefile | 13 - .../mit/xorg/tools/ucs2any/Makefile.ucs2any | 7 - external/mit/xorg/tools/xkbcomp/Makefile | 45 - .../mit/xorg/tools/xkbcomp/Makefile.xkbcomp | 7 - .../mit/xorg/tools/xkbcomp/xkbcomp-KeyBind.c | 756 - .../mit/xorg/tools/xkbcomp/xkbcomp-stubs.c | 184 - .../mit/xorg/tools/xkbcomp/xkbfile-xkbmisc.c | 8 - 631 files changed, 156900 deletions(-) delete mode 100644 external/mit/xorg/Makefile delete mode 100644 external/mit/xorg/bin/Makefile delete mode 100644 external/mit/xorg/bin/Makefile.inc delete mode 100644 external/mit/xorg/bin/appres/Makefile delete mode 100644 external/mit/xorg/bin/bdftopcf/Makefile delete mode 100644 external/mit/xorg/bin/bdftruncate/Makefile delete mode 100644 external/mit/xorg/bin/beforelight/Makefile delete mode 100644 external/mit/xorg/bin/bitmap/Makefile delete mode 100644 external/mit/xorg/bin/bitmap/app-defaults/Makefile delete mode 100644 external/mit/xorg/bin/bitmap/atobm/Makefile delete mode 100644 external/mit/xorg/bin/bitmap/bmtoa/Makefile delete mode 100644 external/mit/xorg/bin/ccmakedep/Makefile delete mode 100644 external/mit/xorg/bin/cleanlinks/Makefile delete mode 100644 external/mit/xorg/bin/cxpm/Makefile delete mode 100644 external/mit/xorg/bin/editres/Makefile delete mode 100644 external/mit/xorg/bin/fc-cache/Makefile delete mode 100644 external/mit/xorg/bin/fc-cat/Makefile delete mode 100644 external/mit/xorg/bin/fc-list/Makefile delete mode 100644 external/mit/xorg/bin/fc-match/Makefile delete mode 100644 external/mit/xorg/bin/fc-pattern/Makefile delete mode 100644 external/mit/xorg/bin/fc-query/Makefile delete mode 100644 external/mit/xorg/bin/fc-scan/Makefile delete mode 100644 external/mit/xorg/bin/fc-validate/Makefile delete mode 100644 external/mit/xorg/bin/fonttosfnt/Makefile delete mode 100644 external/mit/xorg/bin/fslsfonts/Makefile delete mode 100644 external/mit/xorg/bin/fstobdf/Makefile delete mode 100644 external/mit/xorg/bin/glxgears/Makefile delete mode 100644 external/mit/xorg/bin/glxinfo/Makefile delete mode 100644 external/mit/xorg/bin/iceauth/Makefile delete mode 100644 external/mit/xorg/bin/ico/Makefile delete mode 100644 external/mit/xorg/bin/imake/Makefile delete mode 100644 external/mit/xorg/bin/listres/Makefile delete mode 100644 external/mit/xorg/bin/lndir/Makefile delete mode 100644 external/mit/xorg/bin/luit/Makefile delete mode 100644 external/mit/xorg/bin/makedepend/Makefile delete mode 100644 external/mit/xorg/bin/makeg/Makefile delete mode 100644 external/mit/xorg/bin/makestrs/Makefile delete mode 100644 external/mit/xorg/bin/mergelib/Makefile delete mode 100644 external/mit/xorg/bin/mkdirhier/Makefile delete mode 100644 external/mit/xorg/bin/mkfontdir/Makefile delete mode 100644 external/mit/xorg/bin/mkfontscale/Makefile delete mode 100644 external/mit/xorg/bin/mkhtmlindex/Makefile delete mode 100644 external/mit/xorg/bin/oclock/Makefile delete mode 100644 external/mit/xorg/bin/proxymngr/Makefile delete mode 100644 external/mit/xorg/bin/revpath/Makefile delete mode 100644 external/mit/xorg/bin/rgb/Makefile delete mode 100644 external/mit/xorg/bin/rstart/Makefile delete mode 100644 external/mit/xorg/bin/rstart/Makefile.rstart delete mode 100644 external/mit/xorg/bin/rstart/commands/Makefile delete mode 100644 external/mit/xorg/bin/rstart/commands/x11r6/Makefile delete mode 100644 external/mit/xorg/bin/rstart/contexts/Makefile delete mode 100644 external/mit/xorg/bin/sessreg/Makefile delete mode 100644 external/mit/xorg/bin/setxkbmap/Makefile delete mode 100644 external/mit/xorg/bin/showfont/Makefile delete mode 100644 external/mit/xorg/bin/smproxy/Makefile delete mode 100644 external/mit/xorg/bin/ssh-askpass/Makefile delete mode 100644 external/mit/xorg/bin/sxpm/Makefile delete mode 100644 external/mit/xorg/bin/twm/Makefile delete mode 100644 external/mit/xorg/bin/ucs2any/Makefile delete mode 100644 external/mit/xorg/bin/viewres/Makefile delete mode 100644 external/mit/xorg/bin/x11perf/Makefile delete mode 100644 external/mit/xorg/bin/xauth/Makefile delete mode 100644 external/mit/xorg/bin/xbiff/Makefile delete mode 100644 external/mit/xorg/bin/xcalc/Makefile delete mode 100644 external/mit/xorg/bin/xclipboard/Makefile delete mode 100644 external/mit/xorg/bin/xclock/Makefile delete mode 100644 external/mit/xorg/bin/xcmsdb/Makefile delete mode 100644 external/mit/xorg/bin/xconsole/Makefile delete mode 100644 external/mit/xorg/bin/xcutsel/Makefile delete mode 100644 external/mit/xorg/bin/xditview/Makefile delete mode 100644 external/mit/xorg/bin/xdm/Makefile delete mode 100644 external/mit/xorg/bin/xdm/Makefile.xdm delete mode 100644 external/mit/xorg/bin/xdm/chooser/Makefile delete mode 100644 external/mit/xorg/bin/xdm/config/Makefile delete mode 100644 external/mit/xorg/bin/xdm/config/Xresources.cpp delete mode 100644 external/mit/xorg/bin/xdpyinfo/Makefile delete mode 100644 external/mit/xorg/bin/xdriinfo/Makefile delete mode 100644 external/mit/xorg/bin/xedit/Makefile delete mode 100644 external/mit/xorg/bin/xedit/Makefile.inc delete mode 100644 external/mit/xorg/bin/xedit/lisp/Makefile delete mode 100644 external/mit/xorg/bin/xedit/modules/Makefile delete mode 100644 external/mit/xorg/bin/xedit/modules/progmodes/Makefile delete mode 100644 external/mit/xorg/bin/xedit/mp/Makefile delete mode 100644 external/mit/xorg/bin/xedit/re/Makefile delete mode 100644 external/mit/xorg/bin/xedit/xedit/Makefile delete mode 100644 external/mit/xorg/bin/xedit/xedit/Makefile.inc delete mode 100644 external/mit/xorg/bin/xev/Makefile delete mode 100644 external/mit/xorg/bin/xeyes/Makefile delete mode 100644 external/mit/xorg/bin/xf86dga/Makefile delete mode 100644 external/mit/xorg/bin/xfd/Makefile delete mode 100644 external/mit/xorg/bin/xfindproxy/Makefile delete mode 100644 external/mit/xorg/bin/xfontsel/Makefile delete mode 100644 external/mit/xorg/bin/xfs/Makefile delete mode 100644 external/mit/xorg/bin/xfsinfo/Makefile delete mode 100644 external/mit/xorg/bin/xfwp/Makefile delete mode 100644 external/mit/xorg/bin/xgamma/Makefile delete mode 100644 external/mit/xorg/bin/xgc/Makefile delete mode 100644 external/mit/xorg/bin/xhost/Makefile delete mode 100644 external/mit/xorg/bin/xinit/Makefile delete mode 100644 external/mit/xorg/bin/xinput/Makefile delete mode 100644 external/mit/xorg/bin/xkbcomp/Makefile delete mode 100644 external/mit/xorg/bin/xkbcomp/Makefile.common delete mode 100644 external/mit/xorg/bin/xkbevd/Makefile delete mode 100644 external/mit/xorg/bin/xkbprint/Makefile delete mode 100644 external/mit/xorg/bin/xkbutils/Makefile delete mode 100644 external/mit/xorg/bin/xkbutils/Makefile.inc delete mode 100644 external/mit/xorg/bin/xkbutils/Makefile.xkbutils delete mode 100644 external/mit/xorg/bin/xkbutils/xkbbell/Makefile delete mode 100644 external/mit/xorg/bin/xkbutils/xkbvleds/Makefile delete mode 100644 external/mit/xorg/bin/xkbutils/xkbwatch/Makefile delete mode 100644 external/mit/xorg/bin/xkill/Makefile delete mode 100644 external/mit/xorg/bin/xload/Makefile delete mode 100644 external/mit/xorg/bin/xlogo/Makefile delete mode 100644 external/mit/xorg/bin/xlsatoms/Makefile delete mode 100644 external/mit/xorg/bin/xlsclients/Makefile delete mode 100644 external/mit/xorg/bin/xlsfonts/Makefile delete mode 100644 external/mit/xorg/bin/xmag/Makefile delete mode 100644 external/mit/xorg/bin/xman/Makefile delete mode 100644 external/mit/xorg/bin/xmessage/Makefile delete mode 100644 external/mit/xorg/bin/xmh/Makefile delete mode 100644 external/mit/xorg/bin/xmkmf/Makefile delete mode 100644 external/mit/xorg/bin/xmlwf/Makefile delete mode 100644 external/mit/xorg/bin/xmodmap/Makefile delete mode 100644 external/mit/xorg/bin/xmore/Makefile delete mode 100644 external/mit/xorg/bin/xprop/Makefile delete mode 100644 external/mit/xorg/bin/xrandr/Makefile delete mode 100644 external/mit/xorg/bin/xrdb/Makefile delete mode 100644 external/mit/xorg/bin/xrefresh/Makefile delete mode 100644 external/mit/xorg/bin/xset/Makefile delete mode 100644 external/mit/xorg/bin/xsetmode/Makefile delete mode 100644 external/mit/xorg/bin/xsetpointer/Makefile delete mode 100644 external/mit/xorg/bin/xsetroot/Makefile delete mode 100644 external/mit/xorg/bin/xsetwallpaper/Makefile delete mode 100644 external/mit/xorg/bin/xsm/Makefile delete mode 100644 external/mit/xorg/bin/xstdcmap/Makefile delete mode 100644 external/mit/xorg/bin/xterm/Makefile delete mode 100644 external/mit/xorg/bin/xterm/Makefile.inc delete mode 100644 external/mit/xorg/bin/xterm/resize/Makefile delete mode 100644 external/mit/xorg/bin/xterm/uxterm/Makefile delete mode 100644 external/mit/xorg/bin/xtrap/Makefile delete mode 100644 external/mit/xorg/bin/xtrap/Makefile.inc delete mode 100644 external/mit/xorg/bin/xtrap/Makefile.xtrap delete mode 100644 external/mit/xorg/bin/xtrap/xtrapchar/Makefile delete mode 100644 external/mit/xorg/bin/xtrap/xtrapin/Makefile delete mode 100644 external/mit/xorg/bin/xtrap/xtrapinfo/Makefile delete mode 100644 external/mit/xorg/bin/xtrap/xtrapout/Makefile delete mode 100644 external/mit/xorg/bin/xtrap/xtrapproto/Makefile delete mode 100644 external/mit/xorg/bin/xtrap/xtrapreset/Makefile delete mode 100644 external/mit/xorg/bin/xtrap/xtrapstats/Makefile delete mode 100644 external/mit/xorg/bin/xvidtune/Makefile delete mode 100644 external/mit/xorg/bin/xvinfo/Makefile delete mode 100644 external/mit/xorg/bin/xwd/Makefile delete mode 100644 external/mit/xorg/bin/xwininfo/Makefile delete mode 100644 external/mit/xorg/bin/xwud/Makefile delete mode 100644 external/mit/xorg/etc/Makefile delete mode 100644 external/mit/xorg/etc/etc.dreamcast/Makefile.inc delete mode 100644 external/mit/xorg/etc/etc.dreamcast/xorg.conf.jpkbd delete mode 100644 external/mit/xorg/etc/etc.dreamcast/xorg.conf.uskbd delete mode 100644 external/mit/xorg/etc/etc.hpc/Makefile.inc delete mode 100644 external/mit/xorg/etc/etc.hpc/xorg.conf.640x240-jp delete mode 100644 external/mit/xorg/etc/etc.hpc/xorg.conf.640x240-us delete mode 100644 external/mit/xorg/etc/etc.hpc/xorg.conf.640x480-jp delete mode 100644 external/mit/xorg/etc/etc.hpc/xorg.conf.640x480-us delete mode 100644 external/mit/xorg/etc/etc.hpc/xorg.conf.800x600-jp delete mode 100644 external/mit/xorg/etc/etc.hpc/xorg.conf.800x600-us delete mode 100644 external/mit/xorg/etc/etc.hpcarm/Makefile.inc delete mode 100644 external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws003sh delete mode 100644 external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws007sh delete mode 100644 external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws011sh delete mode 100644 external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws020sh delete mode 100644 external/mit/xorg/etc/etc.hpcmips/Makefile.inc delete mode 100644 external/mit/xorg/etc/etc.hpcsh/Makefile.inc delete mode 100644 external/mit/xorg/etc/etc.zaurus/Makefile.inc delete mode 100644 external/mit/xorg/etc/etc.zaurus/xorg.conf.C3x00 delete mode 100644 external/mit/xorg/etc/etc.zaurus/xorg.conf.C7x0 delete mode 100644 external/mit/xorg/include/Makefile delete mode 100644 external/mit/xorg/include/bigreqsproto/Makefile delete mode 100644 external/mit/xorg/include/compositeproto/Makefile delete mode 100644 external/mit/xorg/include/damageproto/Makefile delete mode 100644 external/mit/xorg/include/dri2proto/Makefile delete mode 100644 external/mit/xorg/include/dri3proto/Makefile delete mode 100644 external/mit/xorg/include/evieext/Makefile delete mode 100644 external/mit/xorg/include/fixesproto/Makefile delete mode 100644 external/mit/xorg/include/fontcacheproto/Makefile delete mode 100644 external/mit/xorg/include/fontsproto/Makefile delete mode 100644 external/mit/xorg/include/glproto/Makefile delete mode 100644 external/mit/xorg/include/glproto/internal/Makefile delete mode 100644 external/mit/xorg/include/inputproto/Makefile delete mode 100644 external/mit/xorg/include/kbproto/Makefile delete mode 100644 external/mit/xorg/include/presentproto/Makefile delete mode 100644 external/mit/xorg/include/randrproto/Makefile delete mode 100644 external/mit/xorg/include/recordproto/Makefile delete mode 100644 external/mit/xorg/include/renderproto/Makefile delete mode 100644 external/mit/xorg/include/resourceproto/Makefile delete mode 100644 external/mit/xorg/include/scrnsaverproto/Makefile delete mode 100644 external/mit/xorg/include/trapproto/Makefile delete mode 100644 external/mit/xorg/include/videoproto/Makefile delete mode 100644 external/mit/xorg/include/xbitmaps/Makefile delete mode 100644 external/mit/xorg/include/xcb-proto/Makefile delete mode 100644 external/mit/xorg/include/xcmiscproto/Makefile delete mode 100644 external/mit/xorg/include/xextproto/Makefile delete mode 100644 external/mit/xorg/include/xf86bigfontproto/Makefile delete mode 100644 external/mit/xorg/include/xf86dgaproto/Makefile delete mode 100644 external/mit/xorg/include/xf86driproto/Makefile delete mode 100644 external/mit/xorg/include/xf86miscproto/Makefile delete mode 100644 external/mit/xorg/include/xf86vidmodeproto/Makefile delete mode 100644 external/mit/xorg/include/xineramaproto/Makefile delete mode 100644 external/mit/xorg/include/xproto/Makefile delete mode 100644 external/mit/xorg/include/xproxymanagementprotocol/Makefile delete mode 100644 external/mit/xorg/include/xtrans/Makefile delete mode 100644 external/mit/xorg/lib/Makefile delete mode 100644 external/mit/xorg/lib/Makefile.inc delete mode 100644 external/mit/xorg/lib/asm.mk delete mode 100644 external/mit/xorg/lib/dri/Makefile delete mode 100644 external/mit/xorg/lib/dri7/Makefile delete mode 100644 external/mit/xorg/lib/dri7/dri.mk delete mode 100644 external/mit/xorg/lib/dri7/libglsl7.mk delete mode 100644 external/mit/xorg/lib/dri7/libmesa/Makefile delete mode 100644 external/mit/xorg/lib/dri7/libmesa7.mk delete mode 100644 external/mit/xorg/lib/dri7/r300/Makefile delete mode 100644 external/mit/xorg/lib/driver.mk delete mode 100644 external/mit/xorg/lib/fontconfig/Makefile delete mode 100644 external/mit/xorg/lib/fontconfig/etc/Makefile delete mode 100644 external/mit/xorg/lib/fontconfig/etc/conf.avail/Makefile delete mode 100644 external/mit/xorg/lib/fontconfig/etc/conf.d/Makefile delete mode 100644 external/mit/xorg/lib/fontconfig/etc/fonts.conf delete mode 100644 external/mit/xorg/lib/fontconfig/fontconfig/Makefile delete mode 100644 external/mit/xorg/lib/fontconfig/src/Makefile delete mode 100644 external/mit/xorg/lib/fontconfig/src/Makefile.fcarch delete mode 100644 external/mit/xorg/lib/fontconfig/src/shlib_version delete mode 100644 external/mit/xorg/lib/freetype/Makefile delete mode 100644 external/mit/xorg/lib/freetype/freetype/Makefile delete mode 100644 external/mit/xorg/lib/freetype/freetype/cache/Makefile delete mode 100644 external/mit/xorg/lib/freetype/freetype/config/Makefile delete mode 100644 external/mit/xorg/lib/freetype/freetype2.pc.in delete mode 100644 external/mit/xorg/lib/freetype/shlib_version delete mode 100644 external/mit/xorg/lib/gallium/Makefile delete mode 100644 external/mit/xorg/lib/libFS/Makefile delete mode 100644 external/mit/xorg/lib/libFS/shlib_version delete mode 100644 external/mit/xorg/lib/libGL/Makefile delete mode 100644 external/mit/xorg/lib/libGL/internal/Makefile delete mode 100644 external/mit/xorg/lib/libGL/mesa-ver.mk delete mode 100644 external/mit/xorg/lib/libGL/shlib_version delete mode 100644 external/mit/xorg/lib/libGLU/Makefile delete mode 100644 external/mit/xorg/lib/libGLU/shlib_version delete mode 100644 external/mit/xorg/lib/libGLw/Makefile delete mode 100644 external/mit/xorg/lib/libGLw/shlib_version delete mode 100644 external/mit/xorg/lib/libI810XvMC/Makefile delete mode 100644 external/mit/xorg/lib/libI810XvMC/shlib_version delete mode 100644 external/mit/xorg/lib/libICE/Makefile delete mode 100644 external/mit/xorg/lib/libICE/shlib_version delete mode 100644 external/mit/xorg/lib/libIntelXvMC/Makefile delete mode 100644 external/mit/xorg/lib/libIntelXvMC/shlib_version delete mode 100644 external/mit/xorg/lib/libSM/Makefile delete mode 100644 external/mit/xorg/lib/libSM/shlib_version delete mode 100644 external/mit/xorg/lib/libX11/Makefile delete mode 100644 external/mit/xorg/lib/libX11/Makefile.libx11 delete mode 100644 external/mit/xorg/lib/libX11/Makefile.ximcp delete mode 100644 external/mit/xorg/lib/libX11/Makefile.xlcDef delete mode 100644 external/mit/xorg/lib/libX11/Makefile.xlcUTF8Load delete mode 100644 external/mit/xorg/lib/libX11/Makefile.xlibi18n delete mode 100644 external/mit/xorg/lib/libX11/Makefile.xomGeneric delete mode 100644 external/mit/xorg/lib/libX11/dynamic/Makefile delete mode 100644 external/mit/xorg/lib/libX11/dynamic/shlib_version delete mode 100644 external/mit/xorg/lib/libX11/libX11-xcb/Makefile delete mode 100644 external/mit/xorg/lib/libX11/libX11-xcb/shlib_version delete mode 100644 external/mit/xorg/lib/libX11/static/Makefile delete mode 100644 external/mit/xorg/lib/libX11/ximcp/Makefile delete mode 100644 external/mit/xorg/lib/libX11/xlcDef/Makefile delete mode 100644 external/mit/xorg/lib/libX11/xlcUTF8Load/Makefile delete mode 100644 external/mit/xorg/lib/libX11/xlibi18n/Makefile delete mode 100644 external/mit/xorg/lib/libX11/xomGeneric/Makefile delete mode 100644 external/mit/xorg/lib/libXScrnSaver/Makefile delete mode 100644 external/mit/xorg/lib/libXScrnSaver/shlib_version delete mode 100644 external/mit/xorg/lib/libXTrap/Makefile delete mode 100644 external/mit/xorg/lib/libXTrap/shlib_version delete mode 100644 external/mit/xorg/lib/libXau/Makefile delete mode 100644 external/mit/xorg/lib/libXau/shlib_version delete mode 100644 external/mit/xorg/lib/libXaw/Makefile delete mode 100644 external/mit/xorg/lib/libXaw/shlib_version delete mode 100644 external/mit/xorg/lib/libXaw6/Makefile delete mode 100644 external/mit/xorg/lib/libXaw6/shlib_version delete mode 100644 external/mit/xorg/lib/libXcomposite/Makefile delete mode 100644 external/mit/xorg/lib/libXcomposite/shlib_version delete mode 100644 external/mit/xorg/lib/libXcursor/Makefile delete mode 100644 external/mit/xorg/lib/libXcursor/shlib_version delete mode 100644 external/mit/xorg/lib/libXdamage/Makefile delete mode 100644 external/mit/xorg/lib/libXdamage/shlib_version delete mode 100644 external/mit/xorg/lib/libXdmGreet/Makefile delete mode 100644 external/mit/xorg/lib/libXdmGreet/shlib_version delete mode 100644 external/mit/xorg/lib/libXdmcp/Makefile delete mode 100644 external/mit/xorg/lib/libXdmcp/shlib_version delete mode 100644 external/mit/xorg/lib/libXevie/Makefile delete mode 100644 external/mit/xorg/lib/libXevie/shlib_version delete mode 100644 external/mit/xorg/lib/libXext/Makefile delete mode 100644 external/mit/xorg/lib/libXext/shlib_version delete mode 100644 external/mit/xorg/lib/libXfixes/Makefile delete mode 100644 external/mit/xorg/lib/libXfixes/shlib_version delete mode 100644 external/mit/xorg/lib/libXfont/Makefile delete mode 100644 external/mit/xorg/lib/libXfont/shlib_version delete mode 100644 external/mit/xorg/lib/libXfontcache/Makefile delete mode 100644 external/mit/xorg/lib/libXfontcache/shlib_version delete mode 100644 external/mit/xorg/lib/libXft/Makefile delete mode 100644 external/mit/xorg/lib/libXft/shlib_version delete mode 100644 external/mit/xorg/lib/libXi/Makefile delete mode 100644 external/mit/xorg/lib/libXi/shlib_version delete mode 100644 external/mit/xorg/lib/libXinerama/Makefile delete mode 100644 external/mit/xorg/lib/libXinerama/shlib_version delete mode 100644 external/mit/xorg/lib/libXmu/Makefile delete mode 100644 external/mit/xorg/lib/libXmu/shlib_version delete mode 100644 external/mit/xorg/lib/libXmuu/Makefile delete mode 100644 external/mit/xorg/lib/libXmuu/shlib_version delete mode 100644 external/mit/xorg/lib/libXpm/Makefile delete mode 100644 external/mit/xorg/lib/libXpm/shlib_version delete mode 100644 external/mit/xorg/lib/libXpresent/Makefile delete mode 100644 external/mit/xorg/lib/libXpresent/shlib_version delete mode 100644 external/mit/xorg/lib/libXrandr/Makefile delete mode 100644 external/mit/xorg/lib/libXrandr/shlib_version delete mode 100644 external/mit/xorg/lib/libXrender/Makefile delete mode 100644 external/mit/xorg/lib/libXrender/shlib_version delete mode 100644 external/mit/xorg/lib/libXres/Makefile delete mode 100644 external/mit/xorg/lib/libXres/shlib_version delete mode 100644 external/mit/xorg/lib/libXt/Makefile delete mode 100644 external/mit/xorg/lib/libXt/shlib_version delete mode 100644 external/mit/xorg/lib/libXtst/Makefile delete mode 100644 external/mit/xorg/lib/libXtst/shlib_version delete mode 100644 external/mit/xorg/lib/libXv/Makefile delete mode 100644 external/mit/xorg/lib/libXv/shlib_version delete mode 100644 external/mit/xorg/lib/libXvMC/Makefile delete mode 100644 external/mit/xorg/lib/libXvMC/shlib_version delete mode 100644 external/mit/xorg/lib/libXvMCW/Makefile delete mode 100644 external/mit/xorg/lib/libXvMCW/shlib_version delete mode 100644 external/mit/xorg/lib/libXxf86dga/Makefile delete mode 100644 external/mit/xorg/lib/libXxf86dga/shlib_version delete mode 100644 external/mit/xorg/lib/libXxf86misc/Makefile delete mode 100644 external/mit/xorg/lib/libXxf86misc/shlib_version delete mode 100644 external/mit/xorg/lib/libXxf86vm/Makefile delete mode 100644 external/mit/xorg/lib/libXxf86vm/shlib_version delete mode 100644 external/mit/xorg/lib/libchromeXvMC/Makefile delete mode 100644 external/mit/xorg/lib/libchromeXvMC/shlib_version delete mode 100644 external/mit/xorg/lib/libchromeXvMCPro/Makefile delete mode 100644 external/mit/xorg/lib/libchromeXvMCPro/shlib_version delete mode 100644 external/mit/xorg/lib/libdrm/Makefile delete mode 100644 external/mit/xorg/lib/libdrm/Makefile.defines delete mode 100644 external/mit/xorg/lib/libdrm/drm/Makefile delete mode 100644 external/mit/xorg/lib/libdrm/kms/Makefile delete mode 100644 external/mit/xorg/lib/libdrm/shlib_version delete mode 100644 external/mit/xorg/lib/libdrm_intel/Makefile delete mode 100644 external/mit/xorg/lib/libdrm_intel/shlib_version delete mode 100644 external/mit/xorg/lib/libdrm_radeon/Makefile delete mode 100644 external/mit/xorg/lib/libdrm_radeon/shlib_version delete mode 100644 external/mit/xorg/lib/libfontenc/Makefile delete mode 100644 external/mit/xorg/lib/libfontenc/shlib_version delete mode 100644 external/mit/xorg/lib/libgbm/Makefile delete mode 100644 external/mit/xorg/lib/libgbm/shlib_version delete mode 100644 external/mit/xorg/lib/libglapi/Makefile delete mode 100644 external/mit/xorg/lib/libglsl.mk delete mode 100644 external/mit/xorg/lib/libglut/Makefile delete mode 100644 external/mit/xorg/lib/libglut/shlib_version delete mode 100644 external/mit/xorg/lib/libloader.mk delete mode 100644 external/mit/xorg/lib/libmesa.mk delete mode 100644 external/mit/xorg/lib/libpciaccess/Makefile delete mode 100644 external/mit/xorg/lib/libpciaccess/shlib_version delete mode 100644 external/mit/xorg/lib/libpthread-stubs/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/bigreq/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/composite/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/damage/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/dpms/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/dri2/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/dri3/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/files/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs delete mode 100644 external/mit/xorg/lib/libxcb/files/bigreq.c delete mode 100644 external/mit/xorg/lib/libxcb/files/bigreq.h delete mode 100644 external/mit/xorg/lib/libxcb/files/composite.c delete mode 100644 external/mit/xorg/lib/libxcb/files/composite.h delete mode 100644 external/mit/xorg/lib/libxcb/files/config.h delete mode 100644 external/mit/xorg/lib/libxcb/files/damage.c delete mode 100644 external/mit/xorg/lib/libxcb/files/damage.h delete mode 100644 external/mit/xorg/lib/libxcb/files/dpms.c delete mode 100644 external/mit/xorg/lib/libxcb/files/dpms.h delete mode 100644 external/mit/xorg/lib/libxcb/files/dri2.c delete mode 100644 external/mit/xorg/lib/libxcb/files/dri2.h delete mode 100644 external/mit/xorg/lib/libxcb/files/dri3.c delete mode 100644 external/mit/xorg/lib/libxcb/files/dri3.h delete mode 100644 external/mit/xorg/lib/libxcb/files/glx.c delete mode 100644 external/mit/xorg/lib/libxcb/files/glx.h delete mode 100644 external/mit/xorg/lib/libxcb/files/present.c delete mode 100644 external/mit/xorg/lib/libxcb/files/present.h delete mode 100644 external/mit/xorg/lib/libxcb/files/randr.c delete mode 100644 external/mit/xorg/lib/libxcb/files/randr.h delete mode 100644 external/mit/xorg/lib/libxcb/files/record.c delete mode 100644 external/mit/xorg/lib/libxcb/files/record.h delete mode 100644 external/mit/xorg/lib/libxcb/files/render.c delete mode 100644 external/mit/xorg/lib/libxcb/files/render.h delete mode 100644 external/mit/xorg/lib/libxcb/files/res.c delete mode 100644 external/mit/xorg/lib/libxcb/files/res.h delete mode 100644 external/mit/xorg/lib/libxcb/files/screensaver.c delete mode 100644 external/mit/xorg/lib/libxcb/files/screensaver.h delete mode 100644 external/mit/xorg/lib/libxcb/files/shape.c delete mode 100644 external/mit/xorg/lib/libxcb/files/shape.h delete mode 100644 external/mit/xorg/lib/libxcb/files/shm.c delete mode 100644 external/mit/xorg/lib/libxcb/files/shm.h delete mode 100644 external/mit/xorg/lib/libxcb/files/sync.c delete mode 100644 external/mit/xorg/lib/libxcb/files/sync.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xc_misc.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xc_misc.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xevie.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xevie.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xf86dri.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xf86dri.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xfixes.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xfixes.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xinerama.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xinerama.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xinput.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xinput.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xkb.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xkb.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xprint.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xprint.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xproto.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xproto.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xselinux.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xselinux.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xtest.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xtest.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xv.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xv.h delete mode 100644 external/mit/xorg/lib/libxcb/files/xvmc.c delete mode 100644 external/mit/xorg/lib/libxcb/files/xvmc.h delete mode 100644 external/mit/xorg/lib/libxcb/glx/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/libxcb/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/libxcb/shlib_version delete mode 100644 external/mit/xorg/lib/libxcb/present/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/randr/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/record/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/render/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/res/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/screensaver/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/shape/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/shm/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/sync/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/xc_misc/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/xcb.mk delete mode 100644 external/mit/xorg/lib/libxcb/xevie/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/xf86dri/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/xfixes/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/xinerama/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/xkb/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/xproto/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/xtest/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/xv/Makefile delete mode 100644 external/mit/xorg/lib/libxcb/xvmc/Makefile delete mode 100644 external/mit/xorg/lib/libxkbfile/Makefile delete mode 100644 external/mit/xorg/lib/libxkbfile/shlib_version delete mode 100644 external/mit/xorg/lib/libxkbui/Makefile delete mode 100644 external/mit/xorg/lib/libxkbui/shlib_version delete mode 100644 external/mit/xorg/lib/pixman/Makefile delete mode 100644 external/mit/xorg/lib/pixman/shlib_version delete mode 100644 external/mit/xorg/lib/xcb-util/Makefile delete mode 100644 external/mit/xorg/lib/xcb-util/atom/Makefile delete mode 100644 external/mit/xorg/lib/xcb-util/atom/atoms.c delete mode 100644 external/mit/xorg/lib/xcb-util/aux/Makefile delete mode 100644 external/mit/xorg/lib/xcb-util/event/Makefile delete mode 100644 external/mit/xorg/lib/xcb-util/icccm/Makefile delete mode 100644 external/mit/xorg/lib/xcb-util/image/Makefile delete mode 100644 external/mit/xorg/lib/xcb-util/keysyms/Makefile delete mode 100644 external/mit/xorg/lib/xcb-util/property/Makefile delete mode 100644 external/mit/xorg/lib/xcb-util/render-util/Makefile delete mode 100644 external/mit/xorg/lib/xcb-util/reply/Makefile delete mode 100644 external/mit/xorg/lib/xcb-util/xcb-util.mk delete mode 100644 external/mit/xorg/lib/xkeyboard-config/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/Makefile.xkbdata delete mode 100644 external/mit/xorg/lib/xkeyboard-config/compat/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/geometry/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/geometry/digital_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/geometry/sgi_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/keycodes/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/keycodes/digital_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/keycodes/sgi_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/rules/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/rules/base delete mode 100644 external/mit/xorg/lib/xkeyboard-config/rules/base.lst delete mode 100644 external/mit/xorg/lib/xkeyboard-config/rules/evdev delete mode 100644 external/mit/xorg/lib/xkeyboard-config/rules/evdev.lst delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/digital_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/fujitsu_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/hp_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/macintosh_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/nec_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/nokia_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/sgi_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/sharp_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/sony_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/sun_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/symbols/xfree68_vndr/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/torture/Makefile delete mode 100644 external/mit/xorg/lib/xkeyboard-config/types/Makefile delete mode 100644 external/mit/xorg/share/Makefile delete mode 100644 external/mit/xorg/share/cf/Makefile delete mode 100644 external/mit/xorg/share/cf/date.def delete mode 100644 external/mit/xorg/share/cf/host.def delete mode 100644 external/mit/xorg/share/cf/xorgsite.def delete mode 100644 external/mit/xorg/share/fonts/100dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/100dpi/font-adobe-100dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/100dpi/font-adobe-symbol-100dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/100dpi/font-adobe-utopia-100dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/100dpi/font-bh-100dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/100dpi/font-bh-lucidatypewriter-100dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/100dpi/font-bitstream-100dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/75dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/75dpi/font-adobe-75dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/75dpi/font-adobe-symbol-75dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/75dpi/font-adobe-utopia-75dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/75dpi/font-bh-75dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/75dpi/font-bh-lucidatypewriter-75dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/75dpi/font-bitstream-75dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/Makefile delete mode 100644 external/mit/xorg/share/fonts/Makefile.bdf delete mode 100644 external/mit/xorg/share/fonts/Makefile.dpi delete mode 100644 external/mit/xorg/share/fonts/Makefile.fccache delete mode 100644 external/mit/xorg/share/fonts/Makefile.font delete mode 100644 external/mit/xorg/share/fonts/Makefile.fontdir delete mode 100644 external/mit/xorg/share/fonts/Makefile.mkfontscale delete mode 100644 external/mit/xorg/share/fonts/TTF/Makefile delete mode 100644 external/mit/xorg/share/fonts/TTF/font-bh-ttf/Makefile delete mode 100644 external/mit/xorg/share/fonts/TTF/ttf-bitstream-vera/Makefile delete mode 100644 external/mit/xorg/share/fonts/Type1/Makefile delete mode 100644 external/mit/xorg/share/fonts/Type1/font-adobe-utopia-type1/Makefile delete mode 100644 external/mit/xorg/share/fonts/Type1/font-bh-type1/Makefile delete mode 100644 external/mit/xorg/share/fonts/Type1/font-bitstream-type1/Makefile delete mode 100644 external/mit/xorg/share/fonts/Type1/font-ibm-type1/Makefile delete mode 100644 external/mit/xorg/share/fonts/encodings/Makefile delete mode 100644 external/mit/xorg/share/fonts/encodings/Makefile.enc delete mode 100644 external/mit/xorg/share/fonts/encodings/large/Makefile delete mode 100644 external/mit/xorg/share/fonts/font-alias/100dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/font-alias/75dpi/Makefile delete mode 100644 external/mit/xorg/share/fonts/font-alias/Makefile delete mode 100644 external/mit/xorg/share/fonts/font-alias/Makefile.alias delete mode 100644 external/mit/xorg/share/fonts/font-alias/cyrillic/Makefile delete mode 100644 external/mit/xorg/share/fonts/font-alias/misc/Makefile delete mode 100644 external/mit/xorg/share/fonts/font-util/Makefile delete mode 100644 external/mit/xorg/share/fonts/misc/Makefile delete mode 100644 external/mit/xorg/share/fonts/misc/font-cursor-misc/Makefile delete mode 100644 external/mit/xorg/share/fonts/misc/font-daewoo-misc/Makefile delete mode 100644 external/mit/xorg/share/fonts/misc/font-dec-misc/Makefile delete mode 100644 external/mit/xorg/share/fonts/misc/font-isas-misc/Makefile delete mode 100644 external/mit/xorg/share/fonts/misc/font-jis-misc/Makefile delete mode 100644 external/mit/xorg/share/fonts/misc/font-misc-misc/Makefile delete mode 100644 external/mit/xorg/share/fonts/misc/font-mutt-misc/Makefile delete mode 100644 external/mit/xorg/share/fonts/misc/font-sony-misc/Makefile delete mode 100644 external/mit/xorg/share/man/Makefile delete mode 100644 external/mit/xorg/share/man/man7/Makefile delete mode 100644 external/mit/xorg/share/nls/C/Makefile delete mode 100644 external/mit/xorg/share/nls/Makefile delete mode 100644 external/mit/xorg/share/nls/Makefile.nls delete mode 100644 external/mit/xorg/share/nls/am_ET.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/armscii-8/Makefile delete mode 100644 external/mit/xorg/share/nls/el_GR.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/en_US.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/georgian-academy/Makefile delete mode 100644 external/mit/xorg/share/nls/georgian-ps/Makefile delete mode 100644 external/mit/xorg/share/nls/ibm-cp1133/Makefile delete mode 100644 external/mit/xorg/share/nls/iscii-dev/Makefile delete mode 100644 external/mit/xorg/share/nls/isiri-3342/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-1/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-10/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-11/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-13/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-14/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-15/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-2/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-3/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-4/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-5/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-6/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-7/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-8/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-9/Makefile delete mode 100644 external/mit/xorg/share/nls/iso8859-9e/Makefile delete mode 100644 external/mit/xorg/share/nls/ja.JIS/Makefile delete mode 100644 external/mit/xorg/share/nls/ja.SJIS/Makefile delete mode 100644 external/mit/xorg/share/nls/ja/Makefile delete mode 100644 external/mit/xorg/share/nls/ja_JP.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/km_KH.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/ko/Makefile delete mode 100644 external/mit/xorg/share/nls/ko_KR.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/koi8-c/Makefile delete mode 100644 external/mit/xorg/share/nls/koi8-r/Makefile delete mode 100644 external/mit/xorg/share/nls/koi8-u/Makefile delete mode 100644 external/mit/xorg/share/nls/microsoft-cp1251/Makefile delete mode 100644 external/mit/xorg/share/nls/microsoft-cp1255/Makefile delete mode 100644 external/mit/xorg/share/nls/microsoft-cp1256/Makefile delete mode 100644 external/mit/xorg/share/nls/mulelao-1/Makefile delete mode 100644 external/mit/xorg/share/nls/nokhchi-1/Makefile delete mode 100644 external/mit/xorg/share/nls/pt_BR.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/ru_RU.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/sr_CS.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/tatar-cyr/Makefile delete mode 100644 external/mit/xorg/share/nls/th_TH.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/th_TH/Makefile delete mode 100644 external/mit/xorg/share/nls/tscii-0/Makefile delete mode 100644 external/mit/xorg/share/nls/vi_VN.tcvn/Makefile delete mode 100644 external/mit/xorg/share/nls/vi_VN.viscii/Makefile delete mode 100644 external/mit/xorg/share/nls/zh_CN.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/zh_CN.gb18030/Makefile delete mode 100644 external/mit/xorg/share/nls/zh_CN.gbk/Makefile delete mode 100644 external/mit/xorg/share/nls/zh_CN/Makefile delete mode 100644 external/mit/xorg/share/nls/zh_HK.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/zh_HK.big5/Makefile delete mode 100644 external/mit/xorg/share/nls/zh_HK.big5hkscs/Makefile delete mode 100644 external/mit/xorg/share/nls/zh_TW.UTF-8/Makefile delete mode 100644 external/mit/xorg/share/nls/zh_TW.big5/Makefile delete mode 100644 external/mit/xorg/share/nls/zh_TW/Makefile delete mode 100644 external/mit/xorg/tools/Makefile delete mode 100644 external/mit/xorg/tools/bdftopcf/Makefile delete mode 100644 external/mit/xorg/tools/bdftopcf/Makefile.bdftopcf delete mode 100755 external/mit/xorg/tools/getlibvers delete mode 100644 external/mit/xorg/tools/makekeys/Makefile delete mode 100644 external/mit/xorg/tools/makekeys/Makefile.makekeys delete mode 100644 external/mit/xorg/tools/makestrs/Makefile.makestrs delete mode 100644 external/mit/xorg/tools/ucs2any/Makefile delete mode 100644 external/mit/xorg/tools/ucs2any/Makefile.ucs2any delete mode 100644 external/mit/xorg/tools/xkbcomp/Makefile delete mode 100644 external/mit/xorg/tools/xkbcomp/Makefile.xkbcomp delete mode 100644 external/mit/xorg/tools/xkbcomp/xkbcomp-KeyBind.c delete mode 100644 external/mit/xorg/tools/xkbcomp/xkbcomp-stubs.c delete mode 100644 external/mit/xorg/tools/xkbcomp/xkbfile-xkbmisc.c diff --git a/external/mit/xorg/Makefile b/external/mit/xorg/Makefile deleted file mode 100644 index 09153e211..000000000 --- a/external/mit/xorg/Makefile +++ /dev/null @@ -1,86 +0,0 @@ -# $NetBSD: Makefile,v 1.8 2010/11/12 17:05:48 tsutsui Exp $ - -# Top level Makefile to cross build xorg inside the NetBSD tree. - -.include - -SUBDIR= tools .WAIT include .WAIT lib .WAIT bin share server etc - -.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR) -BUILDTARGETS+= cleandir -.endif -.if ${MKOBJDIRS} != "no" -BUILDTARGETS+= obj -.endif -.if !defined(NOINCLUDES) -BUILDTARGETS+= includes -.endif -BUILDTARGETS+= do-tools -BUILDTARGETS+= do-lib -BUILDTARGETS+= do-build - -.ORDER: ${BUILDTARGETS} - -START_TIME!= date - -build: check_X11SRCDIR - @echo "X11 build started at: ${START_TIME}" -.for tgt in ${BUILDTARGETS} - ${MAKEDIRTARGET} . ${tgt} -.endfor - @echo "X11 build started at: ${START_TIME}" - @printf "X11 build finished at: " && date - -do-build: -.for targ in dependall install - ${MAKEDIRTARGET} . ${targ} -.endfor - -.for dir in tools lib -do-${dir:S/\//-/g}: -. for targ in dependall install - ${MAKEDIRTARGET} ${dir} ${targ} -. endfor -.endfor - -afterinstall: .PHONY -.if !defined(__MINIX) -.if ${MKMAN} != "no" - ${MAKEDIRTARGET} ${NETBSDSRCDIR}/share/man makedb \ - WHATISDBDIR=${X11MANDIR} -.endif -.endif # !defined(__MINIX) - - -DISTRIBTARGETS= \ - bin/proxymngr \ - bin/twm \ - bin/xdm/config \ - bin/xfs \ - bin/xinit \ - bin/xsm \ - etc \ - lib/fontconfig/etc \ - lib/fontconfig/etc/conf.avail \ - lib/fontconfig/etc/conf.d - -distribution: check_X11SRCDIR -.for tgt in ${DISTRIBTARGETS} - ${MAKEDIRTARGET} ${tgt} configinstall -.endfor - - -check_X11SRCDIR: .PHONY .NOTMAIN -.if !defined(X11SRCDIR) - @echo - @echo "ERROR: setenv X11SRCDIR before doing that!" - @false -.elif !exists(${X11SRCDIR.X11}) - @echo - @echo "ERROR: X11SRCDIR.X11 \`${X11SRCDIR.X11}' does not exist" - @false -.else - @true -.endif - -.include diff --git a/external/mit/xorg/bin/Makefile b/external/mit/xorg/bin/Makefile deleted file mode 100644 index 389979939..000000000 --- a/external/mit/xorg/bin/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# $NetBSD: Makefile,v 1.13 2013/06/03 20:23:39 mrg Exp $ - -SUBDIR= appres bdftopcf bdftruncate beforelight bitmap ccmakedep \ - cleanlinks cxpm editres \ - fc-cache fc-cat fc-list fc-match fc-pattern fc-query fc-scan \ - fc-validate \ - fonttosfnt fslsfonts fstobdf glxgears glxinfo \ - iceauth ico imake listres lndir luit makedepend \ - makeg makestrs mergelib mkdirhier mkfontdir \ - mkfontscale mkhtmlindex oclock proxymngr revpath \ - rgb setxkbmap smproxy sxpm \ - twm ucs2any viewres x11perf xauth xbiff xcalc \ - xclipboard xclock xcmsdb xconsole xcutsel xditview xdm \ - xdpyinfo xedit xev xeyes xf86dga xfd xfindproxy xfontsel \ - xfs xfsinfo xfwp xgamma xgc xhost xinit xinput xkbcomp \ - xkbevd xkbprint xkbutils xkill xload xlogo xlsatoms xlsclients \ - xlsfonts xmag xman xmessage xmh xmkmf xmlwf xmodmap xmore \ - xprop xrandr xrdb xrefresh xset xsetmode xsetpointer \ - xsetroot xsm xstdcmap xterm xtrap xvidtune \ - xvinfo xwd xwininfo xwud xdriinfo sessreg - -SUBDIR+=ssh-askpass -SUBDIR+=xsetwallpaper - -# bring back from xfree: -# lndir - -.include diff --git a/external/mit/xorg/bin/Makefile.inc b/external/mit/xorg/bin/Makefile.inc deleted file mode 100644 index 308d7b9c3..000000000 --- a/external/mit/xorg/bin/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -#__MINIX -.include "../Makefile.inc" - diff --git a/external/mit/xorg/bin/appres/Makefile b/external/mit/xorg/bin/appres/Makefile deleted file mode 100644 index 8a303035a..000000000 --- a/external/mit/xorg/bin/appres/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2015/07/20 23:50:22 mrg Exp $ - -.include - -PROG= appres - -LDADD+= -lXt -lSM -lICE -lXext -lX11 -lxcb -lXdmcp -lXau -DPADD+= ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} ${LIBXCB} ${LIBXDMCP} ${LIBXAU} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/bdftopcf/Makefile b/external/mit/xorg/bin/bdftopcf/Makefile deleted file mode 100644 index 41dabcd23..000000000 --- a/external/mit/xorg/bin/bdftopcf/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/07/20 23:50:22 mrg Exp $ - -.include - -PROG= bdftopcf - -LDADD+= -lXfont -lfontenc -lfreetype -lm -lz -lbz2 -DPADD+= ${LIBXFONT} ${LIBFONTENC} ${LIBFREETYPE} ${LIBM} ${LIBZ} ${LIBBZ2} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/bdftruncate/Makefile b/external/mit/xorg/bin/bdftruncate/Makefile deleted file mode 100644 index 8cf3f00f0..000000000 --- a/external/mit/xorg/bin/bdftruncate/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/11/21 01:25:32 mrg Exp $ - -.include - -PROG= bdftruncate - -.PATH: ${X11SRCDIR.font-util} ${X11SRCDIR.font-util}/man - -.include -.include diff --git a/external/mit/xorg/bin/beforelight/Makefile b/external/mit/xorg/bin/beforelight/Makefile deleted file mode 100644 index 3f105f2f1..000000000 --- a/external/mit/xorg/bin/beforelight/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 05:24:49 mrg Exp $ - -.include - -PROG= beforelight -SRCS= b4light - -APPDEFS=Beforelight - -LDADD+= -lXss -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXSS} ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.beforelight} ${X11SRCDIR.beforelight}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/bitmap/Makefile b/external/mit/xorg/bin/bitmap/Makefile deleted file mode 100644 index 677c1218c..000000000 --- a/external/mit/xorg/bin/bitmap/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2013/05/31 09:14:18 mrg Exp $ - -.include - -PROG= bitmap -SRCS= BitEdit.c CutPaste.c Graphics.c ReqMach.c Bitmap.c Dialog.c Handlers.c - -.PATH: ${X11SRCDIR.bitmap}/man -MLINKS= bitmap.1 bmtoa.1 bitmap.1 atobm.1 - -FILES= Dashes Down Excl FlipHoriz FlipVert Fold Left Right RotateLeft \ - RotateRight Stipple Term Up -FILESDIR=${X11INCDIR}/X11/bitmaps - -CPPFLAGS+= -DHAVE_MKSTEMP -DHAVE_LRINT - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBM} - -SUBDIR= bmtoa atobm app-defaults - -.PATH: ${X11SRCDIR.bitmap} - -CWARNFLAGS.clang+= -Wno-format - -.include -.include -.include diff --git a/external/mit/xorg/bin/bitmap/app-defaults/Makefile b/external/mit/xorg/bin/bitmap/app-defaults/Makefile deleted file mode 100644 index 1442dc44c..000000000 --- a/external/mit/xorg/bin/bitmap/app-defaults/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/11/21 02:34:15 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.bitmap}/app-defaults -APPDEFS=Bitmap Bitmap-color - -.include -.include diff --git a/external/mit/xorg/bin/bitmap/atobm/Makefile b/external/mit/xorg/bin/bitmap/atobm/Makefile deleted file mode 100644 index b23bec521..000000000 --- a/external/mit/xorg/bin/bitmap/atobm/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -NOMAN= 1 - -.include - -PROG= atobm - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.bitmap} - -.include -.include diff --git a/external/mit/xorg/bin/bitmap/bmtoa/Makefile b/external/mit/xorg/bin/bitmap/bmtoa/Makefile deleted file mode 100644 index 5c39084d7..000000000 --- a/external/mit/xorg/bin/bitmap/bmtoa/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -NOMAN= 1 - -.include - -PROG= bmtoa - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.bitmap} - -.include -.include diff --git a/external/mit/xorg/bin/ccmakedep/Makefile b/external/mit/xorg/bin/ccmakedep/Makefile deleted file mode 100644 index f5660f5b8..000000000 --- a/external/mit/xorg/bin/ccmakedep/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -CPPSCRIPTS= ccmakedep -CPPSCRIPTFLAGS= -DPREPROC='"gcc -E -traditional"' -SCRIPTS= ${CPPSCRIPTS} -MAN= ccmakedep.1 - -BUILDSYMLINKS= mdepend.cpp ccmakedep.cpp - -.PATH: ${X11SRCDIR.imake} - -.include -.include diff --git a/external/mit/xorg/bin/cleanlinks/Makefile b/external/mit/xorg/bin/cleanlinks/Makefile deleted file mode 100644 index 3496bcff7..000000000 --- a/external/mit/xorg/bin/cleanlinks/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -SCRIPTS=cleanlinks -MAN= cleanlinks.1 - -.PATH: ${X11SRCDIR.imake} - -.include -.include diff --git a/external/mit/xorg/bin/cxpm/Makefile b/external/mit/xorg/bin/cxpm/Makefile deleted file mode 100644 index 3438119da..000000000 --- a/external/mit/xorg/bin/cxpm/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2013/05/31 01:41:08 mrg Exp $ - -.include - -PROG= cxpm - -CPPFLAGS+= -I${X11SRCDIR.Xpm}/src -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 - -LDADD+= -lXpm -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXPM} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.Xpm}/${PROG} -.PATH: ${X11SRCDIR.Xpm}/man - -.include -.include diff --git a/external/mit/xorg/bin/editres/Makefile b/external/mit/xorg/bin/editres/Makefile deleted file mode 100644 index 3c65f3a6c..000000000 --- a/external/mit/xorg/bin/editres/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 05:24:49 mrg Exp $ - -.include - -PROG= editres -SRCS= actions.c comm.c editres.c geometry.c handler.c setvalues.c \ - svpopup.c utils.c widgets.c wtree.c - -APPDEFS=Editres.ad Editres-color.ad - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -CWARNFLAGS.clang+= -Wno-format - -.include -.include diff --git a/external/mit/xorg/bin/fc-cache/Makefile b/external/mit/xorg/bin/fc-cache/Makefile deleted file mode 100644 index 1399fb9f7..000000000 --- a/external/mit/xorg/bin/fc-cache/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/06/03 20:23:39 mrg Exp $ - -.include - -PROG= fc-cache - -CPPFLAGS+= -I${X11SRCDIR.fontconfig} -I. -CPPFLAGS+= -DHAVE_CONFIG_H -I${X11SRCDIR.fontconfig}/../include - -LDADD+= -lfontconfig -lfreetype -lexpat -DPADD+= ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} - -.PATH: ${X11SRCDIR.fontconfig}/${PROG} - -.include "../../lib/fontconfig/src/Makefile.fcarch" - -.include -.include diff --git a/external/mit/xorg/bin/fc-cat/Makefile b/external/mit/xorg/bin/fc-cat/Makefile deleted file mode 100644 index f8687e08b..000000000 --- a/external/mit/xorg/bin/fc-cat/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2013/06/03 20:23:39 mrg Exp $ - -.include - -PROG= fc-cat - -CPPFLAGS+= -I${X11SRCDIR.fontconfig} -I. - -LDADD+= -lfontconfig -lfreetype -lexpat -DPADD+= ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} - -.PATH: ${X11SRCDIR.fontconfig}/${PROG} - -.include "../../lib/fontconfig/src/Makefile.fcarch" - -.include -.include diff --git a/external/mit/xorg/bin/fc-list/Makefile b/external/mit/xorg/bin/fc-list/Makefile deleted file mode 100644 index 2a4bcf2ee..000000000 --- a/external/mit/xorg/bin/fc-list/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2013/06/03 20:23:39 mrg Exp $ - -.include - -PROG= fc-list - -CPPFLAGS+= -I${X11SRCDIR.fontconfig} -I. - -LDADD+= -lfontconfig -lfreetype -lexpat -DPADD+= ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} - -.PATH: ${X11SRCDIR.fontconfig}/${PROG} - -.include "../../lib/fontconfig/src/Makefile.fcarch" - -.include -.include diff --git a/external/mit/xorg/bin/fc-match/Makefile b/external/mit/xorg/bin/fc-match/Makefile deleted file mode 100644 index 727ba3d07..000000000 --- a/external/mit/xorg/bin/fc-match/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2014/01/03 20:18:45 christos Exp $ - -.include - -PROG= fc-match - -CPPFLAGS+= -I${X11SRCDIR.fontconfig} -I. - -LDADD+= -lfontconfig -lfreetype -lexpat -lbz2 -lz -DPADD+= ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} ${LIBBZ2} ${LIBZ} - -.PATH: ${X11SRCDIR.fontconfig}/${PROG} - -.include "../../lib/fontconfig/src/Makefile.fcarch" - -.include -.include diff --git a/external/mit/xorg/bin/fc-pattern/Makefile b/external/mit/xorg/bin/fc-pattern/Makefile deleted file mode 100644 index 0c3c8572e..000000000 --- a/external/mit/xorg/bin/fc-pattern/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD - -.include - -PROG= fc-pattern - -CPPFLAGS+= -I${X11SRCDIR.fontconfig} -I. -I${DESTDIR}${X11INCDIR}/freetype2 - -LDADD+= -lfontconfig -lfreetype -lexpat -DPADD+= ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} - -.PATH: ${X11SRCDIR.fontconfig}/${PROG} - -FCARCH_DEPFILE= fc-cat.c -.include "../../lib/fontconfig/src/Makefile.fcarch" - -.include -.include diff --git a/external/mit/xorg/bin/fc-query/Makefile b/external/mit/xorg/bin/fc-query/Makefile deleted file mode 100644 index 4e2ecf2dd..000000000 --- a/external/mit/xorg/bin/fc-query/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD - -.include - -PROG= fc-query - -CPPFLAGS+= -I${X11SRCDIR.fontconfig} -I. -I${DESTDIR}${X11INCDIR}/freetype2 - -LDADD+= -lfontconfig -lfreetype -lexpat -DPADD+= ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} - -.PATH: ${X11SRCDIR.fontconfig}/${PROG} - -.include "../../lib/fontconfig/src/Makefile.fcarch" - -.include -.include diff --git a/external/mit/xorg/bin/fc-scan/Makefile b/external/mit/xorg/bin/fc-scan/Makefile deleted file mode 100644 index 898b44b91..000000000 --- a/external/mit/xorg/bin/fc-scan/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2013/06/03 20:23:39 mrg Exp $ - -.include - -PROG= fc-scan - -CPPFLAGS+= -I${X11SRCDIR.fontconfig} -I. -I${DESTDIR}${X11INCDIR}/freetype2 - -LDADD+= -lfontconfig -lfreetype -lexpat -DPADD+= ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} - -.PATH: ${X11SRCDIR.fontconfig}/${PROG} - -.include "../../lib/fontconfig/src/Makefile.fcarch" - -.include -.include diff --git a/external/mit/xorg/bin/fc-validate/Makefile b/external/mit/xorg/bin/fc-validate/Makefile deleted file mode 100644 index d03b1d83a..000000000 --- a/external/mit/xorg/bin/fc-validate/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/06/03 20:23:39 mrg Exp $ - -.include - -PROG= fc-validate - -CPPFLAGS+= -I${X11SRCDIR.fontconfig} -I. -I${DESTDIR}${X11INCDIR}/freetype2 - -LDADD+= -lfontconfig -lfreetype -lexpat -DPADD+= ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} - -.PATH: ${X11SRCDIR.fontconfig}/${PROG} - -.include "../../lib/fontconfig/src/Makefile.fcarch" - -.include -.include diff --git a/external/mit/xorg/bin/fonttosfnt/Makefile b/external/mit/xorg/bin/fonttosfnt/Makefile deleted file mode 100644 index a4ad4e509..000000000 --- a/external/mit/xorg/bin/fonttosfnt/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2011/08/11 23:15:35 joerg Exp $ - -.include - -PROG= fonttosfnt -SRCS= fonttosfnt.c read.c write.c struct.c util.c - -# XXX XVENDORNAME and XVENDORNAMESHORT should live in a common location -CPPFLAGS+= -DXFREE86_FT2 -I${DESTDIR}${X11INCDIR}/freetype2 \ - -DXVENDORNAMESHORT=${XVENDORNAMESHORT} \ - -DXVENDORNAME=${XVENDORNAME} -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/fonts \ - -I${X11SRCDIR.xc}/extras/freetype2/include - - -LDADD+= -lfreetype -lfontenc -lz -lm -DPADD+= ${LIBFREETYPE} ${LIBFONTENC} ${LIBZ} ${LIBM} - -.PATH: ${X11SRCDIR.${PROG}} - -CWARNFLAGS.clang+= -Wno-format - -.include -.include diff --git a/external/mit/xorg/bin/fslsfonts/Makefile b/external/mit/xorg/bin/fslsfonts/Makefile deleted file mode 100644 index b9e55abce..000000000 --- a/external/mit/xorg/bin/fslsfonts/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2015/07/22 07:58:00 mrg Exp $ - -.include - -PROG= fslsfonts - -LDADD+= -lFS -DPADD+= ${LIBFS} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/fstobdf/Makefile b/external/mit/xorg/bin/fstobdf/Makefile deleted file mode 100644 index 8704519a8..000000000 --- a/external/mit/xorg/bin/fstobdf/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2015/07/22 07:58:00 mrg Exp $ - -.include - -PROG= fstobdf -SRCS= chars.c fstobdf.c header.c props.c - -LDADD+= -lFS -lXext -lX11 -DPADD+= ${LIBFS} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/glxgears/Makefile b/external/mit/xorg/bin/glxgears/Makefile deleted file mode 100644 index 8604b78bb..000000000 --- a/external/mit/xorg/bin/glxgears/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2014/12/18 06:24:28 mrg Exp $ - -NOMAN= # defined - -.include - -PROG= glxgears - -CPPFLAGS+=${X11FLAGS.THREADS} - -#LSC: NO pthread on minix! -LDADD+= -lGL -lXext -lX11 -lm -DPADD+= ${LIBGL} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.mesa-demos}/src/xdemos - -.include -.include diff --git a/external/mit/xorg/bin/glxinfo/Makefile b/external/mit/xorg/bin/glxinfo/Makefile deleted file mode 100644 index 591262343..000000000 --- a/external/mit/xorg/bin/glxinfo/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2014/12/18 06:24:28 mrg Exp $ - -NOMAN= # defined - -.include - -.if ${MKPIC} == "no" || ${LDSTATIC:U} != "" -PROG_CXX= glxinfo -.else -PROG= glxinfo -.endif - -SRCS+= glinfo_common.c glxinfo.c - -CPPFLAGS+=${X11FLAGS.THREADS} -DDO_GLU - -#__MINIX: No pthread -LDADD+= -lGL -lXext -lX11 -lm -DPADD+= ${LIBGL} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.mesa-demos}/src/xdemos - -.include -.include diff --git a/external/mit/xorg/bin/iceauth/Makefile b/external/mit/xorg/bin/iceauth/Makefile deleted file mode 100644 index c58fdef80..000000000 --- a/external/mit/xorg/bin/iceauth/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/07/20 23:50:23 mrg Exp $ - -.include - -PROG= iceauth -SRCS= iceauth.c process.c - -LDADD+= -lICE -DPADD+= ${LIBICE} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/ico/Makefile b/external/mit/xorg/bin/ico/Makefile deleted file mode 100644 index c4388e1e0..000000000 --- a/external/mit/xorg/bin/ico/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2015/07/22 07:58:00 mrg Exp $ - -.include - -PROG= ico - -#__MINIX: No Pthreads: -DMULTITHREAD -CPPFLAGS+= ${X11FLAGS.THREADS} ${X11FLAGS.EXTENSION} - -#__MINIX: No pthreads -LDADD+= -lXext -lX11 -lm -DPADD+= ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/imake/Makefile b/external/mit/xorg/bin/imake/Makefile deleted file mode 100644 index f2b23956e..000000000 --- a/external/mit/xorg/bin/imake/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2013/05/31 05:41:26 mrg Exp $ - -.include - -PROG= imake - -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 -CPPFLAGS+= -I${X11SRCDIR.${PROG}}/../include - -CPP_PROGRAM= cpp -CPPFLAGS+= -DCPP_PROGRAM=\"$(CPP_PROGRAM)\" -X11EXTRAMANDEFS=-e 's,__cpp__,$(CPP_PROGRAM),g' - -.PATH: ${X11SRCDIR.${PROG}} - -COPTS.imake.c+= -Wno-error # const issues - -.include -.include diff --git a/external/mit/xorg/bin/listres/Makefile b/external/mit/xorg/bin/listres/Makefile deleted file mode 100644 index 75d83f82b..000000000 --- a/external/mit/xorg/bin/listres/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2013/05/31 05:24:49 mrg Exp $ - -.include - -PROG= listres - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/lndir/Makefile b/external/mit/xorg/bin/lndir/Makefile deleted file mode 100644 index b3e6a1556..000000000 --- a/external/mit/xorg/bin/lndir/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/11/21 02:43:31 mrg Exp $ - -.include - -PROG= lndir - -.PATH: ${X11SRCDIR.${PROG}} - -.include -.include diff --git a/external/mit/xorg/bin/luit/Makefile b/external/mit/xorg/bin/luit/Makefile deleted file mode 100644 index 864c38c3d..000000000 --- a/external/mit/xorg/bin/luit/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2015/07/22 07:58:00 mrg Exp $ - -.include - -PROG= luit -SRCS= luit.c iso2022.c charset.c parser.c sys.c other.c - -CPPFLAGS+=-DLOCALE_ALIAS_FILE=\"${X11LIBDIR}/locale/locale.alias\" -#CPPFLAGS+=-DHAVE_CONFIG_H -I${X11SRCDIR.${PROG}}/../include -CPPFLAGS+=-DHAVE_PUTENV -DHAVE_WORKING_POLL -DHAVE_POLL_H -CPPFLAGS+=-DHAVE_SYS_PARAM -DHAVE_OPENPTY -DHAVE_GRANTPT -CPPFLAGS+=-DHAVE_POSIX_OPENPT -DHAVE_STRDUP - -X11EXTRAMANDEFS+= -e 's,__locale_alias__,${X11LIBDIR}/locale/locale.alias,g' - -LDADD+= -lfontenc -lz -DPADD+= ${LIBFONTENC} ${LIBZ} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/makedepend/Makefile b/external/mit/xorg/bin/makedepend/Makefile deleted file mode 100644 index 823d8cf23..000000000 --- a/external/mit/xorg/bin/makedepend/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2014/03/17 09:07:09 mrg Exp $ - -.include - -PROG= makedepend -SRCS= include.c main.c parse.c pr.c cppsetup.c ifparser.c - -CPPFLAGS+= -I${X11SRCDIR.xc}/config/imake \ - -I${DESTDIR}${X11INCDIR}/X11 \ - -DHAVE_RENAME -DHAVE_FCHMOD - -CPPFLAGS.main.c=-DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".o\" - -.PATH: ${X11SRCDIR.${PROG}} - -.include -.include diff --git a/external/mit/xorg/bin/makeg/Makefile b/external/mit/xorg/bin/makeg/Makefile deleted file mode 100644 index 31920ddd0..000000000 --- a/external/mit/xorg/bin/makeg/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -SCRIPTS=makeg -MAN= makeg.1 - -.PATH: ${X11SRCDIR.imake} - -.include -.include diff --git a/external/mit/xorg/bin/makestrs/Makefile b/external/mit/xorg/bin/makestrs/Makefile deleted file mode 100644 index a96a2174d..000000000 --- a/external/mit/xorg/bin/makestrs/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -PROG= makestrs - -.PATH: ${X11SRCDIR.Xt}/util - -.include -.include diff --git a/external/mit/xorg/bin/mergelib/Makefile b/external/mit/xorg/bin/mergelib/Makefile deleted file mode 100644 index fb5a4a2f3..000000000 --- a/external/mit/xorg/bin/mergelib/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -CPPSCRIPTS= mergelib -CPPSCRIPTFLAGS= -DARCMD="ar clq" -DRANLIB="ranlib" -SCRIPTS= ${CPPSCRIPTS} -MAN= mergelib.1 - -.PATH: ${X11SRCDIR.imake} - -.include -.include diff --git a/external/mit/xorg/bin/mkdirhier/Makefile b/external/mit/xorg/bin/mkdirhier/Makefile deleted file mode 100644 index e2a718829..000000000 --- a/external/mit/xorg/bin/mkdirhier/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -SCRIPTS=mkdirhier -MAN= mkdirhier.1 - -.PATH: ${X11SRCDIR.imake} - -.include -.include diff --git a/external/mit/xorg/bin/mkfontdir/Makefile b/external/mit/xorg/bin/mkfontdir/Makefile deleted file mode 100644 index 75c9cc656..000000000 --- a/external/mit/xorg/bin/mkfontdir/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2014/03/23 20:39:40 tron Exp $ - -.include - -.PATH: ${X11SRCDIR.mkfontdir} -.PATH: ${X11SRCDIR.mkfontdir}/man - -MAN= mkfontdir.1 - -SCRIPTS= mkfontdir - -mkfontdir: mkfontdir.in - ${TOOL_SED} -e "s#@bindir@#${X11BINDIR}#" < ${.ALLSRC} > ${.TARGET} - -CLEANFILES+= mkfontdir - -.include -.include diff --git a/external/mit/xorg/bin/mkfontscale/Makefile b/external/mit/xorg/bin/mkfontscale/Makefile deleted file mode 100644 index 4a54dce5a..000000000 --- a/external/mit/xorg/bin/mkfontscale/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2015/07/20 23:50:23 mrg Exp $ - -.include - -PROG= mkfontscale -SRCS= mkfontscale.c list.c hash.c ident.c - -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/freetype2 - -LDADD+= -lfontenc -lfreetype -lz -lbz2 -DPADD+= ${LIBFONTENC} ${LIBFREETYPE} ${LIBZ} ${LIBBZ2} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/mkhtmlindex/Makefile b/external/mit/xorg/bin/mkhtmlindex/Makefile deleted file mode 100644 index 354db6e34..000000000 --- a/external/mit/xorg/bin/mkhtmlindex/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/07 14:50:25 lukem Exp $ - -.include - -SCRIPTS=mkhtmlindex -MAN= mkhtmlindex.1 - -CLEANFILES+= mkhtmlindex # creates it from mkhtmlindex.sh - -.PATH: ${X11SRCDIR.imake} - -.include -.include diff --git a/external/mit/xorg/bin/oclock/Makefile b/external/mit/xorg/bin/oclock/Makefile deleted file mode 100644 index 1c9e8548c..000000000 --- a/external/mit/xorg/bin/oclock/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 06:24:05 mrg Exp $ - -.include - -PROG= oclock -SRCS= oclock.c Clock.c transform.c - -APPDEFS=Clock-color - -LDADD+= -lXmu -lXt -lSM -lICE -lXext -lX11 -lm -DPADD+= ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/proxymngr/Makefile b/external/mit/xorg/bin/proxymngr/Makefile deleted file mode 100644 index 431133614..000000000 --- a/external/mit/xorg/bin/proxymngr/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/10/14 23:37:19 cube Exp $ - -.include - -PROG= proxymngr -SRCS= main.c pmdb.c config.c - -PROXYMANAGERDIR= ${X11ETCDIR}/proxymngr - -CPPFLAGS.main.c= -DCONFIG_FILE=\"${PROXYMANAGERDIR}/pmconfig\" \ - -DXVENDORNAMESHORT=${XVENDORNAMESHORT} \ - -DXVENDORNAME=${XVENDORNAME} \ - -DXORG_RELEASE=${XORG_RELEASE} - - -X11EXTRAMANDEFS+= -e 's,PROXYMANAGERDIR,${PROXYMANAGERDIR},g' - -CPPSCRIPTS= pmconfig -CPPSCRIPTFLAGS= -DLBXPROXY=${X11BINDIR}/lbxproxy -CONFIGFILES= pmconfig -FILESDIR= ${PROXYMANAGERDIR} - -LDADD+= -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} - -.include -.include diff --git a/external/mit/xorg/bin/revpath/Makefile b/external/mit/xorg/bin/revpath/Makefile deleted file mode 100644 index 42e3c452f..000000000 --- a/external/mit/xorg/bin/revpath/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -PROG= revpath - -.PATH: ${X11SRCDIR.imake} - -.include -.include diff --git a/external/mit/xorg/bin/rgb/Makefile b/external/mit/xorg/bin/rgb/Makefile deleted file mode 100644 index 0689ef829..000000000 --- a/external/mit/xorg/bin/rgb/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2015/07/22 07:58:00 mrg Exp $ - -.include - -PROG= showrgb - -CPPFLAGS+=-DNDBM -DRGB_DB=\"${X11LIBDIR}/rgb\" -DUSE_RGB_TXT -CPPFLAGS+=-DHAVE_ASPRINTF -CPPFLAGS+=-I${X11SRCDIR.rgb}/include - -X11EXTRAMANDEFS+= -e 's,__RGB_DB__,${X11LIBDIR}/rgb,g' \ - -e 's,__RGB_DB_TYPE__,text,g' - -FILES= rgb.txt -FILESDIR=${X11LIBDIR} - -.PATH: ${X11SRCDIR.rgb} ${X11SRCDIR.rgb}/man - -.include -.include diff --git a/external/mit/xorg/bin/rstart/Makefile b/external/mit/xorg/bin/rstart/Makefile deleted file mode 100644 index 1f5cb44b8..000000000 --- a/external/mit/xorg/bin/rstart/Makefile +++ /dev/null @@ -1,41 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/07/23 07:34:38 mrg Exp $ - -.include - -PROG= rstartd.real -SRCS= auth.c server.c -RSTARTDBINDIR= ${X11ROOTDIR}/libexec -RSTARTCONFIGDIR= ${X11ETCDIR}/rstart - -CPPFLAGS.server.c= -DSERVERNAME=\"rstartd\" \ - -DDEFAULT_CONFIG=\"${RSTARTCONFIGDIR}/config\" - -MAN= rstart.1 rstartd.1 - -X11EXTRAMANDEFS+= -e 's,RSTARTCONFIGDIR,${RSTARTCONFIGDIR},g' - -SEDCMD= sed -e 's/@RSH@/ssh/' -e 's/@rstartdir@/${RSTARTCONFIGDIR}/' - -rstart: rstart.in - ${SEDCMD} < ${.IMPSRC} > ${.TARGET} -rstartd: rstartd.in - ${SEDCMD} < ${.IMPSRC} > ${.TARGET} -config: config.in - ${SEDCMD} < ${.IMPSRC} > ${.TARGET} - -SCRIPTS= rstart rstartd -SCRIPTSDIR= ${X11BINDIR} -CONFIGFILES= config -FILESDIR= ${RSTARTCONFIGDIR} - -SUBDIR= commands contexts -TARGETS+= configinstall - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man -.PATH: ${X11SRCDIR.${PROG}}/scripts - -.include -BINDIR= ${RSTARTDBINDIR} -.include -.include diff --git a/external/mit/xorg/bin/rstart/Makefile.rstart b/external/mit/xorg/bin/rstart/Makefile.rstart deleted file mode 100644 index be839ac0d..000000000 --- a/external/mit/xorg/bin/rstart/Makefile.rstart +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile.rstart,v 1.1 2015/07/23 07:34:38 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.rstart}/${CFDIR} -FILESDIR= ${X11ETCDIR}/rstart/${CFDIR} - -.for _F in ${CFFILES} -${_F}.sed: ${_F} - ${_MKTARGET_CREATE} - rm -f ${.TARGET} - ${TOOL_SED} ${CFSED} < ${.ALLSRC} > ${.TARGET} - -CONFIGFILES+= ${_F}.sed -CLEANFILES+= ${_F}.sed -FILESNAME_${_F}.sed= ${_F} -.endfor - -TARGETS+= configinstall - -realall: ${CONFIGFILES} diff --git a/external/mit/xorg/bin/rstart/commands/Makefile b/external/mit/xorg/bin/rstart/commands/Makefile deleted file mode 100644 index 23da3ba09..000000000 --- a/external/mit/xorg/bin/rstart/commands/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/07/23 07:34:38 mrg Exp $ - -.include - -CFDIR= commands -CFFILES= @List ListContexts ListGenericCommands -CFSED= -e 's,ENVPREFIX,RSTART,g' - -CONFIGSYMLINKS= x11r6 ${FILESDIR}/x \ - x11r6 ${FILESDIR}/x11 \ - -SUBDIR= x11r6 - -.include "../Makefile.rstart" - -.include -.include -.include diff --git a/external/mit/xorg/bin/rstart/commands/x11r6/Makefile b/external/mit/xorg/bin/rstart/commands/x11r6/Makefile deleted file mode 100644 index 3cd0ebfa8..000000000 --- a/external/mit/xorg/bin/rstart/commands/x11r6/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/07/23 07:34:38 mrg Exp $ - -.include - -CFDIR= commands/x11r6 -CFFILES= @List LoadMonitor Terminal -CFSED= -e 's,ENVPREFIX,RSTART,g' - -.include "../../Makefile.rstart" - -.include -.include diff --git a/external/mit/xorg/bin/rstart/contexts/Makefile b/external/mit/xorg/bin/rstart/contexts/Makefile deleted file mode 100644 index 826dd94af..000000000 --- a/external/mit/xorg/bin/rstart/contexts/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/07/23 07:34:38 mrg Exp $ - -CFDIR= contexts -CFFILES= @List default x11r6 -CFSED= -e 's,_PATH,/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${X11BINDIR},g' \ - -e 's,_MANPATH,${X11MANDIR}:/usr/man,g' - -CONFIGSYMLINKS= x11r6 ${FILESDIR}/x \ - x11r6 ${FILESDIR}/x11 \ - -.include "../Makefile.rstart" - -.include -.include diff --git a/external/mit/xorg/bin/sessreg/Makefile b/external/mit/xorg/bin/sessreg/Makefile deleted file mode 100644 index 2bf0f66c9..000000000 --- a/external/mit/xorg/bin/sessreg/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2014/08/24 18:27:16 apb Exp $ - -.include - -PROG= sessreg - -.include "../xdm/Makefile.xdm" - -CPPFLAGS+= -I${X11SRCDIR.${PROG}}/../include - -X11EXTRAMANDEFS+= -e 's,__ttys_file__,/etc/ttys,g' \ - -e 's,__utmp_file__,${XDMPIDDIR}/utmp,g' \ - -e 's,__wtmp_file__,${XDMLOGDIR}/wtmp,g' - -.include -.include - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man diff --git a/external/mit/xorg/bin/setxkbmap/Makefile b/external/mit/xorg/bin/setxkbmap/Makefile deleted file mode 100644 index 9f6cf28fc..000000000 --- a/external/mit/xorg/bin/setxkbmap/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/07/19 22:30:58 mrg Exp $ - -.include - -PROG= setxkbmap - -CPPFLAGS+= -DDFLT_XKB_CONFIG_ROOT=\"${X11LIBDIR}/xkb\" \ - -D__XKBDEFRULES__=${__XKBDEFRULES__} - -LDADD+= -lxkbfile -lXext -lX11 -DPADD+= ${LIBXKBFILE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -X11EXTRAMANDEFS+= -e 's,__xkbconfigroot__,${X11LIBDIR}/xkb,g' - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/showfont/Makefile b/external/mit/xorg/bin/showfont/Makefile deleted file mode 100644 index 9ea01ec7d..000000000 --- a/external/mit/xorg/bin/showfont/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/07/23 07:34:38 mrg Exp $ - -.include - -PROG= showfont - -LDADD+= -lFS -DPADD+= ${LIBFS} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/smproxy/Makefile b/external/mit/xorg/bin/smproxy/Makefile deleted file mode 100644 index 9fc996150..000000000 --- a/external/mit/xorg/bin/smproxy/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/07/19 19:49:17 mrg Exp $ - -.include - -PROG= smproxy -SRCS= smproxy.c save.c - -CPPFLAGS+=-DHAVE_MKSTEMP -DHAVE_ASPRINTF - -STRING!= ${PRINT_PACKAGE_STRING} -CPPFLAGS+= -DPACKAGE_STRING=\"${STRING}\" - -LDADD+= -lXmu -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/ssh-askpass/Makefile b/external/mit/xorg/bin/ssh-askpass/Makefile deleted file mode 100644 index f26a054e6..000000000 --- a/external/mit/xorg/bin/ssh-askpass/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2011/04/03 13:29:45 mbalmer Exp $ - -.include - -PROG= ssh-askpass -SRCS= drawing.c dynlist.c resources.c x11-ssh-askpass.c - -APPDEFS= SshAskpass.ad -DATE= February 14, 2001 - -BUILDSYMLINKS= SshAskpass-default.ad SshAskpass.ad - -FILESDIR= ${X11ROOTDIR}/share/examples/ssh-askpass -FILES= SshAskpass-1337.ad SshAskpass-NeXTish.ad \ - SshAskpass.ad SshAskpass-green.ad SshAskpass-motif.ad - -# XXX: We use the following two lines instead of just having -# XXX: FILES+= SshAskpass-default.ad -# XXX: because of an obscure bug with "make -j" where it doesn't find -# XXX: SshAskpass-default.ad in the .PATH correctly, probably because -# XXX: of the rule created for it from BUILDSYMLINKS by . -# XXX: This is not the correct long-term solution. -# -FILES+= SshAskpass.ad -FILESNAME_SshAskpass.ad=SshAskpass-default.ad - - -CPPFLAGS+= -I. -DPSRCS+= SshAskpass_ad.h -CLEANFILES+= SshAskpass_ad.h - -SRCPATH= ${X11SRCDIR.local}/programs/x11-ssh-askpass - -ssh-askpass.1: x11-ssh-askpass.man.in - sed -e 's#@NAME@#$(PROG)#g' -e 's#@VERSION@#$(VERSION)#g' \ - -e 's#@DATE@#$(DATE)#g' < ${SRCPATH}/x11-ssh-askpass.man.in > $@ - -SshAskpass_ad.h: SshAskpass.ad - ${_MKTARGET_CREATE} - rm -f ${.TARGET} - ${TOOL_SED} -n '/^[^!]/s/.*/"&",/p' <${.ALLSRC} > ${.TARGET} - -LDADD+= -lXt -lSM -lICE -lXinerama -lXext -lX11 -DPADD+= ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXINERAMA} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.local}/programs/x11-ssh-askpass - -.include -.include diff --git a/external/mit/xorg/bin/sxpm/Makefile b/external/mit/xorg/bin/sxpm/Makefile deleted file mode 100644 index b281428b9..000000000 --- a/external/mit/xorg/bin/sxpm/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2013/05/31 01:41:56 mrg Exp $ - -.include - -PROG= sxpm - -CPPFLAGS+= -I${X11SRCDIR.Xpm}/src -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 - -LDADD+= -lXpm -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXPM} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.Xpm}/${PROG} -.PATH: ${X11SRCDIR.Xpm}/man - -.include -.include diff --git a/external/mit/xorg/bin/twm/Makefile b/external/mit/xorg/bin/twm/Makefile deleted file mode 100644 index d7507d3de..000000000 --- a/external/mit/xorg/bin/twm/Makefile +++ /dev/null @@ -1,54 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2014/03/17 09:21:19 mrg Exp $ - -.include - -PROG= twm -SRCS= gram.y lex.l deftwmrc.c add_window.c gc.c list.c twm.c \ - parse.c menus.c events.c resize.c util.c version.c iconmgr.c \ - cursor.c icons.c session.c - -YHEADER=1 - -TWMCONFIGDIR= ${X11ETCDIR}/twm - -X11EXTRAMANDEFS+= -e 's,TWMDIR,${TWMCONFIGDIR},g' - -TWMDIR= ${X11SRCDIR.${PROG}} - -CPPFLAGS+= -I. -I${TWMDIR}/src -CPPFLAGS+= -DHAVE_MKSTEMP -DXORG_RELEASE=${XORG_RELEASE} \ - -DXVENDORNAME=${XVENDORNAME} - -CPPFLAGS.parse.c= -DSYSTEM_INIT_FILE=\"${TWMCONFIGDIR}/system.twmrc\" - -CONFIGFILES= system.twmrc -FILESDIR= ${TWMCONFIGDIR} - -DPSRCS+= deftwmrc.c -CLEANFILES+= deftwmrc.c -deftwmrc.c: system.twmrc deftwmrc.sed - ${_MKTARGET_CREATE} - rm -f ${.TARGET} - echo '/* ' >>$@ - echo ' * This file is generated automatically from the default' >>$@ - echo ' * twm bindings file system.twmrc by the twm Makefile.' >>$@ - echo ' */' >>$@ - echo 'char *defTwmrc[] = {' >>$@ - ${TOOL_SED} -f ${TWMDIR}/src/deftwmrc.sed \ - < ${TWMDIR}/src/system.twmrc >>$@ - echo ' (char *) 0 };' >>$@ - - -LDADD+= -lXmu -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${TWMDIR}/src ${TWMDIR}/man - -CWARNFLAGS.clang+= -Wno-pointer-sign - -# XXX: has const issues best solved upstream -COPTS.menus.c+= -Wno-error -COPTS.util.c+= -Wno-error - -.include -.include diff --git a/external/mit/xorg/bin/ucs2any/Makefile b/external/mit/xorg/bin/ucs2any/Makefile deleted file mode 100644 index a18d444bd..000000000 --- a/external/mit/xorg/bin/ucs2any/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2011/11/11 22:27:33 njoly Exp $ - -.include - -PROG= ucs2any - -X11EXTRAMANDEFS+= -e 's,__mapfilesdir__,${LIBDIR}/X11/fonts/util,' - -.PATH: ${X11SRCDIR.font-util} ${X11SRCDIR.font-util}/man - -.include -.include diff --git a/external/mit/xorg/bin/viewres/Makefile b/external/mit/xorg/bin/viewres/Makefile deleted file mode 100644 index c6cc7ea21..000000000 --- a/external/mit/xorg/bin/viewres/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 06:24:05 mrg Exp $ - -.include - -PROG= viewres - -APPDEFS=Viewres Viewres-color - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/x11perf/Makefile b/external/mit/xorg/bin/x11perf/Makefile deleted file mode 100644 index 01d4f8bd2..000000000 --- a/external/mit/xorg/bin/x11perf/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2011/11/20 21:02:23 dholland Exp $ - -.include - -PROG= x11perf -SRCS= x11perf.c bitmaps.c do_tests.c do_simple.c do_rects.c do_valgc.c \ - do_lines.c do_segs.c do_dots.c do_windows.c do_movewin.c do_text.c \ - do_blt.c do_arcs.c do_tris.c do_complex.c do_traps.c - -CPPFLAGS+= -DMITSHM -DXRENDER -CPPFLAGS+= -DXFT -DXFREE86_FT2 -I${DESTDIR}${X11INCDIR}/freetype2 - -MAN= Xmark.1 x11perf.1 x11perfcomp.1 - -x11perfcomp: x11perfcomp.in - ${TOOL_SED} \ - -e "s,@x11perfcompdir@,${X11LIBDIR}/x11perfcomp,;" \ - -e "s,@MKTEMP@,/usr/bin/mktemp,;" \ - < ${.ALLSRC} > ${.TARGET} - -SCRIPTS= x11perfcomp Xmark \ - fillblnk perfboth perfratio -SCRIPTSDIR_fillblnk.sh= ${X11LIBDIR}/x11perfcomp -SCRIPTSDIR_perfboth.sh= ${X11LIBDIR}/x11perfcomp -SCRIPTSDIR_perfratio.sh=${X11LIBDIR}/x11perfcomp - -CLEANFILES+= x11perfcomp - -LDADD+= -lXft -lfontconfig -lfreetype -lexpat -lXrender -DPADD+= ${LIBXFT} ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} ${LIBXRENDER} -LDADD+= -lXmuu -lXt -lSM -lICE -lXext -lX11 -lm -DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xauth/Makefile b/external/mit/xorg/bin/xauth/Makefile deleted file mode 100644 index c9a1de8ea..000000000 --- a/external/mit/xorg/bin/xauth/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2014/07/13 16:35:49 joerg Exp $ - -.include - -PROG= xauth -SRCS= xauth.c gethost.c process.c parsedpy.c - -CPPFLAGS+= -DRETSIGTYPE=void -DPACKAGE_VERSION=\"1.0.8\" -CPPFLAGS.gethost.c= ${X11FLAGS.CONNECTION} -CPPFLAGS.parsedpy.c= ${X11FLAGS.CONNECTION} - -CWARNFLAGS.clang= -Wno-empty-body - -LDADD+= -lXau -lXmuu -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXAU} ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -.include - -USE_SSP:= no - -.include -.include diff --git a/external/mit/xorg/bin/xbiff/Makefile b/external/mit/xorg/bin/xbiff/Makefile deleted file mode 100644 index ee0756433..000000000 --- a/external/mit/xorg/bin/xbiff/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2011/02/21 04:40:24 mrg Exp $ - -.include - -PROG= xbiff -SRCS= xbiff.c Mailbox.c - -LDADD+= -lXext -lXaw -lXmu -lXt -lX11 -lSM -lICE -lXau -DPADD+= ${LIBXEXT} ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBX11} ${LIBSM} ${LIBICE} \ - ${LIBXAU} - -CPPFLAGS+= -I${X11SRCDIR.${PROG}}/../include - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xcalc/Makefile b/external/mit/xorg/bin/xcalc/Makefile deleted file mode 100644 index ad2ea279d..000000000 --- a/external/mit/xorg/bin/xcalc/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/07/19 08:49:50 mrg Exp $ - -.include - -PROG= xcalc -SRCS= actions.c math.c xcalc.c - -APPDEFS=XCalc XCalc-color - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBM} - -CPPFLAGS+= -DHAVE_STRLCPY - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xclipboard/Makefile b/external/mit/xorg/bin/xclipboard/Makefile deleted file mode 100644 index 569f52b6d..000000000 --- a/external/mit/xorg/bin/xclipboard/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 06:24:05 mrg Exp $ - -.include - -PROG= xclipboard - -APPDEFS=XClipboard - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xclock/Makefile b/external/mit/xorg/bin/xclock/Makefile deleted file mode 100644 index 0ab0d4ad8..000000000 --- a/external/mit/xorg/bin/xclock/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 06:24:05 mrg Exp $ - -.include - -PROG= xclock -SRCS= xclock.c Clock.c - -CPPFLAGS+=-DXRENDER -DXFREE86_FT2 -I${DESTDIR}${X11INCDIR}/freetype2 - -APPDEFS=XClock XClock-color - - -LDADD+= -lXft -lfontconfig -lfreetype -lexpat -lXrender -DPADD+= ${LIBXFT} ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} ${LIBXRENDER} -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xcmsdb/Makefile b/external/mit/xorg/bin/xcmsdb/Makefile deleted file mode 100644 index 740b3d500..000000000 --- a/external/mit/xorg/bin/xcmsdb/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2015/07/19 22:30:58 mrg Exp $ - -.include - -PROG= xcmsdb -SRCS= xcmsdb.c loadData.c - -LDADD+= -lX11 -DPADD+= ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xconsole/Makefile b/external/mit/xorg/bin/xconsole/Makefile deleted file mode 100644 index f1ad38b24..000000000 --- a/external/mit/xorg/bin/xconsole/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2014/03/17 09:24:11 mrg Exp $ - -.include - -PROG= xconsole - -APPDEFS=XConsole - -LDADD+= -lutil -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBUTIL} ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -CPPFLAGS+=-DHAS_OPENPTY -DHAVE_UTIL_H - -.include -.include diff --git a/external/mit/xorg/bin/xcutsel/Makefile b/external/mit/xorg/bin/xcutsel/Makefile deleted file mode 100644 index 591108ba2..000000000 --- a/external/mit/xorg/bin/xcutsel/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2013/05/31 06:46:55 mrg Exp $ - -.include - -PROG= xcutsel - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.xclipboard} -.PATH: ${X11SRCDIR.xclipboard}/man - -.include -.include diff --git a/external/mit/xorg/bin/xditview/Makefile b/external/mit/xorg/bin/xditview/Makefile deleted file mode 100644 index a71df98b9..000000000 --- a/external/mit/xorg/bin/xditview/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 06:50:45 mrg Exp $ - -.include - -PROG= xditview -SRCS= xditview.c Dvi.c draw.c font.c lex.c page.c parse.c \ - XFontName.c DviChar.c - -CPPFLAGS+= -DHAS_MKSTEMP -CPPFLAGS+= -DUSE_XFT -DXFREE86_FT2 -I${DESTDIR}${X11INCDIR}/freetype2 - -APPDEFS=Xditview Xditview-chrtr - -LDADD+= -lXft -lfontconfig -lfreetype -lexpat -lXrender -DPADD+= ${LIBXFT} ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} ${LIBXRENDER} -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBM} - -FILES= ldblarrow rdblarrow -FILESDIR=${X11INCDIR}/X11/bitmaps - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xdm/Makefile b/external/mit/xorg/bin/xdm/Makefile deleted file mode 100644 index 786591369..000000000 --- a/external/mit/xorg/bin/xdm/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -# $NetBSD: Makefile,v 1.13 2013/06/17 15:58:40 christos Exp $ - -.include - -PROG= xdm -SRCS= access.c auth.c choose.c daemon.c dm.c dpylist.c \ - error.c file.c genauth.c mitauth.c netaddr.c policy.c \ - protodpy.c reset.c resource.c server.c session.c socket.c \ - streams.c util.c xdmauth.c xdmcp.c prngc.c - -.if ${MKPIC} == "no" -SRCS+= Login.c greet.c verify.c -CPPFLAGS+= -DSTATIC_GREETER_LIB -.endif - -CPPFLAGS+= -DRETSIGTYPE=void -CPPFLAGS.auth.c= -DBSD44SOCKETS -CPPFLAGS.socket.c= -DBSD44SOCKETS -CPPFLAGS.xdmcp.c= -DBSD44SOCKETS -CPPFLAGS.xdmshell.c= -DHAS_VFORK -CPPFLAGS.resource.c= \ - -DDEF_SERVER_LINE="\":0 local ${X11BINDIR}/X :0\"" \ - -DXRDB_PROGRAM=\"${X11BINDIR}/xrdb\" \ - -DDEF_SESSION="\"${X11BINDIR}/xterm -ls\"" \ - -DDEF_USER_PATH=\"/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${X11BINDIR}\" \ - -DDEF_SYSTEM_PATH=\"/sbin:/usr/sbin:/bin:/usr/bin:${X11BINDIR}\" \ - -DDEF_SYSTEM_SHELL=\"/bin/sh\" \ - -DDEF_FAILSAFE_CLIENT=\"${X11BINDIR}/xterm\" \ - -DDEF_XDM_CONFIG=\"${XDMDIR}/xdm-config\" \ - -DDEF_AUTH_DIR=\"${XDMVARDIR}\" \ - -DDEF_GREETER_LIB=\"${XDMGREETERLIB}\" - -LDADD+= -lXau -lXdmcp -lXft -lXinerama -lXpm -LDADD+= -lXmu -lXt -lSM -lICE -lXext -lXrender -lX11 -LDADD+= -lcrypt -lfreetype -lutil -DPADD+= ${LIBXAU} ${LIBXDMCP} ${LIBXFT} ${LIBXINERAMA} ${LIBXPM} -DPADD+= ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} -DPADD+= ${LIBCRYPT} ${LIBFREETYPE} ${LIBUTIL} - -.if (${USE_PAM} != "no") -LDADD+= -lpam ${PAM_STATIC_LDADD} -DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} -.endif - -SUBDIR+= config -TARGETS+= configinstall - -.include "Makefile.xdm" - -CPPFLAGS.resource.c+= -DDEF_CHOOSER=\"${XDMCHOOSERPATH}\" - -X11MANCPP= yes -X11EXTRAMANDEFS+= -DARC4_RANDOM \ - -DCHOOSERPATH=${XDMCHOOSERPATH} \ - -DGREETERLIBPATH=${XDMGREETERLIB} \ - -DXDMDIR=${XDMDIR} \ - -DXDMXAUTHDIR=${XDMVARDIR} \ - -DXDMLOGDIR=${XDMLOGDIR} \ - -DXDMPIDDIR=${XDMPIDDIR} - -.include -.include -.include diff --git a/external/mit/xorg/bin/xdm/Makefile.xdm b/external/mit/xorg/bin/xdm/Makefile.xdm deleted file mode 100644 index da0364554..000000000 --- a/external/mit/xorg/bin/xdm/Makefile.xdm +++ /dev/null @@ -1,53 +0,0 @@ -# $NetBSD: Makefile.xdm,v 1.8 2013/06/05 00:01:16 mrg Exp $ - -XDMVARDIR= /var/db/xdm -XDMDIR= ${X11ETCDIR}/xdm -XDMCHOOSERPATH= ${X11ROOTDIR}/libexec/chooser -XDMGREETERLIB= ${X11ROOTDIR}/lib/libXdmGreet.so -XDMLOGDIR= /var/log -XDMPIDDIR= /var/run - -CPPFLAGS+= -DBINDIR=\"${X11BINDIR}\" -DXDMDIR=\"${XDMDIR}\" \ - -DHASXDMAUTH ${X11FLAGS.CONNECTION} \ - -DBSD44SOCKETS \ - -DFRAGILE_DEV_MEM -DARC4_RANDOM \ - -DDEV_RANDOM=\"dev/urandom\" \ - -DXPM -DUSE_XFT \ - -DHAVE_GETIFADDRS \ - -DHAVE_MKSTEMP \ - -DHAVE_SETPROCTITLE \ - -DHAVE_SETUSERCONTEXT \ - -DHAVE_ARC4RANDOM \ - -DHAVE_DAEMON \ - -DHAVE_SIGACTION \ - -DHAVE_ASPRINTF \ - -DHAVE_OPENLOG \ - -DUNIXCONN \ - -DTCPCONN \ - -DHAVE_WORKING_VFORK \ - -DHAVE_VFORK_H \ - -DHAVE_VFORK \ - -DHAVE_INTTYPES_H \ - -DHAVE_SYS_PARAM_H \ - -DHAVE_GRP_H \ - -I${X11SRCDIR.xdm} \ - -I${X11SRCDIR.xdm}/include \ - -I${DESTDIR}${X11INCDIR}/freetype2 \ - ${X11FLAGS.VERSION} - -LDFLAGS+= -Wl,--export-dynamic - -.if (${USE_PAM} != "no") -CPPFLAGS+= -DUSE_PAM -.endif - -.if (${USE_INET6} != "no") -CPPFLAGS+= -DIPv6 -.endif - -.PATH: ${X11SRCDIR.xdm} -.PATH: ${X11SRCDIR.xdm}/xdm -.PATH: ${X11SRCDIR.xdm}/man -.PATH: ${X11SRCDIR.xdm}/chooser -.PATH: ${X11SRCDIR.xdm}/greeter -.PATH: ${X11SRCDIR.xdm}/app-defaults diff --git a/external/mit/xorg/bin/xdm/chooser/Makefile b/external/mit/xorg/bin/xdm/chooser/Makefile deleted file mode 100644 index f33bd73bb..000000000 --- a/external/mit/xorg/bin/xdm/chooser/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 23:50:35 mrg Exp $ - -NOMAN= 1 - -.include - -PROG= chooser - -CPPFLAGS.chooser.c= -DBSD44SOCKETS -DRETSIGTYPE=void - -APPDEFS=Chooser - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lXdmcp -lXinerama -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBXDMCP} ${LIBXINERAMA} - -.include "../Makefile.xdm" - -.include -BINDIR= ${XDMCHOOSERPATH:H} -.include - -.PATH: ${X11SRCDIR.xdm}/app-defaults diff --git a/external/mit/xorg/bin/xdm/config/Makefile b/external/mit/xorg/bin/xdm/config/Makefile deleted file mode 100644 index 1aaa0dc4c..000000000 --- a/external/mit/xorg/bin/xdm/config/Makefile +++ /dev/null @@ -1,77 +0,0 @@ -# $NetBSD: Makefile,v 1.14 2014/02/24 07:23:40 skrll Exp $ - -.include - -# DEFAULTVT for all arches that are able to switch virtual consoles -# while in X (currently this needs WSDISPLAY_COMPAT_USL and -# WSDISPLAY_COMPAT_PCVT, this might change soon) -.if ${MACHINE_ARCH} == "x86_64" \ - || ${MACHINE_ARCH} == "cats" \ - || ${MACHINE_ARCH} == "hpcmips" \ - || ${MACHINE_ARCH} == "hpcsh" \ - || ${MACHINE_ARCH} == "hppa" \ - || ${MACHINE_ARCH} == "i386" \ - || ${MACHINE_ARCH} == "netwinder" \ - || ${MACHINE_ARCH} == "shark" \ - || ${MACHINE_ARCH} == "sparc" \ - || ${MACHINE_ARCH} == "sparc64" \ - || ${MACHINE_ARCH} == "zaurus" -DEFAULTVT=vt05 -.else -DEFAULTVT= # defined empty -.endif - -UUDECODE_FILES= NetBSD-flag.png -CPPSCRIPTS= Xresources Xreset Xservers.ws Xsession Xstartup xdm-config - -CPPSCRIPTFLAGS_Xresources= -DXPM -DBITMAPDIR=${X11INCDIR}/X11/pixmaps \ - -DXDM_PIXMAP=NetBSD.xpm \ - -DXDM_BWPIXMAP=NetBSD-bw.xpm -CPPSCRIPTFLAGS_Xreset= -DBINDIR=${X11BINDIR} -DXDMCONFIGDIR=${XDMDIR} -CPPSCRIPTFLAGS_Xservers.ws= -DBINDIR=${X11BINDIR} -DDEFAULTVT=${DEFAULTVT} -CPPSCRIPTFLAGS_Xsession= -DBINDIR=${X11BINDIR} \ - -DMKTEMP_COMMAND=/usr/bin/mktemp \ - -DSHELL_CMD=/bin/sh -CPPSCRIPTFLAGS_Xstartup= -DBINDIR=${X11BINDIR} -DXDMCONFIGDIR=${XDMDIR} \ - -DUTMP_FILE=${XDMPIDDIR}/utmp \ - -DWTMP_FILE=${XDMLOGDIR}/wtmp -CPPSCRIPTFLAGS_xdm-config= -DXDMDIR=${XDMDIR} \ - -DXDMXAUTHDIR=${XDMVARDIR} \ - -DXDMLOGDIR=${XDMLOGDIR} \ - -DXDMPIDDIR=${XDMPIDDIR} \ - -DXPM \ - -DSU="su -m" - -CONFIGFILES= GiveConsole TakeConsole \ - Xaccess Xservers.fs Xsession Xsetup_0 Xwilling \ - ${CPPSCRIPTS} -FILES= xorg-bw.xpm xorg.xpm \ - NetBSD-bw.xpm NetBSD-inv.xpm NetBSD.xpm \ - NetBSD-flag.png NetBSD-flag1.xpm NetBSD-flag2.xpm -FILESDIR= ${XDMDIR} -FILESDIR_xorg.xpm= ${X11INCDIR}/X11/pixmaps -FILESDIR_xorg-bw.xpm= ${X11INCDIR}/X11/pixmaps -FILESDIR_NetBSD.xpm= ${X11INCDIR}/X11/pixmaps -FILESDIR_NetBSD-flag.png= ${X11INCDIR}/X11/pixmaps -FILESDIR_NetBSD-flag1.xpm= ${X11INCDIR}/X11/pixmaps -FILESDIR_NetBSD-flag2.xpm= ${X11INCDIR}/X11/pixmaps -FILESDIR_NetBSD-bw.xpm= ${X11INCDIR}/X11/pixmaps -FILESDIR_NetBSD-inv.xpm=${X11INCDIR}/X11/pixmaps -FILESMODE_GiveConsole= ${BINMODE} -FILESMODE_TakeConsole= ${BINMODE} -FILESMODE_Xreset= ${BINMODE} -FILESMODE_Xsetup_0= ${BINMODE} -FILESMODE_Xsession= ${BINMODE} -FILESMODE_Xstartup= ${BINMODE} -FILESMODE_Xwilling= ${BINMODE} - -CONFIGSYMLINKS= Xservers.ws ${XDMDIR}/Xservers - -.PATH: ${X11SRCDIR.xdm}/config - -.include "../Makefile.xdm" - -CPPSCRIPTFLAGS_xdm-config+= -DCHOOSERPATH=${XDMCHOOSERPATH} - -.include -.include diff --git a/external/mit/xorg/bin/xdm/config/Xresources.cpp b/external/mit/xorg/bin/xdm/config/Xresources.cpp deleted file mode 100644 index f408834f0..000000000 --- a/external/mit/xorg/bin/xdm/config/Xresources.cpp +++ /dev/null @@ -1,108 +0,0 @@ -! -! -! -! -! - -Xcursor.theme: whiteglass - -#define BS \ /* cpp can be trickier than m4 */ -#define NLBS \n\ /* don't remove these comments */ -xlogin*login.translations: #override BS - CtrlR: abort-display()NLBS - F1: set-session-argument(failsafe) finish-field()NLBS - Delete: delete-character()NLBS - Left: move-backward-character()NLBS - Right: move-forward-character()NLBS - Home: move-to-begining()NLBS - End: move-to-end()NLBS - CtrlKP_Enter: set-session-argument(failsafe) finish-field()NLBS - KP_Enter: set-session-argument() finish-field()NLBS - CtrlReturn: set-session-argument(failsafe) finish-field()NLBS - Return: set-session-argument() finish-field() - -xlogin*greeting: Welcome to CLIENTHOST -xlogin*namePrompt: \040\040\040\040\040\040\040Login: -xlogin*fail: Login incorrect - -XHASHif WIDTH > 800 -xlogin*greetFont: -adobe-helvetica-bold-o-normal-*-18-*-*-*-*-*-iso8859-1 -xlogin*font: -adobe-helvetica-medium-o-normal-*-14-*-*-*-*-*-iso8859-1 -xlogin*promptFont: -adobe-helvetica-medium-r-normal-*-14-*-*-*-*-*-iso8859-1 -xlogin*failFont: -adobe-helvetica-medium-r-normal-*-14-*-*-*-*-*-iso8859-1 -xlogin*greetFace: Serif-24:bold:italic -xlogin*face: Helvetica-14 -xlogin*promptFace: Helvetica-14:bold -xlogin*failFace: Helvetica-14:bold -XHASHelse -xlogin*greetFont: -adobe-helvetica-bold-o-normal--17-120-100-100-p-92-iso8859-1 -xlogin*font: -adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1 -xlogin*promptFont: -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1 -xlogin*failFont: -adobe-helvetica-bold-o-normal--14-140-75-75-p-82-iso8859-1 -xlogin*greetFace: Serif-18:bold:italic -xlogin*face: Helvetica-12 -xlogin*promptFace: Helvetica-12:bold -xlogin*failFace: Helvetica-14:bold -XHASHendif - -XHASHifdef COLOR -xlogin*borderWidth: 1 -xlogin*frameWidth: 5 -xlogin*innerFramesWidth: 2 -xlogin*shdColor: grey30 -xlogin*hiColor: grey90 -xlogin*background: grey -!xlogin*foreground: darkgreen -xlogin*greetColor: Blue3 -xlogin*failColor: red -*Foreground: black -*Background: #fffff0 -XHASHelse -xlogin*borderWidth: 3 -xlogin*frameWidth: 0 -xlogin*innerFramesWidth: 1 -xlogin*shdColor: black -xlogin*hiColor: black -XHASHendif -#ifdef XPM -XHASHif PLANES >= 8 -XHASHif 1 -! XDM has no support for images with alpha channel, so we precomputed a -! NetBSD logo with fixed background and use it here. If you change this -! file to use another background colour, you need to create a new logo -! xpm file. This can be done with netpbm from pkgsrc: -! -! pngtopnm -mix -background grey NetBSD-flag.png | pnmtoxpm > NetBSD-flag.xpm -! -! (all files in BITMAPDIR) -! -xlogin*logoFileName: BITMAPDIR/**//NetBSD-flag1.xpm -xlogin*useShape: false -XHASHelse -! -! This is the stock method, using a coloured xpm file and a b&w mask xpm. -! Antialiased borders look ugly this way, but it works with arbitrary -! background colours. -! -xlogin*logoFileName: BITMAPDIR/**//XDM_PIXMAP -xlogin*useShape: true -XHASHendif -XHASHelse -xlogin*logoFileName: BITMAPDIR/**//XDM_BWPIXMAP -xlogin*useShape: true -XHASHendif -xlogin*logoPadding: 10 -#endif /* XPM */ - -XConsole.text.geometry: 480x130 -XConsole.verbose: true -XConsole*iconic: true -XConsole*font: fixed - -Chooser*geometry: 700x500+300+200 -Chooser*allowShellResize: false -Chooser*viewport.forceBars: true -Chooser*label.font: *-new century schoolbook-bold-i-normal-*-240-* -Chooser*label.label: XDMCP Host Menu from CLIENTHOST -Chooser*list.font: -*-*-medium-r-normal-*-*-230-*-*-c-*-iso8859-1 -Chooser*Command.font: *-new century schoolbook-bold-r-normal-*-180-* diff --git a/external/mit/xorg/bin/xdpyinfo/Makefile b/external/mit/xorg/bin/xdpyinfo/Makefile deleted file mode 100644 index a7250b6d8..000000000 --- a/external/mit/xorg/bin/xdpyinfo/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2015/07/19 19:49:18 mrg Exp $ - -.include - -# XXX add composite lib support - -PROG= xdpyinfo - -CPPFLAGS+=-I${X11SRCDIR.${PROG}}/../include -DHAVE_CONFIG_H - -LDADD+= -lXtst -lXi -lXrender -lXinerama -lXcomposite \ - -lXxf86vm -lXxf86dga -lXxf86misc -lXext -lX11 \ - -lxcb -lX11-xcb -DPADD+= ${LIBXTST} ${LIBXI} ${LIBXRENDER} ${LIBXINERAMA} ${LIBXCOMPOSITE} \ - ${LIBXXF86VM} ${LIBXXF86DGA} ${LIBXXF86MISC} ${LIBXEXT} ${LIBX11} \ - ${LIBXCB} ${LIBX11XCB} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -COPTS.xdpyinfo.c+= -Wno-error # xf86vmstr.h - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xdriinfo/Makefile b/external/mit/xorg/bin/xdriinfo/Makefile deleted file mode 100644 index 987103871..000000000 --- a/external/mit/xorg/bin/xdriinfo/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2015/07/19 19:49:18 mrg Exp $ - -.include - -PROG= xdriinfo - -SRCS= xdriinfo.c - -#LSC: No pthreads on MINIX! -LDADD+= -lGL -lXext -lX11 -DPADD+= ${LIBGL} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xedit/Makefile b/external/mit/xorg/bin/xedit/Makefile deleted file mode 100644 index 98af91e7a..000000000 --- a/external/mit/xorg/bin/xedit/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -SUBDIR= lisp mp re .WAIT xedit modules - -.include diff --git a/external/mit/xorg/bin/xedit/Makefile.inc b/external/mit/xorg/bin/xedit/Makefile.inc deleted file mode 100644 index 308d7b9c3..000000000 --- a/external/mit/xorg/bin/xedit/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -#__MINIX -.include "../Makefile.inc" - diff --git a/external/mit/xorg/bin/xedit/lisp/Makefile b/external/mit/xorg/bin/xedit/lisp/Makefile deleted file mode 100644 index 28ed7a15b..000000000 --- a/external/mit/xorg/bin/xedit/lisp/Makefile +++ /dev/null @@ -1,32 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2015/07/23 08:03:25 mrg Exp $ - -LIBISPRIVATE= yes - -.include - -LIB= lisp -SRCS= bytecode.c core.c debugger.c format.c hash.c helper.c \ - io.c lisp.c math.c package.c pathname.c read.c \ - regex.c require.c stream.c string.c struct.c time.c \ - write.c xedit.c - -CPPFLAGS+= -DLISP -DLISPDIR=\"${X11LIBDIR}/xedit/lisp\" \ - -I${X11SRCDIR.xedit}/lisp/mp \ - -I${X11SRCDIR.xedit}/lisp/re \ - -I${X11SRCDIR.xedit} - -.if defined(HAVE_PCC) -# code uses gcc-specific "label as values" feature -CPPFLAGS+= -DANSI_SOURCE -.endif - -.PATH: ${X11SRCDIR.xedit}/lisp - -CWARNFLAGS.clang+= -Wno-format - -# Ugh. writes to const char * -COPTS.format.c+= -Wno-error -COPTS.lisp.c+= -Wno-error - -.include -.include diff --git a/external/mit/xorg/bin/xedit/modules/Makefile b/external/mit/xorg/bin/xedit/modules/Makefile deleted file mode 100644 index d1dedc279..000000000 --- a/external/mit/xorg/bin/xedit/modules/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.xedit}/lisp/modules - -FILESDIR=${X11LIBDIR}/xedit/lisp -FILES= indent.lsp lisp.lsp syntax.lsp xedit.lsp - -SUBDIR= progmodes - -.include -.include -.include diff --git a/external/mit/xorg/bin/xedit/modules/progmodes/Makefile b/external/mit/xorg/bin/xedit/modules/progmodes/Makefile deleted file mode 100644 index b71716e44..000000000 --- a/external/mit/xorg/bin/xedit/modules/progmodes/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.xedit}/lisp/modules/progmodes - -FILESDIR=${X11LIBDIR}/xedit/lisp/progmodes -FILES= c.lsp html.lsp imake.lsp lisp.lsp make.lsp man.lsp patch.lsp \ - rpm.lsp sgml.lsp sh.lsp xconf.lsp xlog.lsp xrdb.lsp - -.include -.include diff --git a/external/mit/xorg/bin/xedit/mp/Makefile b/external/mit/xorg/bin/xedit/mp/Makefile deleted file mode 100644 index e1f81db63..000000000 --- a/external/mit/xorg/bin/xedit/mp/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2015/06/27 17:03:30 matt Exp $ - -LIBISPRIVATE= yes - -.include - -LIB= mp -SRCS= mp.c mpi.c mpr.c - -.PATH: ${X11SRCDIR.xedit}/lisp/mp - -.include -.include diff --git a/external/mit/xorg/bin/xedit/re/Makefile b/external/mit/xorg/bin/xedit/re/Makefile deleted file mode 100644 index a4efab153..000000000 --- a/external/mit/xorg/bin/xedit/re/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2015/06/27 17:03:30 matt Exp $ - -LIBISPRIVATE= yes - -.include - -LIB= re -SRCS= re.c rec.c reo.c - -.PATH: ${X11SRCDIR.xedit}/lisp/re - -.include -.include diff --git a/external/mit/xorg/bin/xedit/xedit/Makefile b/external/mit/xorg/bin/xedit/xedit/Makefile deleted file mode 100644 index 675236b8d..000000000 --- a/external/mit/xorg/bin/xedit/xedit/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2015/07/19 19:49:18 mrg Exp $ - -.include - -PROG= xedit -SRCS= xedit.c commands.c util.c ispell.c options.c hook.c lisp.c \ - tags.c hash.c - -CPPFLAGS+= -I${X11SRCDIR.xedit}/lisp/re -CPPFLAGS+= -DHAVE_GETPAGESIZE - -APPDEFS= Xedit Xedit-color - -.for _L in lisp mp re -LIB.${_L}!= cd ${.CURDIR}/../${_L} && ${PRINTOBJDIR} -DPADD+= ${LIB.${_L}}/lib${_L}.a -LDADD+= -L${LIB.${_L}} -l${_L} -.endfor - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xedit/xedit/Makefile.inc b/external/mit/xorg/bin/xedit/xedit/Makefile.inc deleted file mode 100644 index 308d7b9c3..000000000 --- a/external/mit/xorg/bin/xedit/xedit/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -#__MINIX -.include "../Makefile.inc" - diff --git a/external/mit/xorg/bin/xev/Makefile b/external/mit/xorg/bin/xev/Makefile deleted file mode 100644 index 8b7e02936..000000000 --- a/external/mit/xorg/bin/xev/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/07/19 19:49:18 mrg Exp $ - -.include - -PROG= xev - -LDADD+= -lX11 -lXrandr -DPADD+= ${LIBX11} ${LIBXRANDR} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xeyes/Makefile b/external/mit/xorg/bin/xeyes/Makefile deleted file mode 100644 index 670370138..000000000 --- a/external/mit/xorg/bin/xeyes/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -PROG= xeyes -SRCS= xeyes.c Eyes.c transform.c - -LDADD+= -lXmu -lXt -lSM -lICE -lXext -lX11 -lm -DPADD+= ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.${PROG}} - -.include -.include diff --git a/external/mit/xorg/bin/xf86dga/Makefile b/external/mit/xorg/bin/xf86dga/Makefile deleted file mode 100644 index d924e48b3..000000000 --- a/external/mit/xorg/bin/xf86dga/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2010/05/22 02:40:40 mrg Exp $ - -.include - -PROG= dga - -LDADD+= -lXxf86dga -lXext -lX11 -DPADD+= ${LIBXXF86DGA} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.xf86dga} - -COPTS.dga.c+= -Wno-error # XXX xf86dga.h - -.include -.include diff --git a/external/mit/xorg/bin/xfd/Makefile b/external/mit/xorg/bin/xfd/Makefile deleted file mode 100644 index 5b97b7683..000000000 --- a/external/mit/xorg/bin/xfd/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 07:22:21 mrg Exp $ - -.include - -PROG= xfd -SRCS= xfd.c grid.c - -CPPFLAGS+= -DXRENDER -DXFREE86_FT2 -I${DESTDIR}${X11INCDIR}/freetype2 - -APPDEFS=Xfd - -LDADD+= -lXft -lfontconfig -lfreetype -lexpat -lXrender -DPADD+= ${LIBXFT} ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} ${LIBXRENDER} -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xfindproxy/Makefile b/external/mit/xorg/bin/xfindproxy/Makefile deleted file mode 100644 index 14315b2be..000000000 --- a/external/mit/xorg/bin/xfindproxy/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2015/07/19 22:43:26 mrg Exp $ - -.include - -PROG= xfindproxy - -LDADD+= -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xfontsel/Makefile b/external/mit/xorg/bin/xfontsel/Makefile deleted file mode 100644 index 984b9a3ea..000000000 --- a/external/mit/xorg/bin/xfontsel/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 07:22:21 mrg Exp $ - -.include - -PROG= xfontsel -SRCS= xfontsel.c ULabel.c - -APPDEFS=XFontSel - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xfs/Makefile b/external/mit/xorg/bin/xfs/Makefile deleted file mode 100644 index 14e54ff4f..000000000 --- a/external/mit/xorg/bin/xfs/Makefile +++ /dev/null @@ -1,69 +0,0 @@ -# $NetBSD: Makefile,v 1.12 2015/07/17 17:57:11 mrg Exp $ - -.include - -PROG= xfs - -XFSDIR= ${X11SRCDIR.${PROG}} - -.PATH: ${XFSDIR}/man - -.PATH: ${XFSDIR}/difs -SRCS= atom.c charinfo.c difsutils.c dispatch.c events.c \ - extensions.c fontinfo.c fonts.c globals.c initfonts.c main.c \ - resource.c swaprep.c swapreq.c tables.c - -.PATH: ${XFSDIR}/os -SRCS+= access.c config.c connection.c daemon.c error.c io.c osglue.c \ - osinit.c utils.c waitfor.c xfstrans.c - -CPPFLAGS+= -I${XFSDIR}/include \ - -I${DESTDIR}${X11INCDIR}/X11/FS \ - -I${X11SRCDIR.libXfont}/include \ - -I${X11SRCDIR.libXfont}/bitmap \ - -I${XFSDIR}/../include \ - -DHAVE_DAEMON - -CONN_DEFINES= ${X11FLAGS.CONNECTION} -DFONT_t -DTRANS_SERVER \ - -DTRANS_REOPEN -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT - -XFSCONFIGDIR= ${X11ETCDIR}/fs - -CPPFLAGS.initfonts.c= -DFONT_PCF -DFONT_FS -DFONT_SPEEDO -CPPFLAGS.connection.c= ${CONN_DEFINES} -DBSD44SOCKETS \ - ${X11FLAGS.OS_DEFINES} -CPPFLAGS.xfstrans.c= ${CONN_DEFINES} -DBSD44SOCKETS \ - ${X11FLAGS.OS_DEFINES} -CPPFLAGS.utils.c= -DXFSPIDDIR=\"/var/run\" -CPPFLAGS.io.c= ${CONN_DEFINES} -CPPFLAGS.waitfor.c= ${CONN_DEFINES} -CPPFLAGS.error.c= -DUSE_SYSLOG -CPPFLAGS.osglue.c= ${CONN_DEFINES} \ - ${X11FLAGS.OS_DEFINES} -CPPFLAGS.config.c= ${CONN_DEFINES} -# XXX -CPPFLAGS.xfstrans.c+= -Wno-error - -X11EXTRAMANDEFS+= -e 's%__configfilepath__%${XFSCONFIGDIR}/config%g' \ - -e 's%__configfiledesc__%the default file,%g' - - -.PATH: ${XFSDIR}/config -BUILDSYMLINKS= config.cpp fsconfig.cpp -CPPSCRIPTS= fsconfig -CPPSCRIPTFLAGS= -DDEFAULTFONTPATH=${X11FONTDIR}/misc/,${X11FONTDIR}/Type1/,${X11FONTDIR}/75dpi/,${X11FONTDIR}/100dpi/ \ - -DFSERRORS=/var/log/xfs.log -D__appmansuffix__=1 - -CONFIGFILES= fsconfig -FILESNAME= config -FILESDIR= ${XFSCONFIGDIR} - - -LDADD+= -lXfont -lfontenc -lXfontcache -lXext -lX11 -lfreetype -lm -lz -DPADD+= ${LIBXFONT} ${LIBFONTENC} ${LIBXFONTCACHE} ${LIBXEXT} ${LIBX11} \ - ${LIBFREETYPE} ${LIBM} ${LIBZ} - -.PATH: ${XFSDIR} - -.include -.include diff --git a/external/mit/xorg/bin/xfsinfo/Makefile b/external/mit/xorg/bin/xfsinfo/Makefile deleted file mode 100644 index eda7a96f8..000000000 --- a/external/mit/xorg/bin/xfsinfo/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2015/07/22 08:35:26 mrg Exp $ - -.include - -PROG= xfsinfo - -LDADD+= -lFS -DPADD+= ${LIBFS} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xfwp/Makefile b/external/mit/xorg/bin/xfwp/Makefile deleted file mode 100644 index e2849f09e..000000000 --- a/external/mit/xorg/bin/xfwp/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -PROG= xfwp -SRCS= xfwp.c misc.c pm.c transport.c io.c - -CPPFLAGS.transport.c= -DBSD44SOCKETS - -LDADD+= -lICE -DPADD+= ${LIBICE} - -.PATH: ${X11SRCDIR.${PROG}} - -.include -.include diff --git a/external/mit/xorg/bin/xgamma/Makefile b/external/mit/xorg/bin/xgamma/Makefile deleted file mode 100644 index 7c666ad39..000000000 --- a/external/mit/xorg/bin/xgamma/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2015/07/19 22:42:24 mrg Exp $ - -.include - -PROG= xgamma - -LDADD+= -lXxf86vm -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXXF86VM} ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xgc/Makefile b/external/mit/xorg/bin/xgc/Makefile deleted file mode 100644 index 97909c67c..000000000 --- a/external/mit/xorg/bin/xgc/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2013/05/31 07:22:21 mrg Exp $ - -.include - -PROG= xgc -SRCS= dashlist.c planemask.c getfile.c tests.c text.c \ - choice.c main.c interpret.c record.c testfrac.c gram.y lex.l - -YHEADER=1 -CPPFLAGS+=-I. -I${X11SRCDIR.${PROG}} - -APPDEFS=Xgc Xgc-color - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXPM} \ - ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xhost/Makefile b/external/mit/xorg/bin/xhost/Makefile deleted file mode 100644 index 04c2fd785..000000000 --- a/external/mit/xorg/bin/xhost/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2013/05/31 07:22:21 mrg Exp $ - -.include - -PROG= xhost - -CPPFLAGS+=${X11FLAGS.CONNECTION} -DBSD44SOCKETS - -LDADD+= -lXmuu -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xinit/Makefile b/external/mit/xorg/bin/xinit/Makefile deleted file mode 100644 index b2330848b..000000000 --- a/external/mit/xorg/bin/xinit/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2011/08/03 02:56:29 mrg Exp $ - -.include - -PROG= xinit -MAN= xinit.1 startx.1 - -XINITDIR= ${X11ETCDIR}/xinit - -CPPFLAGS+= ${X11FLAGS.CONNECTION} -DBINDIR=\"${X11BINDIR}\" \ - -DRETSIGTYPE=void - -CPPSCRIPTS= startx xinitrc -CPPSCRIPTFLAGS_xinitrc= -DXINITDIR=${XINITDIR} -DBINDIR=${X11BINDIR} \ - -DSHELL_CMD=/bin/sh -DXRDB=xrdb -DXMODMAP=xmodmap \ - -DTWM=twm -DXCLOCK=xclock -DXTERM=${X11BINDIR}/xterm -CPPSCRIPTFLAGS_startx= -DXINITDIR=${XINITDIR} -DBINDIR=${X11BINDIR} \ - -DSHELL_CMD=/bin/sh -DXAUTH=xauth -DXINIT=xinit \ - -DXSERVER=${X11BINDIR}/X -DXTERM=${X11BINDIR}/xterm \ - -DHAS_COOKIE_MAKER \ - -DMK_COOKIE='dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"' - -SCRIPTS= startx -CONFIGFILES= xinitrc -FILESDIR= ${XINITDIR} - -LDADD+= -lXmuu -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -X11EXTRAMANDEFS=-D__xinitdir__=${XINITDIR} -X11MANCPP= yes - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xinput/Makefile b/external/mit/xorg/bin/xinput/Makefile deleted file mode 100644 index d308d65da..000000000 --- a/external/mit/xorg/bin/xinput/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2011/05/23 17:44:41 dsl Exp $ - -.include - -PROG= xinput -SRCS= buttonmap.c feedback.c list.c property.c setint.c setmode.c \ - setptr.c state.c test.c xinput.c - -CPPFLAGS+= -DVERSION='"1.4.0"' - -LDADD+= -lXi -lX11 -lm -DPADD+= ${LIBXI} ${LIBM} -.PATH: ${X11SRCDIR.${PROG}}/src -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xkbcomp/Makefile b/external/mit/xorg/bin/xkbcomp/Makefile deleted file mode 100644 index 04df41713..000000000 --- a/external/mit/xorg/bin/xkbcomp/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -# $NetBSD: Makefile,v 1.10 2015/07/20 23:50:23 mrg Exp $ - -.include -.include "Makefile.common" - -PROG= xkbcomp -SRCS= xkbcomp.c xkbscan.c expr.c vmod.c indicators.c misc.c \ - keymap.c keycodes.c keytypes.c compat.c action.c alias.c \ - symbols.c geometry.c xkbpath.c listing.c \ - xkbparse.y parseutils.c utils.c - -CPPFLAGS.xkbpath.c= -DDFLT_XKB_CONFIG_ROOT=\"${XKBROOTDIR}\" - -CPPFLAGS+= -I${X11SRCDIR.${PROG}} -CPPFLAGS+= -DHAVE_STRDUP -DHAVE_STRCASECMP -CPPFLAGS.geometry.c= -Wno-error # XXX -COPTS.xkbscan.c+= -Wno-stack-protector - -FILESDIR=${XKBROOTDIR} -FILES= README - -SYMLINKS+= ${BINDIR}/xkbcomp ${XKBROOTDIR}/xkbcomp -SYMLINKS+= ${XKBDATADIR} ${XKBCOMPDIR} - -LDADD+= -lxkbfile -lXext -lX11 -DPADD+= ${LIBXKBFILE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -CWARNFLAGS.clang+= -Wno-parentheses - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xkbcomp/Makefile.common b/external/mit/xorg/bin/xkbcomp/Makefile.common deleted file mode 100644 index 4ffc392f0..000000000 --- a/external/mit/xorg/bin/xkbcomp/Makefile.common +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile.common,v 1.3 2010/05/20 12:51:16 christos Exp $ - -XKBROOTDIR= ${X11LIBDIR}/xkb -XKBCOMPDIR= ${XKBROOTDIR}/compiled # actually a link to ${XKBDATADIR} -XKBDATADIR= /var/db/xkb # must be writable! diff --git a/external/mit/xorg/bin/xkbevd/Makefile b/external/mit/xorg/bin/xkbevd/Makefile deleted file mode 100644 index 5644bf756..000000000 --- a/external/mit/xorg/bin/xkbevd/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2015/07/22 08:35:26 mrg Exp $ - -.include - -PROG= xkbevd -SRCS= xkbevd.c cfgscan.c cfgparse.y evargs.c printev.c utils.c - -CPPFLAGS+=-DDFLT_XKB_CONFIG_ROOT='"${X11ROOTDIR}/lib/X11/xkb"' -CPPFLAGS+=-DDFLT_SOUND_CMD='"/usr/bin/audioplay"' -CPPFLAGS+=-DDFLT_SOUND_DIR='"${X11ROOTDIR}/share/sounds/"' -CPPFLAGS+=-DHAVE_STRCASECMP -CPPFLAGS+=-I${X11SRCDIR.${PROG}} -LDADD+= -lxkbfile -lXext -lX11 -DPADD+= ${LIBXKBFILE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xkbprint/Makefile b/external/mit/xorg/bin/xkbprint/Makefile deleted file mode 100644 index 944ecbaca..000000000 --- a/external/mit/xorg/bin/xkbprint/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2015/07/19 22:42:24 mrg Exp $ - -.include - -PROG= xkbprint -SRCS= xkbprint.c utils.c psgeom.c - -CPPFLAGS+= -DHAVE_ASPRINTF - -LDADD+= -lxkbfile -lXext -lX11 -DPADD+= ${LIBXKBFILE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -# XXX -CPPFLAGS.psgeom.c+= -Wno-error - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xkbutils/Makefile b/external/mit/xorg/bin/xkbutils/Makefile deleted file mode 100644 index 830eb9d6f..000000000 --- a/external/mit/xorg/bin/xkbutils/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -SUBDIR= xkbbell xkbvleds xkbwatch - -.include diff --git a/external/mit/xorg/bin/xkbutils/Makefile.inc b/external/mit/xorg/bin/xkbutils/Makefile.inc deleted file mode 100644 index 308d7b9c3..000000000 --- a/external/mit/xorg/bin/xkbutils/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -#__MINIX -.include "../Makefile.inc" - diff --git a/external/mit/xorg/bin/xkbutils/Makefile.xkbutils b/external/mit/xorg/bin/xkbutils/Makefile.xkbutils deleted file mode 100644 index cec23c519..000000000 --- a/external/mit/xorg/bin/xkbutils/Makefile.xkbutils +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile.xkbutils,v 1.5 2015/07/20 23:50:23 mrg Exp $ - -.include - -CPPFLAGS+=-DXKB - -LDADD+= -lxkbfile -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXKBFILE} ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -CPPFLAGS+= -DHAVE_STRCASECMP - -.PATH: ${X11SRCDIR.xkbutils} ${X11SRCDIR.xkbutils}/man - -XORG_PKG_VER_PROG=xkbutils -.include "../../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xkbutils/xkbbell/Makefile b/external/mit/xorg/bin/xkbutils/xkbbell/Makefile deleted file mode 100644 index 998038a03..000000000 --- a/external/mit/xorg/bin/xkbutils/xkbbell/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -PROG= xkbbell - -.include "../Makefile.xkbutils" diff --git a/external/mit/xorg/bin/xkbutils/xkbvleds/Makefile b/external/mit/xorg/bin/xkbutils/xkbvleds/Makefile deleted file mode 100644 index da1f40240..000000000 --- a/external/mit/xorg/bin/xkbutils/xkbvleds/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -PROG= xkbvleds -SRCS= xkbvleds.c LED.c utils.c - -.include "../Makefile.xkbutils" diff --git a/external/mit/xorg/bin/xkbutils/xkbwatch/Makefile b/external/mit/xorg/bin/xkbutils/xkbwatch/Makefile deleted file mode 100644 index 41f5c93f5..000000000 --- a/external/mit/xorg/bin/xkbutils/xkbwatch/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -PROG= xkbwatch -SRCS= xkbwatch.c LED.c utils.c - -.include "../Makefile.xkbutils" diff --git a/external/mit/xorg/bin/xkill/Makefile b/external/mit/xorg/bin/xkill/Makefile deleted file mode 100644 index dc2e14a37..000000000 --- a/external/mit/xorg/bin/xkill/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2014/07/12 20:31:04 nakayama Exp $ - -.include - -PROG= xkill - -LDADD+= -lXmuu -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -CPPFLAGS+= -DPACKAGE_STRING="\"xkill 1.0.4\"" - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xload/Makefile b/external/mit/xorg/bin/xload/Makefile deleted file mode 100644 index 1a8fd8aa2..000000000 --- a/external/mit/xorg/bin/xload/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2013/06/13 11:25:18 christos Exp $ - -.include - -PROG= xload -SRCS= xload.c get_load.c get_rload.c - -CPPFLAGS+=${X11FLAGS.VERSION} -DHAVE_GETLOADAVG - -APPDEFS=XLoad - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xlogo/Makefile b/external/mit/xorg/bin/xlogo/Makefile deleted file mode 100644 index c44aa9ed2..000000000 --- a/external/mit/xorg/bin/xlogo/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 08:01:59 mrg Exp $ - -.include - -PROG= xlogo -SRCS= xlogo.c Logo.c RenderLogo.c - -CPPFLAGS+= -DXRENDER -DXFREE86_FT2 -I${DESTDIR}${X11INCDIR}/freetype2 - -APPDEFS=XLogo XLogo-color - -LDADD+= -lXft -lfontconfig -lfreetype -lexpat -lXrender -DPADD+= ${LIBXFT} ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} ${LIBXRENDER} -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xlsatoms/Makefile b/external/mit/xorg/bin/xlsatoms/Makefile deleted file mode 100644 index 2438bd861..000000000 --- a/external/mit/xorg/bin/xlsatoms/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/07/19 23:15:05 mrg Exp $ - -.include - -PROG= xlsatoms - -LDADD+= -lxcb -DPADD+= ${LIBXCB} - -.if defined(__MINIX) -LDADD+= -lmthread -DPADD+= ${LIBMTHREAD} -.endif # defined(__MINIX) - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xlsclients/Makefile b/external/mit/xorg/bin/xlsclients/Makefile deleted file mode 100644 index 38ba8cfd1..000000000 --- a/external/mit/xorg/bin/xlsclients/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2014/07/12 20:31:04 nakayama Exp $ - -.include - -PROG= xlsclients - -CPPFLAGS+= -I${DESTDIR}${X11INCDIR} -DHAVE_STRNLEN \ - -DPACKAGE_STRING="\"xlsclients 1.1.3\"" - -#BUILDSYMLINKS= xlscli.man xlsclients.man - -LDADD+= -lxcb -lxcb-atom -DPADD+= ${LIBXCB} ${LIBXCB_ATOM} - -.if defined(__MINIX) -LDADD+= -lmthread -DPADD+= ${LIBMTHREAD} -.endif # defined(__MINIX) - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xlsfonts/Makefile b/external/mit/xorg/bin/xlsfonts/Makefile deleted file mode 100644 index 777bd964e..000000000 --- a/external/mit/xorg/bin/xlsfonts/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2015/07/20 03:12:57 mrg Exp $ - -.include - -PROG= xlsfonts -SRCS= xlsfonts.c dsimple.c - -LDADD+= -lXext -lX11 -DPADD+= ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -COPTS.xlsfonts.c+= -Wno-error - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xmag/Makefile b/external/mit/xorg/bin/xmag/Makefile deleted file mode 100644 index b8d8ae49f..000000000 --- a/external/mit/xorg/bin/xmag/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/07/20 23:50:23 mrg Exp $ - -.include - -PROG= xmag -SRCS= xmag.c CutPaste.c RootWin.c Scale.c - -APPDEFS=Xmag - -CPPFLAGS+= -DHAVE_LRINT -DHAVE_NANOSLEEP - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBM} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xman/Makefile b/external/mit/xorg/bin/xman/Makefile deleted file mode 100644 index e2bda3729..000000000 --- a/external/mit/xorg/bin/xman/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2015/07/20 23:50:23 mrg Exp $ - -.include - -PROG= xman -SRCS= ScrollByL.c handler.c man.c buttons.c help.c \ - search.c globals.c main.c misc.c tkfuncs.c vendor.c - -CPPFLAGS+=${X11FLAGS.VERSION} -CPPFLAGS+=-DHELPFILE=\"${X11LIBDIR}/xman.help\" -CPPFLAGS+=-DMANCONFIGSTYLE_OpenBSD -DMANCONF=\"/etc/man.conf\" - -APPDEFS=Xman - -FILES= xman.help -FILESDIR=${X11LIBDIR} - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults ${X11SRCDIR.${PROG}}/man - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xmessage/Makefile b/external/mit/xorg/bin/xmessage/Makefile deleted file mode 100644 index 8ab0c6181..000000000 --- a/external/mit/xorg/bin/xmessage/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/07/22 08:46:51 mrg Exp $ - -.include - -PROG= xmessage -SRCS= xmessage.c makeform.c readfile.c - -APPDEFS=Xmessage Xmessage-color - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man -.PATH: ${X11SRCDIR.${PROG}}/app-defaults - -.include -.include diff --git a/external/mit/xorg/bin/xmh/Makefile b/external/mit/xorg/bin/xmh/Makefile deleted file mode 100644 index a5a478420..000000000 --- a/external/mit/xorg/bin/xmh/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2015/07/19 23:15:06 mrg Exp $ - -.include - -PROG= xmh -SRCS= bbox.c command.c compfuncs.c folder.c init.c main.c \ - menu.c mlist.c msg.c pick.c popup.c screen.c toc.c \ - tocfuncs.c tocutil.c tsource.c util.c viewfuncs.c \ - miscfuncs.c - -CPPFLAGS+= -I${X11SRCDIR.${PROG}}/../include -CPPFLAGS+= -DHAS_VFORK -DXVENDORNAME=${XVENDORNAME} \ - -DXORG_RELEASE=${XORG_RELEASE} - -APPDEFS=Xmh - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -CWARNFLAGS.clang+= -Wno-format - -.include -.include diff --git a/external/mit/xorg/bin/xmkmf/Makefile b/external/mit/xorg/bin/xmkmf/Makefile deleted file mode 100644 index bdc17d768..000000000 --- a/external/mit/xorg/bin/xmkmf/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -CPPSCRIPTS= xmkmf -CPPSCRIPTFLAGS= -DCONFIGDIRSPEC=\"-I${X11LIBDIR}/config\" -SCRIPTS= ${CPPSCRIPTS} -MAN= xmkmf.1 - -.PATH: ${X11SRCDIR.imake} - -.include -.include diff --git a/external/mit/xorg/bin/xmlwf/Makefile b/external/mit/xorg/bin/xmlwf/Makefile deleted file mode 100644 index edd3c4138..000000000 --- a/external/mit/xorg/bin/xmlwf/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2012/02/29 20:07:56 tron Exp $ - -.include - -SYMLINKS+= /usr/bin/xmlwf ${BINDIR}/xmlwf - -.include -.include diff --git a/external/mit/xorg/bin/xmodmap/Makefile b/external/mit/xorg/bin/xmodmap/Makefile deleted file mode 100644 index 6c984eafa..000000000 --- a/external/mit/xorg/bin/xmodmap/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2015/07/19 23:15:06 mrg Exp $ - -.include - -PROG= xmodmap -SRCS= xmodmap.c pf.c handle.c exec.c - -CPPFLAGS+= -DHAVE_ASPRINTF -DHAVE_STRNCASECMP - -LDADD+= -lX11 -DPADD+= ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -COPTS.handle.c+=-Wno-error # uses XKeycodeToKeysym -COPTS.exec.c+= -Wno-error # uses XKeycodeToKeysym - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xmore/Makefile b/external/mit/xorg/bin/xmore/Makefile deleted file mode 100644 index 0dc21ad63..000000000 --- a/external/mit/xorg/bin/xmore/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2010/08/14 09:26:46 mrg Exp $ - -.include - -PROG= xmore -APPDEFS= XMore - -SRCS= xmore.c - -CPPFLAGS+= -DXMORE - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} \ - ${LIBICE} ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults - -.include -.include diff --git a/external/mit/xorg/bin/xprop/Makefile b/external/mit/xorg/bin/xprop/Makefile deleted file mode 100644 index f6e0b2c28..000000000 --- a/external/mit/xorg/bin/xprop/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2013/05/30 23:42:19 mrg Exp $ - -.include - -PROG= xprop -SRCS= xprop.c dsimple.c clientwin.c - -CPPFLAGS+=-DHAVE_WCHAR_H -DHAVE_WCTYPE_H -DNO_WIDEC_H -CPPFLAGS+=-I${X11SRCDIR.${PROG}}/../include - -LDADD+= -lXmuu -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -COPTS.xprop.c+= -Wno-error # uses XKeycodeToKeysym - -.include -.include diff --git a/external/mit/xorg/bin/xrandr/Makefile b/external/mit/xorg/bin/xrandr/Makefile deleted file mode 100644 index a4509aed4..000000000 --- a/external/mit/xorg/bin/xrandr/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2013/05/31 09:14:18 mrg Exp $ - -.include - -PROG= xrandr - -LDADD+= -lXrandr -lXrender -lXext -lX11 -lm -DPADD+= ${LIBXRANDR} ${LIBXRENDER} ${LIBXEXT} ${LIBX11} ${LIBM} - -CPPFLAGS+= -DVERSION=\"1.4.0\" - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -CWARNFLAGS.clang+= -Wno-parentheses - -.include -.include diff --git a/external/mit/xorg/bin/xrdb/Makefile b/external/mit/xorg/bin/xrdb/Makefile deleted file mode 100644 index 6869f5235..000000000 --- a/external/mit/xorg/bin/xrdb/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2014/07/12 20:31:04 nakayama Exp $ - -.include - -PROG= xrdb - -CPPFLAGS+=-DCPP="\"/usr/bin/cpp -traditional\"" -DHAS_MKSTEMP # XXX -CPPFLAGS+=-DHAVE_ASPRINTF -DPACKAGE_STRING="\"xrdb 1.1.0\"" - -LDADD+= -lXmuu -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xrefresh/Makefile b/external/mit/xorg/bin/xrefresh/Makefile deleted file mode 100644 index 6188dbd44..000000000 --- a/external/mit/xorg/bin/xrefresh/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2013/05/31 08:01:59 mrg Exp $ - -.include - -PROG= xrefresh - -LDADD+= -lXext -lX11 -DPADD+= ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xset/Makefile b/external/mit/xorg/bin/xset/Makefile deleted file mode 100644 index 771039088..000000000 --- a/external/mit/xorg/bin/xset/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2014/07/12 20:31:04 nakayama Exp $ - -.include - -PROG= xset - -CPPFLAGS+=${X11FLAGS.EXTENSION} -DXKB -CPPFLAGS+= -DPACKAGE_STRING="\"xset 1.2.3\"" - -LDADD+= -lXmuu -lXt -lSM -lICE -lXxf86misc -lXfontcache -lXext -lX11 -DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXXF86MISC} ${LIBXFONTCACHE} -DPADD+= ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xsetmode/Makefile b/external/mit/xorg/bin/xsetmode/Makefile deleted file mode 100644 index 8ee787b09..000000000 --- a/external/mit/xorg/bin/xsetmode/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -PROG= xsetmode - -LDADD+= -lXi -lXext -lX11 -DPADD+= ${LIBXI} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} - -.include -.include diff --git a/external/mit/xorg/bin/xsetpointer/Makefile b/external/mit/xorg/bin/xsetpointer/Makefile deleted file mode 100644 index 3654d6f14..000000000 --- a/external/mit/xorg/bin/xsetpointer/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -PROG= xsetpointer - -LDADD+= -lXi -lXext -lX11 -DPADD+= ${LIBXI} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} - -.include -.include diff --git a/external/mit/xorg/bin/xsetroot/Makefile b/external/mit/xorg/bin/xsetroot/Makefile deleted file mode 100644 index 5c8bf8b30..000000000 --- a/external/mit/xorg/bin/xsetroot/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2013/05/31 09:14:18 mrg Exp $ - -.include - -PROG= xsetroot - -CPPFLAGS+= -DPACKAGE_STRING="\"xsetroot 1.1.1\"" - -LDADD+= -lXmuu -lXt -lSM -lICE -lXext -lX11 -lXcursor -DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} ${LIBXCURSOR} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xsetwallpaper/Makefile b/external/mit/xorg/bin/xsetwallpaper/Makefile deleted file mode 100644 index a2b61110e..000000000 --- a/external/mit/xorg/bin/xsetwallpaper/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2012/03/22 23:46:26 joerg Exp $ - -NOMAN= # defined - -.include - -PROG= xsetwallpaper -SRCS= xsetwallpaper.c -SRCS+= stb_image.c - -CPPFLAGS+= -I${NETBSDSRCDIR}/sys -I${NETBSDSRCDIR}/sys/dev/stbi - -SRCPATH= ${X11SRCDIR.local}/programs/xsetwallpaper - -LDADD+= -lm -lX11 -DPADD+= ${LIBM} ${LIBX11} - -.PATH: ${X11SRCDIR.local}/programs/xsetwallpaper -.PATH: ${NETBSDSRCDIR}/sys/dev/stbi - -WARNS= 4 - -CPPFLAGS.stb_image.c+= -Wno-shadow -CPPFLAGS.stb_image.c+= -Wno-sign-compare -CPPFLAGS.stb_image.c+= -Wno-missing-prototypes -CPPFLAGS.stb_image.c+= -Wno-missing-field-initializers - -CWARNFLAGS.clang+= -Wno-missing-noreturn -Wno-self-assign - -.include -.include diff --git a/external/mit/xorg/bin/xsm/Makefile b/external/mit/xorg/bin/xsm/Makefile deleted file mode 100644 index c7af62b13..000000000 --- a/external/mit/xorg/bin/xsm/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 08:02:00 mrg Exp $ - -.include - -PROG= xsm -SRCS= auth.c choose.c info.c list.c lock.c log.c \ - mainwin.c misc.c popup.c printhex.c prop.c remote.c \ - restart.c save.c saveutil.c signals.c xsm.c xtwatch.c - -XSMDIR= ${X11ETCDIR}/xsm - -CPPFLAGS+=-DHAVE_MKSTEMP -DHAVE_PUTENV -CPPFLAGS.remote.c= -DRSHCMD=\"ssh\" -CPPFLAGS.restart.c= -DSYSTEM_INIT_FILE=\"${XSMDIR}/system.xsm\" - -CONFIGFILES= system.xsm -FILESDIR= ${XSMDIR} - -.PATH: ${X11SRCDIR.${PROG}}/app-defaults -APPDEFS=XSm - -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xstdcmap/Makefile b/external/mit/xorg/bin/xstdcmap/Makefile deleted file mode 100644 index 33b5b369e..000000000 --- a/external/mit/xorg/bin/xstdcmap/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 09:14:18 mrg Exp $ - -.include - -PROG= xstdcmap - -CPPFLAGS+= -DPACKAGE_STRING="\"xstdcmap 1.0.3\"" - -LDADD+= -lXmu -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xterm/Makefile b/external/mit/xorg/bin/xterm/Makefile deleted file mode 100644 index a3fe5e83d..000000000 --- a/external/mit/xorg/bin/xterm/Makefile +++ /dev/null @@ -1,56 +0,0 @@ -# $NetBSD: Makefile,v 1.15 2015/07/23 09:37:59 mrg Exp $ - -.include - -PROG= xterm -SRCS= button.c charproc.c charsets.c cursor.c data.c doublechr.c \ - fontutils.c input.c linedata.c menu.c misc.c print.c ptydata.c \ - screen.c scrollback.c scrollbar.c tabs.c util.c xstrings.c \ - TekPrsTbl.c Tekproc.c VTPrsTbl.c main.c charclass.c precompose.c \ - wcwidth.c xutf8.c cachedGCs.c xtermcap.c version.c - -# graphics_regis.c graphics_sixel.c -# xterm.appdata.xml - -CPPFLAGS+= -I${X11SRCDIR.${PROG}} \ - -I${X11SRCDIR.${PROG}}/../include \ - -I${DESTDIR}${X11INCDIR}/freetype2 \ - -DPROJECTROOT=${X11ROOTDIR} \ - -DHAVE_CONFIG_H \ - -D_REENTRANT \ - ${X11FLAGS.VERSION} - -CWARNFLAGS.clang+= -Wno-empty-body - -APPDEFS=XTerm.ad XTerm-color.ad - -BUILDSYMLINKS= XTerm-col.ad XTerm-color.ad - -#CPPFLAGS+=-DOPT_TRACE -#SRCS+=trace.c - -LDADD+= -lXft -lfontconfig -lfreetype -lexpat -lXrender -DPADD+= ${LIBXFT} ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} ${LIBXRENDER} -LDADD+= -lXaw -lXmu -lXt -lSM -lICE -lXinerama -DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXINERAMA} -LDADD+= -lXpm -lXext -lX11 -lcurses -lterminfo -lutil -DPADD+= ${LIBXPM} ${LIBXEXT} ${LIBX11} ${LIBCURSES} ${LIBTERMINFO} ${LIBUTIL} - -.if defined(__MINIX) -LDADD+= -lmthread -DPADD+= ${LIBMTHREAD} -.endif # defined(__MINIX) - -SUBDIR= resize uxterm - -.PATH: ${X11SRCDIR.${PROG}} - -COPTS.input.c+= -Wno-error # uses XKeycodeToKeysym - -# XXXMRG should probably build builtin_icons.h - -.include "Makefile.inc" - -.include -.include -.include diff --git a/external/mit/xorg/bin/xterm/Makefile.inc b/external/mit/xorg/bin/xterm/Makefile.inc deleted file mode 100644 index 25d661f71..000000000 --- a/external/mit/xorg/bin/xterm/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.1 2008/10/14 23:37:19 cube Exp $ - -X11EXTRAMANDEFS+= -e 's,__mansuffix__,1,g' diff --git a/external/mit/xorg/bin/xterm/resize/Makefile b/external/mit/xorg/bin/xterm/resize/Makefile deleted file mode 100644 index 4a7bc738e..000000000 --- a/external/mit/xorg/bin/xterm/resize/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2013/05/31 21:40:29 mrg Exp $ - -.include - -PROG= resize -SRCS= resize.c xstrings.c version.c - -CPPFLAGS+=-I${X11SRCDIR.xterm} -CPPFLAGS+=-DHAVE_TERMCAP_H - -.PATH: ${X11SRCDIR.xterm} - -LDADD+= -lterminfo -DPADD+= ${LIBTERMINFO} - -.include -.include diff --git a/external/mit/xorg/bin/xterm/uxterm/Makefile b/external/mit/xorg/bin/xterm/uxterm/Makefile deleted file mode 100644 index 4b2761fa2..000000000 --- a/external/mit/xorg/bin/xterm/uxterm/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -SCRIPTS=uxterm - -APPDEFS=UXTerm.ad - -.PATH: ${X11SRCDIR.xterm} - -.include -.include diff --git a/external/mit/xorg/bin/xtrap/Makefile b/external/mit/xorg/bin/xtrap/Makefile deleted file mode 100644 index 517e8f268..000000000 --- a/external/mit/xorg/bin/xtrap/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -SUBDIR= xtrapinfo xtrapout xtrapreset xtrapstats xtrapin xtrapproto xtrapchar - -MAN= xtrap.1 - -.for _M in ${SUBDIR} -MLINKS+=xtrap.1 ${_M}.1 -.endfor - -.PATH: ${X11SRCDIR.xtrap} - -.include -.include -.include diff --git a/external/mit/xorg/bin/xtrap/Makefile.inc b/external/mit/xorg/bin/xtrap/Makefile.inc deleted file mode 100644 index 308d7b9c3..000000000 --- a/external/mit/xorg/bin/xtrap/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -#__MINIX -.include "../Makefile.inc" - diff --git a/external/mit/xorg/bin/xtrap/Makefile.xtrap b/external/mit/xorg/bin/xtrap/Makefile.xtrap deleted file mode 100644 index dfd6e89e5..000000000 --- a/external/mit/xorg/bin/xtrap/Makefile.xtrap +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile.xtrap,v 1.2 2011/07/01 01:25:52 mrg Exp $ - -NOMAN= 1 - -.include - -SRCS+= ${PROG}.c XEKeybCtrl.c - -MLINKS+=xtrap.1 ${PROG}.1 - -LDADD+= -lXTrap -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXTRAP} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.xtrap} - -.include -.include - -# XXX -.if defined(HAVE_GCC) -COPTS+= -Wno-error -.endif diff --git a/external/mit/xorg/bin/xtrap/xtrapchar/Makefile b/external/mit/xorg/bin/xtrap/xtrapchar/Makefile deleted file mode 100644 index b8d83be58..000000000 --- a/external/mit/xorg/bin/xtrap/xtrapchar/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -PROG= xtrapchar -SRCS= chparse.c - -.include "../Makefile.xtrap" diff --git a/external/mit/xorg/bin/xtrap/xtrapin/Makefile b/external/mit/xorg/bin/xtrap/xtrapin/Makefile deleted file mode 100644 index 841f602de..000000000 --- a/external/mit/xorg/bin/xtrap/xtrapin/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -PROG= xtrapin - -.include "../Makefile.xtrap" diff --git a/external/mit/xorg/bin/xtrap/xtrapinfo/Makefile b/external/mit/xorg/bin/xtrap/xtrapinfo/Makefile deleted file mode 100644 index 2a763d49b..000000000 --- a/external/mit/xorg/bin/xtrap/xtrapinfo/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -PROG= xtrapinfo - -.include "../Makefile.xtrap" diff --git a/external/mit/xorg/bin/xtrap/xtrapout/Makefile b/external/mit/xorg/bin/xtrap/xtrapout/Makefile deleted file mode 100644 index 96fb3800e..000000000 --- a/external/mit/xorg/bin/xtrap/xtrapout/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -PROG= xtrapout - -.include "../Makefile.xtrap" diff --git a/external/mit/xorg/bin/xtrap/xtrapproto/Makefile b/external/mit/xorg/bin/xtrap/xtrapproto/Makefile deleted file mode 100644 index b08c916ef..000000000 --- a/external/mit/xorg/bin/xtrap/xtrapproto/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -PROG= xtrapproto - -.include "../Makefile.xtrap" diff --git a/external/mit/xorg/bin/xtrap/xtrapreset/Makefile b/external/mit/xorg/bin/xtrap/xtrapreset/Makefile deleted file mode 100644 index fa1217999..000000000 --- a/external/mit/xorg/bin/xtrap/xtrapreset/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -PROG= xtrapreset - -.include "../Makefile.xtrap" diff --git a/external/mit/xorg/bin/xtrap/xtrapstats/Makefile b/external/mit/xorg/bin/xtrap/xtrapstats/Makefile deleted file mode 100644 index 8ae56a5b1..000000000 --- a/external/mit/xorg/bin/xtrap/xtrapstats/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -PROG= xtrapstats - -.include "../Makefile.xtrap" diff --git a/external/mit/xorg/bin/xvidtune/Makefile b/external/mit/xorg/bin/xvidtune/Makefile deleted file mode 100644 index 642a0183c..000000000 --- a/external/mit/xorg/bin/xvidtune/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2013/05/31 08:02:00 mrg Exp $ - -.include - -PROG= xvidtune -APPDEFS= Xvidtune - -SRCS= xvidtune.c - -LDADD+= -lXxf86vm -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -DPADD+= ${LIBXXF86VM} ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \ - ${LIBXPM} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/app-defaults -.PATH: ${X11SRCDIR.${PROG}}/man - -VENDOR_NAME=The Xorg Foundation - -.include -.include diff --git a/external/mit/xorg/bin/xvinfo/Makefile b/external/mit/xorg/bin/xvinfo/Makefile deleted file mode 100644 index 6bdc706cb..000000000 --- a/external/mit/xorg/bin/xvinfo/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2015/07/19 23:15:06 mrg Exp $ - -.include - -PROG= xvinfo - -LDADD+= -lXv -lXext -lX11 -DPADD+= ${LIBXV} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man - -CWARNFLAGS.clang+= -Wno-dangling-else - -.include "../../xorg-pkg-ver.mk" - -.include -.include diff --git a/external/mit/xorg/bin/xwd/Makefile b/external/mit/xorg/bin/xwd/Makefile deleted file mode 100644 index abe8347fa..000000000 --- a/external/mit/xorg/bin/xwd/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2014/03/17 10:09:18 mrg Exp $ - -.include - -PROG= xwd -SRCS= xwd.c clientwin.c dsimple.c list.c multiVis.c - -CPPFLAGS+=-I${X11SRCDIR./xlsfonts} -DXKB -.PATH: ${X11SRCDIR./xlsfonts} - -LDADD+= -lXmuu -lXt -lSM -lICE -lXext -lX11 -DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/bin/xwininfo/Makefile b/external/mit/xorg/bin/xwininfo/Makefile deleted file mode 100644 index 2bc8df629..000000000 --- a/external/mit/xorg/bin/xwininfo/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2013/05/31 09:14:18 mrg Exp $ - -.include - -PROG= xwininfo -SRCS= xwininfo.c clientwin.c dsimple.c - -XWININFODIR= ${X11SRCDIR.${PROG}} -CPPFLAGS+=-I${XWININFODIR} -I${XWININFODIR}/../include -DICONV_CONST=const - -.PATH: ${XWININFODIR} ${XWININFODIR}/man - -LDADD+= -lXmuu -lXt -lSM -lICE -lXext -lX11 -lxcb -lxcb-shape -DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} ${LIBXCB} ${LIBXCB_SHAPE} - -CWARNFLAGS.clang+= -Wno-tautological-compare - -.include -.include diff --git a/external/mit/xorg/bin/xwud/Makefile b/external/mit/xorg/bin/xwud/Makefile deleted file mode 100644 index e18a49d2d..000000000 --- a/external/mit/xorg/bin/xwud/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2015/07/22 08:46:51 mrg Exp $ - -.include - -PROG= xwud - -LDADD+= -lX11 -DPADD+= ${LIBX11} - -.PATH: ${X11SRCDIR.${PROG}} -.PATH: ${X11SRCDIR.${PROG}}/man - -.include -.include diff --git a/external/mit/xorg/etc/Makefile b/external/mit/xorg/etc/Makefile deleted file mode 100644 index d4abf5806..000000000 --- a/external/mit/xorg/etc/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/11/12 17:05:48 tsutsui Exp $ - -.include - -.if exists(etc.${RELEASEMACHINE}/Makefile.inc) -.include "etc.${RELEASEMACHINE}/Makefile.inc" -.endif - -FILESDIR= ${X11ETCDIR} -CONFIGFILES= -CONFIGSYMLINKS= - -.if defined(XORGCONF_FILES) -.for file in ${XORGCONF_FILES} -CONFIGFILES+= ${file} -FILESMODE_${file:T}= 644 -.endfor -.endif - -.include diff --git a/external/mit/xorg/etc/etc.dreamcast/Makefile.inc b/external/mit/xorg/etc/etc.dreamcast/Makefile.inc deleted file mode 100644 index 4c60fdcf0..000000000 --- a/external/mit/xorg/etc/etc.dreamcast/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.1 2010/11/12 17:05:49 tsutsui Exp $ - -XORGCONF_FILES= etc.${MACHINE}/xorg.conf.jpkbd etc.${MACHINE}/xorg.conf.uskbd diff --git a/external/mit/xorg/etc/etc.dreamcast/xorg.conf.jpkbd b/external/mit/xorg/etc/etc.dreamcast/xorg.conf.jpkbd deleted file mode 100644 index 8e39ae054..000000000 --- a/external/mit/xorg/etc/etc.dreamcast/xorg.conf.jpkbd +++ /dev/null @@ -1,49 +0,0 @@ -# $NetBSD: xorg.conf.jpkbd,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "Mouse0" "CorePointer" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" - FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" - Option "Protocol" "wskbd" - Option "Device" "/dev/wskbd0" -# Option "XkbLayout" "us" - Option "XkbLayout" "jp(106)" -# Option "XkbOptions" "ctrl:swapcaps" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Protocol" "wsmouse" - Option "ButtonMapping" "1 2 3 2" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" -EndSection - -Section "Monitor" - Identifier "Monitor" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.dreamcast/xorg.conf.uskbd b/external/mit/xorg/etc/etc.dreamcast/xorg.conf.uskbd deleted file mode 100644 index c4c5cfc3a..000000000 --- a/external/mit/xorg/etc/etc.dreamcast/xorg.conf.uskbd +++ /dev/null @@ -1,49 +0,0 @@ -# $NetBSD: xorg.conf.uskbd,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "Mouse0" "CorePointer" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" - FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" - Option "Protocol" "wskbd" - Option "Device" "/dev/wskbd0" - Option "XkbLayout" "us" -# Option "XkbLayout" "jp(106)" -# Option "XkbOptions" "ctrl:swapcaps" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Protocol" "wsmouse" - Option "ButtonMapping" "1 2 3 2" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" -EndSection - -Section "Monitor" - Identifier "Monitor" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.hpc/Makefile.inc b/external/mit/xorg/etc/etc.hpc/Makefile.inc deleted file mode 100644 index 196f86959..000000000 --- a/external/mit/xorg/etc/etc.hpc/Makefile.inc +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.1 2010/11/13 02:07:28 tsutsui Exp $ - -XORGCONF_FILES+= \ - etc.hpc/xorg.conf.640x240-jp \ - etc.hpc/xorg.conf.640x240-us \ - etc.hpc/xorg.conf.640x480-jp \ - etc.hpc/xorg.conf.640x480-us \ - etc.hpc/xorg.conf.800x600-jp \ - etc.hpc/xorg.conf.800x600-us diff --git a/external/mit/xorg/etc/etc.hpc/xorg.conf.640x240-jp b/external/mit/xorg/etc/etc.hpc/xorg.conf.640x240-jp deleted file mode 100644 index 8a70a1172..000000000 --- a/external/mit/xorg/etc/etc.hpc/xorg.conf.640x240-jp +++ /dev/null @@ -1,77 +0,0 @@ -# $NetBSD: xorg.conf.640x240-jp,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Mouse0" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" -# Option "XkbLayout" "us" - Option "XkbLayout" "jp" -# Option "XkbModel" "foo" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "Device" "/dev/wsmouse0" - - Option "MinX" "0" - Option "MaxX" "639" -# Option "MaxX" "799" - - Option "MinY" "0" - Option "MaxY" "239" -# Option "MaxY" "479" - -# Option "Rotate" "CCW" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - -# Option "Rotate" "CCW" -EndSection - -Section "Monitor" - Identifier "Monitor" -# VendorName "hpc" -# ModelName "lcd" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 1 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 8 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.hpc/xorg.conf.640x240-us b/external/mit/xorg/etc/etc.hpc/xorg.conf.640x240-us deleted file mode 100644 index ec09a6096..000000000 --- a/external/mit/xorg/etc/etc.hpc/xorg.conf.640x240-us +++ /dev/null @@ -1,77 +0,0 @@ -# $NetBSD: xorg.conf.640x240-us,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Mouse0" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" - Option "XkbLayout" "us" -# Option "XkbLayout" "jp" -# Option "XkbModel" "foo" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "Device" "/dev/wsmouse0" - - Option "MinX" "0" - Option "MaxX" "639" -# Option "MaxX" "799" - - Option "MinY" "0" - Option "MaxY" "239" -# Option "MaxY" "479" - -# Option "Rotate" "CCW" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - -# Option "Rotate" "CCW" -EndSection - -Section "Monitor" - Identifier "Monitor" -# VendorName "hpc" -# ModelName "lcd" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 1 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 8 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.hpc/xorg.conf.640x480-jp b/external/mit/xorg/etc/etc.hpc/xorg.conf.640x480-jp deleted file mode 100644 index b29771aad..000000000 --- a/external/mit/xorg/etc/etc.hpc/xorg.conf.640x480-jp +++ /dev/null @@ -1,77 +0,0 @@ -# $NetBSD: xorg.conf.640x480-jp,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Mouse0" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" -# Option "XkbLayout" "us" - Option "XkbLayout" "jp" -# Option "XkbModel" "foo" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "Device" "/dev/wsmouse0" - - Option "MinX" "0" - Option "MaxX" "639" -# Option "MaxX" "799" - - Option "MinY" "0" -# Option "MaxY" "239" - Option "MaxY" "479" - -# Option "Rotate" "CCW" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - -# Option "Rotate" "CCW" -EndSection - -Section "Monitor" - Identifier "Monitor" -# VendorName "hpc" -# ModelName "lcd" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 1 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 8 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.hpc/xorg.conf.640x480-us b/external/mit/xorg/etc/etc.hpc/xorg.conf.640x480-us deleted file mode 100644 index 45e331e22..000000000 --- a/external/mit/xorg/etc/etc.hpc/xorg.conf.640x480-us +++ /dev/null @@ -1,77 +0,0 @@ -# $NetBSD: xorg.conf.640x480-us,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Mouse0" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" - Option "XkbLayout" "us" -# Option "XkbLayout" "jp" -# Option "XkbModel" "foo" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "Device" "/dev/wsmouse0" - - Option "MinX" "0" - Option "MaxX" "639" -# Option "MaxX" "799" - - Option "MinY" "0" -# Option "MaxY" "239" - Option "MaxY" "479" - -# Option "Rotate" "CCW" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - -# Option "Rotate" "CCW" -EndSection - -Section "Monitor" - Identifier "Monitor" -# VendorName "hpc" -# ModelName "lcd" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 1 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 8 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.hpc/xorg.conf.800x600-jp b/external/mit/xorg/etc/etc.hpc/xorg.conf.800x600-jp deleted file mode 100644 index e27d41002..000000000 --- a/external/mit/xorg/etc/etc.hpc/xorg.conf.800x600-jp +++ /dev/null @@ -1,78 +0,0 @@ -# $NetBSD: xorg.conf.800x600-jp,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Mouse0" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" -# Option "XkbLayout" "us" - Option "XkbLayout" "jp" -# Option "XkbModel" "foo" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "Device" "/dev/wsmouse0" - - Option "MinX" "0" -# Option "MaxX" "639" - Option "MaxX" "799" - - Option "MinY" "0" -# Option "MaxY" "239" -# Option "MaxY" "479" - Option "MaxY" "599" - -# Option "Rotate" "CCW" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - -# Option "Rotate" "CCW" -EndSection - -Section "Monitor" - Identifier "Monitor" -# VendorName "hpc" -# ModelName "lcd" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 1 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 8 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.hpc/xorg.conf.800x600-us b/external/mit/xorg/etc/etc.hpc/xorg.conf.800x600-us deleted file mode 100644 index 72f7a9ff9..000000000 --- a/external/mit/xorg/etc/etc.hpc/xorg.conf.800x600-us +++ /dev/null @@ -1,78 +0,0 @@ -# $NetBSD: xorg.conf.800x600-us,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Mouse0" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" - Option "XkbLayout" "us" -# Option "XkbLayout" "jp" -# Option "XkbModel" "foo" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "Device" "/dev/wsmouse0" - - Option "MinX" "0" -# Option "MaxX" "639" - Option "MaxX" "799" - - Option "MinY" "0" -# Option "MaxY" "239" -# Option "MaxY" "479" - Option "MaxY" "599" - -# Option "Rotate" "CCW" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - -# Option "Rotate" "CCW" -EndSection - -Section "Monitor" - Identifier "Monitor" -# VendorName "hpc" -# ModelName "lcd" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 1 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 8 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.hpcarm/Makefile.inc b/external/mit/xorg/etc/etc.hpcarm/Makefile.inc deleted file mode 100644 index d1442c85e..000000000 --- a/external/mit/xorg/etc/etc.hpcarm/Makefile.inc +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.1 2010/11/13 02:07:28 tsutsui Exp $ - -XORGCONF_FILES= \ - etc.${MACHINE}/xorg.conf.ws003sh \ - etc.${MACHINE}/xorg.conf.ws007sh \ - etc.${MACHINE}/xorg.conf.ws011sh \ - etc.${MACHINE}/xorg.conf.ws020sh - -.include "../etc.hpc/Makefile.inc" diff --git a/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws003sh b/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws003sh deleted file mode 100644 index 63ce193e0..000000000 --- a/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws003sh +++ /dev/null @@ -1,78 +0,0 @@ -# $NetBSD: xorg.conf.ws003sh,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Mouse0" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" - Option "XkbModel" "ws003sh" -# Option "XkbModel" "ws007sh" -# Option "XkbModel" "ws011sh" -# Option "XkbModel" "ws020sh" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "Device" "/dev/wsmouse0" - - Option "MinX" "0" - Option "MaxX" "479" - - - Option "MinY" "0" - Option "MaxY" "639" -# Option "MaxY" "799" - - Option "Rotate" "CCW" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - - Option "Rotate" "CCW" -EndSection - -Section "Monitor" - Identifier "Monitor" - VendorName "Sharp" - ModelName "W-ZERO3" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 1 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 8 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws007sh b/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws007sh deleted file mode 100644 index 786303cca..000000000 --- a/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws007sh +++ /dev/null @@ -1,78 +0,0 @@ -# $NetBSD: xorg.conf.ws007sh,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Mouse0" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" -# Option "XkbModel" "ws003sh" - Option "XkbModel" "ws007sh" -# Option "XkbModel" "ws011sh" -# Option "XkbModel" "ws020sh" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "Device" "/dev/wsmouse0" - - Option "MinX" "0" - Option "MaxX" "479" - - - Option "MinY" "0" - Option "MaxY" "639" -# Option "MaxY" "799" - - Option "Rotate" "CCW" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - - Option "Rotate" "CCW" -EndSection - -Section "Monitor" - Identifier "Monitor" - VendorName "Sharp" - ModelName "W-ZERO3" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 1 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 8 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws011sh b/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws011sh deleted file mode 100644 index 4bd8c6f2a..000000000 --- a/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws011sh +++ /dev/null @@ -1,78 +0,0 @@ -# $NetBSD: xorg.conf.ws011sh,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Mouse0" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" -# Option "XkbModel" "ws003sh" -# Option "XkbModel" "ws007sh" - Option "XkbModel" "ws011sh" -# Option "XkbModel" "ws020sh" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "Device" "/dev/wsmouse0" - - Option "MinX" "0" - Option "MaxX" "479" - - - Option "MinY" "0" -# Option "MaxY" "639" - Option "MaxY" "799" - - Option "Rotate" "CCW" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - - Option "Rotate" "CCW" -EndSection - -Section "Monitor" - Identifier "Monitor" - VendorName "Sharp" - ModelName "W-ZERO3" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 1 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 8 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws020sh b/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws020sh deleted file mode 100644 index 1db9d27f3..000000000 --- a/external/mit/xorg/etc/etc.hpcarm/xorg.conf.ws020sh +++ /dev/null @@ -1,78 +0,0 @@ -# $NetBSD: xorg.conf.ws020sh,v 1.3 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Mouse0" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" -# Option "XkbModel" "ws003sh" -# Option "XkbModel" "ws007sh" -# Option "XkbModel" "ws011sh" - Option "XkbModel" "ws020sh" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "Device" "/dev/wsmouse0" - - Option "MinX" "0" - Option "MaxX" "479" - - - Option "MinY" "0" -# Option "MaxY" "639" - Option "MaxY" "799" - - Option "Rotate" "CCW" -EndSection - -Section "InputDevice" - Identifier "Mouse0" - Driver "mouse" - Option "Device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - - Option "Rotate" "CCW" -EndSection - -Section "Monitor" - Identifier "Monitor" - VendorName "Sharp" - ModelName "W-ZERO3" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - - SubSection "Display" - Viewport 0 0 - Depth 1 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 8 - EndSubSection - SubSection "Display" - Viewport 0 0 - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.hpcmips/Makefile.inc b/external/mit/xorg/etc/etc.hpcmips/Makefile.inc deleted file mode 100644 index 45e45a3f5..000000000 --- a/external/mit/xorg/etc/etc.hpcmips/Makefile.inc +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.1 2010/11/13 02:07:28 tsutsui Exp $ - -XORGCONF_FILES= - -.include "../etc.hpc/Makefile.inc" diff --git a/external/mit/xorg/etc/etc.hpcsh/Makefile.inc b/external/mit/xorg/etc/etc.hpcsh/Makefile.inc deleted file mode 100644 index ca3a96633..000000000 --- a/external/mit/xorg/etc/etc.hpcsh/Makefile.inc +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.1 2010/11/13 02:07:29 tsutsui Exp $ - -XORGCONF_FILES= - -.include "../etc.hpc/Makefile.inc" diff --git a/external/mit/xorg/etc/etc.zaurus/Makefile.inc b/external/mit/xorg/etc/etc.zaurus/Makefile.inc deleted file mode 100644 index 4ed11381c..000000000 --- a/external/mit/xorg/etc/etc.zaurus/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.3 2012/02/10 11:25:43 tsutsui Exp $ - -XORGCONF_FILES= etc.${MACHINE}/xorg.conf.C3x00 etc.${MACHINE}/xorg.conf.C7x0 diff --git a/external/mit/xorg/etc/etc.zaurus/xorg.conf.C3x00 b/external/mit/xorg/etc/etc.zaurus/xorg.conf.C3x00 deleted file mode 100644 index 18c6c420e..000000000 --- a/external/mit/xorg/etc/etc.zaurus/xorg.conf.C3x00 +++ /dev/null @@ -1,57 +0,0 @@ -# $NetBSD: xorg.conf.C3x00,v 1.2 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" - Option "XkbModel" "sl-c3x00" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" - - Option "MinX" "0" - Option "MaxX" "479" - Option "MinY" "0" - Option "MaxY" "639" - - Option "Rotate" "CW" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - - Option "Rotate" "CW" -EndSection - -Section "Monitor" - Identifier "Monitor" - VendorName "Sharp" - ModelName "Zaurus" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - DefaultDepth 16 - - SubSection "Display" - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/etc/etc.zaurus/xorg.conf.C7x0 b/external/mit/xorg/etc/etc.zaurus/xorg.conf.C7x0 deleted file mode 100644 index 60c8f4a36..000000000 --- a/external/mit/xorg/etc/etc.zaurus/xorg.conf.C7x0 +++ /dev/null @@ -1,57 +0,0 @@ -# $NetBSD: xorg.conf.C7x0,v 1.2 2014/06/20 08:08:58 wiz Exp $ - -Section "ServerLayout" - Identifier "wsfb" - Screen 0 "Screen0" 0 0 - InputDevice "TouchScreen0" "CorePointer" - InputDevice "Keyboard0" "CoreKeyboard" -EndSection - -Section "Files" -# FontPath "/usr/pkg/share/fonts/X11/TTF/" -EndSection - -Section "InputDevice" - Identifier "Keyboard0" - Driver "kbd" - Option "XkbModel" "sl-c3x00" -EndSection - -Section "InputDevice" - Identifier "TouchScreen0" - Driver "ws" - - Option "device" "/dev/wsmouse" - Option "ZAxisMapping" "4 5" - - Option "MinX" "0" - Option "MaxX" "639" - Option "MinY" "0" - Option "MaxY" "479" - -# Option "Rotate" "CW" -EndSection - -Section "Device" - Identifier "Wsdisplay0" - Driver "wsfb" - -# Option "Rotate" "CW" -EndSection - -Section "Monitor" - Identifier "Monitor" - VendorName "Sharp" - ModelName "Zaurus" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Wsdisplay0" - Monitor "Monitor" - DefaultDepth 16 - - SubSection "Display" - Depth 16 - EndSubSection -EndSection diff --git a/external/mit/xorg/include/Makefile b/external/mit/xorg/include/Makefile deleted file mode 100644 index 1bf3188b8..000000000 --- a/external/mit/xorg/include/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2014/03/16 23:25:15 mrg Exp $ - -# *proto packages for xorg - -SUBDIR= xproto fontsproto bigreqsproto kbproto xcmiscproto xf86bigfontproto \ - fixesproto inputproto scrnsaverproto xextproto evieext xineramaproto \ - resourceproto recordproto videoproto xf86dgaproto xf86miscproto \ - compositeproto damageproto trapproto glproto randrproto fontcacheproto \ - xf86driproto xf86vidmodeproto renderproto dri2proto dri3proto \ - presentproto xproxymanagementprotocol xbitmaps xcb-proto .WAIT \ - xtrans - -.include diff --git a/external/mit/xorg/include/bigreqsproto/Makefile b/external/mit/xorg/include/bigreqsproto/Makefile deleted file mode 100644 index 76e0c6d01..000000000 --- a/external/mit/xorg/include/bigreqsproto/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/22 02:27:06 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.bigreqsproto} - -INCS= bigreqstr.h \ - bigreqsproto.h - -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= bigreqsproto - -.include -.include diff --git a/external/mit/xorg/include/compositeproto/Makefile b/external/mit/xorg/include/compositeproto/Makefile deleted file mode 100644 index 6c0093a9f..000000000 --- a/external/mit/xorg/include/compositeproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:28 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.compositeproto} - -INCS= composite.h compositeproto.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= compositeproto - -.include -.include diff --git a/external/mit/xorg/include/damageproto/Makefile b/external/mit/xorg/include/damageproto/Makefile deleted file mode 100644 index 19d5f3be9..000000000 --- a/external/mit/xorg/include/damageproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:28 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.damageproto} - -INCS= damageproto.h damagewire.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= damageproto - -.include -.include diff --git a/external/mit/xorg/include/dri2proto/Makefile b/external/mit/xorg/include/dri2proto/Makefile deleted file mode 100644 index 85fe3516d..000000000 --- a/external/mit/xorg/include/dri2proto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/10 04:37:27 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.dri2proto} - -INCS= dri2proto.h dri2tokens.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= dri2proto - -.include -.include diff --git a/external/mit/xorg/include/dri3proto/Makefile b/external/mit/xorg/include/dri3proto/Makefile deleted file mode 100644 index a459add41..000000000 --- a/external/mit/xorg/include/dri3proto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/03/16 23:25:15 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.dri3proto} - -INCS= dri3proto.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= dri3proto - -.include -.include diff --git a/external/mit/xorg/include/evieext/Makefile b/external/mit/xorg/include/evieext/Makefile deleted file mode 100644 index d78da3175..000000000 --- a/external/mit/xorg/include/evieext/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/22 02:27:07 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.evieext} - -INCS= Xeviestr.h \ - evieproto.h - -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= evieproto -PKGDIST= evieext - -.include -.include diff --git a/external/mit/xorg/include/fixesproto/Makefile b/external/mit/xorg/include/fixesproto/Makefile deleted file mode 100644 index 4f55ae560..000000000 --- a/external/mit/xorg/include/fixesproto/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/22 02:27:07 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.fixesproto} - -INCS= xfixesproto.h \ - xfixeswire.h - -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= fixesproto - -# XXX fixesproto.txt - -.include -.include diff --git a/external/mit/xorg/include/fontcacheproto/Makefile b/external/mit/xorg/include/fontcacheproto/Makefile deleted file mode 100644 index a9f8739cc..000000000 --- a/external/mit/xorg/include/fontcacheproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:28 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.fontcacheproto} - -INCS= fontcache.h fontcacheP.h fontcachstr.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= fontcacheproto - -.include -.include diff --git a/external/mit/xorg/include/fontsproto/Makefile b/external/mit/xorg/include/fontsproto/Makefile deleted file mode 100644 index 7404f6836..000000000 --- a/external/mit/xorg/include/fontsproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:29 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.fontsproto} - -INCS= FS.h FSproto.h font.h fontproto.h fontstruct.h fsmasks.h -INCSDIR=${X11INCDIR}/X11/fonts - -NOOBJ= # defined - -PKGCONFIG= fontsproto - -.include -.include diff --git a/external/mit/xorg/include/glproto/Makefile b/external/mit/xorg/include/glproto/Makefile deleted file mode 100644 index 4d42d4125..000000000 --- a/external/mit/xorg/include/glproto/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:29 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.glproto} - -INCS= glxint.h glxmd.h glxproto.h glxtokens.h -INCSDIR=${X11INCDIR}/GL - -SUBDIR= internal - -NOOBJ= # defined - -PKGCONFIG= glproto - -.include -.include -.include diff --git a/external/mit/xorg/include/glproto/internal/Makefile b/external/mit/xorg/include/glproto/internal/Makefile deleted file mode 100644 index af7b081dd..000000000 --- a/external/mit/xorg/include/glproto/internal/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.glproto} - -INCS= glcore.h -INCSDIR=${X11INCDIR}/GL/internal - -NOOBJ= # defined - -.include -.include diff --git a/external/mit/xorg/include/inputproto/Makefile b/external/mit/xorg/include/inputproto/Makefile deleted file mode 100644 index 6d0bae354..000000000 --- a/external/mit/xorg/include/inputproto/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/22 02:27:07 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.inputproto} - -INCS= XI.h \ - XIproto.h \ - XI2.h \ - XI2proto.h - -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= inputproto - -# XXX XI2proto.txt XIproto.txt - -.include -.include diff --git a/external/mit/xorg/include/kbproto/Makefile b/external/mit/xorg/include/kbproto/Makefile deleted file mode 100644 index c456e1665..000000000 --- a/external/mit/xorg/include/kbproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:29 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.kbproto} - -INCS= XKB.h XKBgeom.h XKBproto.h XKBsrv.h XKBstr.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= kbproto - -.include -.include diff --git a/external/mit/xorg/include/presentproto/Makefile b/external/mit/xorg/include/presentproto/Makefile deleted file mode 100644 index 2146e0495..000000000 --- a/external/mit/xorg/include/presentproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/03/16 23:25:15 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.present} - -INCS= presentproto.h presenttokens.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= presentproto - -.include -.include diff --git a/external/mit/xorg/include/randrproto/Makefile b/external/mit/xorg/include/randrproto/Makefile deleted file mode 100644 index 2f7219459..000000000 --- a/external/mit/xorg/include/randrproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:29 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.randrproto} - -INCS= randr.h randrproto.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= randrproto - -.include -.include diff --git a/external/mit/xorg/include/recordproto/Makefile b/external/mit/xorg/include/recordproto/Makefile deleted file mode 100644 index 3a8ed83a3..000000000 --- a/external/mit/xorg/include/recordproto/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/22 02:27:07 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.recordproto} - -INCS= recordconst.h \ - recordproto.h \ - recordstr.h - -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= recordproto - -.include -.include diff --git a/external/mit/xorg/include/renderproto/Makefile b/external/mit/xorg/include/renderproto/Makefile deleted file mode 100644 index 1f8ffde61..000000000 --- a/external/mit/xorg/include/renderproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:29 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.renderproto} - -INCS= render.h renderproto.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= renderproto - -.include -.include diff --git a/external/mit/xorg/include/resourceproto/Makefile b/external/mit/xorg/include/resourceproto/Makefile deleted file mode 100644 index 758d7614f..000000000 --- a/external/mit/xorg/include/resourceproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:29 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.resourceproto} - -INCS= XResproto.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= resourceproto - -.include -.include diff --git a/external/mit/xorg/include/scrnsaverproto/Makefile b/external/mit/xorg/include/scrnsaverproto/Makefile deleted file mode 100644 index a49b86f7c..000000000 --- a/external/mit/xorg/include/scrnsaverproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/22 09:22:15 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.scrnsaverproto} - -INCS= saver.h saverproto.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= scrnsaverproto - -.include -.include diff --git a/external/mit/xorg/include/trapproto/Makefile b/external/mit/xorg/include/trapproto/Makefile deleted file mode 100644 index d53068c01..000000000 --- a/external/mit/xorg/include/trapproto/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:29 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.trapproto} - -INCS= xtrapbits.h xtrapddmi.h xtrapdi.h xtrapemacros.h xtraplib.h \ - xtraplibp.h xtrapproto.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= trapproto - -.include -.include diff --git a/external/mit/xorg/include/videoproto/Makefile b/external/mit/xorg/include/videoproto/Makefile deleted file mode 100644 index c576d0957..000000000 --- a/external/mit/xorg/include/videoproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:29 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.videoproto} - -INCS= Xv.h XvMC.h XvMCproto.h Xvproto.h vldXvMC.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= videoproto - -.include -.include diff --git a/external/mit/xorg/include/xbitmaps/Makefile b/external/mit/xorg/include/xbitmaps/Makefile deleted file mode 100644 index a3d74622c..000000000 --- a/external/mit/xorg/include/xbitmaps/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2009/11/09 00:41:26 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.xbitmaps} - -INCSDIR=${X11INCDIR}/X11/bitmaps - -INCS= 1x1 2x2 black boxes calculator cntr_ptr cntr_ptrmsk cross_weave \ - dimple1 dimple3 dot dropbar7 dropbar8 escherknot flagdown flagup \ - flipped_gray gray gray1 gray3 grid16 grid2 grid4 grid8 hlines2 \ - hlines3 icon keyboard16 left_ptr left_ptrmsk letters light_gray \ - mailempty mailemptymsk mailfull mailfullmsk mensetmanus menu10 \ - menu12 menu16 menu6 menu8 noletters opendot opendotMask plaid \ - right_ptr right_ptrmsk root_weave scales sipb star starMask \ - stipple target terminal tie_fighter vlines2 vlines3 weird_size \ - wide_weave wingdogs woman xfd_icon xlogo11 xlogo16 xlogo32 \ - xlogo64 xsnow \ - box6 black6 - -PKGCONFIG= xbitmaps - -.include -.include diff --git a/external/mit/xorg/include/xcb-proto/Makefile b/external/mit/xorg/include/xcb-proto/Makefile deleted file mode 100644 index 75ac833a2..000000000 --- a/external/mit/xorg/include/xcb-proto/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2014/03/23 20:40:18 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.xcb-proto} ${X11SRCDIR.xcb-proto}/src - -FILES= bigreq.xml composite.xml damage.xml dpms.xml dri2.xml dri3.xml \ - ge.xml glx.xml present.xml randr.xml record.xml render.xml \ - res.xml screensaver.xml shape.xml shm.xml sync.xml xc_misc.xml \ - xcb.xsd xevie.xml xf86dri.xml xf86vidmode.xml xfixes.xml \ - xinerama.xml xkb.xml \ - xinput.xml xprint.xml xproto.xml xselinux.xml xtest.xml \ - xv.xml xvmc.xml -FILESDIR=${X11SHAREDIR}/xcb - -PKGCONFIG= xcb-proto -PKGCONFIG_SED_FLAGS= \ - -e "s,@pythondir@,," - -NOPROG= # defined - -.include -.include -.include diff --git a/external/mit/xorg/include/xcmiscproto/Makefile b/external/mit/xorg/include/xcmiscproto/Makefile deleted file mode 100644 index 41eb73a63..000000000 --- a/external/mit/xorg/include/xcmiscproto/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/22 02:27:07 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.xcmiscproto} - -INCS= xcmiscstr.h \ - xcmiscproto.h - -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= xcmiscproto - -.include -.include diff --git a/external/mit/xorg/include/xextproto/Makefile b/external/mit/xorg/include/xextproto/Makefile deleted file mode 100644 index 8c3c01db7..000000000 --- a/external/mit/xorg/include/xextproto/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2010/08/14 08:51:32 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.xextproto} - -INCS= EVI.h \ - EVIproto.h \ - ag.h \ - agproto.h \ - cup.h \ - cupproto.h \ - dbe.h \ - dbeproto.h \ - dpmsconst.h \ - dpmsproto.h \ - ge.h \ - geproto.h \ - lbx.h \ - lbxproto.h \ - mitmiscconst.h \ - mitmiscproto.h \ - multibufconst.h \ - multibufproto.h \ - secur.h \ - securproto.h \ - shapeconst.h \ - shapeproto.h \ - shm.h \ - shmproto.h \ - syncconst.h \ - syncproto.h \ - xtestconst.h \ - xtestext1const.h \ - xtestext1proto.h \ - xtestproto.h -# XXX XXX XXX xorg-server 1.7 won't need this -INCS+= shapestr.h shmstr.h syncstr.h -# -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= xextproto - -.include -.include diff --git a/external/mit/xorg/include/xf86bigfontproto/Makefile b/external/mit/xorg/include/xf86bigfontproto/Makefile deleted file mode 100644 index f32455cd7..000000000 --- a/external/mit/xorg/include/xf86bigfontproto/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/22 02:27:07 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.xf86bigfontproto} - -INCS= xf86bigfont.h \ - xf86bigfstr.h \ - xf86bigfproto.h - -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= xf86bigfontproto - -.include -.include diff --git a/external/mit/xorg/include/xf86dgaproto/Makefile b/external/mit/xorg/include/xf86dgaproto/Makefile deleted file mode 100644 index 5ad31ccc6..000000000 --- a/external/mit/xorg/include/xf86dgaproto/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/22 02:27:07 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.xf86dgaproto} - -INCS= xf86dga.h \ - xf86dga1str.h \ - xf86dgastr.h \ - xf86dga1const.h \ - xf86dga1proto.h \ - xf86dgaconst.h \ - xf86dgaproto.h - -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= xf86dgaproto - -.include -.include diff --git a/external/mit/xorg/include/xf86driproto/Makefile b/external/mit/xorg/include/xf86driproto/Makefile deleted file mode 100644 index 97278076c..000000000 --- a/external/mit/xorg/include/xf86driproto/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/22 02:27:07 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.xf86driproto} - -INCS= xf86dri.h \ - xf86dristr.h \ - xf86driproto.h - -INCSDIR=${X11INCDIR}/X11/dri - -NOOBJ= # defined - -PKGCONFIG= xf86driproto - -.include -.include diff --git a/external/mit/xorg/include/xf86miscproto/Makefile b/external/mit/xorg/include/xf86miscproto/Makefile deleted file mode 100644 index 60bb7a3a9..000000000 --- a/external/mit/xorg/include/xf86miscproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:29 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.xf86miscproto} - -INCS= xf86misc.h xf86mscstr.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= xf86miscproto - -.include -.include diff --git a/external/mit/xorg/include/xf86vidmodeproto/Makefile b/external/mit/xorg/include/xf86vidmodeproto/Makefile deleted file mode 100644 index cd5d04611..000000000 --- a/external/mit/xorg/include/xf86vidmodeproto/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/22 02:27:07 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.xf86vidmodeproto} - -INCS= xf86vm.h \ - xf86vmstr.h \ - xf86vmproto.h - -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= xf86vidmodeproto - -.include -.include diff --git a/external/mit/xorg/include/xineramaproto/Makefile b/external/mit/xorg/include/xineramaproto/Makefile deleted file mode 100644 index cf6ef2b7c..000000000 --- a/external/mit/xorg/include/xineramaproto/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2009/11/09 03:27:05 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.xineramaproto} - -INCS= panoramiXproto.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -PKGCONFIG= xineramaproto - -.include -.include diff --git a/external/mit/xorg/include/xproto/Makefile b/external/mit/xorg/include/xproto/Makefile deleted file mode 100644 index ce87a6ab8..000000000 --- a/external/mit/xorg/include/xproto/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2014/08/24 16:39:21 christos Exp $ - -.include - -.PATH: ${X11SRCDIR.xproto} - -Xfuncproto.h: Xfuncproto.h.in - ${TOOL_SED} -e 's/#undef NARROWPROTO/#define NARROWPROTO/' \ - -e 's/#undef FUNCPROTO/#define FUNCPROTO 15/' \ - < ${.ALLSRC} > ${.TARGET} - -Xpoll.h: Xpoll.h.in - ${TOOL_SED} 's/@USE_FDS_BITS@/fds_bits/' \ - < ${.ALLSRC} > ${.TARGET} - -INCS= DECkeysym.h HPkeysym.h Sunkeysym.h X.h XF86keysym.h XWDFile.h \ - Xalloca.h Xarch.h Xatom.h Xdefs.h Xfuncproto.h Xfuncs.h Xmd.h \ - Xos.h Xos_r.h Xosdefs.h Xpoll.h Xproto.h Xprotostr.h Xthreads.h \ - Xw32defs.h Xwindows.h Xwinsock.h ap_keysym.h keysym.h keysymdef.h -INCSDIR=${X11INCDIR}/X11 - -CLEANFILES+= Xpoll.h Xfuncproto.h - -NOOBJ= # defined - -PKGCONFIG= xproto - -.include -.include diff --git a/external/mit/xorg/include/xproxymanagementprotocol/Makefile b/external/mit/xorg/include/xproxymanagementprotocol/Makefile deleted file mode 100644 index 44721883f..000000000 --- a/external/mit/xorg/include/xproxymanagementprotocol/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:29 cube Exp $ - -.include - -.PATH: ${X11SRCDIR.xproxymanagementprotocol} - -INCS= PM.h PMproto.h -INCSDIR=${X11INCDIR}/X11/PM - -NOOBJ= # defined - -PKGCONFIG= xproxymngproto -PKGDIST= xproxymanagementprotocol - -.include -.include diff --git a/external/mit/xorg/include/xtrans/Makefile b/external/mit/xorg/include/xtrans/Makefile deleted file mode 100644 index 32159c893..000000000 --- a/external/mit/xorg/include/xtrans/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/02/19 20:57:36 snj Exp $ - -.include - -.PATH: ${X11SRCDIR.xtrans} - -INCS= Xtrans.c Xtrans.h Xtransint.h Xtranslcl.c \ - Xtranssock.c Xtransutil.c transport.c -INCSDIR=${X11INCDIR}/X11/Xtrans - -NOOBJ= # defined - -PKGCONFIG= xtrans - -.include -.include diff --git a/external/mit/xorg/lib/Makefile b/external/mit/xorg/lib/Makefile deleted file mode 100644 index e6801592d..000000000 --- a/external/mit/xorg/lib/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -# $NetBSD: Makefile,v 1.35 2015/07/23 05:46:39 mrg Exp $ - -# build libraries for xorg - -.include - -SUBDIR= libfontenc freetype libFS libICE libglapi \ - libXau libXdmcp libdrm libpciaccess libpthread-stubs .WAIT -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" -SUBDIR+=libdrm_intel -.endif -SUBDIR+=libdrm_radeon pixman -.if !defined(MLIBDIR) -SUBDIR+=xkeyboard-config -.endif -SUBDIR+=libxcb \ - .WAIT -.if !defined(MLIBDIR) -#__MINIX: gallium -SUBDIR+=dri7 dri -.endif -SUBDIR+=fontconfig libSM libX11 \ - .WAIT \ - libXcomposite libXdamage libXext libXfixes libXt \ - libxkbfile \ - .WAIT \ - libXi libXxf86vm \ - .WAIT \ - libGL libXScrnSaver libXTrap libXevie libXfont libXfontcache \ - libXinerama libXmu libXmuu libXpm libXrender \ - libXres libXtst libXvMC libXvMCW libXv libXxf86dga libXxf86misc \ - libxkbui \ - .WAIT -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" -SUBDIR+=libI810XvMC -SUBDIR+=libIntelXvMC -SUBDIR+=libchromeXvMC -SUBDIR+=libchromeXvMCPro -.endif -SUBDIR+=libGLU libGLw libXaw6 libXaw libXcursor \ - libXrandr \ - .WAIT \ - libXpresent libXft libglut \ - .WAIT \ - libXdmGreet \ - xcb-util -SUBDIR+=libgbm - -.include -.include diff --git a/external/mit/xorg/lib/Makefile.inc b/external/mit/xorg/lib/Makefile.inc deleted file mode 100644 index bbc249e01..000000000 --- a/external/mit/xorg/lib/Makefile.inc +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.1.1.1 2008/07/29 05:01:21 mrg Exp $ - -.include -.include diff --git a/external/mit/xorg/lib/asm.mk b/external/mit/xorg/lib/asm.mk deleted file mode 100644 index 309e821c3..000000000 --- a/external/mit/xorg/lib/asm.mk +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: asm.mk,v 1.1 2014/12/18 06:24:28 mrg Exp $ - -# Shared with libmesa.mk / libGL / libglapi - -.if ${MACHINE} == "amd64" -CPPFLAGS+= \ - -DUSE_SSE41 \ - -DUSE_X86_64_ASM -.elif ${MACHINE} == "i386" -CPPFLAGS+= \ - -DUSE_X86_ASM \ - -DUSE_MMX_ASM \ - -DUSE_3DNOW_ASM \ - -DUSE_SSE_ASM -.elif ${MACHINE} == "sparc" || ${MACHINE} == "sparc64" -.endif diff --git a/external/mit/xorg/lib/dri/Makefile b/external/mit/xorg/lib/dri/Makefile deleted file mode 100644 index c8c1d772f..000000000 --- a/external/mit/xorg/lib/dri/Makefile +++ /dev/null @@ -1,418 +0,0 @@ -# $NetBSD: Makefile,v 1.26 2015/01/05 18:51:10 gson Exp $ - -# Link the mesa_dri_drivers mega driver. - -.include - -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" - -LIBISMODULE= yes -LIBISCXX= yes - -SHLIB_MAJOR= 0 - -LIB= mesa_dri_drivers -DRIDIR= ${X11USRLIBDIR}/modules/dri -DRIDEBUGDIR= ${DEBUGDIR}${X11USRLIBDIR}/modules/dri - -# -I${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/${MODULE}/server \ - -CPPFLAGS+= \ - -I${X11SRCDIR.MesaLib}/src/egl/main \ - -I${X11SRCDIR.MesaLib}/src/egl/drivers/dri \ - -I${X11SRCDIR.MesaLib}/../src/mesa/drivers/dri/common \ - -I${DESTDIR}${X11INCDIR}/libdrm - -#CPPFLAGS+= -D_NETBSD_SOURCE -DPTHREADS -.if defined(__MINIX) -CPPFLAGS+= -DHAVE_PTHREAD=1 -LDADD+= -lmthread -DPADD+= ${LIBMTHREAD} -CWARNFLAGS.clang+= -Wno-\#warnings -#LSC: For clang 3.4 -CWARNFLAGS.clang+= -Wno-attributes -.endif # defined(__MINIX) - - -# We don't actually build this on non-x86 at all, currently. -# The following if statements are not effective since we only -# get here for x86 -.if ${MACHINE_ARCH} == "alpha" -DRIVERS= r200 radeon -.elif ${MACHINE} == "macppc" || ${MACHINE} == "ofppc" -DRIVERS= r200 radeon -.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "sparc" -DRIVERS= r200 radeon -.elif ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" -DRIVERS= i915 i965 r200 radeon -.elif ${MACHINE} == "prep" || ${MACHINE} == "bebox" -DRIVERS= r200 radeon -.endif - -DRI_SUBDIRS= ${DRIVERS} - -DRI_SOURCES.i915 = \ - i830_context.c \ - i830_state.c \ - i830_texblend.c \ - i830_texstate.c \ - i830_vtbl.c \ - i915_tex_layout.c \ - i915_texstate.c \ - i915_context.c \ - i915_debug_fp.c \ - i915_fragprog.c \ - i915_program.c \ - i915_state.c \ - i915_vtbl.c \ - -I915_INTEL_FILES = \ - intel_render.c \ - intel_regions.c \ - intel_buffer_objects.c \ - intel_batchbuffer.c \ - intel_clear.c \ - intel_extensions.c \ - intel_mipmap_tree.c \ - intel_tex_layout.c \ - intel_tex_image.c \ - intel_tex_subimage.c \ - intel_tex_copy.c \ - intel_tex_validate.c \ - intel_tex.c \ - intel_pixel.c \ - intel_pixel_bitmap.c \ - intel_pixel_copy.c \ - intel_pixel_draw.c \ - intel_pixel_read.c \ - intel_buffers.c \ - intel_blit.c \ - intel_context.c \ - intel_screen.c \ - intel_state.c \ - intel_syncobj.c \ - intel_tris.c \ - intel_fbo.c - -.for _f in ${I915_INTEL_FILES} -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/i915/${_f} i915_${_f} -DRI_SOURCES.i915+= i915_${_f} -CPPFLAGS.i915_${_f}+= -I${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/i915 -.endfor - -DRI_SOURCES.i965 = \ - brw_binding_tables.c \ - brw_blorp.cpp \ - brw_blorp_blit.cpp \ - brw_blorp_blit_eu.cpp \ - brw_cc.c \ - brw_cfg.cpp \ - brw_clear.c \ - brw_clip.c \ - brw_clip_line.c \ - brw_clip_point.c \ - brw_clip_state.c \ - brw_clip_tri.c \ - brw_clip_unfilled.c \ - brw_clip_util.c \ - brw_context.c \ - brw_cubemap_normalize.cpp \ - brw_curbe.c \ - brw_dead_control_flow.cpp \ - brw_device_info.c \ - brw_disasm.c \ - brw_draw.c \ - brw_draw_upload.c \ - brw_eu.c \ - brw_eu_compact.c \ - brw_eu_emit.c \ - brw_eu_util.c \ - brw_fs.cpp \ - brw_fs_channel_expressions.cpp \ - brw_fs_copy_propagation.cpp \ - brw_fs_cse.cpp \ - brw_fs_dead_code_eliminate.cpp \ - brw_fs_fp.cpp \ - brw_fs_generator.cpp \ - brw_fs_live_variables.cpp \ - brw_fs_peephole_predicated_break.cpp \ - brw_fs_reg_allocate.cpp \ - brw_fs_register_coalesce.cpp \ - brw_fs_saturate_propagation.cpp \ - brw_fs_sel_peephole.cpp \ - brw_fs_vector_splitting.cpp \ - brw_fs_visitor.cpp \ - brw_gs.c \ - brw_gs_emit.c \ - brw_gs_state.c \ - brw_gs_surface_state.c \ - brw_gs.c \ - brw_gs_emit.c \ - brw_gs_state.c \ - brw_gs_surface_state.c \ - brw_interpolation_map.c \ - brw_lower_texture_gradients.cpp \ - brw_lower_unnormalized_offset.cpp \ - brw_meta_updownsample.c \ - brw_meta_stencil_blit.c \ - brw_meta_util.c \ - brw_meta_fast_clear.c \ - brw_misc_state.c \ - brw_object_purgeable.c \ - brw_performance_monitor.c \ - brw_program.c \ - brw_primitive_restart.c \ - brw_queryobj.c \ - brw_reset.c \ - brw_sampler_state.c \ - brw_schedule_instructions.cpp \ - brw_sf.c \ - brw_sf_emit.c \ - brw_sf_state.c \ - brw_shader.cpp \ - brw_state_batch.c \ - brw_state_cache.c \ - brw_state_dump.c \ - brw_state_upload.c \ - brw_surface_formats.c \ - brw_tex.c \ - brw_tex_layout.c \ - brw_urb.c \ - brw_util.c \ - brw_vec4.cpp \ - brw_vec4_copy_propagation.cpp \ - brw_vec4_cse.cpp \ - brw_vec4_generator.cpp \ - brw_vec4_gs.c \ - brw_vec4_gs_visitor.cpp \ - brw_vec4_live_variables.cpp \ - brw_vec4_reg_allocate.cpp \ - brw_vec4_visitor.cpp \ - brw_vec4_vp.cpp \ - brw_vec4_vs_visitor.cpp \ - brw_vs.c \ - brw_vs_state.c \ - brw_vs_surface_state.c \ - brw_wm.c \ - brw_wm_iz.cpp \ - brw_wm_state.c \ - brw_wm_surface_state.c \ - gen6_blorp.cpp \ - gen6_cc.c \ - gen6_clip_state.c \ - gen6_depth_state.c \ - gen6_depthstencil.c \ - gen6_gs_state.c \ - gen6_multisample_state.c \ - gen6_queryobj.c \ - gen6_sampler_state.c \ - gen6_scissor_state.c \ - gen6_sf_state.c \ - gen6_sol.c \ - gen6_surface_state.c \ - gen6_urb.c \ - gen6_viewport_state.c \ - gen6_vs_state.c \ - gen6_wm_state.c \ - gen7_blorp.cpp \ - gen7_disable.c \ - gen7_gs_state.c \ - gen7_misc_state.c \ - gen7_sf_state.c \ - gen7_sol_state.c \ - gen7_urb.c \ - gen7_viewport_state.c \ - gen7_vs_state.c \ - gen7_wm_state.c \ - gen7_wm_surface_state.c \ - gen8_blend_state.c \ - gen8_depth_state.c \ - gen8_disable.c \ - gen8_draw_upload.c \ - gen8_gs_state.c \ - gen8_misc_state.c \ - gen8_multisample_state.c \ - gen8_sf_state.c \ - gen8_sol_state.c \ - gen8_surface_state.c \ - gen8_viewport_state.c \ - gen8_vs_state.c \ - gen8_wm_depth_stencil.c \ - gen8_ps_state.c - -I965_INTEL_FILES = \ - intel_asm_annotation.c \ - intel_batchbuffer.c \ - intel_blit.c \ - intel_buffer_objects.c \ - intel_buffers.c \ - intel_copy_image.c \ - intel_debug.c \ - intel_extensions.c \ - intel_fbo.c \ - intel_mipmap_tree.c \ - intel_resolve_map.c \ - intel_screen.c \ - intel_pixel.c \ - intel_pixel_bitmap.c \ - intel_pixel_copy.c \ - intel_pixel_draw.c \ - intel_pixel_read.c \ - intel_state.c \ - intel_syncobj.c \ - intel_tex.c \ - intel_tex_copy.c \ - intel_tex_image.c \ - intel_tex_subimage.c \ - intel_tex_validate.c \ - intel_upload.c \ - -.for _f in ${I965_INTEL_FILES} -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/i965/${_f} i965_${_f} -DRI_SOURCES.i965+= i965_${_f} -CPPFLAGS.i965_${_f} += -I${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/i965 -.endfor - -DRI_SOURCES.r200 = \ - r200_context.c \ - r200_ioctl.c \ - r200_state.c \ - r200_state_init.c \ - r200_cmdbuf.c \ - r200_tex.c \ - r200_texstate.c \ - r200_tcl.c \ - r200_swtcl.c \ - r200_maos.c \ - r200_sanity.c \ - r200_fragshader.c \ - r200_vertprog.c \ - r200_blit.c \ - -R200_RADEON_FILES= \ - radeon_buffer_objects.c \ - radeon_common_context.c \ - radeon_common.c \ - radeon_dma.c \ - radeon_debug.c \ - radeon_fbo.c \ - radeon_fog.c \ - radeon_mipmap_tree.c \ - radeon_pixel_read.c \ - radeon_queryobj.c \ - radeon_span.c \ - radeon_texture.c \ - radeon_tex_copy.c \ - radeon_tile.c \ - radeon_screen.c - -.for _f in ${R200_RADEON_FILES} -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/radeon/${_f} r200_${_f} -DRI_SOURCES.r200+= r200_${_f} -.endfor - -.for _f in ${DRI_SOURCES.r200} -CPPFLAGS.${_f} += -I${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/r200/server \ - -I${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/r200 \ - -I${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/radeon/server \ - -I${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/radeon \ - -DRADEON_R200 -.endfor - -DRI_SOURCES.radeon = \ - radeon_buffer_objects.c \ - radeon_common_context.c \ - radeon_common.c \ - radeon_dma.c \ - radeon_debug.c \ - radeon_fbo.c \ - radeon_fog.c \ - radeon_mipmap_tree.c \ - radeon_pixel_read.c \ - radeon_queryobj.c \ - radeon_span.c \ - radeon_texture.c \ - radeon_tex_copy.c \ - radeon_tile.c \ - radeon_context.c \ - radeon_ioctl.c \ - radeon_screen.c \ - radeon_state.c \ - radeon_state_init.c \ - radeon_tex.c \ - radeon_texstate.c \ - radeon_tcl.c \ - radeon_swtcl.c \ - radeon_maos.c \ - radeon_sanity.c \ - radeon_blit.c - -.for _f in ${DRI_SOURCES.radeon} -CPPFLAGS.${_f} += -I${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/radeon/server \ - -I${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/radeon \ - -DRADEON_R100 -.endfor - -.for _d in ${DRI_SUBDIRS} -SRCS+= ${DRI_SOURCES.${_d}} -.PATH: ${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/${_d} -.endfor - -LIBDPLIBS+= expat ${NETBSDSRCDIR}/external/mit/expat/lib/libexpat -LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm -LIBDPLIBS+= glapi ${.CURDIR}/../libglapi -LIBDPLIBS+= drm ${.CURDIR}/../libdrm -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" -LIBDPLIBS+= drm_intel ${.CURDIR}/../libdrm_intel -.endif -LIBDPLIBS+= drm_radeon ${.CURDIR}/../libdrm_radeon - -MESA_SRC_MODULES= main math math_xform vbo tnl swrast ss common asm_c program asm_s -.include "../libmesa.mk" -.include "../libglsl.mk" - -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" -SRCS+= streaming-load-memcpy.c -CPPFLAGS.streaming-load-memcpy.c+= -msse4.1 -.endif - -.include "../driver.mk" - -.for _d in ${DRIVERS} -SYMLINKS+= mesa_dri_drivers.so.${SHLIB_MAJOR} ${DRIDIR}/${_d}_dri.so.${SHLIB_MAJOR} -SYMLINKS+= ${_d}_dri.so.${SHLIB_MAJOR} ${DRIDIR}/${_d}_dri.so -.if ${MKDEBUG} != "no" -SYMLINKS+= mesa_dri_drivers.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHLIB_MAJOR}.debug -.endif -.endfor - -.endif - -PKGCONFIG= dri -PKGDIST.dri= ${X11SRCDIR.MesaLib}/src/mesa/drivers/dri -.include "${.CURDIR}/../libGL/mesa-ver.mk" -PKGCONFIG_VERSION.dri= ${MESA_VER} - -# XXX remove these from bsd.x11.mk -PKGCONFIG_SED_FLAGS= \ - -e "s,@DRI_DRIVER_INSTALL_DIR@,${X11USRLIBDIR}/modules/dri,; \ - s,@DRI_PC_REQ_PRIV@,," - -FILESDIR= /etc -FILES= drirc - -.PATH: ${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/common - -.include -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" -LIBDIR= ${X11USRLIBDIR}/modules/dri - -CWARNFLAGS.clang+= -Wno-error=initializer-overrides -Wno-error=switch \ - -Wno-error=tautological-constant-out-of-range-compare - -.include -.else -.include -.endif -# Don't re-build .c files when .y files change -.y.c: diff --git a/external/mit/xorg/lib/dri7/Makefile b/external/mit/xorg/lib/dri7/Makefile deleted file mode 100644 index 88afd56d1..000000000 --- a/external/mit/xorg/lib/dri7/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/01/05 03:45:31 mrg Exp $ - -# Build MesaLib 7.x r300 driver, which requires LLVM in Mesa 10.x - -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" -SUBDIR= libmesa .WAIT r300 -.endif - -.include diff --git a/external/mit/xorg/lib/dri7/dri.mk b/external/mit/xorg/lib/dri7/dri.mk deleted file mode 100644 index 495959ea2..000000000 --- a/external/mit/xorg/lib/dri7/dri.mk +++ /dev/null @@ -1,55 +0,0 @@ -# $NetBSD: dri.mk,v 1.1 2015/01/05 03:45:31 mrg Exp $ - -# XXX DRI_LIB_DEPS - -LIBISMODULE= yes - -.include - -SHLIB_MAJOR= 0 - -CPPFLAGS+= \ - -I${X11SRCDIR.MesaLib7}/src/mesa/drivers/dri/common \ - -I${X11SRCDIR.MesaLib7}/src/mesa/drivers/dri/${MODULE}/server \ - -I${X11SRCDIR.MesaLib7}/include \ - -I${X11SRCDIR.MesaLib7}/src/mapi \ - -I${X11SRCDIR.MesaLib7}/src/mesa \ - -I${DESTDIR}${X11INCDIR}/libdrm - -.if !defined(__MINIX) -CPPFLAGS+= -D_NETBSD_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 \ - -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING \ - -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -.else -CPPFLAGS+= -D_NETBSD_SOURCE -DUSE_EXTERNAL_DXTN_LIB=1 \ - -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING \ - -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -.endif # !defined(__MINIX) - -CPPFLAGS+= -Wno-stack-protector - -.PATH: ${X11SRCDIR.MesaLib7}/src/mesa/drivers/dri/${MODULE} ${DRI_EXTRA_PATHS} - -# Common sources -.PATH: ${X11SRCDIR.MesaLib7}/src/mesa/drivers/dri/common \ - ${X11SRCDIR.MesaLib7}/src/mesa/drivers/common -.if (${MODULE} == "swrast") -SRCS+= drisw_util.c driverfuncs.c utils.c -.else -SRCS+= dri_util.c drirenderbuffer.c driverfuncs.c texmem.c -SRCS+= utils.c vblank.c xmlconfig.c -.endif - -.include - -LIB= ${MODULE}_dri -LIBDIR= ${X11USRLIBDIR}/modules/dri - -LIBDPLIBS+= drm ${.CURDIR}/../../libdrm -LIBDPLIBS+= expat ${NETBSDSRCDIR}/external/mit/expat/lib/libexpat -LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm -LIBDPLIBS+= mesa_dri ${.CURDIR}/../libmesa -# to find mesa_dri.so -LDFLAGS+= -Wl,-rpath,${LIBDIR} - -.include diff --git a/external/mit/xorg/lib/dri7/libglsl7.mk b/external/mit/xorg/lib/dri7/libglsl7.mk deleted file mode 100644 index ffb9a2e3b..000000000 --- a/external/mit/xorg/lib/dri7/libglsl7.mk +++ /dev/null @@ -1,102 +0,0 @@ -# $NetBSD: libglsl7.mk,v 1.1 2015/01/05 03:45:31 mrg Exp $ - -# This copy for MesaLib7 old drivers. - -# Derived loosely from src/glsl/Makefile. - -# XXX Now that we don't need glsl-compile as a tool, this should just -# be made into a library instead. - -.PATH: ${X11SRCDIR.MesaLib7}/src/glsl -.PATH: ${X11SRCDIR.MesaLib7}/src/glsl/glcpp - -CPPFLAGS+= -I${X11SRCDIR.MesaLib7}/include -CPPFLAGS+= -I${X11SRCDIR.MesaLib7}/src/glsl -CPPFLAGS+= -I${X11SRCDIR.MesaLib7}/src/mapi -CPPFLAGS+= -I${X11SRCDIR.MesaLib7}/src/mesa - -SRCS.glsl.libglcpp= \ - glcpp-lex.c \ - glcpp-parse.c \ - pp.c - -SRCS.glsl.glcpp= \ - ${SRCS.glsl.libglcpp} \ - strtod.c \ - glcpp.c - -SRCS.glsl.c= \ - strtod.c \ - ralloc.c \ - ${SRCS.glsl.libglcpp} - -SRCS.glsl.cxx= \ - ast_expr.cpp \ - ast_function.cpp \ - ast_to_hir.cpp \ - ast_type.cpp \ - glsl_lexer.cpp \ - glsl_parser.cpp \ - glsl_parser_extras.cpp \ - glsl_types.cpp \ - glsl_symbol_table.cpp \ - hir_field_selection.cpp \ - ir_basic_block.cpp \ - ir_clone.cpp \ - ir_constant_expression.cpp \ - ir.cpp \ - ir_expression_flattening.cpp \ - ir_function_can_inline.cpp \ - ir_function_detect_recursion.cpp \ - ir_function.cpp \ - ir_hierarchical_visitor.cpp \ - ir_hv_accept.cpp \ - ir_import_prototypes.cpp \ - ir_print_visitor.cpp \ - ir_reader.cpp \ - ir_rvalue_visitor.cpp \ - ir_set_program_inouts.cpp \ - ir_validate.cpp \ - ir_variable.cpp \ - ir_variable_refcount.cpp \ - linker.cpp \ - link_functions.cpp \ - loop_analysis.cpp \ - loop_controls.cpp \ - loop_unroll.cpp \ - lower_discard.cpp \ - lower_if_to_cond_assign.cpp \ - lower_instructions.cpp \ - lower_jumps.cpp \ - lower_mat_op_to_vec.cpp \ - lower_noise.cpp \ - lower_texture_projection.cpp \ - lower_variable_index_to_cond_assign.cpp \ - lower_vec_index_to_cond_assign.cpp \ - lower_vec_index_to_swizzle.cpp \ - lower_vector.cpp \ - opt_algebraic.cpp \ - opt_constant_folding.cpp \ - opt_constant_propagation.cpp \ - opt_constant_variable.cpp \ - opt_copy_propagation.cpp \ - opt_copy_propagation_elements.cpp \ - opt_dead_code.cpp \ - opt_dead_code_local.cpp \ - opt_dead_functions.cpp \ - opt_discard_simplification.cpp \ - opt_function_inlining.cpp \ - opt_if_simplification.cpp \ - opt_noop_swizzle.cpp \ - opt_redundant_jumps.cpp \ - opt_structure_splitting.cpp \ - opt_swizzle_swizzle.cpp \ - opt_tree_grafting.cpp \ - s_expression.cpp - -SRCS.glsl= \ - ${SRCS.glsl.c} \ - ${SRCS.glsl.cxx} - -SRCS.glsl+= \ - builtin_function.cpp diff --git a/external/mit/xorg/lib/dri7/libmesa/Makefile b/external/mit/xorg/lib/dri7/libmesa/Makefile deleted file mode 100644 index b4b6a4e77..000000000 --- a/external/mit/xorg/lib/dri7/libmesa/Makefile +++ /dev/null @@ -1,46 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/01/05 03:45:31 mrg Exp $ - -.include - -_LIB_PREFIX= lib -LIB= mesa_dri -LIBISMODULE= yes -LIBISCXX= yes - -SHLIB_MAJOR= 0 - -MESA_SRC_MODULES= main math vbo tnl program swrast ss common - -CPPFLAGS+= \ - -I${X11SRCDIR.MesaLib7}/include \ - -I${X11SRCDIR.MesaLib7}/src/glsl \ - -I${X11SRCDIR.MesaLib7}/src/mesa \ - -I${X11SRCDIR.MesaLib7}/src/mapi - -.if !defined(__MINIX) -CPPFLAGS+= ${X11FLAGS.THREADLIB} \ - -DPTHREADS -D_NETBSD_SOURCE -DUSE_EXTERNAL_DXTN_LIB=1 \ - -DHAVE_ALIAS -DIN_DRI_DRIVER -#CPPFLAGS+= -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_POSIX_MEMALIGN -CFLAGS+= -pthread -.else -CPPFLAGS+= ${X11FLAGS.THREADLIB} \ - -D_NETBSD_SOURCE -DUSE_EXTERNAL_DXTN_LIB=1 \ - -DHAVE_ALIAS -DIN_DRI_DRIVER -.endif # !defined(__MINIX) - -.include "../libmesa7.mk" -.include "../libglsl7.mk" - -SRCS+= ${SRCS.glsl} - -.include - -LIBDIR= ${X11USRLIBDIR}/modules/dri - -#LIBDPLIBS+= GL ${.CURDIR}/../../libGL - -CWARNFLAGS.clang+= -Wno-format -Wno-constant-conversion \ - -Wno-tautological-compare - -.include diff --git a/external/mit/xorg/lib/dri7/libmesa7.mk b/external/mit/xorg/lib/dri7/libmesa7.mk deleted file mode 100644 index 592ab7f0f..000000000 --- a/external/mit/xorg/lib/dri7/libmesa7.mk +++ /dev/null @@ -1,351 +0,0 @@ -# $NetBSD: libmesa7.mk,v 1.1 2015/01/05 03:45:31 mrg Exp $ - -# This copy for old MesaLib 7.x drivers only. - -# -# Consumer of this Makefile should set MESA_SRC_MODULES. - -INCLUDES.all= mapi mesa mesa/main - -# The source file lists derived from src/mesa/sources.mak and -# src/mapi/glapi/sources.mak. Please keep the organization in line -# with those files. - -# Main sources -PATHS.main= mesa/main -INCLUDES.main= glsl -SRCS.main= \ - api_exec_es1.c \ - api_exec_es2.c - -SRCS.main+= \ - api_arrayelt.c \ - api_exec.c \ - api_loopback.c \ - api_noop.c \ - api_validate.c \ - accum.c \ - arbprogram.c \ - atifragshader.c \ - attrib.c \ - arrayobj.c \ - blend.c \ - bufferobj.c \ - buffers.c \ - clear.c \ - clip.c \ - colortab.c \ - condrender.c \ - context.c \ - convolve.c \ - cpuinfo.c \ - debug.c \ - depth.c \ - depthstencil.c \ - dlist.c \ - dlopen.c \ - drawpix.c \ - drawtex.c \ - enable.c \ - enums.c \ - MESAeval.c \ - execmem.c \ - extensions.c \ - fbobject.c \ - feedback.c \ - ffvertex_prog.c \ - fog.c \ - formats.c \ - framebuffer.c \ - get.c \ - getstring.c \ - hash.c \ - hint.c \ - histogram.c \ - image.c \ - imports.c \ - light.c \ - lines.c \ - matrix.c \ - mipmap.c \ - mm.c \ - multisample.c \ - nvprogram.c \ - pack.c \ - pbo.c \ - MESApixel.c \ - MESApixelstore.c \ - pixeltransfer.c \ - points.c \ - polygon.c \ - queryobj.c \ - querymatrix.c \ - rastpos.c \ - readpix.c \ - remap.c \ - renderbuffer.c \ - samplerobj.c \ - scissor.c \ - shaderapi.c \ - shaderobj.c \ - shared.c \ - state.c \ - stencil.c \ - syncobj.c \ - texcompress.c \ - texcompress_rgtc.c \ - texcompress_s3tc.c \ - texcompress_fxt1.c \ - texenv.c \ - texfetch.c \ - texformat.c \ - texgen.c \ - texgetimage.c \ - teximage.c \ - texobj.c \ - texpal.c \ - texparam.c \ - texstate.c \ - texstore.c \ - texturebarrier.c \ - transformfeedback.c \ - uniforms.c \ - varray.c \ - version.c \ - viewport.c \ - vtxfmt.c - -SRCS.main+= \ - ff_fragment_shader.cpp - -# XXX avoid source name clashes with glx -.PATH: ${X11SRCDIR.MesaLib7}/src/mesa/main -BUILDSYMLINKS= ${X11SRCDIR.MesaLib7}/src/mesa/main/pixel.c MESApixel.c \ - ${X11SRCDIR.MesaLib7}/src/mesa/main/pixelstore.c MESApixelstore.c \ - ${X11SRCDIR.MesaLib7}/src/mesa/main/eval.c MESAeval.c - -# Math sources -PATHS.math= mesa/math -SRCS.math= \ - m_debug_clip.c \ - m_debug_norm.c \ - m_debug_xform.c \ - m_eval.c \ - m_matrix.c \ - m_translate.c \ - m_vector.c - -SRCS.math+= \ - m_xform.c - -# Software raster sources -PATHS.swrast= mesa/swrast -SRCS.swrast= \ - s_aaline.c \ - s_aatriangle.c \ - s_accum.c \ - s_alpha.c \ - s_atifragshader.c \ - s_bitmap.c \ - s_blend.c \ - s_blit.c \ - s_clear.c \ - s_copypix.c \ - s_context.c \ - s_depth.c \ - s_drawpix.c \ - s_feedback.c \ - s_fog.c \ - s_fragprog.c \ - s_lines.c \ - s_logic.c \ - s_masking.c \ - s_points.c \ - s_readpix.c \ - s_span.c \ - s_stencil.c \ - s_texcombine.c \ - s_texfilter.c \ - s_texrender.c \ - s_triangle.c \ - s_zoom.c - -# swrast_setup -PATHS.ss= mesa/swrast_setup -SRCS.ss= \ - ss_context.c \ - ss_triangle.c - -# TNL sources -PATHS.tnl= mesa/tnl -SRCS.tnl= \ - t_context.c \ - t_pipeline.c \ - t_draw.c \ - t_rasterpos.c \ - t_vb_program.c \ - t_vb_render.c \ - t_vb_texgen.c \ - t_vb_texmat.c \ - t_vb_vertex.c \ - t_vb_fog.c \ - t_vb_light.c \ - t_vb_normals.c \ - t_vb_points.c \ - t_vp_build.c \ - t_vertex.c \ - t_vertex_sse.c \ - t_vertex_generic.c - -# VBO sources -PATHS.vbo= mesa/vbo -SRCS.vbo= \ - vbo_context.c \ - vbo_exec.c \ - vbo_exec_api.c \ - vbo_exec_array.c \ - vbo_exec_draw.c \ - vbo_exec_eval.c \ - vbo_rebase.c \ - vbo_split.c \ - vbo_split_copy.c \ - vbo_split_inplace.c \ - vbo_save.c \ - vbo_save_api.c \ - vbo_save_draw.c \ - vbo_save_loopback.c - -# statetracker - -# Program sources -PATHS.program= mesa/program -SRCS.program= \ - arbprogparse.c \ - hash_table.c \ - lex.yy.c \ - nvfragparse.c \ - nvvertparse.c \ - program.c \ - program_parse.tab.c \ - program_parse_extra.c \ - prog_cache.c \ - prog_execute.c \ - prog_instruction.c \ - prog_noise.c \ - prog_optimize.c \ - prog_parameter.c \ - prog_parameter_layout.c \ - prog_print.c \ - prog_statevars.c \ - prog_uniform.c \ - programopt.c \ - register_allocate.c \ - symbol_table.c - -SRCS.program+= \ - ir_to_mesa.cpp \ - sampler.cpp - -# Unused parts of mesa/sources.mak. -.if 0 -ASM_C_SOURCES = \ - x86/common_x86.c \ - x86/x86_xform.c \ - x86/3dnow.c \ - x86/sse.c \ - x86/rtasm/x86sse.c \ - sparc/sparc.c \ - ppc/common_ppc.c \ - x86-64/x86-64.c - -X86_SOURCES = \ - x86/common_x86_asm.S \ - x86/x86_xform2.S \ - x86/x86_xform3.S \ - x86/x86_xform4.S \ - x86/x86_cliptest.S \ - x86/mmx_blend.S \ - x86/3dnow_xform1.S \ - x86/3dnow_xform2.S \ - x86/3dnow_xform3.S \ - x86/3dnow_xform4.S \ - x86/3dnow_normal.S \ - x86/sse_xform1.S \ - x86/sse_xform2.S \ - x86/sse_xform3.S \ - x86/sse_xform4.S \ - x86/sse_normal.S \ - x86/read_rgba_span_x86.S - -X86-64_SOURCES = \ - x86-64/xform4.S - -SPARC_SOURCES = \ - sparc/clip.S \ - sparc/norm.S \ - sparc/xform.S -.endif - -# Common driver sources -PATHS.common= mesa/drivers/common -SRCS.common= \ - driverfuncs.c \ - meta.c - -# OSMesa driver sources -PATHS.osmesa= mesa/drivers/osmesa -SRCS.osmesa= \ - osmesa.c - -# GLAPI sources -PATHS.glapi= mapi/glapi -SRCS.glapi = \ - glapi_dispatch.c \ - glapi_entrypoint.c \ - glapi_gentable.c \ - glapi_getproc.c \ - glapi_nop.c \ - glthread.c \ - glapi.c - -# Unused parts of mapi/glapi/sources.mak. -.if 0 -X86_API = \ - glapi_x86.S - -X86-64_API = \ - glapi_x86-64.S - -SPARC_API = \ - glapi_sparc.S -.endif - -.for _mod_ in ${MESA_SRC_MODULES} - -SRCS+= ${SRCS.${_mod_}} - -. for _path_ in ${PATHS.${_mod_}} -.PATH: ${X11SRCDIR.MesaLib7}/src/${_path_} -. endfor - -. for _path_ in ${INCLUDES.${_mod_}} -CPPFLAGS+= -I${X11SRCDIR.MesaLib7}/src/${_path_} -. endfor - -.endfor - -.for _path_ in ${INCLUDES.all} -CPPFLAGS+= -I${X11SRCDIR.MesaLib7}/src/${_path_} -.endfor - -LIBDPLIBS= m ${NETBSDSRCDIR}/lib/libm - -# build the shader headers -.include "../libglsl7.mk" - -CPPFLAGS+= -I. -CPPFLAGS+= -I${X11SRCDIR.MesaLib7}/include - -cleandir: cleanmesa -cleanmesa: .PHONY - -@if [ -d library ]; then rmdir library; fi diff --git a/external/mit/xorg/lib/dri7/r300/Makefile b/external/mit/xorg/lib/dri7/r300/Makefile deleted file mode 100644 index 12226dd23..000000000 --- a/external/mit/xorg/lib/dri7/r300/Makefile +++ /dev/null @@ -1,111 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/01/05 03:45:31 mrg Exp $ - -MODULE= r300 - -CPPFLAGS+= -DCOMPILE_R300 -DR200_MERGED=0 \ - -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R300 \ - -DRADEON_R300 -CPPFLAGS+= -DHAVE_LIBDRM_RADEON - -CPPFLAGS+= -I${X11SRCDIR.MesaLib7}/src/mesa/drivers/dri/r300 \ - -I${X11SRCDIR.MesaLib7}/src/mesa/drivers/dri/r300/compiler \ - -I${X11SRCDIR.MesaLib7}/src/mesa/drivers/dri/radeon \ - -I${X11SRCDIR.MesaLib7}/src/mesa/drivers/dri/radeon/server \ - -I${X11SRCDIR.MesaLib7}/src/glsl - -DRI_EXTRA_PATHS= ${X11SRCDIR.MesaLib7}/src/mesa/drivers/dri/radeon \ - ${X11SRCDIR.MesaLib7}/src/mesa/drivers/dri/r300/compiler \ - ${X11SRCDIR.MesaLib7}/src/glsl \ - ${X11SRCDIR.MesaLib7}/src/mesa/program - -SRCS= \ - radeon_bo_legacy.c \ - radeon_buffer_objects.c \ - radeon_common_context.c \ - radeon_common.c \ - radeon_cs_legacy.c \ - radeon_dma.c \ - radeon_debug.c \ - radeon_fbo.c \ - radeon_lock.c \ - radeon_mipmap_tree.c \ - radeon_pixel_read.c \ - radeon_queryobj.c \ - radeon_span.c \ - radeon_texture.c \ - radeon_tex_copy.c \ - radeon_tex_getimage.c \ - radeon_tile.c - -SRCS+= \ - radeon_screen.c \ - r300_blit.c \ - r300_context.c \ - r300_draw.c \ - r300_cmdbuf.c \ - r300_state.c \ - r300_render.c \ - r300_tex.c \ - r300_texstate.c \ - r300_vertprog.c \ - r300_fragprog_common.c \ - r300_shader.c \ - radeon_mesa_to_rc.c \ - r300_emit.c \ - r300_swtcl.c - -SRCS+= \ - radeon_cs_space_drm.c \ - radeon_bo.c \ - radeon_cs.c - -# r300/compiler -SRCS+= \ - radeon_code.c \ - radeon_compiler.c \ - radeon_compiler_util.c \ - radeon_emulate_branches.c \ - radeon_emulate_loops.c \ - radeon_program.c \ - radeon_program_print.c \ - radeon_opcodes.c \ - radeon_program_alu.c \ - radeon_program_pair.c \ - radeon_program_tex.c \ - radeon_pair_translate.c \ - radeon_pair_schedule.c \ - radeon_pair_regalloc.c \ - radeon_pair_dead_sources.c \ - radeon_dataflow.c \ - radeon_dataflow_deadcode.c \ - radeon_dataflow_swizzles.c \ - radeon_list.c \ - radeon_optimize.c \ - radeon_remove_constants.c \ - radeon_rename_regs.c \ - radeon_variable.c \ - r3xx_fragprog.c \ - r300_fragprog.c \ - r300_fragprog_swizzle.c \ - r300_fragprog_emit.c \ - r500_fragprog.c \ - r500_fragprog_emit.c \ - r3xx_vertprog.c \ - r3xx_vertprog_dump.c \ - memory_pool.c - -# glsl -SRCS+= ralloc.c - -# mesa/program -SRCS+= register_allocate.c - -LIBDPLIBS+= drm_radeon ${.CURDIR}/../../libdrm_radeon - -# uses C99 variable decl scoping -CFLAGS+= -std=c99 - -CWARNFLAGS.clang+= -Wno-empty-body -Wno-format -Wno-constant-conversion \ - -Wno-constant-logical-operand - -.include "${.CURDIR}/../dri.mk" diff --git a/external/mit/xorg/lib/driver.mk b/external/mit/xorg/lib/driver.mk deleted file mode 100644 index c34b5150f..000000000 --- a/external/mit/xorg/lib/driver.mk +++ /dev/null @@ -1,24 +0,0 @@ -# $NetBSD: driver.mk,v 1.1 2014/12/18 06:24:28 mrg Exp $ - -# stuff both dri and gallium drivers need. - -# util -.PATH: ${X11SRCDIR.MesaLib}/src/util -SRCS.util= \ - hash_table.c \ - MESAralloc.c -.PATH: ${X11SRCDIR.MesaLib}/../src/util -SRCS.util+= \ - format_srgb.c -CPPFLAGS.format_srgb.c+= -I${X11SRCDIR.MesaLib}/src/util -CPPFLAGS.hash_table.c+= -I${X11SRCDIR.MesaLib}/src/util -CPPFLAGS.MESAralloc.c+= -I${X11SRCDIR.MesaLib}/src/util - -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/src/util/ralloc.c MESAralloc.c - -SRCS+= ${SRCS.util} - -# also need to pull in libdricommon.la libmegadriver_stub.la -.PATH: ${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/common -SRCS+= utils.c dri_util.c xmlconfig.c -SRCS+= megadriver_stub.c diff --git a/external/mit/xorg/lib/fontconfig/Makefile b/external/mit/xorg/lib/fontconfig/Makefile deleted file mode 100644 index 7b38881d8..000000000 --- a/external/mit/xorg/lib/fontconfig/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2008/11/01 21:38:14 cube Exp $ - -.include - -SUBDIR= fontconfig src etc - -.include -.include diff --git a/external/mit/xorg/lib/fontconfig/etc/Makefile b/external/mit/xorg/lib/fontconfig/etc/Makefile deleted file mode 100644 index 6f82e6734..000000000 --- a/external/mit/xorg/lib/fontconfig/etc/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2009/09/07 21:07:03 mrg Exp $ - -SUBDIR= conf.d conf.avail - -.include - -.PATH: ${X11SRCDIR.fontconfig} -CONFIGFILES= \ - fonts.conf \ - fonts.dtd - -FILESDIR= \ - /etc/fonts - -.include -.include -.include diff --git a/external/mit/xorg/lib/fontconfig/etc/conf.avail/Makefile b/external/mit/xorg/lib/fontconfig/etc/conf.avail/Makefile deleted file mode 100644 index 79f7961a9..000000000 --- a/external/mit/xorg/lib/fontconfig/etc/conf.avail/Makefile +++ /dev/null @@ -1,41 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2013/06/03 20:23:39 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.fontconfig}/conf.d -CONFIGFILES= \ - 10-autohint.conf \ - 10-no-sub-pixel.conf \ - 10-sub-pixel-bgr.conf \ - 10-sub-pixel-rgb.conf \ - 10-sub-pixel-vbgr.conf \ - 10-sub-pixel-vrgb.conf \ - 10-scale-bitmap-fonts.conf \ - 10-unhinted.conf \ - 11-lcdfilter-default.conf \ - 11-lcdfilter-legacy.conf \ - 11-lcdfilter-light.conf \ - 20-unhint-small-vera.conf \ - 25-unhint-nonlatin.conf \ - 30-metric-aliases.conf \ - 30-urw-aliases.conf \ - 40-nonlatin.conf \ - 45-latin.conf \ - 49-sansserif.conf \ - 50-user.conf \ - 51-local.conf \ - 60-latin.conf \ - 65-fonts-persian.conf \ - 65-khmer.conf \ - 65-nonlatin.conf \ - 69-unifont.conf \ - 70-no-bitmaps.conf \ - 70-yes-bitmaps.conf \ - 80-delicious.conf \ - 90-synthetic.conf - -FILESDIR= \ - /etc/fonts/conf.avail - -.include -.include diff --git a/external/mit/xorg/lib/fontconfig/etc/conf.d/Makefile b/external/mit/xorg/lib/fontconfig/etc/conf.d/Makefile deleted file mode 100644 index 89283b7d3..000000000 --- a/external/mit/xorg/lib/fontconfig/etc/conf.d/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/06/03 20:23:39 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.fontconfig}/conf.d -FONTCONFIG_LINKS= \ - 10-scale-bitmap-fonts.conf \ - 20-unhint-small-vera.conf \ - 30-urw-aliases.conf \ - 30-metric-aliases.conf \ - 40-nonlatin.conf \ - 45-latin.conf \ - 49-sansserif.conf \ - 50-user.conf \ - 51-local.conf \ - 60-latin.conf \ - 65-fonts-persian.conf \ - 65-nonlatin.conf \ - 69-unifont.conf \ - 80-delicious.conf \ - 90-synthetic.conf - -CONFAVAILDIR= ../conf.avail -CONFDIR= /etc/fonts/conf.d - -.for _conffile in ${FONTCONFIG_LINKS} -CONFIGSYMLINKS+=${CONFAVAILDIR}/${_conffile} ${CONFDIR}/${_conffile} -.endfor - -.include -.include diff --git a/external/mit/xorg/lib/fontconfig/etc/fonts.conf b/external/mit/xorg/lib/fontconfig/etc/fonts.conf deleted file mode 100644 index a1c52c61d..000000000 --- a/external/mit/xorg/lib/fontconfig/etc/fonts.conf +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - /usr/X11R7/lib/X11/fonts - /usr/pkg/lib/X11/fonts - /usr/pkg/share/fonts - fonts - - ~/.fonts - - - - - mono - - - monospace - - - - - - - sans serif - - - sans-serif - - - - - - - sans - - - sans-serif - - - - - conf.d - - - - /var/cache/fontconfig - fontconfig - - ~/.fontconfig - - - - - 0x0020 - 0x00A0 - 0x00AD - 0x034F - 0x0600 - 0x0601 - 0x0602 - 0x0603 - 0x06DD - 0x070F - 0x115F - 0x1160 - 0x1680 - 0x17B4 - 0x17B5 - 0x180E - 0x2000 - 0x2001 - 0x2002 - 0x2003 - 0x2004 - 0x2005 - 0x2006 - 0x2007 - 0x2008 - 0x2009 - 0x200A - 0x200B - 0x200C - 0x200D - 0x200E - 0x200F - 0x2028 - 0x2029 - 0x202A - 0x202B - 0x202C - 0x202D - 0x202E - 0x202F - 0x205F - 0x2060 - 0x2061 - 0x2062 - 0x2063 - 0x206A - 0x206B - 0x206C - 0x206D - 0x206E - 0x206F - 0x2800 - 0x3000 - 0x3164 - 0xFEFF - 0xFFA0 - 0xFFF9 - 0xFFFA - 0xFFFB - - - - 30 - - - - diff --git a/external/mit/xorg/lib/fontconfig/fontconfig/Makefile b/external/mit/xorg/lib/fontconfig/fontconfig/Makefile deleted file mode 100644 index 01d1b2156..000000000 --- a/external/mit/xorg/lib/fontconfig/fontconfig/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:21 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.fontconfig}/fontconfig - -INCSDIR=${X11INCDIR}/fontconfig - -INCS= fcfreetype.h fcprivate.h fontconfig.h - -.include -.include diff --git a/external/mit/xorg/lib/fontconfig/src/Makefile b/external/mit/xorg/lib/fontconfig/src/Makefile deleted file mode 100644 index 1da8b1bbe..000000000 --- a/external/mit/xorg/lib/fontconfig/src/Makefile +++ /dev/null @@ -1,140 +0,0 @@ -# $NetBSD: Makefile,v 1.17 2014/07/16 14:05:04 nakayama Exp $ - -.include - -LIB= fontconfig - -.PATH: ${X11SRCDIR.${LIB}}/src -SRCS= fcatomic.c \ - fcblanks.c \ - fccache.c \ - fccfg.c \ - fccharset.c \ - fccompat.c \ - fcdbg.c \ - fcdefault.c \ - fcdir.c \ - fcformat.c \ - fcfreetype.c \ - fcfs.c \ - fchash.c \ - fcinit.c \ - fclang.c \ - fclist.c \ - fcmatch.c \ - fcmatrix.c \ - fcname.c \ - fcobjs.c \ - fcpat.c \ - fcserialize.c \ - fcstat.c \ - fcstr.c \ - fcxml.c \ - ftglue.c - -.PATH: ${X11SRCDIR.${LIB}}/doc -MAN= FcAtomicCreate.3 FcAtomicDeleteNew.3 FcAtomicDestroy.3 FcAtomicLock.3 \ - FcAtomicNewFile.3 FcAtomicOrigFile.3 FcAtomicReplaceOrig.3 \ - FcAtomicUnlock.3 FcBlanksAdd.3 FcBlanksCreate.3 FcBlanksDestroy.3 \ - FcBlanksIsMember.3 FcCacheCopySet.3 FcCacheDir.3 FcCacheNumFont.3 \ - FcCacheNumSubdir.3 FcCacheSubdir.3 FcCharSetAddChar.3 FcCharSetCopy.3 \ - FcCharSetCount.3 FcCharSetCoverage.3 FcCharSetCreate.3 \ - FcCharSetDestroy.3 FcCharSetEqual.3 FcCharSetFirstPage.3 \ - FcCharSetHasChar.3 FcCharSetIntersect.3 FcCharSetIntersectCount.3 \ - FcCharSetIsSubset.3 FcCharSetNew.3 FcCharSetNextPage.3 \ - FcCharSetSubtract.3 FcCharSetSubtractCount.3 FcCharSetUnion.3 \ - FcConfigAppFontAddDir.3 FcConfigAppFontAddFile.3 \ - FcConfigAppFontClear.3 FcConfigBuildFonts.3 FcConfigCreate.3 \ - FcConfigDestroy.3 FcConfigEnableHome.3 FcConfigFilename.3 \ - FcConfigGetBlanks.3 FcConfigGetCache.3 FcConfigGetCacheDirs.3 \ - FcConfigGetConfigDirs.3 FcConfigGetConfigFiles.3 FcConfigGetCurrent.3 \ - FcConfigGetFontDirs.3 FcConfigGetFonts.3 FcConfigGetRescanInterval.3 \ - FcConfigHome.3 FcConfigParseAndLoad.3 FcConfigSetCurrent.3 \ - FcConfigSetRescanInterval.3 FcConfigSubstitute.3 \ - FcConfigSubstituteWithPat.3 FcConfigUptoDate.3 FcDefaultSubstitute.3 \ - FcDirCacheLoad.3 FcDirCacheLoadFile.3 FcDirCacheRead.3 \ - FcDirCacheUnlink.3 FcDirCacheUnload.3 FcDirCacheValid.3 FcDirSave.3 \ - FcDirScan.3 FcFileIsDir.3 FcFileScan.3 FcFini.3 FcFontList.3 \ - FcFontMatch.3 FcFontRenderPrepare.3 FcFontSetAdd.3 FcFontSetCreate.3 \ - FcFontSetDestroy.3 FcFontSetList.3 FcFontSetMatch.3 FcFontSetPrint.3 \ - FcFontSetSort.3 FcFontSetSortDestroy.3 FcFontSort.3 \ - FcFreeTypeCharIndex.3 FcFreeTypeCharSet.3 \ - FcFreeTypeCharSetAndSpacing.3 FcFreeTypeQuery.3 \ - FcFreeTypeQueryFace.3 FcGetLangs.3 FcGetVersion.3 FcInit.3 \ - FcInitBringUptoDate.3 FcInitLoadConfig.3 FcInitLoadConfigAndFonts.3 \ - FcInitReinitialize.3 FcIsLower.3 FcIsUpper.3 FcLangGetCharSet.3 \ - FcLangSetAdd.3 FcLangSetCompare.3 FcLangSetContains.3 FcLangSetCopy.3 \ - FcLangSetCreate.3 FcLangSetDestroy.3 FcLangSetEqual.3 \ - FcLangSetHasLang.3 FcLangSetHash.3 FcMatrixCopy.3 FcMatrixEqual.3 \ - FcMatrixInit.3 FcMatrixMultiply.3 FcMatrixRotate.3 FcMatrixScale.3 \ - FcMatrixShear.3 FcNameConstant.3 FcNameGetConstant.3 \ - FcNameGetObjectType.3 FcNameParse.3 FcNameRegisterConstants.3 \ - FcNameRegisterObjectTypes.3 FcNameUnparse.3 \ - FcNameUnregisterConstants.3 FcNameUnregisterObjectTypes.3 \ - FcObjectSetAdd.3 FcObjectSetBuild.3 FcObjectSetCreate.3 \ - FcObjectSetDestroy.3 FcPatternAdd-Type.3 FcPatternAdd.3 \ - FcPatternAddWeak.3 FcPatternBuild.3 FcPatternCreate.3 FcPatternDel.3 \ - FcPatternDestroy.3 FcPatternDuplicate.3 FcPatternEqual.3 \ - FcPatternEqualSubset.3 FcPatternGet-Type.3 FcPatternGet.3 \ - FcPatternHash.3 FcPatternPrint.3 FcPatternReference.3 \ - FcPatternRemove.3 FcStrBasename.3 FcStrCmp.3 FcStrCmpIgnoreCase.3 \ - FcStrCopy.3 FcStrCopyFilename.3 FcStrDirname.3 FcStrDowncase.3 \ - FcStrFree.3 FcStrListCreate.3 FcStrListDone.3 FcStrListNext.3 \ - FcStrPlus.3 FcStrSetAdd.3 FcStrSetAddFilename.3 FcStrSetCreate.3 \ - FcStrSetDel.3 FcStrSetDestroy.3 FcStrSetEqual.3 FcStrSetMember.3 \ - FcStrStr.3 FcStrStrIgnoreCase.3 FcToLower.3 FcUcs4ToUtf8.3 \ - FcUtf16Len.3 FcUtf16ToUcs4.3 FcUtf8Len.3 FcUtf8ToUcs4.3 \ - FcValueDestroy.3 FcValueEqual.3 FcValuePrint.3 FcValueSave.3 \ - FcCacheCreateTagFile.3 FcCharSetDelChar.3 FcGetDefaultLangs.3 \ - FcLangSetDel.3 FcLangSetSubtract.3 FcLangSetUnion.3 - -MAN+= fonts-conf.5 - -LIBDPLIBS=\ - expat ${NETBSDSRCDIR}/external/mit/expat/lib/libexpat \ - freetype ${.CURDIR}/../../freetype - -# XXX FONTCONFIG_PATH was arbitrarily chosen -FONTCONFIG_PATH=/etc/fonts -CPPFLAGS+= -DHAVE_CONFIG_H -CPPFLAGS+= -DFONTCONFIG_PATH='"${FONTCONFIG_PATH}"' \ - -DFC_DEFAULT_FONTS='"${X11FONTDIR}"' \ - -DFC_CACHEDIR='"/var/cache/fontconfig"' \ - -DHAVE_FT_BITMAP_SIZE_Y_PPEM \ - -DHAVE_FT_GET_BDF_PROPERTY \ - -DHAVE_FT_GET_NEXT_CHAR \ - -DHAVE_FT_GET_PS_FONT_INFO \ - -DHAVE_FT_GET_X11_FONT_FORMAT \ - -DHAVE_FT_HAS_PS_GLYPH_NAMES \ - -DHAVE_EXPAT -DXFREE86_FT2 -DHAVE_INTTYPES_H \ - -DHAVE_STDINT_H -DHAVE_RANDOM -.if defined(__MINIX) -CPPFLAGS+= -DFC_NO_MT=1 -.endif # defined(__MINIX) - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/freetype2 \ - -I${X11SRCDIR.freetype}/src \ - -I${X11SRCDIR.freetype}/include \ - -I${X11SRCDIR.${LIB}}/../include \ - -I. \ - -I${X11SRCDIR.${LIB}} - -.include "Makefile.fcarch" - -CLEANFILES+= fcarch.h - -PKGCONFIG= fontconfig -PKGCONFIG_SED_FLAGS= \ - -e "s,@sysconfdir@,${X11ETCDIR},; \ - s,@localstatedir@,/var,; \ - s,@BASECONFIGDIR@,/etc/fonts,; \ - s,@fc_cachedir@,${FONTCONFIG_PATH}," - -# XXX -CPPFLAGS.fcxml.c= -Wno-error - -CWARNFLAGS.clang+= -Wno-pointer-sign -Wno-switch - -.include -.include diff --git a/external/mit/xorg/lib/fontconfig/src/Makefile.fcarch b/external/mit/xorg/lib/fontconfig/src/Makefile.fcarch deleted file mode 100644 index cefec5889..000000000 --- a/external/mit/xorg/lib/fontconfig/src/Makefile.fcarch +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile.fcarch,v 1.3 2013/06/03 06:46:54 mrg Exp $ - -.ifndef _FONTCONFIG_FCARCH_MK_ -_FONTCONFIG_FCARCH_MK_=1 - -CPPFLAGS+= -DFC_ARCHITECTURE="\"${MACHINE_ARCH}\"" - -.endif diff --git a/external/mit/xorg/lib/fontconfig/src/shlib_version b/external/mit/xorg/lib/fontconfig/src/shlib_version deleted file mode 100644 index b342e9274..000000000 --- a/external/mit/xorg/lib/fontconfig/src/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.4 2013/06/03 20:23:39 mrg Exp $ -# -major=2 -minor=2 diff --git a/external/mit/xorg/lib/freetype/Makefile b/external/mit/xorg/lib/freetype/Makefile deleted file mode 100644 index a849d61b9..000000000 --- a/external/mit/xorg/lib/freetype/Makefile +++ /dev/null @@ -1,103 +0,0 @@ -# $NetBSD: Makefile,v 1.16 2015/07/20 04:10:40 mrg Exp $ - -.include - -LIB= freetype - -FREETYPE= ${X11SRCDIR.${LIB}} - -SUBDIR= freetype - -.PATH: ${FREETYPE}/src/base -SRCS= ftapi.c ftbase.c ftbbox.c ftbdf.c ftdebug.c ftfntfmt.c ftfstype.c \ - ftglyph.c ftinit.c ftlcdfil.c ftmm.c ftpfr.c ftstroke.c ftsynth.c \ - ftsystem.c fttype1.c ftwinfnt.c ftbitmap.c ftcid.c \ - ftgasp.c ftgxval.c ftotval.c ftpatent.c ftpfr.c - -.PATH: ${FREETYPE}/src/autofit -SRCS+= autofit.c - -#.PATH: ${FREETYPE}/src/autohint -#SRCS+= autohint.c - -.PATH: ${FREETYPE}/src/bdf -SRCS+= bdf.c - -.PATH: ${FREETYPE}/src/cache -SRCS+= ftcache.c - -.PATH: ${FREETYPE}/src/cff -SRCS+= cff.c - -.PATH: ${FREETYPE}/src/cid -SRCS+= type1cid.c - -.PATH: ${FREETYPE}/src/gzip -SRCS+= ftgzip.c - -.PATH: ${FREETYPE}/src/bzip2 -SRCS+= ftbzip2.c - -.PATH: ${FREETYPE}/src/lzw -SRCS+= ftlzw.c - -.PATH: ${FREETYPE}/src/pcf -SRCS+= pcf.c - -.PATH: ${FREETYPE}/src/pfr -SRCS+= pfr.c - -.PATH: ${FREETYPE}/src/psaux -SRCS+= psaux.c - -.PATH: ${FREETYPE}/src/pshinter -SRCS+= pshinter.c - -.PATH: ${FREETYPE}/src/psnames -SRCS+= psmodule.c - -.PATH: ${FREETYPE}/src/raster -SRCS+= raster.c - -.PATH: ${FREETYPE}/src/sfnt -SRCS+= sfnt.c - -.PATH: ${FREETYPE}/src/smooth -SRCS+= smooth.c - -.PATH: ${FREETYPE}/src/truetype -SRCS+= truetype.c - -.PATH: ${FREETYPE}/src/type1 -SRCS+= type1.c - -.PATH: ${FREETYPE}/src/type42 -SRCS+= type42.c - -.PATH: ${FREETYPE}/src/winfonts -SRCS+= winfnt.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -DFT_CONFIG_OPTION_SYSTEM_ZLIB \ - -DFT_CONFIG_CONFIG_H="" \ - -DFT2_BUILD_LIBRARY \ - -DFT_CONFIG_MODULES_H="" -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/freetype2 \ - -I${DESTDIR}${X11INCDIR}/freetype2/config \ - -I${X11SRCDIR.${LIB}}/include - -.if !defined(MKSUBPIXEL) || ${MKSUBPIXEL} != "no" -CPPFLAGS+= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING -.endif - -LIBDPLIBS= \ - z ${.CURDIR}/../../../../../lib/libz \ - bz2 ${.CURDIR}/../../../../../lib/libbz2 - -PKGCONFIG= freetype2 -PKGDIST.freetype2= ${.CURDIR} -PKGCONFIG_VERSION.freetype2= ${SHLIB_MAJOR}.${SHLIB_MINOR}.${SHLIB_TEENY} - -.include -.include -.include diff --git a/external/mit/xorg/lib/freetype/freetype/Makefile b/external/mit/xorg/lib/freetype/freetype/Makefile deleted file mode 100644 index db7f168da..000000000 --- a/external/mit/xorg/lib/freetype/freetype/Makefile +++ /dev/null @@ -1,51 +0,0 @@ -# $NetBSD: Makefile,v 1.20 2015/07/20 04:10:40 mrg Exp $ - -.include - -SUBDIR= config - -.PATH: ${X11SRCDIR.freetype}/include - -INCSDIR=${X11INCDIR}/freetype2 - -INCS= freetype.h ftadvanc.h ftbbox.h ftbdf.h ftbitmap.h ftbzip2.h ftcache.h \ - ftchapters.h ftcid.h fterrdef.h fterrors.h ftfntfmt.h ftgasp.h \ - ftglyph.h ftgxval.h ftgzip.h ftimage.h ftincrem.h ftlcdfil.h ftlist.h \ - ftlzw.h ftmac.h ftmm.h ftmodapi.h ftmoderr.h ftotval.h ftoutln.h \ - ftpfr.h ftrender.h ftsizes.h ftsnames.h ftstroke.h ftsynth.h \ - ftsystem.h fttrigon.h fttypes.h ftwinfnt.h \ - t1tables.h ttnameid.h tttables.h tttags.h ttunpat.h \ - ftautoh.h ftcffdrv.h ft2build.h - -SCRIPTS= freetype-config - -CLEANFILES+= ${SCRIPTS} - -FT_VERSION!= sed -n '/^version_info=/{s/version_info=.\([0-9]*\):\([0-9]*\):\([0-9]*\)./\1.\2.\3/;p;q;}' < ${X11SRCDIR.freetype}/builds/unix/configure.ac - -# XXX hijack config-subst from Xft -CONFIG_SUBST= ${TOOL_SED} \ - -e 's,%prefix%,${X11ROOTDIR},' \ - -e 's,%exec_prefix%,${X11BINDIR},' \ - -e 's,%libdir%,${X11USRLIBDIR},g' \ - -e 's,%includedir%,${X11INCDIR},' \ - -e 's,%ft_version%,${FT_VERSION},' \ - -e 's,%LIBS_CONFIG%,-lfreetype -lz -lbz2,' \ - -e 's,%LIBSSTATIC_CONFIG%,-lfreetype -lz -lbz2,' \ - -e 's,%build_libtool_libs%,yes,' \ - -e 's@%hardcode_libdir_flag_spec%@-Wl,-rpath,${X11USRLIBDIR}@' \ - -e 's,%FT2_EXTRA_LIBS%,,' \ - -e 's,%LIBZ%,-lz,' \ - -e 's,%LIBBZ2%,-lbz2,' \ - -e 's,@FT2_EXTRA_LIBS@,,' \ - -e 's,@LIBZ@,-lz,' \ - -e 's,@LIBBZ2@,-lbz2,' - -.PATH: ${X11SRCDIR.freetype}/builds/unix -freetype-config: freetype-config.in - ${_MKTARGET_CREATE} - ${CONFIG_SUBST} < ${.ALLSRC} > ${.TARGET} - -.include -.include -.include diff --git a/external/mit/xorg/lib/freetype/freetype/cache/Makefile b/external/mit/xorg/lib/freetype/freetype/cache/Makefile deleted file mode 100644 index cc1c6fc1a..000000000 --- a/external/mit/xorg/lib/freetype/freetype/cache/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2014/03/20 08:57:48 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.freetype}/include/cache - -INCSDIR=${X11INCDIR}/freetype2/cache - -INCS= ftcimage.h ftcmanag.h \ - ftcsbits.h ftcmru.h - -.include -.include diff --git a/external/mit/xorg/lib/freetype/freetype/config/Makefile b/external/mit/xorg/lib/freetype/freetype/config/Makefile deleted file mode 100644 index 4b7c5fdf7..000000000 --- a/external/mit/xorg/lib/freetype/freetype/config/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2014/03/20 08:57:48 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.freetype}/include/config - -INCSDIR=${X11INCDIR}/freetype2/config - -INCS= ftconfig.h ftheader.h ftmodule.h ftoption.h ftstdlib.h - -.include -.include diff --git a/external/mit/xorg/lib/freetype/freetype2.pc.in b/external/mit/xorg/lib/freetype/freetype2.pc.in deleted file mode 100644 index 42b9bb4c0..000000000 --- a/external/mit/xorg/lib/freetype/freetype2.pc.in +++ /dev/null @@ -1,11 +0,0 @@ -prefix=@prefix@ -exec_prefix=${prefix} -libdir=${prefix}/lib -includedir=${prefix}/include/freetype2 - -Name: FreeType 2 -Description: A free, high-quality, and portable font engine. -Version: @VERSION@ -Requires: -Libs: -L${libdir} -lfreetype -lz -lbz2 -Cflags: -I${includedir} diff --git a/external/mit/xorg/lib/freetype/shlib_version b/external/mit/xorg/lib/freetype/shlib_version deleted file mode 100644 index 93d9fd4b5..000000000 --- a/external/mit/xorg/lib/freetype/shlib_version +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: shlib_version,v 1.9 2015/07/20 04:10:40 mrg Exp $ -# -# try to keep this in sync with builds/unix/configure.ac:version_info= -major=18 -minor=0 -teeny=12 diff --git a/external/mit/xorg/lib/gallium/Makefile b/external/mit/xorg/lib/gallium/Makefile deleted file mode 100644 index 4c799eebe..000000000 --- a/external/mit/xorg/lib/gallium/Makefile +++ /dev/null @@ -1,485 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2015/09/23 05:28:14 mrg Exp $ - -# Link the gallium mega driver. - -LIBISMODULE= yes -LIBISCXX= yes - -.include - -SHLIB_MAJOR= 0 - -LIB= gallium_dri -DRIDIR= ${X11USRLIBDIR}/modules/dri -DRIDEBUGDIR= ${DEBUGDIR}${X11USRLIBDIR}/modules/dri - -DRIVERS= kms_swrast swrast -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" -DRIVERS+= r600 -.endif - -CPPFLAGS+= \ - -I${DESTDIR}${X11INCDIR}/libdrm - -# cargo culted. -#CPPFLAGS+= -D_NETBSD_SOURCE -DPTHREADS - -GALLIUM_SUBDIRS= \ - auxiliary \ - auxiliary/cso_cache \ - auxiliary/draw \ - auxiliary/hud \ - auxiliary/indices \ - auxiliary/os \ - auxiliary/pipebuffer \ - auxiliary/postprocess \ - auxiliary/rbug \ - auxiliary/rtasm \ - auxiliary/tgsi \ - auxiliary/translate \ - auxiliary/util \ - auxiliary/vl \ - drivers/galahad \ - drivers/identity \ - drivers/noop \ - drivers/trace \ - drivers/rbug \ - drivers/radeon \ - drivers/r600 \ - drivers/r600/sb \ - drivers/softpipe \ - winsys/radeon/drm \ - winsys/sw/null \ - winsys/sw/dri \ - winsys/sw/kms-dri \ - state_trackers/dri - -GALLIUM_SOURCES.auxiliary/cso_cache= \ - cso_cache.c \ - cso_context.c \ - cso_hash.c -GALLIUM_SOURCES.auxiliary/draw= \ - draw_context.c \ - draw_fs.c \ - draw_gs.c \ - draw_pipe.c \ - draw_pipe_aaline.c \ - draw_pipe_aapoint.c \ - draw_pipe_clip.c \ - draw_pipe_cull.c \ - draw_pipe_flatshade.c \ - draw_pipe_offset.c \ - draw_pipe_pstipple.c \ - draw_pipe_stipple.c \ - draw_pipe_twoside.c \ - draw_pipe_unfilled.c \ - draw_pipe_util.c \ - draw_pipe_validate.c \ - draw_pipe_vbuf.c \ - draw_pipe_wide_line.c \ - draw_pipe_wide_point.c \ - draw_prim_assembler.c \ - draw_pt.c \ - draw_pt_emit.c \ - draw_pt_fetch.c \ - draw_pt_fetch_emit.c \ - draw_pt_fetch_shade_emit.c \ - draw_pt_fetch_shade_pipeline.c \ - draw_pt_post_vs.c \ - draw_pt_so_emit.c \ - draw_pt_util.c \ - draw_pt_vsplit.c \ - draw_vertex.c \ - draw_vs.c \ - draw_vs_exec.c \ - draw_vs_variant.c -GALLIUM_SOURCES.auxiliary/hud= \ - font.c \ - hud_context.c \ - hud_cpu.c \ - hud_fps.c \ - hud_driver_query.c -GALLIUM_SOURCES.auxiliary/indices= \ - u_primconvert.c -GALLIUM_SOURCES.auxiliary/os= \ - os_misc.c \ - os_process.c \ - os_time.c -GALLIUM_SOURCES.auxiliary/pipebuffer= \ - pb_buffer_fenced.c \ - pb_buffer_malloc.c \ - pb_bufmgr_alt.c \ - pb_bufmgr_cache.c \ - pb_bufmgr_debug.c \ - pb_bufmgr_mm.c \ - pb_bufmgr_ondemand.c \ - pb_bufmgr_pool.c \ - pb_bufmgr_slab.c \ - pb_validate.c -GALLIUM_SOURCES.auxiliary/postprocess= \ - pp_celshade.c \ - pp_colors.c \ - pp_init.c \ - pp_mlaa.c \ - pp_run.c \ - pp_program.c -GALLIUM_SOURCES.auxiliary/rbug= \ - rbug_connection.c \ - rbug_context.c \ - rbug_core.c \ - rbug_demarshal.c \ - rbug_texture.c \ - rbug_shader.c -GALLIUM_SOURCES.auxiliary/rtasm= \ - rtasm_cpu.c \ - rtasm_execmem.c \ - rtasm_x86sse.c -GALLIUM_SOURCES.auxiliary/tgsi= \ - tgsi_build.c \ - tgsi_dump.c \ - tgsi_exec.c \ - tgsi_info.c \ - tgsi_iterate.c \ - tgsi_parse.c \ - tgsi_sanity.c \ - tgsi_scan.c \ - tgsi_strings.c \ - tgsi_text.c \ - tgsi_transform.c \ - tgsi_ureg.c \ - tgsi_util.c -GALLIUM_SOURCES.auxiliary/translate= \ - translate.c \ - translate_cache.c \ - translate_generic.c \ - translate_sse.c -GALLIUM_SOURCES.auxiliary/util= \ - u_debug.c \ - u_debug_describe.c \ - u_debug_flush.c \ - u_debug_memory.c \ - u_debug_refcnt.c \ - u_debug_stack.c \ - u_debug_symbol.c \ - u_dump_defines.c \ - u_dump_state.c \ - u_bitmask.c \ - u_blit.c \ - u_blitter.c \ - u_cache.c \ - u_caps.c \ - u_cpu_detect.c \ - u_dl.c \ - u_draw.c \ - u_draw_quad.c \ - u_format.c \ - u_format_other.c \ - u_format_latc.c \ - u_format_s3tc.c \ - u_format_rgtc.c \ - u_format_etc.c \ - u_format_bptc.c \ - u_format_tests.c \ - u_format_yuv.c \ - u_format_zs.c \ - u_framebuffer.c \ - u_gen_mipmap.c \ - u_handle_table.c \ - u_hash.c \ - u_hash_table.c \ - u_helpers.c \ - u_index_modify.c \ - u_keymap.c \ - u_linear.c \ - u_linkage.c \ - u_network.c \ - u_math.c \ - u_mm.c \ - u_pstipple.c \ - u_ringbuffer.c \ - u_sampler.c \ - u_simple_shaders.c \ - u_slab.c \ - u_snprintf.c \ - u_staging.c \ - u_suballoc.c \ - u_surface.c \ - u_surfaces.c \ - u_texture.c \ - u_tile.c \ - u_transfer.c \ - u_resource.c \ - u_upload_mgr.c \ - u_vbuf.c -GALLIUM_SOURCES.auxiliary/vl= \ - vl_csc.c \ - vl_compositor.c \ - vl_matrix_filter.c \ - vl_median_filter.c \ - vl_decoder.c \ - vl_mpeg12_decoder.c \ - vl_mpeg12_bitstream.c \ - vl_zscan.c \ - vl_idct.c \ - vl_mc.c \ - vl_vertex_buffers.c \ - vl_video_buffer.c \ - vl_deint_filter.c - -# Generated -.PATH: ${X11SRCDIR.MesaLib}/../src/gallium/auxiliary -GALLIUM_SOURCES.auxiliary= \ - u_indices_gen.c \ - u_unfilled_gen.c \ - u_format_table.c -.for _f in ${GALLIUM_SOURCES.auxiliary} -CPPFLAGS.${_f} += -I${X11SRCDIR.MesaLib}/src/gallium/auxiliary/util -.endfor - -GALLIUM_SOURCES.drivers/galahad= \ - glhd_objects.c \ - glhd_context.c \ - glhd_screen.c - -GALLIUM_SOURCES.drivers/identity = \ - id_objects.c \ - id_context.c \ - id_screen.c - -GALLIUM_SOURCES.drivers/noop = \ - noop_pipe.c \ - noop_state.c - -GALLIUM_SOURCES.drivers/trace = \ - tr_context.c \ - tr_dump.c \ - tr_dump_state.c \ - tr_screen.c \ - tr_texture.c - -GALLIUM_SOURCES.drivers/rbug = \ - DRIVERrbug_core.c \ - DRIVERrbug_context.c \ - rbug_objects.c \ - rbug_screen.c -# Conflicts with auxiliary/rbug/ files -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/src/gallium/drivers/rbug/rbug_core.c DRIVERrbug_core.c -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/src/gallium/drivers/rbug/rbug_context.c DRIVERrbug_context.c -CPPFLAGS.DRIVERrbug_core.c+= -I${X11SRCDIR.MesaLib}/src/gallium/auxiliary -CPPFLAGS.DRIVERrbug_core.c+= -I${X11SRCDIR.MesaLib}/src/gallium/drivers/rbug -CPPFLAGS.DRIVERrbug_core.c+= -I${X11SRCDIR.MesaLib}/src/gallium/drivers -CPPFLAGS.DRIVERrbug_context.c+= -I${X11SRCDIR.MesaLib}/src/gallium/auxiliary -CPPFLAGS.DRIVERrbug_context.c+= -I${X11SRCDIR.MesaLib}/src/gallium/drivers/rbug -CPPFLAGS.DRIVERrbug_context.c+= -I${X11SRCDIR.MesaLib}/src/gallium/drivers - -GALLIUM_SOURCES.drivers/radeon = \ - cayman_msaa.c \ - r600_buffer_common.c \ - r600_pipe_common.c \ - r600_query.c \ - r600_streamout.c \ - r600_texture.c \ - radeon_video.c \ - radeon_uvd.c \ - radeon_vce.c \ - radeon_vce_40_2_2.c -#LLVM_C_FILES := \ -# radeon_elf_util.c \ -# radeon_setup_tgsi_llvm.c \ -# radeon_llvm_emit.c \ -# radeon_llvm_util.c - -GALLIUM_SOURCES.drivers/r600 = \ - r600_asm.c \ - r600_blit.c \ - r600_hw_context.c \ - r600_isa.c \ - r600_pipe.c \ - r600_shader.c \ - r600_state.c \ - r700_asm.c \ - evergreen_hw_context.c \ - evergreen_state.c \ - eg_asm.c \ - r600_state_common.c \ - evergreen_compute.c \ - compute_memory_pool.c \ - r600_uvd.c -GALLIUM_SOURCES.drivers/r600/sb = \ - sb_bc_builder.cpp \ - sb_bc_decoder.cpp \ - sb_bc_dump.cpp \ - sb_bc_finalize.cpp \ - sb_bc_parser.cpp \ - sb_context.cpp \ - sb_core.cpp \ - sb_dce_cleanup.cpp \ - sb_def_use.cpp \ - sb_dump.cpp \ - sb_expr.cpp \ - sb_gcm.cpp \ - sb_gvn.cpp \ - sb_if_conversion.cpp \ - sb_ir.cpp \ - sb_liveness.cpp \ - sb_pass.cpp \ - sb_peephole.cpp \ - sb_psi_ops.cpp \ - sb_ra_checker.cpp \ - sb_ra_coalesce.cpp \ - sb_ra_init.cpp \ - sb_sched.cpp \ - sb_shader.cpp \ - sb_ssa_builder.cpp \ - sb_valtable.cpp -#LLVM_C_SOURCES = r600_llvm.c - -.for _f in ${GALLIUM_SOURCES.drivers/r600} ${GALLIUM_SOURCES.drivers/r600/sb} -CPPFLAGS.${_f} += -I${X11SRCDIR.MesaLib}/src/gallium/drivers/r600 -.endfor - - - -GALLIUM_SOURCES.winsys/radeon/drm = \ - radeon_drm_bo.c \ - radeon_drm_cs.c \ - radeon_drm_cs_dump.c \ - radeon_drm_winsys.c - -GALLIUM_SOURCES.drivers/softpipe = \ - sp_fs_exec.c \ - sp_clear.c \ - sp_fence.c \ - sp_flush.c \ - sp_query.c \ - sp_context.c \ - sp_draw_arrays.c \ - sp_prim_vbuf.c \ - sp_quad_pipe.c \ - sp_quad_stipple.c \ - sp_quad_depth_test.c \ - sp_quad_fs.c \ - sp_quad_blend.c \ - sp_screen.c \ - sp_setup.c \ - sp_state_blend.c \ - sp_state_clip.c \ - sp_state_derived.c \ - sp_state_sampler.c \ - sp_state_shader.c \ - sp_state_so.c \ - sp_state_rasterizer.c \ - sp_state_surface.c \ - sp_state_vertex.c \ - sp_texture.c \ - sp_tex_sample.c \ - sp_tex_tile_cache.c \ - sp_tile_cache.c \ - sp_surface.c - -GALLIUM_SOURCES.winsys/sw/null = \ - null_sw_winsys.c - -GALLIUM_SOURCES.winsys/sw/dri = \ - dri_sw_winsys.c - -GALLIUM_SOURCES.winsys/sw/kms-dri = \ - kms_dri_sw_winsys.c - -GALLIUM_SOURCES.state_trackers/dri = \ - dri_context.c \ - dri_drawable.c \ - dri_query_renderer.c \ - dri_screen.c \ - drisw.c \ - dri2.c -.for _f in ${GALLIUM_SOURCES.state_trackers/dri} -CPPFLAGS.${_f} += -I${X11SRCDIR.MesaLib}/src/gallium/state_trackers/dri/common -.endfor - -# missing -CPPFLAGS+= \ - -DGALLIUM_SOFTPIPE \ - -DGALLIUM_STATIC_TARGETS=1 \ - -DMESA_EGL_NO_X11_HEADERS \ - -.for _d in ${GALLIUM_SUBDIRS} -SRCS+= ${GALLIUM_SOURCES.${_d}} -.PATH: ${X11SRCDIR.MesaLib}/src/gallium/${_d} -.endfor - -#. if defined(${GALLIUM_SOURCES.${_d}}) -#SRCS+= ${GALLIUM_SOURCES.${_d}} -#. endif - -.include "../libloader.mk" - -LIBDPLIBS+= m ${.CURDIR}/../../../../../lib/libm -LIBDPLIBS+= drm ${.CURDIR}/../libdrm -LIBDPLIBS+= drm_radeon ${.CURDIR}/../libdrm_radeon -LIBDPLIBS+= glapi ${.CURDIR}/../libglapi -LIBDPLIBS+= expat ${.CURDIR}/../../../../../external/mit/expat/lib/libexpat - -LDFLAGS+= -Wl,--version-script=${X11SRCDIR.MesaLib}/src/gallium/targets/dri/dri.sym - -## build mesagallium parts -MESA_SRC_MODULES= main math vbo state_tracker program asm_s -.include "../libmesa.mk" -.include "../libglsl.mk" - -# Special addition for just gallium; it misses the rest of asm_c files. -.PATH: ${X11SRCDIR.MesaLib}/src/mesa/x86 -SRCS+= common_x86.c - -.if ${MACHINE} == "amd64" || ${MACHINE} == "i386" -SRCS+= streaming-load-memcpy.c -CFLAGS.streaming-load-memcpy.c+= -msse4.1 -.endif - -.include "../driver.mk" - - -.PATH: ${X11SRCDIR.MesaLib}/src/gallium/targets/dri -SRCS+= target.c - -CPPFLAGS+= \ - -I${X11SRCDIR.MesaLib}/src/gallium/include \ - -I${X11SRCDIR.MesaLib}/src/gallium/auxiliary \ - -I${X11SRCDIR.MesaLib}/src/gallium/drivers \ - -I${X11SRCDIR.MesaLib}/../src/mesa/drivers/dri/common - -CPPFLAGS.target.c += \ - -DDRI_TARGET \ - -DGALLIUM_GALAHAD \ - -DGALLIUM_NOOP \ - -DGALLIUM_RBUG \ - -DGALLIUM_TRACE \ - -DGALLIUM_R200 \ - -DGALLIUM_R600 \ - -DGALLIUM_SOFTPIPE \ - -I${X11SRCDIR.MesaLib}/src/gallium/state_trackers/dri \ - -I${X11SRCDIR.MesaLib}/src/loader \ - -I${X11SRCDIR.MesaLib}/src/gallium/winsys - -CWARNFLAGS.clang+= -Wno-error=constant-conversion \ - -Wno-error=tautological-constant-out-of-range-compare \ - -Wno-error=pointer-sign \ - -Wno-error=switch \ - -Wno-error=absolute-value \ - -Wno-error=tautological-compare \ - -Wno-error=static-in-inline - -.include -LIBDIR= ${X11USRLIBDIR}/modules/dri - -.for _d in ${DRIVERS} -SYMLINKS+= gallium_dri.so ${DRIDIR}/${_d}_dri.so -SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR} ${DRIDIR}/${_d}_dri.so.${SHLIB_MAJOR} -.if ${MKDEBUG} != "no" -SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHLIB_MAJOR}.debug -.endif -.endfor - -.include -# Don't regenerate c files -.y.c: diff --git a/external/mit/xorg/lib/libFS/Makefile b/external/mit/xorg/lib/libFS/Makefile deleted file mode 100644 index c830b4f7d..000000000 --- a/external/mit/xorg/lib/libFS/Makefile +++ /dev/null @@ -1,41 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2012/04/04 10:59:45 joerg Exp $ - -.include -.if defined(__MINIX) -NOCLANGERROR= yes -NOGCCERROR= yes -.endif # defined(__MINIX) - -LIB= FS -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/fonts - -SRCS= FSCloseFt.c FSClServ.c FSConnServ.c FSErrDis.c FSErrHndlr.c FSFlush.c \ - FSFontInfo.c FSFtNames.c FSGetCats.c FSlibInt.c FSListCats.c \ - FSListExt.c FSMisc.c FSNextEv.c FSOpenFont.c FSOpenServ.c FSQGlyphs.c \ - FSQuExt.c FSQXExt.c FSQXInfo.c FSServName.c FSSetCats.c FSSync.c \ - FSSynchro.c fs_transport.c - -CWARNFLAGS.clang+= -Wno-string-plus-int - -INCS= FSlib.h -INCSDIR=${X11INCDIR}/X11/fonts - -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/fonts -CPPFLAGS+= -I${X11SRCDIR.${LIB}}/../include - -CONN_DEFINES = ${X11FLAGS.CONNECTION} -DFS_t -DTRANS_CLIENT -SOCK_DEFINES = -DBSD44SOCKETS - -CPPFLAGS+= $(CONN_DEFINES) $(SOCK_DEFINES) - -# XXX -COPTS.FSGetCats.c+= -Wno-error -COPTS.FSListExt.c+= -Wno-error -COPTS.FSOpenServ.c+= -Wno-error - -PKGCONFIG= libfs -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libFS/shlib_version b/external/mit/xorg/lib/libFS/shlib_version deleted file mode 100644 index 00a39cdf0..000000000 --- a/external/mit/xorg/lib/libFS/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:10 christos Exp $ -# -major=7 -minor=0 diff --git a/external/mit/xorg/lib/libGL/Makefile b/external/mit/xorg/lib/libGL/Makefile deleted file mode 100644 index 08e2237b0..000000000 --- a/external/mit/xorg/lib/libGL/Makefile +++ /dev/null @@ -1,190 +0,0 @@ -# $NetBSD: Makefile,v 1.21 2014/12/18 06:24:30 mrg Exp $ - -.include - -LIB= GL -LIBISCXX= yes - -SUBDIR= internal - -# glx -.PATH: ${X11SRCDIR.MesaLib}/src/glx -SRCS.glx= \ - clientattrib.c \ - clientinfo.c \ - compsize.c \ - create_context.c \ - eval.c \ - glxconfig.c \ - glxcmds.c \ - glxcurrent.c \ - glx_error.c \ - glxext.c \ - glxextensions.c \ - indirect_glx.c \ - MESAindirect.c \ - MESAindirect_init.c \ - MESAindirect_size.c \ - MESAindirect_window_pos.c \ - indirect_texture_compression.c \ - indirect_transpose_matrix.c \ - indirect_vertex_array.c \ - indirect_vertex_program.c \ - pixel.c \ - pixelstore.c \ - query_renderer.c \ - render2.c \ - renderpix.c \ - single2.c \ - singlepix.c \ - vertarr.c \ - glx_pbuffer.c \ - glx_query.c \ - glxhash.c - -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/../src/mapi/glapi/indirect.c MESAindirect.c -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/../src/mapi/glapi/indirect_init.c MESAindirect_init.c -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/../src/mapi/glapi/indirect_size.c MESAindirect_size.c -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/src/glx/indirect_window_pos.c MESAindirect_window_pos.c - -.for _f in ${SRCS.glx} -CPPFLAGS.${_f}= -I${X11SRCDIR.MesaLib}/../src/mapi/glapi -DGLX_SHARED_GLAPI -.endfor - -# glapi -.PATH: ${X11SRCDIR.MesaLib}/src/mapi -.PATH: ${X11SRCDIR.MesaLib}/../src/mapi/glapi -SRCS.glapi= \ - entry.c \ - glapi_gentable.c -.for _f in ${SRCS.glapi} -CPPFLAGS.${_f}= -DMAPI_MODE_BRIDGE \ - -DMAPI_ABI_HEADER=\"glapi_glapi_mapi_tmp.h\" \ - -I${X11SRCDIR.MesaLib}/src/mesa -.endfor - - -# XXX see TODO -#.if ${MACHINE_ARCH} == "i386" -#.PATH: ${X11SRCDIR.MesaLib}/src/mesa/x86 -#SRCS.glx+= glapi_x86.S -#CPPFLAGS+= -DUSE_X86_ASM -I${X11SRCDIR.MesaLib}/src/mesa/x86 -## -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS) -#.endif - - -.if ${X11DRI} != "no" -# dri -SRCS.dri= \ - drisw_glx.c \ - xfont.c \ - dri_common.c \ - dri_glx.c \ - XF86dri.c \ - dri2_glx.c \ - dri2.c \ - dri2_query_renderer.c -.for fn in ${SRCS.dri} -CPPFLAGS.${fn}=-DDEFAULT_DRIVER_DIR=\"${X11USRLIBDIR}/modules/dri\" -.endfor -.endif - -.include "../libloader.mk" - -.PATH: ${X11SRCDIR.MesaLib}/src/glw -.PATH: ${X11SRCDIR.MesaLib}/include/GL -.PATH: ${X11SRCDIR.MesaLib}/src/mesa/drivers/x11 -INCS= gl.h gl_mangle.h glcorearb.h glext.h \ - glx.h glx_mangle.h glxext.h \ - osmesa.h wglext.h wmesa.h -INCSDIR=${X11INCDIR}/GL - - -SRCS+= ${SRCS.dri} ${SRCS.glx} ${SRCS.glapi} - -CPPFLAGS+= \ - -I${X11SRCDIR.MesaLib}/include \ - -I${X11SRCDIR.MesaLib}/include/GL/internal \ - -I${X11SRCDIR.MesaLib}/src/loader \ - -I${X11SRCDIR.MesaLib}/src/mapi \ - -I${X11SRCDIR.MesaLib}/src/mapi/glapi \ - -I${X11SRCDIR.MesaLib}/../src/mapi/glapi \ - -I${X11SRCDIR.MesaLib}/src/glx \ - -I${DESTDIR}${X11INCDIR}/libdrm \ - -I${DESTDIR}${X11INCDIR}/GL \ - -I${DESTDIR}${X11INCDIR}/X11 \ - -I${DESTDIR}${X11INCDIR}/X11/extensions - -CPPFLAGS+= ${X11FLAGS.THREADLIB} - -# -D_NETBSD_SOURCE \ - -# old -CPPFLAGS+= -D__GLX_ALIGN64 \ - -DXF86VIDMODE \ - -DGLX_SHARED_GLAPI - -# new -CPPFLAGS+= \ - -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 \ - -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 \ - -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 \ - -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE___BUILTIN_BSWAP32=1 \ - -DHAVE___BUILTIN_BSWAP64=1 -DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 \ - -DHAVE_POSIX_MEMALIGN -DHAVE_PTHREAD=1 -DHAVE_DLOPEN - -.include "../asm.mk" - -CPPFLAGS+= \ - -DHAVE_LIBDRM -DGLX_USE_DRM \ - -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING \ - -DHAVE_ALIAS -DMESA_EGL_NO_X11_HEADERS - -CPPFLAGS+= \ - -DUSE_EXTERNAL_DXTN_LIB=1 \ - -DYYTEXT_POINTER=1 - -CFLAGS+= -fvisibility=hidden -fno-strict-aliasing -fno-builtin-memcmp -.if !defined(__MINIX) -CFLAGS+= -pthread -.else -LDADD+= -lmthread -DPADD+= ${LIBMTHREAD} -CWARNFLAGS.clang+= -Wno-\#warnings -.endif # !defined(__MINIX) - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic \ - Xxf86vm ${.CURDIR}/../libXxf86vm \ - Xfixes ${.CURDIR}/../libXfixes \ - Xdamage ${.CURDIR}/../libXdamage \ - glapi ${.CURDIR}/../libglapi \ - drm ${.CURDIR}/../libdrm \ - X11-xcb ${.CURDIR}/../libX11/libX11-xcb \ - xcb-dri2 ${.CURDIR}/../libxcb/dri2 \ - xcb-glx ${.CURDIR}/../libxcb/glx \ - expat ${NETBSDSRCDIR}/external/mit/expat/lib/libexpat \ - m ${NETBSDSRCDIR}/lib/libm - -MKLINT=no - -PKGCONFIG= gl -PKGDIST.gl= ${X11SRCDIR.MesaLib}/src/mesa -.include "${.CURDIR}/../libGL/mesa-ver.mk" -PKGCONFIG_VERSION.gl= ${MESA_VER} - -# XXX remove these from bsd.x11.mk -# XXX enable GLX TLS? it's enabled in the code, but not here.. -PKGCONFIG_SED_FLAGS= \ - -e "s,@GL_PC_REQ_PRIV@,x11 xext,; \ - s,@GL_LIB@,GL,; \ - s,@GL_PC_LIB_PRIV@,-lm -lpthread,; \ - s,@GL_PC_CFLAGS@,,; \ - s,@GLX_TLS@,no," - - -CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-format -Wno-constant-conversion - -.include -.include -.include diff --git a/external/mit/xorg/lib/libGL/internal/Makefile b/external/mit/xorg/lib/libGL/internal/Makefile deleted file mode 100644 index 44f3dab8a..000000000 --- a/external/mit/xorg/lib/libGL/internal/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2014/12/18 06:24:30 mrg Exp $ - -.include - -.PATH: ${X11SRCDIR.MesaLib}/include/GL/internal - -INCS= dri_interface.h -INCSDIR=${X11INCDIR}/GL/internal - -NOOBJ= # defined - -.include -.include diff --git a/external/mit/xorg/lib/libGL/mesa-ver.mk b/external/mit/xorg/lib/libGL/mesa-ver.mk deleted file mode 100644 index d34aeb484..000000000 --- a/external/mit/xorg/lib/libGL/mesa-ver.mk +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: mesa-ver.mk,v 1.2 2014/12/18 06:24:30 mrg Exp $ - -MESA_VER= 10.3.5 diff --git a/external/mit/xorg/lib/libGL/shlib_version b/external/mit/xorg/lib/libGL/shlib_version deleted file mode 100644 index 0ca2b9a32..000000000 --- a/external/mit/xorg/lib/libGL/shlib_version +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:10 christos Exp $ -# -# XXX netbsd-4 has major=1 minor=2 -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libGLU/Makefile b/external/mit/xorg/lib/libGLU/Makefile deleted file mode 100644 index 124b18d40..000000000 --- a/external/mit/xorg/lib/libGLU/Makefile +++ /dev/null @@ -1,168 +0,0 @@ -# $NetBSD: Makefile,v 1.17 2015/07/01 15:38:56 christos Exp $ - -.include - -LIB= GLU -LIBISCXX= yes - -GLUDIR= ${X11SRCDIR.glu}/src - -SRCS.libutil= \ - error.c \ - glue.c \ - mipmap.c \ - project.c \ - quad.c \ - registry.c -.PATH: ${GLUDIR}/libutil - -SRCS.libtess= \ - dict.c \ - geom.c \ - memalloc.c \ - mesh.c \ - normal.c \ - priorityq.c \ - render.c \ - sweep.c \ - tess.c \ - tessmono.c -.PATH: ${GLUDIR}/libtess - -SRCS.interface= \ - bezierEval.cc \ - bezierPatch.cc \ - bezierPatchMesh.cc \ - glcurveval.cc \ - glinterface.cc \ - glrenderer.cc \ - glsurfeval.cc \ - incurveeval.cc \ - insurfeval.cc -.PATH: ${GLUDIR}/libnurbs/interface - -SRCS.internals= \ - arc.cc \ - arcsorter.cc \ - arctess.cc \ - backend.cc \ - basiccrveval.cc \ - basicsurfeval.cc \ - bin.cc \ - bufpool.cc \ - cachingeval.cc \ - ccw.cc \ - coveandtiler.cc \ - curve.cc \ - curvelist.cc \ - curvesub.cc \ - dataTransform.cc \ - displaylist.cc \ - flist.cc \ - flistsorter.cc \ - hull.cc \ - intersect.cc \ - knotvector.cc \ - mapdesc.cc \ - mapdescv.cc \ - maplist.cc \ - mesher.cc \ - monoTriangulationBackend.cc \ - monotonizer.cc \ - mycode.cc \ - nurbsinterfac.cc \ - nurbstess.cc \ - patch.cc \ - patchlist.cc \ - quilt.cc \ - reader.cc \ - renderhints.cc \ - slicer.cc \ - sorter.cc \ - splitarcs.cc \ - subdivider.cc \ - tobezier.cc \ - trimline.cc \ - trimregion.cc \ - trimvertpool.cc \ - uarray.cc \ - varray.cc -.PATH: ${GLUDIR}/libnurbs/internals -.for fn in ${SRCS.internals} -CPPFLAGS.${fn}+= -D_EXTENSIONS_ -.endfor - -SRCS.nurbtess= \ - directedLine.cc \ - gridWrap.cc \ - monoChain.cc \ - monoPolyPart.cc \ - monoTriangulation.cc \ - partitionX.cc \ - partitionY.cc \ - polyDBG.cc \ - polyUtil.cc \ - primitiveStream.cc \ - quicksort.cc \ - rectBlock.cc \ - sampleComp.cc \ - sampleCompBot.cc \ - sampleCompRight.cc \ - sampleCompTop.cc \ - sampleMonoPoly.cc \ - sampledLine.cc \ - searchTree.cc -.PATH: ${GLUDIR}/libnurbs/nurbtess - -.if !defined(__MINIX) -CPPFLAGS+= -DPTHREADS -DUSE_XSHM -DHZ=100 -DNDEBUG -DLIBRARYBUILD -.else -CPPFLAGS+= -DUSE_XSHM -DHZ=100 -DNDEBUG -DLIBRARYBUILD -.endif # !defined(__MINIX) -CPPFLAGS+= -I${GLUDIR}/include \ - -I${GLUDIR}/libnurbs/internals \ - -I${GLUDIR}/libnurbs/interface \ - -I${GLUDIR}/libnurbs/nurbtess - -SRCS= ${SRCS.libutil} ${SRCS.libtess} \ - ${SRCS.interface} ${SRCS.internals} ${SRCS.nurbtess} - -.if !defined(__MINIX) -CFLAGS+= -fno-strict-aliasing -fvisibility=hidden -pthread -.else -CFLAGS+= -fno-strict-aliasing -fvisibility=hidden -.endif # !defined(__MINIX) - -.PATH: ${X11SRCDIR.glu}/include/GL -INCS= glu.h glu_mangle.h -INCSDIR=${X11INCDIR}/GL - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic \ - GL ${.CURDIR}/../libGL \ - Xxf86vm ${.CURDIR}/../libXxf86vm \ - Xfixes ${.CURDIR}/../libXfixes \ - Xdamage ${.CURDIR}/../libXdamage \ - drm ${.CURDIR}/../libdrm \ - m ${NETBSDSRCDIR}/lib/libm - -PKGCONFIG= glu -PKGDIST.glu= ${X11SRCDIR.glu} -.include "${.CURDIR}/../libGL/mesa-ver.mk" -PKGCONFIG_VERSION.glu= ${MESA_VER} -PKGCONFIG_SED_FLAGS= \ - -e "s,@GLU_REQUIRES@,gl," - -.include -.include - -# XXX -COPTS.arcsorter.cc+= -Wno-error -COPTS.sorter.cc+= -Wno-error -COPTS.tobezier.cc+= -Wno-error - -.if ${MACHINE_ARCH} == "m68000" || ${MACHINE_ARCH} == "m68k" -COPTS.sampleCompTop.cc+= -O0 -.endif - -CWARNFLAGS.clang+= -Wno-parentheses -Wno-tautological-compare diff --git a/external/mit/xorg/lib/libGLU/shlib_version b/external/mit/xorg/lib/libGLU/shlib_version deleted file mode 100644 index 839857089..000000000 --- a/external/mit/xorg/lib/libGLU/shlib_version +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: shlib_version,v 1.3 2015/01/29 22:51:55 nat Exp $ -# -# XXX netbsd-4 had minor=3 -major=2 -minor=1 diff --git a/external/mit/xorg/lib/libGLw/Makefile b/external/mit/xorg/lib/libGLw/Makefile deleted file mode 100644 index bb840cf8a..000000000 --- a/external/mit/xorg/lib/libGLw/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2014/12/18 06:24:30 mrg Exp $ - -.include - -LIB= GLw -.PATH: ${X11SRCDIR.glw} - -SRCS= GLwDrawA.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} - -# Motif stubs for glwMDrawingAreaClass are enabled by setting MKX11MOTIF -# in /etc/mk.conf. If Motif is not installed in the default location -# (/usr/pkg), set X11MOTIFPATH as well. - -.if "${MKX11MOTIF}" == "yes" -X11MOTIFPATH?= /usr/pkg -SRCS+= GLwMDrawA.c -CPPFLAGS+= -I${X11MOTIFPATH}/include -.endif - -.PATH: ${X11SRCDIR.glw} -INCS= GLwDrawA.h GLwDrawAP.h GLwMDrawA.h GLwMDrawAP.h -INCSDIR=${X11INCDIR}/GL - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic \ - Xxf86vm ${.CURDIR}/../libXxf86vm \ - Xfixes ${.CURDIR}/../libXfixes \ - Xdamage ${.CURDIR}/../libXdamage \ - m ${.CURDIR}/../../../../../lib/libm \ - drm ${.CURDIR}/../libdrm \ - GL ${.CURDIR}/../libGL \ - ICE ${.CURDIR}/../libICE \ - SM ${.CURDIR}/../libSM \ - Xt ${.CURDIR}/../libXt \ - xcb-dri2 ${.CURDIR}/../libxcb/dri2 - -PKGCONFIG= glw -PKGDIST.glw= ${X11SRCDIR.MesaLib}/src/glw -PKGCONFIG_VERSION.glw= 1.0.0 - -.include -.include diff --git a/external/mit/xorg/lib/libGLw/shlib_version b/external/mit/xorg/lib/libGLw/shlib_version deleted file mode 100644 index 21144984e..000000000 --- a/external/mit/xorg/lib/libGLw/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:10 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libI810XvMC/Makefile b/external/mit/xorg/lib/libI810XvMC/Makefile deleted file mode 100644 index 1502b5f11..000000000 --- a/external/mit/xorg/lib/libI810XvMC/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2014/04/03 02:51:20 riastradh Exp $ - -.include - -LIB= I810XvMC -.PATH: ${X11SRCDIR.xf86-video-intel}/src/legacy/i810/xvmc - -SRCS= I810XvMC.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} \ - -DHAVE_XEXTPROTO_71 \ - -DXSERVER_LIBPCIACCESS \ - -DTRUE=1 -DFALSE=0 -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm \ - -I${DESTDIR}${X11INCDIR}/xorg \ - -I${X11SRCDIR.xf86-video-intel}/src - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic \ - Xv ${.CURDIR}/../libXv \ - XvMC ${.CURDIR}/../libXvMC \ - drm ${.CURDIR}/../libdrm - -.include -.include diff --git a/external/mit/xorg/lib/libI810XvMC/shlib_version b/external/mit/xorg/lib/libI810XvMC/shlib_version deleted file mode 100644 index ef5534efa..000000000 --- a/external/mit/xorg/lib/libI810XvMC/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2011/01/19 00:36:40 jmcneill Exp $ -# -major=1 -minor=0 diff --git a/external/mit/xorg/lib/libICE/Makefile b/external/mit/xorg/lib/libICE/Makefile deleted file mode 100644 index d9afcf1e8..000000000 --- a/external/mit/xorg/lib/libICE/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2013/05/31 08:18:41 mrg Exp $ - -.include - -LIB= ICE -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/ICE - -SRCS= accept.c authutil.c connect.c error.c getauth.c iceauth.c icetrans.c \ - listen.c listenwk.c locking.c misc.c ping.c process.c protosetup.c \ - register.c replywait.c setauth.c shutdown.c watch.c - -INCS= ICE.h ICEconn.h ICElib.h ICEmsg.h ICEproto.h ICEutil.h -INCSDIR=${X11INCDIR}/X11/ICE - -CONN_DEFINES= ${X11FLAGS.CONNECTION} -DICE_t=1 -DTRANS_CLIENT -DTRANS_SERVER -SOCK_DEFINES= -DBSD44SOCKETS - -CPPFLAGS+= -DHAVE_ASPRINTF - -CPPFLAGS+= $(TRANS_INCLUDES) $(CONN_DEFINES) $(SOCK_DEFINES) - -PKGDIST= ${LIB} - -CWARNFLAGS.clang+= -Wno-string-plus-int - -COPTS.icetrans.c+= -Wno-error - -.include -.include diff --git a/external/mit/xorg/lib/libICE/shlib_version b/external/mit/xorg/lib/libICE/shlib_version deleted file mode 100644 index 00a39cdf0..000000000 --- a/external/mit/xorg/lib/libICE/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:10 christos Exp $ -# -major=7 -minor=0 diff --git a/external/mit/xorg/lib/libIntelXvMC/Makefile b/external/mit/xorg/lib/libIntelXvMC/Makefile deleted file mode 100644 index 1fe79f0b5..000000000 --- a/external/mit/xorg/lib/libIntelXvMC/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2014/04/21 21:57:03 christos Exp $ - -.include - -LIB= IntelXvMC -MKLINT= no -.PATH: ${X11SRCDIR.xf86-video-intel}/xvmc - -SRCS+= intel_xvmc.c -SRCS+= intel_xvmc_dump.c -SRCS+= i915_xvmc.c -SRCS+= i965_xvmc.c -SRCS+= xvmc_vld.c -SRCS+= intel_batchbuffer.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} \ - -DTRUE=1 -DFALSE=0 -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm \ - -I${DESTDIR}${X11INCDIR}/xorg \ - -I${X11SRCDIR.xf86-video-intel}/src - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic \ - Xv ${.CURDIR}/../libXv \ - XvMC ${.CURDIR}/../libXvMC \ - drm ${.CURDIR}/../libdrm \ - drm_intel ${.CURDIR}/../libdrm_intel \ - xcb ${.CURDIR}/../libxcb/libxcb - -CWARNFLAGS.clang+= -Wno-pointer-sign -Wno-format -Wno-parentheses - -.include -.include diff --git a/external/mit/xorg/lib/libIntelXvMC/shlib_version b/external/mit/xorg/lib/libIntelXvMC/shlib_version deleted file mode 100644 index ef5534efa..000000000 --- a/external/mit/xorg/lib/libIntelXvMC/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2011/01/19 00:36:40 jmcneill Exp $ -# -major=1 -minor=0 diff --git a/external/mit/xorg/lib/libSM/Makefile b/external/mit/xorg/lib/libSM/Makefile deleted file mode 100644 index 7692335c3..000000000 --- a/external/mit/xorg/lib/libSM/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2008/09/13 04:32:30 cube Exp $ - -.include - -LIB= SM -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/SM - -SRCS= sm_auth.c sm_client.c sm_error.c sm_genid.c sm_manager.c sm_misc.c \ - sm_process.c - -INCS= SM.h SMlib.h SMproto.h -INCSDIR=${X11INCDIR}/X11/SM - -CPPFLAGS+= ${X11FLAGS.THREADLIB} - -CONN_DEFINES= ${X11FLAGS.CONNECTION} -DICE_t - -CPPFLAGS.sm_manager.c= $(CONN_DEFINES) -CPPFLAGS.sm_genid.c= $(CONN_DEFINES) - -LIBDPLIBS=ICE ${.CURDIR}/../libICE - -# XXXMRG -COPTS.sm_client.c= -Wno-error -COPTS.sm_manager.c= -Wno-error - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libSM/shlib_version b/external/mit/xorg/lib/libSM/shlib_version deleted file mode 100644 index 7b9723451..000000000 --- a/external/mit/xorg/lib/libSM/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=7 -minor=0 diff --git a/external/mit/xorg/lib/libX11/Makefile b/external/mit/xorg/lib/libX11/Makefile deleted file mode 100644 index 82dcfd885..000000000 --- a/external/mit/xorg/lib/libX11/Makefile +++ /dev/null @@ -1,113 +0,0 @@ -# $NetBSD: Makefile,v 1.13 2015/07/19 08:18:32 mrg Exp $ - -.include - -SUBDIR= dynamic .WAIT libX11-xcb static \ - ximcp xlcDef xlcUTF8Load xlibi18n xomGeneric - -INCS= ImUtil.h XKBlib.h Xcms.h Xlib-xcb.h Xlib.h XlibConf.h \ - Xlibint.h Xlocale.h Xregion.h Xresource.h Xutil.h \ - Xcmsint.h Xlcint.h \ - cursorfont.h -INCSDIR= ${X11INCDIR}/X11 - -MAN= AllPlanes.3 BlackPixelOfScreen.3 DisplayOfCCC.3 \ - ImageByteOrder.3 IsCursorKey.3 XAddConnectionWatch.3 \ - XAddHost.3 XAllocClassHint.3 XAllocColor.3 \ - XAllocIconSize.3 XAllocSizeHints.3 \ - XAllocStandardColormap.3 XAllocWMHints.3 \ - XAllowEvents.3 XAnyEvent.3 XButtonEvent.3 \ - XChangeKeyboardControl.3 XChangeKeyboardMapping.3 \ - XChangePointerControl.3 XChangeSaveSet.3 \ - XChangeWindowAttributes.3 XCirculateEvent.3 \ - XCirculateRequestEvent.3 XClearArea.3 \ - XClientMessageEvent.3 XColormapEvent.3 \ - XConfigureEvent.3 XConfigureRequestEvent.3 \ - XConfigureWindow.3 XCopyArea.3 XCreateColormap.3 \ - XCreateFontCursor.3 XCreateFontSet.3 XCreateGC.3 \ - XCreateIC.3 XCreateOC.3 XCreatePixmap.3 \ - XCreateRegion.3 XCreateWindow.3 XCreateWindowEvent.3 \ - XCrossingEvent.3 XDefineCursor.3 XDestroyWindow.3 \ - XDestroyWindowEvent.3 XDrawArc.3 XDrawImageString.3 \ - XDrawLine.3 XDrawPoint.3 XDrawRectangle.3 \ - XDrawString.3 XDrawText.3 XEmptyRegion.3 \ - XErrorEvent.3 XExposeEvent.3 XExtentsOfFontSet.3 \ - XFillRectangle.3 XFilterEvent.3 XFlush.3 \ - XFocusChangeEvent.3 XFontSetExtents.3 \ - XFontsOfFontSet.3 XFree.3 XGetVisualInfo.3 \ - XGetWindowAttributes.3 XGetWindowProperty.3 \ - XGetXCBConnection.3 XGrabButton.3 XGrabKey.3 \ - XGrabKeyboard.3 XGrabPointer.3 XGrabServer.3 \ - XGraphicsExposeEvent.3 XGravityEvent.3 \ - XIconifyWindow.3 XIfEvent.3 XInitImage.3 \ - XInitThreads.3 XInstallColormap.3 XInternAtom.3 \ - XIntersectRegion.3 XKeymapEvent.3 XListFonts.3 \ - XLoadFont.3 XLookupKeysym.3 XMapEvent.3 \ - XMapRequestEvent.3 XMapWindow.3 XNextEvent.3 XNoOp.3 \ - XOpenDisplay.3 XOpenIM.3 XOpenOM.3 XParseGeometry.3 \ - XPolygonRegion.3 XPropertyEvent.3 XPutBackEvent.3 \ - XPutImage.3 XQueryBestSize.3 XQueryColor.3 \ - XQueryExtension.3 XQueryPointer.3 XQueryTree.3 \ - XRaiseWindow.3 XReadBitmapFile.3 XRecolorCursor.3 \ - XReparentEvent.3 XReparentWindow.3 \ - XResizeRequestEvent.3 XResourceManagerString.3 \ - XSaveContext.3 XSelectInput.3 XSelectionClearEvent.3 \ - XSelectionEvent.3 XSelectionRequestEvent.3 \ - XSendEvent.3 XSetArcMode.3 XSetClipOrigin.3 \ - XSetCloseDownMode.3 XSetCommand.3 XSetErrorHandler.3 \ - XSetEventQueueOwner.3 XSetFillStyle.3 XSetFont.3 \ - XSetFontPath.3 XSetICFocus.3 XSetICValues.3 \ - XSetInputFocus.3 XSetLineAttributes.3 \ - XSetPointerMapping.3 XSetScreenSaver.3 \ - XSetSelectionOwner.3 XSetState.3 XSetTextProperty.3 \ - XSetTile.3 XSetTransientForHint.3 \ - XSetWMClientMachine.3 XSetWMColormapWindows.3 \ - XSetWMIconName.3 XSetWMName.3 XSetWMProperties.3 \ - XSetWMProtocols.3 XStoreBytes.3 XStoreColors.3 \ - XStringListToTextProperty.3 XStringToKeysym.3 \ - XSupportsLocale.3 XSynchronize.3 XTextExtents.3 \ - XTextWidth.3 XTranslateCoordinates.3 XUnmapEvent.3 \ - XUnmapWindow.3 XVaCreateNestedList.3 \ - XVisibilityEvent.3 XWarpPointer.3 XcmsAllocColor.3 \ - XcmsCCCOfColormap.3 XcmsCIELabQueryMaxC.3 \ - XcmsCIELuvQueryMaxC.3 XcmsColor.3 XcmsConvertColors.3 \ - XcmsCreateCCC.3 XcmsDefaultCCC.3 XcmsQueryBlack.3 \ - XcmsQueryColor.3 XcmsSetWhitePoint.3 XcmsStoreColor.3 \ - XcmsTekHVCQueryMaxC.3 XmbDrawImageString.3 \ - XmbDrawString.3 XmbDrawText.3 XmbLookupString.3 \ - XmbResetIC.3 XmbTextEscapement.3 XmbTextExtents.3 \ - XmbTextListToTextProperty.3 XmbTextPerCharExtents.3 \ - XrmEnumerateDatabase.3 XrmGetFileDatabase.3 \ - XrmGetResource.3 XrmInitialize.3 XrmMergeDatabases.3 \ - XrmPutResource.3 XrmUniqueQuark.3 -# XGetEventData.man - -USETBL= yes - -FILES= XErrorDB XKeysymDB Xcms.txt -FILESDIR= ${X11LIBDIR} - -.PATH: ${X11SRCDIR.X11} -.PATH: ${X11SRCDIR.X11}/include/X11 -.PATH: ${X11SRCDIR.X11}/man -.PATH: ${X11SRCDIR.X11}/src -.PATH: ${X11SRCDIR.X11}/src/xcms -.PATH: ${X11SRCDIR.X11}/src/xlibi18n - -XlibConf.h: XlibConf.h.in - ${_MKTARGET_CREATE} -.if !defined(__MINIX) - ${TOOL_SED} -e 's/#undef XTHREADS/#define XTHREADS 1/' \ - -e 's/#undef XUSE_MTSAFE_API/#define XUSE_MTSAFE_API 1/' \ - < ${.ALLSRC} > ${.TARGET} -.else - ${TOOL_CAT} ${.ALLSRC} > ${.TARGET} -.endif # !defined(__MINIX) - -CLEANFILES+= XlibConf.h - -PKGDIST= X11 - -.include -.include -.include diff --git a/external/mit/xorg/lib/libX11/Makefile.libx11 b/external/mit/xorg/lib/libX11/Makefile.libx11 deleted file mode 100644 index a6d144a11..000000000 --- a/external/mit/xorg/lib/libX11/Makefile.libx11 +++ /dev/null @@ -1,473 +0,0 @@ -# $NetBSD: Makefile.libx11,v 1.15 2015/07/23 08:03:25 mrg Exp $ - -LIB= X11 -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/src/xkb -.PATH: ${X11SRCDIR.${LIB}}/src/xcms -.PATH: ${X11SRCDIR.${LIB}}/src/xlibi18n - -#__MINIX: LSC Not sure bsd.own.mk is always sourced... -NOCLANGERROR= yes -NOGCCERROR= yes - -SRCS= \ - AllCells.c \ - AllowEv.c \ - AllPlanes.c \ - AutoRep.c \ - Backgnd.c \ - BdrWidth.c \ - Bell.c \ - Border.c \ - ChAccCon.c \ - ChActPGb.c \ - ChClMode.c \ - ChCmap.c \ - ChGC.c \ - ChKeyCon.c \ - ChkIfEv.c \ - ChkMaskEv.c \ - ChkTypEv.c \ - ChkTypWEv.c \ - ChkWinEv.c \ - ChPntCon.c \ - ChProp.c \ - ChSaveSet.c \ - ChWAttrs.c \ - ChWindow.c \ - CirWin.c \ - CirWinDn.c \ - CirWinUp.c \ - ClDisplay.c \ - ClearArea.c \ - Clear.c \ - ConfWind.c \ - Context.c \ - ConvSel.c \ - CopyArea.c \ - CopyCmap.c \ - CopyGC.c \ - CopyPlane.c \ - CrBFData.c \ - CrCmap.c \ - CrCursor.c \ - CrGC.c \ - CrGlCur.c \ - CrPFBData.c \ - CrPixmap.c \ - CrWindow.c \ - Cursor.c \ - DefCursor.c \ - DelProp.c \ - Depths.c \ - DestSubs.c \ - DestWind.c \ - DisName.c \ - DrArc.c \ - DrArcs.c \ - DrLine.c \ - DrLines.c \ - DrPoint.c \ - DrPoints.c \ - DrRect.c \ - DrRects.c \ - DrSegs.c \ - ErrDes.c \ - ErrHndlr.c \ - evtomask.c \ - EvToWire.c \ - FetchName.c \ - FillArc.c \ - FillArcs.c \ - FillPoly.c \ - FillRct.c \ - FillRcts.c \ - FilterEv.c \ - Flush.c \ - Font.c \ - FontInfo.c \ - FontNames.c \ - FreeCmap.c \ - FreeCols.c \ - FreeCurs.c \ - FreeEData.c \ - FreeEventData.c \ - FreeGC.c \ - FreePix.c \ - FSSaver.c \ - FSWrap.c \ - GCMisc.c \ - Geom.c \ - GetAtomNm.c \ - GetColor.c \ - GetDflt.c \ - GetEventData.c \ - GetFPath.c \ - GetFProp.c \ - GetGCVals.c \ - GetGeom.c \ - GetHColor.c \ - GetHints.c \ - GetIFocus.c \ - GetImage.c \ - GetKCnt.c \ - GetMoEv.c \ - GetNrmHint.c \ - GetPCnt.c \ - GetPntMap.c \ - GetProp.c \ - GetRGBCMap.c \ - GetSOwner.c \ - GetSSaver.c \ - GetStCmap.c \ - GetTxtProp.c \ - GetWAttrs.c \ - GetWMCMapW.c \ - GetWMProto.c \ - globals.c \ - GrButton.c \ - GrKeybd.c \ - GrKey.c \ - GrPointer.c \ - GrServer.c \ - Host.c \ - Iconify.c \ - IfEvent.c \ - imConv.c \ - ImText16.c \ - ImText.c \ - ImUtil.c \ - InitExt.c \ - InsCmap.c \ - IntAtom.c \ - KeyBind.c \ - KeysymStr.c \ - KillCl.c \ - LiHosts.c \ - LiICmaps.c \ - LiProps.c \ - ListExt.c \ - LoadFont.c \ - LockDis.c \ - locking.c \ - LookupCol.c \ - LowerWin.c \ - Macros.c \ - MapRaised.c \ - MapSubs.c \ - MapWindow.c \ - MaskEvent.c \ - Misc.c \ - ModMap.c \ - MoveWin.c \ - NextEvent.c \ - OCWrap.c \ - OMWrap.c \ - OpenDis.c \ - ParseCmd.c \ - ParseCol.c \ - ParseGeom.c \ - PeekEvent.c \ - PeekIfEv.c \ - Pending.c \ - PixFormats.c \ - PmapBgnd.c \ - PmapBord.c \ - PolyReg.c \ - PolyTxt16.c \ - PolyTxt.c \ - PropAlloc.c \ - PutBEvent.c \ - PutImage.c \ - Quarks.c \ - QuBest.c \ - QuColor.c \ - QuColors.c \ - QuCurShp.c \ - QuExt.c \ - QuKeybd.c \ - QuPntr.c \ - QuStipShp.c \ - QuTextE16.c \ - QuTextExt.c \ - QuTileShp.c \ - QuTree.c \ - RaiseWin.c \ - RdBitF.c \ - RecolorC.c \ - ReconfWin.c \ - ReconfWM.c \ - Region.c \ - RegstFlt.c \ - RepWindow.c \ - RestackWs.c \ - RotProp.c \ - ScrResStr.c \ - SelInput.c \ - SendEvent.c \ - SetBack.c \ - SetClMask.c \ - SetClOrig.c \ - SetCRects.c \ - SetDashes.c \ - SetFont.c \ - SetFore.c \ - SetFPath.c \ - SetFunc.c \ - SetHints.c \ - SetIFocus.c \ - SetLocale.c \ - SetLStyle.c \ - SetNrmHint.c \ - SetPMask.c \ - SetPntMap.c \ - SetRGBCMap.c \ - SetSOwner.c \ - SetSSaver.c \ - SetState.c \ - SetStCmap.c \ - SetStip.c \ - SetTile.c \ - SetTSOrig.c \ - SetTxtProp.c \ - SetWMCMapW.c \ - SetWMProto.c \ - StBytes.c \ - StColor.c \ - StColors.c \ - StName.c \ - StNColor.c \ - StrKeysym.c \ - StrToText.c \ - Sync.c \ - Synchro.c \ - Text16.c \ - Text.c \ - TextExt16.c \ - TextExt.c \ - TextToStr.c \ - TrCoords.c \ - UndefCurs.c \ - UngrabBut.c \ - UngrabKbd.c \ - UngrabKey.c \ - UngrabPtr.c \ - UngrabSvr.c \ - UninsCmap.c \ - UnldFont.c \ - UnmapSubs.c \ - UnmapWin.c \ - VisUtil.c \ - WarpPtr.c \ - Window.c \ - WinEvent.c \ - Withdraw.c \ - WMGeom.c \ - WMProps.c \ - WrBitF.c \ - XlibAsync.c \ - XlibInt.c \ - Xrm.c \ - -SRCS+= \ - UIThrStubs.c - -SRCS+= \ - AddDIC.c \ - AddSF.c \ - CCC.c \ - CvColW.c \ - CvCols.c \ - HVC.c \ - HVCGcC.c \ - HVCGcV.c \ - HVCGcVC.c \ - HVCMnV.c \ - HVCMxC.c \ - HVCMxV.c \ - HVCMxVC.c \ - HVCMxVs.c \ - HVCWpAj.c \ - IdOfPr.c \ - LRGB.c \ - Lab.c \ - LabGcC.c \ - LabGcL.c \ - LabGcLC.c \ - LabMnL.c \ - LabMxC.c \ - LabMxL.c \ - LabMxLC.c \ - LabWpAj.c \ - Luv.c \ - LuvGcC.c \ - LuvGcL.c \ - LuvGcLC.c \ - LuvMnL.c \ - LuvMxC.c \ - LuvMxL.c \ - LuvMxLC.c \ - LuvWpAj.c \ - OfCCC.c \ - PrOfId.c \ - QBlack.c \ - QBlue.c \ - QGreen.c \ - QRed.c \ - QWhite.c \ - QuCol.c \ - QuCols.c \ - SetCCC.c \ - SetGetCols.c \ - StCol.c \ - StCols.c \ - UNDEFINED.c \ - XRGB.c \ - XYZ.c \ - cmsAllCol.c \ - cmsAllNCol.c \ - cmsCmap.c \ - cmsColNm.c \ - cmsGlobls.c \ - cmsInt.c \ - cmsLkCol.c \ - cmsMath.c \ - cmsProp.c \ - cmsTrig.c \ - uvY.c \ - xyY.c \ - -SRCS+= \ - XKB.c \ - XKBBind.c \ - XKBCompat.c \ - XKBCtrls.c \ - XKBCvt.c \ - XKBGetMap.c \ - XKBGetByName.c \ - XKBNames.c \ - XKBRdBuf.c \ - XKBSetMap.c \ - XKBUse.c \ - XKBleds.c \ - XKBBell.c \ - XKBGeom.c \ - XKBSetGeom.c \ - XKBExtDev.c \ - XKBList.c \ - XKBMisc.c \ - XKBMAlloc.c \ - XKBGAlloc.c \ - XKBAlloc.c \ - -SRCS+= \ - XDefaultIMIF.c \ - XDefaultOMIF.c \ - xim_trans.c \ - ICWrap.c \ - IMWrap.c \ - imKStoUCS.c \ - lcCT.c \ - lcCharSet.c \ - lcConv.c \ - lcDB.c \ - lcDynamic.c \ - lcFile.c \ - lcGeneric.c \ - lcInit.c \ - lcPrTxt.c \ - lcPubWrap.c \ - lcPublic.c \ - lcRM.c \ - lcStd.c \ - lcTxtPr.c \ - lcUTF8.c \ - lcUtil.c \ - lcWrap.c \ - mbWMProps.c \ - mbWrap.c \ - utf8WMProps.c \ - utf8Wrap.c \ - wcWrap.c \ - -CPPFLAGS+= ${X11FLAGS.THREADLIB} ${X11FLAGS.CONNECTION} -CPPFLAGS+= -I. -DHAS_SNPRINTF -DLIBX11 -DPOSTLOCALELIBDIR=\"lib\" -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 -CPPFLAGS+= -I${X11SRCDIR.X11}/src -CPPFLAGS+= -I${X11SRCDIR.X11}/src/xkb -CPPFLAGS+= -I${X11SRCDIR.X11}/src/xcms -CPPFLAGS+= -I${X11SRCDIR.X11}/src/xlibi18n - -# From libX11's config.h -CPPFLAGS+= -DCOMPOSECACHE -DHAVE_DLOPEN -DHAVE_GETPAGESIZE -CPPFLAGS+= -DHAVE_INTTYPES_H -DHAVE_MEMORY_H -DHAVE_MMAP -CPPFLAGS+= -DHAVE_SOCKLEN_T -DHAVE_STDLIB_H -DHAVE_STRINGS_H -CPPFLAGS+= -DHAVE_STRING_H -DHAVE_STRTOL -DHAVE_SYS_PARAM_H -CPPFLAGS+= -DHAVE_SYS_SELECT_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H -CPPFLAGS+= -DHAVE_UNISTD_H - -CPPFLAGS+= -DUSE_XCB -SRCS+= \ - xcb_disp.c \ - xcb_io.c - -CMS_DEFINES= -DXCMS -DXCMSDB=\"${X11LIBDIR}/Xcms.txt\" -CONN_DEFINES= ${X11FLAGS.CONNECTION} -EDB_DEFINES= -DERRORDB=\"${X11LIBDIR}/XErrorDB\" -KDB_DEFINES= -DKEYSYMDB=\"${X11LIBDIR}/XKeysymDB\" -LC_DYNDEFINES= -DUSE_DYNAMIC_LC -OPEN_DEFINES= -I${DESTDIR}${X11INCDIR}/X11/extensions -# MINIX: LSC Do not use poll for now -#POLL_DEFINES= -DUSE_POLL -SETID_DEFINES= -DHASSETUGID -SHM_DEFINES= -DHAS_SHM -SOCK_DEFINES= -DBSD44SOCKETS -TRANS_INCLUDES= -I${X11SRCDIR.xtrans} -XCURSOR_DEFINES= -DUSE_DYNAMIC_XCURSOR -DLIBXCURSOR=\"libXcursor.so.1\" -XDMAUTHDEFS= -DHASXDMAUTH -XF86BIGFONT_DEFINES= -DXF86BIGFONT -XKB_DEFINES= -DXKB -XLC_DEFINES= ${XLOCALE.DEFINES} -XTRANS_XIM_DEFINES= -DXIM_t -DTRANS_CLIENT -XTRANS_X_DEFINES= -DX11_t -DTRANS_CLIENT -DLOCAL_TRANSPORT_LIST=UNIX_TRANS,TCP_TRANS - -CPPFLAGS.CopyCmap.c= $(CMS_DEFINES) -CPPFLAGS.ConnDis.c= $(XDMAUTHDEFS) $(CONN_DEFINES) $(SOCK_DEFINES) $(POLL_DEFINES) $(XTRANS_X_DEFINES) -CPPFLAGS.CrCmap.c= $(CMS_DEFINES) -CPPFLAGS.ErrDes.c= $(EDB_DEFINES) -CPPFLAGS.Font.c= $(SHM_DEFINES) $(XF86BIGFONT_DEFINES) -CPPFLAGS.FontInfo.c= $(SHM_DEFINES) $(XF86BIGFONT_DEFINES) -CPPFLAGS.FreeCmap.c= $(CMS_DEFINES) -CPPFLAGS.GetColor.c= $(CMS_DEFINES) -CPPFLAGS.KeyBind.c= $(XKB_DEFINES) -CPPFLAGS.LookupCol.c= $(CMS_DEFINES) -CPPFLAGS.OpenDis.c= $(OPEN_DEFINES) $(XTRANS_X_DEFINES) $(XKB_DEFINES) -CPPFLAGS.ParseCol.c= $(CMS_DEFINES) -CPPFLAGS.SetStCmap.c= $(CMS_DEFINES) -CPPFLAGS.StNColor.c= $(CMS_DEFINES) -CPPFLAGS.StrKeysym.c= $(KDB_DEFINES) -CPPFLAGS.Wrap.c= $(XDMAUTHDEFS) -CPPFLAGS.XKBBind.c= $(XKB_DEFINES) -CPPFLAGS.XlibInt.c= $(CONN_DEFINES) $(POLL_DEFINES) $(XTRANS_X_DEFINES) -CPPFLAGS.cmsColNm.c= $(CMS_DEFINES) -CPPFLAGS.globals.c= $(CONN_DEFINES) -CPPFLAGS.imConv.c= $(XKB_DEFINES) -CPPFLAGS.imTrans.c= $(CONN_DEFINES) $(XTRANS_XIM_DEFINES) -CPPFLAGS.imTransR.c= $(CONN_DEFINES) $(XTRANS_XIM_DEFINES) -CPPFLAGS.lcFile.c= $(XLC_DEFINES) $(SETID_DEFINES) -CPPFLAGS.x11trans.c= $(TRANS_INCLUDES) $(CONN_DEFINES) $(SOCK_DEFINES) $(XTRANS_X_DEFINES) $(POLL_DEFINES) -CPPFLAGS.ximtrans.c= $(TRANS_INCLUDES) $(CONN_DEFINES) $(SOCK_DEFINES) $(XTRANS_XIM_DEFINES) $(POLL_DEFINES) - -#BUILDSYMLINKS= transport.c x11trans.c \ -# transport.c ximtrans.c - -COPTS.StBytes.c+= -Wno-error -COPTS.lcUTF8.c+= -Wno-error -COPTS.Font.c+= -Wno-error # XXX xf86bigfstr.h -COPTS.OpenDis.c+= -Wno-error # XXX xf86bigfstr.h -COPTS.XlibInt.c+= -Wno-error # XXX xcmiscstr.h -COPTS.XKBBind.c+= -Wno-deprecated-declarations # uses XKeycodeToKeysym - -CWARNFLAGS.clang+= -Wno-string-plus-int - -.include "${NETBSDSRCDIR}/external/mit/xorg/tools/makekeys/Makefile.makekeys" diff --git a/external/mit/xorg/lib/libX11/Makefile.ximcp b/external/mit/xorg/lib/libX11/Makefile.ximcp deleted file mode 100644 index 30f8e499d..000000000 --- a/external/mit/xorg/lib/libX11/Makefile.ximcp +++ /dev/null @@ -1,47 +0,0 @@ -# $NetBSD: Makefile.ximcp,v 1.2 2008/10/06 16:24:33 tron Exp $ - -.PATH: ${X11SRCDIR.X11}/modules/im/ximcp -SRCS.ximcp= \ - imCallbk.c \ - imDefFlt.c \ - imDefIc.c \ - imDefIm.c \ - imDefLkup.c \ - imDispch.c \ - imEvToWire.c \ - imExten.c \ - imImSw.c \ - imInsClbk.c \ - imInt.c \ - imLcFlt.c \ - imLcGIc.c \ - imLcIc.c \ - imLcIm.c \ - imLcLkup.c \ - imLcPrs.c \ - imLcSIc.c \ - imRmAttr.c \ - imRm.c \ - imThaiFlt.c \ - imThaiIc.c \ - imThaiIm.c \ - imTrans.c \ - imTransR.c \ - imTrX.c - -CPPFLAGS+= \ - -I${DESTDIR}${X11INCDIR}/X11 \ - -I${X11SRCDIR.X11}/src/xlibi18n - -CPPFLAGS+= \ - ${X11FLAGS.CONNECTION} \ - -DXIM_t \ - -DTRANS_CLIENT \ - -DHASXDMAUTH - -CPPFLAGS.imDefLkup.c= -Wno-error -CPPFLAGS.imRm.c= -Wno-error -CPPFLAGS.imTrans.c= -Wno-error -CPPFLAGS.imLcLkup.c= -Wno-stack-protector - -.include diff --git a/external/mit/xorg/lib/libX11/Makefile.xlcDef b/external/mit/xorg/lib/libX11/Makefile.xlcDef deleted file mode 100644 index da7f7fafc..000000000 --- a/external/mit/xorg/lib/libX11/Makefile.xlcDef +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile.xlcDef,v 1.1 2008/09/07 13:15:11 rtr Exp $ - -.PATH: ${X11SRCDIR.X11}/modules/lc/def -SRCS.xlcDef= lcDefConv.c - -CPPFLAGS+= \ - -I${DESTDIR}${X11INCDIR}/X11 \ - -I${X11SRCDIR.X11}/src/xlibi18n - -CPPFLAGS+= \ - -DHASXDMAUTH - -.include diff --git a/external/mit/xorg/lib/libX11/Makefile.xlcUTF8Load b/external/mit/xorg/lib/libX11/Makefile.xlcUTF8Load deleted file mode 100644 index a4e5c217a..000000000 --- a/external/mit/xorg/lib/libX11/Makefile.xlcUTF8Load +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile.xlcUTF8Load,v 1.1 2008/09/07 13:15:11 rtr Exp $ - -.PATH: ${X11SRCDIR.X11}/modules/lc/Utf8 - -SRCS.xlcUTF8Load= \ - lcUTF8Load.c - -CPPFLAGS+= \ - -I${DESTDIR}${X11INCDIR}/X11 \ - -I${X11SRCDIR.X11}/src/xlibi18n - -CPPFLAGS+= \ - -DHASXDMAUTH - -.include diff --git a/external/mit/xorg/lib/libX11/Makefile.xlibi18n b/external/mit/xorg/lib/libX11/Makefile.xlibi18n deleted file mode 100644 index ddffca6cb..000000000 --- a/external/mit/xorg/lib/libX11/Makefile.xlibi18n +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile.xlibi18n,v 1.1 2008/09/07 13:15:11 rtr Exp $ - -.PATH: ${X11SRCDIR.X11}/modules/lc/gen -SRCS.xlibi18n= lcGenConv.c - -CPPFLAGS+= \ - -I${DESTDIR}${X11INCDIR}/X11 \ - -I${X11SRCDIR.X11}/src/xlibi18n - -CPPFLAGS+= \ - ${XLOCALE.DEFINES} \ - -DHASXDMAUTH - -.include diff --git a/external/mit/xorg/lib/libX11/Makefile.xomGeneric b/external/mit/xorg/lib/libX11/Makefile.xomGeneric deleted file mode 100644 index 36bef9972..000000000 --- a/external/mit/xorg/lib/libX11/Makefile.xomGeneric +++ /dev/null @@ -1,23 +0,0 @@ -# $NetBSD: Makefile.xomGeneric,v 1.1 2008/09/07 13:15:11 rtr Exp $ - -.PATH: ${X11SRCDIR.X11}/modules/om/generic - -SRCS.xomGeneric= \ - omDefault.c \ - omGeneric.c \ - omImText.c \ - omText.c \ - omTextEsc.c \ - omTextExt.c \ - omTextPer.c \ - omXChar.c - -CPPFLAGS+= \ - -I${DESTDIR}${X11INCDIR}/X11 \ - -I${X11SRCDIR.X11}/src \ - -I${X11SRCDIR.X11}/src/xlibi18n - -CPPFLAGS+= \ - -DHASXDMAUTH - -.include diff --git a/external/mit/xorg/lib/libX11/dynamic/Makefile b/external/mit/xorg/lib/libX11/dynamic/Makefile deleted file mode 100644 index 53ba5e076..000000000 --- a/external/mit/xorg/lib/libX11/dynamic/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2011/08/11 23:15:38 joerg Exp $ - -NOLINT= 1 -NOPROFILE= 1 -NOSTATICLIB= 1 - -.include - -.include "../Makefile.libx11" - -SRCS+= XlcDL.c XlcSL.c XDefaultIMIF.c XDefaultOMIF.c - -CPPFLAGS.lcInit.c= $(LC_DYNDEFINES) -CPPFLAGS.lcGeneric.c= $(LC_DYNDEFINES) -CPPFLAGS.lcPublic.c= $(LC_DYNDEFINES) -CPPFLAGS.CrCursor.c= $(XCURSOR_DEFINES) -CPPFLAGS.CrGlCur.c= $(XCURSOR_DEFINES) -CPPFLAGS.CrPixmap.c= $(XCURSOR_DEFINES) -CPPFLAGS.PutImage.c= $(XCURSOR_DEFINES) - -LIBDPLIBS+= \ - xcb ${.CURDIR}/../../libxcb/libxcb \ - Xdmcp ${.CURDIR}/../../libXdmcp \ - Xau ${.CURDIR}/../../libXau - -CWARNFLAGS.clang+= -Wno-parentheses - -.include -.include diff --git a/external/mit/xorg/lib/libX11/dynamic/shlib_version b/external/mit/xorg/lib/libX11/dynamic/shlib_version deleted file mode 100644 index 7b9723451..000000000 --- a/external/mit/xorg/lib/libX11/dynamic/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=7 -minor=0 diff --git a/external/mit/xorg/lib/libX11/libX11-xcb/Makefile b/external/mit/xorg/lib/libX11/libX11-xcb/Makefile deleted file mode 100644 index a5bb4f4f1..000000000 --- a/external/mit/xorg/lib/libX11/libX11-xcb/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2011/02/26 09:27:20 mrg Exp $ - -NOLINT= 1 - -.include - -LIB= X11-xcb - -.PATH: ${X11SRCDIR.X11}/src -SRCS+= x11_xcb.c - -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 - -LIBDPLIBS+= \ - X11 ${.CURDIR}/../../libX11/dynamic - -PKGDIST= X11 -PKGCONFIG= x11-xcb - -.include -.include diff --git a/external/mit/xorg/lib/libX11/libX11-xcb/shlib_version b/external/mit/xorg/lib/libX11/libX11-xcb/shlib_version deleted file mode 100644 index e5503f594..000000000 --- a/external/mit/xorg/lib/libX11/libX11-xcb/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.1 2011/02/23 07:53:30 mrg Exp $ -# -major=1 -minor=0 diff --git a/external/mit/xorg/lib/libX11/static/Makefile b/external/mit/xorg/lib/libX11/static/Makefile deleted file mode 100644 index ea54526dd..000000000 --- a/external/mit/xorg/lib/libX11/static/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2011/08/11 23:15:38 joerg Exp $ - -NOPIC= 1 - -.include - -.include "../Makefile.libx11" - -.if 0 -SRCS+= imCallbk.c imDefFlt.c imDefIc.c imDefIm.c imDefLkup.c imDispch.c \ - imEvToWire.c imExten.c imImSw.c imInsClbk.c imInt.c imLcFlt.c \ - imLcGIc.c imLcIc.c imLcIm.c imLcLkup.c imLcPrs.c imLcSIc.c imRm.c \ - imRmAttr.c imThaiFlt.c imThaiIc.c imThaiIm.c imTrX.c imTrans.c \ - imTransR.c lcEuc.c lcGenConv.c lcJis.c lcSjis.c lcUTF8Load.c \ - omDefault.c omGeneric.c omImText.c omText.c omTextEsc.c omTextExt.c \ - omTextPer.c omXChar.c -.endif - -SRCS+= \ - XlcDL.c \ - XlcSL.c - -CWARNFLAGS.clang+= -Wno-parentheses - -.include -.include diff --git a/external/mit/xorg/lib/libX11/ximcp/Makefile b/external/mit/xorg/lib/libX11/ximcp/Makefile deleted file mode 100644 index 0bea0e997..000000000 --- a/external/mit/xorg/lib/libX11/ximcp/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/30 23:42:19 mrg Exp $ - -LIBISMODULE= yes -SHLIB_MAJOR= 2 # XXX -SHLIB_MINOR= 0 - -.include -.include - -LIB= ximcp -LIBDIR= ${X11LIBDIR}/locale/lib/common -SRCS= ${SRCS.ximcp} -CFLAGS+=-I${X11SRCDIR.X11}/src - -CWARNFLAGS.clang+= -Wno-unused - -.include "../Makefile.ximcp" diff --git a/external/mit/xorg/lib/libX11/xlcDef/Makefile b/external/mit/xorg/lib/libX11/xlcDef/Makefile deleted file mode 100644 index e844162f9..000000000 --- a/external/mit/xorg/lib/libX11/xlcDef/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2008/09/07 13:15:11 rtr Exp $ - -LIBISMODULE= yes -SHLIB_MAJOR= 2 # XXX -SHLIB_MINOR= 0 - -.include -.include - -LIB= xlcDef -LIBDIR= ${X11LIBDIR}/locale/lib/common -SRCS= ${SRCS.xlcDef} - -.include "../Makefile.xlcDef" diff --git a/external/mit/xorg/lib/libX11/xlcUTF8Load/Makefile b/external/mit/xorg/lib/libX11/xlcUTF8Load/Makefile deleted file mode 100644 index 9be166f87..000000000 --- a/external/mit/xorg/lib/libX11/xlcUTF8Load/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2008/09/07 13:15:11 rtr Exp $ - -LIBISMODULE= yes -SHLIB_MAJOR= 2 # XXX -SHLIB_MINOR= 0 - -.include -.include - -LIB= xlcUTF8Load -LIBDIR= ${X11LIBDIR}/locale/lib/common -SRCS= ${SRCS.xlcUTF8Load} - -.include "../Makefile.xlcUTF8Load" diff --git a/external/mit/xorg/lib/libX11/xlibi18n/Makefile b/external/mit/xorg/lib/libX11/xlibi18n/Makefile deleted file mode 100644 index 03f410ae6..000000000 --- a/external/mit/xorg/lib/libX11/xlibi18n/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2008/09/07 13:15:11 rtr Exp $ - -LIBISMODULE= yes -SHLIB_MAJOR= 2 # XXX -SHLIB_MINOR= 0 - -.include -.include - -LIB= xlibi18n -LIBDIR= ${X11LIBDIR}/locale/lib/common -SRCS= ${SRCS.xlibi18n} - -.include "../Makefile.xlibi18n" diff --git a/external/mit/xorg/lib/libX11/xomGeneric/Makefile b/external/mit/xorg/lib/libX11/xomGeneric/Makefile deleted file mode 100644 index 5b60633e9..000000000 --- a/external/mit/xorg/lib/libX11/xomGeneric/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2008/09/07 13:15:11 rtr Exp $ - -LIBISMODULE= yes -SHLIB_MAJOR= 2 # XXX -SHLIB_MINOR= 0 - -.include -.include - -LIB= xomGeneric -LIBDIR= ${X11LIBDIR}/locale/lib/common -SRCS= ${SRCS.xomGeneric} - -.include "../Makefile.xomGeneric" diff --git a/external/mit/xorg/lib/libXScrnSaver/Makefile b/external/mit/xorg/lib/libXScrnSaver/Makefile deleted file mode 100644 index 7b1bc4be7..000000000 --- a/external/mit/xorg/lib/libXScrnSaver/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2010/05/22 09:22:15 mrg Exp $ - -.include - -LIB= Xss -.PATH: ${X11SRCDIR.XScrnSaver}/src -.PATH: ${X11SRCDIR.XScrnSaver}/man -.PATH: ${X11SRCDIR.XScrnSaver}/include/X11/extensions - -SRCS= XScrnSaver.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -#CPPFLAGS+= -I${DESTDIR}${X11INCDIR} - -LIBDPLIBS= X11 ${.CURDIR}/../libX11/dynamic \ - Xext ${.CURDIR}/../libXext - -MAN= Xss.3 -MLINKS= Xss.3 XScreenSaverAllocInfo.3 \ - Xss.3 XScreenSaverGetRegistered.3 \ - Xss.3 XScreenSaverQueryExtension.3 \ - Xss.3 XScreenSaverQueryInfo.3 \ - Xss.3 XScreenSaverQueryVersion.3 \ - Xss.3 XScreenSaverRegister.3 \ - Xss.3 XScreenSaverSelectInput.3 \ - Xss.3 XScreenSaverSetAttributes.3 \ - Xss.3 XScreenSaverSuspend.3 \ - Xss.3 XScreenSaverUnregister.3 \ - Xss.3 XScreenSaverUnsetAttributes.3 - -PKGDIST= XScrnSaver - -INCS= scrnsaver.h -INCSDIR=${X11INCDIR}/X11/extensions - -.include -.include diff --git a/external/mit/xorg/lib/libXScrnSaver/shlib_version b/external/mit/xorg/lib/libXScrnSaver/shlib_version deleted file mode 100644 index 67d20a0a8..000000000 --- a/external/mit/xorg/lib/libXScrnSaver/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXTrap/Makefile b/external/mit/xorg/lib/libXTrap/Makefile deleted file mode 100644 index e176ff46a..000000000 --- a/external/mit/xorg/lib/libXTrap/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:30 cube Exp $ - -.include - -LIB= XTrap -.PATH: ${X11SRCDIR.${LIB}}/src - -SRCS= XECallBcks.c XEConTxt.c XEDsptch.c XEPrInfo.c XERqsts.c \ - XEStrMap.c XETrapInit.c XEWrappers.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} - -CPPFLAGS.XEWrappers.c= -I${DESTDIR}${X11INCDIR}/X11 - -LIBDPLIBS=\ - Xt ${.CURDIR}/../libXt \ - SM ${.CURDIR}/../libSM \ - ICE ${.CURDIR}/../libICE \ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXTrap/shlib_version b/external/mit/xorg/lib/libXTrap/shlib_version deleted file mode 100644 index 7b9723451..000000000 --- a/external/mit/xorg/lib/libXTrap/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=7 -minor=0 diff --git a/external/mit/xorg/lib/libXau/Makefile b/external/mit/xorg/lib/libXau/Makefile deleted file mode 100644 index 2e74fe95f..000000000 --- a/external/mit/xorg/lib/libXau/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2013/05/31 00:38:16 mrg Exp $ - -.include - -LIB= Xau -.PATH: ${X11SRCDIR.${LIB}} -.PATH: ${X11SRCDIR.${LIB}}/man -.PATH: ${X11SRCDIR.${LIB}}/include/X11 - -SRCS= AuDispose.c AuFileName.c AuGetAddr.c AuGetBest.c AuLock.c \ - AuRead.c AuUnlock.c AuWrite.c - -INCS= Xauth.h -INCSDIR=${X11INCDIR}/X11 - -CPPFLAGS+= ${X11FLAGS.THREADLIB} - -MAN= Xau.3 -MLINKS= Xau.3 XauDisposeAuth.3 \ - Xau.3 XauFileName.3 \ - Xau.3 XauGetAuthByAddr.3 \ - Xau.3 XauGetBestAuthByAddr.3 \ - Xau.3 XauLockAuth.3 \ - Xau.3 XauReadAuth.3 \ - Xau.3 XauUnlockAuth.3 \ - Xau.3 XauWriteAuth.3 - -PKGDIST= ${LIB} - -# libXaw 1.0.7 has 'spec' subdir with docs, maybe install them? - -.include -.include diff --git a/external/mit/xorg/lib/libXau/shlib_version b/external/mit/xorg/lib/libXau/shlib_version deleted file mode 100644 index 7b9723451..000000000 --- a/external/mit/xorg/lib/libXau/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=7 -minor=0 diff --git a/external/mit/xorg/lib/libXaw/Makefile b/external/mit/xorg/lib/libXaw/Makefile deleted file mode 100644 index e24984245..000000000 --- a/external/mit/xorg/lib/libXaw/Makefile +++ /dev/null @@ -1,80 +0,0 @@ -# $NetBSD: Makefile,v 1.11 2015/07/19 07:55:07 mrg Exp $ - -.include - -LIB= Xaw7 -LIBOLD= Xaw - -.if ${MKSTATICLIB} != "no" -SYMLINKS= lib${LIB}.a ${X11USRLIBDIR}/lib${LIBOLD}.a -.endif - -.if ${MKPROFILE} != "no" -SYMLINKS+= lib${LIB}_p.a ${X11USRLIBDIR}/lib${LIBOLD}_p.a -.endif - -.if ${MKPIC} != "no" -SYMLINKS+= lib${LIB}.so ${X11USRLIBDIR}/lib${LIBOLD}.so -.endif - -.PATH: ${X11SRCDIR.Xaw}/src -SRCS= Actions.c AllWidgets.c AsciiSink.c AsciiSrc.c \ - AsciiText.c Box.c Command.c Converters.c Dialog.c \ - DisplayList.c Form.c Grip.c Label.c List.c MenuButton.c \ - MultiSrc.c MultiSink.c OS.c Paned.c Panner.c Pixmap.c \ - Porthole.c Repeater.c Scrollbar.c Simple.c \ - SimpleMenu.c Sme.c SmeBSB.c SmeLine.c StripChart.c \ - Text.c TextSink.c TextSrc.c TextAction.c TextPop.c \ - TextTr.c Tip.c Toggle.c Tree.c Vendor.c Viewport.c \ - XawIm.c XawInit.c XawI18n.c sharedlib.c - -.PATH: ${X11SRCDIR.Xaw}/man -MAN= Xaw.3 - -.PATH: ${X11SRCDIR.Xaw}/include/X11/Xaw -INCS= AllWidgets.h AsciiSink.h AsciiSinkP.h AsciiSrc.h \ - AsciiSrcP.h AsciiText.h AsciiTextP.h Box.h BoxP.h \ - Cardinals.h Command.h CommandP.h Dialog.h DialogP.h \ - Form.h FormP.h Grip.h GripP.h Label.h LabelP.h List.h \ - ListP.h MenuButton.h MenuButtoP.h MultiSrc.h MultiSrcP.h \ - MultiSink.h MultiSinkP.h Paned.h PanedP.h Panner.h \ - PannerP.h Porthole.h PortholeP.h \ - Repeater.h RepeaterP.h Reports.h Scrollbar.h ScrollbarP.h \ - Simple.h SimpleP.h SimpleMenu.h SimpleMenP.h Sme.h SmeP.h \ - SmeBSB.h SmeBSBP.h SmeLine.h SmeLineP.h StripChart.h \ - StripCharP.h Template.c Template.h TemplateP.h Text.h \ - TextP.h TextSink.h TextSinkP.h TextSrc.h TextSrcP.h \ - Tip.h TipP.h Toggle.h ToggleP.h Tree.h TreeP.h VendorEP.h \ - Viewport.h ViewportP.h XawImP.h XawInit.h - -INCSDIR=${X11INCDIR}/X11/Xaw - - -CPPFLAGS+= -DHAVE_WCHAR_H -DHAVE_WCTYPE_H -DNO_WIDEC_H -DHAVE_ISWALNUM -CPPFLAGS+= -DHAVE_GETPAGESIZE -CPPFLAGS+= -DHAVE_UNISTD_H -CPPFLAGS+= -DPROJECT_ROOT=\"${X11ROOTDIR}\" -DXAW7 -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/Xaw -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/extensions - -LIBDPLIBS=\ - Xmu ${.CURDIR}/../libXmu \ - Xt ${.CURDIR}/../libXt \ - SM ${.CURDIR}/../libSM \ - ICE ${.CURDIR}/../libICE \ - Xpm ${.CURDIR}/../libXpm \ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGCONFIG= xaw7 -PKGDIST= ${LIBOLD} - -.include -.include - -# XXX -.if defined(HAVE_GCC) -COPTS.XawIm.c+= -Wno-error -.endif - -CWARNFLAGS.clang+= -Wno-format diff --git a/external/mit/xorg/lib/libXaw/shlib_version b/external/mit/xorg/lib/libXaw/shlib_version deleted file mode 100644 index 09309ab93..000000000 --- a/external/mit/xorg/lib/libXaw/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.3 2009/04/19 21:36:47 mrg Exp $ -# -major=10 -minor=0 diff --git a/external/mit/xorg/lib/libXaw6/Makefile b/external/mit/xorg/lib/libXaw6/Makefile deleted file mode 100644 index c705e168d..000000000 --- a/external/mit/xorg/lib/libXaw6/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# $NetBSD: Makefile,v 1.9 2015/07/19 07:55:07 mrg Exp $ - -NOCHECKVER= yes # we want to install an older version ... -MKLINKLIB= no - -.include - -LIB= Xaw6 -LIBOLD= Xaw - -.PATH: ${X11SRCDIR.Xaw}/src - -SRCS= Actions.c AllWidgets.c AsciiSink.c AsciiSrc.c AsciiText.c \ - Box.c Command.c Converters.c Dialog.c DisplayList.c Form.c \ - Grip.c Label.c List.c MenuButton.c MultiSink.c MultiSrc.c \ - OS.c Paned.c Panner.c Pixmap.c Porthole.c Repeater.c \ - Scrollbar.c Simple.c SimpleMenu.c Sme.c SmeBSB.c SmeLine.c \ - StripChart.c Text.c TextAction.c TextPop.c TextSink.c \ - TextSrc.c TextTr.c Toggle.c Tree.c Vendor.c Viewport.c \ - XawI18n.c XawIm.c XawInit.c - -CPPFLAGS+= -DHAVE_WCHAR_H -DHAVE_WCTYPE_H -DNO_WIDEC_H -DOLDXAW \ - -DHAVE_GETPAGESIZE \ - -DHAVE_UNISTD_H \ - -DHAVE_ISWALNUM -DPROJECT_ROOT=\"${X11ROOTDIR}\" - -LIBDPLIBS=\ - Xmu ${.CURDIR}/../libXmu \ - Xt ${.CURDIR}/../libXt \ - SM ${.CURDIR}/../libSM \ - ICE ${.CURDIR}/../libICE \ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGCONFIG= xaw6 -PKGDIST= ${LIBOLD} - -.include -.include - -# XXX -.if defined(HAVE_GCC) -COPTS.XawIm.c+= -Wno-error -.endif diff --git a/external/mit/xorg/lib/libXaw6/shlib_version b/external/mit/xorg/lib/libXaw6/shlib_version deleted file mode 100644 index 7b9723451..000000000 --- a/external/mit/xorg/lib/libXaw6/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=7 -minor=0 diff --git a/external/mit/xorg/lib/libXcomposite/Makefile b/external/mit/xorg/lib/libXcomposite/Makefile deleted file mode 100644 index 1628c1bcd..000000000 --- a/external/mit/xorg/lib/libXcomposite/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2008/11/06 22:28:25 veego Exp $ - -.include - -LIB= Xcomposite - -XCOMPOSITEDIR= ${X11SRCDIR.${LIB}} -.PATH: ${XCOMPOSITEDIR}/src -.PATH: ${XCOMPOSITEDIR}/man -.PATH: ${XCOMPOSITEDIR}/include/X11/extensions -SRCS= Xcomposite.c - -INCS= Xcomposite.h -INCSDIR=${X11INCDIR}/X11/extensions - -LIBDPLIBS= X11 ${.CURDIR}/../libX11/dynamic - -MAN= Xcomposite.3 -MLINKS= Xcomposite.3 XCompositeCreateRegionFromBorderClip.3 \ - Xcomposite.3 XCompositeGetOverlayWindow.3 \ - Xcomposite.3 XCompositeNameWindowPixmap.3 \ - Xcomposite.3 XCompositeQueryExtension.3 \ - Xcomposite.3 XCompositeQueryVersion.3 \ - Xcomposite.3 XCompositeRedirectSubwindows.3 \ - Xcomposite.3 XCompositeRedirectWindow.3 \ - Xcomposite.3 XCompositeReleaseOverlayWindow.3 \ - Xcomposite.3 XCompositeUnredirectSubwindows.3 \ - Xcomposite.3 XCompositeUnredirectWindow.3 \ - Xcomposite.3 XCompositeVersion.3 - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXcomposite/shlib_version b/external/mit/xorg/lib/libXcomposite/shlib_version deleted file mode 100644 index 67d20a0a8..000000000 --- a/external/mit/xorg/lib/libXcomposite/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXcursor/Makefile b/external/mit/xorg/lib/libXcursor/Makefile deleted file mode 100644 index 215bb77dc..000000000 --- a/external/mit/xorg/lib/libXcursor/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2014/08/25 10:25:53 apb Exp $ - -.include - -LIB= Xcursor - -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/Xcursor -.PATH: ${X11SRCDIR.${LIB}}/man -SRCS= cursor.c display.c file.c library.c xlib.c - -INCS= Xcursor.h -INCSDIR=${X11INCDIR}/X11/Xcursor - -MAN= Xcursor.3 -__XCURSORPATH__ = ~/.icons, /usr/share/icons, /usr/share/pixmaps, \ - ${X11LIBDIR}/icons -X11EXTRAMANDEFS+= -e s%__XCURSORPATH__%${__XCURSORPATH__:Q}%g - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -DICONDIR=\"${X11LIBDIR}/icons\" -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/Xcursor -CPPFLAGS+= -I${X11SRCDIR.${LIB}}/../include - -LIBDPLIBS=\ - Xrender ${.CURDIR}/../libXrender \ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXcursor/shlib_version b/external/mit/xorg/lib/libXcursor/shlib_version deleted file mode 100644 index 67d20a0a8..000000000 --- a/external/mit/xorg/lib/libXcursor/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXdamage/Makefile b/external/mit/xorg/lib/libXdamage/Makefile deleted file mode 100644 index 59a7fe6f2..000000000 --- a/external/mit/xorg/lib/libXdamage/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2008/11/06 22:28:25 veego Exp $ - -.include - -LIB= Xdamage - -XDAMAGEDIR= ${X11SRCDIR.${LIB}} -.PATH: ${XDAMAGEDIR}/src -.PATH: ${XDAMAGEDIR}/include/X11/extensions -SRCS= Xdamage.c - -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/extensions - -INCS= Xdamage.h -INCSDIR=${X11INCDIR}/X11/extensions - -LIBDPLIBS= X11 ${.CURDIR}/../libX11/dynamic - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXdamage/shlib_version b/external/mit/xorg/lib/libXdamage/shlib_version deleted file mode 100644 index 67d20a0a8..000000000 --- a/external/mit/xorg/lib/libXdamage/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXdmGreet/Makefile b/external/mit/xorg/lib/libXdmGreet/Makefile deleted file mode 100644 index 2efd5db47..000000000 --- a/external/mit/xorg/lib/libXdmGreet/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2013/09/12 04:42:49 dholland Exp $ - -.include - -LIB= XdmGreet -.PATH: ${X11SRCDIR.xdm}/greeter - -SRCS= \ - Login.c \ - greet.c \ - verify.c - -CPPFLAGS+= -I${X11SRCDIR.xdm}/include -DRETSIGTYPE=void -# XXX: Enabling this, which should allow --export-dynamic to -# be elided, causes xdm to fail to accept password input and -# then crash at login "failure". -#CPPFLAGS+= -DGREET_LIB - -LIBDPLIBS=\ - Xext ${.CURDIR}/../libXext \ - Xt ${.CURDIR}/../libXt \ - Xdmcp ${.CURDIR}/../libXdmcp \ - Xinerama ${.CURDIR}/../libXinerama \ - Xft ${.CURDIR}/../libXft \ - Xpm ${.CURDIR}/../libXpm \ - X11 ${.CURDIR}/../libX11/dynamic - -.if ${USE_PAM} != "no" -LIBDPLIBS+=\ - pam ${.CURDIR}/../../../../../lib/libpam/libpam -.endif - -LIBDPLIBS+=\ - crypt ${.CURDIR}/../../../../../lib/libcrypt \ - util ${.CURDIR}/../../../../../lib/libutil - -.include "../../bin/xdm/Makefile.xdm" - -.include -.include diff --git a/external/mit/xorg/lib/libXdmGreet/shlib_version b/external/mit/xorg/lib/libXdmGreet/shlib_version deleted file mode 100644 index 819cc113a..000000000 --- a/external/mit/xorg/lib/libXdmGreet/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.1 2013/06/03 23:25:43 mrg Exp $ -# -major=0 -minor=0 diff --git a/external/mit/xorg/lib/libXdmcp/Makefile b/external/mit/xorg/lib/libXdmcp/Makefile deleted file mode 100644 index a88bf51c0..000000000 --- a/external/mit/xorg/lib/libXdmcp/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/07/19 05:53:44 mrg Exp $ - -.include - -LIB= Xdmcp -.PATH: ${X11SRCDIR.${LIB}} -.PATH: ${X11SRCDIR.${LIB}}/include/X11 - -SRCS= Array.c \ - Fill.c \ - Flush.c \ - Key.c \ - Read.c \ - Unwrap.c \ - Wrap.c \ - Write.c \ - Wraphelp.c - -INCS= Xdmcp.h -INCSDIR=${X11INCDIR}/X11 - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -DHASXDMAUTH -CPPFLAGS+= -DHAVE_ARC4RANDOM_BUF - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXdmcp/shlib_version b/external/mit/xorg/lib/libXdmcp/shlib_version deleted file mode 100644 index 7b9723451..000000000 --- a/external/mit/xorg/lib/libXdmcp/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=7 -minor=0 diff --git a/external/mit/xorg/lib/libXevie/Makefile b/external/mit/xorg/lib/libXevie/Makefile deleted file mode 100644 index 8299c1205..000000000 --- a/external/mit/xorg/lib/libXevie/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2010/05/22 02:40:40 mrg Exp $ - -.include - -LIB= Xevie - -XEVIEDIR= ${X11SRCDIR.${LIB}} -.PATH: ${XEVIEDIR}/src -.PATH: ${XEVIEDIR}/man -.PATH: ${XEVIEDIR}/include/X11/extensions -SRCS= Xevie.c - -INCS= Xevie.h -INCSDIR=${X11INCDIR}/X11/extensions - -MAN= Xevie.3 -MLINKS= Xevie.3 XevieQueryVersion.3 \ - Xevie.3 XevieStart.3 \ - Xevie.3 XevieSelectInput.3 \ - Xevie.3 XevieSendEvent.3 \ - Xevie.3 XevieEnd.3 - -LIBDPLIBS= X11 ${.CURDIR}/../libX11/dynamic \ - Xext ${.CURDIR}/../libXext - -PKGDIST= ${LIB} - -COPTS.Xevie.c+= -Wno-error # XXX - -.include -.include diff --git a/external/mit/xorg/lib/libXevie/shlib_version b/external/mit/xorg/lib/libXevie/shlib_version deleted file mode 100644 index 67d20a0a8..000000000 --- a/external/mit/xorg/lib/libXevie/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXext/Makefile b/external/mit/xorg/lib/libXext/Makefile deleted file mode 100644 index 902554d5b..000000000 --- a/external/mit/xorg/lib/libXext/Makefile +++ /dev/null @@ -1,104 +0,0 @@ -# $NetBSD: Makefile,v 1.8 2013/06/01 07:53:11 mrg Exp $ - -.include - -LIB= Xext -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/man -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions/ - -SRCS= DPMS.c \ - MITMisc.c \ - XAppgroup.c \ - XEVI.c \ - XLbx.c \ - XMultibuf.c \ - XSecurity.c \ - XShape.c \ - XShm.c \ - XSync.c \ - XTestExt1.c \ - Xcup.c \ - Xdbe.c \ - Xge.c \ - extutil.c \ - globals.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -DHAVE__XEATDATAWORDS - -LIBDPLIBS= X11 ${.CURDIR}/../libX11/dynamic - -# XXX -COPTS.extutil.c+= -Wno-error - -MAN= DBE.3 DPMSCapable.3 DPMSDisable.3 DPMSEnable.3 DPMSForceLevel.3 \ - DPMSGetTimeouts.3 DPMSGetVersion.3 DPMSInfo.3 DPMSQueryExtension.3 \ - DPMSSetTimeouts.3 XShape.3 XShm.3 XcupGetReservedColormapEntries.3 \ - XcupQueryVersion.3 XcupStoreColors.3 XdbeAllocateBackBufferName.3 \ - XdbeBeginIdiom.3 XdbeDeallocateBackBufferName.3 XdbeEndIdiom.3 \ - XdbeFreeVisualInfo.3 XdbeGetBackBufferAttributes.3 \ - XdbeGetVisualInfo.3 XdbeQueryExtension.3 XdbeSwapBuffers.3 Xevi.3 \ - Xmbuf.3 - -MLINKS= XShape.3 XShapeQueryExtensionXShapeQueryVersion.3 \ - XShape.3 XShapeCombineRegion.3 \ - XShape.3 XShapeCombineRectangles.3 \ - XShape.3 XShapeCombineMask.3 \ - XShape.3 XShapeCombineShape.3 \ - XShape.3 XShapeOffsetShape.3 \ - XShape.3 XShapeQueryExtents.3 \ - XShape.3 XShapeSelectInput.3 \ - XShape.3 XShapeInputSelected.3 \ - XShape.3 XShapeGetRectangles.3 - -MLINKS+= XShm.3 XShmQueryExtension.3 \ - XShm.3 XShmQueryVersion.3 \ - XShm.3 XShmPixmapFormat.3 \ - XShm.3 XShmAttach.3 \ - XShm.3 XShmDetach.3 \ - XShm.3 XShmCreateImage.3 \ - XShm.3 XShmPutImage.3 \ - XShm.3 XShmGetImage.3 \ - XShm.3 XShmCreatePixmap.3 \ - XShm.3 XShmGetEventBase.3 - -MLINKS+= Xmbuf.3 XmbufQueryExtension.3 \ - Xmbuf.3 XmbufGetVersion.3 \ - Xmbuf.3 XmbufCreateBuffers.3 \ - Xmbuf.3 XmbufDestroyBuffers.3 \ - Xmbuf.3 XmbufDisplayBuffers.3 \ - Xmbuf.3 XmbufGetWindowAttributes.3 \ - Xmbuf.3 XmbufChangeWindowAttributes.3 \ - Xmbuf.3 XmbufGetBufferAttributes.3 \ - Xmbuf.3 XmbufChangeBufferAttributes.3 \ - Xmbuf.3 XmbufGetScreenInfo.3 \ - Xmbuf.3 XmbufCreateStereoWindow.3 - -MLINKS+= Xevi.3 XeviQueryVersion.3 \ - Xevi.3 XeviGetVisualInfo.3 \ - Xevi.3 XeviQueryExtension.3 - -INCS= MITMisc.h \ - XEVI.h \ - XLbx.h \ - XShm.h \ - Xag.h \ - Xcup.h \ - Xdbe.h \ - Xext.h \ - Xge.h \ - dpms.h \ - extutil.h \ - multibuf.h \ - security.h \ - shape.h \ - sync.h \ - xtestext1.h - -INCSDIR=${X11INCDIR}/X11/extensions - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXext/shlib_version b/external/mit/xorg/lib/libXext/shlib_version deleted file mode 100644 index a10ca0049..000000000 --- a/external/mit/xorg/lib/libXext/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.3 2011/02/24 08:18:40 mrg Exp $ -# -major=7 -minor=1 diff --git a/external/mit/xorg/lib/libXfixes/Makefile b/external/mit/xorg/lib/libXfixes/Makefile deleted file mode 100644 index f4aea750d..000000000 --- a/external/mit/xorg/lib/libXfixes/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2013/05/31 00:47:53 mrg Exp $ - -.include - -LIB= Xfixes - -XFIXESDIR= ${X11SRCDIR.${LIB}} -.PATH: ${XFIXESDIR}/src -.PATH: ${XFIXESDIR}/man -.PATH: ${XFIXESDIR}/include/X11/extensions -SRCS= Cursor.c Region.c SaveSet.c Selection.c Xfixes.c - -INCS= Xfixes.h -INCSDIR=${X11INCDIR}/X11/extensions - -CPPFLAGS+= -DHAVE__XEATDATAWORDS - -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/extensions - -MAN= Xfixes.3 - -LIBDPLIBS= X11 ${.CURDIR}/../libX11/dynamic - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXfixes/shlib_version b/external/mit/xorg/lib/libXfixes/shlib_version deleted file mode 100644 index 03edcb8f3..000000000 --- a/external/mit/xorg/lib/libXfixes/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=4 -minor=0 diff --git a/external/mit/xorg/lib/libXfont/Makefile b/external/mit/xorg/lib/libXfont/Makefile deleted file mode 100644 index 08f5927c8..000000000 --- a/external/mit/xorg/lib/libXfont/Makefile +++ /dev/null @@ -1,74 +0,0 @@ -# $NetBSD: Makefile,v 1.10 2015/02/25 20:01:39 snj Exp $ - -.include -.if defined(__MINIX) -NOCLANGERROR= yes -NOGCCERROR= yes -.endif # defined(__MINIX) - -LIB= Xfont -XFONTDIR= ${X11SRCDIR.${LIB}} -.PATH: ${XFONTDIR}/src -.PATH: ${XFONTDIR}/src/FreeType -#.PATH: ${XFONTDIR}/src/Speedo -#.PATH: ${XFONTDIR}/src/Type1 -.PATH: ${XFONTDIR}/src/bitmap -.PATH: ${XFONTDIR}/src/builtins -.PATH: ${XFONTDIR}/src/fc -.PATH: ${XFONTDIR}/src/fontcache -.PATH: ${XFONTDIR}/src/fontfile -.PATH: ${XFONTDIR}/src/stubs -.PATH: ${XFONTDIR}/src/util -.PATH: ${XFONTDIR}/include/X11/fonts -.PATH: ${XFONTDIR}/../include - -SRCS= ftenc.c ftfuncs.c fttools.c xttcap.c \ - bdfread.c bdfutils.c bitmap.c bitmapfunc.c bitmaputil.c \ - bitscale.c fontink.c pcfread.c pcfwrite.c snfread.c dir.c file.c \ - fonts.c fpe.c render.c fsconvert.c fserve.c fsio.c fstrans.c \ - bitsource.c bufio.c catalogue.c decompress.c defaults.c \ - dirfile.c fileio.c filewr.c fontdir.c fontencc.c fontfile.c \ - fontscale.c gunzip.c register.c renderers.c bunzip2.c cauthgen.c \ - csignal.c delfntcid.c errorf.c findoldfnt.c \ - getcres.c getdefptsize.c getnewfntcid.c gettime.c initfshdl.c \ - regfpefunc.c rmfshdl.c servclient.c setfntauth.c stfntcfnt.c \ - atom.c fontaccel.c fontnames.c fontutil.c fontxlfd.c \ - format.c miscutil.c patcache.c private.c utilbitmap.c stubsinit.c - -INCS= bdfint.h bitmap.h bufio.h fntfil.h fntfilio.h fntfilst.h \ - fontconf.h fontencc.h fontmisc.h fontshow.h \ - fontutil.h fontxlfd.h ft.h ftfuncs.h pcf.h -INCSDIR=${X11INCDIR}/X11/fonts - -CPPFLAGS+= ${X11FLAGS.THREADLIB} ${X11FLAGS.CONNECTION} -CPPFLAGS+= -DHAS_SNPRINTF -DHAVE_CONFIG_H -CPPFLAGS+= -DBDFFORMAT -DSNFFORMAT -DPCFFORMAT -DX_GZIP_FONT_COMPRESSION -DX_BZIP2_FONT_COMPRESSION -CPPFLAGS+= -DFONT_ENCODINGS_DIRECTORY=\"${X11LIBDIR}/X11/fonts/encodings/encodings.dir\" -CPPFLAGS+= -I${DESTDIR}${X11INCDIR} -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/fonts -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/freetype2 -CPPFLAGS+= -I${XFONTDIR}/src/stubs -CPPFLAGS+= -I${XFONTDIR}/../include - -LIBDPLIBS=\ - Xt ${.CURDIR}/../libXt \ - SM ${.CURDIR}/../libSM \ - ICE ${.CURDIR}/../libICE \ - Xext ${.CURDIR}/../libXext \ - fontenc ${.CURDIR}/../libfontenc \ - freetype ${.CURDIR}/../freetype \ - X11 ${.CURDIR}/../libX11/dynamic \ - m ${.CURDIR}/../../../../../lib/libm \ - z ${.CURDIR}/../../../../../lib/libz \ - bz2 ${.CURDIR}/../../../../../lib/libbz2 - -# XXX -COPTS.ffcheck.c+= -Wno-error -COPTS.register.c+= -Wno-error - -PKGDIST= ${LIB} - -CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-string-plus-int - -.include -.include diff --git a/external/mit/xorg/lib/libXfont/shlib_version b/external/mit/xorg/lib/libXfont/shlib_version deleted file mode 100644 index 94cb9efd1..000000000 --- a/external/mit/xorg/lib/libXfont/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.3 2009/06/10 07:52:07 mrg Exp $ -# -major=3 -minor=0 diff --git a/external/mit/xorg/lib/libXfontcache/Makefile b/external/mit/xorg/lib/libXfontcache/Makefile deleted file mode 100644 index bb111e6a0..000000000 --- a/external/mit/xorg/lib/libXfontcache/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:30 cube Exp $ - -.include - -LIB= Xfontcache -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/man - -LIBDPLIBS=\ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -SRCS= FontCache.c - -MAN= Xfontcache.3 -MLINKS= Xfontcache.3 FontCacheChangeCacheSettings.3 \ - Xfontcache.3 FontCacheGetCacheSettings.3 \ - Xfontcache.3 FontCacheGetCacheStatistics.3 \ - Xfontcache.3 FontCacheQueryExtension.3 \ - Xfontcache.3 FontCacheQueryVersion.3 - -#CPPFLAGS+= ${X11FLAGS.THREADS} - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXfontcache/shlib_version b/external/mit/xorg/lib/libXfontcache/shlib_version deleted file mode 100644 index 67d20a0a8..000000000 --- a/external/mit/xorg/lib/libXfontcache/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXft/Makefile b/external/mit/xorg/lib/libXft/Makefile deleted file mode 100644 index c752a5108..000000000 --- a/external/mit/xorg/lib/libXft/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2014/11/21 01:11:50 joerg Exp $ - -.include - -LIB= Xft - -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/Xft -.PATH: ${X11SRCDIR.${LIB}}/man -SRCS= xftcolor.c xftcore.c xftdbg.c xftdpy.c xftdraw.c xftextent.c \ - xftfont.c xftfreetype.c xftglyphs.c xftinit.c xftlist.c \ - xftname.c xftrender.c xftstr.c xftswap.c xftxlfd.c - -INCS= Xft.h XftCompat.h -INCSDIR=${X11INCDIR}/X11/Xft - -MAN= Xft.3 - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -DFREETYPE2 -I${DESTDIR}${X11INCDIR}/freetype2 -DXFREE86_FT2 -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/Xft - -.if !empty(MACHINE_ARCH:Mearm*) && ${HAVE_GCC:U} == 48 -# Workaround a crash in XftGlyphSpecRender with GCC 4.8.4 -COPTS.xftrender.c+= ${${ACTIVE_CC} == "gcc" :? -O0 :} -.endif - -LIBDPLIBS= X11 ${.CURDIR}/../libX11/dynamic \ - fontconfig ${.CURDIR}/../fontconfig/src \ - freetype ${.CURDIR}/../freetype \ - Xrandr ${.CURDIR}/../libXrandr \ - Xrender ${.CURDIR}/../libXrender - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXft/shlib_version b/external/mit/xorg/lib/libXft/shlib_version deleted file mode 100644 index c9cc5aa4e..000000000 --- a/external/mit/xorg/lib/libXft/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=3 -minor=0 diff --git a/external/mit/xorg/lib/libXi/Makefile b/external/mit/xorg/lib/libXi/Makefile deleted file mode 100644 index cc0c83588..000000000 --- a/external/mit/xorg/lib/libXi/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -# $NetBSD: Makefile,v 1.13 2014/06/14 20:49:37 mrg Exp $ - -.include - -LIB= Xi -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions - -SRCS= XIAllowEvents.c \ - XIBarrier.c \ - XIGrabDevice.c \ - XIQueryVersion.c \ - XIQueryDevice.c \ - XISetDevFocus.c \ - XIGetDevFocus.c \ - XIPassiveGrab.c \ - XIProperties.c \ - XISelEv.c \ - XISetCPtr.c \ - XIWarpPointer.c \ - XIHierarchy.c \ - XIDefineCursor.c \ - XIQueryPointer.c -SRCS+= XAllowDv.c \ - XChDProp.c \ - XChgDCtl.c \ - XChgFCtl.c \ - XChgKbd.c \ - XChgKMap.c \ - XChgPnt.c \ - XChgProp.c \ - XCloseDev.c \ - XDelDProp.c \ - XDevBell.c \ - XExtToWire.c \ - XGetBMap.c \ - XGetCPtr.c \ - XGetDCtl.c \ - XGetDProp.c \ - XGetFCtl.c \ - XGetKMap.c \ - XGetMMap.c \ - XGetProp.c \ - XGetVers.c \ - XGMotion.c \ - XGrabDev.c \ - XGrDvBut.c \ - XGrDvKey.c \ - XGtFocus.c \ - XGtSelect.c \ - XListDev.c \ - XListDProp.c \ - XOpenDev.c \ - XQueryDv.c \ - XSelect.c \ - XSetBMap.c \ - XSetDVal.c \ - XSetMMap.c \ - XSetMode.c \ - XSndExEv.c \ - XStFocus.c \ - XUngrDev.c \ - XUngrDvB.c \ - XUngrDvK.c \ - XExtInt.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -DHAVE__XEATDATAWORDS - -LIBDPLIBS=\ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -INCS= XInput.h \ - XInput2.h - -INCSDIR=${X11INCDIR}/X11/extensions - -PKGDIST= ${LIB} - -COPTS.XExtInt.c+= -Wno-error # XXX -COPTS.XSndExEv.c+= -Wno-error # XXX - -CWARNFLAGS.clang+= -Wno-pointer-sign - -# XXX manuals - -.include -.include diff --git a/external/mit/xorg/lib/libXi/shlib_version b/external/mit/xorg/lib/libXi/shlib_version deleted file mode 100644 index f63685074..000000000 --- a/external/mit/xorg/lib/libXi/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.3 2013/06/05 00:52:22 mrg Exp $ -# -major=7 -minor=1 diff --git a/external/mit/xorg/lib/libXinerama/Makefile b/external/mit/xorg/lib/libXinerama/Makefile deleted file mode 100644 index 1305102de..000000000 --- a/external/mit/xorg/lib/libXinerama/Makefile +++ /dev/null @@ -1,32 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2015/07/22 02:23:20 mrg Exp $ - -.include - -LIB= Xinerama -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/man -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions - -SRCS= Xinerama.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -DHAVE__XEATDATAWORDS - -MAN= Xinerama.3 -MLINKS= Xinerama.3 XineramaQueryExtension.3 \ - Xinerama.3 XineramaQueryVersion.3 \ - Xinerama.3 XineramaIsActive.3 \ - Xinerama.3 XineramaQueryScreens.3 - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGDIST= ${LIB} - -INCS= Xinerama.h panoramiXext.h -INCSDIR=${X11INCDIR}/X11/extensions - -NOOBJ= # defined - -.include -.include diff --git a/external/mit/xorg/lib/libXinerama/shlib_version b/external/mit/xorg/lib/libXinerama/shlib_version deleted file mode 100644 index 67d20a0a8..000000000 --- a/external/mit/xorg/lib/libXinerama/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXmu/Makefile b/external/mit/xorg/lib/libXmu/Makefile deleted file mode 100644 index 26d130765..000000000 --- a/external/mit/xorg/lib/libXmu/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/11/21 06:01:50 mrg Exp $ - -.include - -LIB= Xmu -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/Xmu - -SRCS= AllCmap.c Atoms.c ClientWin.c Clip.c CloseHook.c CmapAlloc.c \ - CrCmap.c CrPixFBit.c CursorName.c CvtCache.c CvtStdSel.c \ - DefErrMsg.c DelCmap.c DisplayQue.c Distinct.c DrRndRect.c \ - DrawLogo.c EditresCom.c ExtAgent.c FToCback.c GetHost.c \ - GrayPixmap.c Initer.c LocBitmap.c Lookup.c LookupCmap.c \ - Lower.c RdBitF.c ScrOfWin.c ShapeWidg.c StdCmap.c StrToBS.c \ - StrToBmap.c StrToCurs.c StrToGrav.c StrToJust.c StrToLong.c \ - StrToOrnt.c StrToShap.c StrToWidg.c UpdMapHint.c VisCmap.c \ - WidgetNode.c Xct.c - -INCS= Atoms.h CharSet.h CloseHook.h Converters.h CurUtil.h \ - CvtCache.h DisplayQue.h Drawing.h Editres.h EditresP.h \ - Error.h ExtAgent.h Initer.h Lookup.h Misc.h StdCmap.h \ - StdSel.h SysUtil.h WidgetNode.h WinUtil.h Xct.h Xmu.h \ - WhitePoint.h -INCSDIR=${X11INCDIR}/X11/Xmu - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -DHAS_SNPRINTF -CPPFLAGS+= -DXTSTRINGDEFINES #XTODO is this correct? -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/Xmu - -CPPFLAGS.CvtStdSel.c= ${X11FLAGS.CONNECTION} -CPPFLAGS.LocBitmap.c= -DBITMAPDIR=\"${X11INCDIR}/X11/bitmaps\" - -LIBDPLIBS=\ - Xt ${.CURDIR}/../libXt \ - SM ${.CURDIR}/../libSM \ - ICE ${.CURDIR}/../libICE \ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGCONFIG= xmu xmuu -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXmu/shlib_version b/external/mit/xorg/lib/libXmu/shlib_version deleted file mode 100644 index 7b9723451..000000000 --- a/external/mit/xorg/lib/libXmu/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=7 -minor=0 diff --git a/external/mit/xorg/lib/libXmuu/Makefile b/external/mit/xorg/lib/libXmuu/Makefile deleted file mode 100644 index 90a8deed5..000000000 --- a/external/mit/xorg/lib/libXmuu/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -.include - -LIB= Xmuu -.PATH: ${X11SRCDIR.Xmu}/src - -SRCS= ClientWin.c CursorName.c DefErrMsg.c GetHost.c Lower.c - -CPPFLAGS+=-DHAS_SNPRINTF - -LIBDPLIBS=\ - Xt ${.CURDIR}/../libXt \ - SM ${.CURDIR}/../libSM \ - ICE ${.CURDIR}/../libICE \ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -.include -.include diff --git a/external/mit/xorg/lib/libXmuu/shlib_version b/external/mit/xorg/lib/libXmuu/shlib_version deleted file mode 100644 index 67d20a0a8..000000000 --- a/external/mit/xorg/lib/libXmuu/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:11 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXpm/Makefile b/external/mit/xorg/lib/libXpm/Makefile deleted file mode 100644 index 1d9c37c60..000000000 --- a/external/mit/xorg/lib/libXpm/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:30 cube Exp $ - -.include - -LIB= Xpm -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11 - -SRCS= Attrib.c CrBufFrI.c CrBufFrP.c CrDatFrI.c CrDatFrP.c \ - CrIFrBuf.c CrIFrDat.c CrIFrP.c CrPFrBuf.c CrPFrDat.c CrPFrI.c \ - Image.c Info.c RdFToBuf.c RdFToDat.c RdFToI.c RdFToP.c \ - WrFFrBuf.c WrFFrDat.c WrFFrI.c WrFFrP.c create.c data.c \ - hashtab.c misc.c parse.c rgb.c scan.c - -INCS= xpm.h -INCSDIR=${X11INCDIR}/X11 - -CPPFLAGS+=-DHAS_SNPRINTF -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 - -LIBDPLIBS=\ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXpm/shlib_version b/external/mit/xorg/lib/libXpm/shlib_version deleted file mode 100644 index 4641fb932..000000000 --- a/external/mit/xorg/lib/libXpm/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:12 christos Exp $ -# -major=5 -minor=0 diff --git a/external/mit/xorg/lib/libXpresent/Makefile b/external/mit/xorg/lib/libXpresent/Makefile deleted file mode 100644 index 5df02a000..000000000 --- a/external/mit/xorg/lib/libXpresent/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/07/23 05:46:39 mrg Exp $ - -.include - -LIB= Xpresent -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/man -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions - -SRCS= Xpresent.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} - -LIBDPLIBS=\ - Xext ${.CURDIR}/../libXext \ - Xrandr ${.CURDIR}/../libXrandr \ - Xfixes ${.CURDIR}/../libXfixes \ - X11 ${.CURDIR}/../libX11/dynamic - -INCS= Xpresent.h - -INCSDIR=${X11INCDIR}/X11/extensions - -PKGDIST= ${LIB} - -MAN= Xpresent.3 - -.include -.include diff --git a/external/mit/xorg/lib/libXpresent/shlib_version b/external/mit/xorg/lib/libXpresent/shlib_version deleted file mode 100644 index f1c6799eb..000000000 --- a/external/mit/xorg/lib/libXpresent/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.1 2015/07/23 05:46:39 mrg Exp $ -# -major=1 -minor=0 diff --git a/external/mit/xorg/lib/libXrandr/Makefile b/external/mit/xorg/lib/libXrandr/Makefile deleted file mode 100644 index 0e33b1f9e..000000000 --- a/external/mit/xorg/lib/libXrandr/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2015/07/20 03:13:56 mrg Exp $ - -.include - -LIB= Xrandr -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions -.PATH: ${X11SRCDIR.${LIB}}/man - -SRCS= Xrandr.c XrrConfig.c XrrCrtc.c XrrMode.c XrrOutput.c \ - XrrProperty.c XrrScreen.c XrrProvider.c XrrProviderProperty.c \ - XrrMonitor.c - -INCS= Xrandr.h -INCSDIR=${X11INCDIR}/X11/extensions - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/extensions -CPPFLAGS+= -DHAVE__XEATDATAWORDS - - -MAN= Xrandr.3 - -LIBDPLIBS=\ - Xrender ${.CURDIR}/../libXrender \ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGDIST= ${LIB} - -CWARNFLAGS.clang+= -Wno-pointer-sign - -.include -.include diff --git a/external/mit/xorg/lib/libXrandr/shlib_version b/external/mit/xorg/lib/libXrandr/shlib_version deleted file mode 100644 index b1943a236..000000000 --- a/external/mit/xorg/lib/libXrandr/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.4 2015/07/20 03:13:56 mrg Exp $ -# -major=3 -minor=2 diff --git a/external/mit/xorg/lib/libXrender/Makefile b/external/mit/xorg/lib/libXrender/Makefile deleted file mode 100644 index 402de971b..000000000 --- a/external/mit/xorg/lib/libXrender/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2015/07/23 08:03:25 mrg Exp $ - -.include - -LIB= Xrender - -XRENDERDIR= ${X11SRCDIR.${LIB}} -.PATH: ${XRENDERDIR}/src -.PATH: ${XRENDERDIR}/include/X11/extensions -SRCS= Xrender.c AddTrap.c Color.c Composite.c Cursor.c \ - Glyph.c Picture.c FillRect.c FillRects.c Filter.c \ - Poly.c Trap.c Tri.c - -INCS= Xrender.h -INCSDIR=${X11INCDIR}/X11/extensions - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/extensions -CPPFLAGS+= -I${XRENDERDIR}/../include - -LIBDPLIBS=\ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXrender/shlib_version b/external/mit/xorg/lib/libXrender/shlib_version deleted file mode 100644 index 6d5fa04e8..000000000 --- a/external/mit/xorg/lib/libXrender/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:12 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXres/Makefile b/external/mit/xorg/lib/libXres/Makefile deleted file mode 100644 index 581d7912e..000000000 --- a/external/mit/xorg/lib/libXres/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# $NetBSD: Makefile,v 1.8 2013/05/31 09:33:17 mrg Exp $ - -.include - -LIB= XRes - -XRESDIR= ${X11SRCDIR.Xres} -.PATH: ${XRESDIR}/src -.PATH: ${XRESDIR}/man -.PATH: ${XRESDIR}/include/X11/extensions -SRCS= XRes.c - -CPPFLAGS+= -DHAVE__XEATDATAWORDS - -INCS= XRes.h -INCSDIR=${X11INCDIR}/X11/extensions - -MAN= XRes.3 -MLINKS= XRes.3 XResQueryExtension.3 \ - XRes.3 XResQueryVersion.3 \ - XRes.3 XResQueryClients.3 \ - XRes.3 XResQueryClientResources.3 \ - XRes.3 XResQueryClientPixmapBytes.3 - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGDIST= Xres - -.include -.include diff --git a/external/mit/xorg/lib/libXres/shlib_version b/external/mit/xorg/lib/libXres/shlib_version deleted file mode 100644 index 6d5fa04e8..000000000 --- a/external/mit/xorg/lib/libXres/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:12 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXt/Makefile b/external/mit/xorg/lib/libXt/Makefile deleted file mode 100644 index de0f4a806..000000000 --- a/external/mit/xorg/lib/libXt/Makefile +++ /dev/null @@ -1,317 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2015/07/19 07:55:08 mrg Exp $ - -.include - -LIB= Xt -.PATH: ${X11SRCDIR.${LIB}}/include/X11 -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/man -.PATH: ${X11SRCDIR.${LIB}} - -SRCS= ActionHook.c Alloc.c ArgList.c Callback.c ClickTime.c \ - Composite.c Constraint.c Convert.c Converters.c Core.c \ - Create.c Destroy.c Display.c Error.c Event.c EventUtil.c \ - Functions.c GCManager.c Geometry.c GetActKey.c GetResList.c \ - GetValues.c HookObj.c Hooks.c Initialize.c Intrinsic.c \ - Keyboard.c Manage.c NextEvent.c Object.c PassivGrab.c \ - Pointer.c Popup.c PopupCB.c RectObj.c ResConfig.c Resources.c \ - Selection.c SetSens.c SetValues.c SetWMCW.c Shell.c \ - StringDefs.c TMaction.c TMgrab.c TMkey.c TMparse.c TMprint.c \ - TMstate.c Threads.c VarCreate.c VarGet.c Varargs.c Vendor.c - -INCS= CallbackI.h Composite.h CompositeP.h ConstrainP.h Constraint.h \ - ConvertI.h Core.h CoreP.h CreateI.h EventI.h HookObjI.h InitialI.h \ - Intrinsic.h IntrinsicI.h IntrinsicP.h Object.h ObjectP.h \ - PassivGraI.h RectObj.h RectObjP.h ResConfigP.h ResourceI.h \ - SelectionI.h Shell.h ShellI.h ShellP.h StringDefs.h ThreadsI.h \ - TranslateI.h VarargsI.h Vendor.h VendorP.h Xtos.h -INCSDIR=${X11INCDIR}/X11 - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 -.if defined(__MINIX) -CPPFLAGS+= -DUSE_SNPRINTF -DLIBXT -I. -.if ${MKDEBUGLIB:Uno} == "yes" -CWARNFLAGS+=-Wno-format -.endif -.else -CPPFLAGS+= -DUSE_POLL -DUSE_SNPRINTF -DLIBXT -I. -.endif # defined(__MINIX) -CPPFLAGS+= -DHAVE_ASPRINTF - -CPPFLAGS.Intrinsic.c= -DXFILESEARCHPATHDEFAULT=\"${X11LIBDIR}/%L/%T/%N%C%S:${X11LIBDIR}/%l/%T/%N%C%S:${X11LIBDIR}/%T/%N%C%S:${X11LIBDIR}/%L/%T/%N%S:${X11LIBDIR}/%l/%T/%N%S:${X11LIBDIR}/%T/%N%S\" -CPPFLAGS.Error.c= -DERRORDB=\"${X11LIBDIR}/XtErrorDB\" \ - -DXTERROR_PREFIX=\"\" -DXTWARNING_PREFIX=\"\" -CPPFLAGS.TMkey.c= -DXKB - -LIBDPLIBS=\ - X11 ${.CURDIR}/../libX11/dynamic \ - SM ${.CURDIR}/../libSM \ - ICE ${.CURDIR}/../libICE - -.include "${NETBSDSRCDIR}/external/mit/xorg/tools/makestrs/Makefile.makestrs" - -STRINGS_FILES= StringDefs.c StringDefs.h Shell.h -STRINGS_TMPLS= util/StrDefs.ct util/StrDefs.ht util/Shell.ht -STRINGS_LIST= util/string.list - -${STRINGS_FILES}: strings_files.stamp -strings_files.stamp: ${MAKESTRS} ${STRINGS_LIST} ${STRINGS_TMPLS} - ${_MKMSG_CREATE} ${STRINGS_FILES} - rm -f ${.TARGET} ${STRINGS_FILES} - rm -f util - ln -s ${X11SRCDIR.Xt}/util util - ${MAKESTRS} -i . < ${STRINGS_LIST} > StringDefs.c - touch ${.TARGET} -CLEANFILES+= ${STRINGS_FILES} util strings_files.stamp -DPSRCS+= ${STRINGS_FILES} - -MAN= XtAddActions.3 XtAddCallback.3 XtAddEventHandler.3 \ - XtAddExposureToRegion.3 XtAddGrab.3 XtAddInput.3 XtAllocateGC.3 \ - XtAppAddActionHook.3 XtAppAddActions.3 XtAppAddBlockHook.3 \ - XtAppAddConverter.3 XtAppAddInput.3 XtAppAddSignal.3 \ - XtAppAddTimeOut.3 XtAppAddWorkProc.3 XtAppCreateShell.3 \ - XtAppError.3 XtAppErrorMsg.3 XtAppGetErrorDatabase.3 \ - XtAppGetSelectionTimeout.3 XtAppInitialize.3 XtAppLock.3 \ - XtAppNextEvent.3 XtAppReleaseCacheRefs.3 XtAppSetExitFlag.3 \ - XtAppSetFallbackResources.3 XtAppSetTypeConverter.3 \ - XtBuildEventMask.3 XtCallAcceptFocus.3 XtCallActionProc.3 \ - XtCallCallbacks.3 XtClass.3 XtConfigureWidget.3 XtConvert.3 \ - XtConvertAndStore.3 XtCreateApplicationContext.3 \ - XtCreateApplicationShell.3 XtCreatePopupShell.3 \ - XtCreateSelectionRequest.3 XtCreateWidget.3 XtCreateWindow.3 \ - XtDisplay.3 XtDisplayInitialize.3 XtDisplayStringConversionWarning.3 \ - XtDisplayToApplicationContext.3 XtError.3 XtErrorMsg.3 XtFindFile.3 \ - XtGetActionKeysym.3 XtGetActionList.3 XtGetApplicationNameAndClass.3 \ - XtGetApplicationResources.3 XtGetClassExtension.3 XtGetDisplays.3 \ - XtGetErrorDatabase.3 XtGetGC.3 XtGetKeyboardFocusWidget.3 \ - XtGetKeysymTable.3 XtGetResourceList.3 XtGetSelectionParameters.3 \ - XtGetSelectionRequest.3 XtGetSelectionTimeout.3 XtGetSelectionValue.3 \ - XtGetSelectionValueIncremental.3 XtGetSubresources.3 XtGrabKey.3 \ - XtHooksOfDisplay.3 XtInitialize.3 XtInitializeWidgetClass.3 \ - XtInsertEventTypeHandler.3 XtLastEventProcessed.3 \ - XtMakeGeometryRequest.3 XtMalloc.3 XtManageChildren.3 XtMapWidget.3 \ - XtName.3 XtNameToWidget.3 XtNextEvent.3 XtOffset.3 \ - XtOpenApplication.3 XtOwnSelection.3 XtParent.3 \ - XtParseAcceleratorTable.3 XtParseTranslationTable.3 XtPopdown.3 \ - XtPopup.3 XtProcessLock.3 XtQueryGeometry.3 XtRealizeWidget.3 \ - XtRegisterDrawable.3 XtRegisterGrabAction.3 XtReservePropertyAtom.3 \ - XtResolvePathname.3 XtSessionGetToken.3 XtSetArg.3 \ - XtSetKeyTranslator.3 XtSetKeyboardFocus.3 XtSetLanguageProc.3 \ - XtSetMultiClickTime.3 XtSetSelectionParameters.3 XtSetSensitive.3 \ - XtSetValues.3 XtSetWMColormapWindows.3 XtStringConversionWarning.3 \ - XtToolkitThreadInitialize.3 XtTranslateCoords.3 XtVaCreateArgsList.3 - -MLINKS= XtAddCallback.3 XtAddCallbacks.3 \ - XtAddCallback.3 XtRemoveCallback.3 \ - XtAddCallback.3 XtRemoveCallbacks.3 \ - XtAddCallback.3 XtRemoveAllCallbacks.3 - -MLINKS+= XtAddEventHandler.3 XtAddRawEventHandler.3 \ - XtAddEventHandler.3 XtRemoveEventHandler.3 \ - XtAddEventHandler.3 XtRemoveRawEventHandler.3 \ - XtAddEventHandler.3 XtInsertEventHandler.3 \ - XtAddEventHandler.3 XtInsertRawEventHandler.3 - -MLINKS+= XtAddGrab.3 XtRemoveGrab.3 \ - XtAppAddConverter.3 XtAddConverter.3 \ - XtAppAddInput.3 XtRemoveInput.3 \ - XtAppAddTimeOut.3 XtRemoveTimeOut.3 \ - XtAppAddWorkProc.3 XtRemoveWorkProc.3 \ - XtAppCreateShell.3 XtVaAppCreateShell.3 - -MLINKS+= XtAppError.3 XtAppSetErrorHandler.3 \ - XtAppError.3 XtAppSetWarningHandler.3 \ - XtAppError.3 XtAppWarning.3 - -MLINKS+= XtAppErrorMsg.3 XtAppSetErrorMsgHandler.3 \ - XtAppErrorMsg.3 XtAppSetWarningMsgHandler.3 \ - XtAppErrorMsg.3 XtAppWarningMsg.3 - -MLINKS+= XtAppGetErrorDatabase.3 XtAppGetErrorDatabaseText.3 \ - XtAppGetSelectionTimeout.3 XtAppSetSelectionTimeout.3 - -MLINKS+= XtAppNextEvent.3 XtAppPending.3 \ - XtAppNextEvent.3 XtAppPeekEvent.3 \ - XtAppNextEvent.3 XtAppProcessEvent.3 \ - XtAppNextEvent.3 XtDispatchEvent.3 \ - XtAppNextEvent.3 XtAppMainLoop.3 - -MLINKS+= XtNextEvent.3 XtPending.3 \ - XtNextEvent.3 XtPeekEvent.3 \ - XtNextEvent.3 XtProcessEvent.3 \ - XtNextEvent.3 XtMainLoop.3 - -MLINKS+= XtCallCallbacks.3 XtCallCallbackList.3 \ - XtCallCallbacks.3 XtHasCallbacks.3 - -MLINKS+= XtClass.3 XtSuperclass.3 \ - XtClass.3 XtIsSubclass.3 \ - XtClass.3 XtCheckSubclass.3 \ - XtClass.3 XtIsObject.3 \ - XtClass.3 XtIsRectObj.3 \ - XtClass.3 XtIsWidget.3 \ - XtClass.3 XtIsComposite.3 \ - XtClass.3 XtIsConstraint.3 \ - XtClass.3 XtIsShell.3 \ - XtClass.3 XtIsOverrideShell.3 \ - XtClass.3 XtIsWMShell.3 \ - XtClass.3 XtIsVendorShell.3 \ - XtClass.3 XtIsTransientShell.3 \ - XtClass.3 XtIsTopLevelShell.3 \ - XtClass.3 XtIsApplicationShell.3 \ - XtClass.3 XtIsSessionShell.3 - -MLINKS+= XtConfigureWidget.3 XtMoveWidget.3 \ - XtConfigureWidget.3 XtResizeWidget.3 - -MLINKS+= XtConvert.3 XtDirectConvert.3 \ - XtConvertAndStore.3 XtCallConverter.3 - -MLINKS+= XtCreateApplicationContext.3 XtDestroyApplicationContext.3 \ - XtCreateApplicationContext.3 XtWidgetToApplicationContext.3 \ - XtCreateApplicationContext.3 XtToolkitInitialize.3 - -MLINKS+= XtCreatePopupShell.3 XtVaCreatePopupShell.3 - -MLINKS+= XtCreateWidget.3 XtVaCreateWidget.3 \ - XtCreateWidget.3 XtCreateManagedWidget.3 \ - XtCreateWidget.3 XtVaCreateManagedWidget.3 \ - XtCreateWidget.3 XtDestroyWidget.3 - -MLINKS+= XtDisplay.3 XtDisplayOfObject.3 \ - XtDisplay.3 XtScreen.3 \ - XtDisplay.3 XtScreenOfObject.3 \ - XtDisplay.3 XtWindow.3 \ - XtDisplay.3 XtWindowOfObject.3 - -MLINKS+= XtDisplayInitialize.3 XtOpenDisplay.3 \ - XtDisplayInitialize.3 XtCloseDisplay.3 \ - XtDisplayInitialize.3 XtDatabase.3 \ - XtDisplayInitialize.3 XtScreenDatabase.3 - -MLINKS+= XtGetGC.3 XtReleaseGC.3 \ - XtGetResourceList.3 XtGetConstraintResourceList.3 \ - XtGetSelectionValue.3 XtGetSelectionValues.3 \ - XtGetSubresources.3 XtVaGetSubresources.3 \ - XtGetApplicationResources.3 XtVaGetApplicationResources.3 \ - XtMakeGeometryRequest.3 XtMakeResizeRequest.3 - -MLINKS+= XtMalloc.3 XtCalloc.3 \ - XtMalloc.3 XtRealloc.3 \ - XtMalloc.3 XtFree.3 \ - XtMalloc.3 XtNew.3 \ - XtMalloc.3 XtNewString.3 \ - XtMalloc.3 XtAsprintf.3 - -MLINKS+= XtManageChildren.3 XtManageChild.3 \ - XtManageChildren.3 XtUnmanageChildren.3 \ - XtManageChildren.3 XtUnmanageChild.3 \ - XtManageChildren.3 XtIsManaged.3 \ - XtManageChildren.3 XtChangeManagedSet.3 - -MLINKS+= XtMapWidget.3 XtSetMappedWhenManaged.3 \ - XtMapWidget.3 XtUnmapWidget.3 - -MLINKS+= XtNameToWidget.3 XtWindowToWidget.3 - -MLINKS+= XtOffset.3 XtOffsetOf.3 \ - XtOffset.3 XtNumber.3 - -MLINKS+= XtOwnSelection.3 XtOwnSelectionIncremental.3 \ - XtOwnSelection.3 XtDisownSelection.3 - -MLINKS+= XtParseAcceleratorTable.3 XtInstallAccelerators.3 \ - XtParseAcceleratorTable.3 XtInstallAllAccelerators.3 - -MLINKS+= XtParseTranslationTable.3 XtAugmentTranslations.3 \ - XtParseTranslationTable.3 XtOverrideTranslations.3 \ - XtParseTranslationTable.3 XtUninstallTranslations.3 - -MLINKS+= XtPopdown.3 XtCallbackPopdown.3 \ - XtPopdown.3 MenuPopdown.3 - -MLINKS+= XtPopup.3 XtPopupSpringLoaded.3 \ - XtPopup.3 XtCallbackNone.3 \ - XtPopup.3 XtCallbackNonexclusive.3 \ - XtPopup.3 XtCallbackExclusive.3 \ - XtPopup.3 MenuPopup.3 - -MLINKS+= XtRealizeWidget.3 XtIsRealized.3 \ - XtRealizeWidget.3 XtUnrealizeWidget.3 - -MLINKS+= XtSetArg.3 XtMergeArgLists.3 - -MLINKS+= XtSetKeyTranslator.3 XtTranslateKeycode.3 \ - XtSetKeyTranslator.3 XtRegisterCaseConverter.3 \ - XtSetKeyTranslator.3 XtConvertCase.3 - -MLINKS+= XtSetSensitive.3 XtIsSensitive.3 - -MLINKS+= XtSetValues.3 XtVaSetValues.3 \ - XtSetValues.3 XtSetSubvalues.3 \ - XtSetValues.3 XtGetValues.3 \ - XtSetValues.3 XtVaGetValues.3 \ - XtSetValues.3 XtGetSubvalues.3 \ - XtSetValues.3 XtVaGetSubvalues.3 \ - XtSetValues.3 XtVaSetSubvalues.3 - -MLINKS+= XtGetKeysymTable.3 XtKeysymToKeycodeList.3 \ - XtAppSetTypeConverter.3 XtSetTypeConverter.3 \ - XtAppAddActionHook.3 XtRemoveActionHook.3 \ - XtSetMultiClickTime.3 XtGetMultiClickTime.3 - -MLINKS+= XtInsertEventTypeHandler.3 XtRemoveEventTypeHandler.3 \ - XtInsertEventTypeHandler.3 XtRegisterExtensionSelector.3 \ - XtInsertEventTypeHandler.3 XtSetEventDispatcher.3 \ - XtInsertEventTypeHandler.3 XtDispatchEventToWidget.3 - -MLINKS+= XtLastEventProcessed.3 XtLastTimestampProcessed.3 - -MLINKS+= XtAppAddSignal.3 XtNoticeSignal.3 \ - XtAppAddSignal.3 XtRemoveSignal.3 - -MLINKS+= XtAddInput.3 XtAddTimeOut.3 \ - XtAddInput.3 XtAddWorkProc.3 - -MLINKS+= XtAppAddBlockHook.3 XtRemoveBlockHook.3 \ - XtAppInitialize.3 XtVaAppInitialize.3 \ - XtSessionGetToken.3 XtSessionReturnToken.3 - -MLINKS+= XtErrorMsg.3 XtSetErrorMsgHandler.3 \ - XtErrorMsg.3 XtSetWarningMsgHandler.3 \ - XtErrorMsg.3 XtWarningMsg.3 - -MLINKS+= XtError.3 XtSetErrorHandler.3 \ - XtError.3 XtSetWarningHandler.3 \ - XtError.3 XtWarning.3 - -MLINKS+= XtGetErrorDatabase.3 XtGetErrorDatabaseText.3 \ - XtGetSelectionValueIncremental.3 XtGetSelectionValuesIncremental.3 \ - XtGetSelectionTimeout.3 XtSetSelectionTimeout.3 - -MLINKS+= XtCreateSelectionRequest.3 XtSendSelectionRequest.3 \ - XtCreateSelectionRequest.3 XtCancelSelectionRequest.3 - -MLINKS+= XtReservePropertyAtom.3 XtReleasePropertyAtom.3 - -MLINKS+= XtGrabKey.3 XtUngrabKey.3 \ - XtGrabKey.3 XtGrabKeyboard.3 \ - XtGrabKey.3 XtUngrabKeyboard.3 \ - XtGrabKey.3 XtGrabButton.3 \ - XtGrabKey.3 XtUngrabButton.3 \ - XtGrabKey.3 XtGrabPointer.3 \ - XtGrabKey.3 XtUngrabPointer.3 - -MLINKS+= XtRegisterDrawable.3 XtUnregisterDrawable.3 \ - XtAppSetExitFlag.3 XtAppGetExitFlag.3 \ - XtAppLock.3 XtAppUnlock.3 \ - XtProcessLock.3 XtProcessUnlock.3 \ - XtOpenApplication.3 XtVaOpenApplication.3 - -PKGDIST= ${LIB} - -CWARNFLAGS.clang+= -Wno-tautological-compare - -.include -.include diff --git a/external/mit/xorg/lib/libXt/shlib_version b/external/mit/xorg/lib/libXt/shlib_version deleted file mode 100644 index 21f83da11..000000000 --- a/external/mit/xorg/lib/libXt/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:12 christos Exp $ -# -major=7 -minor=0 diff --git a/external/mit/xorg/lib/libXtst/Makefile b/external/mit/xorg/lib/libXtst/Makefile deleted file mode 100644 index 37ef30670..000000000 --- a/external/mit/xorg/lib/libXtst/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2013/05/31 09:33:17 mrg Exp $ - -.include - -LIB= Xtst -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/man -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions - -SRCS= XTest.c XRecord.c - -CPPFLAGS+= -DHAVE__XEATDATAWORDS - -CPPFLAGS+= ${X11FLAGS.THREADLIB} - -LIBDPLIBS=\ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -INCS= XTest.h \ - record.h - -INCSDIR=${X11INCDIR}/X11/extensions - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXtst/shlib_version b/external/mit/xorg/lib/libXtst/shlib_version deleted file mode 100644 index 21f83da11..000000000 --- a/external/mit/xorg/lib/libXtst/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:12 christos Exp $ -# -major=7 -minor=0 diff --git a/external/mit/xorg/lib/libXv/Makefile b/external/mit/xorg/lib/libXv/Makefile deleted file mode 100644 index cb0fe1086..000000000 --- a/external/mit/xorg/lib/libXv/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2013/06/01 08:03:26 mrg Exp $ - -.include - -LIB= Xv -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions -.PATH: ${X11SRCDIR.${LIB}}/man - -SRCS= Xv.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -DHAVE__XEATDATAWORDS - -INCS= Xvlib.h -INCSDIR=${X11INCDIR}/X11/extensions - -LIBDPLIBS=\ - Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -MAN= Xv.3 XvFreeAdaptorInfo.3 XvFreeEncodingInfo.3 XvGetPortAttribute.3 \ - XvGetStill.3 XvGetVideo.3 XvGrabPort.3 XvPortNotify.3 XvPutStill.3 \ - XvPutVideo.3 XvQueryAdaptors.3 XvQueryBestSize.3 XvQueryEncodings.3 \ - XvQueryExtension.3 XvSelectPortNotify.3 XvSelectVideoNotify.3 \ - XvSetPortAttribute.3 XvStopVideo.3 XvUngrabPort.3 XvVideoNotify.3 - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXv/shlib_version b/external/mit/xorg/lib/libXv/shlib_version deleted file mode 100644 index 6d5fa04e8..000000000 --- a/external/mit/xorg/lib/libXv/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:12 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXvMC/Makefile b/external/mit/xorg/lib/libXvMC/Makefile deleted file mode 100644 index ca9b1c4c8..000000000 --- a/external/mit/xorg/lib/libXvMC/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2014/03/16 22:53:17 mrg Exp $ - -.include - -LIB= XvMC -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions - -SRCS= XvMC.c - -INCS= XvMClib.h -INCSDIR=${X11INCDIR}/X11/extensions - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -DHAVE__XEATDATAWORDS - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXvMC/shlib_version b/external/mit/xorg/lib/libXvMC/shlib_version deleted file mode 100644 index 6d5fa04e8..000000000 --- a/external/mit/xorg/lib/libXvMC/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:12 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXvMCW/Makefile b/external/mit/xorg/lib/libXvMCW/Makefile deleted file mode 100644 index 7365d316c..000000000 --- a/external/mit/xorg/lib/libXvMCW/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2013/06/06 06:18:15 mrg Exp $ - -.include - -LIB= XvMCW -.PATH: ${X11SRCDIR.XvMC}/wrapper - -SRCS= XvMCWrapper.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -CPPFLAGS+= -DXVMC_CONFIGDIR=${X11ETCDIR} -CPPFLAGS+= -DXVMC_SOVERSION=\".2.0\" -CPPFLAGS+= -DXVMC_CLIENTSOVERSION=\".1.0\" -CPPFLAGS+= -DXV_SOVERSION=\".2.0\" -CPPFLAGS+= -I${X11SRCDIR.XvMC}/include - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -.include -.include diff --git a/external/mit/xorg/lib/libXvMCW/shlib_version b/external/mit/xorg/lib/libXvMCW/shlib_version deleted file mode 100644 index d9e68aa63..000000000 --- a/external/mit/xorg/lib/libXvMCW/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.1 2011/01/19 16:31:24 jmcneill Exp $ -# -major=1 -minor=0 diff --git a/external/mit/xorg/lib/libXxf86dga/Makefile b/external/mit/xorg/lib/libXxf86dga/Makefile deleted file mode 100644 index 0dc0a1afe..000000000 --- a/external/mit/xorg/lib/libXxf86dga/Makefile +++ /dev/null @@ -1,51 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2013/05/31 09:33:17 mrg Exp $ - -.include - -LIB= Xxf86dga -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/man -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions - -SRCS= XF86DGA.c XF86DGA2.c - -MAN= XDGA.3 -MLINKS= XDGA.3 XF86DGA.3 \ - XDGA.3 XFree86-DGA.3 \ - XDGA.3 XDGAChangePixmapMode.3 \ - XDGA.3 XDGACloseFramebuffer.3 \ - XDGA.3 XDGACopyArea.3 \ - XDGA.3 XDGACopyTransparentArea.3 \ - XDGA.3 XDGACreateColormap.3 \ - XDGA.3 XDGAFillRectangle.3 \ - XDGA.3 XDGAGetViewportStatus.3 \ - XDGA.3 XDGAInstallColormap.3 \ - XDGA.3 XDGAKeyEventToXKeyEvent.3 \ - XDGA.3 XDGAOpenFramebuffer.3 \ - XDGA.3 XDGAQueryExtension.3 \ - XDGA.3 XDGAQueryModes.3 \ - XDGA.3 XDGAQueryVersion.3 \ - XDGA.3 XDGASelectInput.3 \ - XDGA.3 XDGASetClientVersion.3 \ - XDGA.3 XDGASetMode.3 \ - XDGA.3 XDGASetViewport.3 \ - XDGA.3 XDGASync.3 - -CPPFLAGS+= -DHAVE__XEATDATAWORDS -CPPFLAGS+= ${X11FLAGS.THREADLIB} - -# XXX -CPPFLAGS.XF86DGA2.c= -Wno-error - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -INCS= Xxf86dga.h \ - xf86dga1.h - -INCSDIR=${X11INCDIR}/X11/extensions - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXxf86dga/shlib_version b/external/mit/xorg/lib/libXxf86dga/shlib_version deleted file mode 100644 index e06fc0e9f..000000000 --- a/external/mit/xorg/lib/libXxf86dga/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:13 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXxf86misc/Makefile b/external/mit/xorg/lib/libXxf86misc/Makefile deleted file mode 100644 index d1b580e6c..000000000 --- a/external/mit/xorg/lib/libXxf86misc/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2010/05/22 02:41:49 mrg Exp $ - -.include - -LIB= Xxf86misc -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/man - -SRCS= XF86Misc.c - -MAN= XF86Misc.3 -MLINKS= XF86Misc.3 XF86MiscGetKbdSettings.3 \ - XF86Misc.3 XF86MiscGetMouseSettings.3 \ - XF86Misc.3 XF86MiscGetSaver.3 \ - XF86Misc.3 XF86MiscQueryExtension.3 \ - XF86Misc.3 XF86MiscQueryVersion.3 \ - XF86Misc.3 XF86MiscSetKbdSettings.3 \ - XF86Misc.3 XF86MiscSetMouseSettings.3 \ - XF86Misc.3 XF86MiscSetSaver.3 - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXxf86misc/shlib_version b/external/mit/xorg/lib/libXxf86misc/shlib_version deleted file mode 100644 index e06fc0e9f..000000000 --- a/external/mit/xorg/lib/libXxf86misc/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:13 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libXxf86vm/Makefile b/external/mit/xorg/lib/libXxf86vm/Makefile deleted file mode 100644 index 46b64d2db..000000000 --- a/external/mit/xorg/lib/libXxf86vm/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2013/05/31 09:33:18 mrg Exp $ - -.include - -LIB= Xxf86vm -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/man -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions - -SRCS= XF86VMode.c - -CPPFLAGS+= -DHAVE__XEATDATAWORDS - -MAN= XF86VM.3 -MLINKS= XF86VM.3 XF86VidModeQueryExtension.3 \ - XF86VM.3 XF86VidModeQueryVersion.3 \ - XF86VM.3 XF86VidModeSetClientVersion.3 \ - XF86VM.3 XF86VidModeGetModeLine.3 \ - XF86VM.3 XF86VidModeGetAllModeLines.3 \ - XF86VM.3 XF86VidModeDeleteModeLine.3 \ - XF86VM.3 XF86VidModeModModeLine.3 \ - XF86VM.3 XF86VidModeValidateModeLine.3 \ - XF86VM.3 XF86VidModeSwitchMode.3 \ - XF86VM.3 XF86VidModeSwitchToMode.3 \ - XF86VM.3 XF86VidModeLockModeSwitch.3 \ - XF86VM.3 XF86VidModeGetMonitor.3 \ - XF86VM.3 XF86VidModeGetViewPort.3 \ - XF86VM.3 XF86VidModeSetViewPort.3 \ - XF86VM.3 XF86VidModeGetDotClocks.3 \ - XF86VM.3 XF86VidModeGetGamma.3 \ - XF86VM.3 XF86VidModeSetGamma.3 \ - XF86VM.3 XF86VidModeGetGammaRamp.3 \ - XF86VM.3 XF86VidModeSetGammaRamp.3 \ - XF86VM.3 XF86VidModeGetGammaRampSize.3 \ - XF86VM.3 XF86VidModeGetPermissions.3 - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic - -INCS= xf86vmode.h - -INCSDIR=${X11INCDIR}/X11/extensions - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libXxf86vm/shlib_version b/external/mit/xorg/lib/libXxf86vm/shlib_version deleted file mode 100644 index e06fc0e9f..000000000 --- a/external/mit/xorg/lib/libXxf86vm/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:13 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libchromeXvMC/Makefile b/external/mit/xorg/lib/libchromeXvMC/Makefile deleted file mode 100644 index 94cb7a265..000000000 --- a/external/mit/xorg/lib/libchromeXvMC/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/06/02 03:15:49 christos Exp $ - -.include - -LIB= chromeXvMC -.PATH: ${X11SRCDIR.xf86-video-openchrome}/libxvmc -.PATH: ${X11SRCDIR.xf86-video-openchrome}/src -.PATH: ${X11SRCDIR.xf86-video-openchrome}/src/xvmc - -SRCS= viaLowLevel.c \ - driDrawable.c \ - viaXvMC.c \ - xf86dri.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} \ - -DHAVE_XEXTPROTO_71 \ - -DXSERVER_LIBPCIACCESS \ - -DTRUE=1 -DFALSE=0 -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm \ - -I${DESTDIR}${X11INCDIR}/xorg \ - -I${X11SRCDIR.xf86-video-openchrome}/src - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic \ - Xv ${.CURDIR}/../libXv \ - XvMC ${.CURDIR}/../libXvMC \ - drm ${.CURDIR}/../libdrm - -.include -.include diff --git a/external/mit/xorg/lib/libchromeXvMC/shlib_version b/external/mit/xorg/lib/libchromeXvMC/shlib_version deleted file mode 100644 index 8ed623e60..000000000 --- a/external/mit/xorg/lib/libchromeXvMC/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2011/01/20 18:55:38 jmcneill Exp $ -# -major=1 -minor=0 diff --git a/external/mit/xorg/lib/libchromeXvMCPro/Makefile b/external/mit/xorg/lib/libchromeXvMCPro/Makefile deleted file mode 100644 index 79f8e40fa..000000000 --- a/external/mit/xorg/lib/libchromeXvMCPro/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2013/06/02 03:13:41 christos Exp $ - -.include - -LIB= chromeXvMCPro -.PATH: ${X11SRCDIR.xf86-video-openchrome}/libxvmc -.PATH: ${X11SRCDIR.xf86-video-openchrome}/src -.PATH: ${X11SRCDIR.xf86-video-openchrome}/src/xvmc - -SRCS= viaLowLevelPro.c \ - driDrawable.c \ - viaXvMC.c \ - xf86dri.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} \ - -DHAVE_XEXTPROTO_71 \ - -DXSERVER_LIBPCIACCESS \ - -DTRUE=1 -DFALSE=0 -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm \ - -I${DESTDIR}${X11INCDIR}/xorg \ - -I${X11SRCDIR.xf86-video-openchrome}/src - -LIBDPLIBS= Xext ${.CURDIR}/../libXext \ - X11 ${.CURDIR}/../libX11/dynamic \ - Xv ${.CURDIR}/../libXv \ - XvMC ${.CURDIR}/../libXvMC \ - drm ${.CURDIR}/../libdrm - -.include -.include diff --git a/external/mit/xorg/lib/libchromeXvMCPro/shlib_version b/external/mit/xorg/lib/libchromeXvMCPro/shlib_version deleted file mode 100644 index 8cae1f9e1..000000000 --- a/external/mit/xorg/lib/libchromeXvMCPro/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.1 2011/01/20 18:36:46 jmcneill Exp $ -# -major=1 -minor=0 diff --git a/external/mit/xorg/lib/libdrm/Makefile b/external/mit/xorg/lib/libdrm/Makefile deleted file mode 100644 index 7a4550011..000000000 --- a/external/mit/xorg/lib/libdrm/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -# $NetBSD: Makefile,v 1.10 2014/03/21 18:14:20 riastradh Exp $ - -.include - -LIB= drm -.PATH: ${X11SRCDIR.${LIB}} - -SRCS= xf86drm.c xf86drmHash.c xf86drmMode.c xf86drmRandom.c xf86drmSL.c - -INCS= xf86drm.h xf86drmMode.h -INCSDIR=${X11INCDIR} - -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm - -SUBDIR= drm kms - -PKGCONFIG= libdrm -PKGDIST= ${LIB} - -CWARNFLAGS.clang+= -Wno-conversion -Wno-tautological-compare - -.if 0 -MAN= drm.7 \ - drm-kms.7 \ - drm-memory.7 \ - drmAvailable.3 \ - drmHandleEvent.3 \ - drmModeGetResources.3 -# XXX is this right? -MLINKS+= drm-mm.7 drm-gem.7 \ - drm-mm.7 drm-ttm.7 -.endif - -.include "Makefile.defines" - -.include -.include -.include diff --git a/external/mit/xorg/lib/libdrm/Makefile.defines b/external/mit/xorg/lib/libdrm/Makefile.defines deleted file mode 100644 index 4202f7ff5..000000000 --- a/external/mit/xorg/lib/libdrm/Makefile.defines +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile.defines,v 1.1 2014/03/17 08:01:18 mrg Exp $ - -# common defiles for libdrm components - -CPPFLAGS+= -DHAVE_INTTYPES_H \ - -DHAVE_RADEON \ - -DHAVE_SETENV \ - -DHAVE_STDINT_H \ - -DHAVE_STRINGS_H \ - -DHAVE_STRING_H \ - -DHAVE_SYS_STAT_H \ - -DHAVE_SYS_TYPES_H \ - -DHAVE_UNISTD_H - -# -DHAVE_NOUVEAU - diff --git a/external/mit/xorg/lib/libdrm/drm/Makefile b/external/mit/xorg/lib/libdrm/drm/Makefile deleted file mode 100644 index 9af27f7b0..000000000 --- a/external/mit/xorg/lib/libdrm/drm/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2014/03/17 08:01:18 mrg Exp $ - -# install include/libdrm files - -.include - -.PATH: ${X11SRCDIR.drm}/include/drm -.PATH: ${X11SRCDIR.drm}/intel -.PATH: ${X11SRCDIR.drm}/radeon - -INCS= drm.h \ - drm_fourcc.h \ - drm_mode.h \ - drm_sarea.h \ - i915_drm.h \ - intel_aub.h \ - intel_bufmgr.h \ - intel_debug.h \ - mach64_drm.h \ - mga_drm.h \ - nouveau_drm.h \ - r128_drm.h \ - r600_pci_ids.h \ - radeon_bo.h \ - radeon_bo_gem.h \ - radeon_bo_int.h \ - radeon_cs.h \ - radeon_cs_gem.h \ - radeon_cs_int.h \ - radeon_drm.h \ - radeon_surface.h \ - savage_drm.h \ - sis_drm.h \ - via_drm.h \ - qxl_drm.h - -INCSDIR=${X11INCDIR}/libdrm - -.include -.include diff --git a/external/mit/xorg/lib/libdrm/kms/Makefile b/external/mit/xorg/lib/libdrm/kms/Makefile deleted file mode 100644 index fe103adad..000000000 --- a/external/mit/xorg/lib/libdrm/kms/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/05/22 23:19:24 mrg Exp $ - -# install include/libkms files - -.include - -.PATH: ${X11SRCDIR.drm}/libkms - -INCS= libkms.h - -INCSDIR=${X11INCDIR}/libkms - -.include -.include diff --git a/external/mit/xorg/lib/libdrm/shlib_version b/external/mit/xorg/lib/libdrm/shlib_version deleted file mode 100644 index be5e65f95..000000000 --- a/external/mit/xorg/lib/libdrm/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.5 2015/07/20 02:51:33 mrg Exp $ -# -major=3 -minor=3 diff --git a/external/mit/xorg/lib/libdrm_intel/Makefile b/external/mit/xorg/lib/libdrm_intel/Makefile deleted file mode 100644 index 622c1a027..000000000 --- a/external/mit/xorg/lib/libdrm_intel/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# $NetBSD: Makefile,v 1.9 2014/06/03 13:51:52 riastradh Exp $ - -.include - -LIB= drm_intel -.PATH: ${X11SRCDIR.drm}/intel - -SRCS= intel_bufmgr.c intel_bufmgr_fake.c intel_bufmgr_gem.c \ - intel_decode.c mm.c - -CFLAGS+= -std=c99 - -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 -I${X11SRCDIR.drm} - -LIBDPLIBS= drm ${.CURDIR}/../libdrm -LIBDPLIBS+= pciaccess ${.CURDIR}/../libpciaccess - -PKGCONFIG= libdrm_intel -PKGDIST= drm - -CWARNFLAGS.clang+= -Wno-pointer-sign - -.include "../libdrm/Makefile.defines" - -.include -.include diff --git a/external/mit/xorg/lib/libdrm_intel/shlib_version b/external/mit/xorg/lib/libdrm_intel/shlib_version deleted file mode 100644 index 4487556fa..000000000 --- a/external/mit/xorg/lib/libdrm_intel/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2015/07/20 02:51:33 mrg Exp $ -# -major=0 -minor=1 diff --git a/external/mit/xorg/lib/libdrm_radeon/Makefile b/external/mit/xorg/lib/libdrm_radeon/Makefile deleted file mode 100644 index d2cca17d8..000000000 --- a/external/mit/xorg/lib/libdrm_radeon/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2014/07/13 16:35:49 joerg Exp $ - -.include - -LIB= drm_radeon -.PATH: ${X11SRCDIR.drm} -.PATH: ${X11SRCDIR.drm}/radeon - -SRCS= radeon_bo.c \ - radeon_bo_gem.c \ - radeon_cs.c \ - radeon_cs_gem.c \ - radeon_cs_space.c \ - radeon_surface.c \ - bof.c - -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 -I${X11SRCDIR.drm} - -CWARNFLAGS.clang+= -Wno-pointer-sign -Wno-parentheses-equality - -LIBDPLIBS= drm ${.CURDIR}/../libdrm - -PKGCONFIG= libdrm_radeon -PKGDIST= drm - -.include "../libdrm/Makefile.defines" - -.include -.include diff --git a/external/mit/xorg/lib/libdrm_radeon/shlib_version b/external/mit/xorg/lib/libdrm_radeon/shlib_version deleted file mode 100644 index 0f91ca043..000000000 --- a/external/mit/xorg/lib/libdrm_radeon/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.1 2010/05/22 22:48:19 mrg Exp $ -# -major=0 -minor=0 diff --git a/external/mit/xorg/lib/libfontenc/Makefile b/external/mit/xorg/lib/libfontenc/Makefile deleted file mode 100644 index 5f92282e5..000000000 --- a/external/mit/xorg/lib/libfontenc/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:31 cube Exp $ - -.include - -LIB= fontenc -.PATH: ${X11SRCDIR.${LIB}}/src - -SRCS= encparse.c fontenc.c - -INCS= fontenc.h -INCSDIR=${X11INCDIR}/X11/fonts -.PATH: ${X11SRCDIR.${LIB}}/include/X11/fonts - -CPPFLAGS+= -DFONTENC_NO_LIBFONT -CPPFLAGS+= -DFONT_ENCODINGS_DIRECTORY=\"${X11FONTDIR}/encodings/encodings.dir\" -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/fonts - -LDADD+= -lz -DPADD+= ${LIBZ} - -PKGCONFIG= fontenc - -.include -.include diff --git a/external/mit/xorg/lib/libfontenc/shlib_version b/external/mit/xorg/lib/libfontenc/shlib_version deleted file mode 100644 index e06fc0e9f..000000000 --- a/external/mit/xorg/lib/libfontenc/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:13 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libgbm/Makefile b/external/mit/xorg/lib/libgbm/Makefile deleted file mode 100644 index 3eec3c759..000000000 --- a/external/mit/xorg/lib/libgbm/Makefile +++ /dev/null @@ -1,51 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/02/23 00:09:30 jmcneill Exp $ - -.include - -LIB= gbm - -.PATH: ${X11SRCDIR.MesaLib}/src/gbm/main -SRCS.main= \ - backend.c \ - gbm.c - -.PATH: ${X11SRCDIR.MesaLib}/src/gbm/backends/dri -SRCS.dri= \ - gbm_dri.c - -SRCS= ${SRCS.main} ${SRCS.dri} - -CPPFLAGS+= -D_OS_UNIX=1 -CPPFLAGS+= -DHAVE_PTHREAD=1 -CPPFLAGS+= -DDEFAULT_DRIVER_DIR=\"${X11USRLIBDIR}/modules/dri\" -CPPFLAGS+= -DMODULEDIR=\"${X11USRLIBDIR}/gbm\" -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/include -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/loader -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/gbm/main -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/mapi -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm -CFLAGS+= -fno-strict-aliasing -fexceptions -.if defined(__MINIX) -CWARNFLAGS.clang+= -Wno-\#warnings -.endif # defined(__MINIX) - -COPTS.gbm_dri.c+= -Wno-error - -.include "../libloader.mk" - -.PATH: ${X11SRCDIR.MesaLib}/src/gbm/main -INCS= gbm.h -INCSDIR= ${X11INCDIR} - -LIBDPLIBS= glapi ${.CURDIR}/../libglapi -LIBDPLIBS= drm ${.CURDIR}/../libdrm - -PKGCONFIG= gbm -PKGDIST.gbm= ${X11SRCDIR.MesaLib}/src/gbm/main -.include "${.CURDIR}/../libGL/mesa-ver.mk" -PKGCONFIG_VERSION.gbm= ${MESA_VER} - -.include "../libdrm/Makefile.defines" - -.include -.include diff --git a/external/mit/xorg/lib/libgbm/shlib_version b/external/mit/xorg/lib/libgbm/shlib_version deleted file mode 100644 index 947c9db16..000000000 --- a/external/mit/xorg/lib/libgbm/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.1 2015/02/23 00:09:30 jmcneill Exp $ -# -major=1 -minor=0 diff --git a/external/mit/xorg/lib/libglapi/Makefile b/external/mit/xorg/lib/libglapi/Makefile deleted file mode 100644 index 96c891d36..000000000 --- a/external/mit/xorg/lib/libglapi/Makefile +++ /dev/null @@ -1,107 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/12/18 06:24:30 mrg Exp $ - -.include - -LIB= glapi -LIBISCXX= yes - -SHLIB_MAJOR= 0 -SHLIB_MINOR= 0 - -# util -.PATH: ${X11SRCDIR.MesaLib}/src/util -SRCS.util= \ - hash_table.c \ - ralloc.c -.PATH: ${X11SRCDIR.MesaLib}/../src/util -SRCS.util+= \ - format_srgb.c - -# mapi -.PATH: ${X11SRCDIR.MesaLib}/src/mapi -SRCS.mapi= \ - entry.c \ - mapi_glapi.c \ - stub.c \ - table.c \ - u_current.c \ - u_execmem.c -CPPFLAGS.entry.c= -DMAPI_MODE_GLAPI -DMAPI_ABI_HEADER=\"shared-glapi_glapi_mapi_tmp.h\" - -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/src/mapi/entry.c shared_entry.c - -# above is shared/libglapi.la - -SRCS+= ${SRCS.util} ${SRCS.mapi} ${SRCS.mapi-glapi} - -CPPFLAGS+= \ - -I${X11SRCDIR.MesaLib}/include \ - -I${X11SRCDIR.MesaLib}/src/mapi \ - -I${X11SRCDIR.MesaLib}/src/mapi/glapi \ - -I${X11SRCDIR.MesaLib}/src/mesa \ - -I${X11SRCDIR.MesaLib}/src/util \ - -I${X11SRCDIR.MesaLib}/../src/mapi \ - -I${X11SRCDIR.MesaLib}/../src/mapi/glapi \ - -I${X11SRCDIR.MesaLib}/../src/mesa - -CPPFLAGS+= \ - -DMAPI_MODE_GLAPI -DMAPI_ABI_HEADER=\"shared-glapi_glapi_mapi_tmp.h\" - -CPPFLAGS+= ${X11FLAGS.THREADLIB} - -.include "${.CURDIR}/../libGL/mesa-ver.mk" - -.if !defined(__MINIX) -CFLAGS+= -fno-strict-aliasing -fvisibility=hidden -pthread -fno-builtin-memcmp -.else -CFLAGS+= -fno-strict-aliasing -fvisibility=hidden -fno-builtin-memcmp -LDADD+= -lmthread -DPADD+= ${LIBMTHREAD} -.endif # !defined(__MINIX) - -CPPFLAGS+= \ - -DPACKAGE_NAME=\"Mesa\" \ - -DPACKAGE_TARNAME=\"mesa\" \ - -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\" \ - -DPACKAGE_VERSION=\"${MESA_VER}\" \ - -DPACKAGE_STRING=\"Mesa\ ${MESA_VER}\" \ - -DVERSION=\"${MESA_VER}\" \ - -DPACKAGE_URL=\"\" \ - -DPACKAGE=\"mesa\" \ - -DSTDC_HEADERS=1 \ - -DHAVE_SYS_TYPES_H=1 \ - -DHAVE_SYS_STAT_H=1 \ - -DHAVE_STDLIB_H=1 \ - -DHAVE_STRING_H=1 \ - -DHAVE_MEMORY_H=1 \ - -DHAVE_STRINGS_H=1 \ - -DHAVE_INTTYPES_H=1 \ - -DHAVE_STDINT_H=1 \ - -DHAVE_UNISTD_H=1 \ - -DHAVE_DLFCN_H=1 \ - -DYYTEXT_POINTER=1 \ - -DHAVE___BUILTIN_BSWAP32=1 \ - -DHAVE___BUILTIN_BSWAP64=1 \ - -DHAVE_DLADDR=1 \ - -DHAVE_CLOCK_GETTIME=1 \ - -DHAVE_PTHREAD=1 \ - -I. \ - -DUSE_EXTERNAL_DXTN_LIB=1 \ - -DHAVE_DLOPEN \ - -DHAVE_POSIX_MEMALIGN \ - -DHAVE_LIBDRM \ - -DGLX_USE_DRM \ - -DGLX_INDIRECT_RENDERING \ - -DGLX_DIRECT_RENDERING \ - -DHAVE_PTHREAD \ - -DHAVE_ALIAS \ - -DMESA_EGL_NO_X11_HEADERS - -.include "../asm.mk" - -MKLINT=no - -#CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-format -Wno-constant-conversion - -.include -.include diff --git a/external/mit/xorg/lib/libglsl.mk b/external/mit/xorg/lib/libglsl.mk deleted file mode 100644 index fef2d6be9..000000000 --- a/external/mit/xorg/lib/libglsl.mk +++ /dev/null @@ -1,111 +0,0 @@ -# $NetBSD: libglsl.mk,v 1.1 2014/12/18 06:24:28 mrg Exp $ - -LIBGLSL_GENERATED_CXX_FILES = \ - glsl_lexer.cpp \ - glsl_parser.cpp - -LIBGLSL_FILES = \ - ast_array_index.cpp \ - ast_expr.cpp \ - ast_function.cpp \ - ast_to_hir.cpp \ - ast_type.cpp \ - builtin_functions.cpp \ - builtin_types.cpp \ - builtin_variables.cpp \ - glsl_parser_extras.cpp \ - glsl_types.cpp \ - glsl_symbol_table.cpp \ - hir_field_selection.cpp \ - ir_basic_block.cpp \ - ir_builder.cpp \ - ir_clone.cpp \ - ir_constant_expression.cpp \ - ir.cpp \ - ir_equals.cpp \ - ir_expression_flattening.cpp \ - ir_function_can_inline.cpp \ - ir_function_detect_recursion.cpp \ - ir_function.cpp \ - ir_hierarchical_visitor.cpp \ - ir_hv_accept.cpp \ - ir_import_prototypes.cpp \ - ir_print_visitor.cpp \ - ir_reader.cpp \ - ir_rvalue_visitor.cpp \ - ir_set_program_inouts.cpp \ - ir_validate.cpp \ - ir_variable_refcount.cpp \ - linker.cpp \ - link_atomics.cpp \ - link_functions.cpp \ - link_interface_blocks.cpp \ - link_uniforms.cpp \ - link_uniform_initializers.cpp \ - link_uniform_block_active_visitor.cpp \ - link_uniform_blocks.cpp \ - link_varyings.cpp \ - loop_analysis.cpp \ - loop_controls.cpp \ - loop_unroll.cpp \ - lower_clip_distance.cpp \ - lower_discard.cpp \ - lower_discard_flow.cpp \ - lower_if_to_cond_assign.cpp \ - lower_instructions.cpp \ - lower_jumps.cpp \ - lower_mat_op_to_vec.cpp \ - lower_noise.cpp \ - lower_offset_array.cpp \ - lower_packed_varyings.cpp \ - lower_named_interface_blocks.cpp \ - lower_packing_builtins.cpp \ - lower_texture_projection.cpp \ - lower_variable_index_to_cond_assign.cpp \ - lower_vec_index_to_cond_assign.cpp \ - lower_vec_index_to_swizzle.cpp \ - lower_vector.cpp \ - lower_vector_insert.cpp \ - lower_vertex_id.cpp \ - lower_output_reads.cpp \ - lower_ubo_reference.cpp \ - opt_algebraic.cpp \ - opt_array_splitting.cpp \ - opt_constant_folding.cpp \ - opt_constant_propagation.cpp \ - opt_constant_variable.cpp \ - opt_copy_propagation.cpp \ - opt_copy_propagation_elements.cpp \ - opt_cse.cpp \ - opt_dead_builtin_varyings.cpp \ - opt_dead_code.cpp \ - opt_dead_code_local.cpp \ - opt_dead_functions.cpp \ - opt_flatten_nested_if_blocks.cpp \ - opt_flip_matrices.cpp \ - opt_function_inlining.cpp \ - opt_if_simplification.cpp \ - opt_noop_swizzle.cpp \ - opt_rebalance_tree.cpp \ - opt_redundant_jumps.cpp \ - opt_structure_splitting.cpp \ - opt_swizzle_swizzle.cpp \ - opt_tree_grafting.cpp \ - opt_vectorize.cpp \ - s_expression.cpp \ - strtod.c - -LIBGLCPP_GENERATED_FILES = \ - glcpp-lex.c \ - glcpp-parse.c - -LIBGLCPP_FILES = \ - pp.c - -.PATH: ${X11SRCDIR.MesaLib}/src/glsl -.PATH: ${X11SRCDIR.MesaLib}/src/glsl/glcpp - -SRCS+= ${LIBGLSL_GENERATED_CXX_FILES} \ - ${LIBGLSL_FILES} \ - ${LIBGLCPP_GENERATED_FILES} \ - ${LIBGLCPP_FILES} diff --git a/external/mit/xorg/lib/libglut/Makefile b/external/mit/xorg/lib/libglut/Makefile deleted file mode 100644 index dd4a70b18..000000000 --- a/external/mit/xorg/lib/libglut/Makefile +++ /dev/null @@ -1,81 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2010/11/22 21:05:29 mrg Exp $ - -.include - -LIB= glut - -.PATH: ${X11SRCDIR.MesaGLUT}/src/glut/glx -SRCS= \ - glut_8x13.c \ - glut_9x15.c \ - glut_bitmap.c \ - glut_bwidth.c \ - glut_cindex.c \ - glut_cmap.c \ - glut_cursor.c \ - glut_dials.c \ - glut_dstr.c \ - glut_event.c \ - glut_ext.c \ - glut_fcb.c \ - glut_fullscrn.c \ - glut_gamemode.c \ - glut_get.c \ - glut_glxext.c \ - glut_hel10.c \ - glut_hel12.c \ - glut_hel18.c \ - glut_init.c \ - glut_input.c \ - glut_joy.c \ - glut_key.c \ - glut_keyctrl.c \ - glut_keyup.c \ - glut_menu.c \ - glut_menu2.c \ - glut_mesa.c \ - glut_modifier.c \ - glut_mroman.c \ - glut_overlay.c \ - glut_ppm.c \ - glut_roman.c \ - glut_shapes.c \ - glut_space.c \ - glut_stroke.c \ - glut_swap.c \ - glut_swidth.c \ - glut_tablet.c \ - glut_teapot.c \ - glut_tr10.c \ - glut_tr24.c \ - glut_util.c \ - glut_vidresize.c \ - glut_warp.c \ - glut_win.c \ - glut_winmisc.c \ - layerutil.c - -CPPFLAGS+= -I${X11SRCDIR.MesaGLUT}/include -I${X11SRCDIR.MesaLib}/include -CFLAGS+= -fno-strict-aliasing -fexceptions - -.PATH: ${X11SRCDIR.MesaGLUT}/include/GL -INCS= glut.h glutf90.h -INCSDIR=${X11INCDIR}/GL - -LIBDPLIBS= Xi ${.CURDIR}/../libXi \ - Xmu ${.CURDIR}/../libXmu \ - Xt ${.CURDIR}/../libXt \ - X11 ${.CURDIR}/../libX11/dynamic \ - GL ${.CURDIR}/../libGL \ - GLU ${.CURDIR}/../libGLU - -LDADD+= -lm -DPADD+= ${LIBM} - -PKGCONFIG= glut -PKGDIST.glut= ${X11SRCDIR.MesaGLUT}/src/glut/glx -.include "${.CURDIR}/../libGL/mesa-ver.mk" -PKGCONFIG_VERSION.glut= ${MESA_VER} - -.include -.include diff --git a/external/mit/xorg/lib/libglut/shlib_version b/external/mit/xorg/lib/libglut/shlib_version deleted file mode 100644 index 041242625..000000000 --- a/external/mit/xorg/lib/libglut/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:13 christos Exp $ -# -major=4 -minor=0 diff --git a/external/mit/xorg/lib/libloader.mk b/external/mit/xorg/lib/libloader.mk deleted file mode 100644 index 3c1cafec0..000000000 --- a/external/mit/xorg/lib/libloader.mk +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: libloader.mk,v 1.1 2014/12/18 06:24:28 mrg Exp $ - -# makefile fragment for mesa src/loader - -# loader stuff. -.PATH: ${X11SRCDIR.MesaLib}/src/loader -.PATH: ${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/common -SRCS.loader += \ - loader.c \ - pci_id_driver_map.c \ - xmlconfig.c - -.for _f in ${SRCS.loader} -CPPFLAGS.${_f}= -I${X11SRCDIR.MesaLib}/src/mesa \ - -I${X11SRCDIR.MesaLib}/src -.endfor - -SRCS+= ${SRCS.loader} diff --git a/external/mit/xorg/lib/libmesa.mk b/external/mit/xorg/lib/libmesa.mk deleted file mode 100644 index 95f4a39bc..000000000 --- a/external/mit/xorg/lib/libmesa.mk +++ /dev/null @@ -1,444 +0,0 @@ -# $NetBSD: libmesa.mk,v 1.1 2014/12/18 06:24:28 mrg Exp $ -# -# Consumer of this Makefile should set MESA_SRC_MODULES. - -INCLUDES.all= mapi mesa mesa/main - -# The source file lists derived from src/mesa/Makefile.sources. -# Please keep the organization in line with those files. - -# Main sources -PATHS.main= mesa/main -INCLUDES.main= glsl -SRCS.main= \ - api_arrayelt.c \ - api_loopback.c \ - api_validate.c \ - accum.c \ - arbprogram.c \ - atifragshader.c \ - attrib.c \ - arrayobj.c \ - blend.c \ - blit.c \ - bufferobj.c \ - buffers.c \ - clear.c \ - clip.c \ - colortab.c \ - compute.c \ - condrender.c \ - context.c \ - convolve.c \ - copyimage.c \ - cpuinfo.c \ - debug.c \ - depth.c \ - dlist.c \ - drawpix.c \ - drawtex.c \ - enable.c \ - errors.c \ - MESAeval.c \ - execmem.c \ - extensions.c \ - fbobject.c \ - feedback.c \ - ffvertex_prog.c \ - ff_fragment_shader.cpp \ - fog.c \ - formatquery.c \ - formats.c \ - format_pack.c \ - format_unpack.c \ - format_utils.c \ - framebuffer.c \ - get.c \ - genmipmap.c \ - getstring.c \ - glformats.c \ - hash.c \ - hint.c \ - histogram.c \ - image.c \ - imports.c \ - light.c \ - lines.c \ - matrix.c \ - mipmap.c \ - mm.c \ - multisample.c \ - objectlabel.c \ - pack.c \ - pbo.c \ - performance_monitor.c \ - pipelineobj.c \ - MESApixel.c \ - MESApixelstore.c \ - pixeltransfer.c \ - points.c \ - polygon.c \ - queryobj.c \ - querymatrix.c \ - rastpos.c \ - readpix.c \ - remap.c \ - renderbuffer.c \ - samplerobj.c \ - scissor.c \ - set.c \ - shaderapi.c \ - shaderimage.c \ - shaderobj.c \ - shader_query.cpp \ - shared.c \ - state.c \ - stencil.c \ - syncobj.c \ - texcompress.c \ - texcompress_bptc.c \ - texcompress_cpal.c \ - texcompress_rgtc.c \ - texcompress_s3tc.c \ - texcompress_fxt1.c \ - texcompress_etc.c \ - texenv.c \ - texformat.c \ - texgen.c \ - texgetimage.c \ - teximage.c \ - texobj.c \ - texparam.c \ - texstate.c \ - texstorage.c \ - texstore.c \ - textureview.c \ - texturebarrier.c \ - transformfeedback.c \ - uniforms.c \ - uniform_query.cpp \ - varray.c \ - vdpau.c \ - version.c \ - viewport.c \ - vtxfmt.c \ - es1_conversion.c \ - -# Build files -.PATH: ${X11SRCDIR.MesaLib}/../src/mesa/main -SRCS.main+= \ - enums.c \ - api_exec.c \ - -# XXX avoid source name clashes with glx -.PATH: ${X11SRCDIR.MesaLib}/src/mesa/main -BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/src/mesa/main/pixel.c MESApixel.c \ - ${X11SRCDIR.MesaLib}/src/mesa/main/pixelstore.c MESApixelstore.c \ - ${X11SRCDIR.MesaLib}/src/mesa/main/eval.c MESAeval.c - -# Math sources -PATHS.math= mesa/math -SRCS.math= \ - m_debug_clip.c \ - m_debug_norm.c \ - m_debug_xform.c \ - m_eval.c \ - m_matrix.c \ - m_translate.c \ - m_vector.c - -PATHS.math_xform= mesa/math -SRCS.math_xform= \ - m_xform.c - - -# VBO sources -PATHS.vbo= mesa/vbo -INCLUDES.vbo= gallium/auxiliary -SRCS.vbo= \ - vbo_context.c \ - vbo_exec.c \ - vbo_exec_api.c \ - vbo_exec_array.c \ - vbo_exec_draw.c \ - vbo_exec_eval.c \ - vbo_noop.c \ - vbo_primitive_restart.c \ - vbo_rebase.c \ - vbo_split.c \ - vbo_split_copy.c \ - vbo_split_inplace.c \ - vbo_save.c \ - vbo_save_api.c \ - vbo_save_draw.c \ - vbo_save_loopback.c - -# TNL sources -PATHS.tnl= mesa/tnl -SRCS.tnl= \ - t_context.c \ - t_pipeline.c \ - t_draw.c \ - t_rasterpos.c \ - t_vb_program.c \ - t_vb_render.c \ - t_vb_texgen.c \ - t_vb_texmat.c \ - t_vb_vertex.c \ - t_vb_fog.c \ - t_vb_light.c \ - t_vb_normals.c \ - t_vb_points.c \ - t_vp_build.c \ - t_vertex.c \ - t_vertex_sse.c \ - t_vertex_generic.c - - -# Software raster sources -PATHS.swrast= mesa/swrast -SRCS.swrast= \ - s_aaline.c \ - s_aatriangle.c \ - s_alpha.c \ - s_atifragshader.c \ - s_bitmap.c \ - s_blend.c \ - s_blit.c \ - s_clear.c \ - s_copypix.c \ - s_context.c \ - s_depth.c \ - s_drawpix.c \ - s_feedback.c \ - s_fog.c \ - s_fragprog.c \ - s_lines.c \ - s_logic.c \ - s_masking.c \ - s_points.c \ - s_renderbuffer.c \ - s_span.c \ - s_stencil.c \ - s_texcombine.c \ - s_texfetch.c \ - s_texfilter.c \ - s_texrender.c \ - s_texture.c \ - s_triangle.c \ - s_zoom.c - - -# swrast_setup -PATHS.ss= mesa/swrast_setup -SRCS.ss= \ - ss_context.c \ - ss_triangle.c - - -# Common driver sources -PATHS.common= mesa/drivers/common -SRCS.common= \ - driverfuncs.c \ - meta_blit.c \ - meta_copy_image.c \ - meta_generate_mipmap.c \ - meta.c - - -# ASM C driver sources -PATHS.asm_c= mesa/x86 mesa/x86/rtasm mesa/sparc mesa/x86-64 -SRCS.asm_c= \ - common_x86.c \ - x86_xform.c \ - 3dnow.c \ - sse.c \ - x86sse.c \ - sparc.c \ - x86-64.c - - -# ASM assembler driver sources -PATHS.asm_s= mesa/x86 mesa/x86/rtasm mesa/sparc mesa/x86-64 -.if ${MACHINE} == "amd64" -SRCS.asm_s= \ - xform4.S -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/../src/arch/x86_64 -.elif ${MACHINE} == "sparc" || ${MACHINE} == "sparc64" -SRCS.asm_s= \ - sparc_clip.S \ - norm.S \ - xform.S -.elif ${MACHINE} == "i386" -SRCS.asm_s= \ - common_x86_asm.S \ - x86_xform2.S \ - x86_xform3.S \ - x86_xform4.S \ - x86_cliptest.S \ - mmx_blend.S \ - 3dnow_xform1.S \ - 3dnow_xform2.S \ - 3dnow_xform3.S \ - 3dnow_xform4.S \ - 3dnow_normal.S \ - sse_xform1.S \ - sse_xform2.S \ - sse_xform3.S \ - sse_xform4.S \ - sse_normal.S \ - read_rgba_span_x86.S -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/../src/arch/i386 -.endif - - -# State tracker sources -PATHS.state_tracker= mesa/state_tracker -INCLUDES.state_tracker= glsl -SRCS.state_tracker= \ - st_atom.c \ - st_atom_array.c \ - st_atom_blend.c \ - st_atom_clip.c \ - st_atom_constbuf.c \ - st_atom_depth.c \ - st_atom_framebuffer.c \ - st_atom_msaa.c \ - st_atom_pixeltransfer.c \ - st_atom_sampler.c \ - st_atom_scissor.c \ - st_atom_shader.c \ - st_atom_rasterizer.c \ - st_atom_stipple.c \ - st_atom_texture.c \ - st_atom_viewport.c \ - st_cb_bitmap.c \ - st_cb_blit.c \ - st_cb_bufferobjects.c \ - st_cb_clear.c \ - st_cb_condrender.c \ - st_cb_flush.c \ - st_cb_drawpixels.c \ - st_cb_drawtex.c \ - st_cb_eglimage.c \ - st_cb_fbo.c \ - st_cb_feedback.c \ - st_cb_msaa.c \ - st_cb_program.c \ - st_cb_queryobj.c \ - st_cb_rasterpos.c \ - st_cb_readpixels.c \ - st_cb_syncobj.c \ - st_cb_strings.c \ - st_cb_texture.c \ - st_cb_texturebarrier.c \ - st_cb_viewport.c \ - st_cb_xformfb.c \ - st_context.c \ - st_debug.c \ - st_draw.c \ - st_draw_feedback.c \ - st_extensions.c \ - st_format.c \ - st_gen_mipmap.c \ - st_glsl_to_tgsi.cpp \ - st_manager.c \ - st_mesa_to_tgsi.c \ - st_program.c \ - st_texture.c \ - st_vdpau.c - - -# Program sources -PATHS.program= mesa/program -INCLUDES.program= glsl -SRCS.program= \ - arbprogparse.c \ - prog_hash_table.c \ - ir_to_mesa.cpp \ - program.c \ - program_parse_extra.c \ - prog_cache.c \ - prog_execute.c \ - prog_instruction.c \ - prog_noise.c \ - prog_optimize.c \ - prog_opt_constant_fold.c \ - prog_parameter.c \ - prog_parameter_layout.c \ - prog_print.c \ - prog_statevars.c \ - programopt.c \ - register_allocate.c \ - sampler.cpp \ - string_to_uint_map.cpp \ - symbol_table.c \ - program_lexer.l - -# Generated -.PATH: ${X11SRCDIR.MesaLib}/../src/mesa/program -SRCS.program+= \ - program_parse.tab.c - - -# Run throught all the modules and setup the SRCS and CPPFLAGS etc. -.for _mod_ in ${MESA_SRC_MODULES} - -SRCS+= ${SRCS.${_mod_}} - -. for _path_ in ${PATHS.${_mod_}} -.PATH: ${X11SRCDIR.MesaLib}/src/${_path_} -. endfor - -. for _path_ in ${INCLUDES.${_mod_}} -. for _s in ${SRCS.${_mod_}} -CPPFLAGS.${_s}+= -I${X11SRCDIR.MesaLib}/src/${_path_} -. endfor -. endfor - -.endfor - -.for _path_ in ${INCLUDES.all} -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/${_path_} -.endfor - -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/include -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/mesa -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/mesa/main -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/mapi -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/gallium/include -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/../src/mapi/glapi -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/../src/mesa -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/../src/mesa/main -CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/common - -CPPFLAGS+= \ - -DPACKAGE_NAME=\"Mesa\" \ - -DPACKAGE_TARNAME=\"mesa\" \ - -DPACKAGE_VERSION=\"10.3.5\" \ - -DPACKAGE_STRING=\"Mesa\ 10.3.5\" \ - -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=Mesa\" \ - -DPACKAGE_URL=\"\" \ - -DPACKAGE=\"mesa\" \ - -DVERSION=\"10.3.5\" - -#__MINIX: No Pthreads: -DHAVE_PTHREAD=1 -CPPFLAGS+= \ - -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 \ - -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 \ - -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 \ - -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE___BUILTIN_BSWAP32=1 \ - -DHAVE___BUILTIN_BSWAP64=1 -DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 \ - -DHAVE_POSIX_MEMALIGN -DHAVE_DLOPEN - -.include "../asm.mk" - -CPPFLAGS+= \ - -DHAVE_LIBDRM -DGLX_USE_DRM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DMESA_EGL_NO_X11_HEADERS - -CPPFLAGS+= \ - -DUSE_EXTERNAL_DXTN_LIB=1 \ - -DYYTEXT_POINTER=1 - -CFLAGS+= -fvisibility=hidden -fno-strict-aliasing -fno-builtin-memcmp diff --git a/external/mit/xorg/lib/libpciaccess/Makefile b/external/mit/xorg/lib/libpciaccess/Makefile deleted file mode 100644 index d1074c77c..000000000 --- a/external/mit/xorg/lib/libpciaccess/Makefile +++ /dev/null @@ -1,53 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2015/06/24 22:20:25 matt Exp $ - -.include - -LIB= pciaccess -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include - -XORG_MACHINE_ARCH?=${MACHINE_ARCH} - -SRCS= common_bridge.c \ - common_io.c \ - common_iterator.c \ - common_init.c \ - common_interface.c \ - common_capability.c \ - common_device_name.c \ - common_map.c \ - common_vgaarb_stub.c \ - minix_pci.c - -CPPFLAGS+= ${X11FLAGS} -I${X11SRCDIR.${LIB}}/include -DHAVE_ZLIB \ - -DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H \ - -DPCIIDS_PATH=\"${X11ROOTDIR}/share/pciids\" - -COPTS.common_init.c= -Wno-error - -INCS= pciaccess.h -INCSDIR=${X11INCDIR} - -PKGDIST= ${LIB} - -LDADD+= -lpci -lz -DPADD+= ${LIBPCI} ${LIBZ} - -.if !defined(__MINIX) -.if ${XORG_MACHINE_ARCH} == "i386" || ${XORG_MACHINE_ARCH} == "x86_64" -CPPFLAGS+= -DHAVE_MTRR -.endif - -.if ${XORG_MACHINE_ARCH} == "i386" -LDADD+= -li386 -DPADD+= ${LIBI386} -.endif - -.if ${XORG_MACHINE_ARCH} == "x86_64" -LDADD+= -lx86_64 -DPADD+= ${LIBX86_64} -.endif -.endif # !defined(__MINIX) - -.include -.include diff --git a/external/mit/xorg/lib/libpciaccess/shlib_version b/external/mit/xorg/lib/libpciaccess/shlib_version deleted file mode 100644 index 6c06f3413..000000000 --- a/external/mit/xorg/lib/libpciaccess/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.4 2013/06/01 09:08:01 mrg Exp $ -# -major=0 -minor=3 diff --git a/external/mit/xorg/lib/libpthread-stubs/Makefile b/external/mit/xorg/lib/libpthread-stubs/Makefile deleted file mode 100644 index 9e0953dbe..000000000 --- a/external/mit/xorg/lib/libpthread-stubs/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/03/17 07:25:34 mrg Exp $ - -.include - -LIB= pthread-stubs -.PATH: ${X11SRCDIR.${LIB}} - -SRCS= stubs.c - -CPPFLAGS+= ${X11FLAGS.THREADLIB} -I${X11SRCDIR.${LIB}}/../include - -PKGDIST= ${LIB} - -.include -.include diff --git a/external/mit/xorg/lib/libxcb/Makefile b/external/mit/xorg/lib/libxcb/Makefile deleted file mode 100644 index 0c97b69e8..000000000 --- a/external/mit/xorg/lib/libxcb/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2014/03/17 07:25:34 mrg Exp $ - -SUBDIR= libxcb .WAIT - -SUBDIR+= \ - composite \ - damage \ - dpms \ - dri2 \ - dri3 \ - glx \ - present \ - randr \ - record \ - render \ - res \ - screensaver \ - shape \ - shm \ - sync \ - xevie \ - xf86dri \ - xfixes \ - xinerama \ - xkb \ - xtest \ - xv \ - xvmc \ - -.include diff --git a/external/mit/xorg/lib/libxcb/bigreq/Makefile b/external/mit/xorg/lib/libxcb/bigreq/Makefile deleted file mode 100644 index 21e6947fe..000000000 --- a/external/mit/xorg/lib/libxcb/bigreq/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:27 mrg Exp $ - -XCBEXT= bigreq - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/composite/Makefile b/external/mit/xorg/lib/libxcb/composite/Makefile deleted file mode 100644 index 874072ece..000000000 --- a/external/mit/xorg/lib/libxcb/composite/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:27 mrg Exp $ - -XCBEXT= composite - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/damage/Makefile b/external/mit/xorg/lib/libxcb/damage/Makefile deleted file mode 100644 index fd7a3d120..000000000 --- a/external/mit/xorg/lib/libxcb/damage/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:27 mrg Exp $ - -XCBEXT= damage - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/dpms/Makefile b/external/mit/xorg/lib/libxcb/dpms/Makefile deleted file mode 100644 index dd0636b6c..000000000 --- a/external/mit/xorg/lib/libxcb/dpms/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:28 mrg Exp $ - -XCBEXT= dpms - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/dri2/Makefile b/external/mit/xorg/lib/libxcb/dri2/Makefile deleted file mode 100644 index 0f2a5f27b..000000000 --- a/external/mit/xorg/lib/libxcb/dri2/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:28 mrg Exp $ - -XCBEXT= dri2 - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/dri3/Makefile b/external/mit/xorg/lib/libxcb/dri3/Makefile deleted file mode 100644 index 3455b0182..000000000 --- a/external/mit/xorg/lib/libxcb/dri3/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/03/17 07:25:34 mrg Exp $ - -XCBEXT= dri3 - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/files/Makefile b/external/mit/xorg/lib/libxcb/files/Makefile deleted file mode 100644 index b5d6e20b8..000000000 --- a/external/mit/xorg/lib/libxcb/files/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2014/03/17 07:25:34 mrg Exp $ - -# This makefile is used to generate the libxcb xml/python generated files. -# For now it is broken, and these files were copied from a normal libxcb -# build. - -.include -.include "Makefile.xmlsrcs" - -PYTHON?= /usr/pkg/bin/python2.7 -PYTHONLIB?= /usr/pkg/lib/python2.7 -C_CLIENT?= ${X11SRCDIR.xcb}/src/c_client.py - -.SUFFIXES: .c .xml - -# this doesn't work; needs to run in the xcb tree for some reason? -.xml.c: - ${PYTHON} ${C_CLIENT} -p ${PYTHONLIB}/site-packages ${.IMPSRC} - -generate_from_xml: ${XMLSRCS} - -all: generate_from_xml - -.include - -.PATH: ${X11SRCDIR.xcb-proto}/src diff --git a/external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs b/external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs deleted file mode 100644 index cc90a49d1..000000000 --- a/external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs +++ /dev/null @@ -1,34 +0,0 @@ -# $NetBSD: Makefile.xmlsrcs,v 1.4 2015/07/23 01:06:32 mrg Exp $ - -# list of the libxcb xml-generated .c files. - -XMLSRCS= \ - bigreq.c \ - composite.c \ - damage.c \ - dpms.c \ - dri2.c \ - dri3.c \ - glx.c \ - present.c \ - randr.c \ - record.c \ - render.c \ - res.c \ - screensaver.c \ - shape.c \ - shm.c \ - sync.c \ - xc_misc.c \ - xevie.c \ - xf86dri.c \ - xfixes.c \ - xinerama.c \ - xinput.c \ - xkb.c \ - xprint.c \ - xproto.c \ - xselinux.c \ - xtest.c \ - xv.c \ - xvmc.c diff --git a/external/mit/xorg/lib/libxcb/files/bigreq.c b/external/mit/xorg/lib/libxcb/files/bigreq.c deleted file mode 100644 index 9926f6146..000000000 --- a/external/mit/xorg/lib/libxcb/files/bigreq.c +++ /dev/null @@ -1,75 +0,0 @@ -/* - * This file generated automatically from bigreq.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "bigreq.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) - -xcb_extension_t xcb_big_requests_id = { "BIG-REQUESTS", 0 }; - -xcb_big_requests_enable_cookie_t -xcb_big_requests_enable (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_big_requests_id, - /* opcode */ XCB_BIG_REQUESTS_ENABLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_big_requests_enable_cookie_t xcb_ret; - xcb_big_requests_enable_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_big_requests_enable_cookie_t -xcb_big_requests_enable_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_big_requests_id, - /* opcode */ XCB_BIG_REQUESTS_ENABLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_big_requests_enable_cookie_t xcb_ret; - xcb_big_requests_enable_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_big_requests_enable_reply_t * -xcb_big_requests_enable_reply (xcb_connection_t *c /**< */, - xcb_big_requests_enable_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_big_requests_enable_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/bigreq.h b/external/mit/xorg/lib/libxcb/files/bigreq.h deleted file mode 100644 index 88401e0d5..000000000 --- a/external/mit/xorg/lib/libxcb/files/bigreq.h +++ /dev/null @@ -1,109 +0,0 @@ -/* - * This file generated automatically from bigreq.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_BigRequests_API XCB BigRequests API - * @brief BigRequests XCB Protocol Implementation. - * @{ - **/ - -#ifndef __BIGREQ_H -#define __BIGREQ_H - -#include "xcb.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_BIGREQUESTS_MAJOR_VERSION 0 -#define XCB_BIGREQUESTS_MINOR_VERSION 0 - -extern xcb_extension_t xcb_big_requests_id; - -/** - * @brief xcb_big_requests_enable_cookie_t - **/ -typedef struct xcb_big_requests_enable_cookie_t { - unsigned int sequence; /**< */ -} xcb_big_requests_enable_cookie_t; - -/** Opcode for xcb_big_requests_enable. */ -#define XCB_BIG_REQUESTS_ENABLE 0 - -/** - * @brief xcb_big_requests_enable_request_t - **/ -typedef struct xcb_big_requests_enable_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_big_requests_enable_request_t; - -/** - * @brief xcb_big_requests_enable_reply_t - **/ -typedef struct xcb_big_requests_enable_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t maximum_request_length; /**< */ -} xcb_big_requests_enable_reply_t; - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_big_requests_enable_cookie_t -xcb_big_requests_enable (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_big_requests_enable_cookie_t -xcb_big_requests_enable_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_big_requests_enable_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_big_requests_enable_reply_t * -xcb_big_requests_enable_reply (xcb_connection_t *c /**< */, - xcb_big_requests_enable_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/composite.c b/external/mit/xorg/lib/libxcb/files/composite.c deleted file mode 100644 index b79e9ac46..000000000 --- a/external/mit/xorg/lib/libxcb/files/composite.c +++ /dev/null @@ -1,541 +0,0 @@ -/* - * This file generated automatically from composite.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "composite.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" -#include "xfixes.h" - -xcb_extension_t xcb_composite_id = { "Composite", 0 }; - -xcb_composite_query_version_cookie_t -xcb_composite_query_version (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_composite_query_version_cookie_t xcb_ret; - xcb_composite_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_composite_query_version_cookie_t -xcb_composite_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_composite_query_version_cookie_t xcb_ret; - xcb_composite_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_composite_query_version_reply_t * -xcb_composite_query_version_reply (xcb_connection_t *c /**< */, - xcb_composite_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_composite_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_composite_redirect_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_REDIRECT_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_redirect_window_request_t xcb_out; - - xcb_out.window = window; - xcb_out.update = update; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_redirect_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_REDIRECT_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_redirect_window_request_t xcb_out; - - xcb_out.window = window; - xcb_out.update = update; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_redirect_subwindows_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_REDIRECT_SUBWINDOWS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_redirect_subwindows_request_t xcb_out; - - xcb_out.window = window; - xcb_out.update = update; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_redirect_subwindows (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_REDIRECT_SUBWINDOWS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_redirect_subwindows_request_t xcb_out; - - xcb_out.window = window; - xcb_out.update = update; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_unredirect_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_UNREDIRECT_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_unredirect_window_request_t xcb_out; - - xcb_out.window = window; - xcb_out.update = update; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_unredirect_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_UNREDIRECT_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_unredirect_window_request_t xcb_out; - - xcb_out.window = window; - xcb_out.update = update; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_unredirect_subwindows_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_UNREDIRECT_SUBWINDOWS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_unredirect_subwindows_request_t xcb_out; - - xcb_out.window = window; - xcb_out.update = update; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_unredirect_subwindows (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_UNREDIRECT_SUBWINDOWS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_unredirect_subwindows_request_t xcb_out; - - xcb_out.window = window; - xcb_out.update = update; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_create_region_from_border_clip_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_CREATE_REGION_FROM_BORDER_CLIP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_create_region_from_border_clip_request_t xcb_out; - - xcb_out.region = region; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_create_region_from_border_clip (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_CREATE_REGION_FROM_BORDER_CLIP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_create_region_from_border_clip_request_t xcb_out; - - xcb_out.region = region; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_name_window_pixmap_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_pixmap_t pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_NAME_WINDOW_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_name_window_pixmap_request_t xcb_out; - - xcb_out.window = window; - xcb_out.pixmap = pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_name_window_pixmap (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_pixmap_t pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_NAME_WINDOW_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_name_window_pixmap_request_t xcb_out; - - xcb_out.window = window; - xcb_out.pixmap = pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_composite_get_overlay_window_cookie_t -xcb_composite_get_overlay_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_GET_OVERLAY_WINDOW, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_composite_get_overlay_window_cookie_t xcb_ret; - xcb_composite_get_overlay_window_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_composite_get_overlay_window_cookie_t -xcb_composite_get_overlay_window_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_GET_OVERLAY_WINDOW, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_composite_get_overlay_window_cookie_t xcb_ret; - xcb_composite_get_overlay_window_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_composite_get_overlay_window_reply_t * -xcb_composite_get_overlay_window_reply (xcb_connection_t *c /**< */, - xcb_composite_get_overlay_window_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_composite_get_overlay_window_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_composite_release_overlay_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_RELEASE_OVERLAY_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_release_overlay_window_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_composite_release_overlay_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_composite_id, - /* opcode */ XCB_COMPOSITE_RELEASE_OVERLAY_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_composite_release_overlay_window_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - diff --git a/external/mit/xorg/lib/libxcb/files/composite.h b/external/mit/xorg/lib/libxcb/files/composite.h deleted file mode 100644 index 112d53348..000000000 --- a/external/mit/xorg/lib/libxcb/files/composite.h +++ /dev/null @@ -1,504 +0,0 @@ -/* - * This file generated automatically from composite.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Composite_API XCB Composite API - * @brief Composite XCB Protocol Implementation. - * @{ - **/ - -#ifndef __COMPOSITE_H -#define __COMPOSITE_H - -#include "xcb.h" -#include "xproto.h" -#include "xfixes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_COMPOSITE_MAJOR_VERSION 0 -#define XCB_COMPOSITE_MINOR_VERSION 4 - -extern xcb_extension_t xcb_composite_id; - -typedef enum xcb_composite_redirect_t { - XCB_COMPOSITE_REDIRECT_AUTOMATIC = 0, - XCB_COMPOSITE_REDIRECT_MANUAL = 1 -} xcb_composite_redirect_t; - -/** - * @brief xcb_composite_query_version_cookie_t - **/ -typedef struct xcb_composite_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_composite_query_version_cookie_t; - -/** Opcode for xcb_composite_query_version. */ -#define XCB_COMPOSITE_QUERY_VERSION 0 - -/** - * @brief xcb_composite_query_version_request_t - **/ -typedef struct xcb_composite_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t client_major_version; /**< */ - uint32_t client_minor_version; /**< */ -} xcb_composite_query_version_request_t; - -/** - * @brief xcb_composite_query_version_reply_t - **/ -typedef struct xcb_composite_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_composite_query_version_reply_t; - -/** Opcode for xcb_composite_redirect_window. */ -#define XCB_COMPOSITE_REDIRECT_WINDOW 1 - -/** - * @brief xcb_composite_redirect_window_request_t - **/ -typedef struct xcb_composite_redirect_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint8_t update; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_composite_redirect_window_request_t; - -/** Opcode for xcb_composite_redirect_subwindows. */ -#define XCB_COMPOSITE_REDIRECT_SUBWINDOWS 2 - -/** - * @brief xcb_composite_redirect_subwindows_request_t - **/ -typedef struct xcb_composite_redirect_subwindows_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint8_t update; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_composite_redirect_subwindows_request_t; - -/** Opcode for xcb_composite_unredirect_window. */ -#define XCB_COMPOSITE_UNREDIRECT_WINDOW 3 - -/** - * @brief xcb_composite_unredirect_window_request_t - **/ -typedef struct xcb_composite_unredirect_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint8_t update; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_composite_unredirect_window_request_t; - -/** Opcode for xcb_composite_unredirect_subwindows. */ -#define XCB_COMPOSITE_UNREDIRECT_SUBWINDOWS 4 - -/** - * @brief xcb_composite_unredirect_subwindows_request_t - **/ -typedef struct xcb_composite_unredirect_subwindows_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint8_t update; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_composite_unredirect_subwindows_request_t; - -/** Opcode for xcb_composite_create_region_from_border_clip. */ -#define XCB_COMPOSITE_CREATE_REGION_FROM_BORDER_CLIP 5 - -/** - * @brief xcb_composite_create_region_from_border_clip_request_t - **/ -typedef struct xcb_composite_create_region_from_border_clip_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t region; /**< */ - xcb_window_t window; /**< */ -} xcb_composite_create_region_from_border_clip_request_t; - -/** Opcode for xcb_composite_name_window_pixmap. */ -#define XCB_COMPOSITE_NAME_WINDOW_PIXMAP 6 - -/** - * @brief xcb_composite_name_window_pixmap_request_t - **/ -typedef struct xcb_composite_name_window_pixmap_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_pixmap_t pixmap; /**< */ -} xcb_composite_name_window_pixmap_request_t; - -/** - * @brief xcb_composite_get_overlay_window_cookie_t - **/ -typedef struct xcb_composite_get_overlay_window_cookie_t { - unsigned int sequence; /**< */ -} xcb_composite_get_overlay_window_cookie_t; - -/** Opcode for xcb_composite_get_overlay_window. */ -#define XCB_COMPOSITE_GET_OVERLAY_WINDOW 7 - -/** - * @brief xcb_composite_get_overlay_window_request_t - **/ -typedef struct xcb_composite_get_overlay_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_composite_get_overlay_window_request_t; - -/** - * @brief xcb_composite_get_overlay_window_reply_t - **/ -typedef struct xcb_composite_get_overlay_window_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t overlay_win; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_composite_get_overlay_window_reply_t; - -/** Opcode for xcb_composite_release_overlay_window. */ -#define XCB_COMPOSITE_RELEASE_OVERLAY_WINDOW 8 - -/** - * @brief xcb_composite_release_overlay_window_request_t - **/ -typedef struct xcb_composite_release_overlay_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_composite_release_overlay_window_request_t; - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_composite_query_version_cookie_t -xcb_composite_query_version (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_composite_query_version_cookie_t -xcb_composite_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_composite_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_composite_query_version_reply_t * -xcb_composite_query_version_reply (xcb_connection_t *c /**< */, - xcb_composite_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_composite_redirect_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_composite_redirect_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_composite_redirect_subwindows_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_composite_redirect_subwindows (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_composite_unredirect_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_composite_unredirect_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_composite_unredirect_subwindows_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_composite_unredirect_subwindows (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint8_t update /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_composite_create_region_from_border_clip_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_composite_create_region_from_border_clip (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_composite_name_window_pixmap_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_pixmap_t pixmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_composite_name_window_pixmap (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_pixmap_t pixmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_composite_get_overlay_window_cookie_t -xcb_composite_get_overlay_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_composite_get_overlay_window_cookie_t -xcb_composite_get_overlay_window_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_composite_get_overlay_window_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_composite_get_overlay_window_reply_t * -xcb_composite_get_overlay_window_reply (xcb_connection_t *c /**< */, - xcb_composite_get_overlay_window_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_composite_release_overlay_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_composite_release_overlay_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/config.h b/external/mit/xorg/lib/libxcb/files/config.h deleted file mode 100644 index c411e7222..000000000 --- a/external/mit/xorg/lib/libxcb/files/config.h +++ /dev/null @@ -1,138 +0,0 @@ -/* src/config.h. Generated from config.h.in by configure. */ -/* src/config.h.in. Generated from configure.ac by autoheader. */ - -/* Defined if GCC supports the visibility feature */ -#define GCC_HAS_VISIBILITY /**/ - -/* Has Wraphelp.c needed for XDM AUTH protocols */ -#define HASXDMAUTH 1 - -/* Define if your platform supports abstract sockets */ -/* #undef HAVE_ABSTRACT_SOCKETS */ - -/* Define to 1 if you have the header file. */ -#define HAVE_DLFCN_H 1 - -/* getaddrinfo() function is available */ -#define HAVE_GETADDRINFO 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_INTTYPES_H 1 - -/* Define to 1 if you have the `is_system_labeled' function. */ -/* #undef HAVE_IS_SYSTEM_LABELED */ - -/* launchd support available */ -/* #undef HAVE_LAUNCHD */ - -/* Define to 1 if you have the header file. */ -#define HAVE_MEMORY_H 1 - -#if !defined(__minix) -/* Define if your platform supports sendmsg */ -#define HAVE_SENDMSG 1 -#endif /* !defined(__minix) */ - -/* Have the sockaddr_un.sun_len member. */ -#define HAVE_SOCKADDR_SUN_LEN 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDINT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDLIB_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRINGS_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRING_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_STAT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TYPES_H 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_TSOL_LABEL_H */ - -/* Define to 1 if you have the header file. */ -#define HAVE_UNISTD_H 1 - -/* Define if not provided by */ -/* #undef IOV_MAX */ - -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ -#define LT_OBJDIR ".libs/" - -/* Name of package */ -#define PACKAGE "libxcb" - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "xcb@lists.freedesktop.org" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "libxcb" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "libxcb 1.10" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "libxcb" - -/* Define to the home page for this package. */ -#define PACKAGE_URL "" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "1.10" - -/* Define to 1 if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -#if !defined(__minix) -/* poll() function is available */ -#define USE_POLL 1 -#endif /* !defined(__minix) */ - -/* Enable extensions on AIX 3, Interix. */ -#ifndef _ALL_SOURCE -# define _ALL_SOURCE 1 -#endif -/* Enable GNU extensions on systems that have them. */ -#ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 -#endif -/* Enable threading extensions on Solaris. */ -#ifndef _POSIX_PTHREAD_SEMANTICS -# define _POSIX_PTHREAD_SEMANTICS 1 -#endif -/* Enable extensions on HP NonStop. */ -#ifndef _TANDEM_SOURCE -# define _TANDEM_SOURCE 1 -#endif -/* Enable general extensions on Solaris. */ -#ifndef __EXTENSIONS__ -# define __EXTENSIONS__ 1 -#endif - - -/* Version number of package */ -#define VERSION "1.10" - -/* XCB buffer queue size */ -#define XCB_QUEUE_BUFFER_SIZE 16384 - -/* Define to 1 if on MINIX. */ -/* #undef _MINIX */ - -/* Define to 2 if the system does not provide POSIX.1 features except with - this defined. */ -/* #undef _POSIX_1_SOURCE */ - -/* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ - -/* Defined if needed to expose struct msghdr.msg_control */ -/* #undef _XOPEN_SOURCE */ diff --git a/external/mit/xorg/lib/libxcb/files/damage.c b/external/mit/xorg/lib/libxcb/files/damage.c deleted file mode 100644 index 8c57e6d6f..000000000 --- a/external/mit/xorg/lib/libxcb/files/damage.c +++ /dev/null @@ -1,333 +0,0 @@ -/* - * This file generated automatically from damage.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "damage.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" -#include "xfixes.h" - -xcb_extension_t xcb_damage_id = { "DAMAGE", 0 }; - -void -xcb_damage_damage_next (xcb_damage_damage_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_damage_damage_t); -} - -xcb_generic_iterator_t -xcb_damage_damage_end (xcb_damage_damage_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_damage_query_version_cookie_t -xcb_damage_query_version (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_damage_id, - /* opcode */ XCB_DAMAGE_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_damage_query_version_cookie_t xcb_ret; - xcb_damage_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_damage_query_version_cookie_t -xcb_damage_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_damage_id, - /* opcode */ XCB_DAMAGE_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_damage_query_version_cookie_t xcb_ret; - xcb_damage_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_damage_query_version_reply_t * -xcb_damage_query_version_reply (xcb_connection_t *c /**< */, - xcb_damage_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_damage_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_damage_create_checked (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */, - xcb_drawable_t drawable /**< */, - uint8_t level /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_damage_id, - /* opcode */ XCB_DAMAGE_CREATE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_damage_create_request_t xcb_out; - - xcb_out.damage = damage; - xcb_out.drawable = drawable; - xcb_out.level = level; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_damage_create (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */, - xcb_drawable_t drawable /**< */, - uint8_t level /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_damage_id, - /* opcode */ XCB_DAMAGE_CREATE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_damage_create_request_t xcb_out; - - xcb_out.damage = damage; - xcb_out.drawable = drawable; - xcb_out.level = level; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_damage_destroy_checked (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_damage_id, - /* opcode */ XCB_DAMAGE_DESTROY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_damage_destroy_request_t xcb_out; - - xcb_out.damage = damage; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_damage_destroy (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_damage_id, - /* opcode */ XCB_DAMAGE_DESTROY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_damage_destroy_request_t xcb_out; - - xcb_out.damage = damage; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_damage_subtract_checked (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */, - xcb_xfixes_region_t repair /**< */, - xcb_xfixes_region_t parts /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_damage_id, - /* opcode */ XCB_DAMAGE_SUBTRACT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_damage_subtract_request_t xcb_out; - - xcb_out.damage = damage; - xcb_out.repair = repair; - xcb_out.parts = parts; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_damage_subtract (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */, - xcb_xfixes_region_t repair /**< */, - xcb_xfixes_region_t parts /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_damage_id, - /* opcode */ XCB_DAMAGE_SUBTRACT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_damage_subtract_request_t xcb_out; - - xcb_out.damage = damage; - xcb_out.repair = repair; - xcb_out.parts = parts; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_damage_add_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_xfixes_region_t region /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_damage_id, - /* opcode */ XCB_DAMAGE_ADD, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_damage_add_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_damage_add (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_xfixes_region_t region /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_damage_id, - /* opcode */ XCB_DAMAGE_ADD, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_damage_add_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - diff --git a/external/mit/xorg/lib/libxcb/files/damage.h b/external/mit/xorg/lib/libxcb/files/damage.h deleted file mode 100644 index 1884dd62f..000000000 --- a/external/mit/xorg/lib/libxcb/files/damage.h +++ /dev/null @@ -1,365 +0,0 @@ -/* - * This file generated automatically from damage.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Damage_API XCB Damage API - * @brief Damage XCB Protocol Implementation. - * @{ - **/ - -#ifndef __DAMAGE_H -#define __DAMAGE_H - -#include "xcb.h" -#include "xproto.h" -#include "xfixes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_DAMAGE_MAJOR_VERSION 1 -#define XCB_DAMAGE_MINOR_VERSION 1 - -extern xcb_extension_t xcb_damage_id; - -typedef uint32_t xcb_damage_damage_t; - -/** - * @brief xcb_damage_damage_iterator_t - **/ -typedef struct xcb_damage_damage_iterator_t { - xcb_damage_damage_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_damage_damage_iterator_t; - -typedef enum xcb_damage_report_level_t { - XCB_DAMAGE_REPORT_LEVEL_RAW_RECTANGLES = 0, - XCB_DAMAGE_REPORT_LEVEL_DELTA_RECTANGLES = 1, - XCB_DAMAGE_REPORT_LEVEL_BOUNDING_BOX = 2, - XCB_DAMAGE_REPORT_LEVEL_NON_EMPTY = 3 -} xcb_damage_report_level_t; - -/** Opcode for xcb_damage_bad_damage. */ -#define XCB_DAMAGE_BAD_DAMAGE 0 - -/** - * @brief xcb_damage_bad_damage_error_t - **/ -typedef struct xcb_damage_bad_damage_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_damage_bad_damage_error_t; - -/** - * @brief xcb_damage_query_version_cookie_t - **/ -typedef struct xcb_damage_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_damage_query_version_cookie_t; - -/** Opcode for xcb_damage_query_version. */ -#define XCB_DAMAGE_QUERY_VERSION 0 - -/** - * @brief xcb_damage_query_version_request_t - **/ -typedef struct xcb_damage_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t client_major_version; /**< */ - uint32_t client_minor_version; /**< */ -} xcb_damage_query_version_request_t; - -/** - * @brief xcb_damage_query_version_reply_t - **/ -typedef struct xcb_damage_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_damage_query_version_reply_t; - -/** Opcode for xcb_damage_create. */ -#define XCB_DAMAGE_CREATE 1 - -/** - * @brief xcb_damage_create_request_t - **/ -typedef struct xcb_damage_create_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_damage_damage_t damage; /**< */ - xcb_drawable_t drawable; /**< */ - uint8_t level; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_damage_create_request_t; - -/** Opcode for xcb_damage_destroy. */ -#define XCB_DAMAGE_DESTROY 2 - -/** - * @brief xcb_damage_destroy_request_t - **/ -typedef struct xcb_damage_destroy_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_damage_damage_t damage; /**< */ -} xcb_damage_destroy_request_t; - -/** Opcode for xcb_damage_subtract. */ -#define XCB_DAMAGE_SUBTRACT 3 - -/** - * @brief xcb_damage_subtract_request_t - **/ -typedef struct xcb_damage_subtract_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_damage_damage_t damage; /**< */ - xcb_xfixes_region_t repair; /**< */ - xcb_xfixes_region_t parts; /**< */ -} xcb_damage_subtract_request_t; - -/** Opcode for xcb_damage_add. */ -#define XCB_DAMAGE_ADD 4 - -/** - * @brief xcb_damage_add_request_t - **/ -typedef struct xcb_damage_add_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_xfixes_region_t region; /**< */ -} xcb_damage_add_request_t; - -/** Opcode for xcb_damage_notify. */ -#define XCB_DAMAGE_NOTIFY 0 - -/** - * @brief xcb_damage_notify_event_t - **/ -typedef struct xcb_damage_notify_event_t { - uint8_t response_type; /**< */ - uint8_t level; /**< */ - uint16_t sequence; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_damage_damage_t damage; /**< */ - xcb_timestamp_t timestamp; /**< */ - xcb_rectangle_t area; /**< */ - xcb_rectangle_t geometry; /**< */ -} xcb_damage_notify_event_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_damage_damage_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_damage_damage_t) - */ -void -xcb_damage_damage_next (xcb_damage_damage_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_damage_damage_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_damage_damage_end (xcb_damage_damage_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_damage_query_version_cookie_t -xcb_damage_query_version (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_damage_query_version_cookie_t -xcb_damage_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_damage_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_damage_query_version_reply_t * -xcb_damage_query_version_reply (xcb_connection_t *c /**< */, - xcb_damage_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_damage_create_checked (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */, - xcb_drawable_t drawable /**< */, - uint8_t level /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_damage_create (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */, - xcb_drawable_t drawable /**< */, - uint8_t level /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_damage_destroy_checked (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_damage_destroy (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_damage_subtract_checked (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */, - xcb_xfixes_region_t repair /**< */, - xcb_xfixes_region_t parts /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_damage_subtract (xcb_connection_t *c /**< */, - xcb_damage_damage_t damage /**< */, - xcb_xfixes_region_t repair /**< */, - xcb_xfixes_region_t parts /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_damage_add_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_xfixes_region_t region /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_damage_add (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_xfixes_region_t region /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/dpms.c b/external/mit/xorg/lib/libxcb/files/dpms.c deleted file mode 100644 index 66af6bec7..000000000 --- a/external/mit/xorg/lib/libxcb/files/dpms.c +++ /dev/null @@ -1,459 +0,0 @@ -/* - * This file generated automatically from dpms.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "dpms.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) - -xcb_extension_t xcb_dpms_id = { "DPMS", 0 }; - -xcb_dpms_get_version_cookie_t -xcb_dpms_get_version (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_GET_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dpms_get_version_cookie_t xcb_ret; - xcb_dpms_get_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dpms_get_version_cookie_t -xcb_dpms_get_version_unchecked (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_GET_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dpms_get_version_cookie_t xcb_ret; - xcb_dpms_get_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dpms_get_version_reply_t * -xcb_dpms_get_version_reply (xcb_connection_t *c /**< */, - xcb_dpms_get_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dpms_get_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_dpms_capable_cookie_t -xcb_dpms_capable (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_CAPABLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dpms_capable_cookie_t xcb_ret; - xcb_dpms_capable_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dpms_capable_cookie_t -xcb_dpms_capable_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_CAPABLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dpms_capable_cookie_t xcb_ret; - xcb_dpms_capable_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dpms_capable_reply_t * -xcb_dpms_capable_reply (xcb_connection_t *c /**< */, - xcb_dpms_capable_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dpms_capable_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_dpms_get_timeouts_cookie_t -xcb_dpms_get_timeouts (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_GET_TIMEOUTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dpms_get_timeouts_cookie_t xcb_ret; - xcb_dpms_get_timeouts_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dpms_get_timeouts_cookie_t -xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_GET_TIMEOUTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dpms_get_timeouts_cookie_t xcb_ret; - xcb_dpms_get_timeouts_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dpms_get_timeouts_reply_t * -xcb_dpms_get_timeouts_reply (xcb_connection_t *c /**< */, - xcb_dpms_get_timeouts_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dpms_get_timeouts_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_dpms_set_timeouts_checked (xcb_connection_t *c /**< */, - uint16_t standby_timeout /**< */, - uint16_t suspend_timeout /**< */, - uint16_t off_timeout /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_SET_TIMEOUTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dpms_set_timeouts_request_t xcb_out; - - xcb_out.standby_timeout = standby_timeout; - xcb_out.suspend_timeout = suspend_timeout; - xcb_out.off_timeout = off_timeout; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dpms_set_timeouts (xcb_connection_t *c /**< */, - uint16_t standby_timeout /**< */, - uint16_t suspend_timeout /**< */, - uint16_t off_timeout /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_SET_TIMEOUTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dpms_set_timeouts_request_t xcb_out; - - xcb_out.standby_timeout = standby_timeout; - xcb_out.suspend_timeout = suspend_timeout; - xcb_out.off_timeout = off_timeout; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dpms_enable_checked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_ENABLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dpms_enable_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dpms_enable (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_ENABLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dpms_enable_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dpms_disable_checked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_DISABLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dpms_disable_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dpms_disable (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_DISABLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dpms_disable_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dpms_force_level_checked (xcb_connection_t *c /**< */, - uint16_t power_level /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_FORCE_LEVEL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dpms_force_level_request_t xcb_out; - - xcb_out.power_level = power_level; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dpms_force_level (xcb_connection_t *c /**< */, - uint16_t power_level /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_FORCE_LEVEL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dpms_force_level_request_t xcb_out; - - xcb_out.power_level = power_level; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dpms_info_cookie_t -xcb_dpms_info (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dpms_info_cookie_t xcb_ret; - xcb_dpms_info_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dpms_info_cookie_t -xcb_dpms_info_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dpms_id, - /* opcode */ XCB_DPMS_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dpms_info_cookie_t xcb_ret; - xcb_dpms_info_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dpms_info_reply_t * -xcb_dpms_info_reply (xcb_connection_t *c /**< */, - xcb_dpms_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dpms_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/dpms.h b/external/mit/xorg/lib/libxcb/files/dpms.h deleted file mode 100644 index fb2df9dc3..000000000 --- a/external/mit/xorg/lib/libxcb/files/dpms.h +++ /dev/null @@ -1,511 +0,0 @@ -/* - * This file generated automatically from dpms.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_DPMS_API XCB DPMS API - * @brief DPMS XCB Protocol Implementation. - * @{ - **/ - -#ifndef __DPMS_H -#define __DPMS_H - -#include "xcb.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_DPMS_MAJOR_VERSION 0 -#define XCB_DPMS_MINOR_VERSION 0 - -extern xcb_extension_t xcb_dpms_id; - -/** - * @brief xcb_dpms_get_version_cookie_t - **/ -typedef struct xcb_dpms_get_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_dpms_get_version_cookie_t; - -/** Opcode for xcb_dpms_get_version. */ -#define XCB_DPMS_GET_VERSION 0 - -/** - * @brief xcb_dpms_get_version_request_t - **/ -typedef struct xcb_dpms_get_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t client_major_version; /**< */ - uint16_t client_minor_version; /**< */ -} xcb_dpms_get_version_request_t; - -/** - * @brief xcb_dpms_get_version_reply_t - **/ -typedef struct xcb_dpms_get_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t server_major_version; /**< */ - uint16_t server_minor_version; /**< */ -} xcb_dpms_get_version_reply_t; - -/** - * @brief xcb_dpms_capable_cookie_t - **/ -typedef struct xcb_dpms_capable_cookie_t { - unsigned int sequence; /**< */ -} xcb_dpms_capable_cookie_t; - -/** Opcode for xcb_dpms_capable. */ -#define XCB_DPMS_CAPABLE 1 - -/** - * @brief xcb_dpms_capable_request_t - **/ -typedef struct xcb_dpms_capable_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_dpms_capable_request_t; - -/** - * @brief xcb_dpms_capable_reply_t - **/ -typedef struct xcb_dpms_capable_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t capable; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_dpms_capable_reply_t; - -/** - * @brief xcb_dpms_get_timeouts_cookie_t - **/ -typedef struct xcb_dpms_get_timeouts_cookie_t { - unsigned int sequence; /**< */ -} xcb_dpms_get_timeouts_cookie_t; - -/** Opcode for xcb_dpms_get_timeouts. */ -#define XCB_DPMS_GET_TIMEOUTS 2 - -/** - * @brief xcb_dpms_get_timeouts_request_t - **/ -typedef struct xcb_dpms_get_timeouts_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_dpms_get_timeouts_request_t; - -/** - * @brief xcb_dpms_get_timeouts_reply_t - **/ -typedef struct xcb_dpms_get_timeouts_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t standby_timeout; /**< */ - uint16_t suspend_timeout; /**< */ - uint16_t off_timeout; /**< */ - uint8_t pad1[18]; /**< */ -} xcb_dpms_get_timeouts_reply_t; - -/** Opcode for xcb_dpms_set_timeouts. */ -#define XCB_DPMS_SET_TIMEOUTS 3 - -/** - * @brief xcb_dpms_set_timeouts_request_t - **/ -typedef struct xcb_dpms_set_timeouts_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t standby_timeout; /**< */ - uint16_t suspend_timeout; /**< */ - uint16_t off_timeout; /**< */ -} xcb_dpms_set_timeouts_request_t; - -/** Opcode for xcb_dpms_enable. */ -#define XCB_DPMS_ENABLE 4 - -/** - * @brief xcb_dpms_enable_request_t - **/ -typedef struct xcb_dpms_enable_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_dpms_enable_request_t; - -/** Opcode for xcb_dpms_disable. */ -#define XCB_DPMS_DISABLE 5 - -/** - * @brief xcb_dpms_disable_request_t - **/ -typedef struct xcb_dpms_disable_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_dpms_disable_request_t; - -typedef enum xcb_dpms_dpms_mode_t { - XCB_DPMS_DPMS_MODE_ON = 0, - XCB_DPMS_DPMS_MODE_STANDBY = 1, - XCB_DPMS_DPMS_MODE_SUSPEND = 2, - XCB_DPMS_DPMS_MODE_OFF = 3 -} xcb_dpms_dpms_mode_t; - -/** Opcode for xcb_dpms_force_level. */ -#define XCB_DPMS_FORCE_LEVEL 6 - -/** - * @brief xcb_dpms_force_level_request_t - **/ -typedef struct xcb_dpms_force_level_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t power_level; /**< */ -} xcb_dpms_force_level_request_t; - -/** - * @brief xcb_dpms_info_cookie_t - **/ -typedef struct xcb_dpms_info_cookie_t { - unsigned int sequence; /**< */ -} xcb_dpms_info_cookie_t; - -/** Opcode for xcb_dpms_info. */ -#define XCB_DPMS_INFO 7 - -/** - * @brief xcb_dpms_info_request_t - **/ -typedef struct xcb_dpms_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_dpms_info_request_t; - -/** - * @brief xcb_dpms_info_reply_t - **/ -typedef struct xcb_dpms_info_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t power_level; /**< */ - uint8_t state; /**< */ - uint8_t pad1[21]; /**< */ -} xcb_dpms_info_reply_t; - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dpms_get_version_cookie_t -xcb_dpms_get_version (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dpms_get_version_cookie_t -xcb_dpms_get_version_unchecked (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dpms_get_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dpms_get_version_reply_t * -xcb_dpms_get_version_reply (xcb_connection_t *c /**< */, - xcb_dpms_get_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dpms_capable_cookie_t -xcb_dpms_capable (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dpms_capable_cookie_t -xcb_dpms_capable_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dpms_capable_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dpms_capable_reply_t * -xcb_dpms_capable_reply (xcb_connection_t *c /**< */, - xcb_dpms_capable_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dpms_get_timeouts_cookie_t -xcb_dpms_get_timeouts (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dpms_get_timeouts_cookie_t -xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dpms_get_timeouts_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dpms_get_timeouts_reply_t * -xcb_dpms_get_timeouts_reply (xcb_connection_t *c /**< */, - xcb_dpms_get_timeouts_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_dpms_set_timeouts_checked (xcb_connection_t *c /**< */, - uint16_t standby_timeout /**< */, - uint16_t suspend_timeout /**< */, - uint16_t off_timeout /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_dpms_set_timeouts (xcb_connection_t *c /**< */, - uint16_t standby_timeout /**< */, - uint16_t suspend_timeout /**< */, - uint16_t off_timeout /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_dpms_enable_checked (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_dpms_enable (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_dpms_disable_checked (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_dpms_disable (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_dpms_force_level_checked (xcb_connection_t *c /**< */, - uint16_t power_level /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_dpms_force_level (xcb_connection_t *c /**< */, - uint16_t power_level /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dpms_info_cookie_t -xcb_dpms_info (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dpms_info_cookie_t -xcb_dpms_info_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dpms_info_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dpms_info_reply_t * -xcb_dpms_info_reply (xcb_connection_t *c /**< */, - xcb_dpms_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/dri2.c b/external/mit/xorg/lib/libxcb/files/dri2.c deleted file mode 100644 index 9554520eb..000000000 --- a/external/mit/xorg/lib/libxcb/files/dri2.c +++ /dev/null @@ -1,1227 +0,0 @@ -/* - * This file generated automatically from dri2.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "dri2.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_dri2_id = { "DRI2", 0 }; - -void -xcb_dri2_dri2_buffer_next (xcb_dri2_dri2_buffer_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_dri2_dri2_buffer_t); -} - -xcb_generic_iterator_t -xcb_dri2_dri2_buffer_end (xcb_dri2_dri2_buffer_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_dri2_attach_format_next (xcb_dri2_attach_format_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_dri2_attach_format_t); -} - -xcb_generic_iterator_t -xcb_dri2_attach_format_end (xcb_dri2_attach_format_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_dri2_query_version_cookie_t -xcb_dri2_query_version (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_query_version_cookie_t xcb_ret; - xcb_dri2_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_query_version_cookie_t -xcb_dri2_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_query_version_cookie_t xcb_ret; - xcb_dri2_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_query_version_reply_t * -xcb_dri2_query_version_reply (xcb_connection_t *c /**< */, - xcb_dri2_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri2_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_dri2_connect_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_dri2_connect_reply_t *_aux = (xcb_dri2_connect_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_dri2_connect_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* driver_name */ - xcb_block_len += _aux->driver_name_length * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* alignment_pad */ - xcb_block_len += (((_aux->driver_name_length + 3) & (~3)) - _aux->driver_name_length) * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* device_name */ - xcb_block_len += _aux->device_name_length * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_dri2_connect_cookie_t -xcb_dri2_connect (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t driver_type /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_CONNECT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_connect_cookie_t xcb_ret; - xcb_dri2_connect_request_t xcb_out; - - xcb_out.window = window; - xcb_out.driver_type = driver_type; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_connect_cookie_t -xcb_dri2_connect_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t driver_type /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_CONNECT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_connect_cookie_t xcb_ret; - xcb_dri2_connect_request_t xcb_out; - - xcb_out.window = window; - xcb_out.driver_type = driver_type; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_dri2_connect_driver_name (const xcb_dri2_connect_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_dri2_connect_driver_name_length (const xcb_dri2_connect_reply_t *R /**< */) -{ - return R->driver_name_length; -} - -xcb_generic_iterator_t -xcb_dri2_connect_driver_name_end (const xcb_dri2_connect_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->driver_name_length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void * -xcb_dri2_connect_alignment_pad (const xcb_dri2_connect_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_dri2_connect_driver_name_end(R); - return (void *) ((char *) prev.data + XCB_TYPE_PAD(char, prev.index) + 0); -} - -int -xcb_dri2_connect_alignment_pad_length (const xcb_dri2_connect_reply_t *R /**< */) -{ - return (((R->driver_name_length + 3) & (~3)) - R->driver_name_length); -} - -xcb_generic_iterator_t -xcb_dri2_connect_alignment_pad_end (const xcb_dri2_connect_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_dri2_connect_driver_name_end(R); - i.data = ((char *) child.data) + ((((R->driver_name_length + 3) & (~3)) - R->driver_name_length)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -char * -xcb_dri2_connect_device_name (const xcb_dri2_connect_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_dri2_connect_alignment_pad_end(R); - return (char *) ((char *) prev.data + XCB_TYPE_PAD(char, prev.index) + 0); -} - -int -xcb_dri2_connect_device_name_length (const xcb_dri2_connect_reply_t *R /**< */) -{ - return R->device_name_length; -} - -xcb_generic_iterator_t -xcb_dri2_connect_device_name_end (const xcb_dri2_connect_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_dri2_connect_alignment_pad_end(R); - i.data = ((char *) child.data) + (R->device_name_length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_dri2_connect_reply_t * -xcb_dri2_connect_reply (xcb_connection_t *c /**< */, - xcb_dri2_connect_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri2_connect_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_dri2_authenticate_cookie_t -xcb_dri2_authenticate (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t magic /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_AUTHENTICATE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_authenticate_cookie_t xcb_ret; - xcb_dri2_authenticate_request_t xcb_out; - - xcb_out.window = window; - xcb_out.magic = magic; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_authenticate_cookie_t -xcb_dri2_authenticate_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t magic /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_AUTHENTICATE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_authenticate_cookie_t xcb_ret; - xcb_dri2_authenticate_request_t xcb_out; - - xcb_out.window = window; - xcb_out.magic = magic; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_authenticate_reply_t * -xcb_dri2_authenticate_reply (xcb_connection_t *c /**< */, - xcb_dri2_authenticate_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri2_authenticate_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_dri2_create_drawable_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_CREATE_DRAWABLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dri2_create_drawable_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dri2_create_drawable (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_CREATE_DRAWABLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dri2_create_drawable_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dri2_destroy_drawable_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_DESTROY_DRAWABLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dri2_destroy_drawable_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dri2_destroy_drawable (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_DESTROY_DRAWABLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dri2_destroy_drawable_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_dri2_get_buffers_sizeof (const void *_buffer /**< */, - uint32_t attachments_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_dri2_get_buffers_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attachments */ - xcb_block_len += attachments_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_dri2_get_buffers_cookie_t -xcb_dri2_get_buffers (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t count /**< */, - uint32_t attachments_len /**< */, - const uint32_t *attachments /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_GET_BUFFERS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_dri2_get_buffers_cookie_t xcb_ret; - xcb_dri2_get_buffers_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.count = count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attachments */ - xcb_parts[4].iov_base = (char *) attachments; - xcb_parts[4].iov_len = attachments_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_get_buffers_cookie_t -xcb_dri2_get_buffers_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t count /**< */, - uint32_t attachments_len /**< */, - const uint32_t *attachments /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_GET_BUFFERS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_dri2_get_buffers_cookie_t xcb_ret; - xcb_dri2_get_buffers_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.count = count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attachments */ - xcb_parts[4].iov_base = (char *) attachments; - xcb_parts[4].iov_len = attachments_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_dri2_buffer_t * -xcb_dri2_get_buffers_buffers (const xcb_dri2_get_buffers_reply_t *R /**< */) -{ - return (xcb_dri2_dri2_buffer_t *) (R + 1); -} - -int -xcb_dri2_get_buffers_buffers_length (const xcb_dri2_get_buffers_reply_t *R /**< */) -{ - return R->count; -} - -xcb_dri2_dri2_buffer_iterator_t -xcb_dri2_get_buffers_buffers_iterator (const xcb_dri2_get_buffers_reply_t *R /**< */) -{ - xcb_dri2_dri2_buffer_iterator_t i; - i.data = (xcb_dri2_dri2_buffer_t *) (R + 1); - i.rem = R->count; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_dri2_get_buffers_reply_t * -xcb_dri2_get_buffers_reply (xcb_connection_t *c /**< */, - xcb_dri2_get_buffers_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri2_get_buffers_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_dri2_copy_region_cookie_t -xcb_dri2_copy_region (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t region /**< */, - uint32_t dest /**< */, - uint32_t src /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_COPY_REGION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_copy_region_cookie_t xcb_ret; - xcb_dri2_copy_region_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.region = region; - xcb_out.dest = dest; - xcb_out.src = src; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_copy_region_cookie_t -xcb_dri2_copy_region_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t region /**< */, - uint32_t dest /**< */, - uint32_t src /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_COPY_REGION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_copy_region_cookie_t xcb_ret; - xcb_dri2_copy_region_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.region = region; - xcb_out.dest = dest; - xcb_out.src = src; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_copy_region_reply_t * -xcb_dri2_copy_region_reply (xcb_connection_t *c /**< */, - xcb_dri2_copy_region_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri2_copy_region_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_dri2_get_buffers_with_format_sizeof (const void *_buffer /**< */, - uint32_t attachments_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_dri2_get_buffers_with_format_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attachments */ - xcb_block_len += attachments_len * sizeof(xcb_dri2_attach_format_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_dri2_attach_format_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_dri2_get_buffers_with_format_cookie_t -xcb_dri2_get_buffers_with_format (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t count /**< */, - uint32_t attachments_len /**< */, - const xcb_dri2_attach_format_t *attachments /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_GET_BUFFERS_WITH_FORMAT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_dri2_get_buffers_with_format_cookie_t xcb_ret; - xcb_dri2_get_buffers_with_format_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.count = count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_dri2_attach_format_t attachments */ - xcb_parts[4].iov_base = (char *) attachments; - xcb_parts[4].iov_len = attachments_len * sizeof(xcb_dri2_attach_format_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_get_buffers_with_format_cookie_t -xcb_dri2_get_buffers_with_format_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t count /**< */, - uint32_t attachments_len /**< */, - const xcb_dri2_attach_format_t *attachments /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_GET_BUFFERS_WITH_FORMAT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_dri2_get_buffers_with_format_cookie_t xcb_ret; - xcb_dri2_get_buffers_with_format_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.count = count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_dri2_attach_format_t attachments */ - xcb_parts[4].iov_base = (char *) attachments; - xcb_parts[4].iov_len = attachments_len * sizeof(xcb_dri2_attach_format_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_dri2_buffer_t * -xcb_dri2_get_buffers_with_format_buffers (const xcb_dri2_get_buffers_with_format_reply_t *R /**< */) -{ - return (xcb_dri2_dri2_buffer_t *) (R + 1); -} - -int -xcb_dri2_get_buffers_with_format_buffers_length (const xcb_dri2_get_buffers_with_format_reply_t *R /**< */) -{ - return R->count; -} - -xcb_dri2_dri2_buffer_iterator_t -xcb_dri2_get_buffers_with_format_buffers_iterator (const xcb_dri2_get_buffers_with_format_reply_t *R /**< */) -{ - xcb_dri2_dri2_buffer_iterator_t i; - i.data = (xcb_dri2_dri2_buffer_t *) (R + 1); - i.rem = R->count; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_dri2_get_buffers_with_format_reply_t * -xcb_dri2_get_buffers_with_format_reply (xcb_connection_t *c /**< */, - xcb_dri2_get_buffers_with_format_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri2_get_buffers_with_format_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_dri2_swap_buffers_cookie_t -xcb_dri2_swap_buffers (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_msc_hi /**< */, - uint32_t target_msc_lo /**< */, - uint32_t divisor_hi /**< */, - uint32_t divisor_lo /**< */, - uint32_t remainder_hi /**< */, - uint32_t remainder_lo /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_SWAP_BUFFERS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_swap_buffers_cookie_t xcb_ret; - xcb_dri2_swap_buffers_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.target_msc_hi = target_msc_hi; - xcb_out.target_msc_lo = target_msc_lo; - xcb_out.divisor_hi = divisor_hi; - xcb_out.divisor_lo = divisor_lo; - xcb_out.remainder_hi = remainder_hi; - xcb_out.remainder_lo = remainder_lo; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_swap_buffers_cookie_t -xcb_dri2_swap_buffers_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_msc_hi /**< */, - uint32_t target_msc_lo /**< */, - uint32_t divisor_hi /**< */, - uint32_t divisor_lo /**< */, - uint32_t remainder_hi /**< */, - uint32_t remainder_lo /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_SWAP_BUFFERS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_swap_buffers_cookie_t xcb_ret; - xcb_dri2_swap_buffers_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.target_msc_hi = target_msc_hi; - xcb_out.target_msc_lo = target_msc_lo; - xcb_out.divisor_hi = divisor_hi; - xcb_out.divisor_lo = divisor_lo; - xcb_out.remainder_hi = remainder_hi; - xcb_out.remainder_lo = remainder_lo; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_swap_buffers_reply_t * -xcb_dri2_swap_buffers_reply (xcb_connection_t *c /**< */, - xcb_dri2_swap_buffers_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri2_swap_buffers_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_dri2_get_msc_cookie_t -xcb_dri2_get_msc (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_GET_MSC, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_get_msc_cookie_t xcb_ret; - xcb_dri2_get_msc_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_get_msc_cookie_t -xcb_dri2_get_msc_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_GET_MSC, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_get_msc_cookie_t xcb_ret; - xcb_dri2_get_msc_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_get_msc_reply_t * -xcb_dri2_get_msc_reply (xcb_connection_t *c /**< */, - xcb_dri2_get_msc_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri2_get_msc_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_dri2_wait_msc_cookie_t -xcb_dri2_wait_msc (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_msc_hi /**< */, - uint32_t target_msc_lo /**< */, - uint32_t divisor_hi /**< */, - uint32_t divisor_lo /**< */, - uint32_t remainder_hi /**< */, - uint32_t remainder_lo /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_WAIT_MSC, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_wait_msc_cookie_t xcb_ret; - xcb_dri2_wait_msc_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.target_msc_hi = target_msc_hi; - xcb_out.target_msc_lo = target_msc_lo; - xcb_out.divisor_hi = divisor_hi; - xcb_out.divisor_lo = divisor_lo; - xcb_out.remainder_hi = remainder_hi; - xcb_out.remainder_lo = remainder_lo; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_wait_msc_cookie_t -xcb_dri2_wait_msc_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_msc_hi /**< */, - uint32_t target_msc_lo /**< */, - uint32_t divisor_hi /**< */, - uint32_t divisor_lo /**< */, - uint32_t remainder_hi /**< */, - uint32_t remainder_lo /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_WAIT_MSC, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_wait_msc_cookie_t xcb_ret; - xcb_dri2_wait_msc_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.target_msc_hi = target_msc_hi; - xcb_out.target_msc_lo = target_msc_lo; - xcb_out.divisor_hi = divisor_hi; - xcb_out.divisor_lo = divisor_lo; - xcb_out.remainder_hi = remainder_hi; - xcb_out.remainder_lo = remainder_lo; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_wait_msc_reply_t * -xcb_dri2_wait_msc_reply (xcb_connection_t *c /**< */, - xcb_dri2_wait_msc_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri2_wait_msc_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_dri2_wait_sbc_cookie_t -xcb_dri2_wait_sbc (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_sbc_hi /**< */, - uint32_t target_sbc_lo /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_WAIT_SBC, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_wait_sbc_cookie_t xcb_ret; - xcb_dri2_wait_sbc_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.target_sbc_hi = target_sbc_hi; - xcb_out.target_sbc_lo = target_sbc_lo; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_wait_sbc_cookie_t -xcb_dri2_wait_sbc_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_sbc_hi /**< */, - uint32_t target_sbc_lo /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_WAIT_SBC, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_wait_sbc_cookie_t xcb_ret; - xcb_dri2_wait_sbc_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.target_sbc_hi = target_sbc_hi; - xcb_out.target_sbc_lo = target_sbc_lo; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_wait_sbc_reply_t * -xcb_dri2_wait_sbc_reply (xcb_connection_t *c /**< */, - xcb_dri2_wait_sbc_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri2_wait_sbc_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_dri2_swap_interval_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t interval /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_SWAP_INTERVAL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dri2_swap_interval_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.interval = interval; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dri2_swap_interval (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t interval /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_SWAP_INTERVAL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dri2_swap_interval_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.interval = interval; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_get_param_cookie_t -xcb_dri2_get_param (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t param /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_GET_PARAM, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_get_param_cookie_t xcb_ret; - xcb_dri2_get_param_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.param = param; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_get_param_cookie_t -xcb_dri2_get_param_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t param /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri2_id, - /* opcode */ XCB_DRI2_GET_PARAM, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri2_get_param_cookie_t xcb_ret; - xcb_dri2_get_param_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.param = param; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri2_get_param_reply_t * -xcb_dri2_get_param_reply (xcb_connection_t *c /**< */, - xcb_dri2_get_param_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri2_get_param_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/dri2.h b/external/mit/xorg/lib/libxcb/files/dri2.h deleted file mode 100644 index f7977705c..000000000 --- a/external/mit/xorg/lib/libxcb/files/dri2.h +++ /dev/null @@ -1,1305 +0,0 @@ -/* - * This file generated automatically from dri2.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_DRI2_API XCB DRI2 API - * @brief DRI2 XCB Protocol Implementation. - * @{ - **/ - -#ifndef __DRI2_H -#define __DRI2_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_DRI2_MAJOR_VERSION 1 -#define XCB_DRI2_MINOR_VERSION 4 - -extern xcb_extension_t xcb_dri2_id; - -typedef enum xcb_dri2_attachment_t { - XCB_DRI2_ATTACHMENT_BUFFER_FRONT_LEFT = 0, - XCB_DRI2_ATTACHMENT_BUFFER_BACK_LEFT = 1, - XCB_DRI2_ATTACHMENT_BUFFER_FRONT_RIGHT = 2, - XCB_DRI2_ATTACHMENT_BUFFER_BACK_RIGHT = 3, - XCB_DRI2_ATTACHMENT_BUFFER_DEPTH = 4, - XCB_DRI2_ATTACHMENT_BUFFER_STENCIL = 5, - XCB_DRI2_ATTACHMENT_BUFFER_ACCUM = 6, - XCB_DRI2_ATTACHMENT_BUFFER_FAKE_FRONT_LEFT = 7, - XCB_DRI2_ATTACHMENT_BUFFER_FAKE_FRONT_RIGHT = 8, - XCB_DRI2_ATTACHMENT_BUFFER_DEPTH_STENCIL = 9, - XCB_DRI2_ATTACHMENT_BUFFER_HIZ = 10 -} xcb_dri2_attachment_t; - -typedef enum xcb_dri2_driver_type_t { - XCB_DRI2_DRIVER_TYPE_DRI = 0, - XCB_DRI2_DRIVER_TYPE_VDPAU = 1 -} xcb_dri2_driver_type_t; - -typedef enum xcb_dri2_event_type_t { - XCB_DRI2_EVENT_TYPE_EXCHANGE_COMPLETE = 1, - XCB_DRI2_EVENT_TYPE_BLIT_COMPLETE = 2, - XCB_DRI2_EVENT_TYPE_FLIP_COMPLETE = 3 -} xcb_dri2_event_type_t; - -/** - * @brief xcb_dri2_dri2_buffer_t - **/ -typedef struct xcb_dri2_dri2_buffer_t { - uint32_t attachment; /**< */ - uint32_t name; /**< */ - uint32_t pitch; /**< */ - uint32_t cpp; /**< */ - uint32_t flags; /**< */ -} xcb_dri2_dri2_buffer_t; - -/** - * @brief xcb_dri2_dri2_buffer_iterator_t - **/ -typedef struct xcb_dri2_dri2_buffer_iterator_t { - xcb_dri2_dri2_buffer_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_dri2_dri2_buffer_iterator_t; - -/** - * @brief xcb_dri2_attach_format_t - **/ -typedef struct xcb_dri2_attach_format_t { - uint32_t attachment; /**< */ - uint32_t format; /**< */ -} xcb_dri2_attach_format_t; - -/** - * @brief xcb_dri2_attach_format_iterator_t - **/ -typedef struct xcb_dri2_attach_format_iterator_t { - xcb_dri2_attach_format_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_dri2_attach_format_iterator_t; - -/** - * @brief xcb_dri2_query_version_cookie_t - **/ -typedef struct xcb_dri2_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri2_query_version_cookie_t; - -/** Opcode for xcb_dri2_query_version. */ -#define XCB_DRI2_QUERY_VERSION 0 - -/** - * @brief xcb_dri2_query_version_request_t - **/ -typedef struct xcb_dri2_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ -} xcb_dri2_query_version_request_t; - -/** - * @brief xcb_dri2_query_version_reply_t - **/ -typedef struct xcb_dri2_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ -} xcb_dri2_query_version_reply_t; - -/** - * @brief xcb_dri2_connect_cookie_t - **/ -typedef struct xcb_dri2_connect_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri2_connect_cookie_t; - -/** Opcode for xcb_dri2_connect. */ -#define XCB_DRI2_CONNECT 1 - -/** - * @brief xcb_dri2_connect_request_t - **/ -typedef struct xcb_dri2_connect_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint32_t driver_type; /**< */ -} xcb_dri2_connect_request_t; - -/** - * @brief xcb_dri2_connect_reply_t - **/ -typedef struct xcb_dri2_connect_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t driver_name_length; /**< */ - uint32_t device_name_length; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_dri2_connect_reply_t; - -/** - * @brief xcb_dri2_authenticate_cookie_t - **/ -typedef struct xcb_dri2_authenticate_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri2_authenticate_cookie_t; - -/** Opcode for xcb_dri2_authenticate. */ -#define XCB_DRI2_AUTHENTICATE 2 - -/** - * @brief xcb_dri2_authenticate_request_t - **/ -typedef struct xcb_dri2_authenticate_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint32_t magic; /**< */ -} xcb_dri2_authenticate_request_t; - -/** - * @brief xcb_dri2_authenticate_reply_t - **/ -typedef struct xcb_dri2_authenticate_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t authenticated; /**< */ -} xcb_dri2_authenticate_reply_t; - -/** Opcode for xcb_dri2_create_drawable. */ -#define XCB_DRI2_CREATE_DRAWABLE 3 - -/** - * @brief xcb_dri2_create_drawable_request_t - **/ -typedef struct xcb_dri2_create_drawable_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ -} xcb_dri2_create_drawable_request_t; - -/** Opcode for xcb_dri2_destroy_drawable. */ -#define XCB_DRI2_DESTROY_DRAWABLE 4 - -/** - * @brief xcb_dri2_destroy_drawable_request_t - **/ -typedef struct xcb_dri2_destroy_drawable_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ -} xcb_dri2_destroy_drawable_request_t; - -/** - * @brief xcb_dri2_get_buffers_cookie_t - **/ -typedef struct xcb_dri2_get_buffers_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri2_get_buffers_cookie_t; - -/** Opcode for xcb_dri2_get_buffers. */ -#define XCB_DRI2_GET_BUFFERS 5 - -/** - * @brief xcb_dri2_get_buffers_request_t - **/ -typedef struct xcb_dri2_get_buffers_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t count; /**< */ -} xcb_dri2_get_buffers_request_t; - -/** - * @brief xcb_dri2_get_buffers_reply_t - **/ -typedef struct xcb_dri2_get_buffers_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t width; /**< */ - uint32_t height; /**< */ - uint32_t count; /**< */ - uint8_t pad1[12]; /**< */ -} xcb_dri2_get_buffers_reply_t; - -/** - * @brief xcb_dri2_copy_region_cookie_t - **/ -typedef struct xcb_dri2_copy_region_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri2_copy_region_cookie_t; - -/** Opcode for xcb_dri2_copy_region. */ -#define XCB_DRI2_COPY_REGION 6 - -/** - * @brief xcb_dri2_copy_region_request_t - **/ -typedef struct xcb_dri2_copy_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t region; /**< */ - uint32_t dest; /**< */ - uint32_t src; /**< */ -} xcb_dri2_copy_region_request_t; - -/** - * @brief xcb_dri2_copy_region_reply_t - **/ -typedef struct xcb_dri2_copy_region_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ -} xcb_dri2_copy_region_reply_t; - -/** - * @brief xcb_dri2_get_buffers_with_format_cookie_t - **/ -typedef struct xcb_dri2_get_buffers_with_format_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri2_get_buffers_with_format_cookie_t; - -/** Opcode for xcb_dri2_get_buffers_with_format. */ -#define XCB_DRI2_GET_BUFFERS_WITH_FORMAT 7 - -/** - * @brief xcb_dri2_get_buffers_with_format_request_t - **/ -typedef struct xcb_dri2_get_buffers_with_format_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t count; /**< */ -} xcb_dri2_get_buffers_with_format_request_t; - -/** - * @brief xcb_dri2_get_buffers_with_format_reply_t - **/ -typedef struct xcb_dri2_get_buffers_with_format_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t width; /**< */ - uint32_t height; /**< */ - uint32_t count; /**< */ - uint8_t pad1[12]; /**< */ -} xcb_dri2_get_buffers_with_format_reply_t; - -/** - * @brief xcb_dri2_swap_buffers_cookie_t - **/ -typedef struct xcb_dri2_swap_buffers_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri2_swap_buffers_cookie_t; - -/** Opcode for xcb_dri2_swap_buffers. */ -#define XCB_DRI2_SWAP_BUFFERS 8 - -/** - * @brief xcb_dri2_swap_buffers_request_t - **/ -typedef struct xcb_dri2_swap_buffers_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t target_msc_hi; /**< */ - uint32_t target_msc_lo; /**< */ - uint32_t divisor_hi; /**< */ - uint32_t divisor_lo; /**< */ - uint32_t remainder_hi; /**< */ - uint32_t remainder_lo; /**< */ -} xcb_dri2_swap_buffers_request_t; - -/** - * @brief xcb_dri2_swap_buffers_reply_t - **/ -typedef struct xcb_dri2_swap_buffers_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t swap_hi; /**< */ - uint32_t swap_lo; /**< */ -} xcb_dri2_swap_buffers_reply_t; - -/** - * @brief xcb_dri2_get_msc_cookie_t - **/ -typedef struct xcb_dri2_get_msc_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri2_get_msc_cookie_t; - -/** Opcode for xcb_dri2_get_msc. */ -#define XCB_DRI2_GET_MSC 9 - -/** - * @brief xcb_dri2_get_msc_request_t - **/ -typedef struct xcb_dri2_get_msc_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ -} xcb_dri2_get_msc_request_t; - -/** - * @brief xcb_dri2_get_msc_reply_t - **/ -typedef struct xcb_dri2_get_msc_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t ust_hi; /**< */ - uint32_t ust_lo; /**< */ - uint32_t msc_hi; /**< */ - uint32_t msc_lo; /**< */ - uint32_t sbc_hi; /**< */ - uint32_t sbc_lo; /**< */ -} xcb_dri2_get_msc_reply_t; - -/** - * @brief xcb_dri2_wait_msc_cookie_t - **/ -typedef struct xcb_dri2_wait_msc_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri2_wait_msc_cookie_t; - -/** Opcode for xcb_dri2_wait_msc. */ -#define XCB_DRI2_WAIT_MSC 10 - -/** - * @brief xcb_dri2_wait_msc_request_t - **/ -typedef struct xcb_dri2_wait_msc_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t target_msc_hi; /**< */ - uint32_t target_msc_lo; /**< */ - uint32_t divisor_hi; /**< */ - uint32_t divisor_lo; /**< */ - uint32_t remainder_hi; /**< */ - uint32_t remainder_lo; /**< */ -} xcb_dri2_wait_msc_request_t; - -/** - * @brief xcb_dri2_wait_msc_reply_t - **/ -typedef struct xcb_dri2_wait_msc_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t ust_hi; /**< */ - uint32_t ust_lo; /**< */ - uint32_t msc_hi; /**< */ - uint32_t msc_lo; /**< */ - uint32_t sbc_hi; /**< */ - uint32_t sbc_lo; /**< */ -} xcb_dri2_wait_msc_reply_t; - -/** - * @brief xcb_dri2_wait_sbc_cookie_t - **/ -typedef struct xcb_dri2_wait_sbc_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri2_wait_sbc_cookie_t; - -/** Opcode for xcb_dri2_wait_sbc. */ -#define XCB_DRI2_WAIT_SBC 11 - -/** - * @brief xcb_dri2_wait_sbc_request_t - **/ -typedef struct xcb_dri2_wait_sbc_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t target_sbc_hi; /**< */ - uint32_t target_sbc_lo; /**< */ -} xcb_dri2_wait_sbc_request_t; - -/** - * @brief xcb_dri2_wait_sbc_reply_t - **/ -typedef struct xcb_dri2_wait_sbc_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t ust_hi; /**< */ - uint32_t ust_lo; /**< */ - uint32_t msc_hi; /**< */ - uint32_t msc_lo; /**< */ - uint32_t sbc_hi; /**< */ - uint32_t sbc_lo; /**< */ -} xcb_dri2_wait_sbc_reply_t; - -/** Opcode for xcb_dri2_swap_interval. */ -#define XCB_DRI2_SWAP_INTERVAL 12 - -/** - * @brief xcb_dri2_swap_interval_request_t - **/ -typedef struct xcb_dri2_swap_interval_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t interval; /**< */ -} xcb_dri2_swap_interval_request_t; - -/** - * @brief xcb_dri2_get_param_cookie_t - **/ -typedef struct xcb_dri2_get_param_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri2_get_param_cookie_t; - -/** Opcode for xcb_dri2_get_param. */ -#define XCB_DRI2_GET_PARAM 13 - -/** - * @brief xcb_dri2_get_param_request_t - **/ -typedef struct xcb_dri2_get_param_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t param; /**< */ -} xcb_dri2_get_param_request_t; - -/** - * @brief xcb_dri2_get_param_reply_t - **/ -typedef struct xcb_dri2_get_param_reply_t { - uint8_t response_type; /**< */ - uint8_t is_param_recognized; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t value_hi; /**< */ - uint32_t value_lo; /**< */ -} xcb_dri2_get_param_reply_t; - -/** Opcode for xcb_dri2_buffer_swap_complete. */ -#define XCB_DRI2_BUFFER_SWAP_COMPLETE 0 - -/** - * @brief xcb_dri2_buffer_swap_complete_event_t - **/ -typedef struct xcb_dri2_buffer_swap_complete_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint16_t event_type; /**< */ - uint8_t pad1[2]; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t ust_hi; /**< */ - uint32_t ust_lo; /**< */ - uint32_t msc_hi; /**< */ - uint32_t msc_lo; /**< */ - uint32_t sbc; /**< */ -} xcb_dri2_buffer_swap_complete_event_t; - -/** Opcode for xcb_dri2_invalidate_buffers. */ -#define XCB_DRI2_INVALIDATE_BUFFERS 1 - -/** - * @brief xcb_dri2_invalidate_buffers_event_t - **/ -typedef struct xcb_dri2_invalidate_buffers_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_drawable_t drawable; /**< */ -} xcb_dri2_invalidate_buffers_event_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_dri2_dri2_buffer_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_dri2_dri2_buffer_t) - */ -void -xcb_dri2_dri2_buffer_next (xcb_dri2_dri2_buffer_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_dri2_dri2_buffer_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_dri2_dri2_buffer_end (xcb_dri2_dri2_buffer_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_dri2_attach_format_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_dri2_attach_format_t) - */ -void -xcb_dri2_attach_format_next (xcb_dri2_attach_format_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_dri2_attach_format_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_dri2_attach_format_end (xcb_dri2_attach_format_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri2_query_version_cookie_t -xcb_dri2_query_version (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri2_query_version_cookie_t -xcb_dri2_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri2_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri2_query_version_reply_t * -xcb_dri2_query_version_reply (xcb_connection_t *c /**< */, - xcb_dri2_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_dri2_connect_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri2_connect_cookie_t -xcb_dri2_connect (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t driver_type /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri2_connect_cookie_t -xcb_dri2_connect_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t driver_type /**< */); - -char * -xcb_dri2_connect_driver_name (const xcb_dri2_connect_reply_t *R /**< */); - -int -xcb_dri2_connect_driver_name_length (const xcb_dri2_connect_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_dri2_connect_driver_name_end (const xcb_dri2_connect_reply_t *R /**< */); - -void * -xcb_dri2_connect_alignment_pad (const xcb_dri2_connect_reply_t *R /**< */); - -int -xcb_dri2_connect_alignment_pad_length (const xcb_dri2_connect_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_dri2_connect_alignment_pad_end (const xcb_dri2_connect_reply_t *R /**< */); - -char * -xcb_dri2_connect_device_name (const xcb_dri2_connect_reply_t *R /**< */); - -int -xcb_dri2_connect_device_name_length (const xcb_dri2_connect_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_dri2_connect_device_name_end (const xcb_dri2_connect_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri2_connect_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri2_connect_reply_t * -xcb_dri2_connect_reply (xcb_connection_t *c /**< */, - xcb_dri2_connect_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri2_authenticate_cookie_t -xcb_dri2_authenticate (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t magic /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri2_authenticate_cookie_t -xcb_dri2_authenticate_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t magic /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri2_authenticate_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri2_authenticate_reply_t * -xcb_dri2_authenticate_reply (xcb_connection_t *c /**< */, - xcb_dri2_authenticate_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_dri2_create_drawable_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_dri2_create_drawable (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_dri2_destroy_drawable_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_dri2_destroy_drawable (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -int -xcb_dri2_get_buffers_sizeof (const void *_buffer /**< */, - uint32_t attachments_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri2_get_buffers_cookie_t -xcb_dri2_get_buffers (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t count /**< */, - uint32_t attachments_len /**< */, - const uint32_t *attachments /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri2_get_buffers_cookie_t -xcb_dri2_get_buffers_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t count /**< */, - uint32_t attachments_len /**< */, - const uint32_t *attachments /**< */); - -xcb_dri2_dri2_buffer_t * -xcb_dri2_get_buffers_buffers (const xcb_dri2_get_buffers_reply_t *R /**< */); - -int -xcb_dri2_get_buffers_buffers_length (const xcb_dri2_get_buffers_reply_t *R /**< */); - -xcb_dri2_dri2_buffer_iterator_t -xcb_dri2_get_buffers_buffers_iterator (const xcb_dri2_get_buffers_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri2_get_buffers_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri2_get_buffers_reply_t * -xcb_dri2_get_buffers_reply (xcb_connection_t *c /**< */, - xcb_dri2_get_buffers_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri2_copy_region_cookie_t -xcb_dri2_copy_region (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t region /**< */, - uint32_t dest /**< */, - uint32_t src /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri2_copy_region_cookie_t -xcb_dri2_copy_region_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t region /**< */, - uint32_t dest /**< */, - uint32_t src /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri2_copy_region_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri2_copy_region_reply_t * -xcb_dri2_copy_region_reply (xcb_connection_t *c /**< */, - xcb_dri2_copy_region_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_dri2_get_buffers_with_format_sizeof (const void *_buffer /**< */, - uint32_t attachments_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri2_get_buffers_with_format_cookie_t -xcb_dri2_get_buffers_with_format (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t count /**< */, - uint32_t attachments_len /**< */, - const xcb_dri2_attach_format_t *attachments /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri2_get_buffers_with_format_cookie_t -xcb_dri2_get_buffers_with_format_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t count /**< */, - uint32_t attachments_len /**< */, - const xcb_dri2_attach_format_t *attachments /**< */); - -xcb_dri2_dri2_buffer_t * -xcb_dri2_get_buffers_with_format_buffers (const xcb_dri2_get_buffers_with_format_reply_t *R /**< */); - -int -xcb_dri2_get_buffers_with_format_buffers_length (const xcb_dri2_get_buffers_with_format_reply_t *R /**< */); - -xcb_dri2_dri2_buffer_iterator_t -xcb_dri2_get_buffers_with_format_buffers_iterator (const xcb_dri2_get_buffers_with_format_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri2_get_buffers_with_format_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri2_get_buffers_with_format_reply_t * -xcb_dri2_get_buffers_with_format_reply (xcb_connection_t *c /**< */, - xcb_dri2_get_buffers_with_format_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri2_swap_buffers_cookie_t -xcb_dri2_swap_buffers (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_msc_hi /**< */, - uint32_t target_msc_lo /**< */, - uint32_t divisor_hi /**< */, - uint32_t divisor_lo /**< */, - uint32_t remainder_hi /**< */, - uint32_t remainder_lo /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri2_swap_buffers_cookie_t -xcb_dri2_swap_buffers_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_msc_hi /**< */, - uint32_t target_msc_lo /**< */, - uint32_t divisor_hi /**< */, - uint32_t divisor_lo /**< */, - uint32_t remainder_hi /**< */, - uint32_t remainder_lo /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri2_swap_buffers_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri2_swap_buffers_reply_t * -xcb_dri2_swap_buffers_reply (xcb_connection_t *c /**< */, - xcb_dri2_swap_buffers_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri2_get_msc_cookie_t -xcb_dri2_get_msc (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri2_get_msc_cookie_t -xcb_dri2_get_msc_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri2_get_msc_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri2_get_msc_reply_t * -xcb_dri2_get_msc_reply (xcb_connection_t *c /**< */, - xcb_dri2_get_msc_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri2_wait_msc_cookie_t -xcb_dri2_wait_msc (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_msc_hi /**< */, - uint32_t target_msc_lo /**< */, - uint32_t divisor_hi /**< */, - uint32_t divisor_lo /**< */, - uint32_t remainder_hi /**< */, - uint32_t remainder_lo /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri2_wait_msc_cookie_t -xcb_dri2_wait_msc_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_msc_hi /**< */, - uint32_t target_msc_lo /**< */, - uint32_t divisor_hi /**< */, - uint32_t divisor_lo /**< */, - uint32_t remainder_hi /**< */, - uint32_t remainder_lo /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri2_wait_msc_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri2_wait_msc_reply_t * -xcb_dri2_wait_msc_reply (xcb_connection_t *c /**< */, - xcb_dri2_wait_msc_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri2_wait_sbc_cookie_t -xcb_dri2_wait_sbc (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_sbc_hi /**< */, - uint32_t target_sbc_lo /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri2_wait_sbc_cookie_t -xcb_dri2_wait_sbc_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t target_sbc_hi /**< */, - uint32_t target_sbc_lo /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri2_wait_sbc_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri2_wait_sbc_reply_t * -xcb_dri2_wait_sbc_reply (xcb_connection_t *c /**< */, - xcb_dri2_wait_sbc_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_dri2_swap_interval_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t interval /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_dri2_swap_interval (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t interval /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri2_get_param_cookie_t -xcb_dri2_get_param (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t param /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri2_get_param_cookie_t -xcb_dri2_get_param_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t param /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri2_get_param_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri2_get_param_reply_t * -xcb_dri2_get_param_reply (xcb_connection_t *c /**< */, - xcb_dri2_get_param_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/dri3.c b/external/mit/xorg/lib/libxcb/files/dri3.c deleted file mode 100644 index 10f2df409..000000000 --- a/external/mit/xorg/lib/libxcb/files/dri3.c +++ /dev/null @@ -1,443 +0,0 @@ -/* - * This file generated automatically from dri3.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "dri3.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_dri3_id = { "DRI3", 0 }; - -xcb_dri3_query_version_cookie_t -xcb_dri3_query_version (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri3_query_version_cookie_t xcb_ret; - xcb_dri3_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri3_query_version_cookie_t -xcb_dri3_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri3_query_version_cookie_t xcb_ret; - xcb_dri3_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri3_query_version_reply_t * -xcb_dri3_query_version_reply (xcb_connection_t *c /**< */, - xcb_dri3_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri3_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_dri3_open_cookie_t -xcb_dri3_open (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t provider /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_OPEN, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri3_open_cookie_t xcb_ret; - xcb_dri3_open_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.provider = provider; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED|XCB_REQUEST_REPLY_FDS, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri3_open_cookie_t -xcb_dri3_open_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t provider /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_OPEN, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri3_open_cookie_t xcb_ret; - xcb_dri3_open_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.provider = provider; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_REPLY_FDS, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri3_open_reply_t * -xcb_dri3_open_reply (xcb_connection_t *c /**< */, - xcb_dri3_open_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri3_open_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int * -xcb_dri3_open_reply_fds (xcb_connection_t *c /**< */, - xcb_dri3_open_reply_t *reply /**< */) -{ - return xcb_get_reply_fds(c, reply, sizeof(xcb_dri3_open_reply_t) + 4 * reply->length); -} - -xcb_void_cookie_t -xcb_dri3_pixmap_from_buffer_checked (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_drawable_t drawable /**< */, - uint32_t size /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t stride /**< */, - uint8_t depth /**< */, - uint8_t bpp /**< */, - int32_t pixmap_fd /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_PIXMAP_FROM_BUFFER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dri3_pixmap_from_buffer_request_t xcb_out; - - xcb_out.pixmap = pixmap; - xcb_out.drawable = drawable; - xcb_out.size = size; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.stride = stride; - xcb_out.depth = depth; - xcb_out.bpp = bpp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_send_fd(c, pixmap_fd); - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dri3_pixmap_from_buffer (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_drawable_t drawable /**< */, - uint32_t size /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t stride /**< */, - uint8_t depth /**< */, - uint8_t bpp /**< */, - int32_t pixmap_fd /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_PIXMAP_FROM_BUFFER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dri3_pixmap_from_buffer_request_t xcb_out; - - xcb_out.pixmap = pixmap; - xcb_out.drawable = drawable; - xcb_out.size = size; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.stride = stride; - xcb_out.depth = depth; - xcb_out.bpp = bpp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_send_fd(c, pixmap_fd); - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri3_buffer_from_pixmap_cookie_t -xcb_dri3_buffer_from_pixmap (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_BUFFER_FROM_PIXMAP, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri3_buffer_from_pixmap_cookie_t xcb_ret; - xcb_dri3_buffer_from_pixmap_request_t xcb_out; - - xcb_out.pixmap = pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED|XCB_REQUEST_REPLY_FDS, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri3_buffer_from_pixmap_cookie_t -xcb_dri3_buffer_from_pixmap_unchecked (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_BUFFER_FROM_PIXMAP, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri3_buffer_from_pixmap_cookie_t xcb_ret; - xcb_dri3_buffer_from_pixmap_request_t xcb_out; - - xcb_out.pixmap = pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_REPLY_FDS, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri3_buffer_from_pixmap_reply_t * -xcb_dri3_buffer_from_pixmap_reply (xcb_connection_t *c /**< */, - xcb_dri3_buffer_from_pixmap_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri3_buffer_from_pixmap_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int * -xcb_dri3_buffer_from_pixmap_reply_fds (xcb_connection_t *c /**< */, - xcb_dri3_buffer_from_pixmap_reply_t *reply /**< */) -{ - return xcb_get_reply_fds(c, reply, sizeof(xcb_dri3_buffer_from_pixmap_reply_t) + 4 * reply->length); -} - -xcb_void_cookie_t -xcb_dri3_fence_from_fd_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t fence /**< */, - uint8_t initially_triggered /**< */, - int32_t fence_fd /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_FENCE_FROM_FD, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dri3_fence_from_fd_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.fence = fence; - xcb_out.initially_triggered = initially_triggered; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_send_fd(c, fence_fd); - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_dri3_fence_from_fd (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t fence /**< */, - uint8_t initially_triggered /**< */, - int32_t fence_fd /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_FENCE_FROM_FD, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_dri3_fence_from_fd_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.fence = fence; - xcb_out.initially_triggered = initially_triggered; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_send_fd(c, fence_fd); - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri3_fd_from_fence_cookie_t -xcb_dri3_fd_from_fence (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t fence /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_FD_FROM_FENCE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri3_fd_from_fence_cookie_t xcb_ret; - xcb_dri3_fd_from_fence_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.fence = fence; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED|XCB_REQUEST_REPLY_FDS, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri3_fd_from_fence_cookie_t -xcb_dri3_fd_from_fence_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t fence /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_dri3_id, - /* opcode */ XCB_DRI3_FD_FROM_FENCE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_dri3_fd_from_fence_cookie_t xcb_ret; - xcb_dri3_fd_from_fence_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.fence = fence; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_REPLY_FDS, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_dri3_fd_from_fence_reply_t * -xcb_dri3_fd_from_fence_reply (xcb_connection_t *c /**< */, - xcb_dri3_fd_from_fence_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_dri3_fd_from_fence_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int * -xcb_dri3_fd_from_fence_reply_fds (xcb_connection_t *c /**< */, - xcb_dri3_fd_from_fence_reply_t *reply /**< */) -{ - return xcb_get_reply_fds(c, reply, sizeof(xcb_dri3_fd_from_fence_reply_t) + 4 * reply->length); -} - diff --git a/external/mit/xorg/lib/libxcb/files/dri3.h b/external/mit/xorg/lib/libxcb/files/dri3.h deleted file mode 100644 index 6ca7822d9..000000000 --- a/external/mit/xorg/lib/libxcb/files/dri3.h +++ /dev/null @@ -1,511 +0,0 @@ -/* - * This file generated automatically from dri3.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_DRI3_API XCB DRI3 API - * @brief DRI3 XCB Protocol Implementation. - * @{ - **/ - -#ifndef __DRI3_H -#define __DRI3_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_DRI3_MAJOR_VERSION 1 -#define XCB_DRI3_MINOR_VERSION 0 - -extern xcb_extension_t xcb_dri3_id; - -/** - * @brief xcb_dri3_query_version_cookie_t - **/ -typedef struct xcb_dri3_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri3_query_version_cookie_t; - -/** Opcode for xcb_dri3_query_version. */ -#define XCB_DRI3_QUERY_VERSION 0 - -/** - * @brief xcb_dri3_query_version_request_t - **/ -typedef struct xcb_dri3_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ -} xcb_dri3_query_version_request_t; - -/** - * @brief xcb_dri3_query_version_reply_t - **/ -typedef struct xcb_dri3_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ -} xcb_dri3_query_version_reply_t; - -/** - * @brief xcb_dri3_open_cookie_t - **/ -typedef struct xcb_dri3_open_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri3_open_cookie_t; - -/** Opcode for xcb_dri3_open. */ -#define XCB_DRI3_OPEN 1 - -/** - * @brief xcb_dri3_open_request_t - **/ -typedef struct xcb_dri3_open_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t provider; /**< */ -} xcb_dri3_open_request_t; - -/** - * @brief xcb_dri3_open_reply_t - **/ -typedef struct xcb_dri3_open_reply_t { - uint8_t response_type; /**< */ - uint8_t nfd; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad0[24]; /**< */ -} xcb_dri3_open_reply_t; - -/** Opcode for xcb_dri3_pixmap_from_buffer. */ -#define XCB_DRI3_PIXMAP_FROM_BUFFER 2 - -/** - * @brief xcb_dri3_pixmap_from_buffer_request_t - **/ -typedef struct xcb_dri3_pixmap_from_buffer_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_pixmap_t pixmap; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t size; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t stride; /**< */ - uint8_t depth; /**< */ - uint8_t bpp; /**< */ -} xcb_dri3_pixmap_from_buffer_request_t; - -/** - * @brief xcb_dri3_buffer_from_pixmap_cookie_t - **/ -typedef struct xcb_dri3_buffer_from_pixmap_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri3_buffer_from_pixmap_cookie_t; - -/** Opcode for xcb_dri3_buffer_from_pixmap. */ -#define XCB_DRI3_BUFFER_FROM_PIXMAP 3 - -/** - * @brief xcb_dri3_buffer_from_pixmap_request_t - **/ -typedef struct xcb_dri3_buffer_from_pixmap_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_pixmap_t pixmap; /**< */ -} xcb_dri3_buffer_from_pixmap_request_t; - -/** - * @brief xcb_dri3_buffer_from_pixmap_reply_t - **/ -typedef struct xcb_dri3_buffer_from_pixmap_reply_t { - uint8_t response_type; /**< */ - uint8_t nfd; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t size; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t stride; /**< */ - uint8_t depth; /**< */ - uint8_t bpp; /**< */ - uint8_t pad0[12]; /**< */ -} xcb_dri3_buffer_from_pixmap_reply_t; - -/** Opcode for xcb_dri3_fence_from_fd. */ -#define XCB_DRI3_FENCE_FROM_FD 4 - -/** - * @brief xcb_dri3_fence_from_fd_request_t - **/ -typedef struct xcb_dri3_fence_from_fd_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t fence; /**< */ - uint8_t initially_triggered; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_dri3_fence_from_fd_request_t; - -/** - * @brief xcb_dri3_fd_from_fence_cookie_t - **/ -typedef struct xcb_dri3_fd_from_fence_cookie_t { - unsigned int sequence; /**< */ -} xcb_dri3_fd_from_fence_cookie_t; - -/** Opcode for xcb_dri3_fd_from_fence. */ -#define XCB_DRI3_FD_FROM_FENCE 5 - -/** - * @brief xcb_dri3_fd_from_fence_request_t - **/ -typedef struct xcb_dri3_fd_from_fence_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t fence; /**< */ -} xcb_dri3_fd_from_fence_request_t; - -/** - * @brief xcb_dri3_fd_from_fence_reply_t - **/ -typedef struct xcb_dri3_fd_from_fence_reply_t { - uint8_t response_type; /**< */ - uint8_t nfd; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad0[24]; /**< */ -} xcb_dri3_fd_from_fence_reply_t; - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri3_query_version_cookie_t -xcb_dri3_query_version (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri3_query_version_cookie_t -xcb_dri3_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri3_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri3_query_version_reply_t * -xcb_dri3_query_version_reply (xcb_connection_t *c /**< */, - xcb_dri3_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri3_open_cookie_t -xcb_dri3_open (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t provider /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri3_open_cookie_t -xcb_dri3_open_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t provider /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri3_open_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri3_open_reply_t * -xcb_dri3_open_reply (xcb_connection_t *c /**< */, - xcb_dri3_open_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Return the reply fds - * @param c The connection - * @param reply The reply - * - * Returns the array of reply fds of the request asked by - * - * The returned value must be freed by the caller using free(). - */ -int * -xcb_dri3_open_reply_fds (xcb_connection_t *c /**< */, - xcb_dri3_open_reply_t *reply /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_dri3_pixmap_from_buffer_checked (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_drawable_t drawable /**< */, - uint32_t size /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t stride /**< */, - uint8_t depth /**< */, - uint8_t bpp /**< */, - int32_t pixmap_fd /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_dri3_pixmap_from_buffer (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_drawable_t drawable /**< */, - uint32_t size /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t stride /**< */, - uint8_t depth /**< */, - uint8_t bpp /**< */, - int32_t pixmap_fd /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri3_buffer_from_pixmap_cookie_t -xcb_dri3_buffer_from_pixmap (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri3_buffer_from_pixmap_cookie_t -xcb_dri3_buffer_from_pixmap_unchecked (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri3_buffer_from_pixmap_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri3_buffer_from_pixmap_reply_t * -xcb_dri3_buffer_from_pixmap_reply (xcb_connection_t *c /**< */, - xcb_dri3_buffer_from_pixmap_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Return the reply fds - * @param c The connection - * @param reply The reply - * - * Returns the array of reply fds of the request asked by - * - * The returned value must be freed by the caller using free(). - */ -int * -xcb_dri3_buffer_from_pixmap_reply_fds (xcb_connection_t *c /**< */, - xcb_dri3_buffer_from_pixmap_reply_t *reply /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_dri3_fence_from_fd_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t fence /**< */, - uint8_t initially_triggered /**< */, - int32_t fence_fd /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_dri3_fence_from_fd (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t fence /**< */, - uint8_t initially_triggered /**< */, - int32_t fence_fd /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_dri3_fd_from_fence_cookie_t -xcb_dri3_fd_from_fence (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t fence /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_dri3_fd_from_fence_cookie_t -xcb_dri3_fd_from_fence_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t fence /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_dri3_fd_from_fence_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_dri3_fd_from_fence_reply_t * -xcb_dri3_fd_from_fence_reply (xcb_connection_t *c /**< */, - xcb_dri3_fd_from_fence_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Return the reply fds - * @param c The connection - * @param reply The reply - * - * Returns the array of reply fds of the request asked by - * - * The returned value must be freed by the caller using free(). - */ -int * -xcb_dri3_fd_from_fence_reply_fds (xcb_connection_t *c /**< */, - xcb_dri3_fd_from_fence_reply_t *reply /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/glx.c b/external/mit/xorg/lib/libxcb/files/glx.c deleted file mode 100644 index 33db8d48b..000000000 --- a/external/mit/xorg/lib/libxcb/files/glx.c +++ /dev/null @@ -1,10266 +0,0 @@ -/* - * This file generated automatically from glx.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "glx.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_glx_id = { "GLX", 0 }; - -void -xcb_glx_pixmap_next (xcb_glx_pixmap_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_glx_pixmap_t); -} - -xcb_generic_iterator_t -xcb_glx_pixmap_end (xcb_glx_pixmap_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_glx_context_next (xcb_glx_context_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_glx_context_t); -} - -xcb_generic_iterator_t -xcb_glx_context_end (xcb_glx_context_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_glx_pbuffer_next (xcb_glx_pbuffer_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_glx_pbuffer_t); -} - -xcb_generic_iterator_t -xcb_glx_pbuffer_end (xcb_glx_pbuffer_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_glx_window_next (xcb_glx_window_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_glx_window_t); -} - -xcb_generic_iterator_t -xcb_glx_window_end (xcb_glx_window_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_glx_fbconfig_next (xcb_glx_fbconfig_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_glx_fbconfig_t); -} - -xcb_generic_iterator_t -xcb_glx_fbconfig_end (xcb_glx_fbconfig_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_glx_drawable_next (xcb_glx_drawable_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_glx_drawable_t); -} - -xcb_generic_iterator_t -xcb_glx_drawable_end (xcb_glx_drawable_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_glx_float32_next (xcb_glx_float32_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_glx_float32_t); -} - -xcb_generic_iterator_t -xcb_glx_float32_end (xcb_glx_float32_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_glx_float64_next (xcb_glx_float64_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_glx_float64_t); -} - -xcb_generic_iterator_t -xcb_glx_float64_end (xcb_glx_float64_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_glx_bool32_next (xcb_glx_bool32_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_glx_bool32_t); -} - -xcb_generic_iterator_t -xcb_glx_bool32_end (xcb_glx_bool32_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_glx_context_tag_next (xcb_glx_context_tag_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_glx_context_tag_t); -} - -xcb_generic_iterator_t -xcb_glx_context_tag_end (xcb_glx_context_tag_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_glx_render_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_render_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += data_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_render_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_RENDER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_render_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_render (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_RENDER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_render_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_render_large_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_render_large_request_t *_aux = (xcb_glx_render_large_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_render_large_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->data_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_render_large_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint16_t request_num /**< */, - uint16_t request_total /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_RENDER_LARGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_render_large_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.request_num = request_num; - xcb_out.request_total = request_total; - xcb_out.data_len = data_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_render_large (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint16_t request_num /**< */, - uint16_t request_total /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_RENDER_LARGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_render_large_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.request_num = request_num; - xcb_out.request_total = request_total; - xcb_out.data_len = data_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_create_context_checked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_visualid_t visual /**< */, - uint32_t screen /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_context_request_t xcb_out; - - xcb_out.context = context; - xcb_out.visual = visual; - xcb_out.screen = screen; - xcb_out.share_list = share_list; - xcb_out.is_direct = is_direct; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_create_context (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_visualid_t visual /**< */, - uint32_t screen /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_context_request_t xcb_out; - - xcb_out.context = context; - xcb_out.visual = visual; - xcb_out.screen = screen; - xcb_out.share_list = share_list; - xcb_out.is_direct = is_direct; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_destroy_context_checked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DESTROY_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_destroy_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_destroy_context (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DESTROY_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_destroy_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_make_current_cookie_t -xcb_glx_make_current (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_context_tag_t old_context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_MAKE_CURRENT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_make_current_cookie_t xcb_ret; - xcb_glx_make_current_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.context = context; - xcb_out.old_context_tag = old_context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_make_current_cookie_t -xcb_glx_make_current_unchecked (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_context_tag_t old_context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_MAKE_CURRENT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_make_current_cookie_t xcb_ret; - xcb_glx_make_current_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.context = context; - xcb_out.old_context_tag = old_context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_make_current_reply_t * -xcb_glx_make_current_reply (xcb_connection_t *c /**< */, - xcb_glx_make_current_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_make_current_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_glx_is_direct_cookie_t -xcb_glx_is_direct (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_IS_DIRECT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_is_direct_cookie_t xcb_ret; - xcb_glx_is_direct_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_is_direct_cookie_t -xcb_glx_is_direct_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_IS_DIRECT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_is_direct_cookie_t xcb_ret; - xcb_glx_is_direct_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_is_direct_reply_t * -xcb_glx_is_direct_reply (xcb_connection_t *c /**< */, - xcb_glx_is_direct_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_is_direct_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_glx_query_version_cookie_t -xcb_glx_query_version (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_query_version_cookie_t xcb_ret; - xcb_glx_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_query_version_cookie_t -xcb_glx_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_query_version_cookie_t xcb_ret; - xcb_glx_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_query_version_reply_t * -xcb_glx_query_version_reply (xcb_connection_t *c /**< */, - xcb_glx_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_glx_wait_gl_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_WAIT_GL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_wait_gl_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_wait_gl (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_WAIT_GL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_wait_gl_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_wait_x_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_WAIT_X, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_wait_x_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_wait_x (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_WAIT_X, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_wait_x_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_copy_context_checked (xcb_connection_t *c /**< */, - xcb_glx_context_t src /**< */, - xcb_glx_context_t dest /**< */, - uint32_t mask /**< */, - xcb_glx_context_tag_t src_context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_COPY_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_copy_context_request_t xcb_out; - - xcb_out.src = src; - xcb_out.dest = dest; - xcb_out.mask = mask; - xcb_out.src_context_tag = src_context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_copy_context (xcb_connection_t *c /**< */, - xcb_glx_context_t src /**< */, - xcb_glx_context_t dest /**< */, - uint32_t mask /**< */, - xcb_glx_context_tag_t src_context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_COPY_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_copy_context_request_t xcb_out; - - xcb_out.src = src; - xcb_out.dest = dest; - xcb_out.mask = mask; - xcb_out.src_context_tag = src_context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_swap_buffers_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - xcb_glx_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_SWAP_BUFFERS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_swap_buffers_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_swap_buffers (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - xcb_glx_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_SWAP_BUFFERS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_swap_buffers_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_use_x_font_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - xcb_font_t font /**< */, - uint32_t first /**< */, - uint32_t count /**< */, - uint32_t list_base /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_USE_X_FONT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_use_x_font_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.font = font; - xcb_out.first = first; - xcb_out.count = count; - xcb_out.list_base = list_base; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_use_x_font (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - xcb_font_t font /**< */, - uint32_t first /**< */, - uint32_t count /**< */, - uint32_t list_base /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_USE_X_FONT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_use_x_font_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.font = font; - xcb_out.first = first; - xcb_out.count = count; - xcb_out.list_base = list_base; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_create_glx_pixmap_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_visualid_t visual /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_GLX_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_glx_pixmap_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.visual = visual; - xcb_out.pixmap = pixmap; - xcb_out.glx_pixmap = glx_pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_create_glx_pixmap (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_visualid_t visual /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_GLX_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_glx_pixmap_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.visual = visual; - xcb_out.pixmap = pixmap; - xcb_out.glx_pixmap = glx_pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_get_visual_configs_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_visual_configs_reply_t *_aux = (xcb_glx_get_visual_configs_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_visual_configs_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* property_list */ - xcb_block_len += _aux->length * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_visual_configs_cookie_t -xcb_glx_get_visual_configs (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_VISUAL_CONFIGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_visual_configs_cookie_t xcb_ret; - xcb_glx_get_visual_configs_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_visual_configs_cookie_t -xcb_glx_get_visual_configs_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_VISUAL_CONFIGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_visual_configs_cookie_t xcb_ret; - xcb_glx_get_visual_configs_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_glx_get_visual_configs_property_list (const xcb_glx_get_visual_configs_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_glx_get_visual_configs_property_list_length (const xcb_glx_get_visual_configs_reply_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_glx_get_visual_configs_property_list_end (const xcb_glx_get_visual_configs_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_visual_configs_reply_t * -xcb_glx_get_visual_configs_reply (xcb_connection_t *c /**< */, - xcb_glx_get_visual_configs_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_visual_configs_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_glx_destroy_glx_pixmap_checked (xcb_connection_t *c /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DESTROY_GLX_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_destroy_glx_pixmap_request_t xcb_out; - - xcb_out.glx_pixmap = glx_pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_destroy_glx_pixmap (xcb_connection_t *c /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DESTROY_GLX_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_destroy_glx_pixmap_request_t xcb_out; - - xcb_out.glx_pixmap = glx_pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_vendor_private_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_vendor_private_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += data_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_vendor_private_checked (xcb_connection_t *c /**< */, - uint32_t vendor_code /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_VENDOR_PRIVATE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_vendor_private_request_t xcb_out; - - xcb_out.vendor_code = vendor_code; - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_vendor_private (xcb_connection_t *c /**< */, - uint32_t vendor_code /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_VENDOR_PRIVATE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_vendor_private_request_t xcb_out; - - xcb_out.vendor_code = vendor_code; - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_vendor_private_with_reply_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_vendor_private_with_reply_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += data_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_vendor_private_with_reply_cookie_t -xcb_glx_vendor_private_with_reply (xcb_connection_t *c /**< */, - uint32_t vendor_code /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_VENDOR_PRIVATE_WITH_REPLY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_glx_vendor_private_with_reply_cookie_t xcb_ret; - xcb_glx_vendor_private_with_reply_request_t xcb_out; - - xcb_out.vendor_code = vendor_code; - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_vendor_private_with_reply_cookie_t -xcb_glx_vendor_private_with_reply_unchecked (xcb_connection_t *c /**< */, - uint32_t vendor_code /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_VENDOR_PRIVATE_WITH_REPLY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_glx_vendor_private_with_reply_cookie_t xcb_ret; - xcb_glx_vendor_private_with_reply_request_t xcb_out; - - xcb_out.vendor_code = vendor_code; - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_vendor_private_with_reply_data_2 (const xcb_glx_vendor_private_with_reply_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_vendor_private_with_reply_data_2_length (const xcb_glx_vendor_private_with_reply_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_glx_vendor_private_with_reply_data_2_end (const xcb_glx_vendor_private_with_reply_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_vendor_private_with_reply_reply_t * -xcb_glx_vendor_private_with_reply_reply (xcb_connection_t *c /**< */, - xcb_glx_vendor_private_with_reply_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_vendor_private_with_reply_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_glx_query_extensions_string_cookie_t -xcb_glx_query_extensions_string (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_QUERY_EXTENSIONS_STRING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_query_extensions_string_cookie_t xcb_ret; - xcb_glx_query_extensions_string_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_query_extensions_string_cookie_t -xcb_glx_query_extensions_string_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_QUERY_EXTENSIONS_STRING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_query_extensions_string_cookie_t xcb_ret; - xcb_glx_query_extensions_string_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_query_extensions_string_reply_t * -xcb_glx_query_extensions_string_reply (xcb_connection_t *c /**< */, - xcb_glx_query_extensions_string_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_query_extensions_string_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_query_server_string_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_query_server_string_reply_t *_aux = (xcb_glx_query_server_string_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_query_server_string_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* string */ - xcb_block_len += _aux->str_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_query_server_string_cookie_t -xcb_glx_query_server_string (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_QUERY_SERVER_STRING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_query_server_string_cookie_t xcb_ret; - xcb_glx_query_server_string_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.name = name; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_query_server_string_cookie_t -xcb_glx_query_server_string_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_QUERY_SERVER_STRING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_query_server_string_cookie_t xcb_ret; - xcb_glx_query_server_string_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.name = name; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_glx_query_server_string_string (const xcb_glx_query_server_string_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_glx_query_server_string_string_length (const xcb_glx_query_server_string_reply_t *R /**< */) -{ - return R->str_len; -} - -xcb_generic_iterator_t -xcb_glx_query_server_string_string_end (const xcb_glx_query_server_string_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->str_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_query_server_string_reply_t * -xcb_glx_query_server_string_reply (xcb_connection_t *c /**< */, - xcb_glx_query_server_string_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_query_server_string_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_client_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_client_info_request_t *_aux = (xcb_glx_client_info_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_client_info_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* string */ - xcb_block_len += _aux->str_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_client_info_checked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t str_len /**< */, - const char *string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CLIENT_INFO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_client_info_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - xcb_out.str_len = str_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char string */ - xcb_parts[4].iov_base = (char *) string; - xcb_parts[4].iov_len = str_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_client_info (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t str_len /**< */, - const char *string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CLIENT_INFO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_client_info_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - xcb_out.str_len = str_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char string */ - xcb_parts[4].iov_base = (char *) string; - xcb_parts[4].iov_len = str_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_get_fb_configs_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_fb_configs_reply_t *_aux = (xcb_glx_get_fb_configs_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_fb_configs_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* property_list */ - xcb_block_len += _aux->length * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_fb_configs_cookie_t -xcb_glx_get_fb_configs (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_FB_CONFIGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_fb_configs_cookie_t xcb_ret; - xcb_glx_get_fb_configs_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_fb_configs_cookie_t -xcb_glx_get_fb_configs_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_FB_CONFIGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_fb_configs_cookie_t xcb_ret; - xcb_glx_get_fb_configs_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_glx_get_fb_configs_property_list (const xcb_glx_get_fb_configs_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_glx_get_fb_configs_property_list_length (const xcb_glx_get_fb_configs_reply_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_glx_get_fb_configs_property_list_end (const xcb_glx_get_fb_configs_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_fb_configs_reply_t * -xcb_glx_get_fb_configs_reply (xcb_connection_t *c /**< */, - xcb_glx_get_fb_configs_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_fb_configs_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_create_pixmap_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_create_pixmap_request_t *_aux = (xcb_glx_create_pixmap_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_create_pixmap_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attribs */ - xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_create_pixmap_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_pixmap_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.fbconfig = fbconfig; - xcb_out.pixmap = pixmap; - xcb_out.glx_pixmap = glx_pixmap; - xcb_out.num_attribs = num_attribs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attribs */ - xcb_parts[4].iov_base = (char *) attribs; - xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_create_pixmap (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_pixmap_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.fbconfig = fbconfig; - xcb_out.pixmap = pixmap; - xcb_out.glx_pixmap = glx_pixmap; - xcb_out.num_attribs = num_attribs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attribs */ - xcb_parts[4].iov_base = (char *) attribs; - xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_destroy_pixmap_checked (xcb_connection_t *c /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DESTROY_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_destroy_pixmap_request_t xcb_out; - - xcb_out.glx_pixmap = glx_pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_destroy_pixmap (xcb_connection_t *c /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DESTROY_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_destroy_pixmap_request_t xcb_out; - - xcb_out.glx_pixmap = glx_pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_create_new_context_checked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - uint32_t screen /**< */, - uint32_t render_type /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_NEW_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_new_context_request_t xcb_out; - - xcb_out.context = context; - xcb_out.fbconfig = fbconfig; - xcb_out.screen = screen; - xcb_out.render_type = render_type; - xcb_out.share_list = share_list; - xcb_out.is_direct = is_direct; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_create_new_context (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - uint32_t screen /**< */, - uint32_t render_type /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_NEW_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_new_context_request_t xcb_out; - - xcb_out.context = context; - xcb_out.fbconfig = fbconfig; - xcb_out.screen = screen; - xcb_out.render_type = render_type; - xcb_out.share_list = share_list; - xcb_out.is_direct = is_direct; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_query_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_query_context_reply_t *_aux = (xcb_glx_query_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_query_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attribs */ - xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_query_context_cookie_t -xcb_glx_query_context (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_QUERY_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_query_context_cookie_t xcb_ret; - xcb_glx_query_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_query_context_cookie_t -xcb_glx_query_context_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_QUERY_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_query_context_cookie_t xcb_ret; - xcb_glx_query_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_glx_query_context_attribs (const xcb_glx_query_context_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_glx_query_context_attribs_length (const xcb_glx_query_context_reply_t *R /**< */) -{ - return (R->num_attribs * 2); -} - -xcb_generic_iterator_t -xcb_glx_query_context_attribs_end (const xcb_glx_query_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + ((R->num_attribs * 2)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_query_context_reply_t * -xcb_glx_query_context_reply (xcb_connection_t *c /**< */, - xcb_glx_query_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_query_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_glx_make_context_current_cookie_t -xcb_glx_make_context_current (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t old_context_tag /**< */, - xcb_glx_drawable_t drawable /**< */, - xcb_glx_drawable_t read_drawable /**< */, - xcb_glx_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_MAKE_CONTEXT_CURRENT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_make_context_current_cookie_t xcb_ret; - xcb_glx_make_context_current_request_t xcb_out; - - xcb_out.old_context_tag = old_context_tag; - xcb_out.drawable = drawable; - xcb_out.read_drawable = read_drawable; - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_make_context_current_cookie_t -xcb_glx_make_context_current_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t old_context_tag /**< */, - xcb_glx_drawable_t drawable /**< */, - xcb_glx_drawable_t read_drawable /**< */, - xcb_glx_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_MAKE_CONTEXT_CURRENT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_make_context_current_cookie_t xcb_ret; - xcb_glx_make_context_current_request_t xcb_out; - - xcb_out.old_context_tag = old_context_tag; - xcb_out.drawable = drawable; - xcb_out.read_drawable = read_drawable; - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_make_context_current_reply_t * -xcb_glx_make_context_current_reply (xcb_connection_t *c /**< */, - xcb_glx_make_context_current_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_make_context_current_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_create_pbuffer_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_create_pbuffer_request_t *_aux = (xcb_glx_create_pbuffer_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_create_pbuffer_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attribs */ - xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_create_pbuffer_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_glx_pbuffer_t pbuffer /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_PBUFFER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_pbuffer_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.fbconfig = fbconfig; - xcb_out.pbuffer = pbuffer; - xcb_out.num_attribs = num_attribs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attribs */ - xcb_parts[4].iov_base = (char *) attribs; - xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_create_pbuffer (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_glx_pbuffer_t pbuffer /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_PBUFFER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_pbuffer_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.fbconfig = fbconfig; - xcb_out.pbuffer = pbuffer; - xcb_out.num_attribs = num_attribs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attribs */ - xcb_parts[4].iov_base = (char *) attribs; - xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_destroy_pbuffer_checked (xcb_connection_t *c /**< */, - xcb_glx_pbuffer_t pbuffer /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DESTROY_PBUFFER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_destroy_pbuffer_request_t xcb_out; - - xcb_out.pbuffer = pbuffer; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_destroy_pbuffer (xcb_connection_t *c /**< */, - xcb_glx_pbuffer_t pbuffer /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DESTROY_PBUFFER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_destroy_pbuffer_request_t xcb_out; - - xcb_out.pbuffer = pbuffer; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_get_drawable_attributes_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_drawable_attributes_reply_t *_aux = (xcb_glx_get_drawable_attributes_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_drawable_attributes_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attribs */ - xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_drawable_attributes_cookie_t -xcb_glx_get_drawable_attributes (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_DRAWABLE_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_drawable_attributes_cookie_t xcb_ret; - xcb_glx_get_drawable_attributes_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_drawable_attributes_cookie_t -xcb_glx_get_drawable_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_DRAWABLE_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_drawable_attributes_cookie_t xcb_ret; - xcb_glx_get_drawable_attributes_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_glx_get_drawable_attributes_attribs (const xcb_glx_get_drawable_attributes_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_glx_get_drawable_attributes_attribs_length (const xcb_glx_get_drawable_attributes_reply_t *R /**< */) -{ - return (R->num_attribs * 2); -} - -xcb_generic_iterator_t -xcb_glx_get_drawable_attributes_attribs_end (const xcb_glx_get_drawable_attributes_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + ((R->num_attribs * 2)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_drawable_attributes_reply_t * -xcb_glx_get_drawable_attributes_reply (xcb_connection_t *c /**< */, - xcb_glx_get_drawable_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_drawable_attributes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_change_drawable_attributes_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_change_drawable_attributes_request_t *_aux = (xcb_glx_change_drawable_attributes_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_change_drawable_attributes_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attribs */ - xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_change_drawable_attributes_checked (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CHANGE_DRAWABLE_ATTRIBUTES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_change_drawable_attributes_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.num_attribs = num_attribs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attribs */ - xcb_parts[4].iov_base = (char *) attribs; - xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_change_drawable_attributes (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CHANGE_DRAWABLE_ATTRIBUTES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_change_drawable_attributes_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.num_attribs = num_attribs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attribs */ - xcb_parts[4].iov_base = (char *) attribs; - xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_create_window_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_create_window_request_t *_aux = (xcb_glx_create_window_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_create_window_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attribs */ - xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_create_window_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_window_t window /**< */, - xcb_glx_window_t glx_window /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_window_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.fbconfig = fbconfig; - xcb_out.window = window; - xcb_out.glx_window = glx_window; - xcb_out.num_attribs = num_attribs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attribs */ - xcb_parts[4].iov_base = (char *) attribs; - xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_create_window (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_window_t window /**< */, - xcb_glx_window_t glx_window /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_window_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.fbconfig = fbconfig; - xcb_out.window = window; - xcb_out.glx_window = glx_window; - xcb_out.num_attribs = num_attribs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attribs */ - xcb_parts[4].iov_base = (char *) attribs; - xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_delete_window_checked (xcb_connection_t *c /**< */, - xcb_glx_window_t glxwindow /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DELETE_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_delete_window_request_t xcb_out; - - xcb_out.glxwindow = glxwindow; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_delete_window (xcb_connection_t *c /**< */, - xcb_glx_window_t glxwindow /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DELETE_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_delete_window_request_t xcb_out; - - xcb_out.glxwindow = glxwindow; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_set_client_info_arb_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_set_client_info_arb_request_t *_aux = (xcb_glx_set_client_info_arb_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_set_client_info_arb_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* gl_versions */ - xcb_block_len += (_aux->num_versions * 2) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* gl_extension_string */ - xcb_block_len += _aux->gl_str_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* glx_extension_string */ - xcb_block_len += _aux->glx_str_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_set_client_info_arb_checked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t num_versions /**< */, - uint32_t gl_str_len /**< */, - uint32_t glx_str_len /**< */, - const uint32_t *gl_versions /**< */, - const char *gl_extension_string /**< */, - const char *glx_extension_string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 8, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_SET_CLIENT_INFO_ARB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[10]; - xcb_void_cookie_t xcb_ret; - xcb_glx_set_client_info_arb_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - xcb_out.num_versions = num_versions; - xcb_out.gl_str_len = gl_str_len; - xcb_out.glx_str_len = glx_str_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t gl_versions */ - xcb_parts[4].iov_base = (char *) gl_versions; - xcb_parts[4].iov_len = (num_versions * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* char gl_extension_string */ - xcb_parts[6].iov_base = (char *) gl_extension_string; - xcb_parts[6].iov_len = gl_str_len * sizeof(char); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - /* char glx_extension_string */ - xcb_parts[8].iov_base = (char *) glx_extension_string; - xcb_parts[8].iov_len = glx_str_len * sizeof(char); - xcb_parts[9].iov_base = 0; - xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_set_client_info_arb (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t num_versions /**< */, - uint32_t gl_str_len /**< */, - uint32_t glx_str_len /**< */, - const uint32_t *gl_versions /**< */, - const char *gl_extension_string /**< */, - const char *glx_extension_string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 8, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_SET_CLIENT_INFO_ARB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[10]; - xcb_void_cookie_t xcb_ret; - xcb_glx_set_client_info_arb_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - xcb_out.num_versions = num_versions; - xcb_out.gl_str_len = gl_str_len; - xcb_out.glx_str_len = glx_str_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t gl_versions */ - xcb_parts[4].iov_base = (char *) gl_versions; - xcb_parts[4].iov_len = (num_versions * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* char gl_extension_string */ - xcb_parts[6].iov_base = (char *) gl_extension_string; - xcb_parts[6].iov_len = gl_str_len * sizeof(char); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - /* char glx_extension_string */ - xcb_parts[8].iov_base = (char *) glx_extension_string; - xcb_parts[8].iov_len = glx_str_len * sizeof(char); - xcb_parts[9].iov_base = 0; - xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_create_context_attribs_arb_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_create_context_attribs_arb_request_t *_aux = (xcb_glx_create_context_attribs_arb_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_create_context_attribs_arb_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attribs */ - xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_create_context_attribs_arb_checked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - uint32_t screen /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_CONTEXT_ATTRIBS_ARB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_context_attribs_arb_request_t xcb_out; - - xcb_out.context = context; - xcb_out.fbconfig = fbconfig; - xcb_out.screen = screen; - xcb_out.share_list = share_list; - xcb_out.is_direct = is_direct; - memset(xcb_out.pad0, 0, 3); - xcb_out.num_attribs = num_attribs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attribs */ - xcb_parts[4].iov_base = (char *) attribs; - xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_create_context_attribs_arb (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - uint32_t screen /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_CREATE_CONTEXT_ATTRIBS_ARB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_create_context_attribs_arb_request_t xcb_out; - - xcb_out.context = context; - xcb_out.fbconfig = fbconfig; - xcb_out.screen = screen; - xcb_out.share_list = share_list; - xcb_out.is_direct = is_direct; - memset(xcb_out.pad0, 0, 3); - xcb_out.num_attribs = num_attribs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t attribs */ - xcb_parts[4].iov_base = (char *) attribs; - xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_set_client_info_2arb_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_set_client_info_2arb_request_t *_aux = (xcb_glx_set_client_info_2arb_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_set_client_info_2arb_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* gl_versions */ - xcb_block_len += (_aux->num_versions * 3) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* gl_extension_string */ - xcb_block_len += _aux->gl_str_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* glx_extension_string */ - xcb_block_len += _aux->glx_str_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_set_client_info_2arb_checked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t num_versions /**< */, - uint32_t gl_str_len /**< */, - uint32_t glx_str_len /**< */, - const uint32_t *gl_versions /**< */, - const char *gl_extension_string /**< */, - const char *glx_extension_string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 8, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_SET_CLIENT_INFO_2ARB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[10]; - xcb_void_cookie_t xcb_ret; - xcb_glx_set_client_info_2arb_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - xcb_out.num_versions = num_versions; - xcb_out.gl_str_len = gl_str_len; - xcb_out.glx_str_len = glx_str_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t gl_versions */ - xcb_parts[4].iov_base = (char *) gl_versions; - xcb_parts[4].iov_len = (num_versions * 3) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* char gl_extension_string */ - xcb_parts[6].iov_base = (char *) gl_extension_string; - xcb_parts[6].iov_len = gl_str_len * sizeof(char); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - /* char glx_extension_string */ - xcb_parts[8].iov_base = (char *) glx_extension_string; - xcb_parts[8].iov_len = glx_str_len * sizeof(char); - xcb_parts[9].iov_base = 0; - xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_set_client_info_2arb (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t num_versions /**< */, - uint32_t gl_str_len /**< */, - uint32_t glx_str_len /**< */, - const uint32_t *gl_versions /**< */, - const char *gl_extension_string /**< */, - const char *glx_extension_string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 8, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_SET_CLIENT_INFO_2ARB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[10]; - xcb_void_cookie_t xcb_ret; - xcb_glx_set_client_info_2arb_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - xcb_out.num_versions = num_versions; - xcb_out.gl_str_len = gl_str_len; - xcb_out.glx_str_len = glx_str_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t gl_versions */ - xcb_parts[4].iov_base = (char *) gl_versions; - xcb_parts[4].iov_len = (num_versions * 3) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* char gl_extension_string */ - xcb_parts[6].iov_base = (char *) gl_extension_string; - xcb_parts[6].iov_len = gl_str_len * sizeof(char); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - /* char glx_extension_string */ - xcb_parts[8].iov_base = (char *) glx_extension_string; - xcb_parts[8].iov_len = glx_str_len * sizeof(char); - xcb_parts[9].iov_base = 0; - xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_new_list_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */, - uint32_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_NEW_LIST, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_new_list_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.list = list; - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_new_list (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */, - uint32_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_NEW_LIST, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_new_list_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.list = list; - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_end_list_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_END_LIST, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_end_list_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_end_list (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_END_LIST, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_end_list_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_delete_lists_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */, - int32_t range /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DELETE_LISTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_delete_lists_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.list = list; - xcb_out.range = range; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_delete_lists (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */, - int32_t range /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DELETE_LISTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_delete_lists_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.list = list; - xcb_out.range = range; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_gen_lists_cookie_t -xcb_glx_gen_lists (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t range /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GEN_LISTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_gen_lists_cookie_t xcb_ret; - xcb_glx_gen_lists_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.range = range; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_gen_lists_cookie_t -xcb_glx_gen_lists_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t range /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GEN_LISTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_gen_lists_cookie_t xcb_ret; - xcb_glx_gen_lists_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.range = range; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_gen_lists_reply_t * -xcb_glx_gen_lists_reply (xcb_connection_t *c /**< */, - xcb_glx_gen_lists_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_gen_lists_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_glx_feedback_buffer_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t size /**< */, - int32_t type /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_FEEDBACK_BUFFER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_feedback_buffer_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.size = size; - xcb_out.type = type; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_feedback_buffer (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t size /**< */, - int32_t type /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_FEEDBACK_BUFFER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_feedback_buffer_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.size = size; - xcb_out.type = type; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_select_buffer_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t size /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_SELECT_BUFFER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_select_buffer_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.size = size; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_select_buffer (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t size /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_SELECT_BUFFER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_select_buffer_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.size = size; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_render_mode_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_render_mode_reply_t *_aux = (xcb_glx_render_mode_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_render_mode_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_render_mode_cookie_t -xcb_glx_render_mode (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_RENDER_MODE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_render_mode_cookie_t xcb_ret; - xcb_glx_render_mode_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_render_mode_cookie_t -xcb_glx_render_mode_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_RENDER_MODE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_render_mode_cookie_t xcb_ret; - xcb_glx_render_mode_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_glx_render_mode_data (const xcb_glx_render_mode_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_glx_render_mode_data_length (const xcb_glx_render_mode_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_render_mode_data_end (const xcb_glx_render_mode_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_render_mode_reply_t * -xcb_glx_render_mode_reply (xcb_connection_t *c /**< */, - xcb_glx_render_mode_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_render_mode_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_glx_finish_cookie_t -xcb_glx_finish (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_FINISH, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_finish_cookie_t xcb_ret; - xcb_glx_finish_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_finish_cookie_t -xcb_glx_finish_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_FINISH, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_finish_cookie_t xcb_ret; - xcb_glx_finish_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_finish_reply_t * -xcb_glx_finish_reply (xcb_connection_t *c /**< */, - xcb_glx_finish_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_finish_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_glx_pixel_storef_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */, - xcb_glx_float32_t datum /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_PIXEL_STOREF, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_pixel_storef_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - xcb_out.datum = datum; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_pixel_storef (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */, - xcb_glx_float32_t datum /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_PIXEL_STOREF, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_pixel_storef_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - xcb_out.datum = datum; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_pixel_storei_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */, - int32_t datum /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_PIXEL_STOREI, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_pixel_storei_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - xcb_out.datum = datum; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_pixel_storei (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */, - int32_t datum /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_PIXEL_STOREI, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_pixel_storei_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - xcb_out.datum = datum; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_read_pixels_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_read_pixels_reply_t *_aux = (xcb_glx_read_pixels_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_read_pixels_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->length * 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_read_pixels_cookie_t -xcb_glx_read_pixels (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t x /**< */, - int32_t y /**< */, - int32_t width /**< */, - int32_t height /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t lsb_first /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_READ_PIXELS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_read_pixels_cookie_t xcb_ret; - xcb_glx_read_pixels_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - xcb_out.lsb_first = lsb_first; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_read_pixels_cookie_t -xcb_glx_read_pixels_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t x /**< */, - int32_t y /**< */, - int32_t width /**< */, - int32_t height /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t lsb_first /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_READ_PIXELS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_read_pixels_cookie_t xcb_ret; - xcb_glx_read_pixels_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - xcb_out.lsb_first = lsb_first; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_read_pixels_data (const xcb_glx_read_pixels_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_read_pixels_data_length (const xcb_glx_read_pixels_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_glx_read_pixels_data_end (const xcb_glx_read_pixels_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_read_pixels_reply_t * -xcb_glx_read_pixels_reply (xcb_connection_t *c /**< */, - xcb_glx_read_pixels_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_read_pixels_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_booleanv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_booleanv_reply_t *_aux = (xcb_glx_get_booleanv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_booleanv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_booleanv_cookie_t -xcb_glx_get_booleanv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_BOOLEANV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_booleanv_cookie_t xcb_ret; - xcb_glx_get_booleanv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_booleanv_cookie_t -xcb_glx_get_booleanv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_BOOLEANV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_booleanv_cookie_t xcb_ret; - xcb_glx_get_booleanv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_get_booleanv_data (const xcb_glx_get_booleanv_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_get_booleanv_data_length (const xcb_glx_get_booleanv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_booleanv_data_end (const xcb_glx_get_booleanv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_booleanv_reply_t * -xcb_glx_get_booleanv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_booleanv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_booleanv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_clip_plane_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_clip_plane_reply_t *_aux = (xcb_glx_get_clip_plane_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_clip_plane_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->length / 2) * sizeof(xcb_glx_float64_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float64_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_clip_plane_cookie_t -xcb_glx_get_clip_plane (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t plane /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_CLIP_PLANE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_clip_plane_cookie_t xcb_ret; - xcb_glx_get_clip_plane_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.plane = plane; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_clip_plane_cookie_t -xcb_glx_get_clip_plane_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t plane /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_CLIP_PLANE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_clip_plane_cookie_t xcb_ret; - xcb_glx_get_clip_plane_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.plane = plane; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float64_t * -xcb_glx_get_clip_plane_data (const xcb_glx_get_clip_plane_reply_t *R /**< */) -{ - return (xcb_glx_float64_t *) (R + 1); -} - -int -xcb_glx_get_clip_plane_data_length (const xcb_glx_get_clip_plane_reply_t *R /**< */) -{ - return (R->length / 2); -} - -xcb_generic_iterator_t -xcb_glx_get_clip_plane_data_end (const xcb_glx_get_clip_plane_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float64_t *) (R + 1)) + ((R->length / 2)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_clip_plane_reply_t * -xcb_glx_get_clip_plane_reply (xcb_connection_t *c /**< */, - xcb_glx_get_clip_plane_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_clip_plane_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_doublev_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_doublev_reply_t *_aux = (xcb_glx_get_doublev_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_doublev_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float64_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float64_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_doublev_cookie_t -xcb_glx_get_doublev (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_DOUBLEV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_doublev_cookie_t xcb_ret; - xcb_glx_get_doublev_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_doublev_cookie_t -xcb_glx_get_doublev_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_DOUBLEV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_doublev_cookie_t xcb_ret; - xcb_glx_get_doublev_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float64_t * -xcb_glx_get_doublev_data (const xcb_glx_get_doublev_reply_t *R /**< */) -{ - return (xcb_glx_float64_t *) (R + 1); -} - -int -xcb_glx_get_doublev_data_length (const xcb_glx_get_doublev_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_doublev_data_end (const xcb_glx_get_doublev_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float64_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_doublev_reply_t * -xcb_glx_get_doublev_reply (xcb_connection_t *c /**< */, - xcb_glx_get_doublev_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_doublev_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_glx_get_error_cookie_t -xcb_glx_get_error (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_ERROR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_error_cookie_t xcb_ret; - xcb_glx_get_error_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_error_cookie_t -xcb_glx_get_error_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_ERROR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_error_cookie_t xcb_ret; - xcb_glx_get_error_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_error_reply_t * -xcb_glx_get_error_reply (xcb_connection_t *c /**< */, - xcb_glx_get_error_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_error_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_floatv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_floatv_reply_t *_aux = (xcb_glx_get_floatv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_floatv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_floatv_cookie_t -xcb_glx_get_floatv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_FLOATV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_floatv_cookie_t xcb_ret; - xcb_glx_get_floatv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_floatv_cookie_t -xcb_glx_get_floatv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_FLOATV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_floatv_cookie_t xcb_ret; - xcb_glx_get_floatv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_floatv_data (const xcb_glx_get_floatv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_floatv_data_length (const xcb_glx_get_floatv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_floatv_data_end (const xcb_glx_get_floatv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_floatv_reply_t * -xcb_glx_get_floatv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_floatv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_floatv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_integerv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_integerv_reply_t *_aux = (xcb_glx_get_integerv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_integerv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_integerv_cookie_t -xcb_glx_get_integerv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_INTEGERV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_integerv_cookie_t xcb_ret; - xcb_glx_get_integerv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_integerv_cookie_t -xcb_glx_get_integerv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_INTEGERV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_integerv_cookie_t xcb_ret; - xcb_glx_get_integerv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_integerv_data (const xcb_glx_get_integerv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_integerv_data_length (const xcb_glx_get_integerv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_integerv_data_end (const xcb_glx_get_integerv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_integerv_reply_t * -xcb_glx_get_integerv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_integerv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_integerv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_lightfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_lightfv_reply_t *_aux = (xcb_glx_get_lightfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_lightfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_lightfv_cookie_t -xcb_glx_get_lightfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t light /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_LIGHTFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_lightfv_cookie_t xcb_ret; - xcb_glx_get_lightfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.light = light; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_lightfv_cookie_t -xcb_glx_get_lightfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t light /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_LIGHTFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_lightfv_cookie_t xcb_ret; - xcb_glx_get_lightfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.light = light; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_lightfv_data (const xcb_glx_get_lightfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_lightfv_data_length (const xcb_glx_get_lightfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_lightfv_data_end (const xcb_glx_get_lightfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_lightfv_reply_t * -xcb_glx_get_lightfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_lightfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_lightfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_lightiv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_lightiv_reply_t *_aux = (xcb_glx_get_lightiv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_lightiv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_lightiv_cookie_t -xcb_glx_get_lightiv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t light /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_LIGHTIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_lightiv_cookie_t xcb_ret; - xcb_glx_get_lightiv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.light = light; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_lightiv_cookie_t -xcb_glx_get_lightiv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t light /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_LIGHTIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_lightiv_cookie_t xcb_ret; - xcb_glx_get_lightiv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.light = light; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_lightiv_data (const xcb_glx_get_lightiv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_lightiv_data_length (const xcb_glx_get_lightiv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_lightiv_data_end (const xcb_glx_get_lightiv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_lightiv_reply_t * -xcb_glx_get_lightiv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_lightiv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_lightiv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_mapdv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_mapdv_reply_t *_aux = (xcb_glx_get_mapdv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_mapdv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float64_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float64_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_mapdv_cookie_t -xcb_glx_get_mapdv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MAPDV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_mapdv_cookie_t xcb_ret; - xcb_glx_get_mapdv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.query = query; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_mapdv_cookie_t -xcb_glx_get_mapdv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MAPDV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_mapdv_cookie_t xcb_ret; - xcb_glx_get_mapdv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.query = query; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float64_t * -xcb_glx_get_mapdv_data (const xcb_glx_get_mapdv_reply_t *R /**< */) -{ - return (xcb_glx_float64_t *) (R + 1); -} - -int -xcb_glx_get_mapdv_data_length (const xcb_glx_get_mapdv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_mapdv_data_end (const xcb_glx_get_mapdv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float64_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_mapdv_reply_t * -xcb_glx_get_mapdv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_mapdv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_mapdv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_mapfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_mapfv_reply_t *_aux = (xcb_glx_get_mapfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_mapfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_mapfv_cookie_t -xcb_glx_get_mapfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MAPFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_mapfv_cookie_t xcb_ret; - xcb_glx_get_mapfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.query = query; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_mapfv_cookie_t -xcb_glx_get_mapfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MAPFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_mapfv_cookie_t xcb_ret; - xcb_glx_get_mapfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.query = query; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_mapfv_data (const xcb_glx_get_mapfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_mapfv_data_length (const xcb_glx_get_mapfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_mapfv_data_end (const xcb_glx_get_mapfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_mapfv_reply_t * -xcb_glx_get_mapfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_mapfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_mapfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_mapiv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_mapiv_reply_t *_aux = (xcb_glx_get_mapiv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_mapiv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_mapiv_cookie_t -xcb_glx_get_mapiv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MAPIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_mapiv_cookie_t xcb_ret; - xcb_glx_get_mapiv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.query = query; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_mapiv_cookie_t -xcb_glx_get_mapiv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MAPIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_mapiv_cookie_t xcb_ret; - xcb_glx_get_mapiv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.query = query; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_mapiv_data (const xcb_glx_get_mapiv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_mapiv_data_length (const xcb_glx_get_mapiv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_mapiv_data_end (const xcb_glx_get_mapiv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_mapiv_reply_t * -xcb_glx_get_mapiv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_mapiv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_mapiv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_materialfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_materialfv_reply_t *_aux = (xcb_glx_get_materialfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_materialfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_materialfv_cookie_t -xcb_glx_get_materialfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t face /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MATERIALFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_materialfv_cookie_t xcb_ret; - xcb_glx_get_materialfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.face = face; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_materialfv_cookie_t -xcb_glx_get_materialfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t face /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MATERIALFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_materialfv_cookie_t xcb_ret; - xcb_glx_get_materialfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.face = face; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_materialfv_data (const xcb_glx_get_materialfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_materialfv_data_length (const xcb_glx_get_materialfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_materialfv_data_end (const xcb_glx_get_materialfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_materialfv_reply_t * -xcb_glx_get_materialfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_materialfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_materialfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_materialiv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_materialiv_reply_t *_aux = (xcb_glx_get_materialiv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_materialiv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_materialiv_cookie_t -xcb_glx_get_materialiv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t face /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MATERIALIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_materialiv_cookie_t xcb_ret; - xcb_glx_get_materialiv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.face = face; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_materialiv_cookie_t -xcb_glx_get_materialiv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t face /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MATERIALIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_materialiv_cookie_t xcb_ret; - xcb_glx_get_materialiv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.face = face; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_materialiv_data (const xcb_glx_get_materialiv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_materialiv_data_length (const xcb_glx_get_materialiv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_materialiv_data_end (const xcb_glx_get_materialiv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_materialiv_reply_t * -xcb_glx_get_materialiv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_materialiv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_materialiv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_pixel_mapfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_pixel_mapfv_reply_t *_aux = (xcb_glx_get_pixel_mapfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_pixel_mapfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_pixel_mapfv_cookie_t -xcb_glx_get_pixel_mapfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_PIXEL_MAPFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_pixel_mapfv_cookie_t xcb_ret; - xcb_glx_get_pixel_mapfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.map = map; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_pixel_mapfv_cookie_t -xcb_glx_get_pixel_mapfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_PIXEL_MAPFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_pixel_mapfv_cookie_t xcb_ret; - xcb_glx_get_pixel_mapfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.map = map; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_pixel_mapfv_data (const xcb_glx_get_pixel_mapfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_pixel_mapfv_data_length (const xcb_glx_get_pixel_mapfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_pixel_mapfv_data_end (const xcb_glx_get_pixel_mapfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_pixel_mapfv_reply_t * -xcb_glx_get_pixel_mapfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_pixel_mapfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_pixel_mapfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_pixel_mapuiv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_pixel_mapuiv_reply_t *_aux = (xcb_glx_get_pixel_mapuiv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_pixel_mapuiv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_pixel_mapuiv_cookie_t -xcb_glx_get_pixel_mapuiv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_PIXEL_MAPUIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_pixel_mapuiv_cookie_t xcb_ret; - xcb_glx_get_pixel_mapuiv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.map = map; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_pixel_mapuiv_cookie_t -xcb_glx_get_pixel_mapuiv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_PIXEL_MAPUIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_pixel_mapuiv_cookie_t xcb_ret; - xcb_glx_get_pixel_mapuiv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.map = map; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_glx_get_pixel_mapuiv_data (const xcb_glx_get_pixel_mapuiv_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_glx_get_pixel_mapuiv_data_length (const xcb_glx_get_pixel_mapuiv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_pixel_mapuiv_data_end (const xcb_glx_get_pixel_mapuiv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_pixel_mapuiv_reply_t * -xcb_glx_get_pixel_mapuiv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_pixel_mapuiv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_pixel_mapuiv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_pixel_mapusv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_pixel_mapusv_reply_t *_aux = (xcb_glx_get_pixel_mapusv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_pixel_mapusv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_pixel_mapusv_cookie_t -xcb_glx_get_pixel_mapusv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_PIXEL_MAPUSV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_pixel_mapusv_cookie_t xcb_ret; - xcb_glx_get_pixel_mapusv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.map = map; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_pixel_mapusv_cookie_t -xcb_glx_get_pixel_mapusv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_PIXEL_MAPUSV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_pixel_mapusv_cookie_t xcb_ret; - xcb_glx_get_pixel_mapusv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.map = map; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint16_t * -xcb_glx_get_pixel_mapusv_data (const xcb_glx_get_pixel_mapusv_reply_t *R /**< */) -{ - return (uint16_t *) (R + 1); -} - -int -xcb_glx_get_pixel_mapusv_data_length (const xcb_glx_get_pixel_mapusv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_pixel_mapusv_data_end (const xcb_glx_get_pixel_mapusv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint16_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_pixel_mapusv_reply_t * -xcb_glx_get_pixel_mapusv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_pixel_mapusv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_pixel_mapusv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_polygon_stipple_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_polygon_stipple_reply_t *_aux = (xcb_glx_get_polygon_stipple_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_polygon_stipple_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->length * 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_polygon_stipple_cookie_t -xcb_glx_get_polygon_stipple (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint8_t lsb_first /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_POLYGON_STIPPLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_polygon_stipple_cookie_t xcb_ret; - xcb_glx_get_polygon_stipple_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.lsb_first = lsb_first; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_polygon_stipple_cookie_t -xcb_glx_get_polygon_stipple_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint8_t lsb_first /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_POLYGON_STIPPLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_polygon_stipple_cookie_t xcb_ret; - xcb_glx_get_polygon_stipple_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.lsb_first = lsb_first; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_get_polygon_stipple_data (const xcb_glx_get_polygon_stipple_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_get_polygon_stipple_data_length (const xcb_glx_get_polygon_stipple_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_glx_get_polygon_stipple_data_end (const xcb_glx_get_polygon_stipple_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_polygon_stipple_reply_t * -xcb_glx_get_polygon_stipple_reply (xcb_connection_t *c /**< */, - xcb_glx_get_polygon_stipple_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_polygon_stipple_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_string_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_string_reply_t *_aux = (xcb_glx_get_string_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_string_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* string */ - xcb_block_len += _aux->n * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_string_cookie_t -xcb_glx_get_string (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_STRING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_string_cookie_t xcb_ret; - xcb_glx_get_string_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.name = name; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_string_cookie_t -xcb_glx_get_string_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_STRING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_string_cookie_t xcb_ret; - xcb_glx_get_string_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.name = name; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_glx_get_string_string (const xcb_glx_get_string_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_glx_get_string_string_length (const xcb_glx_get_string_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_string_string_end (const xcb_glx_get_string_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_string_reply_t * -xcb_glx_get_string_reply (xcb_connection_t *c /**< */, - xcb_glx_get_string_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_string_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_tex_envfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_tex_envfv_reply_t *_aux = (xcb_glx_get_tex_envfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_tex_envfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_tex_envfv_cookie_t -xcb_glx_get_tex_envfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_ENVFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_envfv_cookie_t xcb_ret; - xcb_glx_get_tex_envfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_tex_envfv_cookie_t -xcb_glx_get_tex_envfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_ENVFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_envfv_cookie_t xcb_ret; - xcb_glx_get_tex_envfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_tex_envfv_data (const xcb_glx_get_tex_envfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_tex_envfv_data_length (const xcb_glx_get_tex_envfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_tex_envfv_data_end (const xcb_glx_get_tex_envfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_tex_envfv_reply_t * -xcb_glx_get_tex_envfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_envfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_tex_envfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_tex_enviv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_tex_enviv_reply_t *_aux = (xcb_glx_get_tex_enviv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_tex_enviv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_tex_enviv_cookie_t -xcb_glx_get_tex_enviv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_ENVIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_enviv_cookie_t xcb_ret; - xcb_glx_get_tex_enviv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_tex_enviv_cookie_t -xcb_glx_get_tex_enviv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_ENVIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_enviv_cookie_t xcb_ret; - xcb_glx_get_tex_enviv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_tex_enviv_data (const xcb_glx_get_tex_enviv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_tex_enviv_data_length (const xcb_glx_get_tex_enviv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_tex_enviv_data_end (const xcb_glx_get_tex_enviv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_tex_enviv_reply_t * -xcb_glx_get_tex_enviv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_enviv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_tex_enviv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_tex_gendv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_tex_gendv_reply_t *_aux = (xcb_glx_get_tex_gendv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_tex_gendv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float64_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float64_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_tex_gendv_cookie_t -xcb_glx_get_tex_gendv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_GENDV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_gendv_cookie_t xcb_ret; - xcb_glx_get_tex_gendv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.coord = coord; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_tex_gendv_cookie_t -xcb_glx_get_tex_gendv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_GENDV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_gendv_cookie_t xcb_ret; - xcb_glx_get_tex_gendv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.coord = coord; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float64_t * -xcb_glx_get_tex_gendv_data (const xcb_glx_get_tex_gendv_reply_t *R /**< */) -{ - return (xcb_glx_float64_t *) (R + 1); -} - -int -xcb_glx_get_tex_gendv_data_length (const xcb_glx_get_tex_gendv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_tex_gendv_data_end (const xcb_glx_get_tex_gendv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float64_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_tex_gendv_reply_t * -xcb_glx_get_tex_gendv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_gendv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_tex_gendv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_tex_genfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_tex_genfv_reply_t *_aux = (xcb_glx_get_tex_genfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_tex_genfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_tex_genfv_cookie_t -xcb_glx_get_tex_genfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_GENFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_genfv_cookie_t xcb_ret; - xcb_glx_get_tex_genfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.coord = coord; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_tex_genfv_cookie_t -xcb_glx_get_tex_genfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_GENFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_genfv_cookie_t xcb_ret; - xcb_glx_get_tex_genfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.coord = coord; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_tex_genfv_data (const xcb_glx_get_tex_genfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_tex_genfv_data_length (const xcb_glx_get_tex_genfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_tex_genfv_data_end (const xcb_glx_get_tex_genfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_tex_genfv_reply_t * -xcb_glx_get_tex_genfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_genfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_tex_genfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_tex_geniv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_tex_geniv_reply_t *_aux = (xcb_glx_get_tex_geniv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_tex_geniv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_tex_geniv_cookie_t -xcb_glx_get_tex_geniv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_GENIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_geniv_cookie_t xcb_ret; - xcb_glx_get_tex_geniv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.coord = coord; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_tex_geniv_cookie_t -xcb_glx_get_tex_geniv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_GENIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_geniv_cookie_t xcb_ret; - xcb_glx_get_tex_geniv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.coord = coord; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_tex_geniv_data (const xcb_glx_get_tex_geniv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_tex_geniv_data_length (const xcb_glx_get_tex_geniv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_tex_geniv_data_end (const xcb_glx_get_tex_geniv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_tex_geniv_reply_t * -xcb_glx_get_tex_geniv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_geniv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_tex_geniv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_tex_image_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_tex_image_reply_t *_aux = (xcb_glx_get_tex_image_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_tex_image_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->length * 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_tex_image_cookie_t -xcb_glx_get_tex_image (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_IMAGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_image_cookie_t xcb_ret; - xcb_glx_get_tex_image_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.level = level; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_tex_image_cookie_t -xcb_glx_get_tex_image_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_IMAGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_image_cookie_t xcb_ret; - xcb_glx_get_tex_image_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.level = level; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_get_tex_image_data (const xcb_glx_get_tex_image_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_get_tex_image_data_length (const xcb_glx_get_tex_image_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_glx_get_tex_image_data_end (const xcb_glx_get_tex_image_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_tex_image_reply_t * -xcb_glx_get_tex_image_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_image_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_tex_image_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_tex_parameterfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_tex_parameterfv_reply_t *_aux = (xcb_glx_get_tex_parameterfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_tex_parameterfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_tex_parameterfv_cookie_t -xcb_glx_get_tex_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_parameterfv_cookie_t xcb_ret; - xcb_glx_get_tex_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_tex_parameterfv_cookie_t -xcb_glx_get_tex_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_parameterfv_cookie_t xcb_ret; - xcb_glx_get_tex_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_tex_parameterfv_data (const xcb_glx_get_tex_parameterfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_tex_parameterfv_data_length (const xcb_glx_get_tex_parameterfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_tex_parameterfv_data_end (const xcb_glx_get_tex_parameterfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_tex_parameterfv_reply_t * -xcb_glx_get_tex_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_tex_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_tex_parameteriv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_tex_parameteriv_reply_t *_aux = (xcb_glx_get_tex_parameteriv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_tex_parameteriv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_tex_parameteriv_cookie_t -xcb_glx_get_tex_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_parameteriv_cookie_t xcb_ret; - xcb_glx_get_tex_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_tex_parameteriv_cookie_t -xcb_glx_get_tex_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_parameteriv_cookie_t xcb_ret; - xcb_glx_get_tex_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_tex_parameteriv_data (const xcb_glx_get_tex_parameteriv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_tex_parameteriv_data_length (const xcb_glx_get_tex_parameteriv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_tex_parameteriv_data_end (const xcb_glx_get_tex_parameteriv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_tex_parameteriv_reply_t * -xcb_glx_get_tex_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_tex_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_tex_level_parameterfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_tex_level_parameterfv_reply_t *_aux = (xcb_glx_get_tex_level_parameterfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_tex_level_parameterfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_tex_level_parameterfv_cookie_t -xcb_glx_get_tex_level_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_LEVEL_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_level_parameterfv_cookie_t xcb_ret; - xcb_glx_get_tex_level_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.level = level; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_tex_level_parameterfv_cookie_t -xcb_glx_get_tex_level_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_LEVEL_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_level_parameterfv_cookie_t xcb_ret; - xcb_glx_get_tex_level_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.level = level; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_tex_level_parameterfv_data (const xcb_glx_get_tex_level_parameterfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_tex_level_parameterfv_data_length (const xcb_glx_get_tex_level_parameterfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_tex_level_parameterfv_data_end (const xcb_glx_get_tex_level_parameterfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_tex_level_parameterfv_reply_t * -xcb_glx_get_tex_level_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_level_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_tex_level_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_tex_level_parameteriv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_tex_level_parameteriv_reply_t *_aux = (xcb_glx_get_tex_level_parameteriv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_tex_level_parameteriv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_tex_level_parameteriv_cookie_t -xcb_glx_get_tex_level_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_LEVEL_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_level_parameteriv_cookie_t xcb_ret; - xcb_glx_get_tex_level_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.level = level; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_tex_level_parameteriv_cookie_t -xcb_glx_get_tex_level_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_TEX_LEVEL_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_tex_level_parameteriv_cookie_t xcb_ret; - xcb_glx_get_tex_level_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.level = level; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_tex_level_parameteriv_data (const xcb_glx_get_tex_level_parameteriv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_tex_level_parameteriv_data_length (const xcb_glx_get_tex_level_parameteriv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_tex_level_parameteriv_data_end (const xcb_glx_get_tex_level_parameteriv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_tex_level_parameteriv_reply_t * -xcb_glx_get_tex_level_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_level_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_tex_level_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_glx_is_list_cookie_t -xcb_glx_is_list (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_IS_LIST, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_is_list_cookie_t xcb_ret; - xcb_glx_is_list_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.list = list; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_is_list_cookie_t -xcb_glx_is_list_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_IS_LIST, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_is_list_cookie_t xcb_ret; - xcb_glx_is_list_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.list = list; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_is_list_reply_t * -xcb_glx_is_list_reply (xcb_connection_t *c /**< */, - xcb_glx_is_list_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_is_list_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_glx_flush_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_FLUSH, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_flush_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_flush (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_FLUSH, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_glx_flush_request_t xcb_out; - - xcb_out.context_tag = context_tag; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_are_textures_resident_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_are_textures_resident_request_t *_aux = (xcb_glx_are_textures_resident_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_are_textures_resident_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* textures */ - xcb_block_len += _aux->n * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_are_textures_resident_cookie_t -xcb_glx_are_textures_resident (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *textures /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_ARE_TEXTURES_RESIDENT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_glx_are_textures_resident_cookie_t xcb_ret; - xcb_glx_are_textures_resident_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.n = n; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t textures */ - xcb_parts[4].iov_base = (char *) textures; - xcb_parts[4].iov_len = n * sizeof(xcb_glx_bool32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_are_textures_resident_cookie_t -xcb_glx_are_textures_resident_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *textures /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_ARE_TEXTURES_RESIDENT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_glx_are_textures_resident_cookie_t xcb_ret; - xcb_glx_are_textures_resident_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.n = n; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t textures */ - xcb_parts[4].iov_base = (char *) textures; - xcb_parts[4].iov_len = n * sizeof(xcb_glx_bool32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_are_textures_resident_data (const xcb_glx_are_textures_resident_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_are_textures_resident_data_length (const xcb_glx_are_textures_resident_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_glx_are_textures_resident_data_end (const xcb_glx_are_textures_resident_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_are_textures_resident_reply_t * -xcb_glx_are_textures_resident_reply (xcb_connection_t *c /**< */, - xcb_glx_are_textures_resident_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_are_textures_resident_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_delete_textures_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_delete_textures_request_t *_aux = (xcb_glx_delete_textures_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_delete_textures_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* textures */ - xcb_block_len += _aux->n * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_delete_textures_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *textures /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DELETE_TEXTURES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_delete_textures_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.n = n; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t textures */ - xcb_parts[4].iov_base = (char *) textures; - xcb_parts[4].iov_len = n * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_delete_textures (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *textures /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DELETE_TEXTURES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_delete_textures_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.n = n; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t textures */ - xcb_parts[4].iov_base = (char *) textures; - xcb_parts[4].iov_len = n * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_gen_textures_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_gen_textures_reply_t *_aux = (xcb_glx_gen_textures_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_gen_textures_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->length * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_gen_textures_cookie_t -xcb_glx_gen_textures (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GEN_TEXTURES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_gen_textures_cookie_t xcb_ret; - xcb_glx_gen_textures_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.n = n; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_gen_textures_cookie_t -xcb_glx_gen_textures_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GEN_TEXTURES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_gen_textures_cookie_t xcb_ret; - xcb_glx_gen_textures_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.n = n; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_glx_gen_textures_data (const xcb_glx_gen_textures_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_glx_gen_textures_data_length (const xcb_glx_gen_textures_reply_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_glx_gen_textures_data_end (const xcb_glx_gen_textures_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_gen_textures_reply_t * -xcb_glx_gen_textures_reply (xcb_connection_t *c /**< */, - xcb_glx_gen_textures_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_gen_textures_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_glx_is_texture_cookie_t -xcb_glx_is_texture (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t texture /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_IS_TEXTURE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_is_texture_cookie_t xcb_ret; - xcb_glx_is_texture_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.texture = texture; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_is_texture_cookie_t -xcb_glx_is_texture_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t texture /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_IS_TEXTURE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_is_texture_cookie_t xcb_ret; - xcb_glx_is_texture_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.texture = texture; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_is_texture_reply_t * -xcb_glx_is_texture_reply (xcb_connection_t *c /**< */, - xcb_glx_is_texture_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_is_texture_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_color_table_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_color_table_reply_t *_aux = (xcb_glx_get_color_table_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_color_table_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->length * 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_color_table_cookie_t -xcb_glx_get_color_table (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_COLOR_TABLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_color_table_cookie_t xcb_ret; - xcb_glx_get_color_table_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_color_table_cookie_t -xcb_glx_get_color_table_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_COLOR_TABLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_color_table_cookie_t xcb_ret; - xcb_glx_get_color_table_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_get_color_table_data (const xcb_glx_get_color_table_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_get_color_table_data_length (const xcb_glx_get_color_table_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_glx_get_color_table_data_end (const xcb_glx_get_color_table_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_color_table_reply_t * -xcb_glx_get_color_table_reply (xcb_connection_t *c /**< */, - xcb_glx_get_color_table_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_color_table_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_color_table_parameterfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_color_table_parameterfv_reply_t *_aux = (xcb_glx_get_color_table_parameterfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_color_table_parameterfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_color_table_parameterfv_cookie_t -xcb_glx_get_color_table_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_COLOR_TABLE_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_color_table_parameterfv_cookie_t xcb_ret; - xcb_glx_get_color_table_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_color_table_parameterfv_cookie_t -xcb_glx_get_color_table_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_COLOR_TABLE_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_color_table_parameterfv_cookie_t xcb_ret; - xcb_glx_get_color_table_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_color_table_parameterfv_data (const xcb_glx_get_color_table_parameterfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_color_table_parameterfv_data_length (const xcb_glx_get_color_table_parameterfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_color_table_parameterfv_data_end (const xcb_glx_get_color_table_parameterfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_color_table_parameterfv_reply_t * -xcb_glx_get_color_table_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_color_table_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_color_table_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_color_table_parameteriv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_color_table_parameteriv_reply_t *_aux = (xcb_glx_get_color_table_parameteriv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_color_table_parameteriv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_color_table_parameteriv_cookie_t -xcb_glx_get_color_table_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_COLOR_TABLE_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_color_table_parameteriv_cookie_t xcb_ret; - xcb_glx_get_color_table_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_color_table_parameteriv_cookie_t -xcb_glx_get_color_table_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_COLOR_TABLE_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_color_table_parameteriv_cookie_t xcb_ret; - xcb_glx_get_color_table_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_color_table_parameteriv_data (const xcb_glx_get_color_table_parameteriv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_color_table_parameteriv_data_length (const xcb_glx_get_color_table_parameteriv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_color_table_parameteriv_data_end (const xcb_glx_get_color_table_parameteriv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_color_table_parameteriv_reply_t * -xcb_glx_get_color_table_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_color_table_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_color_table_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_convolution_filter_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_convolution_filter_reply_t *_aux = (xcb_glx_get_convolution_filter_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_convolution_filter_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->length * 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_convolution_filter_cookie_t -xcb_glx_get_convolution_filter (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_CONVOLUTION_FILTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_convolution_filter_cookie_t xcb_ret; - xcb_glx_get_convolution_filter_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_convolution_filter_cookie_t -xcb_glx_get_convolution_filter_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_CONVOLUTION_FILTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_convolution_filter_cookie_t xcb_ret; - xcb_glx_get_convolution_filter_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_get_convolution_filter_data (const xcb_glx_get_convolution_filter_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_get_convolution_filter_data_length (const xcb_glx_get_convolution_filter_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_glx_get_convolution_filter_data_end (const xcb_glx_get_convolution_filter_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_convolution_filter_reply_t * -xcb_glx_get_convolution_filter_reply (xcb_connection_t *c /**< */, - xcb_glx_get_convolution_filter_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_convolution_filter_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_convolution_parameterfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_convolution_parameterfv_reply_t *_aux = (xcb_glx_get_convolution_parameterfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_convolution_parameterfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_convolution_parameterfv_cookie_t -xcb_glx_get_convolution_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_CONVOLUTION_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_convolution_parameterfv_cookie_t xcb_ret; - xcb_glx_get_convolution_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_convolution_parameterfv_cookie_t -xcb_glx_get_convolution_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_CONVOLUTION_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_convolution_parameterfv_cookie_t xcb_ret; - xcb_glx_get_convolution_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_convolution_parameterfv_data (const xcb_glx_get_convolution_parameterfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_convolution_parameterfv_data_length (const xcb_glx_get_convolution_parameterfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_convolution_parameterfv_data_end (const xcb_glx_get_convolution_parameterfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_convolution_parameterfv_reply_t * -xcb_glx_get_convolution_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_convolution_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_convolution_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_convolution_parameteriv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_convolution_parameteriv_reply_t *_aux = (xcb_glx_get_convolution_parameteriv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_convolution_parameteriv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_convolution_parameteriv_cookie_t -xcb_glx_get_convolution_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_CONVOLUTION_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_convolution_parameteriv_cookie_t xcb_ret; - xcb_glx_get_convolution_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_convolution_parameteriv_cookie_t -xcb_glx_get_convolution_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_CONVOLUTION_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_convolution_parameteriv_cookie_t xcb_ret; - xcb_glx_get_convolution_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_convolution_parameteriv_data (const xcb_glx_get_convolution_parameteriv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_convolution_parameteriv_data_length (const xcb_glx_get_convolution_parameteriv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_convolution_parameteriv_data_end (const xcb_glx_get_convolution_parameteriv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_convolution_parameteriv_reply_t * -xcb_glx_get_convolution_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_convolution_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_convolution_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_separable_filter_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_separable_filter_reply_t *_aux = (xcb_glx_get_separable_filter_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_separable_filter_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rows_and_cols */ - xcb_block_len += (_aux->length * 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_separable_filter_cookie_t -xcb_glx_get_separable_filter (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_SEPARABLE_FILTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_separable_filter_cookie_t xcb_ret; - xcb_glx_get_separable_filter_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_separable_filter_cookie_t -xcb_glx_get_separable_filter_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_SEPARABLE_FILTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_separable_filter_cookie_t xcb_ret; - xcb_glx_get_separable_filter_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_get_separable_filter_rows_and_cols (const xcb_glx_get_separable_filter_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_get_separable_filter_rows_and_cols_length (const xcb_glx_get_separable_filter_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_glx_get_separable_filter_rows_and_cols_end (const xcb_glx_get_separable_filter_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_separable_filter_reply_t * -xcb_glx_get_separable_filter_reply (xcb_connection_t *c /**< */, - xcb_glx_get_separable_filter_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_separable_filter_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_histogram_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_histogram_reply_t *_aux = (xcb_glx_get_histogram_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_histogram_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->length * 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_histogram_cookie_t -xcb_glx_get_histogram (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t reset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_HISTOGRAM, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_histogram_cookie_t xcb_ret; - xcb_glx_get_histogram_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - xcb_out.reset = reset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_histogram_cookie_t -xcb_glx_get_histogram_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t reset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_HISTOGRAM, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_histogram_cookie_t xcb_ret; - xcb_glx_get_histogram_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - xcb_out.reset = reset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_get_histogram_data (const xcb_glx_get_histogram_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_get_histogram_data_length (const xcb_glx_get_histogram_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_glx_get_histogram_data_end (const xcb_glx_get_histogram_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_histogram_reply_t * -xcb_glx_get_histogram_reply (xcb_connection_t *c /**< */, - xcb_glx_get_histogram_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_histogram_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_histogram_parameterfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_histogram_parameterfv_reply_t *_aux = (xcb_glx_get_histogram_parameterfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_histogram_parameterfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_histogram_parameterfv_cookie_t -xcb_glx_get_histogram_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_HISTOGRAM_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_histogram_parameterfv_cookie_t xcb_ret; - xcb_glx_get_histogram_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_histogram_parameterfv_cookie_t -xcb_glx_get_histogram_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_HISTOGRAM_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_histogram_parameterfv_cookie_t xcb_ret; - xcb_glx_get_histogram_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_histogram_parameterfv_data (const xcb_glx_get_histogram_parameterfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_histogram_parameterfv_data_length (const xcb_glx_get_histogram_parameterfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_histogram_parameterfv_data_end (const xcb_glx_get_histogram_parameterfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_histogram_parameterfv_reply_t * -xcb_glx_get_histogram_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_histogram_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_histogram_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_histogram_parameteriv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_histogram_parameteriv_reply_t *_aux = (xcb_glx_get_histogram_parameteriv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_histogram_parameteriv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_histogram_parameteriv_cookie_t -xcb_glx_get_histogram_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_HISTOGRAM_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_histogram_parameteriv_cookie_t xcb_ret; - xcb_glx_get_histogram_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_histogram_parameteriv_cookie_t -xcb_glx_get_histogram_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_HISTOGRAM_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_histogram_parameteriv_cookie_t xcb_ret; - xcb_glx_get_histogram_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_histogram_parameteriv_data (const xcb_glx_get_histogram_parameteriv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_histogram_parameteriv_data_length (const xcb_glx_get_histogram_parameteriv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_histogram_parameteriv_data_end (const xcb_glx_get_histogram_parameteriv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_histogram_parameteriv_reply_t * -xcb_glx_get_histogram_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_histogram_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_histogram_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_minmax_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_minmax_reply_t *_aux = (xcb_glx_get_minmax_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_minmax_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->length * 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_minmax_cookie_t -xcb_glx_get_minmax (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t reset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MINMAX, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_minmax_cookie_t xcb_ret; - xcb_glx_get_minmax_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - xcb_out.reset = reset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_minmax_cookie_t -xcb_glx_get_minmax_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t reset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MINMAX, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_minmax_cookie_t xcb_ret; - xcb_glx_get_minmax_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.format = format; - xcb_out.type = type; - xcb_out.swap_bytes = swap_bytes; - xcb_out.reset = reset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_get_minmax_data (const xcb_glx_get_minmax_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_get_minmax_data_length (const xcb_glx_get_minmax_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_glx_get_minmax_data_end (const xcb_glx_get_minmax_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_minmax_reply_t * -xcb_glx_get_minmax_reply (xcb_connection_t *c /**< */, - xcb_glx_get_minmax_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_minmax_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_minmax_parameterfv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_minmax_parameterfv_reply_t *_aux = (xcb_glx_get_minmax_parameterfv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_minmax_parameterfv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_glx_float32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_minmax_parameterfv_cookie_t -xcb_glx_get_minmax_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MINMAX_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_minmax_parameterfv_cookie_t xcb_ret; - xcb_glx_get_minmax_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_minmax_parameterfv_cookie_t -xcb_glx_get_minmax_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MINMAX_PARAMETERFV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_minmax_parameterfv_cookie_t xcb_ret; - xcb_glx_get_minmax_parameterfv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_float32_t * -xcb_glx_get_minmax_parameterfv_data (const xcb_glx_get_minmax_parameterfv_reply_t *R /**< */) -{ - return (xcb_glx_float32_t *) (R + 1); -} - -int -xcb_glx_get_minmax_parameterfv_data_length (const xcb_glx_get_minmax_parameterfv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_minmax_parameterfv_data_end (const xcb_glx_get_minmax_parameterfv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_minmax_parameterfv_reply_t * -xcb_glx_get_minmax_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_minmax_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_minmax_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_minmax_parameteriv_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_minmax_parameteriv_reply_t *_aux = (xcb_glx_get_minmax_parameteriv_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_minmax_parameteriv_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_minmax_parameteriv_cookie_t -xcb_glx_get_minmax_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MINMAX_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_minmax_parameteriv_cookie_t xcb_ret; - xcb_glx_get_minmax_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_minmax_parameteriv_cookie_t -xcb_glx_get_minmax_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_MINMAX_PARAMETERIV, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_minmax_parameteriv_cookie_t xcb_ret; - xcb_glx_get_minmax_parameteriv_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_minmax_parameteriv_data (const xcb_glx_get_minmax_parameteriv_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_minmax_parameteriv_data_length (const xcb_glx_get_minmax_parameteriv_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_minmax_parameteriv_data_end (const xcb_glx_get_minmax_parameteriv_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_minmax_parameteriv_reply_t * -xcb_glx_get_minmax_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_minmax_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_minmax_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_compressed_tex_image_arb_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_compressed_tex_image_arb_reply_t *_aux = (xcb_glx_get_compressed_tex_image_arb_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_compressed_tex_image_arb_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->length * 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_compressed_tex_image_arb_cookie_t -xcb_glx_get_compressed_tex_image_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_COMPRESSED_TEX_IMAGE_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_compressed_tex_image_arb_cookie_t xcb_ret; - xcb_glx_get_compressed_tex_image_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.level = level; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_compressed_tex_image_arb_cookie_t -xcb_glx_get_compressed_tex_image_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_COMPRESSED_TEX_IMAGE_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_compressed_tex_image_arb_cookie_t xcb_ret; - xcb_glx_get_compressed_tex_image_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.level = level; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_glx_get_compressed_tex_image_arb_data (const xcb_glx_get_compressed_tex_image_arb_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_glx_get_compressed_tex_image_arb_data_length (const xcb_glx_get_compressed_tex_image_arb_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_glx_get_compressed_tex_image_arb_data_end (const xcb_glx_get_compressed_tex_image_arb_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_compressed_tex_image_arb_reply_t * -xcb_glx_get_compressed_tex_image_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_get_compressed_tex_image_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_compressed_tex_image_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_delete_queries_arb_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_delete_queries_arb_request_t *_aux = (xcb_glx_delete_queries_arb_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_delete_queries_arb_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* ids */ - xcb_block_len += _aux->n * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_glx_delete_queries_arb_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *ids /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DELETE_QUERIES_ARB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_delete_queries_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.n = n; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t ids */ - xcb_parts[4].iov_base = (char *) ids; - xcb_parts[4].iov_len = n * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_glx_delete_queries_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *ids /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_DELETE_QUERIES_ARB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_glx_delete_queries_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.n = n; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t ids */ - xcb_parts[4].iov_base = (char *) ids; - xcb_parts[4].iov_len = n * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_glx_gen_queries_arb_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_gen_queries_arb_reply_t *_aux = (xcb_glx_gen_queries_arb_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_gen_queries_arb_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->length * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_gen_queries_arb_cookie_t -xcb_glx_gen_queries_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GEN_QUERIES_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_gen_queries_arb_cookie_t xcb_ret; - xcb_glx_gen_queries_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.n = n; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_gen_queries_arb_cookie_t -xcb_glx_gen_queries_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GEN_QUERIES_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_gen_queries_arb_cookie_t xcb_ret; - xcb_glx_gen_queries_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.n = n; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_glx_gen_queries_arb_data (const xcb_glx_gen_queries_arb_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_glx_gen_queries_arb_data_length (const xcb_glx_gen_queries_arb_reply_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_glx_gen_queries_arb_data_end (const xcb_glx_gen_queries_arb_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_gen_queries_arb_reply_t * -xcb_glx_gen_queries_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_gen_queries_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_gen_queries_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_glx_is_query_arb_cookie_t -xcb_glx_is_query_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_IS_QUERY_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_is_query_arb_cookie_t xcb_ret; - xcb_glx_is_query_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.id = id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_is_query_arb_cookie_t -xcb_glx_is_query_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_IS_QUERY_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_is_query_arb_cookie_t xcb_ret; - xcb_glx_is_query_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.id = id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_is_query_arb_reply_t * -xcb_glx_is_query_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_is_query_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_is_query_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_queryiv_arb_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_queryiv_arb_reply_t *_aux = (xcb_glx_get_queryiv_arb_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_queryiv_arb_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_queryiv_arb_cookie_t -xcb_glx_get_queryiv_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_QUERYIV_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_queryiv_arb_cookie_t xcb_ret; - xcb_glx_get_queryiv_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_queryiv_arb_cookie_t -xcb_glx_get_queryiv_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_QUERYIV_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_queryiv_arb_cookie_t xcb_ret; - xcb_glx_get_queryiv_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.target = target; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_queryiv_arb_data (const xcb_glx_get_queryiv_arb_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_queryiv_arb_data_length (const xcb_glx_get_queryiv_arb_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_queryiv_arb_data_end (const xcb_glx_get_queryiv_arb_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_queryiv_arb_reply_t * -xcb_glx_get_queryiv_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_get_queryiv_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_queryiv_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_query_objectiv_arb_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_query_objectiv_arb_reply_t *_aux = (xcb_glx_get_query_objectiv_arb_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_query_objectiv_arb_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_query_objectiv_arb_cookie_t -xcb_glx_get_query_objectiv_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_QUERY_OBJECTIV_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_query_objectiv_arb_cookie_t xcb_ret; - xcb_glx_get_query_objectiv_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.id = id; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_query_objectiv_arb_cookie_t -xcb_glx_get_query_objectiv_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_QUERY_OBJECTIV_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_query_objectiv_arb_cookie_t xcb_ret; - xcb_glx_get_query_objectiv_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.id = id; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_glx_get_query_objectiv_arb_data (const xcb_glx_get_query_objectiv_arb_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_glx_get_query_objectiv_arb_data_length (const xcb_glx_get_query_objectiv_arb_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_query_objectiv_arb_data_end (const xcb_glx_get_query_objectiv_arb_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_query_objectiv_arb_reply_t * -xcb_glx_get_query_objectiv_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_get_query_objectiv_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_query_objectiv_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_glx_get_query_objectuiv_arb_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_glx_get_query_objectuiv_arb_reply_t *_aux = (xcb_glx_get_query_objectuiv_arb_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_glx_get_query_objectuiv_arb_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->n * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_glx_get_query_objectuiv_arb_cookie_t -xcb_glx_get_query_objectuiv_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_QUERY_OBJECTUIV_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_query_objectuiv_arb_cookie_t xcb_ret; - xcb_glx_get_query_objectuiv_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.id = id; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_glx_get_query_objectuiv_arb_cookie_t -xcb_glx_get_query_objectuiv_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */, - uint32_t pname /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_glx_id, - /* opcode */ XCB_GLX_GET_QUERY_OBJECTUIV_ARB, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_glx_get_query_objectuiv_arb_cookie_t xcb_ret; - xcb_glx_get_query_objectuiv_arb_request_t xcb_out; - - xcb_out.context_tag = context_tag; - xcb_out.id = id; - xcb_out.pname = pname; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_glx_get_query_objectuiv_arb_data (const xcb_glx_get_query_objectuiv_arb_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_glx_get_query_objectuiv_arb_data_length (const xcb_glx_get_query_objectuiv_arb_reply_t *R /**< */) -{ - return R->n; -} - -xcb_generic_iterator_t -xcb_glx_get_query_objectuiv_arb_data_end (const xcb_glx_get_query_objectuiv_arb_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->n); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_glx_get_query_objectuiv_arb_reply_t * -xcb_glx_get_query_objectuiv_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_get_query_objectuiv_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_glx_get_query_objectuiv_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/glx.h b/external/mit/xorg/lib/libxcb/files/glx.h deleted file mode 100644 index f374632cc..000000000 --- a/external/mit/xorg/lib/libxcb/files/glx.h +++ /dev/null @@ -1,8424 +0,0 @@ -/* - * This file generated automatically from glx.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Glx_API XCB Glx API - * @brief Glx XCB Protocol Implementation. - * @{ - **/ - -#ifndef __GLX_H -#define __GLX_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_GLX_MAJOR_VERSION 1 -#define XCB_GLX_MINOR_VERSION 4 - -extern xcb_extension_t xcb_glx_id; - -typedef uint32_t xcb_glx_pixmap_t; - -/** - * @brief xcb_glx_pixmap_iterator_t - **/ -typedef struct xcb_glx_pixmap_iterator_t { - xcb_glx_pixmap_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_glx_pixmap_iterator_t; - -typedef uint32_t xcb_glx_context_t; - -/** - * @brief xcb_glx_context_iterator_t - **/ -typedef struct xcb_glx_context_iterator_t { - xcb_glx_context_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_glx_context_iterator_t; - -typedef uint32_t xcb_glx_pbuffer_t; - -/** - * @brief xcb_glx_pbuffer_iterator_t - **/ -typedef struct xcb_glx_pbuffer_iterator_t { - xcb_glx_pbuffer_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_glx_pbuffer_iterator_t; - -typedef uint32_t xcb_glx_window_t; - -/** - * @brief xcb_glx_window_iterator_t - **/ -typedef struct xcb_glx_window_iterator_t { - xcb_glx_window_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_glx_window_iterator_t; - -typedef uint32_t xcb_glx_fbconfig_t; - -/** - * @brief xcb_glx_fbconfig_iterator_t - **/ -typedef struct xcb_glx_fbconfig_iterator_t { - xcb_glx_fbconfig_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_glx_fbconfig_iterator_t; - -typedef uint32_t xcb_glx_drawable_t; - -/** - * @brief xcb_glx_drawable_iterator_t - **/ -typedef struct xcb_glx_drawable_iterator_t { - xcb_glx_drawable_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_glx_drawable_iterator_t; - -typedef float xcb_glx_float32_t; - -/** - * @brief xcb_glx_float32_iterator_t - **/ -typedef struct xcb_glx_float32_iterator_t { - xcb_glx_float32_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_glx_float32_iterator_t; - -typedef double xcb_glx_float64_t; - -/** - * @brief xcb_glx_float64_iterator_t - **/ -typedef struct xcb_glx_float64_iterator_t { - xcb_glx_float64_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_glx_float64_iterator_t; - -typedef uint32_t xcb_glx_bool32_t; - -/** - * @brief xcb_glx_bool32_iterator_t - **/ -typedef struct xcb_glx_bool32_iterator_t { - xcb_glx_bool32_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_glx_bool32_iterator_t; - -typedef uint32_t xcb_glx_context_tag_t; - -/** - * @brief xcb_glx_context_tag_iterator_t - **/ -typedef struct xcb_glx_context_tag_iterator_t { - xcb_glx_context_tag_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_glx_context_tag_iterator_t; - -/** Opcode for xcb_glx_generic. */ -#define XCB_GLX_GENERIC -1 - -/** - * @brief xcb_glx_generic_error_t - **/ -typedef struct xcb_glx_generic_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ - uint32_t bad_value; /**< */ - uint16_t minor_opcode; /**< */ - uint8_t major_opcode; /**< */ - uint8_t pad0[21]; /**< */ -} xcb_glx_generic_error_t; - -/** Opcode for xcb_glx_bad_context. */ -#define XCB_GLX_BAD_CONTEXT 0 - -typedef xcb_glx_generic_error_t xcb_glx_bad_context_error_t; - -/** Opcode for xcb_glx_bad_context_state. */ -#define XCB_GLX_BAD_CONTEXT_STATE 1 - -typedef xcb_glx_generic_error_t xcb_glx_bad_context_state_error_t; - -/** Opcode for xcb_glx_bad_drawable. */ -#define XCB_GLX_BAD_DRAWABLE 2 - -typedef xcb_glx_generic_error_t xcb_glx_bad_drawable_error_t; - -/** Opcode for xcb_glx_bad_pixmap. */ -#define XCB_GLX_BAD_PIXMAP 3 - -typedef xcb_glx_generic_error_t xcb_glx_bad_pixmap_error_t; - -/** Opcode for xcb_glx_bad_context_tag. */ -#define XCB_GLX_BAD_CONTEXT_TAG 4 - -typedef xcb_glx_generic_error_t xcb_glx_bad_context_tag_error_t; - -/** Opcode for xcb_glx_bad_current_window. */ -#define XCB_GLX_BAD_CURRENT_WINDOW 5 - -typedef xcb_glx_generic_error_t xcb_glx_bad_current_window_error_t; - -/** Opcode for xcb_glx_bad_render_request. */ -#define XCB_GLX_BAD_RENDER_REQUEST 6 - -typedef xcb_glx_generic_error_t xcb_glx_bad_render_request_error_t; - -/** Opcode for xcb_glx_bad_large_request. */ -#define XCB_GLX_BAD_LARGE_REQUEST 7 - -typedef xcb_glx_generic_error_t xcb_glx_bad_large_request_error_t; - -/** Opcode for xcb_glx_unsupported_private_request. */ -#define XCB_GLX_UNSUPPORTED_PRIVATE_REQUEST 8 - -typedef xcb_glx_generic_error_t xcb_glx_unsupported_private_request_error_t; - -/** Opcode for xcb_glx_bad_fb_config. */ -#define XCB_GLX_BAD_FB_CONFIG 9 - -typedef xcb_glx_generic_error_t xcb_glx_bad_fb_config_error_t; - -/** Opcode for xcb_glx_bad_pbuffer. */ -#define XCB_GLX_BAD_PBUFFER 10 - -typedef xcb_glx_generic_error_t xcb_glx_bad_pbuffer_error_t; - -/** Opcode for xcb_glx_bad_current_drawable. */ -#define XCB_GLX_BAD_CURRENT_DRAWABLE 11 - -typedef xcb_glx_generic_error_t xcb_glx_bad_current_drawable_error_t; - -/** Opcode for xcb_glx_bad_window. */ -#define XCB_GLX_BAD_WINDOW 12 - -typedef xcb_glx_generic_error_t xcb_glx_bad_window_error_t; - -/** Opcode for xcb_glx_glx_bad_profile_arb. */ -#define XCB_GLX_GLX_BAD_PROFILE_ARB 13 - -typedef xcb_glx_generic_error_t xcb_glx_glx_bad_profile_arb_error_t; - -/** Opcode for xcb_glx_pbuffer_clobber. */ -#define XCB_GLX_PBUFFER_CLOBBER 0 - -/** - * @brief xcb_glx_pbuffer_clobber_event_t - **/ -typedef struct xcb_glx_pbuffer_clobber_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint16_t event_type; /**< */ - uint16_t draw_type; /**< */ - xcb_glx_drawable_t drawable; /**< */ - uint32_t b_mask; /**< */ - uint16_t aux_buffer; /**< */ - uint16_t x; /**< */ - uint16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t count; /**< */ - uint8_t pad1[4]; /**< */ -} xcb_glx_pbuffer_clobber_event_t; - -/** Opcode for xcb_glx_buffer_swap_complete. */ -#define XCB_GLX_BUFFER_SWAP_COMPLETE 1 - -/** - * @brief xcb_glx_buffer_swap_complete_event_t - **/ -typedef struct xcb_glx_buffer_swap_complete_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint16_t event_type; /**< */ - uint8_t pad1[2]; /**< */ - xcb_glx_drawable_t drawable; /**< */ - uint32_t ust_hi; /**< */ - uint32_t ust_lo; /**< */ - uint32_t msc_hi; /**< */ - uint32_t msc_lo; /**< */ - uint32_t sbc; /**< */ -} xcb_glx_buffer_swap_complete_event_t; - -typedef enum xcb_glx_pbcet_t { - XCB_GLX_PBCET_DAMAGED = 32791, - XCB_GLX_PBCET_SAVED = 32792 -} xcb_glx_pbcet_t; - -typedef enum xcb_glx_pbcdt_t { - XCB_GLX_PBCDT_WINDOW = 32793, - XCB_GLX_PBCDT_PBUFFER = 32794 -} xcb_glx_pbcdt_t; - -/** Opcode for xcb_glx_render. */ -#define XCB_GLX_RENDER 1 - -/** - * @brief xcb_glx_render_request_t - **/ -typedef struct xcb_glx_render_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ -} xcb_glx_render_request_t; - -/** Opcode for xcb_glx_render_large. */ -#define XCB_GLX_RENDER_LARGE 2 - -/** - * @brief xcb_glx_render_large_request_t - **/ -typedef struct xcb_glx_render_large_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint16_t request_num; /**< */ - uint16_t request_total; /**< */ - uint32_t data_len; /**< */ -} xcb_glx_render_large_request_t; - -/** Opcode for xcb_glx_create_context. */ -#define XCB_GLX_CREATE_CONTEXT 3 - -/** - * @brief xcb_glx_create_context_request_t - **/ -typedef struct xcb_glx_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_t context; /**< */ - xcb_visualid_t visual; /**< */ - uint32_t screen; /**< */ - xcb_glx_context_t share_list; /**< */ - uint8_t is_direct; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_glx_create_context_request_t; - -/** Opcode for xcb_glx_destroy_context. */ -#define XCB_GLX_DESTROY_CONTEXT 4 - -/** - * @brief xcb_glx_destroy_context_request_t - **/ -typedef struct xcb_glx_destroy_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_t context; /**< */ -} xcb_glx_destroy_context_request_t; - -/** - * @brief xcb_glx_make_current_cookie_t - **/ -typedef struct xcb_glx_make_current_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_make_current_cookie_t; - -/** Opcode for xcb_glx_make_current. */ -#define XCB_GLX_MAKE_CURRENT 5 - -/** - * @brief xcb_glx_make_current_request_t - **/ -typedef struct xcb_glx_make_current_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_drawable_t drawable; /**< */ - xcb_glx_context_t context; /**< */ - xcb_glx_context_tag_t old_context_tag; /**< */ -} xcb_glx_make_current_request_t; - -/** - * @brief xcb_glx_make_current_reply_t - **/ -typedef struct xcb_glx_make_current_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_glx_make_current_reply_t; - -/** - * @brief xcb_glx_is_direct_cookie_t - **/ -typedef struct xcb_glx_is_direct_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_is_direct_cookie_t; - -/** Opcode for xcb_glx_is_direct. */ -#define XCB_GLX_IS_DIRECT 6 - -/** - * @brief xcb_glx_is_direct_request_t - **/ -typedef struct xcb_glx_is_direct_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_t context; /**< */ -} xcb_glx_is_direct_request_t; - -/** - * @brief xcb_glx_is_direct_reply_t - **/ -typedef struct xcb_glx_is_direct_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t is_direct; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_glx_is_direct_reply_t; - -/** - * @brief xcb_glx_query_version_cookie_t - **/ -typedef struct xcb_glx_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_query_version_cookie_t; - -/** Opcode for xcb_glx_query_version. */ -#define XCB_GLX_QUERY_VERSION 7 - -/** - * @brief xcb_glx_query_version_request_t - **/ -typedef struct xcb_glx_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ -} xcb_glx_query_version_request_t; - -/** - * @brief xcb_glx_query_version_reply_t - **/ -typedef struct xcb_glx_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_glx_query_version_reply_t; - -/** Opcode for xcb_glx_wait_gl. */ -#define XCB_GLX_WAIT_GL 8 - -/** - * @brief xcb_glx_wait_gl_request_t - **/ -typedef struct xcb_glx_wait_gl_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ -} xcb_glx_wait_gl_request_t; - -/** Opcode for xcb_glx_wait_x. */ -#define XCB_GLX_WAIT_X 9 - -/** - * @brief xcb_glx_wait_x_request_t - **/ -typedef struct xcb_glx_wait_x_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ -} xcb_glx_wait_x_request_t; - -/** Opcode for xcb_glx_copy_context. */ -#define XCB_GLX_COPY_CONTEXT 10 - -/** - * @brief xcb_glx_copy_context_request_t - **/ -typedef struct xcb_glx_copy_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_t src; /**< */ - xcb_glx_context_t dest; /**< */ - uint32_t mask; /**< */ - xcb_glx_context_tag_t src_context_tag; /**< */ -} xcb_glx_copy_context_request_t; - -typedef enum xcb_glx_gc_t { - XCB_GLX_GC_GL_CURRENT_BIT = 1, - XCB_GLX_GC_GL_POINT_BIT = 2, - XCB_GLX_GC_GL_LINE_BIT = 4, - XCB_GLX_GC_GL_POLYGON_BIT = 8, - XCB_GLX_GC_GL_POLYGON_STIPPLE_BIT = 16, - XCB_GLX_GC_GL_PIXEL_MODE_BIT = 32, - XCB_GLX_GC_GL_LIGHTING_BIT = 64, - XCB_GLX_GC_GL_FOG_BIT = 128, - XCB_GLX_GC_GL_DEPTH_BUFFER_BIT = 256, - XCB_GLX_GC_GL_ACCUM_BUFFER_BIT = 512, - XCB_GLX_GC_GL_STENCIL_BUFFER_BIT = 1024, - XCB_GLX_GC_GL_VIEWPORT_BIT = 2048, - XCB_GLX_GC_GL_TRANSFORM_BIT = 4096, - XCB_GLX_GC_GL_ENABLE_BIT = 8192, - XCB_GLX_GC_GL_COLOR_BUFFER_BIT = 16384, - XCB_GLX_GC_GL_HINT_BIT = 32768, - XCB_GLX_GC_GL_EVAL_BIT = 65536, - XCB_GLX_GC_GL_LIST_BIT = 131072, - XCB_GLX_GC_GL_TEXTURE_BIT = 262144, - XCB_GLX_GC_GL_SCISSOR_BIT = 524288, - XCB_GLX_GC_GL_ALL_ATTRIB_BITS = 16777215 -} xcb_glx_gc_t; - -/** Opcode for xcb_glx_swap_buffers. */ -#define XCB_GLX_SWAP_BUFFERS 11 - -/** - * @brief xcb_glx_swap_buffers_request_t - **/ -typedef struct xcb_glx_swap_buffers_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - xcb_glx_drawable_t drawable; /**< */ -} xcb_glx_swap_buffers_request_t; - -/** Opcode for xcb_glx_use_x_font. */ -#define XCB_GLX_USE_X_FONT 12 - -/** - * @brief xcb_glx_use_x_font_request_t - **/ -typedef struct xcb_glx_use_x_font_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - xcb_font_t font; /**< */ - uint32_t first; /**< */ - uint32_t count; /**< */ - uint32_t list_base; /**< */ -} xcb_glx_use_x_font_request_t; - -/** Opcode for xcb_glx_create_glx_pixmap. */ -#define XCB_GLX_CREATE_GLX_PIXMAP 13 - -/** - * @brief xcb_glx_create_glx_pixmap_request_t - **/ -typedef struct xcb_glx_create_glx_pixmap_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ - xcb_visualid_t visual; /**< */ - xcb_pixmap_t pixmap; /**< */ - xcb_glx_pixmap_t glx_pixmap; /**< */ -} xcb_glx_create_glx_pixmap_request_t; - -/** - * @brief xcb_glx_get_visual_configs_cookie_t - **/ -typedef struct xcb_glx_get_visual_configs_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_visual_configs_cookie_t; - -/** Opcode for xcb_glx_get_visual_configs. */ -#define XCB_GLX_GET_VISUAL_CONFIGS 14 - -/** - * @brief xcb_glx_get_visual_configs_request_t - **/ -typedef struct xcb_glx_get_visual_configs_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ -} xcb_glx_get_visual_configs_request_t; - -/** - * @brief xcb_glx_get_visual_configs_reply_t - **/ -typedef struct xcb_glx_get_visual_configs_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_visuals; /**< */ - uint32_t num_properties; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_glx_get_visual_configs_reply_t; - -/** Opcode for xcb_glx_destroy_glx_pixmap. */ -#define XCB_GLX_DESTROY_GLX_PIXMAP 15 - -/** - * @brief xcb_glx_destroy_glx_pixmap_request_t - **/ -typedef struct xcb_glx_destroy_glx_pixmap_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_pixmap_t glx_pixmap; /**< */ -} xcb_glx_destroy_glx_pixmap_request_t; - -/** Opcode for xcb_glx_vendor_private. */ -#define XCB_GLX_VENDOR_PRIVATE 16 - -/** - * @brief xcb_glx_vendor_private_request_t - **/ -typedef struct xcb_glx_vendor_private_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t vendor_code; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ -} xcb_glx_vendor_private_request_t; - -/** - * @brief xcb_glx_vendor_private_with_reply_cookie_t - **/ -typedef struct xcb_glx_vendor_private_with_reply_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_vendor_private_with_reply_cookie_t; - -/** Opcode for xcb_glx_vendor_private_with_reply. */ -#define XCB_GLX_VENDOR_PRIVATE_WITH_REPLY 17 - -/** - * @brief xcb_glx_vendor_private_with_reply_request_t - **/ -typedef struct xcb_glx_vendor_private_with_reply_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t vendor_code; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ -} xcb_glx_vendor_private_with_reply_request_t; - -/** - * @brief xcb_glx_vendor_private_with_reply_reply_t - **/ -typedef struct xcb_glx_vendor_private_with_reply_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t retval; /**< */ - uint8_t data1[24]; /**< */ -} xcb_glx_vendor_private_with_reply_reply_t; - -/** - * @brief xcb_glx_query_extensions_string_cookie_t - **/ -typedef struct xcb_glx_query_extensions_string_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_query_extensions_string_cookie_t; - -/** Opcode for xcb_glx_query_extensions_string. */ -#define XCB_GLX_QUERY_EXTENSIONS_STRING 18 - -/** - * @brief xcb_glx_query_extensions_string_request_t - **/ -typedef struct xcb_glx_query_extensions_string_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ -} xcb_glx_query_extensions_string_request_t; - -/** - * @brief xcb_glx_query_extensions_string_reply_t - **/ -typedef struct xcb_glx_query_extensions_string_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - uint8_t pad2[16]; /**< */ -} xcb_glx_query_extensions_string_reply_t; - -/** - * @brief xcb_glx_query_server_string_cookie_t - **/ -typedef struct xcb_glx_query_server_string_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_query_server_string_cookie_t; - -/** Opcode for xcb_glx_query_server_string. */ -#define XCB_GLX_QUERY_SERVER_STRING 19 - -/** - * @brief xcb_glx_query_server_string_request_t - **/ -typedef struct xcb_glx_query_server_string_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ - uint32_t name; /**< */ -} xcb_glx_query_server_string_request_t; - -/** - * @brief xcb_glx_query_server_string_reply_t - **/ -typedef struct xcb_glx_query_server_string_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t str_len; /**< */ - uint8_t pad2[16]; /**< */ -} xcb_glx_query_server_string_reply_t; - -/** Opcode for xcb_glx_client_info. */ -#define XCB_GLX_CLIENT_INFO 20 - -/** - * @brief xcb_glx_client_info_request_t - **/ -typedef struct xcb_glx_client_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ - uint32_t str_len; /**< */ -} xcb_glx_client_info_request_t; - -/** - * @brief xcb_glx_get_fb_configs_cookie_t - **/ -typedef struct xcb_glx_get_fb_configs_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_fb_configs_cookie_t; - -/** Opcode for xcb_glx_get_fb_configs. */ -#define XCB_GLX_GET_FB_CONFIGS 21 - -/** - * @brief xcb_glx_get_fb_configs_request_t - **/ -typedef struct xcb_glx_get_fb_configs_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ -} xcb_glx_get_fb_configs_request_t; - -/** - * @brief xcb_glx_get_fb_configs_reply_t - **/ -typedef struct xcb_glx_get_fb_configs_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_FB_configs; /**< */ - uint32_t num_properties; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_glx_get_fb_configs_reply_t; - -/** Opcode for xcb_glx_create_pixmap. */ -#define XCB_GLX_CREATE_PIXMAP 22 - -/** - * @brief xcb_glx_create_pixmap_request_t - **/ -typedef struct xcb_glx_create_pixmap_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ - xcb_glx_fbconfig_t fbconfig; /**< */ - xcb_pixmap_t pixmap; /**< */ - xcb_glx_pixmap_t glx_pixmap; /**< */ - uint32_t num_attribs; /**< */ -} xcb_glx_create_pixmap_request_t; - -/** Opcode for xcb_glx_destroy_pixmap. */ -#define XCB_GLX_DESTROY_PIXMAP 23 - -/** - * @brief xcb_glx_destroy_pixmap_request_t - **/ -typedef struct xcb_glx_destroy_pixmap_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_pixmap_t glx_pixmap; /**< */ -} xcb_glx_destroy_pixmap_request_t; - -/** Opcode for xcb_glx_create_new_context. */ -#define XCB_GLX_CREATE_NEW_CONTEXT 24 - -/** - * @brief xcb_glx_create_new_context_request_t - **/ -typedef struct xcb_glx_create_new_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_t context; /**< */ - xcb_glx_fbconfig_t fbconfig; /**< */ - uint32_t screen; /**< */ - uint32_t render_type; /**< */ - xcb_glx_context_t share_list; /**< */ - uint8_t is_direct; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_glx_create_new_context_request_t; - -/** - * @brief xcb_glx_query_context_cookie_t - **/ -typedef struct xcb_glx_query_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_query_context_cookie_t; - -/** Opcode for xcb_glx_query_context. */ -#define XCB_GLX_QUERY_CONTEXT 25 - -/** - * @brief xcb_glx_query_context_request_t - **/ -typedef struct xcb_glx_query_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_t context; /**< */ -} xcb_glx_query_context_request_t; - -/** - * @brief xcb_glx_query_context_reply_t - **/ -typedef struct xcb_glx_query_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_attribs; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_glx_query_context_reply_t; - -/** - * @brief xcb_glx_make_context_current_cookie_t - **/ -typedef struct xcb_glx_make_context_current_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_make_context_current_cookie_t; - -/** Opcode for xcb_glx_make_context_current. */ -#define XCB_GLX_MAKE_CONTEXT_CURRENT 26 - -/** - * @brief xcb_glx_make_context_current_request_t - **/ -typedef struct xcb_glx_make_context_current_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t old_context_tag; /**< */ - xcb_glx_drawable_t drawable; /**< */ - xcb_glx_drawable_t read_drawable; /**< */ - xcb_glx_context_t context; /**< */ -} xcb_glx_make_context_current_request_t; - -/** - * @brief xcb_glx_make_context_current_reply_t - **/ -typedef struct xcb_glx_make_context_current_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_glx_make_context_current_reply_t; - -/** Opcode for xcb_glx_create_pbuffer. */ -#define XCB_GLX_CREATE_PBUFFER 27 - -/** - * @brief xcb_glx_create_pbuffer_request_t - **/ -typedef struct xcb_glx_create_pbuffer_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ - xcb_glx_fbconfig_t fbconfig; /**< */ - xcb_glx_pbuffer_t pbuffer; /**< */ - uint32_t num_attribs; /**< */ -} xcb_glx_create_pbuffer_request_t; - -/** Opcode for xcb_glx_destroy_pbuffer. */ -#define XCB_GLX_DESTROY_PBUFFER 28 - -/** - * @brief xcb_glx_destroy_pbuffer_request_t - **/ -typedef struct xcb_glx_destroy_pbuffer_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_pbuffer_t pbuffer; /**< */ -} xcb_glx_destroy_pbuffer_request_t; - -/** - * @brief xcb_glx_get_drawable_attributes_cookie_t - **/ -typedef struct xcb_glx_get_drawable_attributes_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_drawable_attributes_cookie_t; - -/** Opcode for xcb_glx_get_drawable_attributes. */ -#define XCB_GLX_GET_DRAWABLE_ATTRIBUTES 29 - -/** - * @brief xcb_glx_get_drawable_attributes_request_t - **/ -typedef struct xcb_glx_get_drawable_attributes_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_drawable_t drawable; /**< */ -} xcb_glx_get_drawable_attributes_request_t; - -/** - * @brief xcb_glx_get_drawable_attributes_reply_t - **/ -typedef struct xcb_glx_get_drawable_attributes_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_attribs; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_glx_get_drawable_attributes_reply_t; - -/** Opcode for xcb_glx_change_drawable_attributes. */ -#define XCB_GLX_CHANGE_DRAWABLE_ATTRIBUTES 30 - -/** - * @brief xcb_glx_change_drawable_attributes_request_t - **/ -typedef struct xcb_glx_change_drawable_attributes_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_drawable_t drawable; /**< */ - uint32_t num_attribs; /**< */ -} xcb_glx_change_drawable_attributes_request_t; - -/** Opcode for xcb_glx_create_window. */ -#define XCB_GLX_CREATE_WINDOW 31 - -/** - * @brief xcb_glx_create_window_request_t - **/ -typedef struct xcb_glx_create_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ - xcb_glx_fbconfig_t fbconfig; /**< */ - xcb_window_t window; /**< */ - xcb_glx_window_t glx_window; /**< */ - uint32_t num_attribs; /**< */ -} xcb_glx_create_window_request_t; - -/** Opcode for xcb_glx_delete_window. */ -#define XCB_GLX_DELETE_WINDOW 32 - -/** - * @brief xcb_glx_delete_window_request_t - **/ -typedef struct xcb_glx_delete_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_window_t glxwindow; /**< */ -} xcb_glx_delete_window_request_t; - -/** Opcode for xcb_glx_set_client_info_arb. */ -#define XCB_GLX_SET_CLIENT_INFO_ARB 33 - -/** - * @brief xcb_glx_set_client_info_arb_request_t - **/ -typedef struct xcb_glx_set_client_info_arb_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ - uint32_t num_versions; /**< */ - uint32_t gl_str_len; /**< */ - uint32_t glx_str_len; /**< */ -} xcb_glx_set_client_info_arb_request_t; - -/** Opcode for xcb_glx_create_context_attribs_arb. */ -#define XCB_GLX_CREATE_CONTEXT_ATTRIBS_ARB 34 - -/** - * @brief xcb_glx_create_context_attribs_arb_request_t - **/ -typedef struct xcb_glx_create_context_attribs_arb_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_t context; /**< */ - xcb_glx_fbconfig_t fbconfig; /**< */ - uint32_t screen; /**< */ - xcb_glx_context_t share_list; /**< */ - uint8_t is_direct; /**< */ - uint8_t pad0[3]; /**< */ - uint32_t num_attribs; /**< */ -} xcb_glx_create_context_attribs_arb_request_t; - -/** Opcode for xcb_glx_set_client_info_2arb. */ -#define XCB_GLX_SET_CLIENT_INFO_2ARB 35 - -/** - * @brief xcb_glx_set_client_info_2arb_request_t - **/ -typedef struct xcb_glx_set_client_info_2arb_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ - uint32_t num_versions; /**< */ - uint32_t gl_str_len; /**< */ - uint32_t glx_str_len; /**< */ -} xcb_glx_set_client_info_2arb_request_t; - -/** Opcode for xcb_glx_new_list. */ -#define XCB_GLX_NEW_LIST 101 - -/** - * @brief xcb_glx_new_list_request_t - **/ -typedef struct xcb_glx_new_list_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t list; /**< */ - uint32_t mode; /**< */ -} xcb_glx_new_list_request_t; - -/** Opcode for xcb_glx_end_list. */ -#define XCB_GLX_END_LIST 102 - -/** - * @brief xcb_glx_end_list_request_t - **/ -typedef struct xcb_glx_end_list_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ -} xcb_glx_end_list_request_t; - -/** Opcode for xcb_glx_delete_lists. */ -#define XCB_GLX_DELETE_LISTS 103 - -/** - * @brief xcb_glx_delete_lists_request_t - **/ -typedef struct xcb_glx_delete_lists_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t list; /**< */ - int32_t range; /**< */ -} xcb_glx_delete_lists_request_t; - -/** - * @brief xcb_glx_gen_lists_cookie_t - **/ -typedef struct xcb_glx_gen_lists_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_gen_lists_cookie_t; - -/** Opcode for xcb_glx_gen_lists. */ -#define XCB_GLX_GEN_LISTS 104 - -/** - * @brief xcb_glx_gen_lists_request_t - **/ -typedef struct xcb_glx_gen_lists_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - int32_t range; /**< */ -} xcb_glx_gen_lists_request_t; - -/** - * @brief xcb_glx_gen_lists_reply_t - **/ -typedef struct xcb_glx_gen_lists_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t ret_val; /**< */ -} xcb_glx_gen_lists_reply_t; - -/** Opcode for xcb_glx_feedback_buffer. */ -#define XCB_GLX_FEEDBACK_BUFFER 105 - -/** - * @brief xcb_glx_feedback_buffer_request_t - **/ -typedef struct xcb_glx_feedback_buffer_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - int32_t size; /**< */ - int32_t type; /**< */ -} xcb_glx_feedback_buffer_request_t; - -/** Opcode for xcb_glx_select_buffer. */ -#define XCB_GLX_SELECT_BUFFER 106 - -/** - * @brief xcb_glx_select_buffer_request_t - **/ -typedef struct xcb_glx_select_buffer_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - int32_t size; /**< */ -} xcb_glx_select_buffer_request_t; - -/** - * @brief xcb_glx_render_mode_cookie_t - **/ -typedef struct xcb_glx_render_mode_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_render_mode_cookie_t; - -/** Opcode for xcb_glx_render_mode. */ -#define XCB_GLX_RENDER_MODE 107 - -/** - * @brief xcb_glx_render_mode_request_t - **/ -typedef struct xcb_glx_render_mode_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t mode; /**< */ -} xcb_glx_render_mode_request_t; - -/** - * @brief xcb_glx_render_mode_reply_t - **/ -typedef struct xcb_glx_render_mode_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t ret_val; /**< */ - uint32_t n; /**< */ - uint32_t new_mode; /**< */ - uint8_t pad1[12]; /**< */ -} xcb_glx_render_mode_reply_t; - -typedef enum xcb_glx_rm_t { - XCB_GLX_RM_GL_RENDER = 7168, - XCB_GLX_RM_GL_FEEDBACK = 7169, - XCB_GLX_RM_GL_SELECT = 7170 -} xcb_glx_rm_t; - -/** - * @brief xcb_glx_finish_cookie_t - **/ -typedef struct xcb_glx_finish_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_finish_cookie_t; - -/** Opcode for xcb_glx_finish. */ -#define XCB_GLX_FINISH 108 - -/** - * @brief xcb_glx_finish_request_t - **/ -typedef struct xcb_glx_finish_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ -} xcb_glx_finish_request_t; - -/** - * @brief xcb_glx_finish_reply_t - **/ -typedef struct xcb_glx_finish_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ -} xcb_glx_finish_reply_t; - -/** Opcode for xcb_glx_pixel_storef. */ -#define XCB_GLX_PIXEL_STOREF 109 - -/** - * @brief xcb_glx_pixel_storef_request_t - **/ -typedef struct xcb_glx_pixel_storef_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t pname; /**< */ - xcb_glx_float32_t datum; /**< */ -} xcb_glx_pixel_storef_request_t; - -/** Opcode for xcb_glx_pixel_storei. */ -#define XCB_GLX_PIXEL_STOREI 110 - -/** - * @brief xcb_glx_pixel_storei_request_t - **/ -typedef struct xcb_glx_pixel_storei_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t pname; /**< */ - int32_t datum; /**< */ -} xcb_glx_pixel_storei_request_t; - -/** - * @brief xcb_glx_read_pixels_cookie_t - **/ -typedef struct xcb_glx_read_pixels_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_read_pixels_cookie_t; - -/** Opcode for xcb_glx_read_pixels. */ -#define XCB_GLX_READ_PIXELS 111 - -/** - * @brief xcb_glx_read_pixels_request_t - **/ -typedef struct xcb_glx_read_pixels_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - int32_t x; /**< */ - int32_t y; /**< */ - int32_t width; /**< */ - int32_t height; /**< */ - uint32_t format; /**< */ - uint32_t type; /**< */ - uint8_t swap_bytes; /**< */ - uint8_t lsb_first; /**< */ -} xcb_glx_read_pixels_request_t; - -/** - * @brief xcb_glx_read_pixels_reply_t - **/ -typedef struct xcb_glx_read_pixels_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[24]; /**< */ -} xcb_glx_read_pixels_reply_t; - -/** - * @brief xcb_glx_get_booleanv_cookie_t - **/ -typedef struct xcb_glx_get_booleanv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_booleanv_cookie_t; - -/** Opcode for xcb_glx_get_booleanv. */ -#define XCB_GLX_GET_BOOLEANV 112 - -/** - * @brief xcb_glx_get_booleanv_request_t - **/ -typedef struct xcb_glx_get_booleanv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - int32_t pname; /**< */ -} xcb_glx_get_booleanv_request_t; - -/** - * @brief xcb_glx_get_booleanv_reply_t - **/ -typedef struct xcb_glx_get_booleanv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - uint8_t datum; /**< */ - uint8_t pad2[15]; /**< */ -} xcb_glx_get_booleanv_reply_t; - -/** - * @brief xcb_glx_get_clip_plane_cookie_t - **/ -typedef struct xcb_glx_get_clip_plane_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_clip_plane_cookie_t; - -/** Opcode for xcb_glx_get_clip_plane. */ -#define XCB_GLX_GET_CLIP_PLANE 113 - -/** - * @brief xcb_glx_get_clip_plane_request_t - **/ -typedef struct xcb_glx_get_clip_plane_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - int32_t plane; /**< */ -} xcb_glx_get_clip_plane_request_t; - -/** - * @brief xcb_glx_get_clip_plane_reply_t - **/ -typedef struct xcb_glx_get_clip_plane_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[24]; /**< */ -} xcb_glx_get_clip_plane_reply_t; - -/** - * @brief xcb_glx_get_doublev_cookie_t - **/ -typedef struct xcb_glx_get_doublev_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_doublev_cookie_t; - -/** Opcode for xcb_glx_get_doublev. */ -#define XCB_GLX_GET_DOUBLEV 114 - -/** - * @brief xcb_glx_get_doublev_request_t - **/ -typedef struct xcb_glx_get_doublev_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_doublev_request_t; - -/** - * @brief xcb_glx_get_doublev_reply_t - **/ -typedef struct xcb_glx_get_doublev_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float64_t datum; /**< */ - uint8_t pad2[8]; /**< */ -} xcb_glx_get_doublev_reply_t; - -/** - * @brief xcb_glx_get_error_cookie_t - **/ -typedef struct xcb_glx_get_error_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_error_cookie_t; - -/** Opcode for xcb_glx_get_error. */ -#define XCB_GLX_GET_ERROR 115 - -/** - * @brief xcb_glx_get_error_request_t - **/ -typedef struct xcb_glx_get_error_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ -} xcb_glx_get_error_request_t; - -/** - * @brief xcb_glx_get_error_reply_t - **/ -typedef struct xcb_glx_get_error_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - int32_t error; /**< */ -} xcb_glx_get_error_reply_t; - -/** - * @brief xcb_glx_get_floatv_cookie_t - **/ -typedef struct xcb_glx_get_floatv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_floatv_cookie_t; - -/** Opcode for xcb_glx_get_floatv. */ -#define XCB_GLX_GET_FLOATV 116 - -/** - * @brief xcb_glx_get_floatv_request_t - **/ -typedef struct xcb_glx_get_floatv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_floatv_request_t; - -/** - * @brief xcb_glx_get_floatv_reply_t - **/ -typedef struct xcb_glx_get_floatv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_floatv_reply_t; - -/** - * @brief xcb_glx_get_integerv_cookie_t - **/ -typedef struct xcb_glx_get_integerv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_integerv_cookie_t; - -/** Opcode for xcb_glx_get_integerv. */ -#define XCB_GLX_GET_INTEGERV 117 - -/** - * @brief xcb_glx_get_integerv_request_t - **/ -typedef struct xcb_glx_get_integerv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_integerv_request_t; - -/** - * @brief xcb_glx_get_integerv_reply_t - **/ -typedef struct xcb_glx_get_integerv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_integerv_reply_t; - -/** - * @brief xcb_glx_get_lightfv_cookie_t - **/ -typedef struct xcb_glx_get_lightfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_lightfv_cookie_t; - -/** Opcode for xcb_glx_get_lightfv. */ -#define XCB_GLX_GET_LIGHTFV 118 - -/** - * @brief xcb_glx_get_lightfv_request_t - **/ -typedef struct xcb_glx_get_lightfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t light; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_lightfv_request_t; - -/** - * @brief xcb_glx_get_lightfv_reply_t - **/ -typedef struct xcb_glx_get_lightfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_lightfv_reply_t; - -/** - * @brief xcb_glx_get_lightiv_cookie_t - **/ -typedef struct xcb_glx_get_lightiv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_lightiv_cookie_t; - -/** Opcode for xcb_glx_get_lightiv. */ -#define XCB_GLX_GET_LIGHTIV 119 - -/** - * @brief xcb_glx_get_lightiv_request_t - **/ -typedef struct xcb_glx_get_lightiv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t light; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_lightiv_request_t; - -/** - * @brief xcb_glx_get_lightiv_reply_t - **/ -typedef struct xcb_glx_get_lightiv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_lightiv_reply_t; - -/** - * @brief xcb_glx_get_mapdv_cookie_t - **/ -typedef struct xcb_glx_get_mapdv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_mapdv_cookie_t; - -/** Opcode for xcb_glx_get_mapdv. */ -#define XCB_GLX_GET_MAPDV 120 - -/** - * @brief xcb_glx_get_mapdv_request_t - **/ -typedef struct xcb_glx_get_mapdv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t query; /**< */ -} xcb_glx_get_mapdv_request_t; - -/** - * @brief xcb_glx_get_mapdv_reply_t - **/ -typedef struct xcb_glx_get_mapdv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float64_t datum; /**< */ - uint8_t pad2[8]; /**< */ -} xcb_glx_get_mapdv_reply_t; - -/** - * @brief xcb_glx_get_mapfv_cookie_t - **/ -typedef struct xcb_glx_get_mapfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_mapfv_cookie_t; - -/** Opcode for xcb_glx_get_mapfv. */ -#define XCB_GLX_GET_MAPFV 121 - -/** - * @brief xcb_glx_get_mapfv_request_t - **/ -typedef struct xcb_glx_get_mapfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t query; /**< */ -} xcb_glx_get_mapfv_request_t; - -/** - * @brief xcb_glx_get_mapfv_reply_t - **/ -typedef struct xcb_glx_get_mapfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_mapfv_reply_t; - -/** - * @brief xcb_glx_get_mapiv_cookie_t - **/ -typedef struct xcb_glx_get_mapiv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_mapiv_cookie_t; - -/** Opcode for xcb_glx_get_mapiv. */ -#define XCB_GLX_GET_MAPIV 122 - -/** - * @brief xcb_glx_get_mapiv_request_t - **/ -typedef struct xcb_glx_get_mapiv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t query; /**< */ -} xcb_glx_get_mapiv_request_t; - -/** - * @brief xcb_glx_get_mapiv_reply_t - **/ -typedef struct xcb_glx_get_mapiv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_mapiv_reply_t; - -/** - * @brief xcb_glx_get_materialfv_cookie_t - **/ -typedef struct xcb_glx_get_materialfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_materialfv_cookie_t; - -/** Opcode for xcb_glx_get_materialfv. */ -#define XCB_GLX_GET_MATERIALFV 123 - -/** - * @brief xcb_glx_get_materialfv_request_t - **/ -typedef struct xcb_glx_get_materialfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t face; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_materialfv_request_t; - -/** - * @brief xcb_glx_get_materialfv_reply_t - **/ -typedef struct xcb_glx_get_materialfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_materialfv_reply_t; - -/** - * @brief xcb_glx_get_materialiv_cookie_t - **/ -typedef struct xcb_glx_get_materialiv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_materialiv_cookie_t; - -/** Opcode for xcb_glx_get_materialiv. */ -#define XCB_GLX_GET_MATERIALIV 124 - -/** - * @brief xcb_glx_get_materialiv_request_t - **/ -typedef struct xcb_glx_get_materialiv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t face; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_materialiv_request_t; - -/** - * @brief xcb_glx_get_materialiv_reply_t - **/ -typedef struct xcb_glx_get_materialiv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_materialiv_reply_t; - -/** - * @brief xcb_glx_get_pixel_mapfv_cookie_t - **/ -typedef struct xcb_glx_get_pixel_mapfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_pixel_mapfv_cookie_t; - -/** Opcode for xcb_glx_get_pixel_mapfv. */ -#define XCB_GLX_GET_PIXEL_MAPFV 125 - -/** - * @brief xcb_glx_get_pixel_mapfv_request_t - **/ -typedef struct xcb_glx_get_pixel_mapfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t map; /**< */ -} xcb_glx_get_pixel_mapfv_request_t; - -/** - * @brief xcb_glx_get_pixel_mapfv_reply_t - **/ -typedef struct xcb_glx_get_pixel_mapfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_pixel_mapfv_reply_t; - -/** - * @brief xcb_glx_get_pixel_mapuiv_cookie_t - **/ -typedef struct xcb_glx_get_pixel_mapuiv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_pixel_mapuiv_cookie_t; - -/** Opcode for xcb_glx_get_pixel_mapuiv. */ -#define XCB_GLX_GET_PIXEL_MAPUIV 126 - -/** - * @brief xcb_glx_get_pixel_mapuiv_request_t - **/ -typedef struct xcb_glx_get_pixel_mapuiv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t map; /**< */ -} xcb_glx_get_pixel_mapuiv_request_t; - -/** - * @brief xcb_glx_get_pixel_mapuiv_reply_t - **/ -typedef struct xcb_glx_get_pixel_mapuiv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - uint32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_pixel_mapuiv_reply_t; - -/** - * @brief xcb_glx_get_pixel_mapusv_cookie_t - **/ -typedef struct xcb_glx_get_pixel_mapusv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_pixel_mapusv_cookie_t; - -/** Opcode for xcb_glx_get_pixel_mapusv. */ -#define XCB_GLX_GET_PIXEL_MAPUSV 127 - -/** - * @brief xcb_glx_get_pixel_mapusv_request_t - **/ -typedef struct xcb_glx_get_pixel_mapusv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t map; /**< */ -} xcb_glx_get_pixel_mapusv_request_t; - -/** - * @brief xcb_glx_get_pixel_mapusv_reply_t - **/ -typedef struct xcb_glx_get_pixel_mapusv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - uint16_t datum; /**< */ - uint8_t pad2[16]; /**< */ -} xcb_glx_get_pixel_mapusv_reply_t; - -/** - * @brief xcb_glx_get_polygon_stipple_cookie_t - **/ -typedef struct xcb_glx_get_polygon_stipple_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_polygon_stipple_cookie_t; - -/** Opcode for xcb_glx_get_polygon_stipple. */ -#define XCB_GLX_GET_POLYGON_STIPPLE 128 - -/** - * @brief xcb_glx_get_polygon_stipple_request_t - **/ -typedef struct xcb_glx_get_polygon_stipple_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint8_t lsb_first; /**< */ -} xcb_glx_get_polygon_stipple_request_t; - -/** - * @brief xcb_glx_get_polygon_stipple_reply_t - **/ -typedef struct xcb_glx_get_polygon_stipple_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[24]; /**< */ -} xcb_glx_get_polygon_stipple_reply_t; - -/** - * @brief xcb_glx_get_string_cookie_t - **/ -typedef struct xcb_glx_get_string_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_string_cookie_t; - -/** Opcode for xcb_glx_get_string. */ -#define XCB_GLX_GET_STRING 129 - -/** - * @brief xcb_glx_get_string_request_t - **/ -typedef struct xcb_glx_get_string_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t name; /**< */ -} xcb_glx_get_string_request_t; - -/** - * @brief xcb_glx_get_string_reply_t - **/ -typedef struct xcb_glx_get_string_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - uint8_t pad2[16]; /**< */ -} xcb_glx_get_string_reply_t; - -/** - * @brief xcb_glx_get_tex_envfv_cookie_t - **/ -typedef struct xcb_glx_get_tex_envfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_tex_envfv_cookie_t; - -/** Opcode for xcb_glx_get_tex_envfv. */ -#define XCB_GLX_GET_TEX_ENVFV 130 - -/** - * @brief xcb_glx_get_tex_envfv_request_t - **/ -typedef struct xcb_glx_get_tex_envfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_tex_envfv_request_t; - -/** - * @brief xcb_glx_get_tex_envfv_reply_t - **/ -typedef struct xcb_glx_get_tex_envfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_tex_envfv_reply_t; - -/** - * @brief xcb_glx_get_tex_enviv_cookie_t - **/ -typedef struct xcb_glx_get_tex_enviv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_tex_enviv_cookie_t; - -/** Opcode for xcb_glx_get_tex_enviv. */ -#define XCB_GLX_GET_TEX_ENVIV 131 - -/** - * @brief xcb_glx_get_tex_enviv_request_t - **/ -typedef struct xcb_glx_get_tex_enviv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_tex_enviv_request_t; - -/** - * @brief xcb_glx_get_tex_enviv_reply_t - **/ -typedef struct xcb_glx_get_tex_enviv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_tex_enviv_reply_t; - -/** - * @brief xcb_glx_get_tex_gendv_cookie_t - **/ -typedef struct xcb_glx_get_tex_gendv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_tex_gendv_cookie_t; - -/** Opcode for xcb_glx_get_tex_gendv. */ -#define XCB_GLX_GET_TEX_GENDV 132 - -/** - * @brief xcb_glx_get_tex_gendv_request_t - **/ -typedef struct xcb_glx_get_tex_gendv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t coord; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_tex_gendv_request_t; - -/** - * @brief xcb_glx_get_tex_gendv_reply_t - **/ -typedef struct xcb_glx_get_tex_gendv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float64_t datum; /**< */ - uint8_t pad2[8]; /**< */ -} xcb_glx_get_tex_gendv_reply_t; - -/** - * @brief xcb_glx_get_tex_genfv_cookie_t - **/ -typedef struct xcb_glx_get_tex_genfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_tex_genfv_cookie_t; - -/** Opcode for xcb_glx_get_tex_genfv. */ -#define XCB_GLX_GET_TEX_GENFV 133 - -/** - * @brief xcb_glx_get_tex_genfv_request_t - **/ -typedef struct xcb_glx_get_tex_genfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t coord; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_tex_genfv_request_t; - -/** - * @brief xcb_glx_get_tex_genfv_reply_t - **/ -typedef struct xcb_glx_get_tex_genfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_tex_genfv_reply_t; - -/** - * @brief xcb_glx_get_tex_geniv_cookie_t - **/ -typedef struct xcb_glx_get_tex_geniv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_tex_geniv_cookie_t; - -/** Opcode for xcb_glx_get_tex_geniv. */ -#define XCB_GLX_GET_TEX_GENIV 134 - -/** - * @brief xcb_glx_get_tex_geniv_request_t - **/ -typedef struct xcb_glx_get_tex_geniv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t coord; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_tex_geniv_request_t; - -/** - * @brief xcb_glx_get_tex_geniv_reply_t - **/ -typedef struct xcb_glx_get_tex_geniv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_tex_geniv_reply_t; - -/** - * @brief xcb_glx_get_tex_image_cookie_t - **/ -typedef struct xcb_glx_get_tex_image_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_tex_image_cookie_t; - -/** Opcode for xcb_glx_get_tex_image. */ -#define XCB_GLX_GET_TEX_IMAGE 135 - -/** - * @brief xcb_glx_get_tex_image_request_t - **/ -typedef struct xcb_glx_get_tex_image_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - int32_t level; /**< */ - uint32_t format; /**< */ - uint32_t type; /**< */ - uint8_t swap_bytes; /**< */ -} xcb_glx_get_tex_image_request_t; - -/** - * @brief xcb_glx_get_tex_image_reply_t - **/ -typedef struct xcb_glx_get_tex_image_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[8]; /**< */ - int32_t width; /**< */ - int32_t height; /**< */ - int32_t depth; /**< */ - uint8_t pad2[4]; /**< */ -} xcb_glx_get_tex_image_reply_t; - -/** - * @brief xcb_glx_get_tex_parameterfv_cookie_t - **/ -typedef struct xcb_glx_get_tex_parameterfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_tex_parameterfv_cookie_t; - -/** Opcode for xcb_glx_get_tex_parameterfv. */ -#define XCB_GLX_GET_TEX_PARAMETERFV 136 - -/** - * @brief xcb_glx_get_tex_parameterfv_request_t - **/ -typedef struct xcb_glx_get_tex_parameterfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_tex_parameterfv_request_t; - -/** - * @brief xcb_glx_get_tex_parameterfv_reply_t - **/ -typedef struct xcb_glx_get_tex_parameterfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_tex_parameterfv_reply_t; - -/** - * @brief xcb_glx_get_tex_parameteriv_cookie_t - **/ -typedef struct xcb_glx_get_tex_parameteriv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_tex_parameteriv_cookie_t; - -/** Opcode for xcb_glx_get_tex_parameteriv. */ -#define XCB_GLX_GET_TEX_PARAMETERIV 137 - -/** - * @brief xcb_glx_get_tex_parameteriv_request_t - **/ -typedef struct xcb_glx_get_tex_parameteriv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_tex_parameteriv_request_t; - -/** - * @brief xcb_glx_get_tex_parameteriv_reply_t - **/ -typedef struct xcb_glx_get_tex_parameteriv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_tex_parameteriv_reply_t; - -/** - * @brief xcb_glx_get_tex_level_parameterfv_cookie_t - **/ -typedef struct xcb_glx_get_tex_level_parameterfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_tex_level_parameterfv_cookie_t; - -/** Opcode for xcb_glx_get_tex_level_parameterfv. */ -#define XCB_GLX_GET_TEX_LEVEL_PARAMETERFV 138 - -/** - * @brief xcb_glx_get_tex_level_parameterfv_request_t - **/ -typedef struct xcb_glx_get_tex_level_parameterfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - int32_t level; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_tex_level_parameterfv_request_t; - -/** - * @brief xcb_glx_get_tex_level_parameterfv_reply_t - **/ -typedef struct xcb_glx_get_tex_level_parameterfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_tex_level_parameterfv_reply_t; - -/** - * @brief xcb_glx_get_tex_level_parameteriv_cookie_t - **/ -typedef struct xcb_glx_get_tex_level_parameteriv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_tex_level_parameteriv_cookie_t; - -/** Opcode for xcb_glx_get_tex_level_parameteriv. */ -#define XCB_GLX_GET_TEX_LEVEL_PARAMETERIV 139 - -/** - * @brief xcb_glx_get_tex_level_parameteriv_request_t - **/ -typedef struct xcb_glx_get_tex_level_parameteriv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - int32_t level; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_tex_level_parameteriv_request_t; - -/** - * @brief xcb_glx_get_tex_level_parameteriv_reply_t - **/ -typedef struct xcb_glx_get_tex_level_parameteriv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_tex_level_parameteriv_reply_t; - -/** - * @brief xcb_glx_is_list_cookie_t - **/ -typedef struct xcb_glx_is_list_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_is_list_cookie_t; - -/** Opcode for xcb_glx_is_list. */ -#define XCB_GLX_IS_LIST 141 - -/** - * @brief xcb_glx_is_list_request_t - **/ -typedef struct xcb_glx_is_list_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t list; /**< */ -} xcb_glx_is_list_request_t; - -/** - * @brief xcb_glx_is_list_reply_t - **/ -typedef struct xcb_glx_is_list_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_glx_bool32_t ret_val; /**< */ -} xcb_glx_is_list_reply_t; - -/** Opcode for xcb_glx_flush. */ -#define XCB_GLX_FLUSH 142 - -/** - * @brief xcb_glx_flush_request_t - **/ -typedef struct xcb_glx_flush_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ -} xcb_glx_flush_request_t; - -/** - * @brief xcb_glx_are_textures_resident_cookie_t - **/ -typedef struct xcb_glx_are_textures_resident_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_are_textures_resident_cookie_t; - -/** Opcode for xcb_glx_are_textures_resident. */ -#define XCB_GLX_ARE_TEXTURES_RESIDENT 143 - -/** - * @brief xcb_glx_are_textures_resident_request_t - **/ -typedef struct xcb_glx_are_textures_resident_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - int32_t n; /**< */ -} xcb_glx_are_textures_resident_request_t; - -/** - * @brief xcb_glx_are_textures_resident_reply_t - **/ -typedef struct xcb_glx_are_textures_resident_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_glx_bool32_t ret_val; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_glx_are_textures_resident_reply_t; - -/** Opcode for xcb_glx_delete_textures. */ -#define XCB_GLX_DELETE_TEXTURES 144 - -/** - * @brief xcb_glx_delete_textures_request_t - **/ -typedef struct xcb_glx_delete_textures_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - int32_t n; /**< */ -} xcb_glx_delete_textures_request_t; - -/** - * @brief xcb_glx_gen_textures_cookie_t - **/ -typedef struct xcb_glx_gen_textures_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_gen_textures_cookie_t; - -/** Opcode for xcb_glx_gen_textures. */ -#define XCB_GLX_GEN_TEXTURES 145 - -/** - * @brief xcb_glx_gen_textures_request_t - **/ -typedef struct xcb_glx_gen_textures_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - int32_t n; /**< */ -} xcb_glx_gen_textures_request_t; - -/** - * @brief xcb_glx_gen_textures_reply_t - **/ -typedef struct xcb_glx_gen_textures_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[24]; /**< */ -} xcb_glx_gen_textures_reply_t; - -/** - * @brief xcb_glx_is_texture_cookie_t - **/ -typedef struct xcb_glx_is_texture_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_is_texture_cookie_t; - -/** Opcode for xcb_glx_is_texture. */ -#define XCB_GLX_IS_TEXTURE 146 - -/** - * @brief xcb_glx_is_texture_request_t - **/ -typedef struct xcb_glx_is_texture_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t texture; /**< */ -} xcb_glx_is_texture_request_t; - -/** - * @brief xcb_glx_is_texture_reply_t - **/ -typedef struct xcb_glx_is_texture_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_glx_bool32_t ret_val; /**< */ -} xcb_glx_is_texture_reply_t; - -/** - * @brief xcb_glx_get_color_table_cookie_t - **/ -typedef struct xcb_glx_get_color_table_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_color_table_cookie_t; - -/** Opcode for xcb_glx_get_color_table. */ -#define XCB_GLX_GET_COLOR_TABLE 147 - -/** - * @brief xcb_glx_get_color_table_request_t - **/ -typedef struct xcb_glx_get_color_table_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t format; /**< */ - uint32_t type; /**< */ - uint8_t swap_bytes; /**< */ -} xcb_glx_get_color_table_request_t; - -/** - * @brief xcb_glx_get_color_table_reply_t - **/ -typedef struct xcb_glx_get_color_table_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[8]; /**< */ - int32_t width; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_color_table_reply_t; - -/** - * @brief xcb_glx_get_color_table_parameterfv_cookie_t - **/ -typedef struct xcb_glx_get_color_table_parameterfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_color_table_parameterfv_cookie_t; - -/** Opcode for xcb_glx_get_color_table_parameterfv. */ -#define XCB_GLX_GET_COLOR_TABLE_PARAMETERFV 148 - -/** - * @brief xcb_glx_get_color_table_parameterfv_request_t - **/ -typedef struct xcb_glx_get_color_table_parameterfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_color_table_parameterfv_request_t; - -/** - * @brief xcb_glx_get_color_table_parameterfv_reply_t - **/ -typedef struct xcb_glx_get_color_table_parameterfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_color_table_parameterfv_reply_t; - -/** - * @brief xcb_glx_get_color_table_parameteriv_cookie_t - **/ -typedef struct xcb_glx_get_color_table_parameteriv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_color_table_parameteriv_cookie_t; - -/** Opcode for xcb_glx_get_color_table_parameteriv. */ -#define XCB_GLX_GET_COLOR_TABLE_PARAMETERIV 149 - -/** - * @brief xcb_glx_get_color_table_parameteriv_request_t - **/ -typedef struct xcb_glx_get_color_table_parameteriv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_color_table_parameteriv_request_t; - -/** - * @brief xcb_glx_get_color_table_parameteriv_reply_t - **/ -typedef struct xcb_glx_get_color_table_parameteriv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_color_table_parameteriv_reply_t; - -/** - * @brief xcb_glx_get_convolution_filter_cookie_t - **/ -typedef struct xcb_glx_get_convolution_filter_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_convolution_filter_cookie_t; - -/** Opcode for xcb_glx_get_convolution_filter. */ -#define XCB_GLX_GET_CONVOLUTION_FILTER 150 - -/** - * @brief xcb_glx_get_convolution_filter_request_t - **/ -typedef struct xcb_glx_get_convolution_filter_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t format; /**< */ - uint32_t type; /**< */ - uint8_t swap_bytes; /**< */ -} xcb_glx_get_convolution_filter_request_t; - -/** - * @brief xcb_glx_get_convolution_filter_reply_t - **/ -typedef struct xcb_glx_get_convolution_filter_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[8]; /**< */ - int32_t width; /**< */ - int32_t height; /**< */ - uint8_t pad2[8]; /**< */ -} xcb_glx_get_convolution_filter_reply_t; - -/** - * @brief xcb_glx_get_convolution_parameterfv_cookie_t - **/ -typedef struct xcb_glx_get_convolution_parameterfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_convolution_parameterfv_cookie_t; - -/** Opcode for xcb_glx_get_convolution_parameterfv. */ -#define XCB_GLX_GET_CONVOLUTION_PARAMETERFV 151 - -/** - * @brief xcb_glx_get_convolution_parameterfv_request_t - **/ -typedef struct xcb_glx_get_convolution_parameterfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_convolution_parameterfv_request_t; - -/** - * @brief xcb_glx_get_convolution_parameterfv_reply_t - **/ -typedef struct xcb_glx_get_convolution_parameterfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_convolution_parameterfv_reply_t; - -/** - * @brief xcb_glx_get_convolution_parameteriv_cookie_t - **/ -typedef struct xcb_glx_get_convolution_parameteriv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_convolution_parameteriv_cookie_t; - -/** Opcode for xcb_glx_get_convolution_parameteriv. */ -#define XCB_GLX_GET_CONVOLUTION_PARAMETERIV 152 - -/** - * @brief xcb_glx_get_convolution_parameteriv_request_t - **/ -typedef struct xcb_glx_get_convolution_parameteriv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_convolution_parameteriv_request_t; - -/** - * @brief xcb_glx_get_convolution_parameteriv_reply_t - **/ -typedef struct xcb_glx_get_convolution_parameteriv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_convolution_parameteriv_reply_t; - -/** - * @brief xcb_glx_get_separable_filter_cookie_t - **/ -typedef struct xcb_glx_get_separable_filter_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_separable_filter_cookie_t; - -/** Opcode for xcb_glx_get_separable_filter. */ -#define XCB_GLX_GET_SEPARABLE_FILTER 153 - -/** - * @brief xcb_glx_get_separable_filter_request_t - **/ -typedef struct xcb_glx_get_separable_filter_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t format; /**< */ - uint32_t type; /**< */ - uint8_t swap_bytes; /**< */ -} xcb_glx_get_separable_filter_request_t; - -/** - * @brief xcb_glx_get_separable_filter_reply_t - **/ -typedef struct xcb_glx_get_separable_filter_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[8]; /**< */ - int32_t row_w; /**< */ - int32_t col_h; /**< */ - uint8_t pad2[8]; /**< */ -} xcb_glx_get_separable_filter_reply_t; - -/** - * @brief xcb_glx_get_histogram_cookie_t - **/ -typedef struct xcb_glx_get_histogram_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_histogram_cookie_t; - -/** Opcode for xcb_glx_get_histogram. */ -#define XCB_GLX_GET_HISTOGRAM 154 - -/** - * @brief xcb_glx_get_histogram_request_t - **/ -typedef struct xcb_glx_get_histogram_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t format; /**< */ - uint32_t type; /**< */ - uint8_t swap_bytes; /**< */ - uint8_t reset; /**< */ -} xcb_glx_get_histogram_request_t; - -/** - * @brief xcb_glx_get_histogram_reply_t - **/ -typedef struct xcb_glx_get_histogram_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[8]; /**< */ - int32_t width; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_histogram_reply_t; - -/** - * @brief xcb_glx_get_histogram_parameterfv_cookie_t - **/ -typedef struct xcb_glx_get_histogram_parameterfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_histogram_parameterfv_cookie_t; - -/** Opcode for xcb_glx_get_histogram_parameterfv. */ -#define XCB_GLX_GET_HISTOGRAM_PARAMETERFV 155 - -/** - * @brief xcb_glx_get_histogram_parameterfv_request_t - **/ -typedef struct xcb_glx_get_histogram_parameterfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_histogram_parameterfv_request_t; - -/** - * @brief xcb_glx_get_histogram_parameterfv_reply_t - **/ -typedef struct xcb_glx_get_histogram_parameterfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_histogram_parameterfv_reply_t; - -/** - * @brief xcb_glx_get_histogram_parameteriv_cookie_t - **/ -typedef struct xcb_glx_get_histogram_parameteriv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_histogram_parameteriv_cookie_t; - -/** Opcode for xcb_glx_get_histogram_parameteriv. */ -#define XCB_GLX_GET_HISTOGRAM_PARAMETERIV 156 - -/** - * @brief xcb_glx_get_histogram_parameteriv_request_t - **/ -typedef struct xcb_glx_get_histogram_parameteriv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_histogram_parameteriv_request_t; - -/** - * @brief xcb_glx_get_histogram_parameteriv_reply_t - **/ -typedef struct xcb_glx_get_histogram_parameteriv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_histogram_parameteriv_reply_t; - -/** - * @brief xcb_glx_get_minmax_cookie_t - **/ -typedef struct xcb_glx_get_minmax_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_minmax_cookie_t; - -/** Opcode for xcb_glx_get_minmax. */ -#define XCB_GLX_GET_MINMAX 157 - -/** - * @brief xcb_glx_get_minmax_request_t - **/ -typedef struct xcb_glx_get_minmax_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t format; /**< */ - uint32_t type; /**< */ - uint8_t swap_bytes; /**< */ - uint8_t reset; /**< */ -} xcb_glx_get_minmax_request_t; - -/** - * @brief xcb_glx_get_minmax_reply_t - **/ -typedef struct xcb_glx_get_minmax_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[24]; /**< */ -} xcb_glx_get_minmax_reply_t; - -/** - * @brief xcb_glx_get_minmax_parameterfv_cookie_t - **/ -typedef struct xcb_glx_get_minmax_parameterfv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_minmax_parameterfv_cookie_t; - -/** Opcode for xcb_glx_get_minmax_parameterfv. */ -#define XCB_GLX_GET_MINMAX_PARAMETERFV 158 - -/** - * @brief xcb_glx_get_minmax_parameterfv_request_t - **/ -typedef struct xcb_glx_get_minmax_parameterfv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_minmax_parameterfv_request_t; - -/** - * @brief xcb_glx_get_minmax_parameterfv_reply_t - **/ -typedef struct xcb_glx_get_minmax_parameterfv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - xcb_glx_float32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_minmax_parameterfv_reply_t; - -/** - * @brief xcb_glx_get_minmax_parameteriv_cookie_t - **/ -typedef struct xcb_glx_get_minmax_parameteriv_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_minmax_parameteriv_cookie_t; - -/** Opcode for xcb_glx_get_minmax_parameteriv. */ -#define XCB_GLX_GET_MINMAX_PARAMETERIV 159 - -/** - * @brief xcb_glx_get_minmax_parameteriv_request_t - **/ -typedef struct xcb_glx_get_minmax_parameteriv_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_minmax_parameteriv_request_t; - -/** - * @brief xcb_glx_get_minmax_parameteriv_reply_t - **/ -typedef struct xcb_glx_get_minmax_parameteriv_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_minmax_parameteriv_reply_t; - -/** - * @brief xcb_glx_get_compressed_tex_image_arb_cookie_t - **/ -typedef struct xcb_glx_get_compressed_tex_image_arb_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_compressed_tex_image_arb_cookie_t; - -/** Opcode for xcb_glx_get_compressed_tex_image_arb. */ -#define XCB_GLX_GET_COMPRESSED_TEX_IMAGE_ARB 160 - -/** - * @brief xcb_glx_get_compressed_tex_image_arb_request_t - **/ -typedef struct xcb_glx_get_compressed_tex_image_arb_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - int32_t level; /**< */ -} xcb_glx_get_compressed_tex_image_arb_request_t; - -/** - * @brief xcb_glx_get_compressed_tex_image_arb_reply_t - **/ -typedef struct xcb_glx_get_compressed_tex_image_arb_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[8]; /**< */ - int32_t size; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_compressed_tex_image_arb_reply_t; - -/** Opcode for xcb_glx_delete_queries_arb. */ -#define XCB_GLX_DELETE_QUERIES_ARB 161 - -/** - * @brief xcb_glx_delete_queries_arb_request_t - **/ -typedef struct xcb_glx_delete_queries_arb_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - int32_t n; /**< */ -} xcb_glx_delete_queries_arb_request_t; - -/** - * @brief xcb_glx_gen_queries_arb_cookie_t - **/ -typedef struct xcb_glx_gen_queries_arb_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_gen_queries_arb_cookie_t; - -/** Opcode for xcb_glx_gen_queries_arb. */ -#define XCB_GLX_GEN_QUERIES_ARB 162 - -/** - * @brief xcb_glx_gen_queries_arb_request_t - **/ -typedef struct xcb_glx_gen_queries_arb_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - int32_t n; /**< */ -} xcb_glx_gen_queries_arb_request_t; - -/** - * @brief xcb_glx_gen_queries_arb_reply_t - **/ -typedef struct xcb_glx_gen_queries_arb_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[24]; /**< */ -} xcb_glx_gen_queries_arb_reply_t; - -/** - * @brief xcb_glx_is_query_arb_cookie_t - **/ -typedef struct xcb_glx_is_query_arb_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_is_query_arb_cookie_t; - -/** Opcode for xcb_glx_is_query_arb. */ -#define XCB_GLX_IS_QUERY_ARB 163 - -/** - * @brief xcb_glx_is_query_arb_request_t - **/ -typedef struct xcb_glx_is_query_arb_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t id; /**< */ -} xcb_glx_is_query_arb_request_t; - -/** - * @brief xcb_glx_is_query_arb_reply_t - **/ -typedef struct xcb_glx_is_query_arb_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_glx_bool32_t ret_val; /**< */ -} xcb_glx_is_query_arb_reply_t; - -/** - * @brief xcb_glx_get_queryiv_arb_cookie_t - **/ -typedef struct xcb_glx_get_queryiv_arb_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_queryiv_arb_cookie_t; - -/** Opcode for xcb_glx_get_queryiv_arb. */ -#define XCB_GLX_GET_QUERYIV_ARB 164 - -/** - * @brief xcb_glx_get_queryiv_arb_request_t - **/ -typedef struct xcb_glx_get_queryiv_arb_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t target; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_queryiv_arb_request_t; - -/** - * @brief xcb_glx_get_queryiv_arb_reply_t - **/ -typedef struct xcb_glx_get_queryiv_arb_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_queryiv_arb_reply_t; - -/** - * @brief xcb_glx_get_query_objectiv_arb_cookie_t - **/ -typedef struct xcb_glx_get_query_objectiv_arb_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_query_objectiv_arb_cookie_t; - -/** Opcode for xcb_glx_get_query_objectiv_arb. */ -#define XCB_GLX_GET_QUERY_OBJECTIV_ARB 165 - -/** - * @brief xcb_glx_get_query_objectiv_arb_request_t - **/ -typedef struct xcb_glx_get_query_objectiv_arb_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t id; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_query_objectiv_arb_request_t; - -/** - * @brief xcb_glx_get_query_objectiv_arb_reply_t - **/ -typedef struct xcb_glx_get_query_objectiv_arb_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - int32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_query_objectiv_arb_reply_t; - -/** - * @brief xcb_glx_get_query_objectuiv_arb_cookie_t - **/ -typedef struct xcb_glx_get_query_objectuiv_arb_cookie_t { - unsigned int sequence; /**< */ -} xcb_glx_get_query_objectuiv_arb_cookie_t; - -/** Opcode for xcb_glx_get_query_objectuiv_arb. */ -#define XCB_GLX_GET_QUERY_OBJECTUIV_ARB 166 - -/** - * @brief xcb_glx_get_query_objectuiv_arb_request_t - **/ -typedef struct xcb_glx_get_query_objectuiv_arb_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_glx_context_tag_t context_tag; /**< */ - uint32_t id; /**< */ - uint32_t pname; /**< */ -} xcb_glx_get_query_objectuiv_arb_request_t; - -/** - * @brief xcb_glx_get_query_objectuiv_arb_reply_t - **/ -typedef struct xcb_glx_get_query_objectuiv_arb_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[4]; /**< */ - uint32_t n; /**< */ - uint32_t datum; /**< */ - uint8_t pad2[12]; /**< */ -} xcb_glx_get_query_objectuiv_arb_reply_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_glx_pixmap_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_glx_pixmap_t) - */ -void -xcb_glx_pixmap_next (xcb_glx_pixmap_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_glx_pixmap_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_glx_pixmap_end (xcb_glx_pixmap_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_glx_context_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_glx_context_t) - */ -void -xcb_glx_context_next (xcb_glx_context_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_glx_context_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_glx_context_end (xcb_glx_context_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_glx_pbuffer_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_glx_pbuffer_t) - */ -void -xcb_glx_pbuffer_next (xcb_glx_pbuffer_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_glx_pbuffer_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_glx_pbuffer_end (xcb_glx_pbuffer_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_glx_window_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_glx_window_t) - */ -void -xcb_glx_window_next (xcb_glx_window_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_glx_window_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_glx_window_end (xcb_glx_window_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_glx_fbconfig_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_glx_fbconfig_t) - */ -void -xcb_glx_fbconfig_next (xcb_glx_fbconfig_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_glx_fbconfig_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_glx_fbconfig_end (xcb_glx_fbconfig_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_glx_drawable_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_glx_drawable_t) - */ -void -xcb_glx_drawable_next (xcb_glx_drawable_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_glx_drawable_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_glx_drawable_end (xcb_glx_drawable_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_glx_float32_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_glx_float32_t) - */ -void -xcb_glx_float32_next (xcb_glx_float32_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_glx_float32_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_glx_float32_end (xcb_glx_float32_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_glx_float64_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_glx_float64_t) - */ -void -xcb_glx_float64_next (xcb_glx_float64_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_glx_float64_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_glx_float64_end (xcb_glx_float64_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_glx_bool32_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_glx_bool32_t) - */ -void -xcb_glx_bool32_next (xcb_glx_bool32_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_glx_bool32_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_glx_bool32_end (xcb_glx_bool32_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_glx_context_tag_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_glx_context_tag_t) - */ -void -xcb_glx_context_tag_next (xcb_glx_context_tag_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_glx_context_tag_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_glx_context_tag_end (xcb_glx_context_tag_iterator_t i /**< */); - -int -xcb_glx_render_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_render_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_render (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -int -xcb_glx_render_large_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_render_large_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint16_t request_num /**< */, - uint16_t request_total /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_render_large (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint16_t request_num /**< */, - uint16_t request_total /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_create_context_checked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_visualid_t visual /**< */, - uint32_t screen /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_create_context (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_visualid_t visual /**< */, - uint32_t screen /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_destroy_context_checked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_destroy_context (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_make_current_cookie_t -xcb_glx_make_current (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_context_tag_t old_context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_make_current_cookie_t -xcb_glx_make_current_unchecked (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_context_tag_t old_context_tag /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_make_current_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_make_current_reply_t * -xcb_glx_make_current_reply (xcb_connection_t *c /**< */, - xcb_glx_make_current_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_is_direct_cookie_t -xcb_glx_is_direct (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_is_direct_cookie_t -xcb_glx_is_direct_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_is_direct_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_is_direct_reply_t * -xcb_glx_is_direct_reply (xcb_connection_t *c /**< */, - xcb_glx_is_direct_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_query_version_cookie_t -xcb_glx_query_version (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_query_version_cookie_t -xcb_glx_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_query_version_reply_t * -xcb_glx_query_version_reply (xcb_connection_t *c /**< */, - xcb_glx_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_wait_gl_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_wait_gl (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_wait_x_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_wait_x (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_copy_context_checked (xcb_connection_t *c /**< */, - xcb_glx_context_t src /**< */, - xcb_glx_context_t dest /**< */, - uint32_t mask /**< */, - xcb_glx_context_tag_t src_context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_copy_context (xcb_connection_t *c /**< */, - xcb_glx_context_t src /**< */, - xcb_glx_context_t dest /**< */, - uint32_t mask /**< */, - xcb_glx_context_tag_t src_context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_swap_buffers_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - xcb_glx_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_swap_buffers (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - xcb_glx_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_use_x_font_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - xcb_font_t font /**< */, - uint32_t first /**< */, - uint32_t count /**< */, - uint32_t list_base /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_use_x_font (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - xcb_font_t font /**< */, - uint32_t first /**< */, - uint32_t count /**< */, - uint32_t list_base /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_create_glx_pixmap_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_visualid_t visual /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_create_glx_pixmap (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_visualid_t visual /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */); - -int -xcb_glx_get_visual_configs_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_visual_configs_cookie_t -xcb_glx_get_visual_configs (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_visual_configs_cookie_t -xcb_glx_get_visual_configs_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -uint32_t * -xcb_glx_get_visual_configs_property_list (const xcb_glx_get_visual_configs_reply_t *R /**< */); - -int -xcb_glx_get_visual_configs_property_list_length (const xcb_glx_get_visual_configs_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_visual_configs_property_list_end (const xcb_glx_get_visual_configs_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_visual_configs_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_visual_configs_reply_t * -xcb_glx_get_visual_configs_reply (xcb_connection_t *c /**< */, - xcb_glx_get_visual_configs_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_destroy_glx_pixmap_checked (xcb_connection_t *c /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_destroy_glx_pixmap (xcb_connection_t *c /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */); - -int -xcb_glx_vendor_private_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_vendor_private_checked (xcb_connection_t *c /**< */, - uint32_t vendor_code /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_vendor_private (xcb_connection_t *c /**< */, - uint32_t vendor_code /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -int -xcb_glx_vendor_private_with_reply_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_vendor_private_with_reply_cookie_t -xcb_glx_vendor_private_with_reply (xcb_connection_t *c /**< */, - uint32_t vendor_code /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_vendor_private_with_reply_cookie_t -xcb_glx_vendor_private_with_reply_unchecked (xcb_connection_t *c /**< */, - uint32_t vendor_code /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -uint8_t * -xcb_glx_vendor_private_with_reply_data_2 (const xcb_glx_vendor_private_with_reply_reply_t *R /**< */); - -int -xcb_glx_vendor_private_with_reply_data_2_length (const xcb_glx_vendor_private_with_reply_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_vendor_private_with_reply_data_2_end (const xcb_glx_vendor_private_with_reply_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_vendor_private_with_reply_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_vendor_private_with_reply_reply_t * -xcb_glx_vendor_private_with_reply_reply (xcb_connection_t *c /**< */, - xcb_glx_vendor_private_with_reply_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_query_extensions_string_cookie_t -xcb_glx_query_extensions_string (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_query_extensions_string_cookie_t -xcb_glx_query_extensions_string_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_query_extensions_string_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_query_extensions_string_reply_t * -xcb_glx_query_extensions_string_reply (xcb_connection_t *c /**< */, - xcb_glx_query_extensions_string_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_query_server_string_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_query_server_string_cookie_t -xcb_glx_query_server_string (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_query_server_string_cookie_t -xcb_glx_query_server_string_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t name /**< */); - -char * -xcb_glx_query_server_string_string (const xcb_glx_query_server_string_reply_t *R /**< */); - -int -xcb_glx_query_server_string_string_length (const xcb_glx_query_server_string_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_query_server_string_string_end (const xcb_glx_query_server_string_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_query_server_string_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_query_server_string_reply_t * -xcb_glx_query_server_string_reply (xcb_connection_t *c /**< */, - xcb_glx_query_server_string_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_client_info_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_client_info_checked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t str_len /**< */, - const char *string /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_client_info (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t str_len /**< */, - const char *string /**< */); - -int -xcb_glx_get_fb_configs_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_fb_configs_cookie_t -xcb_glx_get_fb_configs (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_fb_configs_cookie_t -xcb_glx_get_fb_configs_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -uint32_t * -xcb_glx_get_fb_configs_property_list (const xcb_glx_get_fb_configs_reply_t *R /**< */); - -int -xcb_glx_get_fb_configs_property_list_length (const xcb_glx_get_fb_configs_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_fb_configs_property_list_end (const xcb_glx_get_fb_configs_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_fb_configs_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_fb_configs_reply_t * -xcb_glx_get_fb_configs_reply (xcb_connection_t *c /**< */, - xcb_glx_get_fb_configs_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_create_pixmap_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_create_pixmap_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_create_pixmap (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_pixmap_t pixmap /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_destroy_pixmap_checked (xcb_connection_t *c /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_destroy_pixmap (xcb_connection_t *c /**< */, - xcb_glx_pixmap_t glx_pixmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_create_new_context_checked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - uint32_t screen /**< */, - uint32_t render_type /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_create_new_context (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - uint32_t screen /**< */, - uint32_t render_type /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */); - -int -xcb_glx_query_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_query_context_cookie_t -xcb_glx_query_context (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_query_context_cookie_t -xcb_glx_query_context_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */); - -uint32_t * -xcb_glx_query_context_attribs (const xcb_glx_query_context_reply_t *R /**< */); - -int -xcb_glx_query_context_attribs_length (const xcb_glx_query_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_query_context_attribs_end (const xcb_glx_query_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_query_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_query_context_reply_t * -xcb_glx_query_context_reply (xcb_connection_t *c /**< */, - xcb_glx_query_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_make_context_current_cookie_t -xcb_glx_make_context_current (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t old_context_tag /**< */, - xcb_glx_drawable_t drawable /**< */, - xcb_glx_drawable_t read_drawable /**< */, - xcb_glx_context_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_make_context_current_cookie_t -xcb_glx_make_context_current_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t old_context_tag /**< */, - xcb_glx_drawable_t drawable /**< */, - xcb_glx_drawable_t read_drawable /**< */, - xcb_glx_context_t context /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_make_context_current_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_make_context_current_reply_t * -xcb_glx_make_context_current_reply (xcb_connection_t *c /**< */, - xcb_glx_make_context_current_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_create_pbuffer_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_create_pbuffer_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_glx_pbuffer_t pbuffer /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_create_pbuffer (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_glx_pbuffer_t pbuffer /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_destroy_pbuffer_checked (xcb_connection_t *c /**< */, - xcb_glx_pbuffer_t pbuffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_destroy_pbuffer (xcb_connection_t *c /**< */, - xcb_glx_pbuffer_t pbuffer /**< */); - -int -xcb_glx_get_drawable_attributes_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_drawable_attributes_cookie_t -xcb_glx_get_drawable_attributes (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_drawable_attributes_cookie_t -xcb_glx_get_drawable_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */); - -uint32_t * -xcb_glx_get_drawable_attributes_attribs (const xcb_glx_get_drawable_attributes_reply_t *R /**< */); - -int -xcb_glx_get_drawable_attributes_attribs_length (const xcb_glx_get_drawable_attributes_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_drawable_attributes_attribs_end (const xcb_glx_get_drawable_attributes_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_drawable_attributes_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_drawable_attributes_reply_t * -xcb_glx_get_drawable_attributes_reply (xcb_connection_t *c /**< */, - xcb_glx_get_drawable_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_change_drawable_attributes_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_change_drawable_attributes_checked (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_change_drawable_attributes (xcb_connection_t *c /**< */, - xcb_glx_drawable_t drawable /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */); - -int -xcb_glx_create_window_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_create_window_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_window_t window /**< */, - xcb_glx_window_t glx_window /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_create_window (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - xcb_window_t window /**< */, - xcb_glx_window_t glx_window /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_delete_window_checked (xcb_connection_t *c /**< */, - xcb_glx_window_t glxwindow /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_delete_window (xcb_connection_t *c /**< */, - xcb_glx_window_t glxwindow /**< */); - -int -xcb_glx_set_client_info_arb_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_set_client_info_arb_checked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t num_versions /**< */, - uint32_t gl_str_len /**< */, - uint32_t glx_str_len /**< */, - const uint32_t *gl_versions /**< */, - const char *gl_extension_string /**< */, - const char *glx_extension_string /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_set_client_info_arb (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t num_versions /**< */, - uint32_t gl_str_len /**< */, - uint32_t glx_str_len /**< */, - const uint32_t *gl_versions /**< */, - const char *gl_extension_string /**< */, - const char *glx_extension_string /**< */); - -int -xcb_glx_create_context_attribs_arb_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_create_context_attribs_arb_checked (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - uint32_t screen /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_create_context_attribs_arb (xcb_connection_t *c /**< */, - xcb_glx_context_t context /**< */, - xcb_glx_fbconfig_t fbconfig /**< */, - uint32_t screen /**< */, - xcb_glx_context_t share_list /**< */, - uint8_t is_direct /**< */, - uint32_t num_attribs /**< */, - const uint32_t *attribs /**< */); - -int -xcb_glx_set_client_info_2arb_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_set_client_info_2arb_checked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t num_versions /**< */, - uint32_t gl_str_len /**< */, - uint32_t glx_str_len /**< */, - const uint32_t *gl_versions /**< */, - const char *gl_extension_string /**< */, - const char *glx_extension_string /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_set_client_info_2arb (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */, - uint32_t num_versions /**< */, - uint32_t gl_str_len /**< */, - uint32_t glx_str_len /**< */, - const uint32_t *gl_versions /**< */, - const char *gl_extension_string /**< */, - const char *glx_extension_string /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_new_list_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */, - uint32_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_new_list (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */, - uint32_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_end_list_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_end_list (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_delete_lists_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */, - int32_t range /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_delete_lists (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */, - int32_t range /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_gen_lists_cookie_t -xcb_glx_gen_lists (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t range /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_gen_lists_cookie_t -xcb_glx_gen_lists_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t range /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_gen_lists_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_gen_lists_reply_t * -xcb_glx_gen_lists_reply (xcb_connection_t *c /**< */, - xcb_glx_gen_lists_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_feedback_buffer_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t size /**< */, - int32_t type /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_feedback_buffer (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t size /**< */, - int32_t type /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_select_buffer_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t size /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_select_buffer (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t size /**< */); - -int -xcb_glx_render_mode_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_render_mode_cookie_t -xcb_glx_render_mode (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_render_mode_cookie_t -xcb_glx_render_mode_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t mode /**< */); - -uint32_t * -xcb_glx_render_mode_data (const xcb_glx_render_mode_reply_t *R /**< */); - -int -xcb_glx_render_mode_data_length (const xcb_glx_render_mode_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_render_mode_data_end (const xcb_glx_render_mode_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_render_mode_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_render_mode_reply_t * -xcb_glx_render_mode_reply (xcb_connection_t *c /**< */, - xcb_glx_render_mode_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_finish_cookie_t -xcb_glx_finish (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_finish_cookie_t -xcb_glx_finish_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_finish_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_finish_reply_t * -xcb_glx_finish_reply (xcb_connection_t *c /**< */, - xcb_glx_finish_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_pixel_storef_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */, - xcb_glx_float32_t datum /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_pixel_storef (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */, - xcb_glx_float32_t datum /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_pixel_storei_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */, - int32_t datum /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_pixel_storei (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */, - int32_t datum /**< */); - -int -xcb_glx_read_pixels_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_read_pixels_cookie_t -xcb_glx_read_pixels (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t x /**< */, - int32_t y /**< */, - int32_t width /**< */, - int32_t height /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t lsb_first /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_read_pixels_cookie_t -xcb_glx_read_pixels_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t x /**< */, - int32_t y /**< */, - int32_t width /**< */, - int32_t height /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t lsb_first /**< */); - -uint8_t * -xcb_glx_read_pixels_data (const xcb_glx_read_pixels_reply_t *R /**< */); - -int -xcb_glx_read_pixels_data_length (const xcb_glx_read_pixels_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_read_pixels_data_end (const xcb_glx_read_pixels_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_read_pixels_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_read_pixels_reply_t * -xcb_glx_read_pixels_reply (xcb_connection_t *c /**< */, - xcb_glx_read_pixels_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_booleanv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_booleanv_cookie_t -xcb_glx_get_booleanv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_booleanv_cookie_t -xcb_glx_get_booleanv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t pname /**< */); - -uint8_t * -xcb_glx_get_booleanv_data (const xcb_glx_get_booleanv_reply_t *R /**< */); - -int -xcb_glx_get_booleanv_data_length (const xcb_glx_get_booleanv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_booleanv_data_end (const xcb_glx_get_booleanv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_booleanv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_booleanv_reply_t * -xcb_glx_get_booleanv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_booleanv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_clip_plane_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_clip_plane_cookie_t -xcb_glx_get_clip_plane (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t plane /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_clip_plane_cookie_t -xcb_glx_get_clip_plane_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t plane /**< */); - -xcb_glx_float64_t * -xcb_glx_get_clip_plane_data (const xcb_glx_get_clip_plane_reply_t *R /**< */); - -int -xcb_glx_get_clip_plane_data_length (const xcb_glx_get_clip_plane_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_clip_plane_data_end (const xcb_glx_get_clip_plane_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_clip_plane_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_clip_plane_reply_t * -xcb_glx_get_clip_plane_reply (xcb_connection_t *c /**< */, - xcb_glx_get_clip_plane_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_doublev_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_doublev_cookie_t -xcb_glx_get_doublev (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_doublev_cookie_t -xcb_glx_get_doublev_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */); - -xcb_glx_float64_t * -xcb_glx_get_doublev_data (const xcb_glx_get_doublev_reply_t *R /**< */); - -int -xcb_glx_get_doublev_data_length (const xcb_glx_get_doublev_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_doublev_data_end (const xcb_glx_get_doublev_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_doublev_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_doublev_reply_t * -xcb_glx_get_doublev_reply (xcb_connection_t *c /**< */, - xcb_glx_get_doublev_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_error_cookie_t -xcb_glx_get_error (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_error_cookie_t -xcb_glx_get_error_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_error_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_error_reply_t * -xcb_glx_get_error_reply (xcb_connection_t *c /**< */, - xcb_glx_get_error_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_floatv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_floatv_cookie_t -xcb_glx_get_floatv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_floatv_cookie_t -xcb_glx_get_floatv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */); - -xcb_glx_float32_t * -xcb_glx_get_floatv_data (const xcb_glx_get_floatv_reply_t *R /**< */); - -int -xcb_glx_get_floatv_data_length (const xcb_glx_get_floatv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_floatv_data_end (const xcb_glx_get_floatv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_floatv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_floatv_reply_t * -xcb_glx_get_floatv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_floatv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_integerv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_integerv_cookie_t -xcb_glx_get_integerv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_integerv_cookie_t -xcb_glx_get_integerv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_integerv_data (const xcb_glx_get_integerv_reply_t *R /**< */); - -int -xcb_glx_get_integerv_data_length (const xcb_glx_get_integerv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_integerv_data_end (const xcb_glx_get_integerv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_integerv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_integerv_reply_t * -xcb_glx_get_integerv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_integerv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_lightfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_lightfv_cookie_t -xcb_glx_get_lightfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t light /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_lightfv_cookie_t -xcb_glx_get_lightfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t light /**< */, - uint32_t pname /**< */); - -xcb_glx_float32_t * -xcb_glx_get_lightfv_data (const xcb_glx_get_lightfv_reply_t *R /**< */); - -int -xcb_glx_get_lightfv_data_length (const xcb_glx_get_lightfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_lightfv_data_end (const xcb_glx_get_lightfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_lightfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_lightfv_reply_t * -xcb_glx_get_lightfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_lightfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_lightiv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_lightiv_cookie_t -xcb_glx_get_lightiv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t light /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_lightiv_cookie_t -xcb_glx_get_lightiv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t light /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_lightiv_data (const xcb_glx_get_lightiv_reply_t *R /**< */); - -int -xcb_glx_get_lightiv_data_length (const xcb_glx_get_lightiv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_lightiv_data_end (const xcb_glx_get_lightiv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_lightiv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_lightiv_reply_t * -xcb_glx_get_lightiv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_lightiv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_mapdv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_mapdv_cookie_t -xcb_glx_get_mapdv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_mapdv_cookie_t -xcb_glx_get_mapdv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */); - -xcb_glx_float64_t * -xcb_glx_get_mapdv_data (const xcb_glx_get_mapdv_reply_t *R /**< */); - -int -xcb_glx_get_mapdv_data_length (const xcb_glx_get_mapdv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_mapdv_data_end (const xcb_glx_get_mapdv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_mapdv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_mapdv_reply_t * -xcb_glx_get_mapdv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_mapdv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_mapfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_mapfv_cookie_t -xcb_glx_get_mapfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_mapfv_cookie_t -xcb_glx_get_mapfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */); - -xcb_glx_float32_t * -xcb_glx_get_mapfv_data (const xcb_glx_get_mapfv_reply_t *R /**< */); - -int -xcb_glx_get_mapfv_data_length (const xcb_glx_get_mapfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_mapfv_data_end (const xcb_glx_get_mapfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_mapfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_mapfv_reply_t * -xcb_glx_get_mapfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_mapfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_mapiv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_mapiv_cookie_t -xcb_glx_get_mapiv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_mapiv_cookie_t -xcb_glx_get_mapiv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t query /**< */); - -int32_t * -xcb_glx_get_mapiv_data (const xcb_glx_get_mapiv_reply_t *R /**< */); - -int -xcb_glx_get_mapiv_data_length (const xcb_glx_get_mapiv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_mapiv_data_end (const xcb_glx_get_mapiv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_mapiv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_mapiv_reply_t * -xcb_glx_get_mapiv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_mapiv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_materialfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_materialfv_cookie_t -xcb_glx_get_materialfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t face /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_materialfv_cookie_t -xcb_glx_get_materialfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t face /**< */, - uint32_t pname /**< */); - -xcb_glx_float32_t * -xcb_glx_get_materialfv_data (const xcb_glx_get_materialfv_reply_t *R /**< */); - -int -xcb_glx_get_materialfv_data_length (const xcb_glx_get_materialfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_materialfv_data_end (const xcb_glx_get_materialfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_materialfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_materialfv_reply_t * -xcb_glx_get_materialfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_materialfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_materialiv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_materialiv_cookie_t -xcb_glx_get_materialiv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t face /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_materialiv_cookie_t -xcb_glx_get_materialiv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t face /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_materialiv_data (const xcb_glx_get_materialiv_reply_t *R /**< */); - -int -xcb_glx_get_materialiv_data_length (const xcb_glx_get_materialiv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_materialiv_data_end (const xcb_glx_get_materialiv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_materialiv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_materialiv_reply_t * -xcb_glx_get_materialiv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_materialiv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_pixel_mapfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_pixel_mapfv_cookie_t -xcb_glx_get_pixel_mapfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_pixel_mapfv_cookie_t -xcb_glx_get_pixel_mapfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */); - -xcb_glx_float32_t * -xcb_glx_get_pixel_mapfv_data (const xcb_glx_get_pixel_mapfv_reply_t *R /**< */); - -int -xcb_glx_get_pixel_mapfv_data_length (const xcb_glx_get_pixel_mapfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_pixel_mapfv_data_end (const xcb_glx_get_pixel_mapfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_pixel_mapfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_pixel_mapfv_reply_t * -xcb_glx_get_pixel_mapfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_pixel_mapfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_pixel_mapuiv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_pixel_mapuiv_cookie_t -xcb_glx_get_pixel_mapuiv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_pixel_mapuiv_cookie_t -xcb_glx_get_pixel_mapuiv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */); - -uint32_t * -xcb_glx_get_pixel_mapuiv_data (const xcb_glx_get_pixel_mapuiv_reply_t *R /**< */); - -int -xcb_glx_get_pixel_mapuiv_data_length (const xcb_glx_get_pixel_mapuiv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_pixel_mapuiv_data_end (const xcb_glx_get_pixel_mapuiv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_pixel_mapuiv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_pixel_mapuiv_reply_t * -xcb_glx_get_pixel_mapuiv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_pixel_mapuiv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_pixel_mapusv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_pixel_mapusv_cookie_t -xcb_glx_get_pixel_mapusv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_pixel_mapusv_cookie_t -xcb_glx_get_pixel_mapusv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t map /**< */); - -uint16_t * -xcb_glx_get_pixel_mapusv_data (const xcb_glx_get_pixel_mapusv_reply_t *R /**< */); - -int -xcb_glx_get_pixel_mapusv_data_length (const xcb_glx_get_pixel_mapusv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_pixel_mapusv_data_end (const xcb_glx_get_pixel_mapusv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_pixel_mapusv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_pixel_mapusv_reply_t * -xcb_glx_get_pixel_mapusv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_pixel_mapusv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_polygon_stipple_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_polygon_stipple_cookie_t -xcb_glx_get_polygon_stipple (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint8_t lsb_first /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_polygon_stipple_cookie_t -xcb_glx_get_polygon_stipple_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint8_t lsb_first /**< */); - -uint8_t * -xcb_glx_get_polygon_stipple_data (const xcb_glx_get_polygon_stipple_reply_t *R /**< */); - -int -xcb_glx_get_polygon_stipple_data_length (const xcb_glx_get_polygon_stipple_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_polygon_stipple_data_end (const xcb_glx_get_polygon_stipple_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_polygon_stipple_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_polygon_stipple_reply_t * -xcb_glx_get_polygon_stipple_reply (xcb_connection_t *c /**< */, - xcb_glx_get_polygon_stipple_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_string_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_string_cookie_t -xcb_glx_get_string (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_string_cookie_t -xcb_glx_get_string_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t name /**< */); - -char * -xcb_glx_get_string_string (const xcb_glx_get_string_reply_t *R /**< */); - -int -xcb_glx_get_string_string_length (const xcb_glx_get_string_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_string_string_end (const xcb_glx_get_string_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_string_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_string_reply_t * -xcb_glx_get_string_reply (xcb_connection_t *c /**< */, - xcb_glx_get_string_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_tex_envfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_tex_envfv_cookie_t -xcb_glx_get_tex_envfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_tex_envfv_cookie_t -xcb_glx_get_tex_envfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -xcb_glx_float32_t * -xcb_glx_get_tex_envfv_data (const xcb_glx_get_tex_envfv_reply_t *R /**< */); - -int -xcb_glx_get_tex_envfv_data_length (const xcb_glx_get_tex_envfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_tex_envfv_data_end (const xcb_glx_get_tex_envfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_tex_envfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_tex_envfv_reply_t * -xcb_glx_get_tex_envfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_envfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_tex_enviv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_tex_enviv_cookie_t -xcb_glx_get_tex_enviv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_tex_enviv_cookie_t -xcb_glx_get_tex_enviv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_tex_enviv_data (const xcb_glx_get_tex_enviv_reply_t *R /**< */); - -int -xcb_glx_get_tex_enviv_data_length (const xcb_glx_get_tex_enviv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_tex_enviv_data_end (const xcb_glx_get_tex_enviv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_tex_enviv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_tex_enviv_reply_t * -xcb_glx_get_tex_enviv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_enviv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_tex_gendv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_tex_gendv_cookie_t -xcb_glx_get_tex_gendv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_tex_gendv_cookie_t -xcb_glx_get_tex_gendv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */); - -xcb_glx_float64_t * -xcb_glx_get_tex_gendv_data (const xcb_glx_get_tex_gendv_reply_t *R /**< */); - -int -xcb_glx_get_tex_gendv_data_length (const xcb_glx_get_tex_gendv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_tex_gendv_data_end (const xcb_glx_get_tex_gendv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_tex_gendv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_tex_gendv_reply_t * -xcb_glx_get_tex_gendv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_gendv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_tex_genfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_tex_genfv_cookie_t -xcb_glx_get_tex_genfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_tex_genfv_cookie_t -xcb_glx_get_tex_genfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */); - -xcb_glx_float32_t * -xcb_glx_get_tex_genfv_data (const xcb_glx_get_tex_genfv_reply_t *R /**< */); - -int -xcb_glx_get_tex_genfv_data_length (const xcb_glx_get_tex_genfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_tex_genfv_data_end (const xcb_glx_get_tex_genfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_tex_genfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_tex_genfv_reply_t * -xcb_glx_get_tex_genfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_genfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_tex_geniv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_tex_geniv_cookie_t -xcb_glx_get_tex_geniv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_tex_geniv_cookie_t -xcb_glx_get_tex_geniv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t coord /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_tex_geniv_data (const xcb_glx_get_tex_geniv_reply_t *R /**< */); - -int -xcb_glx_get_tex_geniv_data_length (const xcb_glx_get_tex_geniv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_tex_geniv_data_end (const xcb_glx_get_tex_geniv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_tex_geniv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_tex_geniv_reply_t * -xcb_glx_get_tex_geniv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_geniv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_tex_image_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_tex_image_cookie_t -xcb_glx_get_tex_image (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_tex_image_cookie_t -xcb_glx_get_tex_image_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */); - -uint8_t * -xcb_glx_get_tex_image_data (const xcb_glx_get_tex_image_reply_t *R /**< */); - -int -xcb_glx_get_tex_image_data_length (const xcb_glx_get_tex_image_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_tex_image_data_end (const xcb_glx_get_tex_image_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_tex_image_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_tex_image_reply_t * -xcb_glx_get_tex_image_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_image_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_tex_parameterfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_tex_parameterfv_cookie_t -xcb_glx_get_tex_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_tex_parameterfv_cookie_t -xcb_glx_get_tex_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -xcb_glx_float32_t * -xcb_glx_get_tex_parameterfv_data (const xcb_glx_get_tex_parameterfv_reply_t *R /**< */); - -int -xcb_glx_get_tex_parameterfv_data_length (const xcb_glx_get_tex_parameterfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_tex_parameterfv_data_end (const xcb_glx_get_tex_parameterfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_tex_parameterfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_tex_parameterfv_reply_t * -xcb_glx_get_tex_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_tex_parameteriv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_tex_parameteriv_cookie_t -xcb_glx_get_tex_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_tex_parameteriv_cookie_t -xcb_glx_get_tex_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_tex_parameteriv_data (const xcb_glx_get_tex_parameteriv_reply_t *R /**< */); - -int -xcb_glx_get_tex_parameteriv_data_length (const xcb_glx_get_tex_parameteriv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_tex_parameteriv_data_end (const xcb_glx_get_tex_parameteriv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_tex_parameteriv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_tex_parameteriv_reply_t * -xcb_glx_get_tex_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_tex_level_parameterfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_tex_level_parameterfv_cookie_t -xcb_glx_get_tex_level_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_tex_level_parameterfv_cookie_t -xcb_glx_get_tex_level_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t pname /**< */); - -xcb_glx_float32_t * -xcb_glx_get_tex_level_parameterfv_data (const xcb_glx_get_tex_level_parameterfv_reply_t *R /**< */); - -int -xcb_glx_get_tex_level_parameterfv_data_length (const xcb_glx_get_tex_level_parameterfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_tex_level_parameterfv_data_end (const xcb_glx_get_tex_level_parameterfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_tex_level_parameterfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_tex_level_parameterfv_reply_t * -xcb_glx_get_tex_level_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_level_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_tex_level_parameteriv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_tex_level_parameteriv_cookie_t -xcb_glx_get_tex_level_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_tex_level_parameteriv_cookie_t -xcb_glx_get_tex_level_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_tex_level_parameteriv_data (const xcb_glx_get_tex_level_parameteriv_reply_t *R /**< */); - -int -xcb_glx_get_tex_level_parameteriv_data_length (const xcb_glx_get_tex_level_parameteriv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_tex_level_parameteriv_data_end (const xcb_glx_get_tex_level_parameteriv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_tex_level_parameteriv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_tex_level_parameteriv_reply_t * -xcb_glx_get_tex_level_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_tex_level_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_is_list_cookie_t -xcb_glx_is_list (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_is_list_cookie_t -xcb_glx_is_list_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t list /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_is_list_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_is_list_reply_t * -xcb_glx_is_list_reply (xcb_connection_t *c /**< */, - xcb_glx_is_list_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_flush_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_flush (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */); - -int -xcb_glx_are_textures_resident_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_are_textures_resident_cookie_t -xcb_glx_are_textures_resident (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *textures /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_are_textures_resident_cookie_t -xcb_glx_are_textures_resident_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *textures /**< */); - -uint8_t * -xcb_glx_are_textures_resident_data (const xcb_glx_are_textures_resident_reply_t *R /**< */); - -int -xcb_glx_are_textures_resident_data_length (const xcb_glx_are_textures_resident_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_are_textures_resident_data_end (const xcb_glx_are_textures_resident_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_are_textures_resident_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_are_textures_resident_reply_t * -xcb_glx_are_textures_resident_reply (xcb_connection_t *c /**< */, - xcb_glx_are_textures_resident_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_delete_textures_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_delete_textures_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *textures /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_delete_textures (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *textures /**< */); - -int -xcb_glx_gen_textures_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_gen_textures_cookie_t -xcb_glx_gen_textures (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_gen_textures_cookie_t -xcb_glx_gen_textures_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */); - -uint32_t * -xcb_glx_gen_textures_data (const xcb_glx_gen_textures_reply_t *R /**< */); - -int -xcb_glx_gen_textures_data_length (const xcb_glx_gen_textures_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_gen_textures_data_end (const xcb_glx_gen_textures_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_gen_textures_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_gen_textures_reply_t * -xcb_glx_gen_textures_reply (xcb_connection_t *c /**< */, - xcb_glx_gen_textures_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_is_texture_cookie_t -xcb_glx_is_texture (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t texture /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_is_texture_cookie_t -xcb_glx_is_texture_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t texture /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_is_texture_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_is_texture_reply_t * -xcb_glx_is_texture_reply (xcb_connection_t *c /**< */, - xcb_glx_is_texture_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_color_table_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_color_table_cookie_t -xcb_glx_get_color_table (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_color_table_cookie_t -xcb_glx_get_color_table_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */); - -uint8_t * -xcb_glx_get_color_table_data (const xcb_glx_get_color_table_reply_t *R /**< */); - -int -xcb_glx_get_color_table_data_length (const xcb_glx_get_color_table_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_color_table_data_end (const xcb_glx_get_color_table_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_color_table_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_color_table_reply_t * -xcb_glx_get_color_table_reply (xcb_connection_t *c /**< */, - xcb_glx_get_color_table_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_color_table_parameterfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_color_table_parameterfv_cookie_t -xcb_glx_get_color_table_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_color_table_parameterfv_cookie_t -xcb_glx_get_color_table_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -xcb_glx_float32_t * -xcb_glx_get_color_table_parameterfv_data (const xcb_glx_get_color_table_parameterfv_reply_t *R /**< */); - -int -xcb_glx_get_color_table_parameterfv_data_length (const xcb_glx_get_color_table_parameterfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_color_table_parameterfv_data_end (const xcb_glx_get_color_table_parameterfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_color_table_parameterfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_color_table_parameterfv_reply_t * -xcb_glx_get_color_table_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_color_table_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_color_table_parameteriv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_color_table_parameteriv_cookie_t -xcb_glx_get_color_table_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_color_table_parameteriv_cookie_t -xcb_glx_get_color_table_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_color_table_parameteriv_data (const xcb_glx_get_color_table_parameteriv_reply_t *R /**< */); - -int -xcb_glx_get_color_table_parameteriv_data_length (const xcb_glx_get_color_table_parameteriv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_color_table_parameteriv_data_end (const xcb_glx_get_color_table_parameteriv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_color_table_parameteriv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_color_table_parameteriv_reply_t * -xcb_glx_get_color_table_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_color_table_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_convolution_filter_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_convolution_filter_cookie_t -xcb_glx_get_convolution_filter (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_convolution_filter_cookie_t -xcb_glx_get_convolution_filter_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */); - -uint8_t * -xcb_glx_get_convolution_filter_data (const xcb_glx_get_convolution_filter_reply_t *R /**< */); - -int -xcb_glx_get_convolution_filter_data_length (const xcb_glx_get_convolution_filter_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_convolution_filter_data_end (const xcb_glx_get_convolution_filter_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_convolution_filter_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_convolution_filter_reply_t * -xcb_glx_get_convolution_filter_reply (xcb_connection_t *c /**< */, - xcb_glx_get_convolution_filter_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_convolution_parameterfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_convolution_parameterfv_cookie_t -xcb_glx_get_convolution_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_convolution_parameterfv_cookie_t -xcb_glx_get_convolution_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -xcb_glx_float32_t * -xcb_glx_get_convolution_parameterfv_data (const xcb_glx_get_convolution_parameterfv_reply_t *R /**< */); - -int -xcb_glx_get_convolution_parameterfv_data_length (const xcb_glx_get_convolution_parameterfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_convolution_parameterfv_data_end (const xcb_glx_get_convolution_parameterfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_convolution_parameterfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_convolution_parameterfv_reply_t * -xcb_glx_get_convolution_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_convolution_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_convolution_parameteriv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_convolution_parameteriv_cookie_t -xcb_glx_get_convolution_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_convolution_parameteriv_cookie_t -xcb_glx_get_convolution_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_convolution_parameteriv_data (const xcb_glx_get_convolution_parameteriv_reply_t *R /**< */); - -int -xcb_glx_get_convolution_parameteriv_data_length (const xcb_glx_get_convolution_parameteriv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_convolution_parameteriv_data_end (const xcb_glx_get_convolution_parameteriv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_convolution_parameteriv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_convolution_parameteriv_reply_t * -xcb_glx_get_convolution_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_convolution_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_separable_filter_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_separable_filter_cookie_t -xcb_glx_get_separable_filter (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_separable_filter_cookie_t -xcb_glx_get_separable_filter_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */); - -uint8_t * -xcb_glx_get_separable_filter_rows_and_cols (const xcb_glx_get_separable_filter_reply_t *R /**< */); - -int -xcb_glx_get_separable_filter_rows_and_cols_length (const xcb_glx_get_separable_filter_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_separable_filter_rows_and_cols_end (const xcb_glx_get_separable_filter_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_separable_filter_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_separable_filter_reply_t * -xcb_glx_get_separable_filter_reply (xcb_connection_t *c /**< */, - xcb_glx_get_separable_filter_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_histogram_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_histogram_cookie_t -xcb_glx_get_histogram (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t reset /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_histogram_cookie_t -xcb_glx_get_histogram_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t reset /**< */); - -uint8_t * -xcb_glx_get_histogram_data (const xcb_glx_get_histogram_reply_t *R /**< */); - -int -xcb_glx_get_histogram_data_length (const xcb_glx_get_histogram_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_histogram_data_end (const xcb_glx_get_histogram_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_histogram_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_histogram_reply_t * -xcb_glx_get_histogram_reply (xcb_connection_t *c /**< */, - xcb_glx_get_histogram_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_histogram_parameterfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_histogram_parameterfv_cookie_t -xcb_glx_get_histogram_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_histogram_parameterfv_cookie_t -xcb_glx_get_histogram_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -xcb_glx_float32_t * -xcb_glx_get_histogram_parameterfv_data (const xcb_glx_get_histogram_parameterfv_reply_t *R /**< */); - -int -xcb_glx_get_histogram_parameterfv_data_length (const xcb_glx_get_histogram_parameterfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_histogram_parameterfv_data_end (const xcb_glx_get_histogram_parameterfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_histogram_parameterfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_histogram_parameterfv_reply_t * -xcb_glx_get_histogram_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_histogram_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_histogram_parameteriv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_histogram_parameteriv_cookie_t -xcb_glx_get_histogram_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_histogram_parameteriv_cookie_t -xcb_glx_get_histogram_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_histogram_parameteriv_data (const xcb_glx_get_histogram_parameteriv_reply_t *R /**< */); - -int -xcb_glx_get_histogram_parameteriv_data_length (const xcb_glx_get_histogram_parameteriv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_histogram_parameteriv_data_end (const xcb_glx_get_histogram_parameteriv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_histogram_parameteriv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_histogram_parameteriv_reply_t * -xcb_glx_get_histogram_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_histogram_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_minmax_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_minmax_cookie_t -xcb_glx_get_minmax (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t reset /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_minmax_cookie_t -xcb_glx_get_minmax_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t format /**< */, - uint32_t type /**< */, - uint8_t swap_bytes /**< */, - uint8_t reset /**< */); - -uint8_t * -xcb_glx_get_minmax_data (const xcb_glx_get_minmax_reply_t *R /**< */); - -int -xcb_glx_get_minmax_data_length (const xcb_glx_get_minmax_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_minmax_data_end (const xcb_glx_get_minmax_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_minmax_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_minmax_reply_t * -xcb_glx_get_minmax_reply (xcb_connection_t *c /**< */, - xcb_glx_get_minmax_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_minmax_parameterfv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_minmax_parameterfv_cookie_t -xcb_glx_get_minmax_parameterfv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_minmax_parameterfv_cookie_t -xcb_glx_get_minmax_parameterfv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -xcb_glx_float32_t * -xcb_glx_get_minmax_parameterfv_data (const xcb_glx_get_minmax_parameterfv_reply_t *R /**< */); - -int -xcb_glx_get_minmax_parameterfv_data_length (const xcb_glx_get_minmax_parameterfv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_minmax_parameterfv_data_end (const xcb_glx_get_minmax_parameterfv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_minmax_parameterfv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_minmax_parameterfv_reply_t * -xcb_glx_get_minmax_parameterfv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_minmax_parameterfv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_minmax_parameteriv_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_minmax_parameteriv_cookie_t -xcb_glx_get_minmax_parameteriv (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_minmax_parameteriv_cookie_t -xcb_glx_get_minmax_parameteriv_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_minmax_parameteriv_data (const xcb_glx_get_minmax_parameteriv_reply_t *R /**< */); - -int -xcb_glx_get_minmax_parameteriv_data_length (const xcb_glx_get_minmax_parameteriv_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_minmax_parameteriv_data_end (const xcb_glx_get_minmax_parameteriv_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_minmax_parameteriv_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_minmax_parameteriv_reply_t * -xcb_glx_get_minmax_parameteriv_reply (xcb_connection_t *c /**< */, - xcb_glx_get_minmax_parameteriv_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_compressed_tex_image_arb_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_compressed_tex_image_arb_cookie_t -xcb_glx_get_compressed_tex_image_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_compressed_tex_image_arb_cookie_t -xcb_glx_get_compressed_tex_image_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - int32_t level /**< */); - -uint8_t * -xcb_glx_get_compressed_tex_image_arb_data (const xcb_glx_get_compressed_tex_image_arb_reply_t *R /**< */); - -int -xcb_glx_get_compressed_tex_image_arb_data_length (const xcb_glx_get_compressed_tex_image_arb_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_compressed_tex_image_arb_data_end (const xcb_glx_get_compressed_tex_image_arb_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_compressed_tex_image_arb_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_compressed_tex_image_arb_reply_t * -xcb_glx_get_compressed_tex_image_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_get_compressed_tex_image_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_delete_queries_arb_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_glx_delete_queries_arb_checked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *ids /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_glx_delete_queries_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */, - const uint32_t *ids /**< */); - -int -xcb_glx_gen_queries_arb_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_gen_queries_arb_cookie_t -xcb_glx_gen_queries_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_gen_queries_arb_cookie_t -xcb_glx_gen_queries_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - int32_t n /**< */); - -uint32_t * -xcb_glx_gen_queries_arb_data (const xcb_glx_gen_queries_arb_reply_t *R /**< */); - -int -xcb_glx_gen_queries_arb_data_length (const xcb_glx_gen_queries_arb_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_gen_queries_arb_data_end (const xcb_glx_gen_queries_arb_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_gen_queries_arb_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_gen_queries_arb_reply_t * -xcb_glx_gen_queries_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_gen_queries_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_is_query_arb_cookie_t -xcb_glx_is_query_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_is_query_arb_cookie_t -xcb_glx_is_query_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_is_query_arb_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_is_query_arb_reply_t * -xcb_glx_is_query_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_is_query_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_queryiv_arb_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_queryiv_arb_cookie_t -xcb_glx_get_queryiv_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_queryiv_arb_cookie_t -xcb_glx_get_queryiv_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t target /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_queryiv_arb_data (const xcb_glx_get_queryiv_arb_reply_t *R /**< */); - -int -xcb_glx_get_queryiv_arb_data_length (const xcb_glx_get_queryiv_arb_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_queryiv_arb_data_end (const xcb_glx_get_queryiv_arb_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_queryiv_arb_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_queryiv_arb_reply_t * -xcb_glx_get_queryiv_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_get_queryiv_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_query_objectiv_arb_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_query_objectiv_arb_cookie_t -xcb_glx_get_query_objectiv_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_query_objectiv_arb_cookie_t -xcb_glx_get_query_objectiv_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */, - uint32_t pname /**< */); - -int32_t * -xcb_glx_get_query_objectiv_arb_data (const xcb_glx_get_query_objectiv_arb_reply_t *R /**< */); - -int -xcb_glx_get_query_objectiv_arb_data_length (const xcb_glx_get_query_objectiv_arb_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_query_objectiv_arb_data_end (const xcb_glx_get_query_objectiv_arb_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_query_objectiv_arb_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_query_objectiv_arb_reply_t * -xcb_glx_get_query_objectiv_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_get_query_objectiv_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_glx_get_query_objectuiv_arb_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_glx_get_query_objectuiv_arb_cookie_t -xcb_glx_get_query_objectuiv_arb (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */, - uint32_t pname /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_glx_get_query_objectuiv_arb_cookie_t -xcb_glx_get_query_objectuiv_arb_unchecked (xcb_connection_t *c /**< */, - xcb_glx_context_tag_t context_tag /**< */, - uint32_t id /**< */, - uint32_t pname /**< */); - -uint32_t * -xcb_glx_get_query_objectuiv_arb_data (const xcb_glx_get_query_objectuiv_arb_reply_t *R /**< */); - -int -xcb_glx_get_query_objectuiv_arb_data_length (const xcb_glx_get_query_objectuiv_arb_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_glx_get_query_objectuiv_arb_data_end (const xcb_glx_get_query_objectuiv_arb_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_glx_get_query_objectuiv_arb_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_glx_get_query_objectuiv_arb_reply_t * -xcb_glx_get_query_objectuiv_arb_reply (xcb_connection_t *c /**< */, - xcb_glx_get_query_objectuiv_arb_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/present.c b/external/mit/xorg/lib/libxcb/files/present.c deleted file mode 100644 index 12faec693..000000000 --- a/external/mit/xorg/lib/libxcb/files/present.c +++ /dev/null @@ -1,495 +0,0 @@ -/* - * This file generated automatically from present.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "present.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" -#include "randr.h" -#include "xfixes.h" -#include "sync.h" - -xcb_extension_t xcb_present_id = { "Present", 0 }; - -void -xcb_present_notify_next (xcb_present_notify_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_present_notify_t); -} - -xcb_generic_iterator_t -xcb_present_notify_end (xcb_present_notify_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_present_query_version_cookie_t -xcb_present_query_version (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_present_id, - /* opcode */ XCB_PRESENT_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_present_query_version_cookie_t xcb_ret; - xcb_present_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_present_query_version_cookie_t -xcb_present_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_present_id, - /* opcode */ XCB_PRESENT_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_present_query_version_cookie_t xcb_ret; - xcb_present_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_present_query_version_reply_t * -xcb_present_query_version_reply (xcb_connection_t *c /**< */, - xcb_present_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_present_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_present_pixmap_sizeof (const void *_buffer /**< */, - uint32_t notifies_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_present_pixmap_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* notifies */ - xcb_block_len += notifies_len * sizeof(xcb_present_notify_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_present_notify_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_present_pixmap_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_pixmap_t pixmap /**< */, - uint32_t serial /**< */, - xcb_xfixes_region_t valid /**< */, - xcb_xfixes_region_t update /**< */, - int16_t x_off /**< */, - int16_t y_off /**< */, - xcb_randr_crtc_t target_crtc /**< */, - xcb_sync_fence_t wait_fence /**< */, - xcb_sync_fence_t idle_fence /**< */, - uint32_t options /**< */, - uint64_t target_msc /**< */, - uint64_t divisor /**< */, - uint64_t remainder /**< */, - uint32_t notifies_len /**< */, - const xcb_present_notify_t *notifies /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_present_id, - /* opcode */ XCB_PRESENT_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_present_pixmap_request_t xcb_out; - - xcb_out.window = window; - xcb_out.pixmap = pixmap; - xcb_out.serial = serial; - xcb_out.valid = valid; - xcb_out.update = update; - xcb_out.x_off = x_off; - xcb_out.y_off = y_off; - xcb_out.target_crtc = target_crtc; - xcb_out.wait_fence = wait_fence; - xcb_out.idle_fence = idle_fence; - xcb_out.options = options; - memset(xcb_out.pad0, 0, 4); - xcb_out.target_msc = target_msc; - xcb_out.divisor = divisor; - xcb_out.remainder = remainder; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_present_notify_t notifies */ - xcb_parts[4].iov_base = (char *) notifies; - xcb_parts[4].iov_len = notifies_len * sizeof(xcb_present_notify_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_present_pixmap (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_pixmap_t pixmap /**< */, - uint32_t serial /**< */, - xcb_xfixes_region_t valid /**< */, - xcb_xfixes_region_t update /**< */, - int16_t x_off /**< */, - int16_t y_off /**< */, - xcb_randr_crtc_t target_crtc /**< */, - xcb_sync_fence_t wait_fence /**< */, - xcb_sync_fence_t idle_fence /**< */, - uint32_t options /**< */, - uint64_t target_msc /**< */, - uint64_t divisor /**< */, - uint64_t remainder /**< */, - uint32_t notifies_len /**< */, - const xcb_present_notify_t *notifies /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_present_id, - /* opcode */ XCB_PRESENT_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_present_pixmap_request_t xcb_out; - - xcb_out.window = window; - xcb_out.pixmap = pixmap; - xcb_out.serial = serial; - xcb_out.valid = valid; - xcb_out.update = update; - xcb_out.x_off = x_off; - xcb_out.y_off = y_off; - xcb_out.target_crtc = target_crtc; - xcb_out.wait_fence = wait_fence; - xcb_out.idle_fence = idle_fence; - xcb_out.options = options; - memset(xcb_out.pad0, 0, 4); - xcb_out.target_msc = target_msc; - xcb_out.divisor = divisor; - xcb_out.remainder = remainder; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_present_notify_t notifies */ - xcb_parts[4].iov_base = (char *) notifies; - xcb_parts[4].iov_len = notifies_len * sizeof(xcb_present_notify_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_present_notify_msc_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t serial /**< */, - uint64_t target_msc /**< */, - uint64_t divisor /**< */, - uint64_t remainder /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_present_id, - /* opcode */ XCB_PRESENT_NOTIFY_MSC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_present_notify_msc_request_t xcb_out; - - xcb_out.window = window; - xcb_out.serial = serial; - memset(xcb_out.pad0, 0, 4); - xcb_out.target_msc = target_msc; - xcb_out.divisor = divisor; - xcb_out.remainder = remainder; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_present_notify_msc (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t serial /**< */, - uint64_t target_msc /**< */, - uint64_t divisor /**< */, - uint64_t remainder /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_present_id, - /* opcode */ XCB_PRESENT_NOTIFY_MSC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_present_notify_msc_request_t xcb_out; - - xcb_out.window = window; - xcb_out.serial = serial; - memset(xcb_out.pad0, 0, 4); - xcb_out.target_msc = target_msc; - xcb_out.divisor = divisor; - xcb_out.remainder = remainder; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_present_event_next (xcb_present_event_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_present_event_t); -} - -xcb_generic_iterator_t -xcb_present_event_end (xcb_present_event_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_void_cookie_t -xcb_present_select_input_checked (xcb_connection_t *c /**< */, - xcb_present_event_t eid /**< */, - xcb_window_t window /**< */, - uint32_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_present_id, - /* opcode */ XCB_PRESENT_SELECT_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_present_select_input_request_t xcb_out; - - xcb_out.eid = eid; - xcb_out.window = window; - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_present_select_input (xcb_connection_t *c /**< */, - xcb_present_event_t eid /**< */, - xcb_window_t window /**< */, - uint32_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_present_id, - /* opcode */ XCB_PRESENT_SELECT_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_present_select_input_request_t xcb_out; - - xcb_out.eid = eid; - xcb_out.window = window; - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_present_query_capabilities_cookie_t -xcb_present_query_capabilities (xcb_connection_t *c /**< */, - uint32_t target /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_present_id, - /* opcode */ XCB_PRESENT_QUERY_CAPABILITIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_present_query_capabilities_cookie_t xcb_ret; - xcb_present_query_capabilities_request_t xcb_out; - - xcb_out.target = target; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_present_query_capabilities_cookie_t -xcb_present_query_capabilities_unchecked (xcb_connection_t *c /**< */, - uint32_t target /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_present_id, - /* opcode */ XCB_PRESENT_QUERY_CAPABILITIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_present_query_capabilities_cookie_t xcb_ret; - xcb_present_query_capabilities_request_t xcb_out; - - xcb_out.target = target; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_present_query_capabilities_reply_t * -xcb_present_query_capabilities_reply (xcb_connection_t *c /**< */, - xcb_present_query_capabilities_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_present_query_capabilities_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_present_redirect_notify_sizeof (const void *_buffer /**< */, - uint32_t notifies_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_present_redirect_notify_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* notifies */ - xcb_block_len += notifies_len * sizeof(xcb_present_notify_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_present_notify_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - diff --git a/external/mit/xorg/lib/libxcb/files/present.h b/external/mit/xorg/lib/libxcb/files/present.h deleted file mode 100644 index 79007d85f..000000000 --- a/external/mit/xorg/lib/libxcb/files/present.h +++ /dev/null @@ -1,624 +0,0 @@ -/* - * This file generated automatically from present.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Present_API XCB Present API - * @brief Present XCB Protocol Implementation. - * @{ - **/ - -#ifndef __PRESENT_H -#define __PRESENT_H - -#include "xcb.h" -#include "xproto.h" -#include "randr.h" -#include "xfixes.h" -#include "sync.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_PRESENT_MAJOR_VERSION 1 -#define XCB_PRESENT_MINOR_VERSION 0 - -extern xcb_extension_t xcb_present_id; - -typedef enum xcb_present_event_enum_t { - XCB_PRESENT_EVENT_CONFIGURE_NOTIFY = 0, - XCB_PRESENT_EVENT_COMPLETE_NOTIFY = 1, - XCB_PRESENT_EVENT_IDLE_NOTIFY = 2, - XCB_PRESENT_EVENT_REDIRECT_NOTIFY = 3 -} xcb_present_event_enum_t; - -typedef enum xcb_present_event_mask_t { - XCB_PRESENT_EVENT_MASK_NO_EVENT = 0, - XCB_PRESENT_EVENT_MASK_CONFIGURE_NOTIFY = 1, - XCB_PRESENT_EVENT_MASK_COMPLETE_NOTIFY = 2, - XCB_PRESENT_EVENT_MASK_IDLE_NOTIFY = 4, - XCB_PRESENT_EVENT_MASK_REDIRECT_NOTIFY = 8 -} xcb_present_event_mask_t; - -typedef enum xcb_present_option_t { - XCB_PRESENT_OPTION_NONE = 0, - XCB_PRESENT_OPTION_ASYNC = 1, - XCB_PRESENT_OPTION_COPY = 2, - XCB_PRESENT_OPTION_UST = 4 -} xcb_present_option_t; - -typedef enum xcb_present_capability_t { - XCB_PRESENT_CAPABILITY_NONE = 0, - XCB_PRESENT_CAPABILITY_ASYNC = 1, - XCB_PRESENT_CAPABILITY_FENCE = 2, - XCB_PRESENT_CAPABILITY_UST = 4 -} xcb_present_capability_t; - -typedef enum xcb_present_complete_kind_t { - XCB_PRESENT_COMPLETE_KIND_PIXMAP = 0, - XCB_PRESENT_COMPLETE_KIND_NOTIFY_MSC = 1 -} xcb_present_complete_kind_t; - -typedef enum xcb_present_complete_mode_t { - XCB_PRESENT_COMPLETE_MODE_COPY = 0, - XCB_PRESENT_COMPLETE_MODE_FLIP = 1, - XCB_PRESENT_COMPLETE_MODE_SKIP = 2 -} xcb_present_complete_mode_t; - -/** - * @brief xcb_present_notify_t - **/ -typedef struct xcb_present_notify_t { - xcb_window_t window; /**< */ - uint32_t serial; /**< */ -} xcb_present_notify_t; - -/** - * @brief xcb_present_notify_iterator_t - **/ -typedef struct xcb_present_notify_iterator_t { - xcb_present_notify_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_present_notify_iterator_t; - -/** - * @brief xcb_present_query_version_cookie_t - **/ -typedef struct xcb_present_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_present_query_version_cookie_t; - -/** Opcode for xcb_present_query_version. */ -#define XCB_PRESENT_QUERY_VERSION 0 - -/** - * @brief xcb_present_query_version_request_t - **/ -typedef struct xcb_present_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ -} xcb_present_query_version_request_t; - -/** - * @brief xcb_present_query_version_reply_t - **/ -typedef struct xcb_present_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ -} xcb_present_query_version_reply_t; - -/** Opcode for xcb_present_pixmap. */ -#define XCB_PRESENT_PIXMAP 1 - -/** - * @brief xcb_present_pixmap_request_t - **/ -typedef struct xcb_present_pixmap_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_pixmap_t pixmap; /**< */ - uint32_t serial; /**< */ - xcb_xfixes_region_t valid; /**< */ - xcb_xfixes_region_t update; /**< */ - int16_t x_off; /**< */ - int16_t y_off; /**< */ - xcb_randr_crtc_t target_crtc; /**< */ - xcb_sync_fence_t wait_fence; /**< */ - xcb_sync_fence_t idle_fence; /**< */ - uint32_t options; /**< */ - uint8_t pad0[4]; /**< */ - uint64_t target_msc; /**< */ - uint64_t divisor; /**< */ - uint64_t remainder; /**< */ -} xcb_present_pixmap_request_t; - -/** Opcode for xcb_present_notify_msc. */ -#define XCB_PRESENT_NOTIFY_MSC 2 - -/** - * @brief xcb_present_notify_msc_request_t - **/ -typedef struct xcb_present_notify_msc_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint32_t serial; /**< */ - uint8_t pad0[4]; /**< */ - uint64_t target_msc; /**< */ - uint64_t divisor; /**< */ - uint64_t remainder; /**< */ -} xcb_present_notify_msc_request_t; - -typedef uint32_t xcb_present_event_t; - -/** - * @brief xcb_present_event_iterator_t - **/ -typedef struct xcb_present_event_iterator_t { - xcb_present_event_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_present_event_iterator_t; - -/** Opcode for xcb_present_select_input. */ -#define XCB_PRESENT_SELECT_INPUT 3 - -/** - * @brief xcb_present_select_input_request_t - **/ -typedef struct xcb_present_select_input_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_present_event_t eid; /**< */ - xcb_window_t window; /**< */ - uint32_t event_mask; /**< */ -} xcb_present_select_input_request_t; - -/** - * @brief xcb_present_query_capabilities_cookie_t - **/ -typedef struct xcb_present_query_capabilities_cookie_t { - unsigned int sequence; /**< */ -} xcb_present_query_capabilities_cookie_t; - -/** Opcode for xcb_present_query_capabilities. */ -#define XCB_PRESENT_QUERY_CAPABILITIES 4 - -/** - * @brief xcb_present_query_capabilities_request_t - **/ -typedef struct xcb_present_query_capabilities_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t target; /**< */ -} xcb_present_query_capabilities_request_t; - -/** - * @brief xcb_present_query_capabilities_reply_t - **/ -typedef struct xcb_present_query_capabilities_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t capabilities; /**< */ -} xcb_present_query_capabilities_reply_t; - -/** Opcode for xcb_present_generic. */ -#define XCB_PRESENT_GENERIC 0 - -/** - * @brief xcb_present_generic_event_t - **/ -typedef struct xcb_present_generic_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t evtype; /**< */ - uint8_t pad0[2]; /**< */ - xcb_present_event_t event; /**< */ -} xcb_present_generic_event_t; - -/** Opcode for xcb_present_configure_notify. */ -#define XCB_PRESENT_CONFIGURE_NOTIFY 0 - -/** - * @brief xcb_present_configure_notify_event_t - **/ -typedef struct xcb_present_configure_notify_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - uint8_t pad0[2]; /**< */ - xcb_present_event_t event; /**< */ - xcb_window_t window; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - int16_t off_x; /**< */ - int16_t off_y; /**< */ - uint32_t full_sequence; /**< */ - uint16_t pixmap_width; /**< */ - uint16_t pixmap_height; /**< */ - uint32_t pixmap_flags; /**< */ -} xcb_present_configure_notify_event_t; - -/** Opcode for xcb_present_complete_notify. */ -#define XCB_PRESENT_COMPLETE_NOTIFY 1 - -/** - * @brief xcb_present_complete_notify_event_t - **/ -typedef struct xcb_present_complete_notify_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - uint8_t kind; /**< */ - uint8_t mode; /**< */ - xcb_present_event_t event; /**< */ - xcb_window_t window; /**< */ - uint32_t serial; /**< */ - uint64_t ust; /**< */ - uint32_t full_sequence; /**< */ - uint64_t msc; /**< */ -} XCB_PACKED xcb_present_complete_notify_event_t; - -/** Opcode for xcb_present_idle_notify. */ -#define XCB_PRESENT_IDLE_NOTIFY 2 - -/** - * @brief xcb_present_idle_notify_event_t - **/ -typedef struct xcb_present_idle_notify_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - uint8_t pad0[2]; /**< */ - xcb_present_event_t event; /**< */ - xcb_window_t window; /**< */ - uint32_t serial; /**< */ - xcb_pixmap_t pixmap; /**< */ - xcb_sync_fence_t idle_fence; /**< */ - uint32_t full_sequence; /**< */ -} xcb_present_idle_notify_event_t; - -/** Opcode for xcb_present_redirect_notify. */ -#define XCB_PRESENT_REDIRECT_NOTIFY 3 - -/** - * @brief xcb_present_redirect_notify_event_t - **/ -typedef struct xcb_present_redirect_notify_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - uint8_t update_window; /**< */ - uint8_t pad0; /**< */ - xcb_present_event_t event; /**< */ - xcb_window_t event_window; /**< */ - xcb_window_t window; /**< */ - xcb_pixmap_t pixmap; /**< */ - uint32_t serial; /**< */ - uint32_t full_sequence; /**< */ - xcb_xfixes_region_t valid_region; /**< */ - xcb_xfixes_region_t update_region; /**< */ - xcb_rectangle_t valid_rect; /**< */ - xcb_rectangle_t update_rect; /**< */ - int16_t x_off; /**< */ - int16_t y_off; /**< */ - xcb_randr_crtc_t target_crtc; /**< */ - xcb_sync_fence_t wait_fence; /**< */ - xcb_sync_fence_t idle_fence; /**< */ - uint32_t options; /**< */ - uint8_t pad1[4]; /**< */ - uint64_t target_msc; /**< */ - uint64_t divisor; /**< */ - uint64_t remainder; /**< */ -} XCB_PACKED xcb_present_redirect_notify_event_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_present_notify_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_present_notify_t) - */ -void -xcb_present_notify_next (xcb_present_notify_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_present_notify_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_present_notify_end (xcb_present_notify_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_present_query_version_cookie_t -xcb_present_query_version (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_present_query_version_cookie_t -xcb_present_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_present_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_present_query_version_reply_t * -xcb_present_query_version_reply (xcb_connection_t *c /**< */, - xcb_present_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_present_pixmap_sizeof (const void *_buffer /**< */, - uint32_t notifies_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_present_pixmap_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_pixmap_t pixmap /**< */, - uint32_t serial /**< */, - xcb_xfixes_region_t valid /**< */, - xcb_xfixes_region_t update /**< */, - int16_t x_off /**< */, - int16_t y_off /**< */, - xcb_randr_crtc_t target_crtc /**< */, - xcb_sync_fence_t wait_fence /**< */, - xcb_sync_fence_t idle_fence /**< */, - uint32_t options /**< */, - uint64_t target_msc /**< */, - uint64_t divisor /**< */, - uint64_t remainder /**< */, - uint32_t notifies_len /**< */, - const xcb_present_notify_t *notifies /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_present_pixmap (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_pixmap_t pixmap /**< */, - uint32_t serial /**< */, - xcb_xfixes_region_t valid /**< */, - xcb_xfixes_region_t update /**< */, - int16_t x_off /**< */, - int16_t y_off /**< */, - xcb_randr_crtc_t target_crtc /**< */, - xcb_sync_fence_t wait_fence /**< */, - xcb_sync_fence_t idle_fence /**< */, - uint32_t options /**< */, - uint64_t target_msc /**< */, - uint64_t divisor /**< */, - uint64_t remainder /**< */, - uint32_t notifies_len /**< */, - const xcb_present_notify_t *notifies /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_present_notify_msc_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t serial /**< */, - uint64_t target_msc /**< */, - uint64_t divisor /**< */, - uint64_t remainder /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_present_notify_msc (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t serial /**< */, - uint64_t target_msc /**< */, - uint64_t divisor /**< */, - uint64_t remainder /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_present_event_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_present_event_t) - */ -void -xcb_present_event_next (xcb_present_event_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_present_event_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_present_event_end (xcb_present_event_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_present_select_input_checked (xcb_connection_t *c /**< */, - xcb_present_event_t eid /**< */, - xcb_window_t window /**< */, - uint32_t event_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_present_select_input (xcb_connection_t *c /**< */, - xcb_present_event_t eid /**< */, - xcb_window_t window /**< */, - uint32_t event_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_present_query_capabilities_cookie_t -xcb_present_query_capabilities (xcb_connection_t *c /**< */, - uint32_t target /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_present_query_capabilities_cookie_t -xcb_present_query_capabilities_unchecked (xcb_connection_t *c /**< */, - uint32_t target /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_present_query_capabilities_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_present_query_capabilities_reply_t * -xcb_present_query_capabilities_reply (xcb_connection_t *c /**< */, - xcb_present_query_capabilities_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_present_redirect_notify_sizeof (const void *_buffer /**< */, - uint32_t notifies_len /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/randr.c b/external/mit/xorg/lib/libxcb/files/randr.c deleted file mode 100644 index 63e1b470e..000000000 --- a/external/mit/xorg/lib/libxcb/files/randr.c +++ /dev/null @@ -1,4869 +0,0 @@ -/* - * This file generated automatically from randr.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "randr.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" -#include "render.h" - -xcb_extension_t xcb_randr_id = { "RANDR", 0 }; - -void -xcb_randr_mode_next (xcb_randr_mode_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_mode_t); -} - -xcb_generic_iterator_t -xcb_randr_mode_end (xcb_randr_mode_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_randr_crtc_next (xcb_randr_crtc_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_crtc_t); -} - -xcb_generic_iterator_t -xcb_randr_crtc_end (xcb_randr_crtc_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_randr_output_next (xcb_randr_output_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_output_t); -} - -xcb_generic_iterator_t -xcb_randr_output_end (xcb_randr_output_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_randr_provider_next (xcb_randr_provider_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_provider_t); -} - -xcb_generic_iterator_t -xcb_randr_provider_end (xcb_randr_provider_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_randr_screen_size_next (xcb_randr_screen_size_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_screen_size_t); -} - -xcb_generic_iterator_t -xcb_randr_screen_size_end (xcb_randr_screen_size_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_randr_refresh_rates_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_refresh_rates_t *_aux = (xcb_randr_refresh_rates_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_refresh_rates_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rates */ - xcb_block_len += _aux->nRates * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint16_t * -xcb_randr_refresh_rates_rates (const xcb_randr_refresh_rates_t *R /**< */) -{ - return (uint16_t *) (R + 1); -} - -int -xcb_randr_refresh_rates_rates_length (const xcb_randr_refresh_rates_t *R /**< */) -{ - return R->nRates; -} - -xcb_generic_iterator_t -xcb_randr_refresh_rates_rates_end (const xcb_randr_refresh_rates_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint16_t *) (R + 1)) + (R->nRates); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_randr_refresh_rates_next (xcb_randr_refresh_rates_iterator_t *i /**< */) -{ - xcb_randr_refresh_rates_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_randr_refresh_rates_t *)(((char *)R) + xcb_randr_refresh_rates_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_randr_refresh_rates_t *) child.data; -} - -xcb_generic_iterator_t -xcb_randr_refresh_rates_end (xcb_randr_refresh_rates_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_randr_refresh_rates_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -xcb_randr_query_version_cookie_t -xcb_randr_query_version (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_query_version_cookie_t xcb_ret; - xcb_randr_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_query_version_cookie_t -xcb_randr_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_query_version_cookie_t xcb_ret; - xcb_randr_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_query_version_reply_t * -xcb_randr_query_version_reply (xcb_connection_t *c /**< */, - xcb_randr_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_randr_set_screen_config_cookie_t -xcb_randr_set_screen_config (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t timestamp /**< */, - xcb_timestamp_t config_timestamp /**< */, - uint16_t sizeID /**< */, - uint16_t rotation /**< */, - uint16_t rate /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_SCREEN_CONFIG, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_set_screen_config_cookie_t xcb_ret; - xcb_randr_set_screen_config_request_t xcb_out; - - xcb_out.window = window; - xcb_out.timestamp = timestamp; - xcb_out.config_timestamp = config_timestamp; - xcb_out.sizeID = sizeID; - xcb_out.rotation = rotation; - xcb_out.rate = rate; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_set_screen_config_cookie_t -xcb_randr_set_screen_config_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t timestamp /**< */, - xcb_timestamp_t config_timestamp /**< */, - uint16_t sizeID /**< */, - uint16_t rotation /**< */, - uint16_t rate /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_SCREEN_CONFIG, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_set_screen_config_cookie_t xcb_ret; - xcb_randr_set_screen_config_request_t xcb_out; - - xcb_out.window = window; - xcb_out.timestamp = timestamp; - xcb_out.config_timestamp = config_timestamp; - xcb_out.sizeID = sizeID; - xcb_out.rotation = rotation; - xcb_out.rate = rate; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_set_screen_config_reply_t * -xcb_randr_set_screen_config_reply (xcb_connection_t *c /**< */, - xcb_randr_set_screen_config_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_set_screen_config_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_randr_select_input_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t enable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SELECT_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_select_input_request_t xcb_out; - - xcb_out.window = window; - xcb_out.enable = enable; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_select_input (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t enable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SELECT_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_select_input_request_t xcb_out; - - xcb_out.window = window; - xcb_out.enable = enable; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_randr_get_screen_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_get_screen_info_reply_t *_aux = (xcb_randr_get_screen_info_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_randr_get_screen_info_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* sizes */ - xcb_block_len += _aux->nSizes * sizeof(xcb_randr_screen_size_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_screen_size_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* rates */ - for(i=0; i<(_aux->nInfo - _aux->nSizes); i++) { - xcb_tmp_len = xcb_randr_refresh_rates_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_randr_refresh_rates_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_get_screen_info_cookie_t -xcb_randr_get_screen_info (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_SCREEN_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_screen_info_cookie_t xcb_ret; - xcb_randr_get_screen_info_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_screen_info_cookie_t -xcb_randr_get_screen_info_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_SCREEN_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_screen_info_cookie_t xcb_ret; - xcb_randr_get_screen_info_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_screen_size_t * -xcb_randr_get_screen_info_sizes (const xcb_randr_get_screen_info_reply_t *R /**< */) -{ - return (xcb_randr_screen_size_t *) (R + 1); -} - -int -xcb_randr_get_screen_info_sizes_length (const xcb_randr_get_screen_info_reply_t *R /**< */) -{ - return R->nSizes; -} - -xcb_randr_screen_size_iterator_t -xcb_randr_get_screen_info_sizes_iterator (const xcb_randr_get_screen_info_reply_t *R /**< */) -{ - xcb_randr_screen_size_iterator_t i; - i.data = (xcb_randr_screen_size_t *) (R + 1); - i.rem = R->nSizes; - i.index = (char *) i.data - (char *) R; - return i; -} - -int -xcb_randr_get_screen_info_rates_length (const xcb_randr_get_screen_info_reply_t *R /**< */) -{ - return (R->nInfo - R->nSizes); -} - -xcb_randr_refresh_rates_iterator_t -xcb_randr_get_screen_info_rates_iterator (const xcb_randr_get_screen_info_reply_t *R /**< */) -{ - xcb_randr_refresh_rates_iterator_t i; - xcb_generic_iterator_t prev = xcb_randr_screen_size_end(xcb_randr_get_screen_info_sizes_iterator(R)); - i.data = (xcb_randr_refresh_rates_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_refresh_rates_t, prev.index)); - i.rem = (R->nInfo - R->nSizes); - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_get_screen_info_reply_t * -xcb_randr_get_screen_info_reply (xcb_connection_t *c /**< */, - xcb_randr_get_screen_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_screen_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_randr_get_screen_size_range_cookie_t -xcb_randr_get_screen_size_range (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_SCREEN_SIZE_RANGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_screen_size_range_cookie_t xcb_ret; - xcb_randr_get_screen_size_range_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_screen_size_range_cookie_t -xcb_randr_get_screen_size_range_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_SCREEN_SIZE_RANGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_screen_size_range_cookie_t xcb_ret; - xcb_randr_get_screen_size_range_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_screen_size_range_reply_t * -xcb_randr_get_screen_size_range_reply (xcb_connection_t *c /**< */, - xcb_randr_get_screen_size_range_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_screen_size_range_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_randr_set_screen_size_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t mm_width /**< */, - uint32_t mm_height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_SCREEN_SIZE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_screen_size_request_t xcb_out; - - xcb_out.window = window; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.mm_width = mm_width; - xcb_out.mm_height = mm_height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_set_screen_size (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t mm_width /**< */, - uint32_t mm_height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_SCREEN_SIZE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_screen_size_request_t xcb_out; - - xcb_out.window = window; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.mm_width = mm_width; - xcb_out.mm_height = mm_height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_randr_mode_info_next (xcb_randr_mode_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_mode_info_t); -} - -xcb_generic_iterator_t -xcb_randr_mode_info_end (xcb_randr_mode_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_randr_get_screen_resources_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_get_screen_resources_reply_t *_aux = (xcb_randr_get_screen_resources_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_get_screen_resources_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* crtcs */ - xcb_block_len += _aux->num_crtcs * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_crtc_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* outputs */ - xcb_block_len += _aux->num_outputs * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_output_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* modes */ - xcb_block_len += _aux->num_modes * sizeof(xcb_randr_mode_info_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_mode_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* names */ - xcb_block_len += _aux->names_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_get_screen_resources_cookie_t -xcb_randr_get_screen_resources (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_SCREEN_RESOURCES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_screen_resources_cookie_t xcb_ret; - xcb_randr_get_screen_resources_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_screen_resources_cookie_t -xcb_randr_get_screen_resources_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_SCREEN_RESOURCES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_screen_resources_cookie_t xcb_ret; - xcb_randr_get_screen_resources_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_crtc_t * -xcb_randr_get_screen_resources_crtcs (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - return (xcb_randr_crtc_t *) (R + 1); -} - -int -xcb_randr_get_screen_resources_crtcs_length (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - return R->num_crtcs; -} - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_crtcs_end (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_randr_crtc_t *) (R + 1)) + (R->num_crtcs); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_output_t * -xcb_randr_get_screen_resources_outputs (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_screen_resources_crtcs_end(R); - return (xcb_randr_output_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_output_t, prev.index) + 0); -} - -int -xcb_randr_get_screen_resources_outputs_length (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - return R->num_outputs; -} - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_outputs_end (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_screen_resources_crtcs_end(R); - i.data = ((xcb_randr_output_t *) child.data) + (R->num_outputs); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_mode_info_t * -xcb_randr_get_screen_resources_modes (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_screen_resources_outputs_end(R); - return (xcb_randr_mode_info_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_mode_info_t, prev.index) + 0); -} - -int -xcb_randr_get_screen_resources_modes_length (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - return R->num_modes; -} - -xcb_randr_mode_info_iterator_t -xcb_randr_get_screen_resources_modes_iterator (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - xcb_randr_mode_info_iterator_t i; - xcb_generic_iterator_t prev = xcb_randr_get_screen_resources_outputs_end(R); - i.data = (xcb_randr_mode_info_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_mode_info_t, prev.index)); - i.rem = R->num_modes; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint8_t * -xcb_randr_get_screen_resources_names (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_mode_info_end(xcb_randr_get_screen_resources_modes_iterator(R)); - return (uint8_t *) ((char *) prev.data + XCB_TYPE_PAD(uint8_t, prev.index) + 0); -} - -int -xcb_randr_get_screen_resources_names_length (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - return R->names_len; -} - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_names_end (const xcb_randr_get_screen_resources_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_mode_info_end(xcb_randr_get_screen_resources_modes_iterator(R)); - i.data = ((uint8_t *) child.data) + (R->names_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_get_screen_resources_reply_t * -xcb_randr_get_screen_resources_reply (xcb_connection_t *c /**< */, - xcb_randr_get_screen_resources_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_screen_resources_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_get_output_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_get_output_info_reply_t *_aux = (xcb_randr_get_output_info_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_get_output_info_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* crtcs */ - xcb_block_len += _aux->num_crtcs * sizeof(xcb_randr_output_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_crtc_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* modes */ - xcb_block_len += _aux->num_modes * sizeof(xcb_randr_output_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_mode_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* clones */ - xcb_block_len += _aux->num_clones * sizeof(xcb_randr_output_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_output_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_get_output_info_cookie_t -xcb_randr_get_output_info (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_timestamp_t config_timestamp /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_OUTPUT_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_output_info_cookie_t xcb_ret; - xcb_randr_get_output_info_request_t xcb_out; - - xcb_out.output = output; - xcb_out.config_timestamp = config_timestamp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_output_info_cookie_t -xcb_randr_get_output_info_unchecked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_timestamp_t config_timestamp /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_OUTPUT_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_output_info_cookie_t xcb_ret; - xcb_randr_get_output_info_request_t xcb_out; - - xcb_out.output = output; - xcb_out.config_timestamp = config_timestamp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_crtc_t * -xcb_randr_get_output_info_crtcs (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - return (xcb_randr_crtc_t *) (R + 1); -} - -int -xcb_randr_get_output_info_crtcs_length (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - return R->num_crtcs; -} - -xcb_generic_iterator_t -xcb_randr_get_output_info_crtcs_end (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_randr_crtc_t *) (R + 1)) + (R->num_crtcs); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_mode_t * -xcb_randr_get_output_info_modes (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_output_info_crtcs_end(R); - return (xcb_randr_mode_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_mode_t, prev.index) + 0); -} - -int -xcb_randr_get_output_info_modes_length (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - return R->num_modes; -} - -xcb_generic_iterator_t -xcb_randr_get_output_info_modes_end (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_output_info_crtcs_end(R); - i.data = ((xcb_randr_mode_t *) child.data) + (R->num_modes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_output_t * -xcb_randr_get_output_info_clones (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_output_info_modes_end(R); - return (xcb_randr_output_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_output_t, prev.index) + 0); -} - -int -xcb_randr_get_output_info_clones_length (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - return R->num_clones; -} - -xcb_generic_iterator_t -xcb_randr_get_output_info_clones_end (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_output_info_modes_end(R); - i.data = ((xcb_randr_output_t *) child.data) + (R->num_clones); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint8_t * -xcb_randr_get_output_info_name (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_output_info_clones_end(R); - return (uint8_t *) ((char *) prev.data + XCB_TYPE_PAD(uint8_t, prev.index) + 0); -} - -int -xcb_randr_get_output_info_name_length (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - return R->name_len; -} - -xcb_generic_iterator_t -xcb_randr_get_output_info_name_end (const xcb_randr_get_output_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_output_info_clones_end(R); - i.data = ((uint8_t *) child.data) + (R->name_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_get_output_info_reply_t * -xcb_randr_get_output_info_reply (xcb_connection_t *c /**< */, - xcb_randr_get_output_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_output_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_list_output_properties_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_list_output_properties_reply_t *_aux = (xcb_randr_list_output_properties_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_list_output_properties_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* atoms */ - xcb_block_len += _aux->num_atoms * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_list_output_properties_cookie_t -xcb_randr_list_output_properties (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_LIST_OUTPUT_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_list_output_properties_cookie_t xcb_ret; - xcb_randr_list_output_properties_request_t xcb_out; - - xcb_out.output = output; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_list_output_properties_cookie_t -xcb_randr_list_output_properties_unchecked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_LIST_OUTPUT_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_list_output_properties_cookie_t xcb_ret; - xcb_randr_list_output_properties_request_t xcb_out; - - xcb_out.output = output; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_atom_t * -xcb_randr_list_output_properties_atoms (const xcb_randr_list_output_properties_reply_t *R /**< */) -{ - return (xcb_atom_t *) (R + 1); -} - -int -xcb_randr_list_output_properties_atoms_length (const xcb_randr_list_output_properties_reply_t *R /**< */) -{ - return R->num_atoms; -} - -xcb_generic_iterator_t -xcb_randr_list_output_properties_atoms_end (const xcb_randr_list_output_properties_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_atom_t *) (R + 1)) + (R->num_atoms); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_list_output_properties_reply_t * -xcb_randr_list_output_properties_reply (xcb_connection_t *c /**< */, - xcb_randr_list_output_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_list_output_properties_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_query_output_property_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_query_output_property_reply_t *_aux = (xcb_randr_query_output_property_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_query_output_property_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* validValues */ - xcb_block_len += _aux->length * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_query_output_property_cookie_t -xcb_randr_query_output_property (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_QUERY_OUTPUT_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_query_output_property_cookie_t xcb_ret; - xcb_randr_query_output_property_request_t xcb_out; - - xcb_out.output = output; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_query_output_property_cookie_t -xcb_randr_query_output_property_unchecked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_QUERY_OUTPUT_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_query_output_property_cookie_t xcb_ret; - xcb_randr_query_output_property_request_t xcb_out; - - xcb_out.output = output; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_randr_query_output_property_valid_values (const xcb_randr_query_output_property_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_randr_query_output_property_valid_values_length (const xcb_randr_query_output_property_reply_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_randr_query_output_property_valid_values_end (const xcb_randr_query_output_property_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_query_output_property_reply_t * -xcb_randr_query_output_property_reply (xcb_connection_t *c /**< */, - xcb_randr_query_output_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_query_output_property_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_configure_output_property_sizeof (const void *_buffer /**< */, - uint32_t values_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_configure_output_property_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* values */ - xcb_block_len += values_len * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_randr_configure_output_property_checked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - uint8_t pending /**< */, - uint8_t range /**< */, - uint32_t values_len /**< */, - const int32_t *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_CONFIGURE_OUTPUT_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_randr_configure_output_property_request_t xcb_out; - - xcb_out.output = output; - xcb_out.property = property; - xcb_out.pending = pending; - xcb_out.range = range; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* int32_t values */ - xcb_parts[4].iov_base = (char *) values; - xcb_parts[4].iov_len = values_len * sizeof(int32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_configure_output_property (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - uint8_t pending /**< */, - uint8_t range /**< */, - uint32_t values_len /**< */, - const int32_t *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_CONFIGURE_OUTPUT_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_randr_configure_output_property_request_t xcb_out; - - xcb_out.output = output; - xcb_out.property = property; - xcb_out.pending = pending; - xcb_out.range = range; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* int32_t values */ - xcb_parts[4].iov_base = (char *) values; - xcb_parts[4].iov_len = values_len * sizeof(int32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_randr_change_output_property_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_change_output_property_request_t *_aux = (xcb_randr_change_output_property_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_change_output_property_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += ((_aux->num_units * _aux->format) / 8) * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_randr_change_output_property_checked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_units /**< */, - const void *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_CHANGE_OUTPUT_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_randr_change_output_property_request_t xcb_out; - - xcb_out.output = output; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.format = format; - xcb_out.mode = mode; - memset(xcb_out.pad0, 0, 2); - xcb_out.num_units = num_units; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* void data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = ((num_units * format) / 8) * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_change_output_property (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_units /**< */, - const void *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_CHANGE_OUTPUT_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_randr_change_output_property_request_t xcb_out; - - xcb_out.output = output; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.format = format; - xcb_out.mode = mode; - memset(xcb_out.pad0, 0, 2); - xcb_out.num_units = num_units; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* void data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = ((num_units * format) / 8) * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_delete_output_property_checked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_DELETE_OUTPUT_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_delete_output_property_request_t xcb_out; - - xcb_out.output = output; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_delete_output_property (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_DELETE_OUTPUT_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_delete_output_property_request_t xcb_out; - - xcb_out.output = output; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_randr_get_output_property_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_get_output_property_reply_t *_aux = (xcb_randr_get_output_property_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_get_output_property_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->num_items * (_aux->format / 8)) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_get_output_property_cookie_t -xcb_randr_get_output_property (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */, - uint8_t _delete /**< */, - uint8_t pending /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_OUTPUT_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_output_property_cookie_t xcb_ret; - xcb_randr_get_output_property_request_t xcb_out; - - xcb_out.output = output; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.long_offset = long_offset; - xcb_out.long_length = long_length; - xcb_out._delete = _delete; - xcb_out.pending = pending; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_output_property_cookie_t -xcb_randr_get_output_property_unchecked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */, - uint8_t _delete /**< */, - uint8_t pending /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_OUTPUT_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_output_property_cookie_t xcb_ret; - xcb_randr_get_output_property_request_t xcb_out; - - xcb_out.output = output; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.long_offset = long_offset; - xcb_out.long_length = long_length; - xcb_out._delete = _delete; - xcb_out.pending = pending; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_randr_get_output_property_data (const xcb_randr_get_output_property_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_randr_get_output_property_data_length (const xcb_randr_get_output_property_reply_t *R /**< */) -{ - return (R->num_items * (R->format / 8)); -} - -xcb_generic_iterator_t -xcb_randr_get_output_property_data_end (const xcb_randr_get_output_property_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->num_items * (R->format / 8))); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_get_output_property_reply_t * -xcb_randr_get_output_property_reply (xcb_connection_t *c /**< */, - xcb_randr_get_output_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_output_property_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_create_mode_sizeof (const void *_buffer /**< */, - uint32_t name_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_create_mode_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_create_mode_cookie_t -xcb_randr_create_mode (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_randr_mode_info_t mode_info /**< */, - uint32_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_CREATE_MODE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_randr_create_mode_cookie_t xcb_ret; - xcb_randr_create_mode_request_t xcb_out; - - xcb_out.window = window; - xcb_out.mode_info = mode_info; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_create_mode_cookie_t -xcb_randr_create_mode_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_randr_mode_info_t mode_info /**< */, - uint32_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_CREATE_MODE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_randr_create_mode_cookie_t xcb_ret; - xcb_randr_create_mode_request_t xcb_out; - - xcb_out.window = window; - xcb_out.mode_info = mode_info; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_create_mode_reply_t * -xcb_randr_create_mode_reply (xcb_connection_t *c /**< */, - xcb_randr_create_mode_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_create_mode_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_randr_destroy_mode_checked (xcb_connection_t *c /**< */, - xcb_randr_mode_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_DESTROY_MODE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_destroy_mode_request_t xcb_out; - - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_destroy_mode (xcb_connection_t *c /**< */, - xcb_randr_mode_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_DESTROY_MODE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_destroy_mode_request_t xcb_out; - - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_add_output_mode_checked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_randr_mode_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_ADD_OUTPUT_MODE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_add_output_mode_request_t xcb_out; - - xcb_out.output = output; - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_add_output_mode (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_randr_mode_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_ADD_OUTPUT_MODE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_add_output_mode_request_t xcb_out; - - xcb_out.output = output; - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_delete_output_mode_checked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_randr_mode_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_DELETE_OUTPUT_MODE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_delete_output_mode_request_t xcb_out; - - xcb_out.output = output; - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_delete_output_mode (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_randr_mode_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_DELETE_OUTPUT_MODE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_delete_output_mode_request_t xcb_out; - - xcb_out.output = output; - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_randr_get_crtc_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_get_crtc_info_reply_t *_aux = (xcb_randr_get_crtc_info_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_get_crtc_info_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* outputs */ - xcb_block_len += _aux->num_outputs * sizeof(xcb_randr_output_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_output_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* possible */ - xcb_block_len += _aux->num_possible_outputs * sizeof(xcb_randr_output_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_output_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_get_crtc_info_cookie_t -xcb_randr_get_crtc_info (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t config_timestamp /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_CRTC_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_crtc_info_cookie_t xcb_ret; - xcb_randr_get_crtc_info_request_t xcb_out; - - xcb_out.crtc = crtc; - xcb_out.config_timestamp = config_timestamp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_crtc_info_cookie_t -xcb_randr_get_crtc_info_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t config_timestamp /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_CRTC_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_crtc_info_cookie_t xcb_ret; - xcb_randr_get_crtc_info_request_t xcb_out; - - xcb_out.crtc = crtc; - xcb_out.config_timestamp = config_timestamp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_output_t * -xcb_randr_get_crtc_info_outputs (const xcb_randr_get_crtc_info_reply_t *R /**< */) -{ - return (xcb_randr_output_t *) (R + 1); -} - -int -xcb_randr_get_crtc_info_outputs_length (const xcb_randr_get_crtc_info_reply_t *R /**< */) -{ - return R->num_outputs; -} - -xcb_generic_iterator_t -xcb_randr_get_crtc_info_outputs_end (const xcb_randr_get_crtc_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_randr_output_t *) (R + 1)) + (R->num_outputs); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_output_t * -xcb_randr_get_crtc_info_possible (const xcb_randr_get_crtc_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_crtc_info_outputs_end(R); - return (xcb_randr_output_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_output_t, prev.index) + 0); -} - -int -xcb_randr_get_crtc_info_possible_length (const xcb_randr_get_crtc_info_reply_t *R /**< */) -{ - return R->num_possible_outputs; -} - -xcb_generic_iterator_t -xcb_randr_get_crtc_info_possible_end (const xcb_randr_get_crtc_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_crtc_info_outputs_end(R); - i.data = ((xcb_randr_output_t *) child.data) + (R->num_possible_outputs); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_get_crtc_info_reply_t * -xcb_randr_get_crtc_info_reply (xcb_connection_t *c /**< */, - xcb_randr_get_crtc_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_crtc_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_set_crtc_config_sizeof (const void *_buffer /**< */, - uint32_t outputs_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_set_crtc_config_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* outputs */ - xcb_block_len += outputs_len * sizeof(xcb_randr_output_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_output_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_set_crtc_config_cookie_t -xcb_randr_set_crtc_config (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t timestamp /**< */, - xcb_timestamp_t config_timestamp /**< */, - int16_t x /**< */, - int16_t y /**< */, - xcb_randr_mode_t mode /**< */, - uint16_t rotation /**< */, - uint32_t outputs_len /**< */, - const xcb_randr_output_t *outputs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_CRTC_CONFIG, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_randr_set_crtc_config_cookie_t xcb_ret; - xcb_randr_set_crtc_config_request_t xcb_out; - - xcb_out.crtc = crtc; - xcb_out.timestamp = timestamp; - xcb_out.config_timestamp = config_timestamp; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.mode = mode; - xcb_out.rotation = rotation; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_randr_output_t outputs */ - xcb_parts[4].iov_base = (char *) outputs; - xcb_parts[4].iov_len = outputs_len * sizeof(xcb_timestamp_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_set_crtc_config_cookie_t -xcb_randr_set_crtc_config_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t timestamp /**< */, - xcb_timestamp_t config_timestamp /**< */, - int16_t x /**< */, - int16_t y /**< */, - xcb_randr_mode_t mode /**< */, - uint16_t rotation /**< */, - uint32_t outputs_len /**< */, - const xcb_randr_output_t *outputs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_CRTC_CONFIG, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_randr_set_crtc_config_cookie_t xcb_ret; - xcb_randr_set_crtc_config_request_t xcb_out; - - xcb_out.crtc = crtc; - xcb_out.timestamp = timestamp; - xcb_out.config_timestamp = config_timestamp; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.mode = mode; - xcb_out.rotation = rotation; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_randr_output_t outputs */ - xcb_parts[4].iov_base = (char *) outputs; - xcb_parts[4].iov_len = outputs_len * sizeof(xcb_timestamp_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_set_crtc_config_reply_t * -xcb_randr_set_crtc_config_reply (xcb_connection_t *c /**< */, - xcb_randr_set_crtc_config_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_set_crtc_config_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_randr_get_crtc_gamma_size_cookie_t -xcb_randr_get_crtc_gamma_size (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_CRTC_GAMMA_SIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_crtc_gamma_size_cookie_t xcb_ret; - xcb_randr_get_crtc_gamma_size_request_t xcb_out; - - xcb_out.crtc = crtc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_crtc_gamma_size_cookie_t -xcb_randr_get_crtc_gamma_size_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_CRTC_GAMMA_SIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_crtc_gamma_size_cookie_t xcb_ret; - xcb_randr_get_crtc_gamma_size_request_t xcb_out; - - xcb_out.crtc = crtc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_crtc_gamma_size_reply_t * -xcb_randr_get_crtc_gamma_size_reply (xcb_connection_t *c /**< */, - xcb_randr_get_crtc_gamma_size_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_crtc_gamma_size_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_get_crtc_gamma_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_get_crtc_gamma_reply_t *_aux = (xcb_randr_get_crtc_gamma_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_get_crtc_gamma_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* red */ - xcb_block_len += _aux->size * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* green */ - xcb_block_len += _aux->size * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* blue */ - xcb_block_len += _aux->size * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_get_crtc_gamma_cookie_t -xcb_randr_get_crtc_gamma (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_CRTC_GAMMA, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_crtc_gamma_cookie_t xcb_ret; - xcb_randr_get_crtc_gamma_request_t xcb_out; - - xcb_out.crtc = crtc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_crtc_gamma_cookie_t -xcb_randr_get_crtc_gamma_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_CRTC_GAMMA, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_crtc_gamma_cookie_t xcb_ret; - xcb_randr_get_crtc_gamma_request_t xcb_out; - - xcb_out.crtc = crtc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint16_t * -xcb_randr_get_crtc_gamma_red (const xcb_randr_get_crtc_gamma_reply_t *R /**< */) -{ - return (uint16_t *) (R + 1); -} - -int -xcb_randr_get_crtc_gamma_red_length (const xcb_randr_get_crtc_gamma_reply_t *R /**< */) -{ - return R->size; -} - -xcb_generic_iterator_t -xcb_randr_get_crtc_gamma_red_end (const xcb_randr_get_crtc_gamma_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint16_t *) (R + 1)) + (R->size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint16_t * -xcb_randr_get_crtc_gamma_green (const xcb_randr_get_crtc_gamma_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_crtc_gamma_red_end(R); - return (uint16_t *) ((char *) prev.data + XCB_TYPE_PAD(uint16_t, prev.index) + 0); -} - -int -xcb_randr_get_crtc_gamma_green_length (const xcb_randr_get_crtc_gamma_reply_t *R /**< */) -{ - return R->size; -} - -xcb_generic_iterator_t -xcb_randr_get_crtc_gamma_green_end (const xcb_randr_get_crtc_gamma_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_crtc_gamma_red_end(R); - i.data = ((uint16_t *) child.data) + (R->size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint16_t * -xcb_randr_get_crtc_gamma_blue (const xcb_randr_get_crtc_gamma_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_crtc_gamma_green_end(R); - return (uint16_t *) ((char *) prev.data + XCB_TYPE_PAD(uint16_t, prev.index) + 0); -} - -int -xcb_randr_get_crtc_gamma_blue_length (const xcb_randr_get_crtc_gamma_reply_t *R /**< */) -{ - return R->size; -} - -xcb_generic_iterator_t -xcb_randr_get_crtc_gamma_blue_end (const xcb_randr_get_crtc_gamma_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_crtc_gamma_green_end(R); - i.data = ((uint16_t *) child.data) + (R->size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_get_crtc_gamma_reply_t * -xcb_randr_get_crtc_gamma_reply (xcb_connection_t *c /**< */, - xcb_randr_get_crtc_gamma_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_crtc_gamma_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_set_crtc_gamma_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_set_crtc_gamma_request_t *_aux = (xcb_randr_set_crtc_gamma_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_set_crtc_gamma_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* red */ - xcb_block_len += _aux->size * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* green */ - xcb_block_len += _aux->size * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* blue */ - xcb_block_len += _aux->size * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_randr_set_crtc_gamma_checked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - uint16_t size /**< */, - const uint16_t *red /**< */, - const uint16_t *green /**< */, - const uint16_t *blue /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 8, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_CRTC_GAMMA, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[10]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_crtc_gamma_request_t xcb_out; - - xcb_out.crtc = crtc; - xcb_out.size = size; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint16_t red */ - xcb_parts[4].iov_base = (char *) red; - xcb_parts[4].iov_len = size * sizeof(uint16_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* uint16_t green */ - xcb_parts[6].iov_base = (char *) green; - xcb_parts[6].iov_len = size * sizeof(uint16_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - /* uint16_t blue */ - xcb_parts[8].iov_base = (char *) blue; - xcb_parts[8].iov_len = size * sizeof(uint16_t); - xcb_parts[9].iov_base = 0; - xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_set_crtc_gamma (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - uint16_t size /**< */, - const uint16_t *red /**< */, - const uint16_t *green /**< */, - const uint16_t *blue /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 8, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_CRTC_GAMMA, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[10]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_crtc_gamma_request_t xcb_out; - - xcb_out.crtc = crtc; - xcb_out.size = size; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint16_t red */ - xcb_parts[4].iov_base = (char *) red; - xcb_parts[4].iov_len = size * sizeof(uint16_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* uint16_t green */ - xcb_parts[6].iov_base = (char *) green; - xcb_parts[6].iov_len = size * sizeof(uint16_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - /* uint16_t blue */ - xcb_parts[8].iov_base = (char *) blue; - xcb_parts[8].iov_len = size * sizeof(uint16_t); - xcb_parts[9].iov_base = 0; - xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_randr_get_screen_resources_current_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_get_screen_resources_current_reply_t *_aux = (xcb_randr_get_screen_resources_current_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_get_screen_resources_current_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* crtcs */ - xcb_block_len += _aux->num_crtcs * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_crtc_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* outputs */ - xcb_block_len += _aux->num_outputs * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_output_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* modes */ - xcb_block_len += _aux->num_modes * sizeof(xcb_randr_mode_info_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_mode_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* names */ - xcb_block_len += _aux->names_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_get_screen_resources_current_cookie_t -xcb_randr_get_screen_resources_current (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_SCREEN_RESOURCES_CURRENT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_screen_resources_current_cookie_t xcb_ret; - xcb_randr_get_screen_resources_current_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_screen_resources_current_cookie_t -xcb_randr_get_screen_resources_current_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_SCREEN_RESOURCES_CURRENT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_screen_resources_current_cookie_t xcb_ret; - xcb_randr_get_screen_resources_current_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_crtc_t * -xcb_randr_get_screen_resources_current_crtcs (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - return (xcb_randr_crtc_t *) (R + 1); -} - -int -xcb_randr_get_screen_resources_current_crtcs_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - return R->num_crtcs; -} - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_current_crtcs_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_randr_crtc_t *) (R + 1)) + (R->num_crtcs); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_output_t * -xcb_randr_get_screen_resources_current_outputs (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_screen_resources_current_crtcs_end(R); - return (xcb_randr_output_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_output_t, prev.index) + 0); -} - -int -xcb_randr_get_screen_resources_current_outputs_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - return R->num_outputs; -} - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_current_outputs_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_screen_resources_current_crtcs_end(R); - i.data = ((xcb_randr_output_t *) child.data) + (R->num_outputs); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_mode_info_t * -xcb_randr_get_screen_resources_current_modes (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_screen_resources_current_outputs_end(R); - return (xcb_randr_mode_info_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_mode_info_t, prev.index) + 0); -} - -int -xcb_randr_get_screen_resources_current_modes_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - return R->num_modes; -} - -xcb_randr_mode_info_iterator_t -xcb_randr_get_screen_resources_current_modes_iterator (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - xcb_randr_mode_info_iterator_t i; - xcb_generic_iterator_t prev = xcb_randr_get_screen_resources_current_outputs_end(R); - i.data = (xcb_randr_mode_info_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_mode_info_t, prev.index)); - i.rem = R->num_modes; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint8_t * -xcb_randr_get_screen_resources_current_names (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_mode_info_end(xcb_randr_get_screen_resources_current_modes_iterator(R)); - return (uint8_t *) ((char *) prev.data + XCB_TYPE_PAD(uint8_t, prev.index) + 0); -} - -int -xcb_randr_get_screen_resources_current_names_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - return R->names_len; -} - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_current_names_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_mode_info_end(xcb_randr_get_screen_resources_current_modes_iterator(R)); - i.data = ((uint8_t *) child.data) + (R->names_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_get_screen_resources_current_reply_t * -xcb_randr_get_screen_resources_current_reply (xcb_connection_t *c /**< */, - xcb_randr_get_screen_resources_current_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_screen_resources_current_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_set_crtc_transform_sizeof (const void *_buffer /**< */, - uint32_t filter_params_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_set_crtc_transform_request_t *_aux = (xcb_randr_set_crtc_transform_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_set_crtc_transform_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* filter_name */ - xcb_block_len += _aux->filter_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* filter_params */ - xcb_block_len += filter_params_len * sizeof(xcb_render_fixed_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_fixed_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_randr_set_crtc_transform_checked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_render_transform_t transform /**< */, - uint16_t filter_len /**< */, - const char *filter_name /**< */, - uint32_t filter_params_len /**< */, - const xcb_render_fixed_t *filter_params /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_CRTC_TRANSFORM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_crtc_transform_request_t xcb_out; - - xcb_out.crtc = crtc; - xcb_out.transform = transform; - xcb_out.filter_len = filter_len; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char filter_name */ - xcb_parts[4].iov_base = (char *) filter_name; - xcb_parts[4].iov_len = filter_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_fixed_t filter_params */ - xcb_parts[6].iov_base = (char *) filter_params; - xcb_parts[6].iov_len = filter_params_len * sizeof(xcb_render_fixed_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_set_crtc_transform (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_render_transform_t transform /**< */, - uint16_t filter_len /**< */, - const char *filter_name /**< */, - uint32_t filter_params_len /**< */, - const xcb_render_fixed_t *filter_params /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_CRTC_TRANSFORM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_crtc_transform_request_t xcb_out; - - xcb_out.crtc = crtc; - xcb_out.transform = transform; - xcb_out.filter_len = filter_len; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char filter_name */ - xcb_parts[4].iov_base = (char *) filter_name; - xcb_parts[4].iov_len = filter_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_fixed_t filter_params */ - xcb_parts[6].iov_base = (char *) filter_params; - xcb_parts[6].iov_len = filter_params_len * sizeof(xcb_render_fixed_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_randr_get_crtc_transform_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_get_crtc_transform_reply_t *_aux = (xcb_randr_get_crtc_transform_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_get_crtc_transform_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* pending_filter_name */ - xcb_block_len += _aux->pending_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* pending_params */ - xcb_block_len += _aux->pending_nparams * sizeof(xcb_render_fixed_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_fixed_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* current_filter_name */ - xcb_block_len += _aux->current_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* current_params */ - xcb_block_len += _aux->current_nparams * sizeof(xcb_render_fixed_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_fixed_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_get_crtc_transform_cookie_t -xcb_randr_get_crtc_transform (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_CRTC_TRANSFORM, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_crtc_transform_cookie_t xcb_ret; - xcb_randr_get_crtc_transform_request_t xcb_out; - - xcb_out.crtc = crtc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_crtc_transform_cookie_t -xcb_randr_get_crtc_transform_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_CRTC_TRANSFORM, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_crtc_transform_cookie_t xcb_ret; - xcb_randr_get_crtc_transform_request_t xcb_out; - - xcb_out.crtc = crtc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_randr_get_crtc_transform_pending_filter_name (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_randr_get_crtc_transform_pending_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - return R->pending_len; -} - -xcb_generic_iterator_t -xcb_randr_get_crtc_transform_pending_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->pending_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_render_fixed_t * -xcb_randr_get_crtc_transform_pending_params (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_crtc_transform_pending_filter_name_end(R); - return (xcb_render_fixed_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_render_fixed_t, prev.index) + 0); -} - -int -xcb_randr_get_crtc_transform_pending_params_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - return R->pending_nparams; -} - -xcb_generic_iterator_t -xcb_randr_get_crtc_transform_pending_params_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_crtc_transform_pending_filter_name_end(R); - i.data = ((xcb_render_fixed_t *) child.data) + (R->pending_nparams); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -char * -xcb_randr_get_crtc_transform_current_filter_name (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_crtc_transform_pending_params_end(R); - return (char *) ((char *) prev.data + XCB_TYPE_PAD(char, prev.index) + 0); -} - -int -xcb_randr_get_crtc_transform_current_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - return R->current_len; -} - -xcb_generic_iterator_t -xcb_randr_get_crtc_transform_current_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_crtc_transform_pending_params_end(R); - i.data = ((char *) child.data) + (R->current_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_render_fixed_t * -xcb_randr_get_crtc_transform_current_params (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_crtc_transform_current_filter_name_end(R); - return (xcb_render_fixed_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_render_fixed_t, prev.index) + 0); -} - -int -xcb_randr_get_crtc_transform_current_params_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - return R->current_nparams; -} - -xcb_generic_iterator_t -xcb_randr_get_crtc_transform_current_params_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_crtc_transform_current_filter_name_end(R); - i.data = ((xcb_render_fixed_t *) child.data) + (R->current_nparams); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_get_crtc_transform_reply_t * -xcb_randr_get_crtc_transform_reply (xcb_connection_t *c /**< */, - xcb_randr_get_crtc_transform_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_crtc_transform_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_randr_get_panning_cookie_t -xcb_randr_get_panning (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_PANNING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_panning_cookie_t xcb_ret; - xcb_randr_get_panning_request_t xcb_out; - - xcb_out.crtc = crtc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_panning_cookie_t -xcb_randr_get_panning_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_PANNING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_panning_cookie_t xcb_ret; - xcb_randr_get_panning_request_t xcb_out; - - xcb_out.crtc = crtc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_panning_reply_t * -xcb_randr_get_panning_reply (xcb_connection_t *c /**< */, - xcb_randr_get_panning_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_panning_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_randr_set_panning_cookie_t -xcb_randr_set_panning (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t timestamp /**< */, - uint16_t left /**< */, - uint16_t top /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t track_left /**< */, - uint16_t track_top /**< */, - uint16_t track_width /**< */, - uint16_t track_height /**< */, - int16_t border_left /**< */, - int16_t border_top /**< */, - int16_t border_right /**< */, - int16_t border_bottom /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_PANNING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_set_panning_cookie_t xcb_ret; - xcb_randr_set_panning_request_t xcb_out; - - xcb_out.crtc = crtc; - xcb_out.timestamp = timestamp; - xcb_out.left = left; - xcb_out.top = top; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.track_left = track_left; - xcb_out.track_top = track_top; - xcb_out.track_width = track_width; - xcb_out.track_height = track_height; - xcb_out.border_left = border_left; - xcb_out.border_top = border_top; - xcb_out.border_right = border_right; - xcb_out.border_bottom = border_bottom; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_set_panning_cookie_t -xcb_randr_set_panning_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t timestamp /**< */, - uint16_t left /**< */, - uint16_t top /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t track_left /**< */, - uint16_t track_top /**< */, - uint16_t track_width /**< */, - uint16_t track_height /**< */, - int16_t border_left /**< */, - int16_t border_top /**< */, - int16_t border_right /**< */, - int16_t border_bottom /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_PANNING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_set_panning_cookie_t xcb_ret; - xcb_randr_set_panning_request_t xcb_out; - - xcb_out.crtc = crtc; - xcb_out.timestamp = timestamp; - xcb_out.left = left; - xcb_out.top = top; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.track_left = track_left; - xcb_out.track_top = track_top; - xcb_out.track_width = track_width; - xcb_out.track_height = track_height; - xcb_out.border_left = border_left; - xcb_out.border_top = border_top; - xcb_out.border_right = border_right; - xcb_out.border_bottom = border_bottom; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_set_panning_reply_t * -xcb_randr_set_panning_reply (xcb_connection_t *c /**< */, - xcb_randr_set_panning_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_set_panning_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_randr_set_output_primary_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_randr_output_t output /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_OUTPUT_PRIMARY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_output_primary_request_t xcb_out; - - xcb_out.window = window; - xcb_out.output = output; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_set_output_primary (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_randr_output_t output /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_OUTPUT_PRIMARY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_output_primary_request_t xcb_out; - - xcb_out.window = window; - xcb_out.output = output; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_output_primary_cookie_t -xcb_randr_get_output_primary (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_OUTPUT_PRIMARY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_output_primary_cookie_t xcb_ret; - xcb_randr_get_output_primary_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_output_primary_cookie_t -xcb_randr_get_output_primary_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_OUTPUT_PRIMARY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_output_primary_cookie_t xcb_ret; - xcb_randr_get_output_primary_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_output_primary_reply_t * -xcb_randr_get_output_primary_reply (xcb_connection_t *c /**< */, - xcb_randr_get_output_primary_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_output_primary_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_get_providers_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_get_providers_reply_t *_aux = (xcb_randr_get_providers_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_get_providers_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* providers */ - xcb_block_len += _aux->num_providers * sizeof(xcb_randr_provider_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_provider_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_get_providers_cookie_t -xcb_randr_get_providers (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_PROVIDERS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_providers_cookie_t xcb_ret; - xcb_randr_get_providers_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_providers_cookie_t -xcb_randr_get_providers_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_PROVIDERS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_providers_cookie_t xcb_ret; - xcb_randr_get_providers_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_provider_t * -xcb_randr_get_providers_providers (const xcb_randr_get_providers_reply_t *R /**< */) -{ - return (xcb_randr_provider_t *) (R + 1); -} - -int -xcb_randr_get_providers_providers_length (const xcb_randr_get_providers_reply_t *R /**< */) -{ - return R->num_providers; -} - -xcb_generic_iterator_t -xcb_randr_get_providers_providers_end (const xcb_randr_get_providers_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_randr_provider_t *) (R + 1)) + (R->num_providers); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_get_providers_reply_t * -xcb_randr_get_providers_reply (xcb_connection_t *c /**< */, - xcb_randr_get_providers_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_providers_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_get_provider_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_get_provider_info_reply_t *_aux = (xcb_randr_get_provider_info_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_get_provider_info_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* crtcs */ - xcb_block_len += _aux->num_crtcs * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_crtc_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* outputs */ - xcb_block_len += _aux->num_outputs * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_output_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* associated_providers */ - xcb_block_len += _aux->num_associated_providers * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_randr_provider_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* associated_capability */ - xcb_block_len += _aux->num_associated_providers * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_get_provider_info_cookie_t -xcb_randr_get_provider_info (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_timestamp_t config_timestamp /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_PROVIDER_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_provider_info_cookie_t xcb_ret; - xcb_randr_get_provider_info_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.config_timestamp = config_timestamp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_provider_info_cookie_t -xcb_randr_get_provider_info_unchecked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_timestamp_t config_timestamp /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_PROVIDER_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_provider_info_cookie_t xcb_ret; - xcb_randr_get_provider_info_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.config_timestamp = config_timestamp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_crtc_t * -xcb_randr_get_provider_info_crtcs (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - return (xcb_randr_crtc_t *) (R + 1); -} - -int -xcb_randr_get_provider_info_crtcs_length (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - return R->num_crtcs; -} - -xcb_generic_iterator_t -xcb_randr_get_provider_info_crtcs_end (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_randr_crtc_t *) (R + 1)) + (R->num_crtcs); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_output_t * -xcb_randr_get_provider_info_outputs (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_provider_info_crtcs_end(R); - return (xcb_randr_output_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_output_t, prev.index) + 0); -} - -int -xcb_randr_get_provider_info_outputs_length (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - return R->num_outputs; -} - -xcb_generic_iterator_t -xcb_randr_get_provider_info_outputs_end (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_provider_info_crtcs_end(R); - i.data = ((xcb_randr_output_t *) child.data) + (R->num_outputs); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_provider_t * -xcb_randr_get_provider_info_associated_providers (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_provider_info_outputs_end(R); - return (xcb_randr_provider_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_provider_t, prev.index) + 0); -} - -int -xcb_randr_get_provider_info_associated_providers_length (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - return R->num_associated_providers; -} - -xcb_generic_iterator_t -xcb_randr_get_provider_info_associated_providers_end (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_provider_info_outputs_end(R); - i.data = ((xcb_randr_provider_t *) child.data) + (R->num_associated_providers); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint32_t * -xcb_randr_get_provider_info_associated_capability (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_provider_info_associated_providers_end(R); - return (uint32_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index) + 0); -} - -int -xcb_randr_get_provider_info_associated_capability_length (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - return R->num_associated_providers; -} - -xcb_generic_iterator_t -xcb_randr_get_provider_info_associated_capability_end (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_provider_info_associated_providers_end(R); - i.data = ((uint32_t *) child.data) + (R->num_associated_providers); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -char * -xcb_randr_get_provider_info_name (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_randr_get_provider_info_associated_capability_end(R); - return (char *) ((char *) prev.data + XCB_TYPE_PAD(char, prev.index) + 0); -} - -int -xcb_randr_get_provider_info_name_length (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - return R->name_len; -} - -xcb_generic_iterator_t -xcb_randr_get_provider_info_name_end (const xcb_randr_get_provider_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_randr_get_provider_info_associated_capability_end(R); - i.data = ((char *) child.data) + (R->name_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_get_provider_info_reply_t * -xcb_randr_get_provider_info_reply (xcb_connection_t *c /**< */, - xcb_randr_get_provider_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_provider_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_randr_set_provider_offload_sink_checked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_randr_provider_t sink_provider /**< */, - xcb_timestamp_t config_timestamp /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_PROVIDER_OFFLOAD_SINK, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_provider_offload_sink_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.sink_provider = sink_provider; - xcb_out.config_timestamp = config_timestamp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_set_provider_offload_sink (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_randr_provider_t sink_provider /**< */, - xcb_timestamp_t config_timestamp /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_PROVIDER_OFFLOAD_SINK, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_provider_offload_sink_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.sink_provider = sink_provider; - xcb_out.config_timestamp = config_timestamp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_set_provider_output_source_checked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_randr_provider_t source_provider /**< */, - xcb_timestamp_t config_timestamp /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_PROVIDER_OUTPUT_SOURCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_provider_output_source_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.source_provider = source_provider; - xcb_out.config_timestamp = config_timestamp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_set_provider_output_source (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_randr_provider_t source_provider /**< */, - xcb_timestamp_t config_timestamp /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_SET_PROVIDER_OUTPUT_SOURCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_set_provider_output_source_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.source_provider = source_provider; - xcb_out.config_timestamp = config_timestamp; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_randr_list_provider_properties_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_list_provider_properties_reply_t *_aux = (xcb_randr_list_provider_properties_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_list_provider_properties_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* atoms */ - xcb_block_len += _aux->num_atoms * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_list_provider_properties_cookie_t -xcb_randr_list_provider_properties (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_LIST_PROVIDER_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_list_provider_properties_cookie_t xcb_ret; - xcb_randr_list_provider_properties_request_t xcb_out; - - xcb_out.provider = provider; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_list_provider_properties_cookie_t -xcb_randr_list_provider_properties_unchecked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_LIST_PROVIDER_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_list_provider_properties_cookie_t xcb_ret; - xcb_randr_list_provider_properties_request_t xcb_out; - - xcb_out.provider = provider; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_atom_t * -xcb_randr_list_provider_properties_atoms (const xcb_randr_list_provider_properties_reply_t *R /**< */) -{ - return (xcb_atom_t *) (R + 1); -} - -int -xcb_randr_list_provider_properties_atoms_length (const xcb_randr_list_provider_properties_reply_t *R /**< */) -{ - return R->num_atoms; -} - -xcb_generic_iterator_t -xcb_randr_list_provider_properties_atoms_end (const xcb_randr_list_provider_properties_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_atom_t *) (R + 1)) + (R->num_atoms); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_list_provider_properties_reply_t * -xcb_randr_list_provider_properties_reply (xcb_connection_t *c /**< */, - xcb_randr_list_provider_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_list_provider_properties_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_query_provider_property_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_query_provider_property_reply_t *_aux = (xcb_randr_query_provider_property_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_query_provider_property_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* valid_values */ - xcb_block_len += _aux->length * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_query_provider_property_cookie_t -xcb_randr_query_provider_property (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_QUERY_PROVIDER_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_query_provider_property_cookie_t xcb_ret; - xcb_randr_query_provider_property_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_query_provider_property_cookie_t -xcb_randr_query_provider_property_unchecked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_QUERY_PROVIDER_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_query_provider_property_cookie_t xcb_ret; - xcb_randr_query_provider_property_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int32_t * -xcb_randr_query_provider_property_valid_values (const xcb_randr_query_provider_property_reply_t *R /**< */) -{ - return (int32_t *) (R + 1); -} - -int -xcb_randr_query_provider_property_valid_values_length (const xcb_randr_query_provider_property_reply_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_randr_query_provider_property_valid_values_end (const xcb_randr_query_provider_property_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((int32_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_query_provider_property_reply_t * -xcb_randr_query_provider_property_reply (xcb_connection_t *c /**< */, - xcb_randr_query_provider_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_query_provider_property_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_randr_configure_provider_property_sizeof (const void *_buffer /**< */, - uint32_t values_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_configure_provider_property_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* values */ - xcb_block_len += values_len * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_randr_configure_provider_property_checked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - uint8_t pending /**< */, - uint8_t range /**< */, - uint32_t values_len /**< */, - const int32_t *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_CONFIGURE_PROVIDER_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_randr_configure_provider_property_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.property = property; - xcb_out.pending = pending; - xcb_out.range = range; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* int32_t values */ - xcb_parts[4].iov_base = (char *) values; - xcb_parts[4].iov_len = values_len * sizeof(int32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_configure_provider_property (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - uint8_t pending /**< */, - uint8_t range /**< */, - uint32_t values_len /**< */, - const int32_t *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_CONFIGURE_PROVIDER_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_randr_configure_provider_property_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.property = property; - xcb_out.pending = pending; - xcb_out.range = range; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* int32_t values */ - xcb_parts[4].iov_base = (char *) values; - xcb_parts[4].iov_len = values_len * sizeof(int32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_randr_change_provider_property_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_change_provider_property_request_t *_aux = (xcb_randr_change_provider_property_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_change_provider_property_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->num_items * (_aux->format / 8)) * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_randr_change_provider_property_checked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const void *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_CHANGE_PROVIDER_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_randr_change_provider_property_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.format = format; - xcb_out.mode = mode; - memset(xcb_out.pad0, 0, 2); - xcb_out.num_items = num_items; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* void data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = (num_items * (format / 8)) * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_change_provider_property (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const void *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_CHANGE_PROVIDER_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_randr_change_provider_property_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.format = format; - xcb_out.mode = mode; - memset(xcb_out.pad0, 0, 2); - xcb_out.num_items = num_items; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* void data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = (num_items * (format / 8)) * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_delete_provider_property_checked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_DELETE_PROVIDER_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_delete_provider_property_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_randr_delete_provider_property (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_DELETE_PROVIDER_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_randr_delete_provider_property_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_randr_get_provider_property_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_randr_get_provider_property_reply_t *_aux = (xcb_randr_get_provider_property_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_randr_get_provider_property_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->num_items * (_aux->format / 8)) * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_randr_get_provider_property_cookie_t -xcb_randr_get_provider_property (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */, - uint8_t _delete /**< */, - uint8_t pending /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_PROVIDER_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_provider_property_cookie_t xcb_ret; - xcb_randr_get_provider_property_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.long_offset = long_offset; - xcb_out.long_length = long_length; - xcb_out._delete = _delete; - xcb_out.pending = pending; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_randr_get_provider_property_cookie_t -xcb_randr_get_provider_property_unchecked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */, - uint8_t _delete /**< */, - uint8_t pending /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_randr_id, - /* opcode */ XCB_RANDR_GET_PROVIDER_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_randr_get_provider_property_cookie_t xcb_ret; - xcb_randr_get_provider_property_request_t xcb_out; - - xcb_out.provider = provider; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.long_offset = long_offset; - xcb_out.long_length = long_length; - xcb_out._delete = _delete; - xcb_out.pending = pending; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void * -xcb_randr_get_provider_property_data (const xcb_randr_get_provider_property_reply_t *R /**< */) -{ - return (void *) (R + 1); -} - -int -xcb_randr_get_provider_property_data_length (const xcb_randr_get_provider_property_reply_t *R /**< */) -{ - return (R->num_items * (R->format / 8)); -} - -xcb_generic_iterator_t -xcb_randr_get_provider_property_data_end (const xcb_randr_get_provider_property_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + ((R->num_items * (R->format / 8))); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_randr_get_provider_property_reply_t * -xcb_randr_get_provider_property_reply (xcb_connection_t *c /**< */, - xcb_randr_get_provider_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_randr_get_provider_property_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -void -xcb_randr_crtc_change_next (xcb_randr_crtc_change_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_crtc_change_t); -} - -xcb_generic_iterator_t -xcb_randr_crtc_change_end (xcb_randr_crtc_change_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_randr_output_change_next (xcb_randr_output_change_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_output_change_t); -} - -xcb_generic_iterator_t -xcb_randr_output_change_end (xcb_randr_output_change_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_randr_output_property_next (xcb_randr_output_property_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_output_property_t); -} - -xcb_generic_iterator_t -xcb_randr_output_property_end (xcb_randr_output_property_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_randr_provider_change_next (xcb_randr_provider_change_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_provider_change_t); -} - -xcb_generic_iterator_t -xcb_randr_provider_change_end (xcb_randr_provider_change_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_randr_provider_property_next (xcb_randr_provider_property_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_provider_property_t); -} - -xcb_generic_iterator_t -xcb_randr_provider_property_end (xcb_randr_provider_property_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_randr_resource_change_next (xcb_randr_resource_change_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_resource_change_t); -} - -xcb_generic_iterator_t -xcb_randr_resource_change_end (xcb_randr_resource_change_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_randr_notify_data_next (xcb_randr_notify_data_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_randr_notify_data_t); -} - -xcb_generic_iterator_t -xcb_randr_notify_data_end (xcb_randr_notify_data_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - diff --git a/external/mit/xorg/lib/libxcb/files/randr.h b/external/mit/xorg/lib/libxcb/files/randr.h deleted file mode 100644 index 654624cfb..000000000 --- a/external/mit/xorg/lib/libxcb/files/randr.h +++ /dev/null @@ -1,4022 +0,0 @@ -/* - * This file generated automatically from randr.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_RandR_API XCB RandR API - * @brief RandR XCB Protocol Implementation. - * @{ - **/ - -#ifndef __RANDR_H -#define __RANDR_H - -#include "xcb.h" -#include "xproto.h" -#include "render.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_RANDR_MAJOR_VERSION 1 -#define XCB_RANDR_MINOR_VERSION 4 - -extern xcb_extension_t xcb_randr_id; - -typedef uint32_t xcb_randr_mode_t; - -/** - * @brief xcb_randr_mode_iterator_t - **/ -typedef struct xcb_randr_mode_iterator_t { - xcb_randr_mode_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_mode_iterator_t; - -typedef uint32_t xcb_randr_crtc_t; - -/** - * @brief xcb_randr_crtc_iterator_t - **/ -typedef struct xcb_randr_crtc_iterator_t { - xcb_randr_crtc_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_crtc_iterator_t; - -typedef uint32_t xcb_randr_output_t; - -/** - * @brief xcb_randr_output_iterator_t - **/ -typedef struct xcb_randr_output_iterator_t { - xcb_randr_output_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_output_iterator_t; - -typedef uint32_t xcb_randr_provider_t; - -/** - * @brief xcb_randr_provider_iterator_t - **/ -typedef struct xcb_randr_provider_iterator_t { - xcb_randr_provider_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_provider_iterator_t; - -/** Opcode for xcb_randr_bad_output. */ -#define XCB_RANDR_BAD_OUTPUT 0 - -/** - * @brief xcb_randr_bad_output_error_t - **/ -typedef struct xcb_randr_bad_output_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_randr_bad_output_error_t; - -/** Opcode for xcb_randr_bad_crtc. */ -#define XCB_RANDR_BAD_CRTC 1 - -/** - * @brief xcb_randr_bad_crtc_error_t - **/ -typedef struct xcb_randr_bad_crtc_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_randr_bad_crtc_error_t; - -/** Opcode for xcb_randr_bad_mode. */ -#define XCB_RANDR_BAD_MODE 2 - -/** - * @brief xcb_randr_bad_mode_error_t - **/ -typedef struct xcb_randr_bad_mode_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_randr_bad_mode_error_t; - -/** Opcode for xcb_randr_bad_provider. */ -#define XCB_RANDR_BAD_PROVIDER 3 - -/** - * @brief xcb_randr_bad_provider_error_t - **/ -typedef struct xcb_randr_bad_provider_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_randr_bad_provider_error_t; - -typedef enum xcb_randr_rotation_t { - XCB_RANDR_ROTATION_ROTATE_0 = 1, - XCB_RANDR_ROTATION_ROTATE_90 = 2, - XCB_RANDR_ROTATION_ROTATE_180 = 4, - XCB_RANDR_ROTATION_ROTATE_270 = 8, - XCB_RANDR_ROTATION_REFLECT_X = 16, - XCB_RANDR_ROTATION_REFLECT_Y = 32 -} xcb_randr_rotation_t; - -/** - * @brief xcb_randr_screen_size_t - **/ -typedef struct xcb_randr_screen_size_t { - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t mwidth; /**< */ - uint16_t mheight; /**< */ -} xcb_randr_screen_size_t; - -/** - * @brief xcb_randr_screen_size_iterator_t - **/ -typedef struct xcb_randr_screen_size_iterator_t { - xcb_randr_screen_size_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_screen_size_iterator_t; - -/** - * @brief xcb_randr_refresh_rates_t - **/ -typedef struct xcb_randr_refresh_rates_t { - uint16_t nRates; /**< */ -} xcb_randr_refresh_rates_t; - -/** - * @brief xcb_randr_refresh_rates_iterator_t - **/ -typedef struct xcb_randr_refresh_rates_iterator_t { - xcb_randr_refresh_rates_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_refresh_rates_iterator_t; - -/** - * @brief xcb_randr_query_version_cookie_t - **/ -typedef struct xcb_randr_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_query_version_cookie_t; - -/** Opcode for xcb_randr_query_version. */ -#define XCB_RANDR_QUERY_VERSION 0 - -/** - * @brief xcb_randr_query_version_request_t - **/ -typedef struct xcb_randr_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ -} xcb_randr_query_version_request_t; - -/** - * @brief xcb_randr_query_version_reply_t - **/ -typedef struct xcb_randr_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_randr_query_version_reply_t; - -typedef enum xcb_randr_set_config_t { - XCB_RANDR_SET_CONFIG_SUCCESS = 0, - XCB_RANDR_SET_CONFIG_INVALID_CONFIG_TIME = 1, - XCB_RANDR_SET_CONFIG_INVALID_TIME = 2, - XCB_RANDR_SET_CONFIG_FAILED = 3 -} xcb_randr_set_config_t; - -/** - * @brief xcb_randr_set_screen_config_cookie_t - **/ -typedef struct xcb_randr_set_screen_config_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_set_screen_config_cookie_t; - -/** Opcode for xcb_randr_set_screen_config. */ -#define XCB_RANDR_SET_SCREEN_CONFIG 2 - -/** - * @brief xcb_randr_set_screen_config_request_t - **/ -typedef struct xcb_randr_set_screen_config_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_timestamp_t timestamp; /**< */ - xcb_timestamp_t config_timestamp; /**< */ - uint16_t sizeID; /**< */ - uint16_t rotation; /**< */ - uint16_t rate; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_randr_set_screen_config_request_t; - -/** - * @brief xcb_randr_set_screen_config_reply_t - **/ -typedef struct xcb_randr_set_screen_config_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_timestamp_t new_timestamp; /**< */ - xcb_timestamp_t config_timestamp; /**< */ - xcb_window_t root; /**< */ - uint16_t subpixel_order; /**< */ - uint8_t pad0[10]; /**< */ -} xcb_randr_set_screen_config_reply_t; - -typedef enum xcb_randr_notify_mask_t { - XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE = 1, - XCB_RANDR_NOTIFY_MASK_CRTC_CHANGE = 2, - XCB_RANDR_NOTIFY_MASK_OUTPUT_CHANGE = 4, - XCB_RANDR_NOTIFY_MASK_OUTPUT_PROPERTY = 8, - XCB_RANDR_NOTIFY_MASK_PROVIDER_CHANGE = 16, - XCB_RANDR_NOTIFY_MASK_PROVIDER_PROPERTY = 32, - XCB_RANDR_NOTIFY_MASK_RESOURCE_CHANGE = 64 -} xcb_randr_notify_mask_t; - -/** Opcode for xcb_randr_select_input. */ -#define XCB_RANDR_SELECT_INPUT 4 - -/** - * @brief xcb_randr_select_input_request_t - **/ -typedef struct xcb_randr_select_input_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint16_t enable; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_randr_select_input_request_t; - -/** - * @brief xcb_randr_get_screen_info_cookie_t - **/ -typedef struct xcb_randr_get_screen_info_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_screen_info_cookie_t; - -/** Opcode for xcb_randr_get_screen_info. */ -#define XCB_RANDR_GET_SCREEN_INFO 5 - -/** - * @brief xcb_randr_get_screen_info_request_t - **/ -typedef struct xcb_randr_get_screen_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_randr_get_screen_info_request_t; - -/** - * @brief xcb_randr_get_screen_info_reply_t - **/ -typedef struct xcb_randr_get_screen_info_reply_t { - uint8_t response_type; /**< */ - uint8_t rotations; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t root; /**< */ - xcb_timestamp_t timestamp; /**< */ - xcb_timestamp_t config_timestamp; /**< */ - uint16_t nSizes; /**< */ - uint16_t sizeID; /**< */ - uint16_t rotation; /**< */ - uint16_t rate; /**< */ - uint16_t nInfo; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_randr_get_screen_info_reply_t; - -/** - * @brief xcb_randr_get_screen_size_range_cookie_t - **/ -typedef struct xcb_randr_get_screen_size_range_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_screen_size_range_cookie_t; - -/** Opcode for xcb_randr_get_screen_size_range. */ -#define XCB_RANDR_GET_SCREEN_SIZE_RANGE 6 - -/** - * @brief xcb_randr_get_screen_size_range_request_t - **/ -typedef struct xcb_randr_get_screen_size_range_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_randr_get_screen_size_range_request_t; - -/** - * @brief xcb_randr_get_screen_size_range_reply_t - **/ -typedef struct xcb_randr_get_screen_size_range_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t min_width; /**< */ - uint16_t min_height; /**< */ - uint16_t max_width; /**< */ - uint16_t max_height; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_randr_get_screen_size_range_reply_t; - -/** Opcode for xcb_randr_set_screen_size. */ -#define XCB_RANDR_SET_SCREEN_SIZE 7 - -/** - * @brief xcb_randr_set_screen_size_request_t - **/ -typedef struct xcb_randr_set_screen_size_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint32_t mm_width; /**< */ - uint32_t mm_height; /**< */ -} xcb_randr_set_screen_size_request_t; - -typedef enum xcb_randr_mode_flag_t { - XCB_RANDR_MODE_FLAG_HSYNC_POSITIVE = 1, - XCB_RANDR_MODE_FLAG_HSYNC_NEGATIVE = 2, - XCB_RANDR_MODE_FLAG_VSYNC_POSITIVE = 4, - XCB_RANDR_MODE_FLAG_VSYNC_NEGATIVE = 8, - XCB_RANDR_MODE_FLAG_INTERLACE = 16, - XCB_RANDR_MODE_FLAG_DOUBLE_SCAN = 32, - XCB_RANDR_MODE_FLAG_CSYNC = 64, - XCB_RANDR_MODE_FLAG_CSYNC_POSITIVE = 128, - XCB_RANDR_MODE_FLAG_CSYNC_NEGATIVE = 256, - XCB_RANDR_MODE_FLAG_HSKEW_PRESENT = 512, - XCB_RANDR_MODE_FLAG_BCAST = 1024, - XCB_RANDR_MODE_FLAG_PIXEL_MULTIPLEX = 2048, - XCB_RANDR_MODE_FLAG_DOUBLE_CLOCK = 4096, - XCB_RANDR_MODE_FLAG_HALVE_CLOCK = 8192 -} xcb_randr_mode_flag_t; - -/** - * @brief xcb_randr_mode_info_t - **/ -typedef struct xcb_randr_mode_info_t { - uint32_t id; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint32_t dot_clock; /**< */ - uint16_t hsync_start; /**< */ - uint16_t hsync_end; /**< */ - uint16_t htotal; /**< */ - uint16_t hskew; /**< */ - uint16_t vsync_start; /**< */ - uint16_t vsync_end; /**< */ - uint16_t vtotal; /**< */ - uint16_t name_len; /**< */ - uint32_t mode_flags; /**< */ -} xcb_randr_mode_info_t; - -/** - * @brief xcb_randr_mode_info_iterator_t - **/ -typedef struct xcb_randr_mode_info_iterator_t { - xcb_randr_mode_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_mode_info_iterator_t; - -/** - * @brief xcb_randr_get_screen_resources_cookie_t - **/ -typedef struct xcb_randr_get_screen_resources_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_screen_resources_cookie_t; - -/** Opcode for xcb_randr_get_screen_resources. */ -#define XCB_RANDR_GET_SCREEN_RESOURCES 8 - -/** - * @brief xcb_randr_get_screen_resources_request_t - **/ -typedef struct xcb_randr_get_screen_resources_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_randr_get_screen_resources_request_t; - -/** - * @brief xcb_randr_get_screen_resources_reply_t - **/ -typedef struct xcb_randr_get_screen_resources_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_timestamp_t timestamp; /**< */ - xcb_timestamp_t config_timestamp; /**< */ - uint16_t num_crtcs; /**< */ - uint16_t num_outputs; /**< */ - uint16_t num_modes; /**< */ - uint16_t names_len; /**< */ - uint8_t pad1[8]; /**< */ -} xcb_randr_get_screen_resources_reply_t; - -typedef enum xcb_randr_connection_t { - XCB_RANDR_CONNECTION_CONNECTED = 0, - XCB_RANDR_CONNECTION_DISCONNECTED = 1, - XCB_RANDR_CONNECTION_UNKNOWN = 2 -} xcb_randr_connection_t; - -/** - * @brief xcb_randr_get_output_info_cookie_t - **/ -typedef struct xcb_randr_get_output_info_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_output_info_cookie_t; - -/** Opcode for xcb_randr_get_output_info. */ -#define XCB_RANDR_GET_OUTPUT_INFO 9 - -/** - * @brief xcb_randr_get_output_info_request_t - **/ -typedef struct xcb_randr_get_output_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_output_t output; /**< */ - xcb_timestamp_t config_timestamp; /**< */ -} xcb_randr_get_output_info_request_t; - -/** - * @brief xcb_randr_get_output_info_reply_t - **/ -typedef struct xcb_randr_get_output_info_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_timestamp_t timestamp; /**< */ - xcb_randr_crtc_t crtc; /**< */ - uint32_t mm_width; /**< */ - uint32_t mm_height; /**< */ - uint8_t connection; /**< */ - uint8_t subpixel_order; /**< */ - uint16_t num_crtcs; /**< */ - uint16_t num_modes; /**< */ - uint16_t num_preferred; /**< */ - uint16_t num_clones; /**< */ - uint16_t name_len; /**< */ -} xcb_randr_get_output_info_reply_t; - -/** - * @brief xcb_randr_list_output_properties_cookie_t - **/ -typedef struct xcb_randr_list_output_properties_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_list_output_properties_cookie_t; - -/** Opcode for xcb_randr_list_output_properties. */ -#define XCB_RANDR_LIST_OUTPUT_PROPERTIES 10 - -/** - * @brief xcb_randr_list_output_properties_request_t - **/ -typedef struct xcb_randr_list_output_properties_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_output_t output; /**< */ -} xcb_randr_list_output_properties_request_t; - -/** - * @brief xcb_randr_list_output_properties_reply_t - **/ -typedef struct xcb_randr_list_output_properties_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_atoms; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_randr_list_output_properties_reply_t; - -/** - * @brief xcb_randr_query_output_property_cookie_t - **/ -typedef struct xcb_randr_query_output_property_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_query_output_property_cookie_t; - -/** Opcode for xcb_randr_query_output_property. */ -#define XCB_RANDR_QUERY_OUTPUT_PROPERTY 11 - -/** - * @brief xcb_randr_query_output_property_request_t - **/ -typedef struct xcb_randr_query_output_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_output_t output; /**< */ - xcb_atom_t property; /**< */ -} xcb_randr_query_output_property_request_t; - -/** - * @brief xcb_randr_query_output_property_reply_t - **/ -typedef struct xcb_randr_query_output_property_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pending; /**< */ - uint8_t range; /**< */ - uint8_t immutable; /**< */ - uint8_t pad1[21]; /**< */ -} xcb_randr_query_output_property_reply_t; - -/** Opcode for xcb_randr_configure_output_property. */ -#define XCB_RANDR_CONFIGURE_OUTPUT_PROPERTY 12 - -/** - * @brief xcb_randr_configure_output_property_request_t - **/ -typedef struct xcb_randr_configure_output_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_output_t output; /**< */ - xcb_atom_t property; /**< */ - uint8_t pending; /**< */ - uint8_t range; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_randr_configure_output_property_request_t; - -/** Opcode for xcb_randr_change_output_property. */ -#define XCB_RANDR_CHANGE_OUTPUT_PROPERTY 13 - -/** - * @brief xcb_randr_change_output_property_request_t - **/ -typedef struct xcb_randr_change_output_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_output_t output; /**< */ - xcb_atom_t property; /**< */ - xcb_atom_t type; /**< */ - uint8_t format; /**< */ - uint8_t mode; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t num_units; /**< */ -} xcb_randr_change_output_property_request_t; - -/** Opcode for xcb_randr_delete_output_property. */ -#define XCB_RANDR_DELETE_OUTPUT_PROPERTY 14 - -/** - * @brief xcb_randr_delete_output_property_request_t - **/ -typedef struct xcb_randr_delete_output_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_output_t output; /**< */ - xcb_atom_t property; /**< */ -} xcb_randr_delete_output_property_request_t; - -/** - * @brief xcb_randr_get_output_property_cookie_t - **/ -typedef struct xcb_randr_get_output_property_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_output_property_cookie_t; - -/** Opcode for xcb_randr_get_output_property. */ -#define XCB_RANDR_GET_OUTPUT_PROPERTY 15 - -/** - * @brief xcb_randr_get_output_property_request_t - **/ -typedef struct xcb_randr_get_output_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_output_t output; /**< */ - xcb_atom_t property; /**< */ - xcb_atom_t type; /**< */ - uint32_t long_offset; /**< */ - uint32_t long_length; /**< */ - uint8_t _delete; /**< */ - uint8_t pending; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_randr_get_output_property_request_t; - -/** - * @brief xcb_randr_get_output_property_reply_t - **/ -typedef struct xcb_randr_get_output_property_reply_t { - uint8_t response_type; /**< */ - uint8_t format; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_atom_t type; /**< */ - uint32_t bytes_after; /**< */ - uint32_t num_items; /**< */ - uint8_t pad0[12]; /**< */ -} xcb_randr_get_output_property_reply_t; - -/** - * @brief xcb_randr_create_mode_cookie_t - **/ -typedef struct xcb_randr_create_mode_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_create_mode_cookie_t; - -/** Opcode for xcb_randr_create_mode. */ -#define XCB_RANDR_CREATE_MODE 16 - -/** - * @brief xcb_randr_create_mode_request_t - **/ -typedef struct xcb_randr_create_mode_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_randr_mode_info_t mode_info; /**< */ -} xcb_randr_create_mode_request_t; - -/** - * @brief xcb_randr_create_mode_reply_t - **/ -typedef struct xcb_randr_create_mode_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_randr_mode_t mode; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_randr_create_mode_reply_t; - -/** Opcode for xcb_randr_destroy_mode. */ -#define XCB_RANDR_DESTROY_MODE 17 - -/** - * @brief xcb_randr_destroy_mode_request_t - **/ -typedef struct xcb_randr_destroy_mode_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_mode_t mode; /**< */ -} xcb_randr_destroy_mode_request_t; - -/** Opcode for xcb_randr_add_output_mode. */ -#define XCB_RANDR_ADD_OUTPUT_MODE 18 - -/** - * @brief xcb_randr_add_output_mode_request_t - **/ -typedef struct xcb_randr_add_output_mode_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_output_t output; /**< */ - xcb_randr_mode_t mode; /**< */ -} xcb_randr_add_output_mode_request_t; - -/** Opcode for xcb_randr_delete_output_mode. */ -#define XCB_RANDR_DELETE_OUTPUT_MODE 19 - -/** - * @brief xcb_randr_delete_output_mode_request_t - **/ -typedef struct xcb_randr_delete_output_mode_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_output_t output; /**< */ - xcb_randr_mode_t mode; /**< */ -} xcb_randr_delete_output_mode_request_t; - -/** - * @brief xcb_randr_get_crtc_info_cookie_t - **/ -typedef struct xcb_randr_get_crtc_info_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_crtc_info_cookie_t; - -/** Opcode for xcb_randr_get_crtc_info. */ -#define XCB_RANDR_GET_CRTC_INFO 20 - -/** - * @brief xcb_randr_get_crtc_info_request_t - **/ -typedef struct xcb_randr_get_crtc_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_crtc_t crtc; /**< */ - xcb_timestamp_t config_timestamp; /**< */ -} xcb_randr_get_crtc_info_request_t; - -/** - * @brief xcb_randr_get_crtc_info_reply_t - **/ -typedef struct xcb_randr_get_crtc_info_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_timestamp_t timestamp; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - xcb_randr_mode_t mode; /**< */ - uint16_t rotation; /**< */ - uint16_t rotations; /**< */ - uint16_t num_outputs; /**< */ - uint16_t num_possible_outputs; /**< */ -} xcb_randr_get_crtc_info_reply_t; - -/** - * @brief xcb_randr_set_crtc_config_cookie_t - **/ -typedef struct xcb_randr_set_crtc_config_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_set_crtc_config_cookie_t; - -/** Opcode for xcb_randr_set_crtc_config. */ -#define XCB_RANDR_SET_CRTC_CONFIG 21 - -/** - * @brief xcb_randr_set_crtc_config_request_t - **/ -typedef struct xcb_randr_set_crtc_config_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_crtc_t crtc; /**< */ - xcb_timestamp_t timestamp; /**< */ - xcb_timestamp_t config_timestamp; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - xcb_randr_mode_t mode; /**< */ - uint16_t rotation; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_randr_set_crtc_config_request_t; - -/** - * @brief xcb_randr_set_crtc_config_reply_t - **/ -typedef struct xcb_randr_set_crtc_config_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_timestamp_t timestamp; /**< */ - uint8_t pad0[20]; /**< */ -} xcb_randr_set_crtc_config_reply_t; - -/** - * @brief xcb_randr_get_crtc_gamma_size_cookie_t - **/ -typedef struct xcb_randr_get_crtc_gamma_size_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_crtc_gamma_size_cookie_t; - -/** Opcode for xcb_randr_get_crtc_gamma_size. */ -#define XCB_RANDR_GET_CRTC_GAMMA_SIZE 22 - -/** - * @brief xcb_randr_get_crtc_gamma_size_request_t - **/ -typedef struct xcb_randr_get_crtc_gamma_size_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_crtc_t crtc; /**< */ -} xcb_randr_get_crtc_gamma_size_request_t; - -/** - * @brief xcb_randr_get_crtc_gamma_size_reply_t - **/ -typedef struct xcb_randr_get_crtc_gamma_size_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t size; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_randr_get_crtc_gamma_size_reply_t; - -/** - * @brief xcb_randr_get_crtc_gamma_cookie_t - **/ -typedef struct xcb_randr_get_crtc_gamma_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_crtc_gamma_cookie_t; - -/** Opcode for xcb_randr_get_crtc_gamma. */ -#define XCB_RANDR_GET_CRTC_GAMMA 23 - -/** - * @brief xcb_randr_get_crtc_gamma_request_t - **/ -typedef struct xcb_randr_get_crtc_gamma_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_crtc_t crtc; /**< */ -} xcb_randr_get_crtc_gamma_request_t; - -/** - * @brief xcb_randr_get_crtc_gamma_reply_t - **/ -typedef struct xcb_randr_get_crtc_gamma_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t size; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_randr_get_crtc_gamma_reply_t; - -/** Opcode for xcb_randr_set_crtc_gamma. */ -#define XCB_RANDR_SET_CRTC_GAMMA 24 - -/** - * @brief xcb_randr_set_crtc_gamma_request_t - **/ -typedef struct xcb_randr_set_crtc_gamma_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_crtc_t crtc; /**< */ - uint16_t size; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_randr_set_crtc_gamma_request_t; - -/** - * @brief xcb_randr_get_screen_resources_current_cookie_t - **/ -typedef struct xcb_randr_get_screen_resources_current_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_screen_resources_current_cookie_t; - -/** Opcode for xcb_randr_get_screen_resources_current. */ -#define XCB_RANDR_GET_SCREEN_RESOURCES_CURRENT 25 - -/** - * @brief xcb_randr_get_screen_resources_current_request_t - **/ -typedef struct xcb_randr_get_screen_resources_current_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_randr_get_screen_resources_current_request_t; - -/** - * @brief xcb_randr_get_screen_resources_current_reply_t - **/ -typedef struct xcb_randr_get_screen_resources_current_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_timestamp_t timestamp; /**< */ - xcb_timestamp_t config_timestamp; /**< */ - uint16_t num_crtcs; /**< */ - uint16_t num_outputs; /**< */ - uint16_t num_modes; /**< */ - uint16_t names_len; /**< */ - uint8_t pad1[8]; /**< */ -} xcb_randr_get_screen_resources_current_reply_t; - -typedef enum xcb_randr_transform_t { - XCB_RANDR_TRANSFORM_UNIT = 1, - XCB_RANDR_TRANSFORM_SCALE_UP = 2, - XCB_RANDR_TRANSFORM_SCALE_DOWN = 4, - XCB_RANDR_TRANSFORM_PROJECTIVE = 8 -} xcb_randr_transform_t; - -/** Opcode for xcb_randr_set_crtc_transform. */ -#define XCB_RANDR_SET_CRTC_TRANSFORM 26 - -/** - * @brief xcb_randr_set_crtc_transform_request_t - **/ -typedef struct xcb_randr_set_crtc_transform_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_crtc_t crtc; /**< */ - xcb_render_transform_t transform; /**< */ - uint16_t filter_len; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_randr_set_crtc_transform_request_t; - -/** - * @brief xcb_randr_get_crtc_transform_cookie_t - **/ -typedef struct xcb_randr_get_crtc_transform_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_crtc_transform_cookie_t; - -/** Opcode for xcb_randr_get_crtc_transform. */ -#define XCB_RANDR_GET_CRTC_TRANSFORM 27 - -/** - * @brief xcb_randr_get_crtc_transform_request_t - **/ -typedef struct xcb_randr_get_crtc_transform_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_crtc_t crtc; /**< */ -} xcb_randr_get_crtc_transform_request_t; - -/** - * @brief xcb_randr_get_crtc_transform_reply_t - **/ -typedef struct xcb_randr_get_crtc_transform_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_render_transform_t pending_transform; /**< */ - uint8_t has_transforms; /**< */ - uint8_t pad1[3]; /**< */ - xcb_render_transform_t current_transform; /**< */ - uint8_t pad2[4]; /**< */ - uint16_t pending_len; /**< */ - uint16_t pending_nparams; /**< */ - uint16_t current_len; /**< */ - uint16_t current_nparams; /**< */ -} xcb_randr_get_crtc_transform_reply_t; - -/** - * @brief xcb_randr_get_panning_cookie_t - **/ -typedef struct xcb_randr_get_panning_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_panning_cookie_t; - -/** Opcode for xcb_randr_get_panning. */ -#define XCB_RANDR_GET_PANNING 28 - -/** - * @brief xcb_randr_get_panning_request_t - **/ -typedef struct xcb_randr_get_panning_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_crtc_t crtc; /**< */ -} xcb_randr_get_panning_request_t; - -/** - * @brief xcb_randr_get_panning_reply_t - **/ -typedef struct xcb_randr_get_panning_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_timestamp_t timestamp; /**< */ - uint16_t left; /**< */ - uint16_t top; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t track_left; /**< */ - uint16_t track_top; /**< */ - uint16_t track_width; /**< */ - uint16_t track_height; /**< */ - int16_t border_left; /**< */ - int16_t border_top; /**< */ - int16_t border_right; /**< */ - int16_t border_bottom; /**< */ -} xcb_randr_get_panning_reply_t; - -/** - * @brief xcb_randr_set_panning_cookie_t - **/ -typedef struct xcb_randr_set_panning_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_set_panning_cookie_t; - -/** Opcode for xcb_randr_set_panning. */ -#define XCB_RANDR_SET_PANNING 29 - -/** - * @brief xcb_randr_set_panning_request_t - **/ -typedef struct xcb_randr_set_panning_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_crtc_t crtc; /**< */ - xcb_timestamp_t timestamp; /**< */ - uint16_t left; /**< */ - uint16_t top; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t track_left; /**< */ - uint16_t track_top; /**< */ - uint16_t track_width; /**< */ - uint16_t track_height; /**< */ - int16_t border_left; /**< */ - int16_t border_top; /**< */ - int16_t border_right; /**< */ - int16_t border_bottom; /**< */ -} xcb_randr_set_panning_request_t; - -/** - * @brief xcb_randr_set_panning_reply_t - **/ -typedef struct xcb_randr_set_panning_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_timestamp_t timestamp; /**< */ -} xcb_randr_set_panning_reply_t; - -/** Opcode for xcb_randr_set_output_primary. */ -#define XCB_RANDR_SET_OUTPUT_PRIMARY 30 - -/** - * @brief xcb_randr_set_output_primary_request_t - **/ -typedef struct xcb_randr_set_output_primary_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_randr_output_t output; /**< */ -} xcb_randr_set_output_primary_request_t; - -/** - * @brief xcb_randr_get_output_primary_cookie_t - **/ -typedef struct xcb_randr_get_output_primary_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_output_primary_cookie_t; - -/** Opcode for xcb_randr_get_output_primary. */ -#define XCB_RANDR_GET_OUTPUT_PRIMARY 31 - -/** - * @brief xcb_randr_get_output_primary_request_t - **/ -typedef struct xcb_randr_get_output_primary_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_randr_get_output_primary_request_t; - -/** - * @brief xcb_randr_get_output_primary_reply_t - **/ -typedef struct xcb_randr_get_output_primary_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_randr_output_t output; /**< */ -} xcb_randr_get_output_primary_reply_t; - -/** - * @brief xcb_randr_get_providers_cookie_t - **/ -typedef struct xcb_randr_get_providers_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_providers_cookie_t; - -/** Opcode for xcb_randr_get_providers. */ -#define XCB_RANDR_GET_PROVIDERS 32 - -/** - * @brief xcb_randr_get_providers_request_t - **/ -typedef struct xcb_randr_get_providers_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_randr_get_providers_request_t; - -/** - * @brief xcb_randr_get_providers_reply_t - **/ -typedef struct xcb_randr_get_providers_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_timestamp_t timestamp; /**< */ - uint16_t num_providers; /**< */ - uint8_t pad1[18]; /**< */ -} xcb_randr_get_providers_reply_t; - -typedef enum xcb_randr_provider_capability_t { - XCB_RANDR_PROVIDER_CAPABILITY_SOURCE_OUTPUT = 1, - XCB_RANDR_PROVIDER_CAPABILITY_SINK_OUTPUT = 2, - XCB_RANDR_PROVIDER_CAPABILITY_SOURCE_OFFLOAD = 4, - XCB_RANDR_PROVIDER_CAPABILITY_SINK_OFFLOAD = 8 -} xcb_randr_provider_capability_t; - -/** - * @brief xcb_randr_get_provider_info_cookie_t - **/ -typedef struct xcb_randr_get_provider_info_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_provider_info_cookie_t; - -/** Opcode for xcb_randr_get_provider_info. */ -#define XCB_RANDR_GET_PROVIDER_INFO 33 - -/** - * @brief xcb_randr_get_provider_info_request_t - **/ -typedef struct xcb_randr_get_provider_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_provider_t provider; /**< */ - xcb_timestamp_t config_timestamp; /**< */ -} xcb_randr_get_provider_info_request_t; - -/** - * @brief xcb_randr_get_provider_info_reply_t - **/ -typedef struct xcb_randr_get_provider_info_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_timestamp_t timestamp; /**< */ - uint32_t capabilities; /**< */ - uint16_t num_crtcs; /**< */ - uint16_t num_outputs; /**< */ - uint16_t num_associated_providers; /**< */ - uint16_t name_len; /**< */ - uint8_t pad0[8]; /**< */ -} xcb_randr_get_provider_info_reply_t; - -/** Opcode for xcb_randr_set_provider_offload_sink. */ -#define XCB_RANDR_SET_PROVIDER_OFFLOAD_SINK 34 - -/** - * @brief xcb_randr_set_provider_offload_sink_request_t - **/ -typedef struct xcb_randr_set_provider_offload_sink_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_provider_t provider; /**< */ - xcb_randr_provider_t sink_provider; /**< */ - xcb_timestamp_t config_timestamp; /**< */ -} xcb_randr_set_provider_offload_sink_request_t; - -/** Opcode for xcb_randr_set_provider_output_source. */ -#define XCB_RANDR_SET_PROVIDER_OUTPUT_SOURCE 35 - -/** - * @brief xcb_randr_set_provider_output_source_request_t - **/ -typedef struct xcb_randr_set_provider_output_source_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_provider_t provider; /**< */ - xcb_randr_provider_t source_provider; /**< */ - xcb_timestamp_t config_timestamp; /**< */ -} xcb_randr_set_provider_output_source_request_t; - -/** - * @brief xcb_randr_list_provider_properties_cookie_t - **/ -typedef struct xcb_randr_list_provider_properties_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_list_provider_properties_cookie_t; - -/** Opcode for xcb_randr_list_provider_properties. */ -#define XCB_RANDR_LIST_PROVIDER_PROPERTIES 36 - -/** - * @brief xcb_randr_list_provider_properties_request_t - **/ -typedef struct xcb_randr_list_provider_properties_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_provider_t provider; /**< */ -} xcb_randr_list_provider_properties_request_t; - -/** - * @brief xcb_randr_list_provider_properties_reply_t - **/ -typedef struct xcb_randr_list_provider_properties_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_atoms; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_randr_list_provider_properties_reply_t; - -/** - * @brief xcb_randr_query_provider_property_cookie_t - **/ -typedef struct xcb_randr_query_provider_property_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_query_provider_property_cookie_t; - -/** Opcode for xcb_randr_query_provider_property. */ -#define XCB_RANDR_QUERY_PROVIDER_PROPERTY 37 - -/** - * @brief xcb_randr_query_provider_property_request_t - **/ -typedef struct xcb_randr_query_provider_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_provider_t provider; /**< */ - xcb_atom_t property; /**< */ -} xcb_randr_query_provider_property_request_t; - -/** - * @brief xcb_randr_query_provider_property_reply_t - **/ -typedef struct xcb_randr_query_provider_property_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pending; /**< */ - uint8_t range; /**< */ - uint8_t immutable; /**< */ - uint8_t pad1[21]; /**< */ -} xcb_randr_query_provider_property_reply_t; - -/** Opcode for xcb_randr_configure_provider_property. */ -#define XCB_RANDR_CONFIGURE_PROVIDER_PROPERTY 38 - -/** - * @brief xcb_randr_configure_provider_property_request_t - **/ -typedef struct xcb_randr_configure_provider_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_provider_t provider; /**< */ - xcb_atom_t property; /**< */ - uint8_t pending; /**< */ - uint8_t range; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_randr_configure_provider_property_request_t; - -/** Opcode for xcb_randr_change_provider_property. */ -#define XCB_RANDR_CHANGE_PROVIDER_PROPERTY 39 - -/** - * @brief xcb_randr_change_provider_property_request_t - **/ -typedef struct xcb_randr_change_provider_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_provider_t provider; /**< */ - xcb_atom_t property; /**< */ - xcb_atom_t type; /**< */ - uint8_t format; /**< */ - uint8_t mode; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t num_items; /**< */ -} xcb_randr_change_provider_property_request_t; - -/** Opcode for xcb_randr_delete_provider_property. */ -#define XCB_RANDR_DELETE_PROVIDER_PROPERTY 40 - -/** - * @brief xcb_randr_delete_provider_property_request_t - **/ -typedef struct xcb_randr_delete_provider_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_provider_t provider; /**< */ - xcb_atom_t property; /**< */ -} xcb_randr_delete_provider_property_request_t; - -/** - * @brief xcb_randr_get_provider_property_cookie_t - **/ -typedef struct xcb_randr_get_provider_property_cookie_t { - unsigned int sequence; /**< */ -} xcb_randr_get_provider_property_cookie_t; - -/** Opcode for xcb_randr_get_provider_property. */ -#define XCB_RANDR_GET_PROVIDER_PROPERTY 41 - -/** - * @brief xcb_randr_get_provider_property_request_t - **/ -typedef struct xcb_randr_get_provider_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_randr_provider_t provider; /**< */ - xcb_atom_t property; /**< */ - xcb_atom_t type; /**< */ - uint32_t long_offset; /**< */ - uint32_t long_length; /**< */ - uint8_t _delete; /**< */ - uint8_t pending; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_randr_get_provider_property_request_t; - -/** - * @brief xcb_randr_get_provider_property_reply_t - **/ -typedef struct xcb_randr_get_provider_property_reply_t { - uint8_t response_type; /**< */ - uint8_t format; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_atom_t type; /**< */ - uint32_t bytes_after; /**< */ - uint32_t num_items; /**< */ - uint8_t pad0[12]; /**< */ -} xcb_randr_get_provider_property_reply_t; - -/** Opcode for xcb_randr_screen_change_notify. */ -#define XCB_RANDR_SCREEN_CHANGE_NOTIFY 0 - -/** - * @brief xcb_randr_screen_change_notify_event_t - **/ -typedef struct xcb_randr_screen_change_notify_event_t { - uint8_t response_type; /**< */ - uint8_t rotation; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t timestamp; /**< */ - xcb_timestamp_t config_timestamp; /**< */ - xcb_window_t root; /**< */ - xcb_window_t request_window; /**< */ - uint16_t sizeID; /**< */ - uint16_t subpixel_order; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t mwidth; /**< */ - uint16_t mheight; /**< */ -} xcb_randr_screen_change_notify_event_t; - -typedef enum xcb_randr_notify_t { - XCB_RANDR_NOTIFY_CRTC_CHANGE = 0, - XCB_RANDR_NOTIFY_OUTPUT_CHANGE = 1, - XCB_RANDR_NOTIFY_OUTPUT_PROPERTY = 2, - XCB_RANDR_NOTIFY_PROVIDER_CHANGE = 3, - XCB_RANDR_NOTIFY_PROVIDER_PROPERTY = 4, - XCB_RANDR_NOTIFY_RESOURCE_CHANGE = 5 -} xcb_randr_notify_t; - -/** - * @brief xcb_randr_crtc_change_t - **/ -typedef struct xcb_randr_crtc_change_t { - xcb_timestamp_t timestamp; /**< */ - xcb_window_t window; /**< */ - xcb_randr_crtc_t crtc; /**< */ - xcb_randr_mode_t mode; /**< */ - uint16_t rotation; /**< */ - uint8_t pad0[2]; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_randr_crtc_change_t; - -/** - * @brief xcb_randr_crtc_change_iterator_t - **/ -typedef struct xcb_randr_crtc_change_iterator_t { - xcb_randr_crtc_change_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_crtc_change_iterator_t; - -/** - * @brief xcb_randr_output_change_t - **/ -typedef struct xcb_randr_output_change_t { - xcb_timestamp_t timestamp; /**< */ - xcb_timestamp_t config_timestamp; /**< */ - xcb_window_t window; /**< */ - xcb_randr_output_t output; /**< */ - xcb_randr_crtc_t crtc; /**< */ - xcb_randr_mode_t mode; /**< */ - uint16_t rotation; /**< */ - uint8_t connection; /**< */ - uint8_t subpixel_order; /**< */ -} xcb_randr_output_change_t; - -/** - * @brief xcb_randr_output_change_iterator_t - **/ -typedef struct xcb_randr_output_change_iterator_t { - xcb_randr_output_change_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_output_change_iterator_t; - -/** - * @brief xcb_randr_output_property_t - **/ -typedef struct xcb_randr_output_property_t { - xcb_window_t window; /**< */ - xcb_randr_output_t output; /**< */ - xcb_atom_t atom; /**< */ - xcb_timestamp_t timestamp; /**< */ - uint8_t status; /**< */ - uint8_t pad0[11]; /**< */ -} xcb_randr_output_property_t; - -/** - * @brief xcb_randr_output_property_iterator_t - **/ -typedef struct xcb_randr_output_property_iterator_t { - xcb_randr_output_property_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_output_property_iterator_t; - -/** - * @brief xcb_randr_provider_change_t - **/ -typedef struct xcb_randr_provider_change_t { - xcb_timestamp_t timestamp; /**< */ - xcb_window_t window; /**< */ - xcb_randr_provider_t provider; /**< */ - uint8_t pad0[16]; /**< */ -} xcb_randr_provider_change_t; - -/** - * @brief xcb_randr_provider_change_iterator_t - **/ -typedef struct xcb_randr_provider_change_iterator_t { - xcb_randr_provider_change_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_provider_change_iterator_t; - -/** - * @brief xcb_randr_provider_property_t - **/ -typedef struct xcb_randr_provider_property_t { - xcb_window_t window; /**< */ - xcb_randr_provider_t provider; /**< */ - xcb_atom_t atom; /**< */ - xcb_timestamp_t timestamp; /**< */ - uint8_t state; /**< */ - uint8_t pad0[11]; /**< */ -} xcb_randr_provider_property_t; - -/** - * @brief xcb_randr_provider_property_iterator_t - **/ -typedef struct xcb_randr_provider_property_iterator_t { - xcb_randr_provider_property_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_provider_property_iterator_t; - -/** - * @brief xcb_randr_resource_change_t - **/ -typedef struct xcb_randr_resource_change_t { - xcb_timestamp_t timestamp; /**< */ - xcb_window_t window; /**< */ - uint8_t pad0[20]; /**< */ -} xcb_randr_resource_change_t; - -/** - * @brief xcb_randr_resource_change_iterator_t - **/ -typedef struct xcb_randr_resource_change_iterator_t { - xcb_randr_resource_change_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_resource_change_iterator_t; - -/** - * @brief xcb_randr_notify_data_t - **/ -typedef union xcb_randr_notify_data_t { - xcb_randr_crtc_change_t cc; /**< */ - xcb_randr_output_change_t oc; /**< */ - xcb_randr_output_property_t op; /**< */ - xcb_randr_provider_change_t pc; /**< */ - xcb_randr_provider_property_t pp; /**< */ - xcb_randr_resource_change_t rc; /**< */ -} xcb_randr_notify_data_t; - -/** - * @brief xcb_randr_notify_data_iterator_t - **/ -typedef struct xcb_randr_notify_data_iterator_t { - xcb_randr_notify_data_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_randr_notify_data_iterator_t; - -/** Opcode for xcb_randr_notify. */ -#define XCB_RANDR_NOTIFY 1 - -/** - * @brief xcb_randr_notify_event_t - **/ -typedef struct xcb_randr_notify_event_t { - uint8_t response_type; /**< */ - uint8_t subCode; /**< */ - uint16_t sequence; /**< */ - xcb_randr_notify_data_t u; /**< */ -} xcb_randr_notify_event_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_mode_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_mode_t) - */ -void -xcb_randr_mode_next (xcb_randr_mode_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_mode_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_mode_end (xcb_randr_mode_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_crtc_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_crtc_t) - */ -void -xcb_randr_crtc_next (xcb_randr_crtc_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_crtc_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_crtc_end (xcb_randr_crtc_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_output_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_output_t) - */ -void -xcb_randr_output_next (xcb_randr_output_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_output_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_output_end (xcb_randr_output_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_provider_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_provider_t) - */ -void -xcb_randr_provider_next (xcb_randr_provider_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_provider_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_provider_end (xcb_randr_provider_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_screen_size_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_screen_size_t) - */ -void -xcb_randr_screen_size_next (xcb_randr_screen_size_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_screen_size_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_screen_size_end (xcb_randr_screen_size_iterator_t i /**< */); - -int -xcb_randr_refresh_rates_sizeof (const void *_buffer /**< */); - -uint16_t * -xcb_randr_refresh_rates_rates (const xcb_randr_refresh_rates_t *R /**< */); - -int -xcb_randr_refresh_rates_rates_length (const xcb_randr_refresh_rates_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_refresh_rates_rates_end (const xcb_randr_refresh_rates_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_refresh_rates_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_refresh_rates_t) - */ -void -xcb_randr_refresh_rates_next (xcb_randr_refresh_rates_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_refresh_rates_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_refresh_rates_end (xcb_randr_refresh_rates_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_query_version_cookie_t -xcb_randr_query_version (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_query_version_cookie_t -xcb_randr_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t major_version /**< */, - uint32_t minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_query_version_reply_t * -xcb_randr_query_version_reply (xcb_connection_t *c /**< */, - xcb_randr_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_set_screen_config_cookie_t -xcb_randr_set_screen_config (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t timestamp /**< */, - xcb_timestamp_t config_timestamp /**< */, - uint16_t sizeID /**< */, - uint16_t rotation /**< */, - uint16_t rate /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_set_screen_config_cookie_t -xcb_randr_set_screen_config_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t timestamp /**< */, - xcb_timestamp_t config_timestamp /**< */, - uint16_t sizeID /**< */, - uint16_t rotation /**< */, - uint16_t rate /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_set_screen_config_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_set_screen_config_reply_t * -xcb_randr_set_screen_config_reply (xcb_connection_t *c /**< */, - xcb_randr_set_screen_config_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_select_input_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t enable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_select_input (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t enable /**< */); - -int -xcb_randr_get_screen_info_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_screen_info_cookie_t -xcb_randr_get_screen_info (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_screen_info_cookie_t -xcb_randr_get_screen_info_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -xcb_randr_screen_size_t * -xcb_randr_get_screen_info_sizes (const xcb_randr_get_screen_info_reply_t *R /**< */); - -int -xcb_randr_get_screen_info_sizes_length (const xcb_randr_get_screen_info_reply_t *R /**< */); - -xcb_randr_screen_size_iterator_t -xcb_randr_get_screen_info_sizes_iterator (const xcb_randr_get_screen_info_reply_t *R /**< */); - -int -xcb_randr_get_screen_info_rates_length (const xcb_randr_get_screen_info_reply_t *R /**< */); - -xcb_randr_refresh_rates_iterator_t -xcb_randr_get_screen_info_rates_iterator (const xcb_randr_get_screen_info_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_screen_info_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_screen_info_reply_t * -xcb_randr_get_screen_info_reply (xcb_connection_t *c /**< */, - xcb_randr_get_screen_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_screen_size_range_cookie_t -xcb_randr_get_screen_size_range (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_screen_size_range_cookie_t -xcb_randr_get_screen_size_range_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_screen_size_range_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_screen_size_range_reply_t * -xcb_randr_get_screen_size_range_reply (xcb_connection_t *c /**< */, - xcb_randr_get_screen_size_range_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_set_screen_size_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t mm_width /**< */, - uint32_t mm_height /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_set_screen_size (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t mm_width /**< */, - uint32_t mm_height /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_mode_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_mode_info_t) - */ -void -xcb_randr_mode_info_next (xcb_randr_mode_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_mode_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_mode_info_end (xcb_randr_mode_info_iterator_t i /**< */); - -int -xcb_randr_get_screen_resources_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_screen_resources_cookie_t -xcb_randr_get_screen_resources (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_screen_resources_cookie_t -xcb_randr_get_screen_resources_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -xcb_randr_crtc_t * -xcb_randr_get_screen_resources_crtcs (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -int -xcb_randr_get_screen_resources_crtcs_length (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_crtcs_end (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -xcb_randr_output_t * -xcb_randr_get_screen_resources_outputs (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -int -xcb_randr_get_screen_resources_outputs_length (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_outputs_end (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -xcb_randr_mode_info_t * -xcb_randr_get_screen_resources_modes (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -int -xcb_randr_get_screen_resources_modes_length (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -xcb_randr_mode_info_iterator_t -xcb_randr_get_screen_resources_modes_iterator (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -uint8_t * -xcb_randr_get_screen_resources_names (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -int -xcb_randr_get_screen_resources_names_length (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_names_end (const xcb_randr_get_screen_resources_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_screen_resources_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_screen_resources_reply_t * -xcb_randr_get_screen_resources_reply (xcb_connection_t *c /**< */, - xcb_randr_get_screen_resources_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_get_output_info_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_output_info_cookie_t -xcb_randr_get_output_info (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_timestamp_t config_timestamp /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_output_info_cookie_t -xcb_randr_get_output_info_unchecked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_timestamp_t config_timestamp /**< */); - -xcb_randr_crtc_t * -xcb_randr_get_output_info_crtcs (const xcb_randr_get_output_info_reply_t *R /**< */); - -int -xcb_randr_get_output_info_crtcs_length (const xcb_randr_get_output_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_output_info_crtcs_end (const xcb_randr_get_output_info_reply_t *R /**< */); - -xcb_randr_mode_t * -xcb_randr_get_output_info_modes (const xcb_randr_get_output_info_reply_t *R /**< */); - -int -xcb_randr_get_output_info_modes_length (const xcb_randr_get_output_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_output_info_modes_end (const xcb_randr_get_output_info_reply_t *R /**< */); - -xcb_randr_output_t * -xcb_randr_get_output_info_clones (const xcb_randr_get_output_info_reply_t *R /**< */); - -int -xcb_randr_get_output_info_clones_length (const xcb_randr_get_output_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_output_info_clones_end (const xcb_randr_get_output_info_reply_t *R /**< */); - -uint8_t * -xcb_randr_get_output_info_name (const xcb_randr_get_output_info_reply_t *R /**< */); - -int -xcb_randr_get_output_info_name_length (const xcb_randr_get_output_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_output_info_name_end (const xcb_randr_get_output_info_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_output_info_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_output_info_reply_t * -xcb_randr_get_output_info_reply (xcb_connection_t *c /**< */, - xcb_randr_get_output_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_list_output_properties_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_list_output_properties_cookie_t -xcb_randr_list_output_properties (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_list_output_properties_cookie_t -xcb_randr_list_output_properties_unchecked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */); - -xcb_atom_t * -xcb_randr_list_output_properties_atoms (const xcb_randr_list_output_properties_reply_t *R /**< */); - -int -xcb_randr_list_output_properties_atoms_length (const xcb_randr_list_output_properties_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_list_output_properties_atoms_end (const xcb_randr_list_output_properties_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_list_output_properties_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_list_output_properties_reply_t * -xcb_randr_list_output_properties_reply (xcb_connection_t *c /**< */, - xcb_randr_list_output_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_query_output_property_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_query_output_property_cookie_t -xcb_randr_query_output_property (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_query_output_property_cookie_t -xcb_randr_query_output_property_unchecked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */); - -int32_t * -xcb_randr_query_output_property_valid_values (const xcb_randr_query_output_property_reply_t *R /**< */); - -int -xcb_randr_query_output_property_valid_values_length (const xcb_randr_query_output_property_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_query_output_property_valid_values_end (const xcb_randr_query_output_property_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_query_output_property_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_query_output_property_reply_t * -xcb_randr_query_output_property_reply (xcb_connection_t *c /**< */, - xcb_randr_query_output_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_configure_output_property_sizeof (const void *_buffer /**< */, - uint32_t values_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_configure_output_property_checked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - uint8_t pending /**< */, - uint8_t range /**< */, - uint32_t values_len /**< */, - const int32_t *values /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_configure_output_property (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - uint8_t pending /**< */, - uint8_t range /**< */, - uint32_t values_len /**< */, - const int32_t *values /**< */); - -int -xcb_randr_change_output_property_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_change_output_property_checked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_units /**< */, - const void *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_change_output_property (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_units /**< */, - const void *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_delete_output_property_checked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_delete_output_property (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */); - -int -xcb_randr_get_output_property_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_output_property_cookie_t -xcb_randr_get_output_property (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */, - uint8_t _delete /**< */, - uint8_t pending /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_output_property_cookie_t -xcb_randr_get_output_property_unchecked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */, - uint8_t _delete /**< */, - uint8_t pending /**< */); - -uint8_t * -xcb_randr_get_output_property_data (const xcb_randr_get_output_property_reply_t *R /**< */); - -int -xcb_randr_get_output_property_data_length (const xcb_randr_get_output_property_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_output_property_data_end (const xcb_randr_get_output_property_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_output_property_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_output_property_reply_t * -xcb_randr_get_output_property_reply (xcb_connection_t *c /**< */, - xcb_randr_get_output_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_create_mode_sizeof (const void *_buffer /**< */, - uint32_t name_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_create_mode_cookie_t -xcb_randr_create_mode (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_randr_mode_info_t mode_info /**< */, - uint32_t name_len /**< */, - const char *name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_create_mode_cookie_t -xcb_randr_create_mode_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_randr_mode_info_t mode_info /**< */, - uint32_t name_len /**< */, - const char *name /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_create_mode_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_create_mode_reply_t * -xcb_randr_create_mode_reply (xcb_connection_t *c /**< */, - xcb_randr_create_mode_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_destroy_mode_checked (xcb_connection_t *c /**< */, - xcb_randr_mode_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_destroy_mode (xcb_connection_t *c /**< */, - xcb_randr_mode_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_add_output_mode_checked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_randr_mode_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_add_output_mode (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_randr_mode_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_delete_output_mode_checked (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_randr_mode_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_delete_output_mode (xcb_connection_t *c /**< */, - xcb_randr_output_t output /**< */, - xcb_randr_mode_t mode /**< */); - -int -xcb_randr_get_crtc_info_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_crtc_info_cookie_t -xcb_randr_get_crtc_info (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t config_timestamp /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_crtc_info_cookie_t -xcb_randr_get_crtc_info_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t config_timestamp /**< */); - -xcb_randr_output_t * -xcb_randr_get_crtc_info_outputs (const xcb_randr_get_crtc_info_reply_t *R /**< */); - -int -xcb_randr_get_crtc_info_outputs_length (const xcb_randr_get_crtc_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_crtc_info_outputs_end (const xcb_randr_get_crtc_info_reply_t *R /**< */); - -xcb_randr_output_t * -xcb_randr_get_crtc_info_possible (const xcb_randr_get_crtc_info_reply_t *R /**< */); - -int -xcb_randr_get_crtc_info_possible_length (const xcb_randr_get_crtc_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_crtc_info_possible_end (const xcb_randr_get_crtc_info_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_crtc_info_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_crtc_info_reply_t * -xcb_randr_get_crtc_info_reply (xcb_connection_t *c /**< */, - xcb_randr_get_crtc_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_set_crtc_config_sizeof (const void *_buffer /**< */, - uint32_t outputs_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_set_crtc_config_cookie_t -xcb_randr_set_crtc_config (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t timestamp /**< */, - xcb_timestamp_t config_timestamp /**< */, - int16_t x /**< */, - int16_t y /**< */, - xcb_randr_mode_t mode /**< */, - uint16_t rotation /**< */, - uint32_t outputs_len /**< */, - const xcb_randr_output_t *outputs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_set_crtc_config_cookie_t -xcb_randr_set_crtc_config_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t timestamp /**< */, - xcb_timestamp_t config_timestamp /**< */, - int16_t x /**< */, - int16_t y /**< */, - xcb_randr_mode_t mode /**< */, - uint16_t rotation /**< */, - uint32_t outputs_len /**< */, - const xcb_randr_output_t *outputs /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_set_crtc_config_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_set_crtc_config_reply_t * -xcb_randr_set_crtc_config_reply (xcb_connection_t *c /**< */, - xcb_randr_set_crtc_config_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_crtc_gamma_size_cookie_t -xcb_randr_get_crtc_gamma_size (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_crtc_gamma_size_cookie_t -xcb_randr_get_crtc_gamma_size_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_crtc_gamma_size_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_crtc_gamma_size_reply_t * -xcb_randr_get_crtc_gamma_size_reply (xcb_connection_t *c /**< */, - xcb_randr_get_crtc_gamma_size_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_get_crtc_gamma_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_crtc_gamma_cookie_t -xcb_randr_get_crtc_gamma (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_crtc_gamma_cookie_t -xcb_randr_get_crtc_gamma_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */); - -uint16_t * -xcb_randr_get_crtc_gamma_red (const xcb_randr_get_crtc_gamma_reply_t *R /**< */); - -int -xcb_randr_get_crtc_gamma_red_length (const xcb_randr_get_crtc_gamma_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_crtc_gamma_red_end (const xcb_randr_get_crtc_gamma_reply_t *R /**< */); - -uint16_t * -xcb_randr_get_crtc_gamma_green (const xcb_randr_get_crtc_gamma_reply_t *R /**< */); - -int -xcb_randr_get_crtc_gamma_green_length (const xcb_randr_get_crtc_gamma_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_crtc_gamma_green_end (const xcb_randr_get_crtc_gamma_reply_t *R /**< */); - -uint16_t * -xcb_randr_get_crtc_gamma_blue (const xcb_randr_get_crtc_gamma_reply_t *R /**< */); - -int -xcb_randr_get_crtc_gamma_blue_length (const xcb_randr_get_crtc_gamma_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_crtc_gamma_blue_end (const xcb_randr_get_crtc_gamma_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_crtc_gamma_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_crtc_gamma_reply_t * -xcb_randr_get_crtc_gamma_reply (xcb_connection_t *c /**< */, - xcb_randr_get_crtc_gamma_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_set_crtc_gamma_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_set_crtc_gamma_checked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - uint16_t size /**< */, - const uint16_t *red /**< */, - const uint16_t *green /**< */, - const uint16_t *blue /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_set_crtc_gamma (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - uint16_t size /**< */, - const uint16_t *red /**< */, - const uint16_t *green /**< */, - const uint16_t *blue /**< */); - -int -xcb_randr_get_screen_resources_current_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_screen_resources_current_cookie_t -xcb_randr_get_screen_resources_current (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_screen_resources_current_cookie_t -xcb_randr_get_screen_resources_current_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -xcb_randr_crtc_t * -xcb_randr_get_screen_resources_current_crtcs (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -int -xcb_randr_get_screen_resources_current_crtcs_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_current_crtcs_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -xcb_randr_output_t * -xcb_randr_get_screen_resources_current_outputs (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -int -xcb_randr_get_screen_resources_current_outputs_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_current_outputs_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -xcb_randr_mode_info_t * -xcb_randr_get_screen_resources_current_modes (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -int -xcb_randr_get_screen_resources_current_modes_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -xcb_randr_mode_info_iterator_t -xcb_randr_get_screen_resources_current_modes_iterator (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -uint8_t * -xcb_randr_get_screen_resources_current_names (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -int -xcb_randr_get_screen_resources_current_names_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_screen_resources_current_names_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_screen_resources_current_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_screen_resources_current_reply_t * -xcb_randr_get_screen_resources_current_reply (xcb_connection_t *c /**< */, - xcb_randr_get_screen_resources_current_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_set_crtc_transform_sizeof (const void *_buffer /**< */, - uint32_t filter_params_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_set_crtc_transform_checked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_render_transform_t transform /**< */, - uint16_t filter_len /**< */, - const char *filter_name /**< */, - uint32_t filter_params_len /**< */, - const xcb_render_fixed_t *filter_params /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_set_crtc_transform (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_render_transform_t transform /**< */, - uint16_t filter_len /**< */, - const char *filter_name /**< */, - uint32_t filter_params_len /**< */, - const xcb_render_fixed_t *filter_params /**< */); - -int -xcb_randr_get_crtc_transform_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_crtc_transform_cookie_t -xcb_randr_get_crtc_transform (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_crtc_transform_cookie_t -xcb_randr_get_crtc_transform_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */); - -char * -xcb_randr_get_crtc_transform_pending_filter_name (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -int -xcb_randr_get_crtc_transform_pending_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_crtc_transform_pending_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -xcb_render_fixed_t * -xcb_randr_get_crtc_transform_pending_params (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -int -xcb_randr_get_crtc_transform_pending_params_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_crtc_transform_pending_params_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -char * -xcb_randr_get_crtc_transform_current_filter_name (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -int -xcb_randr_get_crtc_transform_current_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_crtc_transform_current_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -xcb_render_fixed_t * -xcb_randr_get_crtc_transform_current_params (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -int -xcb_randr_get_crtc_transform_current_params_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_crtc_transform_current_params_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_crtc_transform_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_crtc_transform_reply_t * -xcb_randr_get_crtc_transform_reply (xcb_connection_t *c /**< */, - xcb_randr_get_crtc_transform_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_panning_cookie_t -xcb_randr_get_panning (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_panning_cookie_t -xcb_randr_get_panning_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_panning_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_panning_reply_t * -xcb_randr_get_panning_reply (xcb_connection_t *c /**< */, - xcb_randr_get_panning_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_set_panning_cookie_t -xcb_randr_set_panning (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t timestamp /**< */, - uint16_t left /**< */, - uint16_t top /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t track_left /**< */, - uint16_t track_top /**< */, - uint16_t track_width /**< */, - uint16_t track_height /**< */, - int16_t border_left /**< */, - int16_t border_top /**< */, - int16_t border_right /**< */, - int16_t border_bottom /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_set_panning_cookie_t -xcb_randr_set_panning_unchecked (xcb_connection_t *c /**< */, - xcb_randr_crtc_t crtc /**< */, - xcb_timestamp_t timestamp /**< */, - uint16_t left /**< */, - uint16_t top /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t track_left /**< */, - uint16_t track_top /**< */, - uint16_t track_width /**< */, - uint16_t track_height /**< */, - int16_t border_left /**< */, - int16_t border_top /**< */, - int16_t border_right /**< */, - int16_t border_bottom /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_set_panning_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_set_panning_reply_t * -xcb_randr_set_panning_reply (xcb_connection_t *c /**< */, - xcb_randr_set_panning_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_set_output_primary_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_randr_output_t output /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_set_output_primary (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_randr_output_t output /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_output_primary_cookie_t -xcb_randr_get_output_primary (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_output_primary_cookie_t -xcb_randr_get_output_primary_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_output_primary_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_output_primary_reply_t * -xcb_randr_get_output_primary_reply (xcb_connection_t *c /**< */, - xcb_randr_get_output_primary_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_get_providers_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_providers_cookie_t -xcb_randr_get_providers (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_providers_cookie_t -xcb_randr_get_providers_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -xcb_randr_provider_t * -xcb_randr_get_providers_providers (const xcb_randr_get_providers_reply_t *R /**< */); - -int -xcb_randr_get_providers_providers_length (const xcb_randr_get_providers_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_providers_providers_end (const xcb_randr_get_providers_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_providers_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_providers_reply_t * -xcb_randr_get_providers_reply (xcb_connection_t *c /**< */, - xcb_randr_get_providers_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_get_provider_info_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_provider_info_cookie_t -xcb_randr_get_provider_info (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_timestamp_t config_timestamp /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_provider_info_cookie_t -xcb_randr_get_provider_info_unchecked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_timestamp_t config_timestamp /**< */); - -xcb_randr_crtc_t * -xcb_randr_get_provider_info_crtcs (const xcb_randr_get_provider_info_reply_t *R /**< */); - -int -xcb_randr_get_provider_info_crtcs_length (const xcb_randr_get_provider_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_provider_info_crtcs_end (const xcb_randr_get_provider_info_reply_t *R /**< */); - -xcb_randr_output_t * -xcb_randr_get_provider_info_outputs (const xcb_randr_get_provider_info_reply_t *R /**< */); - -int -xcb_randr_get_provider_info_outputs_length (const xcb_randr_get_provider_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_provider_info_outputs_end (const xcb_randr_get_provider_info_reply_t *R /**< */); - -xcb_randr_provider_t * -xcb_randr_get_provider_info_associated_providers (const xcb_randr_get_provider_info_reply_t *R /**< */); - -int -xcb_randr_get_provider_info_associated_providers_length (const xcb_randr_get_provider_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_provider_info_associated_providers_end (const xcb_randr_get_provider_info_reply_t *R /**< */); - -uint32_t * -xcb_randr_get_provider_info_associated_capability (const xcb_randr_get_provider_info_reply_t *R /**< */); - -int -xcb_randr_get_provider_info_associated_capability_length (const xcb_randr_get_provider_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_provider_info_associated_capability_end (const xcb_randr_get_provider_info_reply_t *R /**< */); - -char * -xcb_randr_get_provider_info_name (const xcb_randr_get_provider_info_reply_t *R /**< */); - -int -xcb_randr_get_provider_info_name_length (const xcb_randr_get_provider_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_provider_info_name_end (const xcb_randr_get_provider_info_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_provider_info_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_provider_info_reply_t * -xcb_randr_get_provider_info_reply (xcb_connection_t *c /**< */, - xcb_randr_get_provider_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_set_provider_offload_sink_checked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_randr_provider_t sink_provider /**< */, - xcb_timestamp_t config_timestamp /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_set_provider_offload_sink (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_randr_provider_t sink_provider /**< */, - xcb_timestamp_t config_timestamp /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_set_provider_output_source_checked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_randr_provider_t source_provider /**< */, - xcb_timestamp_t config_timestamp /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_set_provider_output_source (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_randr_provider_t source_provider /**< */, - xcb_timestamp_t config_timestamp /**< */); - -int -xcb_randr_list_provider_properties_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_list_provider_properties_cookie_t -xcb_randr_list_provider_properties (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_list_provider_properties_cookie_t -xcb_randr_list_provider_properties_unchecked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */); - -xcb_atom_t * -xcb_randr_list_provider_properties_atoms (const xcb_randr_list_provider_properties_reply_t *R /**< */); - -int -xcb_randr_list_provider_properties_atoms_length (const xcb_randr_list_provider_properties_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_list_provider_properties_atoms_end (const xcb_randr_list_provider_properties_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_list_provider_properties_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_list_provider_properties_reply_t * -xcb_randr_list_provider_properties_reply (xcb_connection_t *c /**< */, - xcb_randr_list_provider_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_query_provider_property_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_query_provider_property_cookie_t -xcb_randr_query_provider_property (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_query_provider_property_cookie_t -xcb_randr_query_provider_property_unchecked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */); - -int32_t * -xcb_randr_query_provider_property_valid_values (const xcb_randr_query_provider_property_reply_t *R /**< */); - -int -xcb_randr_query_provider_property_valid_values_length (const xcb_randr_query_provider_property_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_query_provider_property_valid_values_end (const xcb_randr_query_provider_property_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_query_provider_property_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_query_provider_property_reply_t * -xcb_randr_query_provider_property_reply (xcb_connection_t *c /**< */, - xcb_randr_query_provider_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_randr_configure_provider_property_sizeof (const void *_buffer /**< */, - uint32_t values_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_configure_provider_property_checked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - uint8_t pending /**< */, - uint8_t range /**< */, - uint32_t values_len /**< */, - const int32_t *values /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_configure_provider_property (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - uint8_t pending /**< */, - uint8_t range /**< */, - uint32_t values_len /**< */, - const int32_t *values /**< */); - -int -xcb_randr_change_provider_property_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_change_provider_property_checked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const void *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_change_provider_property (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const void *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_randr_delete_provider_property_checked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_randr_delete_provider_property (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */); - -int -xcb_randr_get_provider_property_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_randr_get_provider_property_cookie_t -xcb_randr_get_provider_property (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */, - uint8_t _delete /**< */, - uint8_t pending /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_randr_get_provider_property_cookie_t -xcb_randr_get_provider_property_unchecked (xcb_connection_t *c /**< */, - xcb_randr_provider_t provider /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */, - uint8_t _delete /**< */, - uint8_t pending /**< */); - -void * -xcb_randr_get_provider_property_data (const xcb_randr_get_provider_property_reply_t *R /**< */); - -int -xcb_randr_get_provider_property_data_length (const xcb_randr_get_provider_property_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_randr_get_provider_property_data_end (const xcb_randr_get_provider_property_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_randr_get_provider_property_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_randr_get_provider_property_reply_t * -xcb_randr_get_provider_property_reply (xcb_connection_t *c /**< */, - xcb_randr_get_provider_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_crtc_change_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_crtc_change_t) - */ -void -xcb_randr_crtc_change_next (xcb_randr_crtc_change_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_crtc_change_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_crtc_change_end (xcb_randr_crtc_change_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_output_change_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_output_change_t) - */ -void -xcb_randr_output_change_next (xcb_randr_output_change_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_output_change_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_output_change_end (xcb_randr_output_change_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_output_property_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_output_property_t) - */ -void -xcb_randr_output_property_next (xcb_randr_output_property_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_output_property_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_output_property_end (xcb_randr_output_property_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_provider_change_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_provider_change_t) - */ -void -xcb_randr_provider_change_next (xcb_randr_provider_change_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_provider_change_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_provider_change_end (xcb_randr_provider_change_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_provider_property_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_provider_property_t) - */ -void -xcb_randr_provider_property_next (xcb_randr_provider_property_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_provider_property_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_provider_property_end (xcb_randr_provider_property_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_resource_change_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_resource_change_t) - */ -void -xcb_randr_resource_change_next (xcb_randr_resource_change_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_resource_change_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_resource_change_end (xcb_randr_resource_change_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_randr_notify_data_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_randr_notify_data_t) - */ -void -xcb_randr_notify_data_next (xcb_randr_notify_data_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_randr_notify_data_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_randr_notify_data_end (xcb_randr_notify_data_iterator_t i /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/record.c b/external/mit/xorg/lib/libxcb/files/record.c deleted file mode 100644 index 040c87b61..000000000 --- a/external/mit/xorg/lib/libxcb/files/record.c +++ /dev/null @@ -1,979 +0,0 @@ -/* - * This file generated automatically from record.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "record.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) - -xcb_extension_t xcb_record_id = { "RECORD", 0 }; - -void -xcb_record_context_next (xcb_record_context_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_record_context_t); -} - -xcb_generic_iterator_t -xcb_record_context_end (xcb_record_context_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_record_range_8_next (xcb_record_range_8_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_record_range_8_t); -} - -xcb_generic_iterator_t -xcb_record_range_8_end (xcb_record_range_8_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_record_range_16_next (xcb_record_range_16_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_record_range_16_t); -} - -xcb_generic_iterator_t -xcb_record_range_16_end (xcb_record_range_16_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_record_ext_range_next (xcb_record_ext_range_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_record_ext_range_t); -} - -xcb_generic_iterator_t -xcb_record_ext_range_end (xcb_record_ext_range_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_record_range_next (xcb_record_range_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_record_range_t); -} - -xcb_generic_iterator_t -xcb_record_range_end (xcb_record_range_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_record_element_header_next (xcb_record_element_header_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_record_element_header_t); -} - -xcb_generic_iterator_t -xcb_record_element_header_end (xcb_record_element_header_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_record_client_spec_next (xcb_record_client_spec_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_record_client_spec_t); -} - -xcb_generic_iterator_t -xcb_record_client_spec_end (xcb_record_client_spec_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_record_client_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_record_client_info_t *_aux = (xcb_record_client_info_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_record_client_info_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* ranges */ - xcb_block_len += _aux->num_ranges * sizeof(xcb_record_range_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_record_range_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_record_range_t * -xcb_record_client_info_ranges (const xcb_record_client_info_t *R /**< */) -{ - return (xcb_record_range_t *) (R + 1); -} - -int -xcb_record_client_info_ranges_length (const xcb_record_client_info_t *R /**< */) -{ - return R->num_ranges; -} - -xcb_record_range_iterator_t -xcb_record_client_info_ranges_iterator (const xcb_record_client_info_t *R /**< */) -{ - xcb_record_range_iterator_t i; - i.data = (xcb_record_range_t *) (R + 1); - i.rem = R->num_ranges; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_record_client_info_next (xcb_record_client_info_iterator_t *i /**< */) -{ - xcb_record_client_info_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_record_client_info_t *)(((char *)R) + xcb_record_client_info_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_record_client_info_t *) child.data; -} - -xcb_generic_iterator_t -xcb_record_client_info_end (xcb_record_client_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_record_client_info_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -xcb_record_query_version_cookie_t -xcb_record_query_version (xcb_connection_t *c /**< */, - uint16_t major_version /**< */, - uint16_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_record_query_version_cookie_t xcb_ret; - xcb_record_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_record_query_version_cookie_t -xcb_record_query_version_unchecked (xcb_connection_t *c /**< */, - uint16_t major_version /**< */, - uint16_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_record_query_version_cookie_t xcb_ret; - xcb_record_query_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_record_query_version_reply_t * -xcb_record_query_version_reply (xcb_connection_t *c /**< */, - xcb_record_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_record_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_record_create_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_record_create_context_request_t *_aux = (xcb_record_create_context_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_record_create_context_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* client_specs */ - xcb_block_len += _aux->num_client_specs * sizeof(xcb_record_client_spec_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_record_client_spec_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* ranges */ - xcb_block_len += _aux->num_ranges * sizeof(xcb_record_range_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_record_range_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_record_create_context_checked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - xcb_record_element_header_t element_header /**< */, - uint32_t num_client_specs /**< */, - uint32_t num_ranges /**< */, - const xcb_record_client_spec_t *client_specs /**< */, - const xcb_record_range_t *ranges /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_record_create_context_request_t xcb_out; - - xcb_out.context = context; - xcb_out.element_header = element_header; - memset(xcb_out.pad0, 0, 3); - xcb_out.num_client_specs = num_client_specs; - xcb_out.num_ranges = num_ranges; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_record_client_spec_t client_specs */ - xcb_parts[4].iov_base = (char *) client_specs; - xcb_parts[4].iov_len = num_client_specs * sizeof(xcb_record_client_spec_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_record_range_t ranges */ - xcb_parts[6].iov_base = (char *) ranges; - xcb_parts[6].iov_len = num_ranges * sizeof(xcb_record_range_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_record_create_context (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - xcb_record_element_header_t element_header /**< */, - uint32_t num_client_specs /**< */, - uint32_t num_ranges /**< */, - const xcb_record_client_spec_t *client_specs /**< */, - const xcb_record_range_t *ranges /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_record_create_context_request_t xcb_out; - - xcb_out.context = context; - xcb_out.element_header = element_header; - memset(xcb_out.pad0, 0, 3); - xcb_out.num_client_specs = num_client_specs; - xcb_out.num_ranges = num_ranges; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_record_client_spec_t client_specs */ - xcb_parts[4].iov_base = (char *) client_specs; - xcb_parts[4].iov_len = num_client_specs * sizeof(xcb_record_client_spec_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_record_range_t ranges */ - xcb_parts[6].iov_base = (char *) ranges; - xcb_parts[6].iov_len = num_ranges * sizeof(xcb_record_range_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_record_register_clients_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_record_register_clients_request_t *_aux = (xcb_record_register_clients_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_record_register_clients_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* client_specs */ - xcb_block_len += _aux->num_client_specs * sizeof(xcb_record_client_spec_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_record_client_spec_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* ranges */ - xcb_block_len += _aux->num_ranges * sizeof(xcb_record_range_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_record_range_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_record_register_clients_checked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - xcb_record_element_header_t element_header /**< */, - uint32_t num_client_specs /**< */, - uint32_t num_ranges /**< */, - const xcb_record_client_spec_t *client_specs /**< */, - const xcb_record_range_t *ranges /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_REGISTER_CLIENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_record_register_clients_request_t xcb_out; - - xcb_out.context = context; - xcb_out.element_header = element_header; - memset(xcb_out.pad0, 0, 3); - xcb_out.num_client_specs = num_client_specs; - xcb_out.num_ranges = num_ranges; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_record_client_spec_t client_specs */ - xcb_parts[4].iov_base = (char *) client_specs; - xcb_parts[4].iov_len = num_client_specs * sizeof(xcb_record_client_spec_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_record_range_t ranges */ - xcb_parts[6].iov_base = (char *) ranges; - xcb_parts[6].iov_len = num_ranges * sizeof(xcb_record_range_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_record_register_clients (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - xcb_record_element_header_t element_header /**< */, - uint32_t num_client_specs /**< */, - uint32_t num_ranges /**< */, - const xcb_record_client_spec_t *client_specs /**< */, - const xcb_record_range_t *ranges /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_REGISTER_CLIENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_record_register_clients_request_t xcb_out; - - xcb_out.context = context; - xcb_out.element_header = element_header; - memset(xcb_out.pad0, 0, 3); - xcb_out.num_client_specs = num_client_specs; - xcb_out.num_ranges = num_ranges; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_record_client_spec_t client_specs */ - xcb_parts[4].iov_base = (char *) client_specs; - xcb_parts[4].iov_len = num_client_specs * sizeof(xcb_record_client_spec_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_record_range_t ranges */ - xcb_parts[6].iov_base = (char *) ranges; - xcb_parts[6].iov_len = num_ranges * sizeof(xcb_record_range_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_record_unregister_clients_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_record_unregister_clients_request_t *_aux = (xcb_record_unregister_clients_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_record_unregister_clients_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* client_specs */ - xcb_block_len += _aux->num_client_specs * sizeof(xcb_record_client_spec_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_record_client_spec_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_record_unregister_clients_checked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - uint32_t num_client_specs /**< */, - const xcb_record_client_spec_t *client_specs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_UNREGISTER_CLIENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_record_unregister_clients_request_t xcb_out; - - xcb_out.context = context; - xcb_out.num_client_specs = num_client_specs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_record_client_spec_t client_specs */ - xcb_parts[4].iov_base = (char *) client_specs; - xcb_parts[4].iov_len = num_client_specs * sizeof(xcb_record_client_spec_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_record_unregister_clients (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - uint32_t num_client_specs /**< */, - const xcb_record_client_spec_t *client_specs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_UNREGISTER_CLIENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_record_unregister_clients_request_t xcb_out; - - xcb_out.context = context; - xcb_out.num_client_specs = num_client_specs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_record_client_spec_t client_specs */ - xcb_parts[4].iov_base = (char *) client_specs; - xcb_parts[4].iov_len = num_client_specs * sizeof(xcb_record_client_spec_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_record_get_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_record_get_context_reply_t *_aux = (xcb_record_get_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_record_get_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* intercepted_clients */ - for(i=0; i<_aux->num_intercepted_clients; i++) { - xcb_tmp_len = xcb_record_client_info_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_record_client_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_record_get_context_cookie_t -xcb_record_get_context (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_GET_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_record_get_context_cookie_t xcb_ret; - xcb_record_get_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_record_get_context_cookie_t -xcb_record_get_context_unchecked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_GET_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_record_get_context_cookie_t xcb_ret; - xcb_record_get_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_record_get_context_intercepted_clients_length (const xcb_record_get_context_reply_t *R /**< */) -{ - return R->num_intercepted_clients; -} - -xcb_record_client_info_iterator_t -xcb_record_get_context_intercepted_clients_iterator (const xcb_record_get_context_reply_t *R /**< */) -{ - xcb_record_client_info_iterator_t i; - i.data = (xcb_record_client_info_t *) (R + 1); - i.rem = R->num_intercepted_clients; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_record_get_context_reply_t * -xcb_record_get_context_reply (xcb_connection_t *c /**< */, - xcb_record_get_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_record_get_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_record_enable_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_record_enable_context_reply_t *_aux = (xcb_record_enable_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_record_enable_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->length * 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_record_enable_context_cookie_t -xcb_record_enable_context (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_ENABLE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_record_enable_context_cookie_t xcb_ret; - xcb_record_enable_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_record_enable_context_cookie_t -xcb_record_enable_context_unchecked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_ENABLE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_record_enable_context_cookie_t xcb_ret; - xcb_record_enable_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_record_enable_context_data (const xcb_record_enable_context_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_record_enable_context_data_length (const xcb_record_enable_context_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_record_enable_context_data_end (const xcb_record_enable_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_record_enable_context_reply_t * -xcb_record_enable_context_reply (xcb_connection_t *c /**< */, - xcb_record_enable_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_record_enable_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_record_disable_context_checked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_DISABLE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_record_disable_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_record_disable_context (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_DISABLE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_record_disable_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_record_free_context_checked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_FREE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_record_free_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_record_free_context (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_record_id, - /* opcode */ XCB_RECORD_FREE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_record_free_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - diff --git a/external/mit/xorg/lib/libxcb/files/record.h b/external/mit/xorg/lib/libxcb/files/record.h deleted file mode 100644 index 171e60e42..000000000 --- a/external/mit/xorg/lib/libxcb/files/record.h +++ /dev/null @@ -1,888 +0,0 @@ -/* - * This file generated automatically from record.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Record_API XCB Record API - * @brief Record XCB Protocol Implementation. - * @{ - **/ - -#ifndef __RECORD_H -#define __RECORD_H - -#include "xcb.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_RECORD_MAJOR_VERSION 1 -#define XCB_RECORD_MINOR_VERSION 13 - -extern xcb_extension_t xcb_record_id; - -typedef uint32_t xcb_record_context_t; - -/** - * @brief xcb_record_context_iterator_t - **/ -typedef struct xcb_record_context_iterator_t { - xcb_record_context_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_record_context_iterator_t; - -/** - * @brief xcb_record_range_8_t - **/ -typedef struct xcb_record_range_8_t { - uint8_t first; /**< */ - uint8_t last; /**< */ -} xcb_record_range_8_t; - -/** - * @brief xcb_record_range_8_iterator_t - **/ -typedef struct xcb_record_range_8_iterator_t { - xcb_record_range_8_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_record_range_8_iterator_t; - -/** - * @brief xcb_record_range_16_t - **/ -typedef struct xcb_record_range_16_t { - uint16_t first; /**< */ - uint16_t last; /**< */ -} xcb_record_range_16_t; - -/** - * @brief xcb_record_range_16_iterator_t - **/ -typedef struct xcb_record_range_16_iterator_t { - xcb_record_range_16_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_record_range_16_iterator_t; - -/** - * @brief xcb_record_ext_range_t - **/ -typedef struct xcb_record_ext_range_t { - xcb_record_range_8_t major; /**< */ - xcb_record_range_16_t minor; /**< */ -} xcb_record_ext_range_t; - -/** - * @brief xcb_record_ext_range_iterator_t - **/ -typedef struct xcb_record_ext_range_iterator_t { - xcb_record_ext_range_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_record_ext_range_iterator_t; - -/** - * @brief xcb_record_range_t - **/ -typedef struct xcb_record_range_t { - xcb_record_range_8_t core_requests; /**< */ - xcb_record_range_8_t core_replies; /**< */ - xcb_record_ext_range_t ext_requests; /**< */ - xcb_record_ext_range_t ext_replies; /**< */ - xcb_record_range_8_t delivered_events; /**< */ - xcb_record_range_8_t device_events; /**< */ - xcb_record_range_8_t errors; /**< */ - uint8_t client_started; /**< */ - uint8_t client_died; /**< */ -} xcb_record_range_t; - -/** - * @brief xcb_record_range_iterator_t - **/ -typedef struct xcb_record_range_iterator_t { - xcb_record_range_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_record_range_iterator_t; - -typedef uint8_t xcb_record_element_header_t; - -/** - * @brief xcb_record_element_header_iterator_t - **/ -typedef struct xcb_record_element_header_iterator_t { - xcb_record_element_header_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_record_element_header_iterator_t; - -typedef enum xcb_record_h_type_t { - XCB_RECORD_H_TYPE_FROM_SERVER_TIME = 1, - XCB_RECORD_H_TYPE_FROM_CLIENT_TIME = 2, - XCB_RECORD_H_TYPE_FROM_CLIENT_SEQUENCE = 4 -} xcb_record_h_type_t; - -typedef uint32_t xcb_record_client_spec_t; - -/** - * @brief xcb_record_client_spec_iterator_t - **/ -typedef struct xcb_record_client_spec_iterator_t { - xcb_record_client_spec_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_record_client_spec_iterator_t; - -typedef enum xcb_record_cs_t { - XCB_RECORD_CS_CURRENT_CLIENTS = 1, - XCB_RECORD_CS_FUTURE_CLIENTS = 2, - XCB_RECORD_CS_ALL_CLIENTS = 3 -} xcb_record_cs_t; - -/** - * @brief xcb_record_client_info_t - **/ -typedef struct xcb_record_client_info_t { - xcb_record_client_spec_t client_resource; /**< */ - uint32_t num_ranges; /**< */ -} xcb_record_client_info_t; - -/** - * @brief xcb_record_client_info_iterator_t - **/ -typedef struct xcb_record_client_info_iterator_t { - xcb_record_client_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_record_client_info_iterator_t; - -/** Opcode for xcb_record_bad_context. */ -#define XCB_RECORD_BAD_CONTEXT 0 - -/** - * @brief xcb_record_bad_context_error_t - **/ -typedef struct xcb_record_bad_context_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ - uint32_t invalid_record; /**< */ -} xcb_record_bad_context_error_t; - -/** - * @brief xcb_record_query_version_cookie_t - **/ -typedef struct xcb_record_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_record_query_version_cookie_t; - -/** Opcode for xcb_record_query_version. */ -#define XCB_RECORD_QUERY_VERSION 0 - -/** - * @brief xcb_record_query_version_request_t - **/ -typedef struct xcb_record_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t major_version; /**< */ - uint16_t minor_version; /**< */ -} xcb_record_query_version_request_t; - -/** - * @brief xcb_record_query_version_reply_t - **/ -typedef struct xcb_record_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t major_version; /**< */ - uint16_t minor_version; /**< */ -} xcb_record_query_version_reply_t; - -/** Opcode for xcb_record_create_context. */ -#define XCB_RECORD_CREATE_CONTEXT 1 - -/** - * @brief xcb_record_create_context_request_t - **/ -typedef struct xcb_record_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_record_context_t context; /**< */ - xcb_record_element_header_t element_header; /**< */ - uint8_t pad0[3]; /**< */ - uint32_t num_client_specs; /**< */ - uint32_t num_ranges; /**< */ -} xcb_record_create_context_request_t; - -/** Opcode for xcb_record_register_clients. */ -#define XCB_RECORD_REGISTER_CLIENTS 2 - -/** - * @brief xcb_record_register_clients_request_t - **/ -typedef struct xcb_record_register_clients_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_record_context_t context; /**< */ - xcb_record_element_header_t element_header; /**< */ - uint8_t pad0[3]; /**< */ - uint32_t num_client_specs; /**< */ - uint32_t num_ranges; /**< */ -} xcb_record_register_clients_request_t; - -/** Opcode for xcb_record_unregister_clients. */ -#define XCB_RECORD_UNREGISTER_CLIENTS 3 - -/** - * @brief xcb_record_unregister_clients_request_t - **/ -typedef struct xcb_record_unregister_clients_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_record_context_t context; /**< */ - uint32_t num_client_specs; /**< */ -} xcb_record_unregister_clients_request_t; - -/** - * @brief xcb_record_get_context_cookie_t - **/ -typedef struct xcb_record_get_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_record_get_context_cookie_t; - -/** Opcode for xcb_record_get_context. */ -#define XCB_RECORD_GET_CONTEXT 4 - -/** - * @brief xcb_record_get_context_request_t - **/ -typedef struct xcb_record_get_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_record_context_t context; /**< */ -} xcb_record_get_context_request_t; - -/** - * @brief xcb_record_get_context_reply_t - **/ -typedef struct xcb_record_get_context_reply_t { - uint8_t response_type; /**< */ - uint8_t enabled; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_record_element_header_t element_header; /**< */ - uint8_t pad0[3]; /**< */ - uint32_t num_intercepted_clients; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_record_get_context_reply_t; - -/** - * @brief xcb_record_enable_context_cookie_t - **/ -typedef struct xcb_record_enable_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_record_enable_context_cookie_t; - -/** Opcode for xcb_record_enable_context. */ -#define XCB_RECORD_ENABLE_CONTEXT 5 - -/** - * @brief xcb_record_enable_context_request_t - **/ -typedef struct xcb_record_enable_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_record_context_t context; /**< */ -} xcb_record_enable_context_request_t; - -/** - * @brief xcb_record_enable_context_reply_t - **/ -typedef struct xcb_record_enable_context_reply_t { - uint8_t response_type; /**< */ - uint8_t category; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_record_element_header_t element_header; /**< */ - uint8_t client_swapped; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t xid_base; /**< */ - uint32_t server_time; /**< */ - uint32_t rec_sequence_num; /**< */ - uint8_t pad1[8]; /**< */ -} xcb_record_enable_context_reply_t; - -/** Opcode for xcb_record_disable_context. */ -#define XCB_RECORD_DISABLE_CONTEXT 6 - -/** - * @brief xcb_record_disable_context_request_t - **/ -typedef struct xcb_record_disable_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_record_context_t context; /**< */ -} xcb_record_disable_context_request_t; - -/** Opcode for xcb_record_free_context. */ -#define XCB_RECORD_FREE_CONTEXT 7 - -/** - * @brief xcb_record_free_context_request_t - **/ -typedef struct xcb_record_free_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_record_context_t context; /**< */ -} xcb_record_free_context_request_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_record_context_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_record_context_t) - */ -void -xcb_record_context_next (xcb_record_context_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_record_context_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_record_context_end (xcb_record_context_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_record_range_8_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_record_range_8_t) - */ -void -xcb_record_range_8_next (xcb_record_range_8_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_record_range_8_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_record_range_8_end (xcb_record_range_8_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_record_range_16_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_record_range_16_t) - */ -void -xcb_record_range_16_next (xcb_record_range_16_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_record_range_16_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_record_range_16_end (xcb_record_range_16_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_record_ext_range_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_record_ext_range_t) - */ -void -xcb_record_ext_range_next (xcb_record_ext_range_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_record_ext_range_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_record_ext_range_end (xcb_record_ext_range_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_record_range_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_record_range_t) - */ -void -xcb_record_range_next (xcb_record_range_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_record_range_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_record_range_end (xcb_record_range_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_record_element_header_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_record_element_header_t) - */ -void -xcb_record_element_header_next (xcb_record_element_header_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_record_element_header_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_record_element_header_end (xcb_record_element_header_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_record_client_spec_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_record_client_spec_t) - */ -void -xcb_record_client_spec_next (xcb_record_client_spec_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_record_client_spec_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_record_client_spec_end (xcb_record_client_spec_iterator_t i /**< */); - -int -xcb_record_client_info_sizeof (const void *_buffer /**< */); - -xcb_record_range_t * -xcb_record_client_info_ranges (const xcb_record_client_info_t *R /**< */); - -int -xcb_record_client_info_ranges_length (const xcb_record_client_info_t *R /**< */); - -xcb_record_range_iterator_t -xcb_record_client_info_ranges_iterator (const xcb_record_client_info_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_record_client_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_record_client_info_t) - */ -void -xcb_record_client_info_next (xcb_record_client_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_record_client_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_record_client_info_end (xcb_record_client_info_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_record_query_version_cookie_t -xcb_record_query_version (xcb_connection_t *c /**< */, - uint16_t major_version /**< */, - uint16_t minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_record_query_version_cookie_t -xcb_record_query_version_unchecked (xcb_connection_t *c /**< */, - uint16_t major_version /**< */, - uint16_t minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_record_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_record_query_version_reply_t * -xcb_record_query_version_reply (xcb_connection_t *c /**< */, - xcb_record_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_record_create_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_record_create_context_checked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - xcb_record_element_header_t element_header /**< */, - uint32_t num_client_specs /**< */, - uint32_t num_ranges /**< */, - const xcb_record_client_spec_t *client_specs /**< */, - const xcb_record_range_t *ranges /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_record_create_context (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - xcb_record_element_header_t element_header /**< */, - uint32_t num_client_specs /**< */, - uint32_t num_ranges /**< */, - const xcb_record_client_spec_t *client_specs /**< */, - const xcb_record_range_t *ranges /**< */); - -int -xcb_record_register_clients_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_record_register_clients_checked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - xcb_record_element_header_t element_header /**< */, - uint32_t num_client_specs /**< */, - uint32_t num_ranges /**< */, - const xcb_record_client_spec_t *client_specs /**< */, - const xcb_record_range_t *ranges /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_record_register_clients (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - xcb_record_element_header_t element_header /**< */, - uint32_t num_client_specs /**< */, - uint32_t num_ranges /**< */, - const xcb_record_client_spec_t *client_specs /**< */, - const xcb_record_range_t *ranges /**< */); - -int -xcb_record_unregister_clients_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_record_unregister_clients_checked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - uint32_t num_client_specs /**< */, - const xcb_record_client_spec_t *client_specs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_record_unregister_clients (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */, - uint32_t num_client_specs /**< */, - const xcb_record_client_spec_t *client_specs /**< */); - -int -xcb_record_get_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_record_get_context_cookie_t -xcb_record_get_context (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_record_get_context_cookie_t -xcb_record_get_context_unchecked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */); - -int -xcb_record_get_context_intercepted_clients_length (const xcb_record_get_context_reply_t *R /**< */); - -xcb_record_client_info_iterator_t -xcb_record_get_context_intercepted_clients_iterator (const xcb_record_get_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_record_get_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_record_get_context_reply_t * -xcb_record_get_context_reply (xcb_connection_t *c /**< */, - xcb_record_get_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_record_enable_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_record_enable_context_cookie_t -xcb_record_enable_context (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_record_enable_context_cookie_t -xcb_record_enable_context_unchecked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */); - -uint8_t * -xcb_record_enable_context_data (const xcb_record_enable_context_reply_t *R /**< */); - -int -xcb_record_enable_context_data_length (const xcb_record_enable_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_record_enable_context_data_end (const xcb_record_enable_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_record_enable_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_record_enable_context_reply_t * -xcb_record_enable_context_reply (xcb_connection_t *c /**< */, - xcb_record_enable_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_record_disable_context_checked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_record_disable_context (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_record_free_context_checked (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_record_free_context (xcb_connection_t *c /**< */, - xcb_record_context_t context /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/render.c b/external/mit/xorg/lib/libxcb/files/render.c deleted file mode 100644 index 5ac468ce2..000000000 --- a/external/mit/xorg/lib/libxcb/files/render.c +++ /dev/null @@ -1,3747 +0,0 @@ -/* - * This file generated automatically from render.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "render.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_render_id = { "RENDER", 0 }; - -void -xcb_render_glyph_next (xcb_render_glyph_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_glyph_t); -} - -xcb_generic_iterator_t -xcb_render_glyph_end (xcb_render_glyph_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_glyphset_next (xcb_render_glyphset_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_glyphset_t); -} - -xcb_generic_iterator_t -xcb_render_glyphset_end (xcb_render_glyphset_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_picture_next (xcb_render_picture_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_picture_t); -} - -xcb_generic_iterator_t -xcb_render_picture_end (xcb_render_picture_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_pictformat_next (xcb_render_pictformat_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_pictformat_t); -} - -xcb_generic_iterator_t -xcb_render_pictformat_end (xcb_render_pictformat_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_fixed_next (xcb_render_fixed_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_fixed_t); -} - -xcb_generic_iterator_t -xcb_render_fixed_end (xcb_render_fixed_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_directformat_next (xcb_render_directformat_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_directformat_t); -} - -xcb_generic_iterator_t -xcb_render_directformat_end (xcb_render_directformat_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_pictforminfo_next (xcb_render_pictforminfo_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_pictforminfo_t); -} - -xcb_generic_iterator_t -xcb_render_pictforminfo_end (xcb_render_pictforminfo_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_pictvisual_next (xcb_render_pictvisual_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_pictvisual_t); -} - -xcb_generic_iterator_t -xcb_render_pictvisual_end (xcb_render_pictvisual_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_render_pictdepth_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_pictdepth_t *_aux = (xcb_render_pictdepth_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_pictdepth_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* visuals */ - xcb_block_len += _aux->num_visuals * sizeof(xcb_render_pictvisual_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_pictvisual_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_render_pictvisual_t * -xcb_render_pictdepth_visuals (const xcb_render_pictdepth_t *R /**< */) -{ - return (xcb_render_pictvisual_t *) (R + 1); -} - -int -xcb_render_pictdepth_visuals_length (const xcb_render_pictdepth_t *R /**< */) -{ - return R->num_visuals; -} - -xcb_render_pictvisual_iterator_t -xcb_render_pictdepth_visuals_iterator (const xcb_render_pictdepth_t *R /**< */) -{ - xcb_render_pictvisual_iterator_t i; - i.data = (xcb_render_pictvisual_t *) (R + 1); - i.rem = R->num_visuals; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_render_pictdepth_next (xcb_render_pictdepth_iterator_t *i /**< */) -{ - xcb_render_pictdepth_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_render_pictdepth_t *)(((char *)R) + xcb_render_pictdepth_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_render_pictdepth_t *) child.data; -} - -xcb_generic_iterator_t -xcb_render_pictdepth_end (xcb_render_pictdepth_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_render_pictdepth_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_render_pictscreen_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_pictscreen_t *_aux = (xcb_render_pictscreen_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_render_pictscreen_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* depths */ - for(i=0; i<_aux->num_depths; i++) { - xcb_tmp_len = xcb_render_pictdepth_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_render_pictdepth_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_render_pictscreen_depths_length (const xcb_render_pictscreen_t *R /**< */) -{ - return R->num_depths; -} - -xcb_render_pictdepth_iterator_t -xcb_render_pictscreen_depths_iterator (const xcb_render_pictscreen_t *R /**< */) -{ - xcb_render_pictdepth_iterator_t i; - i.data = (xcb_render_pictdepth_t *) (R + 1); - i.rem = R->num_depths; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_render_pictscreen_next (xcb_render_pictscreen_iterator_t *i /**< */) -{ - xcb_render_pictscreen_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_render_pictscreen_t *)(((char *)R) + xcb_render_pictscreen_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_render_pictscreen_t *) child.data; -} - -xcb_generic_iterator_t -xcb_render_pictscreen_end (xcb_render_pictscreen_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_render_pictscreen_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_render_indexvalue_next (xcb_render_indexvalue_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_indexvalue_t); -} - -xcb_generic_iterator_t -xcb_render_indexvalue_end (xcb_render_indexvalue_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_color_next (xcb_render_color_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_color_t); -} - -xcb_generic_iterator_t -xcb_render_color_end (xcb_render_color_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_pointfix_next (xcb_render_pointfix_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_pointfix_t); -} - -xcb_generic_iterator_t -xcb_render_pointfix_end (xcb_render_pointfix_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_linefix_next (xcb_render_linefix_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_linefix_t); -} - -xcb_generic_iterator_t -xcb_render_linefix_end (xcb_render_linefix_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_triangle_next (xcb_render_triangle_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_triangle_t); -} - -xcb_generic_iterator_t -xcb_render_triangle_end (xcb_render_triangle_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_trapezoid_next (xcb_render_trapezoid_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_trapezoid_t); -} - -xcb_generic_iterator_t -xcb_render_trapezoid_end (xcb_render_trapezoid_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_glyphinfo_next (xcb_render_glyphinfo_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_glyphinfo_t); -} - -xcb_generic_iterator_t -xcb_render_glyphinfo_end (xcb_render_glyphinfo_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_render_query_version_cookie_t -xcb_render_query_version (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_render_query_version_cookie_t xcb_ret; - xcb_render_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_render_query_version_cookie_t -xcb_render_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_render_query_version_cookie_t xcb_ret; - xcb_render_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_render_query_version_reply_t * -xcb_render_query_version_reply (xcb_connection_t *c /**< */, - xcb_render_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_render_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_render_query_pict_formats_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_query_pict_formats_reply_t *_aux = (xcb_render_query_pict_formats_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_render_query_pict_formats_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* formats */ - xcb_block_len += _aux->num_formats * sizeof(xcb_render_pictforminfo_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_pictforminfo_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* screens */ - for(i=0; i<_aux->num_screens; i++) { - xcb_tmp_len = xcb_render_pictscreen_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_render_pictscreen_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* subpixels */ - xcb_block_len += _aux->num_subpixel * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_render_query_pict_formats_cookie_t -xcb_render_query_pict_formats (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_QUERY_PICT_FORMATS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_render_query_pict_formats_cookie_t xcb_ret; - xcb_render_query_pict_formats_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_render_query_pict_formats_cookie_t -xcb_render_query_pict_formats_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_QUERY_PICT_FORMATS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_render_query_pict_formats_cookie_t xcb_ret; - xcb_render_query_pict_formats_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_render_pictforminfo_t * -xcb_render_query_pict_formats_formats (const xcb_render_query_pict_formats_reply_t *R /**< */) -{ - return (xcb_render_pictforminfo_t *) (R + 1); -} - -int -xcb_render_query_pict_formats_formats_length (const xcb_render_query_pict_formats_reply_t *R /**< */) -{ - return R->num_formats; -} - -xcb_render_pictforminfo_iterator_t -xcb_render_query_pict_formats_formats_iterator (const xcb_render_query_pict_formats_reply_t *R /**< */) -{ - xcb_render_pictforminfo_iterator_t i; - i.data = (xcb_render_pictforminfo_t *) (R + 1); - i.rem = R->num_formats; - i.index = (char *) i.data - (char *) R; - return i; -} - -int -xcb_render_query_pict_formats_screens_length (const xcb_render_query_pict_formats_reply_t *R /**< */) -{ - return R->num_screens; -} - -xcb_render_pictscreen_iterator_t -xcb_render_query_pict_formats_screens_iterator (const xcb_render_query_pict_formats_reply_t *R /**< */) -{ - xcb_render_pictscreen_iterator_t i; - xcb_generic_iterator_t prev = xcb_render_pictforminfo_end(xcb_render_query_pict_formats_formats_iterator(R)); - i.data = (xcb_render_pictscreen_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_render_pictscreen_t, prev.index)); - i.rem = R->num_screens; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint32_t * -xcb_render_query_pict_formats_subpixels (const xcb_render_query_pict_formats_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_render_pictscreen_end(xcb_render_query_pict_formats_screens_iterator(R)); - return (uint32_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index) + 0); -} - -int -xcb_render_query_pict_formats_subpixels_length (const xcb_render_query_pict_formats_reply_t *R /**< */) -{ - return R->num_subpixel; -} - -xcb_generic_iterator_t -xcb_render_query_pict_formats_subpixels_end (const xcb_render_query_pict_formats_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_render_pictscreen_end(xcb_render_query_pict_formats_screens_iterator(R)); - i.data = ((uint32_t *) child.data) + (R->num_subpixel); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_render_query_pict_formats_reply_t * -xcb_render_query_pict_formats_reply (xcb_connection_t *c /**< */, - xcb_render_query_pict_formats_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_render_query_pict_formats_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_render_query_pict_index_values_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_query_pict_index_values_reply_t *_aux = (xcb_render_query_pict_index_values_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_query_pict_index_values_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* values */ - xcb_block_len += _aux->num_values * sizeof(xcb_render_indexvalue_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_indexvalue_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_render_query_pict_index_values_cookie_t -xcb_render_query_pict_index_values (xcb_connection_t *c /**< */, - xcb_render_pictformat_t format /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_QUERY_PICT_INDEX_VALUES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_render_query_pict_index_values_cookie_t xcb_ret; - xcb_render_query_pict_index_values_request_t xcb_out; - - xcb_out.format = format; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_render_query_pict_index_values_cookie_t -xcb_render_query_pict_index_values_unchecked (xcb_connection_t *c /**< */, - xcb_render_pictformat_t format /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_QUERY_PICT_INDEX_VALUES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_render_query_pict_index_values_cookie_t xcb_ret; - xcb_render_query_pict_index_values_request_t xcb_out; - - xcb_out.format = format; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_render_indexvalue_t * -xcb_render_query_pict_index_values_values (const xcb_render_query_pict_index_values_reply_t *R /**< */) -{ - return (xcb_render_indexvalue_t *) (R + 1); -} - -int -xcb_render_query_pict_index_values_values_length (const xcb_render_query_pict_index_values_reply_t *R /**< */) -{ - return R->num_values; -} - -xcb_render_indexvalue_iterator_t -xcb_render_query_pict_index_values_values_iterator (const xcb_render_query_pict_index_values_reply_t *R /**< */) -{ - xcb_render_indexvalue_iterator_t i; - i.data = (xcb_render_indexvalue_t *) (R + 1); - i.rem = R->num_values; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_render_query_pict_index_values_reply_t * -xcb_render_query_pict_index_values_reply (xcb_connection_t *c /**< */, - xcb_render_query_pict_index_values_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_render_query_pict_index_values_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_render_create_picture_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_create_picture_request_t *_aux = (xcb_render_create_picture_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_create_picture_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* value_list */ - xcb_block_len += xcb_popcount(_aux->value_mask) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_create_picture_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t pid /**< */, - xcb_drawable_t drawable /**< */, - xcb_render_pictformat_t format /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_PICTURE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_picture_request_t xcb_out; - - xcb_out.pid = pid; - xcb_out.drawable = drawable; - xcb_out.format = format; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_create_picture (xcb_connection_t *c /**< */, - xcb_render_picture_t pid /**< */, - xcb_drawable_t drawable /**< */, - xcb_render_pictformat_t format /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_PICTURE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_picture_request_t xcb_out; - - xcb_out.pid = pid; - xcb_out.drawable = drawable; - xcb_out.format = format; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_change_picture_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_change_picture_request_t *_aux = (xcb_render_change_picture_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_change_picture_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* value_list */ - xcb_block_len += xcb_popcount(_aux->value_mask) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_change_picture_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CHANGE_PICTURE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_change_picture_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_change_picture (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CHANGE_PICTURE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_change_picture_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_set_picture_clip_rectangles_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_set_picture_clip_rectangles_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rectangles */ - xcb_block_len += rectangles_len * sizeof(xcb_rectangle_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_rectangle_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_set_picture_clip_rectangles_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - int16_t clip_x_origin /**< */, - int16_t clip_y_origin /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_SET_PICTURE_CLIP_RECTANGLES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_set_picture_clip_rectangles_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.clip_x_origin = clip_x_origin; - xcb_out.clip_y_origin = clip_y_origin; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_set_picture_clip_rectangles (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - int16_t clip_x_origin /**< */, - int16_t clip_y_origin /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_SET_PICTURE_CLIP_RECTANGLES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_set_picture_clip_rectangles_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.clip_x_origin = clip_x_origin; - xcb_out.clip_y_origin = clip_y_origin; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_free_picture_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_FREE_PICTURE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_free_picture_request_t xcb_out; - - xcb_out.picture = picture; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_free_picture (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_FREE_PICTURE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_free_picture_request_t xcb_out; - - xcb_out.picture = picture; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_composite_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t mask /**< */, - xcb_render_picture_t dst /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t mask_x /**< */, - int16_t mask_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_COMPOSITE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_composite_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.mask = mask; - xcb_out.dst = dst; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.mask_x = mask_x; - xcb_out.mask_y = mask_y; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_composite (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t mask /**< */, - xcb_render_picture_t dst /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t mask_x /**< */, - int16_t mask_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_COMPOSITE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_composite_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.mask = mask; - xcb_out.dst = dst; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.mask_x = mask_x; - xcb_out.mask_y = mask_y; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_trapezoids_sizeof (const void *_buffer /**< */, - uint32_t traps_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_trapezoids_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* traps */ - xcb_block_len += traps_len * sizeof(xcb_render_trapezoid_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_trapezoid_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_trapezoids_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t traps_len /**< */, - const xcb_render_trapezoid_t *traps /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_TRAPEZOIDS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_trapezoids_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_trapezoid_t traps */ - xcb_parts[4].iov_base = (char *) traps; - xcb_parts[4].iov_len = traps_len * sizeof(xcb_render_trapezoid_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_trapezoids (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t traps_len /**< */, - const xcb_render_trapezoid_t *traps /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_TRAPEZOIDS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_trapezoids_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_trapezoid_t traps */ - xcb_parts[4].iov_base = (char *) traps; - xcb_parts[4].iov_len = traps_len * sizeof(xcb_render_trapezoid_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_triangles_sizeof (const void *_buffer /**< */, - uint32_t triangles_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_triangles_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* triangles */ - xcb_block_len += triangles_len * sizeof(xcb_render_triangle_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_triangle_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_triangles_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t triangles_len /**< */, - const xcb_render_triangle_t *triangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_TRIANGLES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_triangles_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_triangle_t triangles */ - xcb_parts[4].iov_base = (char *) triangles; - xcb_parts[4].iov_len = triangles_len * sizeof(xcb_render_triangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_triangles (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t triangles_len /**< */, - const xcb_render_triangle_t *triangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_TRIANGLES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_triangles_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_triangle_t triangles */ - xcb_parts[4].iov_base = (char *) triangles; - xcb_parts[4].iov_len = triangles_len * sizeof(xcb_render_triangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_tri_strip_sizeof (const void *_buffer /**< */, - uint32_t points_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_tri_strip_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* points */ - xcb_block_len += points_len * sizeof(xcb_render_pointfix_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_pointfix_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_tri_strip_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t points_len /**< */, - const xcb_render_pointfix_t *points /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_TRI_STRIP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_tri_strip_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_pointfix_t points */ - xcb_parts[4].iov_base = (char *) points; - xcb_parts[4].iov_len = points_len * sizeof(xcb_render_pointfix_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_tri_strip (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t points_len /**< */, - const xcb_render_pointfix_t *points /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_TRI_STRIP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_tri_strip_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_pointfix_t points */ - xcb_parts[4].iov_base = (char *) points; - xcb_parts[4].iov_len = points_len * sizeof(xcb_render_pointfix_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_tri_fan_sizeof (const void *_buffer /**< */, - uint32_t points_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_tri_fan_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* points */ - xcb_block_len += points_len * sizeof(xcb_render_pointfix_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_pointfix_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_tri_fan_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t points_len /**< */, - const xcb_render_pointfix_t *points /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_TRI_FAN, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_tri_fan_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_pointfix_t points */ - xcb_parts[4].iov_base = (char *) points; - xcb_parts[4].iov_len = points_len * sizeof(xcb_render_pointfix_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_tri_fan (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t points_len /**< */, - const xcb_render_pointfix_t *points /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_TRI_FAN, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_tri_fan_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_pointfix_t points */ - xcb_parts[4].iov_base = (char *) points; - xcb_parts[4].iov_len = points_len * sizeof(xcb_render_pointfix_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_create_glyph_set_checked (xcb_connection_t *c /**< */, - xcb_render_glyphset_t gsid /**< */, - xcb_render_pictformat_t format /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_GLYPH_SET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_glyph_set_request_t xcb_out; - - xcb_out.gsid = gsid; - xcb_out.format = format; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_create_glyph_set (xcb_connection_t *c /**< */, - xcb_render_glyphset_t gsid /**< */, - xcb_render_pictformat_t format /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_GLYPH_SET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_glyph_set_request_t xcb_out; - - xcb_out.gsid = gsid; - xcb_out.format = format; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_reference_glyph_set_checked (xcb_connection_t *c /**< */, - xcb_render_glyphset_t gsid /**< */, - xcb_render_glyphset_t existing /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_REFERENCE_GLYPH_SET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_reference_glyph_set_request_t xcb_out; - - xcb_out.gsid = gsid; - xcb_out.existing = existing; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_reference_glyph_set (xcb_connection_t *c /**< */, - xcb_render_glyphset_t gsid /**< */, - xcb_render_glyphset_t existing /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_REFERENCE_GLYPH_SET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_reference_glyph_set_request_t xcb_out; - - xcb_out.gsid = gsid; - xcb_out.existing = existing; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_free_glyph_set_checked (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_FREE_GLYPH_SET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_free_glyph_set_request_t xcb_out; - - xcb_out.glyphset = glyphset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_free_glyph_set (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_FREE_GLYPH_SET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_free_glyph_set_request_t xcb_out; - - xcb_out.glyphset = glyphset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_add_glyphs_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_add_glyphs_request_t *_aux = (xcb_render_add_glyphs_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_add_glyphs_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* glyphids */ - xcb_block_len += _aux->glyphs_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* glyphs */ - xcb_block_len += _aux->glyphs_len * sizeof(xcb_render_glyphinfo_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_glyphinfo_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data */ - xcb_block_len += data_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_add_glyphs_checked (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */, - uint32_t glyphs_len /**< */, - const uint32_t *glyphids /**< */, - const xcb_render_glyphinfo_t *glyphs /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 8, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_ADD_GLYPHS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[10]; - xcb_void_cookie_t xcb_ret; - xcb_render_add_glyphs_request_t xcb_out; - - xcb_out.glyphset = glyphset; - xcb_out.glyphs_len = glyphs_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t glyphids */ - xcb_parts[4].iov_base = (char *) glyphids; - xcb_parts[4].iov_len = glyphs_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_glyphinfo_t glyphs */ - xcb_parts[6].iov_base = (char *) glyphs; - xcb_parts[6].iov_len = glyphs_len * sizeof(xcb_render_glyphinfo_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - /* uint8_t data */ - xcb_parts[8].iov_base = (char *) data; - xcb_parts[8].iov_len = data_len * sizeof(uint8_t); - xcb_parts[9].iov_base = 0; - xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_add_glyphs (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */, - uint32_t glyphs_len /**< */, - const uint32_t *glyphids /**< */, - const xcb_render_glyphinfo_t *glyphs /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 8, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_ADD_GLYPHS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[10]; - xcb_void_cookie_t xcb_ret; - xcb_render_add_glyphs_request_t xcb_out; - - xcb_out.glyphset = glyphset; - xcb_out.glyphs_len = glyphs_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t glyphids */ - xcb_parts[4].iov_base = (char *) glyphids; - xcb_parts[4].iov_len = glyphs_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_glyphinfo_t glyphs */ - xcb_parts[6].iov_base = (char *) glyphs; - xcb_parts[6].iov_len = glyphs_len * sizeof(xcb_render_glyphinfo_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - /* uint8_t data */ - xcb_parts[8].iov_base = (char *) data; - xcb_parts[8].iov_len = data_len * sizeof(uint8_t); - xcb_parts[9].iov_base = 0; - xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_free_glyphs_sizeof (const void *_buffer /**< */, - uint32_t glyphs_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_free_glyphs_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* glyphs */ - xcb_block_len += glyphs_len * sizeof(xcb_render_glyph_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_glyph_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_free_glyphs_checked (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */, - uint32_t glyphs_len /**< */, - const xcb_render_glyph_t *glyphs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_FREE_GLYPHS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_free_glyphs_request_t xcb_out; - - xcb_out.glyphset = glyphset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_glyph_t glyphs */ - xcb_parts[4].iov_base = (char *) glyphs; - xcb_parts[4].iov_len = glyphs_len * sizeof(xcb_render_glyph_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_free_glyphs (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */, - uint32_t glyphs_len /**< */, - const xcb_render_glyph_t *glyphs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_FREE_GLYPHS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_free_glyphs_request_t xcb_out; - - xcb_out.glyphset = glyphset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_glyph_t glyphs */ - xcb_parts[4].iov_base = (char *) glyphs; - xcb_parts[4].iov_len = glyphs_len * sizeof(xcb_render_glyph_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_composite_glyphs_8_sizeof (const void *_buffer /**< */, - uint32_t glyphcmds_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_composite_glyphs_8_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* glyphcmds */ - xcb_block_len += glyphcmds_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_composite_glyphs_8_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_COMPOSITE_GLYPHS_8, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_composite_glyphs_8_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.glyphset = glyphset; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t glyphcmds */ - xcb_parts[4].iov_base = (char *) glyphcmds; - xcb_parts[4].iov_len = glyphcmds_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_composite_glyphs_8 (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_COMPOSITE_GLYPHS_8, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_composite_glyphs_8_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.glyphset = glyphset; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t glyphcmds */ - xcb_parts[4].iov_base = (char *) glyphcmds; - xcb_parts[4].iov_len = glyphcmds_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_composite_glyphs_16_sizeof (const void *_buffer /**< */, - uint32_t glyphcmds_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_composite_glyphs_16_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* glyphcmds */ - xcb_block_len += glyphcmds_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_composite_glyphs_16_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_COMPOSITE_GLYPHS_16, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_composite_glyphs_16_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.glyphset = glyphset; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t glyphcmds */ - xcb_parts[4].iov_base = (char *) glyphcmds; - xcb_parts[4].iov_len = glyphcmds_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_composite_glyphs_16 (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_COMPOSITE_GLYPHS_16, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_composite_glyphs_16_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.glyphset = glyphset; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t glyphcmds */ - xcb_parts[4].iov_base = (char *) glyphcmds; - xcb_parts[4].iov_len = glyphcmds_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_composite_glyphs_32_sizeof (const void *_buffer /**< */, - uint32_t glyphcmds_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_composite_glyphs_32_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* glyphcmds */ - xcb_block_len += glyphcmds_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_composite_glyphs_32_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_COMPOSITE_GLYPHS_32, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_composite_glyphs_32_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.glyphset = glyphset; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t glyphcmds */ - xcb_parts[4].iov_base = (char *) glyphcmds; - xcb_parts[4].iov_len = glyphcmds_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_composite_glyphs_32 (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_COMPOSITE_GLYPHS_32, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_composite_glyphs_32_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.src = src; - xcb_out.dst = dst; - xcb_out.mask_format = mask_format; - xcb_out.glyphset = glyphset; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t glyphcmds */ - xcb_parts[4].iov_base = (char *) glyphcmds; - xcb_parts[4].iov_len = glyphcmds_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_fill_rectangles_sizeof (const void *_buffer /**< */, - uint32_t rects_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_fill_rectangles_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rects */ - xcb_block_len += rects_len * sizeof(xcb_rectangle_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_rectangle_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_fill_rectangles_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_color_t color /**< */, - uint32_t rects_len /**< */, - const xcb_rectangle_t *rects /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_FILL_RECTANGLES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_fill_rectangles_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.dst = dst; - xcb_out.color = color; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rects */ - xcb_parts[4].iov_base = (char *) rects; - xcb_parts[4].iov_len = rects_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_fill_rectangles (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_color_t color /**< */, - uint32_t rects_len /**< */, - const xcb_rectangle_t *rects /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_FILL_RECTANGLES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_fill_rectangles_request_t xcb_out; - - xcb_out.op = op; - memset(xcb_out.pad0, 0, 3); - xcb_out.dst = dst; - xcb_out.color = color; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rects */ - xcb_parts[4].iov_base = (char *) rects; - xcb_parts[4].iov_len = rects_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_create_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_render_picture_t source /**< */, - uint16_t x /**< */, - uint16_t y /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_cursor_request_t xcb_out; - - xcb_out.cid = cid; - xcb_out.source = source; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_create_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_render_picture_t source /**< */, - uint16_t x /**< */, - uint16_t y /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_cursor_request_t xcb_out; - - xcb_out.cid = cid; - xcb_out.source = source; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_render_transform_next (xcb_render_transform_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_transform_t); -} - -xcb_generic_iterator_t -xcb_render_transform_end (xcb_render_transform_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_void_cookie_t -xcb_render_set_picture_transform_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_transform_t transform /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_SET_PICTURE_TRANSFORM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_set_picture_transform_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.transform = transform; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_set_picture_transform (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_transform_t transform /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_SET_PICTURE_TRANSFORM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_set_picture_transform_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.transform = transform; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_query_filters_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_query_filters_reply_t *_aux = (xcb_render_query_filters_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_render_query_filters_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* aliases */ - xcb_block_len += _aux->num_aliases * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* filters */ - for(i=0; i<_aux->num_filters; i++) { - xcb_tmp_len = xcb_str_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_str_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_render_query_filters_cookie_t -xcb_render_query_filters (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_QUERY_FILTERS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_render_query_filters_cookie_t xcb_ret; - xcb_render_query_filters_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_render_query_filters_cookie_t -xcb_render_query_filters_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_QUERY_FILTERS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_render_query_filters_cookie_t xcb_ret; - xcb_render_query_filters_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint16_t * -xcb_render_query_filters_aliases (const xcb_render_query_filters_reply_t *R /**< */) -{ - return (uint16_t *) (R + 1); -} - -int -xcb_render_query_filters_aliases_length (const xcb_render_query_filters_reply_t *R /**< */) -{ - return R->num_aliases; -} - -xcb_generic_iterator_t -xcb_render_query_filters_aliases_end (const xcb_render_query_filters_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint16_t *) (R + 1)) + (R->num_aliases); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -int -xcb_render_query_filters_filters_length (const xcb_render_query_filters_reply_t *R /**< */) -{ - return R->num_filters; -} - -xcb_str_iterator_t -xcb_render_query_filters_filters_iterator (const xcb_render_query_filters_reply_t *R /**< */) -{ - xcb_str_iterator_t i; - xcb_generic_iterator_t prev = xcb_render_query_filters_aliases_end(R); - i.data = (xcb_str_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_str_t, prev.index)); - i.rem = R->num_filters; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_render_query_filters_reply_t * -xcb_render_query_filters_reply (xcb_connection_t *c /**< */, - xcb_render_query_filters_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_render_query_filters_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_render_set_picture_filter_sizeof (const void *_buffer /**< */, - uint32_t values_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_set_picture_filter_request_t *_aux = (xcb_render_set_picture_filter_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_set_picture_filter_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* filter */ - xcb_block_len += _aux->filter_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* values */ - xcb_block_len += values_len * sizeof(xcb_render_fixed_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_fixed_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_set_picture_filter_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - uint16_t filter_len /**< */, - const char *filter /**< */, - uint32_t values_len /**< */, - const xcb_render_fixed_t *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_SET_PICTURE_FILTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_render_set_picture_filter_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.filter_len = filter_len; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char filter */ - xcb_parts[4].iov_base = (char *) filter; - xcb_parts[4].iov_len = filter_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_fixed_t values */ - xcb_parts[6].iov_base = (char *) values; - xcb_parts[6].iov_len = values_len * sizeof(xcb_render_fixed_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_set_picture_filter (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - uint16_t filter_len /**< */, - const char *filter /**< */, - uint32_t values_len /**< */, - const xcb_render_fixed_t *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_SET_PICTURE_FILTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_render_set_picture_filter_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.filter_len = filter_len; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char filter */ - xcb_parts[4].iov_base = (char *) filter; - xcb_parts[4].iov_len = filter_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_fixed_t values */ - xcb_parts[6].iov_base = (char *) values; - xcb_parts[6].iov_len = values_len * sizeof(xcb_render_fixed_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_render_animcursorelt_next (xcb_render_animcursorelt_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_animcursorelt_t); -} - -xcb_generic_iterator_t -xcb_render_animcursorelt_end (xcb_render_animcursorelt_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_render_create_anim_cursor_sizeof (const void *_buffer /**< */, - uint32_t cursors_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_create_anim_cursor_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* cursors */ - xcb_block_len += cursors_len * sizeof(xcb_render_animcursorelt_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_animcursorelt_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_create_anim_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - uint32_t cursors_len /**< */, - const xcb_render_animcursorelt_t *cursors /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_ANIM_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_anim_cursor_request_t xcb_out; - - xcb_out.cid = cid; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_animcursorelt_t cursors */ - xcb_parts[4].iov_base = (char *) cursors; - xcb_parts[4].iov_len = cursors_len * sizeof(xcb_render_animcursorelt_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_create_anim_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - uint32_t cursors_len /**< */, - const xcb_render_animcursorelt_t *cursors /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_ANIM_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_anim_cursor_request_t xcb_out; - - xcb_out.cid = cid; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_animcursorelt_t cursors */ - xcb_parts[4].iov_base = (char *) cursors; - xcb_parts[4].iov_len = cursors_len * sizeof(xcb_render_animcursorelt_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_render_spanfix_next (xcb_render_spanfix_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_spanfix_t); -} - -xcb_generic_iterator_t -xcb_render_spanfix_end (xcb_render_spanfix_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_render_trap_next (xcb_render_trap_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_render_trap_t); -} - -xcb_generic_iterator_t -xcb_render_trap_end (xcb_render_trap_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_render_add_traps_sizeof (const void *_buffer /**< */, - uint32_t traps_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_add_traps_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* traps */ - xcb_block_len += traps_len * sizeof(xcb_render_trap_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_trap_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_add_traps_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - int16_t x_off /**< */, - int16_t y_off /**< */, - uint32_t traps_len /**< */, - const xcb_render_trap_t *traps /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_ADD_TRAPS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_add_traps_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.x_off = x_off; - xcb_out.y_off = y_off; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_trap_t traps */ - xcb_parts[4].iov_base = (char *) traps; - xcb_parts[4].iov_len = traps_len * sizeof(xcb_render_trap_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_add_traps (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - int16_t x_off /**< */, - int16_t y_off /**< */, - uint32_t traps_len /**< */, - const xcb_render_trap_t *traps /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_ADD_TRAPS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_render_add_traps_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.x_off = x_off; - xcb_out.y_off = y_off; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_trap_t traps */ - xcb_parts[4].iov_base = (char *) traps; - xcb_parts[4].iov_len = traps_len * sizeof(xcb_render_trap_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_create_solid_fill_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_color_t color /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_SOLID_FILL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_solid_fill_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.color = color; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_create_solid_fill (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_color_t color /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_SOLID_FILL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_solid_fill_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.color = color; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_create_linear_gradient_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_create_linear_gradient_request_t *_aux = (xcb_render_create_linear_gradient_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_create_linear_gradient_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* stops */ - xcb_block_len += _aux->num_stops * sizeof(xcb_render_fixed_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_fixed_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* colors */ - xcb_block_len += _aux->num_stops * sizeof(xcb_render_color_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_color_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_create_linear_gradient_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t p1 /**< */, - xcb_render_pointfix_t p2 /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_LINEAR_GRADIENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_linear_gradient_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.p1 = p1; - xcb_out.p2 = p2; - xcb_out.num_stops = num_stops; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_fixed_t stops */ - xcb_parts[4].iov_base = (char *) stops; - xcb_parts[4].iov_len = num_stops * sizeof(xcb_render_fixed_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_color_t colors */ - xcb_parts[6].iov_base = (char *) colors; - xcb_parts[6].iov_len = num_stops * sizeof(xcb_render_color_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_create_linear_gradient (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t p1 /**< */, - xcb_render_pointfix_t p2 /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_LINEAR_GRADIENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_linear_gradient_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.p1 = p1; - xcb_out.p2 = p2; - xcb_out.num_stops = num_stops; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_fixed_t stops */ - xcb_parts[4].iov_base = (char *) stops; - xcb_parts[4].iov_len = num_stops * sizeof(xcb_render_fixed_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_color_t colors */ - xcb_parts[6].iov_base = (char *) colors; - xcb_parts[6].iov_len = num_stops * sizeof(xcb_render_color_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_create_radial_gradient_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_create_radial_gradient_request_t *_aux = (xcb_render_create_radial_gradient_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_create_radial_gradient_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* stops */ - xcb_block_len += _aux->num_stops * sizeof(xcb_render_fixed_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_fixed_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* colors */ - xcb_block_len += _aux->num_stops * sizeof(xcb_render_color_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_color_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_create_radial_gradient_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t inner /**< */, - xcb_render_pointfix_t outer /**< */, - xcb_render_fixed_t inner_radius /**< */, - xcb_render_fixed_t outer_radius /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_RADIAL_GRADIENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_radial_gradient_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.inner = inner; - xcb_out.outer = outer; - xcb_out.inner_radius = inner_radius; - xcb_out.outer_radius = outer_radius; - xcb_out.num_stops = num_stops; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_fixed_t stops */ - xcb_parts[4].iov_base = (char *) stops; - xcb_parts[4].iov_len = num_stops * sizeof(xcb_render_fixed_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_color_t colors */ - xcb_parts[6].iov_base = (char *) colors; - xcb_parts[6].iov_len = num_stops * sizeof(xcb_render_color_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_create_radial_gradient (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t inner /**< */, - xcb_render_pointfix_t outer /**< */, - xcb_render_fixed_t inner_radius /**< */, - xcb_render_fixed_t outer_radius /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_RADIAL_GRADIENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_radial_gradient_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.inner = inner; - xcb_out.outer = outer; - xcb_out.inner_radius = inner_radius; - xcb_out.outer_radius = outer_radius; - xcb_out.num_stops = num_stops; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_fixed_t stops */ - xcb_parts[4].iov_base = (char *) stops; - xcb_parts[4].iov_len = num_stops * sizeof(xcb_render_fixed_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_color_t colors */ - xcb_parts[6].iov_base = (char *) colors; - xcb_parts[6].iov_len = num_stops * sizeof(xcb_render_color_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_render_create_conical_gradient_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_render_create_conical_gradient_request_t *_aux = (xcb_render_create_conical_gradient_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_render_create_conical_gradient_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* stops */ - xcb_block_len += _aux->num_stops * sizeof(xcb_render_fixed_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_fixed_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* colors */ - xcb_block_len += _aux->num_stops * sizeof(xcb_render_color_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_render_color_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_render_create_conical_gradient_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t center /**< */, - xcb_render_fixed_t angle /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_CONICAL_GRADIENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_conical_gradient_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.center = center; - xcb_out.angle = angle; - xcb_out.num_stops = num_stops; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_fixed_t stops */ - xcb_parts[4].iov_base = (char *) stops; - xcb_parts[4].iov_len = num_stops * sizeof(xcb_render_fixed_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_color_t colors */ - xcb_parts[6].iov_base = (char *) colors; - xcb_parts[6].iov_len = num_stops * sizeof(xcb_render_color_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_render_create_conical_gradient (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t center /**< */, - xcb_render_fixed_t angle /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_render_id, - /* opcode */ XCB_RENDER_CREATE_CONICAL_GRADIENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_render_create_conical_gradient_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.center = center; - xcb_out.angle = angle; - xcb_out.num_stops = num_stops; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_render_fixed_t stops */ - xcb_parts[4].iov_base = (char *) stops; - xcb_parts[4].iov_len = num_stops * sizeof(xcb_render_fixed_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_render_color_t colors */ - xcb_parts[6].iov_base = (char *) colors; - xcb_parts[6].iov_len = num_stops * sizeof(xcb_render_color_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - diff --git a/external/mit/xorg/lib/libxcb/files/render.h b/external/mit/xorg/lib/libxcb/files/render.h deleted file mode 100644 index 8b4a5243d..000000000 --- a/external/mit/xorg/lib/libxcb/files/render.h +++ /dev/null @@ -1,2917 +0,0 @@ -/* - * This file generated automatically from render.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Render_API XCB Render API - * @brief Render XCB Protocol Implementation. - * @{ - **/ - -#ifndef __RENDER_H -#define __RENDER_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_RENDER_MAJOR_VERSION 0 -#define XCB_RENDER_MINOR_VERSION 11 - -extern xcb_extension_t xcb_render_id; - -typedef enum xcb_render_pict_type_t { - XCB_RENDER_PICT_TYPE_INDEXED = 0, - XCB_RENDER_PICT_TYPE_DIRECT = 1 -} xcb_render_pict_type_t; - -typedef enum xcb_render_picture_enum_t { - XCB_RENDER_PICTURE_NONE = 0 -} xcb_render_picture_enum_t; - -typedef enum xcb_render_pict_op_t { - XCB_RENDER_PICT_OP_CLEAR = 0, - XCB_RENDER_PICT_OP_SRC = 1, - XCB_RENDER_PICT_OP_DST = 2, - XCB_RENDER_PICT_OP_OVER = 3, - XCB_RENDER_PICT_OP_OVER_REVERSE = 4, - XCB_RENDER_PICT_OP_IN = 5, - XCB_RENDER_PICT_OP_IN_REVERSE = 6, - XCB_RENDER_PICT_OP_OUT = 7, - XCB_RENDER_PICT_OP_OUT_REVERSE = 8, - XCB_RENDER_PICT_OP_ATOP = 9, - XCB_RENDER_PICT_OP_ATOP_REVERSE = 10, - XCB_RENDER_PICT_OP_XOR = 11, - XCB_RENDER_PICT_OP_ADD = 12, - XCB_RENDER_PICT_OP_SATURATE = 13, - XCB_RENDER_PICT_OP_DISJOINT_CLEAR = 16, - XCB_RENDER_PICT_OP_DISJOINT_SRC = 17, - XCB_RENDER_PICT_OP_DISJOINT_DST = 18, - XCB_RENDER_PICT_OP_DISJOINT_OVER = 19, - XCB_RENDER_PICT_OP_DISJOINT_OVER_REVERSE = 20, - XCB_RENDER_PICT_OP_DISJOINT_IN = 21, - XCB_RENDER_PICT_OP_DISJOINT_IN_REVERSE = 22, - XCB_RENDER_PICT_OP_DISJOINT_OUT = 23, - XCB_RENDER_PICT_OP_DISJOINT_OUT_REVERSE = 24, - XCB_RENDER_PICT_OP_DISJOINT_ATOP = 25, - XCB_RENDER_PICT_OP_DISJOINT_ATOP_REVERSE = 26, - XCB_RENDER_PICT_OP_DISJOINT_XOR = 27, - XCB_RENDER_PICT_OP_CONJOINT_CLEAR = 32, - XCB_RENDER_PICT_OP_CONJOINT_SRC = 33, - XCB_RENDER_PICT_OP_CONJOINT_DST = 34, - XCB_RENDER_PICT_OP_CONJOINT_OVER = 35, - XCB_RENDER_PICT_OP_CONJOINT_OVER_REVERSE = 36, - XCB_RENDER_PICT_OP_CONJOINT_IN = 37, - XCB_RENDER_PICT_OP_CONJOINT_IN_REVERSE = 38, - XCB_RENDER_PICT_OP_CONJOINT_OUT = 39, - XCB_RENDER_PICT_OP_CONJOINT_OUT_REVERSE = 40, - XCB_RENDER_PICT_OP_CONJOINT_ATOP = 41, - XCB_RENDER_PICT_OP_CONJOINT_ATOP_REVERSE = 42, - XCB_RENDER_PICT_OP_CONJOINT_XOR = 43, - XCB_RENDER_PICT_OP_MULTIPLY = 48, - XCB_RENDER_PICT_OP_SCREEN = 49, - XCB_RENDER_PICT_OP_OVERLAY = 50, - XCB_RENDER_PICT_OP_DARKEN = 51, - XCB_RENDER_PICT_OP_LIGHTEN = 52, - XCB_RENDER_PICT_OP_COLOR_DODGE = 53, - XCB_RENDER_PICT_OP_COLOR_BURN = 54, - XCB_RENDER_PICT_OP_HARD_LIGHT = 55, - XCB_RENDER_PICT_OP_SOFT_LIGHT = 56, - XCB_RENDER_PICT_OP_DIFFERENCE = 57, - XCB_RENDER_PICT_OP_EXCLUSION = 58, - XCB_RENDER_PICT_OP_HSL_HUE = 59, - XCB_RENDER_PICT_OP_HSL_SATURATION = 60, - XCB_RENDER_PICT_OP_HSL_COLOR = 61, - XCB_RENDER_PICT_OP_HSL_LUMINOSITY = 62 -} xcb_render_pict_op_t; - -typedef enum xcb_render_poly_edge_t { - XCB_RENDER_POLY_EDGE_SHARP = 0, - XCB_RENDER_POLY_EDGE_SMOOTH = 1 -} xcb_render_poly_edge_t; - -typedef enum xcb_render_poly_mode_t { - XCB_RENDER_POLY_MODE_PRECISE = 0, - XCB_RENDER_POLY_MODE_IMPRECISE = 1 -} xcb_render_poly_mode_t; - -typedef enum xcb_render_cp_t { - XCB_RENDER_CP_REPEAT = 1, - XCB_RENDER_CP_ALPHA_MAP = 2, - XCB_RENDER_CP_ALPHA_X_ORIGIN = 4, - XCB_RENDER_CP_ALPHA_Y_ORIGIN = 8, - XCB_RENDER_CP_CLIP_X_ORIGIN = 16, - XCB_RENDER_CP_CLIP_Y_ORIGIN = 32, - XCB_RENDER_CP_CLIP_MASK = 64, - XCB_RENDER_CP_GRAPHICS_EXPOSURE = 128, - XCB_RENDER_CP_SUBWINDOW_MODE = 256, - XCB_RENDER_CP_POLY_EDGE = 512, - XCB_RENDER_CP_POLY_MODE = 1024, - XCB_RENDER_CP_DITHER = 2048, - XCB_RENDER_CP_COMPONENT_ALPHA = 4096 -} xcb_render_cp_t; - -typedef enum xcb_render_sub_pixel_t { - XCB_RENDER_SUB_PIXEL_UNKNOWN = 0, - XCB_RENDER_SUB_PIXEL_HORIZONTAL_RGB = 1, - XCB_RENDER_SUB_PIXEL_HORIZONTAL_BGR = 2, - XCB_RENDER_SUB_PIXEL_VERTICAL_RGB = 3, - XCB_RENDER_SUB_PIXEL_VERTICAL_BGR = 4, - XCB_RENDER_SUB_PIXEL_NONE = 5 -} xcb_render_sub_pixel_t; - -typedef enum xcb_render_repeat_t { - XCB_RENDER_REPEAT_NONE = 0, - XCB_RENDER_REPEAT_NORMAL = 1, - XCB_RENDER_REPEAT_PAD = 2, - XCB_RENDER_REPEAT_REFLECT = 3 -} xcb_render_repeat_t; - -typedef uint32_t xcb_render_glyph_t; - -/** - * @brief xcb_render_glyph_iterator_t - **/ -typedef struct xcb_render_glyph_iterator_t { - xcb_render_glyph_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_glyph_iterator_t; - -typedef uint32_t xcb_render_glyphset_t; - -/** - * @brief xcb_render_glyphset_iterator_t - **/ -typedef struct xcb_render_glyphset_iterator_t { - xcb_render_glyphset_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_glyphset_iterator_t; - -typedef uint32_t xcb_render_picture_t; - -/** - * @brief xcb_render_picture_iterator_t - **/ -typedef struct xcb_render_picture_iterator_t { - xcb_render_picture_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_picture_iterator_t; - -typedef uint32_t xcb_render_pictformat_t; - -/** - * @brief xcb_render_pictformat_iterator_t - **/ -typedef struct xcb_render_pictformat_iterator_t { - xcb_render_pictformat_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_pictformat_iterator_t; - -typedef int32_t xcb_render_fixed_t; - -/** - * @brief xcb_render_fixed_iterator_t - **/ -typedef struct xcb_render_fixed_iterator_t { - xcb_render_fixed_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_fixed_iterator_t; - -/** Opcode for xcb_render_pict_format. */ -#define XCB_RENDER_PICT_FORMAT 0 - -/** - * @brief xcb_render_pict_format_error_t - **/ -typedef struct xcb_render_pict_format_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_render_pict_format_error_t; - -/** Opcode for xcb_render_picture. */ -#define XCB_RENDER_PICTURE 1 - -/** - * @brief xcb_render_picture_error_t - **/ -typedef struct xcb_render_picture_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_render_picture_error_t; - -/** Opcode for xcb_render_pict_op. */ -#define XCB_RENDER_PICT_OP 2 - -/** - * @brief xcb_render_pict_op_error_t - **/ -typedef struct xcb_render_pict_op_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_render_pict_op_error_t; - -/** Opcode for xcb_render_glyph_set. */ -#define XCB_RENDER_GLYPH_SET 3 - -/** - * @brief xcb_render_glyph_set_error_t - **/ -typedef struct xcb_render_glyph_set_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_render_glyph_set_error_t; - -/** Opcode for xcb_render_glyph. */ -#define XCB_RENDER_GLYPH 4 - -/** - * @brief xcb_render_glyph_error_t - **/ -typedef struct xcb_render_glyph_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_render_glyph_error_t; - -/** - * @brief xcb_render_directformat_t - **/ -typedef struct xcb_render_directformat_t { - uint16_t red_shift; /**< */ - uint16_t red_mask; /**< */ - uint16_t green_shift; /**< */ - uint16_t green_mask; /**< */ - uint16_t blue_shift; /**< */ - uint16_t blue_mask; /**< */ - uint16_t alpha_shift; /**< */ - uint16_t alpha_mask; /**< */ -} xcb_render_directformat_t; - -/** - * @brief xcb_render_directformat_iterator_t - **/ -typedef struct xcb_render_directformat_iterator_t { - xcb_render_directformat_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_directformat_iterator_t; - -/** - * @brief xcb_render_pictforminfo_t - **/ -typedef struct xcb_render_pictforminfo_t { - xcb_render_pictformat_t id; /**< */ - uint8_t type; /**< */ - uint8_t depth; /**< */ - uint8_t pad0[2]; /**< */ - xcb_render_directformat_t direct; /**< */ - xcb_colormap_t colormap; /**< */ -} xcb_render_pictforminfo_t; - -/** - * @brief xcb_render_pictforminfo_iterator_t - **/ -typedef struct xcb_render_pictforminfo_iterator_t { - xcb_render_pictforminfo_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_pictforminfo_iterator_t; - -/** - * @brief xcb_render_pictvisual_t - **/ -typedef struct xcb_render_pictvisual_t { - xcb_visualid_t visual; /**< */ - xcb_render_pictformat_t format; /**< */ -} xcb_render_pictvisual_t; - -/** - * @brief xcb_render_pictvisual_iterator_t - **/ -typedef struct xcb_render_pictvisual_iterator_t { - xcb_render_pictvisual_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_pictvisual_iterator_t; - -/** - * @brief xcb_render_pictdepth_t - **/ -typedef struct xcb_render_pictdepth_t { - uint8_t depth; /**< */ - uint8_t pad0; /**< */ - uint16_t num_visuals; /**< */ - uint8_t pad1[4]; /**< */ -} xcb_render_pictdepth_t; - -/** - * @brief xcb_render_pictdepth_iterator_t - **/ -typedef struct xcb_render_pictdepth_iterator_t { - xcb_render_pictdepth_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_pictdepth_iterator_t; - -/** - * @brief xcb_render_pictscreen_t - **/ -typedef struct xcb_render_pictscreen_t { - uint32_t num_depths; /**< */ - xcb_render_pictformat_t fallback; /**< */ -} xcb_render_pictscreen_t; - -/** - * @brief xcb_render_pictscreen_iterator_t - **/ -typedef struct xcb_render_pictscreen_iterator_t { - xcb_render_pictscreen_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_pictscreen_iterator_t; - -/** - * @brief xcb_render_indexvalue_t - **/ -typedef struct xcb_render_indexvalue_t { - uint32_t pixel; /**< */ - uint16_t red; /**< */ - uint16_t green; /**< */ - uint16_t blue; /**< */ - uint16_t alpha; /**< */ -} xcb_render_indexvalue_t; - -/** - * @brief xcb_render_indexvalue_iterator_t - **/ -typedef struct xcb_render_indexvalue_iterator_t { - xcb_render_indexvalue_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_indexvalue_iterator_t; - -/** - * @brief xcb_render_color_t - **/ -typedef struct xcb_render_color_t { - uint16_t red; /**< */ - uint16_t green; /**< */ - uint16_t blue; /**< */ - uint16_t alpha; /**< */ -} xcb_render_color_t; - -/** - * @brief xcb_render_color_iterator_t - **/ -typedef struct xcb_render_color_iterator_t { - xcb_render_color_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_color_iterator_t; - -/** - * @brief xcb_render_pointfix_t - **/ -typedef struct xcb_render_pointfix_t { - xcb_render_fixed_t x; /**< */ - xcb_render_fixed_t y; /**< */ -} xcb_render_pointfix_t; - -/** - * @brief xcb_render_pointfix_iterator_t - **/ -typedef struct xcb_render_pointfix_iterator_t { - xcb_render_pointfix_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_pointfix_iterator_t; - -/** - * @brief xcb_render_linefix_t - **/ -typedef struct xcb_render_linefix_t { - xcb_render_pointfix_t p1; /**< */ - xcb_render_pointfix_t p2; /**< */ -} xcb_render_linefix_t; - -/** - * @brief xcb_render_linefix_iterator_t - **/ -typedef struct xcb_render_linefix_iterator_t { - xcb_render_linefix_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_linefix_iterator_t; - -/** - * @brief xcb_render_triangle_t - **/ -typedef struct xcb_render_triangle_t { - xcb_render_pointfix_t p1; /**< */ - xcb_render_pointfix_t p2; /**< */ - xcb_render_pointfix_t p3; /**< */ -} xcb_render_triangle_t; - -/** - * @brief xcb_render_triangle_iterator_t - **/ -typedef struct xcb_render_triangle_iterator_t { - xcb_render_triangle_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_triangle_iterator_t; - -/** - * @brief xcb_render_trapezoid_t - **/ -typedef struct xcb_render_trapezoid_t { - xcb_render_fixed_t top; /**< */ - xcb_render_fixed_t bottom; /**< */ - xcb_render_linefix_t left; /**< */ - xcb_render_linefix_t right; /**< */ -} xcb_render_trapezoid_t; - -/** - * @brief xcb_render_trapezoid_iterator_t - **/ -typedef struct xcb_render_trapezoid_iterator_t { - xcb_render_trapezoid_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_trapezoid_iterator_t; - -/** - * @brief xcb_render_glyphinfo_t - **/ -typedef struct xcb_render_glyphinfo_t { - uint16_t width; /**< */ - uint16_t height; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - int16_t x_off; /**< */ - int16_t y_off; /**< */ -} xcb_render_glyphinfo_t; - -/** - * @brief xcb_render_glyphinfo_iterator_t - **/ -typedef struct xcb_render_glyphinfo_iterator_t { - xcb_render_glyphinfo_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_glyphinfo_iterator_t; - -/** - * @brief xcb_render_query_version_cookie_t - **/ -typedef struct xcb_render_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_render_query_version_cookie_t; - -/** Opcode for xcb_render_query_version. */ -#define XCB_RENDER_QUERY_VERSION 0 - -/** - * @brief xcb_render_query_version_request_t - **/ -typedef struct xcb_render_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t client_major_version; /**< */ - uint32_t client_minor_version; /**< */ -} xcb_render_query_version_request_t; - -/** - * @brief xcb_render_query_version_reply_t - **/ -typedef struct xcb_render_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_render_query_version_reply_t; - -/** - * @brief xcb_render_query_pict_formats_cookie_t - **/ -typedef struct xcb_render_query_pict_formats_cookie_t { - unsigned int sequence; /**< */ -} xcb_render_query_pict_formats_cookie_t; - -/** Opcode for xcb_render_query_pict_formats. */ -#define XCB_RENDER_QUERY_PICT_FORMATS 1 - -/** - * @brief xcb_render_query_pict_formats_request_t - **/ -typedef struct xcb_render_query_pict_formats_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_render_query_pict_formats_request_t; - -/** - * @brief xcb_render_query_pict_formats_reply_t - **/ -typedef struct xcb_render_query_pict_formats_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_formats; /**< */ - uint32_t num_screens; /**< */ - uint32_t num_depths; /**< */ - uint32_t num_visuals; /**< */ - uint32_t num_subpixel; /**< */ - uint8_t pad1[4]; /**< */ -} xcb_render_query_pict_formats_reply_t; - -/** - * @brief xcb_render_query_pict_index_values_cookie_t - **/ -typedef struct xcb_render_query_pict_index_values_cookie_t { - unsigned int sequence; /**< */ -} xcb_render_query_pict_index_values_cookie_t; - -/** Opcode for xcb_render_query_pict_index_values. */ -#define XCB_RENDER_QUERY_PICT_INDEX_VALUES 2 - -/** - * @brief xcb_render_query_pict_index_values_request_t - **/ -typedef struct xcb_render_query_pict_index_values_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_pictformat_t format; /**< */ -} xcb_render_query_pict_index_values_request_t; - -/** - * @brief xcb_render_query_pict_index_values_reply_t - **/ -typedef struct xcb_render_query_pict_index_values_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_values; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_render_query_pict_index_values_reply_t; - -/** Opcode for xcb_render_create_picture. */ -#define XCB_RENDER_CREATE_PICTURE 4 - -/** - * @brief xcb_render_create_picture_request_t - **/ -typedef struct xcb_render_create_picture_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t pid; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_render_pictformat_t format; /**< */ - uint32_t value_mask; /**< */ -} xcb_render_create_picture_request_t; - -/** Opcode for xcb_render_change_picture. */ -#define XCB_RENDER_CHANGE_PICTURE 5 - -/** - * @brief xcb_render_change_picture_request_t - **/ -typedef struct xcb_render_change_picture_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t picture; /**< */ - uint32_t value_mask; /**< */ -} xcb_render_change_picture_request_t; - -/** Opcode for xcb_render_set_picture_clip_rectangles. */ -#define XCB_RENDER_SET_PICTURE_CLIP_RECTANGLES 6 - -/** - * @brief xcb_render_set_picture_clip_rectangles_request_t - **/ -typedef struct xcb_render_set_picture_clip_rectangles_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t picture; /**< */ - int16_t clip_x_origin; /**< */ - int16_t clip_y_origin; /**< */ -} xcb_render_set_picture_clip_rectangles_request_t; - -/** Opcode for xcb_render_free_picture. */ -#define XCB_RENDER_FREE_PICTURE 7 - -/** - * @brief xcb_render_free_picture_request_t - **/ -typedef struct xcb_render_free_picture_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t picture; /**< */ -} xcb_render_free_picture_request_t; - -/** Opcode for xcb_render_composite. */ -#define XCB_RENDER_COMPOSITE 8 - -/** - * @brief xcb_render_composite_request_t - **/ -typedef struct xcb_render_composite_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t op; /**< */ - uint8_t pad0[3]; /**< */ - xcb_render_picture_t src; /**< */ - xcb_render_picture_t mask; /**< */ - xcb_render_picture_t dst; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ - int16_t mask_x; /**< */ - int16_t mask_y; /**< */ - int16_t dst_x; /**< */ - int16_t dst_y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_render_composite_request_t; - -/** Opcode for xcb_render_trapezoids. */ -#define XCB_RENDER_TRAPEZOIDS 10 - -/** - * @brief xcb_render_trapezoids_request_t - **/ -typedef struct xcb_render_trapezoids_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t op; /**< */ - uint8_t pad0[3]; /**< */ - xcb_render_picture_t src; /**< */ - xcb_render_picture_t dst; /**< */ - xcb_render_pictformat_t mask_format; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ -} xcb_render_trapezoids_request_t; - -/** Opcode for xcb_render_triangles. */ -#define XCB_RENDER_TRIANGLES 11 - -/** - * @brief xcb_render_triangles_request_t - **/ -typedef struct xcb_render_triangles_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t op; /**< */ - uint8_t pad0[3]; /**< */ - xcb_render_picture_t src; /**< */ - xcb_render_picture_t dst; /**< */ - xcb_render_pictformat_t mask_format; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ -} xcb_render_triangles_request_t; - -/** Opcode for xcb_render_tri_strip. */ -#define XCB_RENDER_TRI_STRIP 12 - -/** - * @brief xcb_render_tri_strip_request_t - **/ -typedef struct xcb_render_tri_strip_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t op; /**< */ - uint8_t pad0[3]; /**< */ - xcb_render_picture_t src; /**< */ - xcb_render_picture_t dst; /**< */ - xcb_render_pictformat_t mask_format; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ -} xcb_render_tri_strip_request_t; - -/** Opcode for xcb_render_tri_fan. */ -#define XCB_RENDER_TRI_FAN 13 - -/** - * @brief xcb_render_tri_fan_request_t - **/ -typedef struct xcb_render_tri_fan_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t op; /**< */ - uint8_t pad0[3]; /**< */ - xcb_render_picture_t src; /**< */ - xcb_render_picture_t dst; /**< */ - xcb_render_pictformat_t mask_format; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ -} xcb_render_tri_fan_request_t; - -/** Opcode for xcb_render_create_glyph_set. */ -#define XCB_RENDER_CREATE_GLYPH_SET 17 - -/** - * @brief xcb_render_create_glyph_set_request_t - **/ -typedef struct xcb_render_create_glyph_set_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_glyphset_t gsid; /**< */ - xcb_render_pictformat_t format; /**< */ -} xcb_render_create_glyph_set_request_t; - -/** Opcode for xcb_render_reference_glyph_set. */ -#define XCB_RENDER_REFERENCE_GLYPH_SET 18 - -/** - * @brief xcb_render_reference_glyph_set_request_t - **/ -typedef struct xcb_render_reference_glyph_set_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_glyphset_t gsid; /**< */ - xcb_render_glyphset_t existing; /**< */ -} xcb_render_reference_glyph_set_request_t; - -/** Opcode for xcb_render_free_glyph_set. */ -#define XCB_RENDER_FREE_GLYPH_SET 19 - -/** - * @brief xcb_render_free_glyph_set_request_t - **/ -typedef struct xcb_render_free_glyph_set_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_glyphset_t glyphset; /**< */ -} xcb_render_free_glyph_set_request_t; - -/** Opcode for xcb_render_add_glyphs. */ -#define XCB_RENDER_ADD_GLYPHS 20 - -/** - * @brief xcb_render_add_glyphs_request_t - **/ -typedef struct xcb_render_add_glyphs_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_glyphset_t glyphset; /**< */ - uint32_t glyphs_len; /**< */ -} xcb_render_add_glyphs_request_t; - -/** Opcode for xcb_render_free_glyphs. */ -#define XCB_RENDER_FREE_GLYPHS 22 - -/** - * @brief xcb_render_free_glyphs_request_t - **/ -typedef struct xcb_render_free_glyphs_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_glyphset_t glyphset; /**< */ -} xcb_render_free_glyphs_request_t; - -/** Opcode for xcb_render_composite_glyphs_8. */ -#define XCB_RENDER_COMPOSITE_GLYPHS_8 23 - -/** - * @brief xcb_render_composite_glyphs_8_request_t - **/ -typedef struct xcb_render_composite_glyphs_8_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t op; /**< */ - uint8_t pad0[3]; /**< */ - xcb_render_picture_t src; /**< */ - xcb_render_picture_t dst; /**< */ - xcb_render_pictformat_t mask_format; /**< */ - xcb_render_glyphset_t glyphset; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ -} xcb_render_composite_glyphs_8_request_t; - -/** Opcode for xcb_render_composite_glyphs_16. */ -#define XCB_RENDER_COMPOSITE_GLYPHS_16 24 - -/** - * @brief xcb_render_composite_glyphs_16_request_t - **/ -typedef struct xcb_render_composite_glyphs_16_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t op; /**< */ - uint8_t pad0[3]; /**< */ - xcb_render_picture_t src; /**< */ - xcb_render_picture_t dst; /**< */ - xcb_render_pictformat_t mask_format; /**< */ - xcb_render_glyphset_t glyphset; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ -} xcb_render_composite_glyphs_16_request_t; - -/** Opcode for xcb_render_composite_glyphs_32. */ -#define XCB_RENDER_COMPOSITE_GLYPHS_32 25 - -/** - * @brief xcb_render_composite_glyphs_32_request_t - **/ -typedef struct xcb_render_composite_glyphs_32_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t op; /**< */ - uint8_t pad0[3]; /**< */ - xcb_render_picture_t src; /**< */ - xcb_render_picture_t dst; /**< */ - xcb_render_pictformat_t mask_format; /**< */ - xcb_render_glyphset_t glyphset; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ -} xcb_render_composite_glyphs_32_request_t; - -/** Opcode for xcb_render_fill_rectangles. */ -#define XCB_RENDER_FILL_RECTANGLES 26 - -/** - * @brief xcb_render_fill_rectangles_request_t - **/ -typedef struct xcb_render_fill_rectangles_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t op; /**< */ - uint8_t pad0[3]; /**< */ - xcb_render_picture_t dst; /**< */ - xcb_render_color_t color; /**< */ -} xcb_render_fill_rectangles_request_t; - -/** Opcode for xcb_render_create_cursor. */ -#define XCB_RENDER_CREATE_CURSOR 27 - -/** - * @brief xcb_render_create_cursor_request_t - **/ -typedef struct xcb_render_create_cursor_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_cursor_t cid; /**< */ - xcb_render_picture_t source; /**< */ - uint16_t x; /**< */ - uint16_t y; /**< */ -} xcb_render_create_cursor_request_t; - -/** - * @brief xcb_render_transform_t - **/ -typedef struct xcb_render_transform_t { - xcb_render_fixed_t matrix11; /**< */ - xcb_render_fixed_t matrix12; /**< */ - xcb_render_fixed_t matrix13; /**< */ - xcb_render_fixed_t matrix21; /**< */ - xcb_render_fixed_t matrix22; /**< */ - xcb_render_fixed_t matrix23; /**< */ - xcb_render_fixed_t matrix31; /**< */ - xcb_render_fixed_t matrix32; /**< */ - xcb_render_fixed_t matrix33; /**< */ -} xcb_render_transform_t; - -/** - * @brief xcb_render_transform_iterator_t - **/ -typedef struct xcb_render_transform_iterator_t { - xcb_render_transform_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_transform_iterator_t; - -/** Opcode for xcb_render_set_picture_transform. */ -#define XCB_RENDER_SET_PICTURE_TRANSFORM 28 - -/** - * @brief xcb_render_set_picture_transform_request_t - **/ -typedef struct xcb_render_set_picture_transform_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t picture; /**< */ - xcb_render_transform_t transform; /**< */ -} xcb_render_set_picture_transform_request_t; - -/** - * @brief xcb_render_query_filters_cookie_t - **/ -typedef struct xcb_render_query_filters_cookie_t { - unsigned int sequence; /**< */ -} xcb_render_query_filters_cookie_t; - -/** Opcode for xcb_render_query_filters. */ -#define XCB_RENDER_QUERY_FILTERS 29 - -/** - * @brief xcb_render_query_filters_request_t - **/ -typedef struct xcb_render_query_filters_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ -} xcb_render_query_filters_request_t; - -/** - * @brief xcb_render_query_filters_reply_t - **/ -typedef struct xcb_render_query_filters_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_aliases; /**< */ - uint32_t num_filters; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_render_query_filters_reply_t; - -/** Opcode for xcb_render_set_picture_filter. */ -#define XCB_RENDER_SET_PICTURE_FILTER 30 - -/** - * @brief xcb_render_set_picture_filter_request_t - **/ -typedef struct xcb_render_set_picture_filter_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t picture; /**< */ - uint16_t filter_len; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_render_set_picture_filter_request_t; - -/** - * @brief xcb_render_animcursorelt_t - **/ -typedef struct xcb_render_animcursorelt_t { - xcb_cursor_t cursor; /**< */ - uint32_t delay; /**< */ -} xcb_render_animcursorelt_t; - -/** - * @brief xcb_render_animcursorelt_iterator_t - **/ -typedef struct xcb_render_animcursorelt_iterator_t { - xcb_render_animcursorelt_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_animcursorelt_iterator_t; - -/** Opcode for xcb_render_create_anim_cursor. */ -#define XCB_RENDER_CREATE_ANIM_CURSOR 31 - -/** - * @brief xcb_render_create_anim_cursor_request_t - **/ -typedef struct xcb_render_create_anim_cursor_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_cursor_t cid; /**< */ -} xcb_render_create_anim_cursor_request_t; - -/** - * @brief xcb_render_spanfix_t - **/ -typedef struct xcb_render_spanfix_t { - xcb_render_fixed_t l; /**< */ - xcb_render_fixed_t r; /**< */ - xcb_render_fixed_t y; /**< */ -} xcb_render_spanfix_t; - -/** - * @brief xcb_render_spanfix_iterator_t - **/ -typedef struct xcb_render_spanfix_iterator_t { - xcb_render_spanfix_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_spanfix_iterator_t; - -/** - * @brief xcb_render_trap_t - **/ -typedef struct xcb_render_trap_t { - xcb_render_spanfix_t top; /**< */ - xcb_render_spanfix_t bot; /**< */ -} xcb_render_trap_t; - -/** - * @brief xcb_render_trap_iterator_t - **/ -typedef struct xcb_render_trap_iterator_t { - xcb_render_trap_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_render_trap_iterator_t; - -/** Opcode for xcb_render_add_traps. */ -#define XCB_RENDER_ADD_TRAPS 32 - -/** - * @brief xcb_render_add_traps_request_t - **/ -typedef struct xcb_render_add_traps_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t picture; /**< */ - int16_t x_off; /**< */ - int16_t y_off; /**< */ -} xcb_render_add_traps_request_t; - -/** Opcode for xcb_render_create_solid_fill. */ -#define XCB_RENDER_CREATE_SOLID_FILL 33 - -/** - * @brief xcb_render_create_solid_fill_request_t - **/ -typedef struct xcb_render_create_solid_fill_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t picture; /**< */ - xcb_render_color_t color; /**< */ -} xcb_render_create_solid_fill_request_t; - -/** Opcode for xcb_render_create_linear_gradient. */ -#define XCB_RENDER_CREATE_LINEAR_GRADIENT 34 - -/** - * @brief xcb_render_create_linear_gradient_request_t - **/ -typedef struct xcb_render_create_linear_gradient_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t picture; /**< */ - xcb_render_pointfix_t p1; /**< */ - xcb_render_pointfix_t p2; /**< */ - uint32_t num_stops; /**< */ -} xcb_render_create_linear_gradient_request_t; - -/** Opcode for xcb_render_create_radial_gradient. */ -#define XCB_RENDER_CREATE_RADIAL_GRADIENT 35 - -/** - * @brief xcb_render_create_radial_gradient_request_t - **/ -typedef struct xcb_render_create_radial_gradient_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t picture; /**< */ - xcb_render_pointfix_t inner; /**< */ - xcb_render_pointfix_t outer; /**< */ - xcb_render_fixed_t inner_radius; /**< */ - xcb_render_fixed_t outer_radius; /**< */ - uint32_t num_stops; /**< */ -} xcb_render_create_radial_gradient_request_t; - -/** Opcode for xcb_render_create_conical_gradient. */ -#define XCB_RENDER_CREATE_CONICAL_GRADIENT 36 - -/** - * @brief xcb_render_create_conical_gradient_request_t - **/ -typedef struct xcb_render_create_conical_gradient_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t picture; /**< */ - xcb_render_pointfix_t center; /**< */ - xcb_render_fixed_t angle; /**< */ - uint32_t num_stops; /**< */ -} xcb_render_create_conical_gradient_request_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_glyph_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_glyph_t) - */ -void -xcb_render_glyph_next (xcb_render_glyph_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_glyph_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_glyph_end (xcb_render_glyph_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_glyphset_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_glyphset_t) - */ -void -xcb_render_glyphset_next (xcb_render_glyphset_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_glyphset_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_glyphset_end (xcb_render_glyphset_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_picture_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_picture_t) - */ -void -xcb_render_picture_next (xcb_render_picture_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_picture_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_picture_end (xcb_render_picture_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_pictformat_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_pictformat_t) - */ -void -xcb_render_pictformat_next (xcb_render_pictformat_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_pictformat_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_pictformat_end (xcb_render_pictformat_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_fixed_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_fixed_t) - */ -void -xcb_render_fixed_next (xcb_render_fixed_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_fixed_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_fixed_end (xcb_render_fixed_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_directformat_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_directformat_t) - */ -void -xcb_render_directformat_next (xcb_render_directformat_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_directformat_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_directformat_end (xcb_render_directformat_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_pictforminfo_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_pictforminfo_t) - */ -void -xcb_render_pictforminfo_next (xcb_render_pictforminfo_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_pictforminfo_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_pictforminfo_end (xcb_render_pictforminfo_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_pictvisual_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_pictvisual_t) - */ -void -xcb_render_pictvisual_next (xcb_render_pictvisual_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_pictvisual_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_pictvisual_end (xcb_render_pictvisual_iterator_t i /**< */); - -int -xcb_render_pictdepth_sizeof (const void *_buffer /**< */); - -xcb_render_pictvisual_t * -xcb_render_pictdepth_visuals (const xcb_render_pictdepth_t *R /**< */); - -int -xcb_render_pictdepth_visuals_length (const xcb_render_pictdepth_t *R /**< */); - -xcb_render_pictvisual_iterator_t -xcb_render_pictdepth_visuals_iterator (const xcb_render_pictdepth_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_pictdepth_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_pictdepth_t) - */ -void -xcb_render_pictdepth_next (xcb_render_pictdepth_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_pictdepth_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_pictdepth_end (xcb_render_pictdepth_iterator_t i /**< */); - -int -xcb_render_pictscreen_sizeof (const void *_buffer /**< */); - -int -xcb_render_pictscreen_depths_length (const xcb_render_pictscreen_t *R /**< */); - -xcb_render_pictdepth_iterator_t -xcb_render_pictscreen_depths_iterator (const xcb_render_pictscreen_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_pictscreen_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_pictscreen_t) - */ -void -xcb_render_pictscreen_next (xcb_render_pictscreen_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_pictscreen_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_pictscreen_end (xcb_render_pictscreen_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_indexvalue_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_indexvalue_t) - */ -void -xcb_render_indexvalue_next (xcb_render_indexvalue_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_indexvalue_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_indexvalue_end (xcb_render_indexvalue_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_color_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_color_t) - */ -void -xcb_render_color_next (xcb_render_color_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_color_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_color_end (xcb_render_color_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_pointfix_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_pointfix_t) - */ -void -xcb_render_pointfix_next (xcb_render_pointfix_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_pointfix_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_pointfix_end (xcb_render_pointfix_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_linefix_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_linefix_t) - */ -void -xcb_render_linefix_next (xcb_render_linefix_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_linefix_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_linefix_end (xcb_render_linefix_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_triangle_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_triangle_t) - */ -void -xcb_render_triangle_next (xcb_render_triangle_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_triangle_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_triangle_end (xcb_render_triangle_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_trapezoid_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_trapezoid_t) - */ -void -xcb_render_trapezoid_next (xcb_render_trapezoid_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_trapezoid_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_trapezoid_end (xcb_render_trapezoid_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_glyphinfo_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_glyphinfo_t) - */ -void -xcb_render_glyphinfo_next (xcb_render_glyphinfo_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_glyphinfo_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_glyphinfo_end (xcb_render_glyphinfo_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_render_query_version_cookie_t -xcb_render_query_version (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_render_query_version_cookie_t -xcb_render_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_render_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_render_query_version_reply_t * -xcb_render_query_version_reply (xcb_connection_t *c /**< */, - xcb_render_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_render_query_pict_formats_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_render_query_pict_formats_cookie_t -xcb_render_query_pict_formats (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_render_query_pict_formats_cookie_t -xcb_render_query_pict_formats_unchecked (xcb_connection_t *c /**< */); - -xcb_render_pictforminfo_t * -xcb_render_query_pict_formats_formats (const xcb_render_query_pict_formats_reply_t *R /**< */); - -int -xcb_render_query_pict_formats_formats_length (const xcb_render_query_pict_formats_reply_t *R /**< */); - -xcb_render_pictforminfo_iterator_t -xcb_render_query_pict_formats_formats_iterator (const xcb_render_query_pict_formats_reply_t *R /**< */); - -int -xcb_render_query_pict_formats_screens_length (const xcb_render_query_pict_formats_reply_t *R /**< */); - -xcb_render_pictscreen_iterator_t -xcb_render_query_pict_formats_screens_iterator (const xcb_render_query_pict_formats_reply_t *R /**< */); - -uint32_t * -xcb_render_query_pict_formats_subpixels (const xcb_render_query_pict_formats_reply_t *R /**< */); - -int -xcb_render_query_pict_formats_subpixels_length (const xcb_render_query_pict_formats_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_render_query_pict_formats_subpixels_end (const xcb_render_query_pict_formats_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_render_query_pict_formats_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_render_query_pict_formats_reply_t * -xcb_render_query_pict_formats_reply (xcb_connection_t *c /**< */, - xcb_render_query_pict_formats_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_render_query_pict_index_values_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_render_query_pict_index_values_cookie_t -xcb_render_query_pict_index_values (xcb_connection_t *c /**< */, - xcb_render_pictformat_t format /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_render_query_pict_index_values_cookie_t -xcb_render_query_pict_index_values_unchecked (xcb_connection_t *c /**< */, - xcb_render_pictformat_t format /**< */); - -xcb_render_indexvalue_t * -xcb_render_query_pict_index_values_values (const xcb_render_query_pict_index_values_reply_t *R /**< */); - -int -xcb_render_query_pict_index_values_values_length (const xcb_render_query_pict_index_values_reply_t *R /**< */); - -xcb_render_indexvalue_iterator_t -xcb_render_query_pict_index_values_values_iterator (const xcb_render_query_pict_index_values_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_render_query_pict_index_values_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_render_query_pict_index_values_reply_t * -xcb_render_query_pict_index_values_reply (xcb_connection_t *c /**< */, - xcb_render_query_pict_index_values_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_render_create_picture_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_create_picture_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t pid /**< */, - xcb_drawable_t drawable /**< */, - xcb_render_pictformat_t format /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_create_picture (xcb_connection_t *c /**< */, - xcb_render_picture_t pid /**< */, - xcb_drawable_t drawable /**< */, - xcb_render_pictformat_t format /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -int -xcb_render_change_picture_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_change_picture_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_change_picture (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -int -xcb_render_set_picture_clip_rectangles_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_set_picture_clip_rectangles_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - int16_t clip_x_origin /**< */, - int16_t clip_y_origin /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_set_picture_clip_rectangles (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - int16_t clip_x_origin /**< */, - int16_t clip_y_origin /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_free_picture_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_free_picture (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_composite_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t mask /**< */, - xcb_render_picture_t dst /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t mask_x /**< */, - int16_t mask_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_composite (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t mask /**< */, - xcb_render_picture_t dst /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t mask_x /**< */, - int16_t mask_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -int -xcb_render_trapezoids_sizeof (const void *_buffer /**< */, - uint32_t traps_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_trapezoids_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t traps_len /**< */, - const xcb_render_trapezoid_t *traps /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_trapezoids (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t traps_len /**< */, - const xcb_render_trapezoid_t *traps /**< */); - -int -xcb_render_triangles_sizeof (const void *_buffer /**< */, - uint32_t triangles_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_triangles_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t triangles_len /**< */, - const xcb_render_triangle_t *triangles /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_triangles (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t triangles_len /**< */, - const xcb_render_triangle_t *triangles /**< */); - -int -xcb_render_tri_strip_sizeof (const void *_buffer /**< */, - uint32_t points_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_tri_strip_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t points_len /**< */, - const xcb_render_pointfix_t *points /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_tri_strip (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t points_len /**< */, - const xcb_render_pointfix_t *points /**< */); - -int -xcb_render_tri_fan_sizeof (const void *_buffer /**< */, - uint32_t points_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_tri_fan_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t points_len /**< */, - const xcb_render_pointfix_t *points /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_tri_fan (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t points_len /**< */, - const xcb_render_pointfix_t *points /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_create_glyph_set_checked (xcb_connection_t *c /**< */, - xcb_render_glyphset_t gsid /**< */, - xcb_render_pictformat_t format /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_create_glyph_set (xcb_connection_t *c /**< */, - xcb_render_glyphset_t gsid /**< */, - xcb_render_pictformat_t format /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_reference_glyph_set_checked (xcb_connection_t *c /**< */, - xcb_render_glyphset_t gsid /**< */, - xcb_render_glyphset_t existing /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_reference_glyph_set (xcb_connection_t *c /**< */, - xcb_render_glyphset_t gsid /**< */, - xcb_render_glyphset_t existing /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_free_glyph_set_checked (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_free_glyph_set (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */); - -int -xcb_render_add_glyphs_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_add_glyphs_checked (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */, - uint32_t glyphs_len /**< */, - const uint32_t *glyphids /**< */, - const xcb_render_glyphinfo_t *glyphs /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_add_glyphs (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */, - uint32_t glyphs_len /**< */, - const uint32_t *glyphids /**< */, - const xcb_render_glyphinfo_t *glyphs /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -int -xcb_render_free_glyphs_sizeof (const void *_buffer /**< */, - uint32_t glyphs_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_free_glyphs_checked (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */, - uint32_t glyphs_len /**< */, - const xcb_render_glyph_t *glyphs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_free_glyphs (xcb_connection_t *c /**< */, - xcb_render_glyphset_t glyphset /**< */, - uint32_t glyphs_len /**< */, - const xcb_render_glyph_t *glyphs /**< */); - -int -xcb_render_composite_glyphs_8_sizeof (const void *_buffer /**< */, - uint32_t glyphcmds_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_composite_glyphs_8_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_composite_glyphs_8 (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */); - -int -xcb_render_composite_glyphs_16_sizeof (const void *_buffer /**< */, - uint32_t glyphcmds_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_composite_glyphs_16_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_composite_glyphs_16 (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */); - -int -xcb_render_composite_glyphs_32_sizeof (const void *_buffer /**< */, - uint32_t glyphcmds_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_composite_glyphs_32_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_composite_glyphs_32 (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t src /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_pictformat_t mask_format /**< */, - xcb_render_glyphset_t glyphset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint32_t glyphcmds_len /**< */, - const uint8_t *glyphcmds /**< */); - -int -xcb_render_fill_rectangles_sizeof (const void *_buffer /**< */, - uint32_t rects_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_fill_rectangles_checked (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_color_t color /**< */, - uint32_t rects_len /**< */, - const xcb_rectangle_t *rects /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_fill_rectangles (xcb_connection_t *c /**< */, - uint8_t op /**< */, - xcb_render_picture_t dst /**< */, - xcb_render_color_t color /**< */, - uint32_t rects_len /**< */, - const xcb_rectangle_t *rects /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_create_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_render_picture_t source /**< */, - uint16_t x /**< */, - uint16_t y /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_create_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_render_picture_t source /**< */, - uint16_t x /**< */, - uint16_t y /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_transform_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_transform_t) - */ -void -xcb_render_transform_next (xcb_render_transform_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_transform_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_transform_end (xcb_render_transform_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_set_picture_transform_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_transform_t transform /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_set_picture_transform (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_transform_t transform /**< */); - -int -xcb_render_query_filters_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_render_query_filters_cookie_t -xcb_render_query_filters (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_render_query_filters_cookie_t -xcb_render_query_filters_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -uint16_t * -xcb_render_query_filters_aliases (const xcb_render_query_filters_reply_t *R /**< */); - -int -xcb_render_query_filters_aliases_length (const xcb_render_query_filters_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_render_query_filters_aliases_end (const xcb_render_query_filters_reply_t *R /**< */); - -int -xcb_render_query_filters_filters_length (const xcb_render_query_filters_reply_t *R /**< */); - -xcb_str_iterator_t -xcb_render_query_filters_filters_iterator (const xcb_render_query_filters_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_render_query_filters_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_render_query_filters_reply_t * -xcb_render_query_filters_reply (xcb_connection_t *c /**< */, - xcb_render_query_filters_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_render_set_picture_filter_sizeof (const void *_buffer /**< */, - uint32_t values_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_set_picture_filter_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - uint16_t filter_len /**< */, - const char *filter /**< */, - uint32_t values_len /**< */, - const xcb_render_fixed_t *values /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_set_picture_filter (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - uint16_t filter_len /**< */, - const char *filter /**< */, - uint32_t values_len /**< */, - const xcb_render_fixed_t *values /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_animcursorelt_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_animcursorelt_t) - */ -void -xcb_render_animcursorelt_next (xcb_render_animcursorelt_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_animcursorelt_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_animcursorelt_end (xcb_render_animcursorelt_iterator_t i /**< */); - -int -xcb_render_create_anim_cursor_sizeof (const void *_buffer /**< */, - uint32_t cursors_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_create_anim_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - uint32_t cursors_len /**< */, - const xcb_render_animcursorelt_t *cursors /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_create_anim_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - uint32_t cursors_len /**< */, - const xcb_render_animcursorelt_t *cursors /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_spanfix_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_spanfix_t) - */ -void -xcb_render_spanfix_next (xcb_render_spanfix_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_spanfix_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_spanfix_end (xcb_render_spanfix_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_render_trap_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_render_trap_t) - */ -void -xcb_render_trap_next (xcb_render_trap_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_render_trap_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_render_trap_end (xcb_render_trap_iterator_t i /**< */); - -int -xcb_render_add_traps_sizeof (const void *_buffer /**< */, - uint32_t traps_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_add_traps_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - int16_t x_off /**< */, - int16_t y_off /**< */, - uint32_t traps_len /**< */, - const xcb_render_trap_t *traps /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_add_traps (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - int16_t x_off /**< */, - int16_t y_off /**< */, - uint32_t traps_len /**< */, - const xcb_render_trap_t *traps /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_create_solid_fill_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_color_t color /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_create_solid_fill (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_color_t color /**< */); - -int -xcb_render_create_linear_gradient_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_create_linear_gradient_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t p1 /**< */, - xcb_render_pointfix_t p2 /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_create_linear_gradient (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t p1 /**< */, - xcb_render_pointfix_t p2 /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */); - -int -xcb_render_create_radial_gradient_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_create_radial_gradient_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t inner /**< */, - xcb_render_pointfix_t outer /**< */, - xcb_render_fixed_t inner_radius /**< */, - xcb_render_fixed_t outer_radius /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_create_radial_gradient (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t inner /**< */, - xcb_render_pointfix_t outer /**< */, - xcb_render_fixed_t inner_radius /**< */, - xcb_render_fixed_t outer_radius /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */); - -int -xcb_render_create_conical_gradient_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_render_create_conical_gradient_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t center /**< */, - xcb_render_fixed_t angle /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_render_create_conical_gradient (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_render_pointfix_t center /**< */, - xcb_render_fixed_t angle /**< */, - uint32_t num_stops /**< */, - const xcb_render_fixed_t *stops /**< */, - const xcb_render_color_t *colors /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/res.c b/external/mit/xorg/lib/libxcb/files/res.c deleted file mode 100644 index 6f1bba517..000000000 --- a/external/mit/xorg/lib/libxcb/files/res.c +++ /dev/null @@ -1,850 +0,0 @@ -/* - * This file generated automatically from res.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "res.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_res_id = { "X-Resource", 0 }; - -void -xcb_res_client_next (xcb_res_client_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_res_client_t); -} - -xcb_generic_iterator_t -xcb_res_client_end (xcb_res_client_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_res_type_next (xcb_res_type_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_res_type_t); -} - -xcb_generic_iterator_t -xcb_res_type_end (xcb_res_type_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_res_client_id_spec_next (xcb_res_client_id_spec_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_res_client_id_spec_t); -} - -xcb_generic_iterator_t -xcb_res_client_id_spec_end (xcb_res_client_id_spec_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_res_client_id_value_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_res_client_id_value_t *_aux = (xcb_res_client_id_value_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_res_client_id_value_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* value */ - xcb_block_len += _aux->length * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint32_t * -xcb_res_client_id_value_value (const xcb_res_client_id_value_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_res_client_id_value_value_length (const xcb_res_client_id_value_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_res_client_id_value_value_end (const xcb_res_client_id_value_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_res_client_id_value_next (xcb_res_client_id_value_iterator_t *i /**< */) -{ - xcb_res_client_id_value_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_res_client_id_value_t *)(((char *)R) + xcb_res_client_id_value_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_res_client_id_value_t *) child.data; -} - -xcb_generic_iterator_t -xcb_res_client_id_value_end (xcb_res_client_id_value_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_res_client_id_value_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_res_resource_id_spec_next (xcb_res_resource_id_spec_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_res_resource_id_spec_t); -} - -xcb_generic_iterator_t -xcb_res_resource_id_spec_end (xcb_res_resource_id_spec_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_res_resource_size_spec_next (xcb_res_resource_size_spec_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_res_resource_size_spec_t); -} - -xcb_generic_iterator_t -xcb_res_resource_size_spec_end (xcb_res_resource_size_spec_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_res_resource_size_value_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_res_resource_size_value_t *_aux = (xcb_res_resource_size_value_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_res_resource_size_value_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* cross_references */ - xcb_block_len += _aux->num_cross_references * sizeof(xcb_res_resource_size_spec_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_res_resource_size_spec_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_res_resource_size_spec_t * -xcb_res_resource_size_value_cross_references (const xcb_res_resource_size_value_t *R /**< */) -{ - return (xcb_res_resource_size_spec_t *) (R + 1); -} - -int -xcb_res_resource_size_value_cross_references_length (const xcb_res_resource_size_value_t *R /**< */) -{ - return R->num_cross_references; -} - -xcb_res_resource_size_spec_iterator_t -xcb_res_resource_size_value_cross_references_iterator (const xcb_res_resource_size_value_t *R /**< */) -{ - xcb_res_resource_size_spec_iterator_t i; - i.data = (xcb_res_resource_size_spec_t *) (R + 1); - i.rem = R->num_cross_references; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_res_resource_size_value_next (xcb_res_resource_size_value_iterator_t *i /**< */) -{ - xcb_res_resource_size_value_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_res_resource_size_value_t *)(((char *)R) + xcb_res_resource_size_value_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_res_resource_size_value_t *) child.data; -} - -xcb_generic_iterator_t -xcb_res_resource_size_value_end (xcb_res_resource_size_value_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_res_resource_size_value_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -xcb_res_query_version_cookie_t -xcb_res_query_version (xcb_connection_t *c /**< */, - uint8_t client_major /**< */, - uint8_t client_minor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_res_query_version_cookie_t xcb_ret; - xcb_res_query_version_request_t xcb_out; - - xcb_out.client_major = client_major; - xcb_out.client_minor = client_minor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_res_query_version_cookie_t -xcb_res_query_version_unchecked (xcb_connection_t *c /**< */, - uint8_t client_major /**< */, - uint8_t client_minor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_res_query_version_cookie_t xcb_ret; - xcb_res_query_version_request_t xcb_out; - - xcb_out.client_major = client_major; - xcb_out.client_minor = client_minor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_res_query_version_reply_t * -xcb_res_query_version_reply (xcb_connection_t *c /**< */, - xcb_res_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_res_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_res_query_clients_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_res_query_clients_reply_t *_aux = (xcb_res_query_clients_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_res_query_clients_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* clients */ - xcb_block_len += _aux->num_clients * sizeof(xcb_res_client_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_res_client_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_res_query_clients_cookie_t -xcb_res_query_clients (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_CLIENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_res_query_clients_cookie_t xcb_ret; - xcb_res_query_clients_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_res_query_clients_cookie_t -xcb_res_query_clients_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_CLIENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_res_query_clients_cookie_t xcb_ret; - xcb_res_query_clients_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_res_client_t * -xcb_res_query_clients_clients (const xcb_res_query_clients_reply_t *R /**< */) -{ - return (xcb_res_client_t *) (R + 1); -} - -int -xcb_res_query_clients_clients_length (const xcb_res_query_clients_reply_t *R /**< */) -{ - return R->num_clients; -} - -xcb_res_client_iterator_t -xcb_res_query_clients_clients_iterator (const xcb_res_query_clients_reply_t *R /**< */) -{ - xcb_res_client_iterator_t i; - i.data = (xcb_res_client_t *) (R + 1); - i.rem = R->num_clients; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_res_query_clients_reply_t * -xcb_res_query_clients_reply (xcb_connection_t *c /**< */, - xcb_res_query_clients_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_res_query_clients_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_res_query_client_resources_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_res_query_client_resources_reply_t *_aux = (xcb_res_query_client_resources_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_res_query_client_resources_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* types */ - xcb_block_len += _aux->num_types * sizeof(xcb_res_type_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_res_type_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_res_query_client_resources_cookie_t -xcb_res_query_client_resources (xcb_connection_t *c /**< */, - uint32_t xid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_CLIENT_RESOURCES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_res_query_client_resources_cookie_t xcb_ret; - xcb_res_query_client_resources_request_t xcb_out; - - xcb_out.xid = xid; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_res_query_client_resources_cookie_t -xcb_res_query_client_resources_unchecked (xcb_connection_t *c /**< */, - uint32_t xid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_CLIENT_RESOURCES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_res_query_client_resources_cookie_t xcb_ret; - xcb_res_query_client_resources_request_t xcb_out; - - xcb_out.xid = xid; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_res_type_t * -xcb_res_query_client_resources_types (const xcb_res_query_client_resources_reply_t *R /**< */) -{ - return (xcb_res_type_t *) (R + 1); -} - -int -xcb_res_query_client_resources_types_length (const xcb_res_query_client_resources_reply_t *R /**< */) -{ - return R->num_types; -} - -xcb_res_type_iterator_t -xcb_res_query_client_resources_types_iterator (const xcb_res_query_client_resources_reply_t *R /**< */) -{ - xcb_res_type_iterator_t i; - i.data = (xcb_res_type_t *) (R + 1); - i.rem = R->num_types; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_res_query_client_resources_reply_t * -xcb_res_query_client_resources_reply (xcb_connection_t *c /**< */, - xcb_res_query_client_resources_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_res_query_client_resources_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_res_query_client_pixmap_bytes_cookie_t -xcb_res_query_client_pixmap_bytes (xcb_connection_t *c /**< */, - uint32_t xid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_CLIENT_PIXMAP_BYTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_res_query_client_pixmap_bytes_cookie_t xcb_ret; - xcb_res_query_client_pixmap_bytes_request_t xcb_out; - - xcb_out.xid = xid; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_res_query_client_pixmap_bytes_cookie_t -xcb_res_query_client_pixmap_bytes_unchecked (xcb_connection_t *c /**< */, - uint32_t xid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_CLIENT_PIXMAP_BYTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_res_query_client_pixmap_bytes_cookie_t xcb_ret; - xcb_res_query_client_pixmap_bytes_request_t xcb_out; - - xcb_out.xid = xid; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_res_query_client_pixmap_bytes_reply_t * -xcb_res_query_client_pixmap_bytes_reply (xcb_connection_t *c /**< */, - xcb_res_query_client_pixmap_bytes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_res_query_client_pixmap_bytes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_res_query_client_ids_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_res_query_client_ids_request_t *_aux = (xcb_res_query_client_ids_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_res_query_client_ids_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* specs */ - xcb_block_len += _aux->num_specs * sizeof(xcb_res_client_id_spec_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_res_client_id_spec_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_res_query_client_ids_cookie_t -xcb_res_query_client_ids (xcb_connection_t *c /**< */, - uint32_t num_specs /**< */, - const xcb_res_client_id_spec_t *specs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_CLIENT_IDS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_res_query_client_ids_cookie_t xcb_ret; - xcb_res_query_client_ids_request_t xcb_out; - - xcb_out.num_specs = num_specs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_res_client_id_spec_t specs */ - xcb_parts[4].iov_base = (char *) specs; - xcb_parts[4].iov_len = num_specs * sizeof(xcb_res_client_id_spec_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_res_query_client_ids_cookie_t -xcb_res_query_client_ids_unchecked (xcb_connection_t *c /**< */, - uint32_t num_specs /**< */, - const xcb_res_client_id_spec_t *specs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_CLIENT_IDS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_res_query_client_ids_cookie_t xcb_ret; - xcb_res_query_client_ids_request_t xcb_out; - - xcb_out.num_specs = num_specs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_res_client_id_spec_t specs */ - xcb_parts[4].iov_base = (char *) specs; - xcb_parts[4].iov_len = num_specs * sizeof(xcb_res_client_id_spec_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_res_query_client_ids_ids_length (const xcb_res_query_client_ids_reply_t *R /**< */) -{ - return R->num_ids; -} - -xcb_res_client_id_value_iterator_t -xcb_res_query_client_ids_ids_iterator (const xcb_res_query_client_ids_reply_t *R /**< */) -{ - xcb_res_client_id_value_iterator_t i; - i.data = (xcb_res_client_id_value_t *) (R + 1); - i.rem = R->num_ids; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_res_query_client_ids_reply_t * -xcb_res_query_client_ids_reply (xcb_connection_t *c /**< */, - xcb_res_query_client_ids_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_res_query_client_ids_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_res_query_resource_bytes_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_res_query_resource_bytes_request_t *_aux = (xcb_res_query_resource_bytes_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_res_query_resource_bytes_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* specs */ - xcb_block_len += _aux->num_specs * sizeof(xcb_res_resource_id_spec_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_res_resource_id_spec_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_res_query_resource_bytes_cookie_t -xcb_res_query_resource_bytes (xcb_connection_t *c /**< */, - uint32_t client /**< */, - uint32_t num_specs /**< */, - const xcb_res_resource_id_spec_t *specs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_RESOURCE_BYTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_res_query_resource_bytes_cookie_t xcb_ret; - xcb_res_query_resource_bytes_request_t xcb_out; - - xcb_out.client = client; - xcb_out.num_specs = num_specs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_res_resource_id_spec_t specs */ - xcb_parts[4].iov_base = (char *) specs; - xcb_parts[4].iov_len = num_specs * sizeof(xcb_res_resource_id_spec_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_res_query_resource_bytes_cookie_t -xcb_res_query_resource_bytes_unchecked (xcb_connection_t *c /**< */, - uint32_t client /**< */, - uint32_t num_specs /**< */, - const xcb_res_resource_id_spec_t *specs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_res_id, - /* opcode */ XCB_RES_QUERY_RESOURCE_BYTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_res_query_resource_bytes_cookie_t xcb_ret; - xcb_res_query_resource_bytes_request_t xcb_out; - - xcb_out.client = client; - xcb_out.num_specs = num_specs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_res_resource_id_spec_t specs */ - xcb_parts[4].iov_base = (char *) specs; - xcb_parts[4].iov_len = num_specs * sizeof(xcb_res_resource_id_spec_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_res_query_resource_bytes_sizes_length (const xcb_res_query_resource_bytes_reply_t *R /**< */) -{ - return R->num_sizes; -} - -xcb_res_resource_size_value_iterator_t -xcb_res_query_resource_bytes_sizes_iterator (const xcb_res_query_resource_bytes_reply_t *R /**< */) -{ - xcb_res_resource_size_value_iterator_t i; - i.data = (xcb_res_resource_size_value_t *) (R + 1); - i.rem = R->num_sizes; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_res_query_resource_bytes_reply_t * -xcb_res_query_resource_bytes_reply (xcb_connection_t *c /**< */, - xcb_res_query_resource_bytes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_res_query_resource_bytes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/res.h b/external/mit/xorg/lib/libxcb/files/res.h deleted file mode 100644 index 3e641f609..000000000 --- a/external/mit/xorg/lib/libxcb/files/res.h +++ /dev/null @@ -1,864 +0,0 @@ -/* - * This file generated automatically from res.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Res_API XCB Res API - * @brief Res XCB Protocol Implementation. - * @{ - **/ - -#ifndef __RES_H -#define __RES_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_RES_MAJOR_VERSION 1 -#define XCB_RES_MINOR_VERSION 2 - -extern xcb_extension_t xcb_res_id; - -/** - * @brief xcb_res_client_t - **/ -typedef struct xcb_res_client_t { - uint32_t resource_base; /**< */ - uint32_t resource_mask; /**< */ -} xcb_res_client_t; - -/** - * @brief xcb_res_client_iterator_t - **/ -typedef struct xcb_res_client_iterator_t { - xcb_res_client_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_res_client_iterator_t; - -/** - * @brief xcb_res_type_t - **/ -typedef struct xcb_res_type_t { - xcb_atom_t resource_type; /**< */ - uint32_t count; /**< */ -} xcb_res_type_t; - -/** - * @brief xcb_res_type_iterator_t - **/ -typedef struct xcb_res_type_iterator_t { - xcb_res_type_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_res_type_iterator_t; - -typedef enum xcb_res_client_id_mask_t { - XCB_RES_CLIENT_ID_MASK_CLIENT_XID = 1, - XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID = 2 -} xcb_res_client_id_mask_t; - -/** - * @brief xcb_res_client_id_spec_t - **/ -typedef struct xcb_res_client_id_spec_t { - uint32_t client; /**< */ - uint32_t mask; /**< */ -} xcb_res_client_id_spec_t; - -/** - * @brief xcb_res_client_id_spec_iterator_t - **/ -typedef struct xcb_res_client_id_spec_iterator_t { - xcb_res_client_id_spec_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_res_client_id_spec_iterator_t; - -/** - * @brief xcb_res_client_id_value_t - **/ -typedef struct xcb_res_client_id_value_t { - xcb_res_client_id_spec_t spec; /**< */ - uint32_t length; /**< */ -} xcb_res_client_id_value_t; - -/** - * @brief xcb_res_client_id_value_iterator_t - **/ -typedef struct xcb_res_client_id_value_iterator_t { - xcb_res_client_id_value_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_res_client_id_value_iterator_t; - -/** - * @brief xcb_res_resource_id_spec_t - **/ -typedef struct xcb_res_resource_id_spec_t { - uint32_t resource; /**< */ - uint32_t type; /**< */ -} xcb_res_resource_id_spec_t; - -/** - * @brief xcb_res_resource_id_spec_iterator_t - **/ -typedef struct xcb_res_resource_id_spec_iterator_t { - xcb_res_resource_id_spec_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_res_resource_id_spec_iterator_t; - -/** - * @brief xcb_res_resource_size_spec_t - **/ -typedef struct xcb_res_resource_size_spec_t { - xcb_res_resource_id_spec_t spec; /**< */ - uint32_t bytes; /**< */ - uint32_t ref_count; /**< */ - uint32_t use_count; /**< */ -} xcb_res_resource_size_spec_t; - -/** - * @brief xcb_res_resource_size_spec_iterator_t - **/ -typedef struct xcb_res_resource_size_spec_iterator_t { - xcb_res_resource_size_spec_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_res_resource_size_spec_iterator_t; - -/** - * @brief xcb_res_resource_size_value_t - **/ -typedef struct xcb_res_resource_size_value_t { - xcb_res_resource_size_spec_t size; /**< */ - uint32_t num_cross_references; /**< */ -} xcb_res_resource_size_value_t; - -/** - * @brief xcb_res_resource_size_value_iterator_t - **/ -typedef struct xcb_res_resource_size_value_iterator_t { - xcb_res_resource_size_value_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_res_resource_size_value_iterator_t; - -/** - * @brief xcb_res_query_version_cookie_t - **/ -typedef struct xcb_res_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_res_query_version_cookie_t; - -/** Opcode for xcb_res_query_version. */ -#define XCB_RES_QUERY_VERSION 0 - -/** - * @brief xcb_res_query_version_request_t - **/ -typedef struct xcb_res_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t client_major; /**< */ - uint8_t client_minor; /**< */ -} xcb_res_query_version_request_t; - -/** - * @brief xcb_res_query_version_reply_t - **/ -typedef struct xcb_res_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t server_major; /**< */ - uint16_t server_minor; /**< */ -} xcb_res_query_version_reply_t; - -/** - * @brief xcb_res_query_clients_cookie_t - **/ -typedef struct xcb_res_query_clients_cookie_t { - unsigned int sequence; /**< */ -} xcb_res_query_clients_cookie_t; - -/** Opcode for xcb_res_query_clients. */ -#define XCB_RES_QUERY_CLIENTS 1 - -/** - * @brief xcb_res_query_clients_request_t - **/ -typedef struct xcb_res_query_clients_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_res_query_clients_request_t; - -/** - * @brief xcb_res_query_clients_reply_t - **/ -typedef struct xcb_res_query_clients_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_clients; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_res_query_clients_reply_t; - -/** - * @brief xcb_res_query_client_resources_cookie_t - **/ -typedef struct xcb_res_query_client_resources_cookie_t { - unsigned int sequence; /**< */ -} xcb_res_query_client_resources_cookie_t; - -/** Opcode for xcb_res_query_client_resources. */ -#define XCB_RES_QUERY_CLIENT_RESOURCES 2 - -/** - * @brief xcb_res_query_client_resources_request_t - **/ -typedef struct xcb_res_query_client_resources_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t xid; /**< */ -} xcb_res_query_client_resources_request_t; - -/** - * @brief xcb_res_query_client_resources_reply_t - **/ -typedef struct xcb_res_query_client_resources_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_types; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_res_query_client_resources_reply_t; - -/** - * @brief xcb_res_query_client_pixmap_bytes_cookie_t - **/ -typedef struct xcb_res_query_client_pixmap_bytes_cookie_t { - unsigned int sequence; /**< */ -} xcb_res_query_client_pixmap_bytes_cookie_t; - -/** Opcode for xcb_res_query_client_pixmap_bytes. */ -#define XCB_RES_QUERY_CLIENT_PIXMAP_BYTES 3 - -/** - * @brief xcb_res_query_client_pixmap_bytes_request_t - **/ -typedef struct xcb_res_query_client_pixmap_bytes_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t xid; /**< */ -} xcb_res_query_client_pixmap_bytes_request_t; - -/** - * @brief xcb_res_query_client_pixmap_bytes_reply_t - **/ -typedef struct xcb_res_query_client_pixmap_bytes_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t bytes; /**< */ - uint32_t bytes_overflow; /**< */ -} xcb_res_query_client_pixmap_bytes_reply_t; - -/** - * @brief xcb_res_query_client_ids_cookie_t - **/ -typedef struct xcb_res_query_client_ids_cookie_t { - unsigned int sequence; /**< */ -} xcb_res_query_client_ids_cookie_t; - -/** Opcode for xcb_res_query_client_ids. */ -#define XCB_RES_QUERY_CLIENT_IDS 4 - -/** - * @brief xcb_res_query_client_ids_request_t - **/ -typedef struct xcb_res_query_client_ids_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t num_specs; /**< */ -} xcb_res_query_client_ids_request_t; - -/** - * @brief xcb_res_query_client_ids_reply_t - **/ -typedef struct xcb_res_query_client_ids_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_ids; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_res_query_client_ids_reply_t; - -/** - * @brief xcb_res_query_resource_bytes_cookie_t - **/ -typedef struct xcb_res_query_resource_bytes_cookie_t { - unsigned int sequence; /**< */ -} xcb_res_query_resource_bytes_cookie_t; - -/** Opcode for xcb_res_query_resource_bytes. */ -#define XCB_RES_QUERY_RESOURCE_BYTES 5 - -/** - * @brief xcb_res_query_resource_bytes_request_t - **/ -typedef struct xcb_res_query_resource_bytes_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t client; /**< */ - uint32_t num_specs; /**< */ -} xcb_res_query_resource_bytes_request_t; - -/** - * @brief xcb_res_query_resource_bytes_reply_t - **/ -typedef struct xcb_res_query_resource_bytes_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_sizes; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_res_query_resource_bytes_reply_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_res_client_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_res_client_t) - */ -void -xcb_res_client_next (xcb_res_client_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_res_client_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_res_client_end (xcb_res_client_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_res_type_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_res_type_t) - */ -void -xcb_res_type_next (xcb_res_type_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_res_type_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_res_type_end (xcb_res_type_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_res_client_id_spec_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_res_client_id_spec_t) - */ -void -xcb_res_client_id_spec_next (xcb_res_client_id_spec_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_res_client_id_spec_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_res_client_id_spec_end (xcb_res_client_id_spec_iterator_t i /**< */); - -int -xcb_res_client_id_value_sizeof (const void *_buffer /**< */); - -uint32_t * -xcb_res_client_id_value_value (const xcb_res_client_id_value_t *R /**< */); - -int -xcb_res_client_id_value_value_length (const xcb_res_client_id_value_t *R /**< */); - -xcb_generic_iterator_t -xcb_res_client_id_value_value_end (const xcb_res_client_id_value_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_res_client_id_value_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_res_client_id_value_t) - */ -void -xcb_res_client_id_value_next (xcb_res_client_id_value_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_res_client_id_value_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_res_client_id_value_end (xcb_res_client_id_value_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_res_resource_id_spec_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_res_resource_id_spec_t) - */ -void -xcb_res_resource_id_spec_next (xcb_res_resource_id_spec_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_res_resource_id_spec_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_res_resource_id_spec_end (xcb_res_resource_id_spec_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_res_resource_size_spec_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_res_resource_size_spec_t) - */ -void -xcb_res_resource_size_spec_next (xcb_res_resource_size_spec_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_res_resource_size_spec_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_res_resource_size_spec_end (xcb_res_resource_size_spec_iterator_t i /**< */); - -int -xcb_res_resource_size_value_sizeof (const void *_buffer /**< */); - -xcb_res_resource_size_spec_t * -xcb_res_resource_size_value_cross_references (const xcb_res_resource_size_value_t *R /**< */); - -int -xcb_res_resource_size_value_cross_references_length (const xcb_res_resource_size_value_t *R /**< */); - -xcb_res_resource_size_spec_iterator_t -xcb_res_resource_size_value_cross_references_iterator (const xcb_res_resource_size_value_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_res_resource_size_value_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_res_resource_size_value_t) - */ -void -xcb_res_resource_size_value_next (xcb_res_resource_size_value_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_res_resource_size_value_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_res_resource_size_value_end (xcb_res_resource_size_value_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_res_query_version_cookie_t -xcb_res_query_version (xcb_connection_t *c /**< */, - uint8_t client_major /**< */, - uint8_t client_minor /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_res_query_version_cookie_t -xcb_res_query_version_unchecked (xcb_connection_t *c /**< */, - uint8_t client_major /**< */, - uint8_t client_minor /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_res_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_res_query_version_reply_t * -xcb_res_query_version_reply (xcb_connection_t *c /**< */, - xcb_res_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_res_query_clients_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_res_query_clients_cookie_t -xcb_res_query_clients (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_res_query_clients_cookie_t -xcb_res_query_clients_unchecked (xcb_connection_t *c /**< */); - -xcb_res_client_t * -xcb_res_query_clients_clients (const xcb_res_query_clients_reply_t *R /**< */); - -int -xcb_res_query_clients_clients_length (const xcb_res_query_clients_reply_t *R /**< */); - -xcb_res_client_iterator_t -xcb_res_query_clients_clients_iterator (const xcb_res_query_clients_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_res_query_clients_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_res_query_clients_reply_t * -xcb_res_query_clients_reply (xcb_connection_t *c /**< */, - xcb_res_query_clients_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_res_query_client_resources_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_res_query_client_resources_cookie_t -xcb_res_query_client_resources (xcb_connection_t *c /**< */, - uint32_t xid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_res_query_client_resources_cookie_t -xcb_res_query_client_resources_unchecked (xcb_connection_t *c /**< */, - uint32_t xid /**< */); - -xcb_res_type_t * -xcb_res_query_client_resources_types (const xcb_res_query_client_resources_reply_t *R /**< */); - -int -xcb_res_query_client_resources_types_length (const xcb_res_query_client_resources_reply_t *R /**< */); - -xcb_res_type_iterator_t -xcb_res_query_client_resources_types_iterator (const xcb_res_query_client_resources_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_res_query_client_resources_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_res_query_client_resources_reply_t * -xcb_res_query_client_resources_reply (xcb_connection_t *c /**< */, - xcb_res_query_client_resources_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_res_query_client_pixmap_bytes_cookie_t -xcb_res_query_client_pixmap_bytes (xcb_connection_t *c /**< */, - uint32_t xid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_res_query_client_pixmap_bytes_cookie_t -xcb_res_query_client_pixmap_bytes_unchecked (xcb_connection_t *c /**< */, - uint32_t xid /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_res_query_client_pixmap_bytes_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_res_query_client_pixmap_bytes_reply_t * -xcb_res_query_client_pixmap_bytes_reply (xcb_connection_t *c /**< */, - xcb_res_query_client_pixmap_bytes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_res_query_client_ids_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_res_query_client_ids_cookie_t -xcb_res_query_client_ids (xcb_connection_t *c /**< */, - uint32_t num_specs /**< */, - const xcb_res_client_id_spec_t *specs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_res_query_client_ids_cookie_t -xcb_res_query_client_ids_unchecked (xcb_connection_t *c /**< */, - uint32_t num_specs /**< */, - const xcb_res_client_id_spec_t *specs /**< */); - -int -xcb_res_query_client_ids_ids_length (const xcb_res_query_client_ids_reply_t *R /**< */); - -xcb_res_client_id_value_iterator_t -xcb_res_query_client_ids_ids_iterator (const xcb_res_query_client_ids_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_res_query_client_ids_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_res_query_client_ids_reply_t * -xcb_res_query_client_ids_reply (xcb_connection_t *c /**< */, - xcb_res_query_client_ids_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_res_query_resource_bytes_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_res_query_resource_bytes_cookie_t -xcb_res_query_resource_bytes (xcb_connection_t *c /**< */, - uint32_t client /**< */, - uint32_t num_specs /**< */, - const xcb_res_resource_id_spec_t *specs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_res_query_resource_bytes_cookie_t -xcb_res_query_resource_bytes_unchecked (xcb_connection_t *c /**< */, - uint32_t client /**< */, - uint32_t num_specs /**< */, - const xcb_res_resource_id_spec_t *specs /**< */); - -int -xcb_res_query_resource_bytes_sizes_length (const xcb_res_query_resource_bytes_reply_t *R /**< */); - -xcb_res_resource_size_value_iterator_t -xcb_res_query_resource_bytes_sizes_iterator (const xcb_res_query_resource_bytes_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_res_query_resource_bytes_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_res_query_resource_bytes_reply_t * -xcb_res_query_resource_bytes_reply (xcb_connection_t *c /**< */, - xcb_res_query_resource_bytes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/screensaver.c b/external/mit/xorg/lib/libxcb/files/screensaver.c deleted file mode 100644 index 8dfa7009e..000000000 --- a/external/mit/xorg/lib/libxcb/files/screensaver.c +++ /dev/null @@ -1,439 +0,0 @@ -/* - * This file generated automatically from screensaver.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "screensaver.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_screensaver_id = { "MIT-SCREEN-SAVER", 0 }; - -xcb_screensaver_query_version_cookie_t -xcb_screensaver_query_version (xcb_connection_t *c /**< */, - uint8_t client_major_version /**< */, - uint8_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_screensaver_query_version_cookie_t xcb_ret; - xcb_screensaver_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_screensaver_query_version_cookie_t -xcb_screensaver_query_version_unchecked (xcb_connection_t *c /**< */, - uint8_t client_major_version /**< */, - uint8_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_screensaver_query_version_cookie_t xcb_ret; - xcb_screensaver_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_screensaver_query_version_reply_t * -xcb_screensaver_query_version_reply (xcb_connection_t *c /**< */, - xcb_screensaver_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_screensaver_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_screensaver_query_info_cookie_t -xcb_screensaver_query_info (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_QUERY_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_screensaver_query_info_cookie_t xcb_ret; - xcb_screensaver_query_info_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_screensaver_query_info_cookie_t -xcb_screensaver_query_info_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_QUERY_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_screensaver_query_info_cookie_t xcb_ret; - xcb_screensaver_query_info_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_screensaver_query_info_reply_t * -xcb_screensaver_query_info_reply (xcb_connection_t *c /**< */, - xcb_screensaver_query_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_screensaver_query_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_screensaver_select_input_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_SELECT_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_screensaver_select_input_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_screensaver_select_input (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_SELECT_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_screensaver_select_input_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_screensaver_set_attributes_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_screensaver_set_attributes_request_t *_aux = (xcb_screensaver_set_attributes_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_screensaver_set_attributes_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* value_list */ - xcb_block_len += xcb_popcount(_aux->value_mask) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_screensaver_set_attributes_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t border_width /**< */, - uint8_t _class /**< */, - uint8_t depth /**< */, - xcb_visualid_t visual /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_SET_ATTRIBUTES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_screensaver_set_attributes_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.border_width = border_width; - xcb_out._class = _class; - xcb_out.depth = depth; - xcb_out.visual = visual; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_screensaver_set_attributes (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t border_width /**< */, - uint8_t _class /**< */, - uint8_t depth /**< */, - xcb_visualid_t visual /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_SET_ATTRIBUTES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_screensaver_set_attributes_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.border_width = border_width; - xcb_out._class = _class; - xcb_out.depth = depth; - xcb_out.visual = visual; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_screensaver_unset_attributes_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_UNSET_ATTRIBUTES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_screensaver_unset_attributes_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_screensaver_unset_attributes (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_UNSET_ATTRIBUTES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_screensaver_unset_attributes_request_t xcb_out; - - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_screensaver_suspend_checked (xcb_connection_t *c /**< */, - uint8_t suspend /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_SUSPEND, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_screensaver_suspend_request_t xcb_out; - - xcb_out.suspend = suspend; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_screensaver_suspend (xcb_connection_t *c /**< */, - uint8_t suspend /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_screensaver_id, - /* opcode */ XCB_SCREENSAVER_SUSPEND, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_screensaver_suspend_request_t xcb_out; - - xcb_out.suspend = suspend; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - diff --git a/external/mit/xorg/lib/libxcb/files/screensaver.h b/external/mit/xorg/lib/libxcb/files/screensaver.h deleted file mode 100644 index 6846da8e1..000000000 --- a/external/mit/xorg/lib/libxcb/files/screensaver.h +++ /dev/null @@ -1,433 +0,0 @@ -/* - * This file generated automatically from screensaver.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_ScreenSaver_API XCB ScreenSaver API - * @brief ScreenSaver XCB Protocol Implementation. - * @{ - **/ - -#ifndef __SCREENSAVER_H -#define __SCREENSAVER_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_SCREENSAVER_MAJOR_VERSION 1 -#define XCB_SCREENSAVER_MINOR_VERSION 1 - -extern xcb_extension_t xcb_screensaver_id; - -typedef enum xcb_screensaver_kind_t { - XCB_SCREENSAVER_KIND_BLANKED = 0, - XCB_SCREENSAVER_KIND_INTERNAL = 1, - XCB_SCREENSAVER_KIND_EXTERNAL = 2 -} xcb_screensaver_kind_t; - -typedef enum xcb_screensaver_event_t { - XCB_SCREENSAVER_EVENT_NOTIFY_MASK = 1, - XCB_SCREENSAVER_EVENT_CYCLE_MASK = 2 -} xcb_screensaver_event_t; - -typedef enum xcb_screensaver_state_t { - XCB_SCREENSAVER_STATE_OFF = 0, - XCB_SCREENSAVER_STATE_ON = 1, - XCB_SCREENSAVER_STATE_CYCLE = 2, - XCB_SCREENSAVER_STATE_DISABLED = 3 -} xcb_screensaver_state_t; - -/** - * @brief xcb_screensaver_query_version_cookie_t - **/ -typedef struct xcb_screensaver_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_screensaver_query_version_cookie_t; - -/** Opcode for xcb_screensaver_query_version. */ -#define XCB_SCREENSAVER_QUERY_VERSION 0 - -/** - * @brief xcb_screensaver_query_version_request_t - **/ -typedef struct xcb_screensaver_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t client_major_version; /**< */ - uint8_t client_minor_version; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_screensaver_query_version_request_t; - -/** - * @brief xcb_screensaver_query_version_reply_t - **/ -typedef struct xcb_screensaver_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t server_major_version; /**< */ - uint16_t server_minor_version; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_screensaver_query_version_reply_t; - -/** - * @brief xcb_screensaver_query_info_cookie_t - **/ -typedef struct xcb_screensaver_query_info_cookie_t { - unsigned int sequence; /**< */ -} xcb_screensaver_query_info_cookie_t; - -/** Opcode for xcb_screensaver_query_info. */ -#define XCB_SCREENSAVER_QUERY_INFO 1 - -/** - * @brief xcb_screensaver_query_info_request_t - **/ -typedef struct xcb_screensaver_query_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ -} xcb_screensaver_query_info_request_t; - -/** - * @brief xcb_screensaver_query_info_reply_t - **/ -typedef struct xcb_screensaver_query_info_reply_t { - uint8_t response_type; /**< */ - uint8_t state; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t saver_window; /**< */ - uint32_t ms_until_server; /**< */ - uint32_t ms_since_user_input; /**< */ - uint32_t event_mask; /**< */ - uint8_t kind; /**< */ - uint8_t pad0[7]; /**< */ -} xcb_screensaver_query_info_reply_t; - -/** Opcode for xcb_screensaver_select_input. */ -#define XCB_SCREENSAVER_SELECT_INPUT 2 - -/** - * @brief xcb_screensaver_select_input_request_t - **/ -typedef struct xcb_screensaver_select_input_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t event_mask; /**< */ -} xcb_screensaver_select_input_request_t; - -/** Opcode for xcb_screensaver_set_attributes. */ -#define XCB_SCREENSAVER_SET_ATTRIBUTES 3 - -/** - * @brief xcb_screensaver_set_attributes_request_t - **/ -typedef struct xcb_screensaver_set_attributes_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t border_width; /**< */ - uint8_t _class; /**< */ - uint8_t depth; /**< */ - xcb_visualid_t visual; /**< */ - uint32_t value_mask; /**< */ -} xcb_screensaver_set_attributes_request_t; - -/** Opcode for xcb_screensaver_unset_attributes. */ -#define XCB_SCREENSAVER_UNSET_ATTRIBUTES 4 - -/** - * @brief xcb_screensaver_unset_attributes_request_t - **/ -typedef struct xcb_screensaver_unset_attributes_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ -} xcb_screensaver_unset_attributes_request_t; - -/** Opcode for xcb_screensaver_suspend. */ -#define XCB_SCREENSAVER_SUSPEND 5 - -/** - * @brief xcb_screensaver_suspend_request_t - **/ -typedef struct xcb_screensaver_suspend_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t suspend; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_screensaver_suspend_request_t; - -/** Opcode for xcb_screensaver_notify. */ -#define XCB_SCREENSAVER_NOTIFY 0 - -/** - * @brief xcb_screensaver_notify_event_t - **/ -typedef struct xcb_screensaver_notify_event_t { - uint8_t response_type; /**< */ - uint8_t state; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_window_t root; /**< */ - xcb_window_t window; /**< */ - uint8_t kind; /**< */ - uint8_t forced; /**< */ - uint8_t pad0[14]; /**< */ -} xcb_screensaver_notify_event_t; - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_screensaver_query_version_cookie_t -xcb_screensaver_query_version (xcb_connection_t *c /**< */, - uint8_t client_major_version /**< */, - uint8_t client_minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_screensaver_query_version_cookie_t -xcb_screensaver_query_version_unchecked (xcb_connection_t *c /**< */, - uint8_t client_major_version /**< */, - uint8_t client_minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_screensaver_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_screensaver_query_version_reply_t * -xcb_screensaver_query_version_reply (xcb_connection_t *c /**< */, - xcb_screensaver_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_screensaver_query_info_cookie_t -xcb_screensaver_query_info (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_screensaver_query_info_cookie_t -xcb_screensaver_query_info_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_screensaver_query_info_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_screensaver_query_info_reply_t * -xcb_screensaver_query_info_reply (xcb_connection_t *c /**< */, - xcb_screensaver_query_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_screensaver_select_input_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t event_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_screensaver_select_input (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t event_mask /**< */); - -int -xcb_screensaver_set_attributes_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_screensaver_set_attributes_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t border_width /**< */, - uint8_t _class /**< */, - uint8_t depth /**< */, - xcb_visualid_t visual /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_screensaver_set_attributes (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t border_width /**< */, - uint8_t _class /**< */, - uint8_t depth /**< */, - xcb_visualid_t visual /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_screensaver_unset_attributes_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_screensaver_unset_attributes (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_screensaver_suspend_checked (xcb_connection_t *c /**< */, - uint8_t suspend /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_screensaver_suspend (xcb_connection_t *c /**< */, - uint8_t suspend /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/shape.c b/external/mit/xorg/lib/libxcb/files/shape.c deleted file mode 100644 index 3a4428ffc..000000000 --- a/external/mit/xorg/lib/libxcb/files/shape.c +++ /dev/null @@ -1,746 +0,0 @@ -/* - * This file generated automatically from shape.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "shape.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_shape_id = { "SHAPE", 0 }; - -void -xcb_shape_op_next (xcb_shape_op_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_shape_op_t); -} - -xcb_generic_iterator_t -xcb_shape_op_end (xcb_shape_op_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_shape_kind_next (xcb_shape_kind_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_shape_kind_t); -} - -xcb_generic_iterator_t -xcb_shape_kind_end (xcb_shape_kind_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_shape_query_version_cookie_t -xcb_shape_query_version (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shape_query_version_cookie_t xcb_ret; - xcb_shape_query_version_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shape_query_version_cookie_t -xcb_shape_query_version_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shape_query_version_cookie_t xcb_ret; - xcb_shape_query_version_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shape_query_version_reply_t * -xcb_shape_query_version_reply (xcb_connection_t *c /**< */, - xcb_shape_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_shape_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_shape_rectangles_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_shape_rectangles_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rectangles */ - xcb_block_len += rectangles_len * sizeof(xcb_rectangle_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_rectangle_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_shape_rectangles_checked (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - uint8_t ordering /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_RECTANGLES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_shape_rectangles_request_t xcb_out; - - xcb_out.operation = operation; - xcb_out.destination_kind = destination_kind; - xcb_out.ordering = ordering; - xcb_out.pad0 = 0; - xcb_out.destination_window = destination_window; - xcb_out.x_offset = x_offset; - xcb_out.y_offset = y_offset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shape_rectangles (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - uint8_t ordering /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_RECTANGLES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_shape_rectangles_request_t xcb_out; - - xcb_out.operation = operation; - xcb_out.destination_kind = destination_kind; - xcb_out.ordering = ordering; - xcb_out.pad0 = 0; - xcb_out.destination_window = destination_window; - xcb_out.x_offset = x_offset; - xcb_out.y_offset = y_offset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shape_mask_checked (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_pixmap_t source_bitmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_MASK, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shape_mask_request_t xcb_out; - - xcb_out.operation = operation; - xcb_out.destination_kind = destination_kind; - memset(xcb_out.pad0, 0, 2); - xcb_out.destination_window = destination_window; - xcb_out.x_offset = x_offset; - xcb_out.y_offset = y_offset; - xcb_out.source_bitmap = source_bitmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shape_mask (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_pixmap_t source_bitmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_MASK, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shape_mask_request_t xcb_out; - - xcb_out.operation = operation; - xcb_out.destination_kind = destination_kind; - memset(xcb_out.pad0, 0, 2); - xcb_out.destination_window = destination_window; - xcb_out.x_offset = x_offset; - xcb_out.y_offset = y_offset; - xcb_out.source_bitmap = source_bitmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shape_combine_checked (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_shape_kind_t source_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_window_t source_window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_COMBINE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shape_combine_request_t xcb_out; - - xcb_out.operation = operation; - xcb_out.destination_kind = destination_kind; - xcb_out.source_kind = source_kind; - xcb_out.pad0 = 0; - xcb_out.destination_window = destination_window; - xcb_out.x_offset = x_offset; - xcb_out.y_offset = y_offset; - xcb_out.source_window = source_window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shape_combine (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_shape_kind_t source_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_window_t source_window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_COMBINE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shape_combine_request_t xcb_out; - - xcb_out.operation = operation; - xcb_out.destination_kind = destination_kind; - xcb_out.source_kind = source_kind; - xcb_out.pad0 = 0; - xcb_out.destination_window = destination_window; - xcb_out.x_offset = x_offset; - xcb_out.y_offset = y_offset; - xcb_out.source_window = source_window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shape_offset_checked (xcb_connection_t *c /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_OFFSET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shape_offset_request_t xcb_out; - - xcb_out.destination_kind = destination_kind; - memset(xcb_out.pad0, 0, 3); - xcb_out.destination_window = destination_window; - xcb_out.x_offset = x_offset; - xcb_out.y_offset = y_offset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shape_offset (xcb_connection_t *c /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_OFFSET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shape_offset_request_t xcb_out; - - xcb_out.destination_kind = destination_kind; - memset(xcb_out.pad0, 0, 3); - xcb_out.destination_window = destination_window; - xcb_out.x_offset = x_offset; - xcb_out.y_offset = y_offset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shape_query_extents_cookie_t -xcb_shape_query_extents (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_QUERY_EXTENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shape_query_extents_cookie_t xcb_ret; - xcb_shape_query_extents_request_t xcb_out; - - xcb_out.destination_window = destination_window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shape_query_extents_cookie_t -xcb_shape_query_extents_unchecked (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_QUERY_EXTENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shape_query_extents_cookie_t xcb_ret; - xcb_shape_query_extents_request_t xcb_out; - - xcb_out.destination_window = destination_window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shape_query_extents_reply_t * -xcb_shape_query_extents_reply (xcb_connection_t *c /**< */, - xcb_shape_query_extents_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_shape_query_extents_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_shape_select_input_checked (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */, - uint8_t enable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_SELECT_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shape_select_input_request_t xcb_out; - - xcb_out.destination_window = destination_window; - xcb_out.enable = enable; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shape_select_input (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */, - uint8_t enable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_SELECT_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shape_select_input_request_t xcb_out; - - xcb_out.destination_window = destination_window; - xcb_out.enable = enable; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shape_input_selected_cookie_t -xcb_shape_input_selected (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_INPUT_SELECTED, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shape_input_selected_cookie_t xcb_ret; - xcb_shape_input_selected_request_t xcb_out; - - xcb_out.destination_window = destination_window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shape_input_selected_cookie_t -xcb_shape_input_selected_unchecked (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_INPUT_SELECTED, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shape_input_selected_cookie_t xcb_ret; - xcb_shape_input_selected_request_t xcb_out; - - xcb_out.destination_window = destination_window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shape_input_selected_reply_t * -xcb_shape_input_selected_reply (xcb_connection_t *c /**< */, - xcb_shape_input_selected_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_shape_input_selected_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_shape_get_rectangles_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_shape_get_rectangles_reply_t *_aux = (xcb_shape_get_rectangles_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_shape_get_rectangles_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rectangles */ - xcb_block_len += _aux->rectangles_len * sizeof(xcb_rectangle_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_rectangle_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_shape_get_rectangles_cookie_t -xcb_shape_get_rectangles (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_shape_kind_t source_kind /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_GET_RECTANGLES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shape_get_rectangles_cookie_t xcb_ret; - xcb_shape_get_rectangles_request_t xcb_out; - - xcb_out.window = window; - xcb_out.source_kind = source_kind; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shape_get_rectangles_cookie_t -xcb_shape_get_rectangles_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_shape_kind_t source_kind /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shape_id, - /* opcode */ XCB_SHAPE_GET_RECTANGLES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shape_get_rectangles_cookie_t xcb_ret; - xcb_shape_get_rectangles_request_t xcb_out; - - xcb_out.window = window; - xcb_out.source_kind = source_kind; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_rectangle_t * -xcb_shape_get_rectangles_rectangles (const xcb_shape_get_rectangles_reply_t *R /**< */) -{ - return (xcb_rectangle_t *) (R + 1); -} - -int -xcb_shape_get_rectangles_rectangles_length (const xcb_shape_get_rectangles_reply_t *R /**< */) -{ - return R->rectangles_len; -} - -xcb_rectangle_iterator_t -xcb_shape_get_rectangles_rectangles_iterator (const xcb_shape_get_rectangles_reply_t *R /**< */) -{ - xcb_rectangle_iterator_t i; - i.data = (xcb_rectangle_t *) (R + 1); - i.rem = R->rectangles_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_shape_get_rectangles_reply_t * -xcb_shape_get_rectangles_reply (xcb_connection_t *c /**< */, - xcb_shape_get_rectangles_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_shape_get_rectangles_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/shape.h b/external/mit/xorg/lib/libxcb/files/shape.h deleted file mode 100644 index f37097fee..000000000 --- a/external/mit/xorg/lib/libxcb/files/shape.h +++ /dev/null @@ -1,743 +0,0 @@ -/* - * This file generated automatically from shape.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Shape_API XCB Shape API - * @brief Shape XCB Protocol Implementation. - * @{ - **/ - -#ifndef __SHAPE_H -#define __SHAPE_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_SHAPE_MAJOR_VERSION 1 -#define XCB_SHAPE_MINOR_VERSION 1 - -extern xcb_extension_t xcb_shape_id; - -typedef uint8_t xcb_shape_op_t; - -/** - * @brief xcb_shape_op_iterator_t - **/ -typedef struct xcb_shape_op_iterator_t { - xcb_shape_op_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_shape_op_iterator_t; - -typedef uint8_t xcb_shape_kind_t; - -/** - * @brief xcb_shape_kind_iterator_t - **/ -typedef struct xcb_shape_kind_iterator_t { - xcb_shape_kind_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_shape_kind_iterator_t; - -typedef enum xcb_shape_so_t { - XCB_SHAPE_SO_SET = 0, - XCB_SHAPE_SO_UNION = 1, - XCB_SHAPE_SO_INTERSECT = 2, - XCB_SHAPE_SO_SUBTRACT = 3, - XCB_SHAPE_SO_INVERT = 4 -} xcb_shape_so_t; - -typedef enum xcb_shape_sk_t { - XCB_SHAPE_SK_BOUNDING = 0, - XCB_SHAPE_SK_CLIP = 1, - XCB_SHAPE_SK_INPUT = 2 -} xcb_shape_sk_t; - -/** Opcode for xcb_shape_notify. */ -#define XCB_SHAPE_NOTIFY 0 - -/** - * @brief xcb_shape_notify_event_t - **/ -typedef struct xcb_shape_notify_event_t { - uint8_t response_type; /**< */ - xcb_shape_kind_t shape_kind; /**< */ - uint16_t sequence; /**< */ - xcb_window_t affected_window; /**< */ - int16_t extents_x; /**< */ - int16_t extents_y; /**< */ - uint16_t extents_width; /**< */ - uint16_t extents_height; /**< */ - xcb_timestamp_t server_time; /**< */ - uint8_t shaped; /**< */ - uint8_t pad0[11]; /**< */ -} xcb_shape_notify_event_t; - -/** - * @brief xcb_shape_query_version_cookie_t - **/ -typedef struct xcb_shape_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_shape_query_version_cookie_t; - -/** Opcode for xcb_shape_query_version. */ -#define XCB_SHAPE_QUERY_VERSION 0 - -/** - * @brief xcb_shape_query_version_request_t - **/ -typedef struct xcb_shape_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_shape_query_version_request_t; - -/** - * @brief xcb_shape_query_version_reply_t - **/ -typedef struct xcb_shape_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t major_version; /**< */ - uint16_t minor_version; /**< */ -} xcb_shape_query_version_reply_t; - -/** Opcode for xcb_shape_rectangles. */ -#define XCB_SHAPE_RECTANGLES 1 - -/** - * @brief xcb_shape_rectangles_request_t - **/ -typedef struct xcb_shape_rectangles_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_shape_op_t operation; /**< */ - xcb_shape_kind_t destination_kind; /**< */ - uint8_t ordering; /**< */ - uint8_t pad0; /**< */ - xcb_window_t destination_window; /**< */ - int16_t x_offset; /**< */ - int16_t y_offset; /**< */ -} xcb_shape_rectangles_request_t; - -/** Opcode for xcb_shape_mask. */ -#define XCB_SHAPE_MASK 2 - -/** - * @brief xcb_shape_mask_request_t - **/ -typedef struct xcb_shape_mask_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_shape_op_t operation; /**< */ - xcb_shape_kind_t destination_kind; /**< */ - uint8_t pad0[2]; /**< */ - xcb_window_t destination_window; /**< */ - int16_t x_offset; /**< */ - int16_t y_offset; /**< */ - xcb_pixmap_t source_bitmap; /**< */ -} xcb_shape_mask_request_t; - -/** Opcode for xcb_shape_combine. */ -#define XCB_SHAPE_COMBINE 3 - -/** - * @brief xcb_shape_combine_request_t - **/ -typedef struct xcb_shape_combine_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_shape_op_t operation; /**< */ - xcb_shape_kind_t destination_kind; /**< */ - xcb_shape_kind_t source_kind; /**< */ - uint8_t pad0; /**< */ - xcb_window_t destination_window; /**< */ - int16_t x_offset; /**< */ - int16_t y_offset; /**< */ - xcb_window_t source_window; /**< */ -} xcb_shape_combine_request_t; - -/** Opcode for xcb_shape_offset. */ -#define XCB_SHAPE_OFFSET 4 - -/** - * @brief xcb_shape_offset_request_t - **/ -typedef struct xcb_shape_offset_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_shape_kind_t destination_kind; /**< */ - uint8_t pad0[3]; /**< */ - xcb_window_t destination_window; /**< */ - int16_t x_offset; /**< */ - int16_t y_offset; /**< */ -} xcb_shape_offset_request_t; - -/** - * @brief xcb_shape_query_extents_cookie_t - **/ -typedef struct xcb_shape_query_extents_cookie_t { - unsigned int sequence; /**< */ -} xcb_shape_query_extents_cookie_t; - -/** Opcode for xcb_shape_query_extents. */ -#define XCB_SHAPE_QUERY_EXTENTS 5 - -/** - * @brief xcb_shape_query_extents_request_t - **/ -typedef struct xcb_shape_query_extents_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t destination_window; /**< */ -} xcb_shape_query_extents_request_t; - -/** - * @brief xcb_shape_query_extents_reply_t - **/ -typedef struct xcb_shape_query_extents_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t bounding_shaped; /**< */ - uint8_t clip_shaped; /**< */ - uint8_t pad1[2]; /**< */ - int16_t bounding_shape_extents_x; /**< */ - int16_t bounding_shape_extents_y; /**< */ - uint16_t bounding_shape_extents_width; /**< */ - uint16_t bounding_shape_extents_height; /**< */ - int16_t clip_shape_extents_x; /**< */ - int16_t clip_shape_extents_y; /**< */ - uint16_t clip_shape_extents_width; /**< */ - uint16_t clip_shape_extents_height; /**< */ -} xcb_shape_query_extents_reply_t; - -/** Opcode for xcb_shape_select_input. */ -#define XCB_SHAPE_SELECT_INPUT 6 - -/** - * @brief xcb_shape_select_input_request_t - **/ -typedef struct xcb_shape_select_input_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t destination_window; /**< */ - uint8_t enable; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_shape_select_input_request_t; - -/** - * @brief xcb_shape_input_selected_cookie_t - **/ -typedef struct xcb_shape_input_selected_cookie_t { - unsigned int sequence; /**< */ -} xcb_shape_input_selected_cookie_t; - -/** Opcode for xcb_shape_input_selected. */ -#define XCB_SHAPE_INPUT_SELECTED 7 - -/** - * @brief xcb_shape_input_selected_request_t - **/ -typedef struct xcb_shape_input_selected_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t destination_window; /**< */ -} xcb_shape_input_selected_request_t; - -/** - * @brief xcb_shape_input_selected_reply_t - **/ -typedef struct xcb_shape_input_selected_reply_t { - uint8_t response_type; /**< */ - uint8_t enabled; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ -} xcb_shape_input_selected_reply_t; - -/** - * @brief xcb_shape_get_rectangles_cookie_t - **/ -typedef struct xcb_shape_get_rectangles_cookie_t { - unsigned int sequence; /**< */ -} xcb_shape_get_rectangles_cookie_t; - -/** Opcode for xcb_shape_get_rectangles. */ -#define XCB_SHAPE_GET_RECTANGLES 8 - -/** - * @brief xcb_shape_get_rectangles_request_t - **/ -typedef struct xcb_shape_get_rectangles_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_shape_kind_t source_kind; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_shape_get_rectangles_request_t; - -/** - * @brief xcb_shape_get_rectangles_reply_t - **/ -typedef struct xcb_shape_get_rectangles_reply_t { - uint8_t response_type; /**< */ - uint8_t ordering; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t rectangles_len; /**< */ - uint8_t pad0[20]; /**< */ -} xcb_shape_get_rectangles_reply_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_shape_op_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_shape_op_t) - */ -void -xcb_shape_op_next (xcb_shape_op_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_shape_op_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_shape_op_end (xcb_shape_op_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_shape_kind_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_shape_kind_t) - */ -void -xcb_shape_kind_next (xcb_shape_kind_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_shape_kind_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_shape_kind_end (xcb_shape_kind_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_shape_query_version_cookie_t -xcb_shape_query_version (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_shape_query_version_cookie_t -xcb_shape_query_version_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_shape_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_shape_query_version_reply_t * -xcb_shape_query_version_reply (xcb_connection_t *c /**< */, - xcb_shape_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_shape_rectangles_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_shape_rectangles_checked (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - uint8_t ordering /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_shape_rectangles (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - uint8_t ordering /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_shape_mask_checked (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_pixmap_t source_bitmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_shape_mask (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_pixmap_t source_bitmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_shape_combine_checked (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_shape_kind_t source_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_window_t source_window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_shape_combine (xcb_connection_t *c /**< */, - xcb_shape_op_t operation /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_shape_kind_t source_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_window_t source_window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_shape_offset_checked (xcb_connection_t *c /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_shape_offset (xcb_connection_t *c /**< */, - xcb_shape_kind_t destination_kind /**< */, - xcb_window_t destination_window /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_shape_query_extents_cookie_t -xcb_shape_query_extents (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_shape_query_extents_cookie_t -xcb_shape_query_extents_unchecked (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_shape_query_extents_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_shape_query_extents_reply_t * -xcb_shape_query_extents_reply (xcb_connection_t *c /**< */, - xcb_shape_query_extents_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_shape_select_input_checked (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */, - uint8_t enable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_shape_select_input (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */, - uint8_t enable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_shape_input_selected_cookie_t -xcb_shape_input_selected (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_shape_input_selected_cookie_t -xcb_shape_input_selected_unchecked (xcb_connection_t *c /**< */, - xcb_window_t destination_window /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_shape_input_selected_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_shape_input_selected_reply_t * -xcb_shape_input_selected_reply (xcb_connection_t *c /**< */, - xcb_shape_input_selected_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_shape_get_rectangles_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_shape_get_rectangles_cookie_t -xcb_shape_get_rectangles (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_shape_kind_t source_kind /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_shape_get_rectangles_cookie_t -xcb_shape_get_rectangles_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_shape_kind_t source_kind /**< */); - -xcb_rectangle_t * -xcb_shape_get_rectangles_rectangles (const xcb_shape_get_rectangles_reply_t *R /**< */); - -int -xcb_shape_get_rectangles_rectangles_length (const xcb_shape_get_rectangles_reply_t *R /**< */); - -xcb_rectangle_iterator_t -xcb_shape_get_rectangles_rectangles_iterator (const xcb_shape_get_rectangles_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_shape_get_rectangles_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_shape_get_rectangles_reply_t * -xcb_shape_get_rectangles_reply (xcb_connection_t *c /**< */, - xcb_shape_get_rectangles_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/shm.c b/external/mit/xorg/lib/libxcb/files/shm.c deleted file mode 100644 index 366e4827b..000000000 --- a/external/mit/xorg/lib/libxcb/files/shm.c +++ /dev/null @@ -1,629 +0,0 @@ -/* - * This file generated automatically from shm.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "shm.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_shm_id = { "MIT-SHM", 0 }; - -void -xcb_shm_seg_next (xcb_shm_seg_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_shm_seg_t); -} - -xcb_generic_iterator_t -xcb_shm_seg_end (xcb_shm_seg_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_shm_query_version_cookie_t -xcb_shm_query_version (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shm_query_version_cookie_t xcb_ret; - xcb_shm_query_version_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shm_query_version_cookie_t -xcb_shm_query_version_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shm_query_version_cookie_t xcb_ret; - xcb_shm_query_version_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shm_query_version_reply_t * -xcb_shm_query_version_reply (xcb_connection_t *c /**< */, - xcb_shm_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_shm_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_shm_attach_checked (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t shmid /**< */, - uint8_t read_only /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_ATTACH, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shm_attach_request_t xcb_out; - - xcb_out.shmseg = shmseg; - xcb_out.shmid = shmid; - xcb_out.read_only = read_only; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shm_attach (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t shmid /**< */, - uint8_t read_only /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_ATTACH, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shm_attach_request_t xcb_out; - - xcb_out.shmseg = shmseg; - xcb_out.shmid = shmid; - xcb_out.read_only = read_only; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shm_detach_checked (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_DETACH, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shm_detach_request_t xcb_out; - - xcb_out.shmseg = shmseg; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shm_detach (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_DETACH, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shm_detach_request_t xcb_out; - - xcb_out.shmseg = shmseg; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shm_put_image_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint16_t total_width /**< */, - uint16_t total_height /**< */, - uint16_t src_x /**< */, - uint16_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint8_t depth /**< */, - uint8_t format /**< */, - uint8_t send_event /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shm_put_image_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.total_width = total_width; - xcb_out.total_height = total_height; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_width = src_width; - xcb_out.src_height = src_height; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.depth = depth; - xcb_out.format = format; - xcb_out.send_event = send_event; - xcb_out.pad0 = 0; - xcb_out.shmseg = shmseg; - xcb_out.offset = offset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shm_put_image (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint16_t total_width /**< */, - uint16_t total_height /**< */, - uint16_t src_x /**< */, - uint16_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint8_t depth /**< */, - uint8_t format /**< */, - uint8_t send_event /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shm_put_image_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.total_width = total_width; - xcb_out.total_height = total_height; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_width = src_width; - xcb_out.src_height = src_height; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.depth = depth; - xcb_out.format = format; - xcb_out.send_event = send_event; - xcb_out.pad0 = 0; - xcb_out.shmseg = shmseg; - xcb_out.offset = offset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shm_get_image_cookie_t -xcb_shm_get_image (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t plane_mask /**< */, - uint8_t format /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_GET_IMAGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shm_get_image_cookie_t xcb_ret; - xcb_shm_get_image_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.plane_mask = plane_mask; - xcb_out.format = format; - memset(xcb_out.pad0, 0, 3); - xcb_out.shmseg = shmseg; - xcb_out.offset = offset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shm_get_image_cookie_t -xcb_shm_get_image_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t plane_mask /**< */, - uint8_t format /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_GET_IMAGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shm_get_image_cookie_t xcb_ret; - xcb_shm_get_image_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.plane_mask = plane_mask; - xcb_out.format = format; - memset(xcb_out.pad0, 0, 3); - xcb_out.shmseg = shmseg; - xcb_out.offset = offset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shm_get_image_reply_t * -xcb_shm_get_image_reply (xcb_connection_t *c /**< */, - xcb_shm_get_image_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_shm_get_image_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_shm_create_pixmap_checked (xcb_connection_t *c /**< */, - xcb_pixmap_t pid /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint8_t depth /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_CREATE_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shm_create_pixmap_request_t xcb_out; - - xcb_out.pid = pid; - xcb_out.drawable = drawable; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.depth = depth; - memset(xcb_out.pad0, 0, 3); - xcb_out.shmseg = shmseg; - xcb_out.offset = offset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shm_create_pixmap (xcb_connection_t *c /**< */, - xcb_pixmap_t pid /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint8_t depth /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_CREATE_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shm_create_pixmap_request_t xcb_out; - - xcb_out.pid = pid; - xcb_out.drawable = drawable; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.depth = depth; - memset(xcb_out.pad0, 0, 3); - xcb_out.shmseg = shmseg; - xcb_out.offset = offset; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shm_attach_fd_checked (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - int32_t shm_fd /**< */, - uint8_t read_only /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_ATTACH_FD, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shm_attach_fd_request_t xcb_out; - - xcb_out.shmseg = shmseg; - xcb_out.read_only = read_only; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_send_fd(c, shm_fd); - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_shm_attach_fd (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - int32_t shm_fd /**< */, - uint8_t read_only /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_ATTACH_FD, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_shm_attach_fd_request_t xcb_out; - - xcb_out.shmseg = shmseg; - xcb_out.read_only = read_only; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_send_fd(c, shm_fd); - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shm_create_segment_cookie_t -xcb_shm_create_segment (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t size /**< */, - uint8_t read_only /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_CREATE_SEGMENT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shm_create_segment_cookie_t xcb_ret; - xcb_shm_create_segment_request_t xcb_out; - - xcb_out.shmseg = shmseg; - xcb_out.size = size; - xcb_out.read_only = read_only; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED|XCB_REQUEST_REPLY_FDS, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shm_create_segment_cookie_t -xcb_shm_create_segment_unchecked (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t size /**< */, - uint8_t read_only /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_shm_id, - /* opcode */ XCB_SHM_CREATE_SEGMENT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_shm_create_segment_cookie_t xcb_ret; - xcb_shm_create_segment_request_t xcb_out; - - xcb_out.shmseg = shmseg; - xcb_out.size = size; - xcb_out.read_only = read_only; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_REPLY_FDS, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_shm_create_segment_reply_t * -xcb_shm_create_segment_reply (xcb_connection_t *c /**< */, - xcb_shm_create_segment_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_shm_create_segment_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int * -xcb_shm_create_segment_reply_fds (xcb_connection_t *c /**< */, - xcb_shm_create_segment_reply_t *reply /**< */) -{ - return xcb_get_reply_fds(c, reply, sizeof(xcb_shm_create_segment_reply_t) + 4 * reply->length); -} - diff --git a/external/mit/xorg/lib/libxcb/files/shm.h b/external/mit/xorg/lib/libxcb/files/shm.h deleted file mode 100644 index 459236733..000000000 --- a/external/mit/xorg/lib/libxcb/files/shm.h +++ /dev/null @@ -1,647 +0,0 @@ -/* - * This file generated automatically from shm.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Shm_API XCB Shm API - * @brief Shm XCB Protocol Implementation. - * @{ - **/ - -#ifndef __SHM_H -#define __SHM_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_SHM_MAJOR_VERSION 1 -#define XCB_SHM_MINOR_VERSION 2 - -extern xcb_extension_t xcb_shm_id; - -typedef uint32_t xcb_shm_seg_t; - -/** - * @brief xcb_shm_seg_iterator_t - **/ -typedef struct xcb_shm_seg_iterator_t { - xcb_shm_seg_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_shm_seg_iterator_t; - -/** Opcode for xcb_shm_completion. */ -#define XCB_SHM_COMPLETION 0 - -/** - * @brief xcb_shm_completion_event_t - **/ -typedef struct xcb_shm_completion_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_drawable_t drawable; /**< */ - uint16_t minor_event; /**< */ - uint8_t major_event; /**< */ - uint8_t pad1; /**< */ - xcb_shm_seg_t shmseg; /**< */ - uint32_t offset; /**< */ -} xcb_shm_completion_event_t; - -/** Opcode for xcb_shm_bad_seg. */ -#define XCB_SHM_BAD_SEG 0 - -typedef xcb_value_error_t xcb_shm_bad_seg_error_t; - -/** - * @brief xcb_shm_query_version_cookie_t - **/ -typedef struct xcb_shm_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_shm_query_version_cookie_t; - -/** Opcode for xcb_shm_query_version. */ -#define XCB_SHM_QUERY_VERSION 0 - -/** - * @brief xcb_shm_query_version_request_t - **/ -typedef struct xcb_shm_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_shm_query_version_request_t; - -/** - * @brief xcb_shm_query_version_reply_t - **/ -typedef struct xcb_shm_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t shared_pixmaps; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t major_version; /**< */ - uint16_t minor_version; /**< */ - uint16_t uid; /**< */ - uint16_t gid; /**< */ - uint8_t pixmap_format; /**< */ - uint8_t pad0[15]; /**< */ -} xcb_shm_query_version_reply_t; - -/** Opcode for xcb_shm_attach. */ -#define XCB_SHM_ATTACH 1 - -/** - * @brief xcb_shm_attach_request_t - **/ -typedef struct xcb_shm_attach_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_shm_seg_t shmseg; /**< */ - uint32_t shmid; /**< */ - uint8_t read_only; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_shm_attach_request_t; - -/** Opcode for xcb_shm_detach. */ -#define XCB_SHM_DETACH 2 - -/** - * @brief xcb_shm_detach_request_t - **/ -typedef struct xcb_shm_detach_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_shm_seg_t shmseg; /**< */ -} xcb_shm_detach_request_t; - -/** Opcode for xcb_shm_put_image. */ -#define XCB_SHM_PUT_IMAGE 3 - -/** - * @brief xcb_shm_put_image_request_t - **/ -typedef struct xcb_shm_put_image_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - uint16_t total_width; /**< */ - uint16_t total_height; /**< */ - uint16_t src_x; /**< */ - uint16_t src_y; /**< */ - uint16_t src_width; /**< */ - uint16_t src_height; /**< */ - int16_t dst_x; /**< */ - int16_t dst_y; /**< */ - uint8_t depth; /**< */ - uint8_t format; /**< */ - uint8_t send_event; /**< */ - uint8_t pad0; /**< */ - xcb_shm_seg_t shmseg; /**< */ - uint32_t offset; /**< */ -} xcb_shm_put_image_request_t; - -/** - * @brief xcb_shm_get_image_cookie_t - **/ -typedef struct xcb_shm_get_image_cookie_t { - unsigned int sequence; /**< */ -} xcb_shm_get_image_cookie_t; - -/** Opcode for xcb_shm_get_image. */ -#define XCB_SHM_GET_IMAGE 4 - -/** - * @brief xcb_shm_get_image_request_t - **/ -typedef struct xcb_shm_get_image_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint32_t plane_mask; /**< */ - uint8_t format; /**< */ - uint8_t pad0[3]; /**< */ - xcb_shm_seg_t shmseg; /**< */ - uint32_t offset; /**< */ -} xcb_shm_get_image_request_t; - -/** - * @brief xcb_shm_get_image_reply_t - **/ -typedef struct xcb_shm_get_image_reply_t { - uint8_t response_type; /**< */ - uint8_t depth; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_visualid_t visual; /**< */ - uint32_t size; /**< */ -} xcb_shm_get_image_reply_t; - -/** Opcode for xcb_shm_create_pixmap. */ -#define XCB_SHM_CREATE_PIXMAP 5 - -/** - * @brief xcb_shm_create_pixmap_request_t - **/ -typedef struct xcb_shm_create_pixmap_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_pixmap_t pid; /**< */ - xcb_drawable_t drawable; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint8_t depth; /**< */ - uint8_t pad0[3]; /**< */ - xcb_shm_seg_t shmseg; /**< */ - uint32_t offset; /**< */ -} xcb_shm_create_pixmap_request_t; - -/** Opcode for xcb_shm_attach_fd. */ -#define XCB_SHM_ATTACH_FD 6 - -/** - * @brief xcb_shm_attach_fd_request_t - **/ -typedef struct xcb_shm_attach_fd_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_shm_seg_t shmseg; /**< */ - uint8_t read_only; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_shm_attach_fd_request_t; - -/** - * @brief xcb_shm_create_segment_cookie_t - **/ -typedef struct xcb_shm_create_segment_cookie_t { - unsigned int sequence; /**< */ -} xcb_shm_create_segment_cookie_t; - -/** Opcode for xcb_shm_create_segment. */ -#define XCB_SHM_CREATE_SEGMENT 7 - -/** - * @brief xcb_shm_create_segment_request_t - **/ -typedef struct xcb_shm_create_segment_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_shm_seg_t shmseg; /**< */ - uint32_t size; /**< */ - uint8_t read_only; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_shm_create_segment_request_t; - -/** - * @brief xcb_shm_create_segment_reply_t - **/ -typedef struct xcb_shm_create_segment_reply_t { - uint8_t response_type; /**< */ - uint8_t nfd; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad0[24]; /**< */ -} xcb_shm_create_segment_reply_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_shm_seg_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_shm_seg_t) - */ -void -xcb_shm_seg_next (xcb_shm_seg_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_shm_seg_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_shm_seg_end (xcb_shm_seg_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_shm_query_version_cookie_t -xcb_shm_query_version (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_shm_query_version_cookie_t -xcb_shm_query_version_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_shm_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_shm_query_version_reply_t * -xcb_shm_query_version_reply (xcb_connection_t *c /**< */, - xcb_shm_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_shm_attach_checked (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t shmid /**< */, - uint8_t read_only /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_shm_attach (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t shmid /**< */, - uint8_t read_only /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_shm_detach_checked (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_shm_detach (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_shm_put_image_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint16_t total_width /**< */, - uint16_t total_height /**< */, - uint16_t src_x /**< */, - uint16_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint8_t depth /**< */, - uint8_t format /**< */, - uint8_t send_event /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_shm_put_image (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint16_t total_width /**< */, - uint16_t total_height /**< */, - uint16_t src_x /**< */, - uint16_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint8_t depth /**< */, - uint8_t format /**< */, - uint8_t send_event /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_shm_get_image_cookie_t -xcb_shm_get_image (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t plane_mask /**< */, - uint8_t format /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_shm_get_image_cookie_t -xcb_shm_get_image_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t plane_mask /**< */, - uint8_t format /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_shm_get_image_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_shm_get_image_reply_t * -xcb_shm_get_image_reply (xcb_connection_t *c /**< */, - xcb_shm_get_image_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_shm_create_pixmap_checked (xcb_connection_t *c /**< */, - xcb_pixmap_t pid /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint8_t depth /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_shm_create_pixmap (xcb_connection_t *c /**< */, - xcb_pixmap_t pid /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint8_t depth /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t offset /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_shm_attach_fd_checked (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - int32_t shm_fd /**< */, - uint8_t read_only /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_shm_attach_fd (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - int32_t shm_fd /**< */, - uint8_t read_only /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_shm_create_segment_cookie_t -xcb_shm_create_segment (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t size /**< */, - uint8_t read_only /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_shm_create_segment_cookie_t -xcb_shm_create_segment_unchecked (xcb_connection_t *c /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t size /**< */, - uint8_t read_only /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_shm_create_segment_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_shm_create_segment_reply_t * -xcb_shm_create_segment_reply (xcb_connection_t *c /**< */, - xcb_shm_create_segment_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Return the reply fds - * @param c The connection - * @param reply The reply - * - * Returns the array of reply fds of the request asked by - * - * The returned value must be freed by the caller using free(). - */ -int * -xcb_shm_create_segment_reply_fds (xcb_connection_t *c /**< */, - xcb_shm_create_segment_reply_t *reply /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/sync.c b/external/mit/xorg/lib/libxcb/files/sync.c deleted file mode 100644 index 96ba34be6..000000000 --- a/external/mit/xorg/lib/libxcb/files/sync.c +++ /dev/null @@ -1,1952 +0,0 @@ -/* - * This file generated automatically from sync.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "sync.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_sync_id = { "SYNC", 0 }; - -void -xcb_sync_alarm_next (xcb_sync_alarm_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_sync_alarm_t); -} - -xcb_generic_iterator_t -xcb_sync_alarm_end (xcb_sync_alarm_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_sync_counter_next (xcb_sync_counter_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_sync_counter_t); -} - -xcb_generic_iterator_t -xcb_sync_counter_end (xcb_sync_counter_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_sync_fence_next (xcb_sync_fence_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_sync_fence_t); -} - -xcb_generic_iterator_t -xcb_sync_fence_end (xcb_sync_fence_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_sync_int64_next (xcb_sync_int64_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_sync_int64_t); -} - -xcb_generic_iterator_t -xcb_sync_int64_end (xcb_sync_int64_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_sync_systemcounter_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_sync_systemcounter_t *_aux = (xcb_sync_systemcounter_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_sync_systemcounter_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_sync_systemcounter_name (const xcb_sync_systemcounter_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_sync_systemcounter_name_length (const xcb_sync_systemcounter_t *R /**< */) -{ - return R->name_len; -} - -xcb_generic_iterator_t -xcb_sync_systemcounter_name_end (const xcb_sync_systemcounter_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->name_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_sync_systemcounter_next (xcb_sync_systemcounter_iterator_t *i /**< */) -{ - xcb_sync_systemcounter_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_sync_systemcounter_t *)(((char *)R) + xcb_sync_systemcounter_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_sync_systemcounter_t *) child.data; -} - -xcb_generic_iterator_t -xcb_sync_systemcounter_end (xcb_sync_systemcounter_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_sync_systemcounter_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_sync_trigger_next (xcb_sync_trigger_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_sync_trigger_t); -} - -xcb_generic_iterator_t -xcb_sync_trigger_end (xcb_sync_trigger_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_sync_waitcondition_next (xcb_sync_waitcondition_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_sync_waitcondition_t); -} - -xcb_generic_iterator_t -xcb_sync_waitcondition_end (xcb_sync_waitcondition_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_sync_initialize_cookie_t -xcb_sync_initialize (xcb_connection_t *c /**< */, - uint8_t desired_major_version /**< */, - uint8_t desired_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_INITIALIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_initialize_cookie_t xcb_ret; - xcb_sync_initialize_request_t xcb_out; - - xcb_out.desired_major_version = desired_major_version; - xcb_out.desired_minor_version = desired_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_initialize_cookie_t -xcb_sync_initialize_unchecked (xcb_connection_t *c /**< */, - uint8_t desired_major_version /**< */, - uint8_t desired_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_INITIALIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_initialize_cookie_t xcb_ret; - xcb_sync_initialize_request_t xcb_out; - - xcb_out.desired_major_version = desired_major_version; - xcb_out.desired_minor_version = desired_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_initialize_reply_t * -xcb_sync_initialize_reply (xcb_connection_t *c /**< */, - xcb_sync_initialize_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_sync_initialize_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_sync_list_system_counters_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_sync_list_system_counters_reply_t *_aux = (xcb_sync_list_system_counters_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_sync_list_system_counters_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* counters */ - for(i=0; i<_aux->counters_len; i++) { - xcb_tmp_len = xcb_sync_systemcounter_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_sync_systemcounter_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_sync_list_system_counters_cookie_t -xcb_sync_list_system_counters (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_LIST_SYSTEM_COUNTERS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_list_system_counters_cookie_t xcb_ret; - xcb_sync_list_system_counters_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_list_system_counters_cookie_t -xcb_sync_list_system_counters_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_LIST_SYSTEM_COUNTERS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_list_system_counters_cookie_t xcb_ret; - xcb_sync_list_system_counters_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_sync_list_system_counters_counters_length (const xcb_sync_list_system_counters_reply_t *R /**< */) -{ - return R->counters_len; -} - -xcb_sync_systemcounter_iterator_t -xcb_sync_list_system_counters_counters_iterator (const xcb_sync_list_system_counters_reply_t *R /**< */) -{ - xcb_sync_systemcounter_iterator_t i; - i.data = (xcb_sync_systemcounter_t *) (R + 1); - i.rem = R->counters_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_sync_list_system_counters_reply_t * -xcb_sync_list_system_counters_reply (xcb_connection_t *c /**< */, - xcb_sync_list_system_counters_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_sync_list_system_counters_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_sync_create_counter_checked (xcb_connection_t *c /**< */, - xcb_sync_counter_t id /**< */, - xcb_sync_int64_t initial_value /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CREATE_COUNTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_create_counter_request_t xcb_out; - - xcb_out.id = id; - xcb_out.initial_value = initial_value; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_create_counter (xcb_connection_t *c /**< */, - xcb_sync_counter_t id /**< */, - xcb_sync_int64_t initial_value /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CREATE_COUNTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_create_counter_request_t xcb_out; - - xcb_out.id = id; - xcb_out.initial_value = initial_value; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_destroy_counter_checked (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_DESTROY_COUNTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_destroy_counter_request_t xcb_out; - - xcb_out.counter = counter; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_destroy_counter (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_DESTROY_COUNTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_destroy_counter_request_t xcb_out; - - xcb_out.counter = counter; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_query_counter_cookie_t -xcb_sync_query_counter (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_QUERY_COUNTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_query_counter_cookie_t xcb_ret; - xcb_sync_query_counter_request_t xcb_out; - - xcb_out.counter = counter; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_query_counter_cookie_t -xcb_sync_query_counter_unchecked (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_QUERY_COUNTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_query_counter_cookie_t xcb_ret; - xcb_sync_query_counter_request_t xcb_out; - - xcb_out.counter = counter; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_query_counter_reply_t * -xcb_sync_query_counter_reply (xcb_connection_t *c /**< */, - xcb_sync_query_counter_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_sync_query_counter_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_sync_await_sizeof (const void *_buffer /**< */, - uint32_t wait_list_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_sync_await_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* wait_list */ - xcb_block_len += wait_list_len * sizeof(xcb_sync_waitcondition_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_sync_waitcondition_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_sync_await_checked (xcb_connection_t *c /**< */, - uint32_t wait_list_len /**< */, - const xcb_sync_waitcondition_t *wait_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_AWAIT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_sync_await_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_waitcondition_t wait_list */ - xcb_parts[4].iov_base = (char *) wait_list; - xcb_parts[4].iov_len = wait_list_len * sizeof(xcb_sync_waitcondition_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_await (xcb_connection_t *c /**< */, - uint32_t wait_list_len /**< */, - const xcb_sync_waitcondition_t *wait_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_AWAIT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_sync_await_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_waitcondition_t wait_list */ - xcb_parts[4].iov_base = (char *) wait_list; - xcb_parts[4].iov_len = wait_list_len * sizeof(xcb_sync_waitcondition_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_change_counter_checked (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */, - xcb_sync_int64_t amount /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CHANGE_COUNTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_change_counter_request_t xcb_out; - - xcb_out.counter = counter; - xcb_out.amount = amount; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_change_counter (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */, - xcb_sync_int64_t amount /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CHANGE_COUNTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_change_counter_request_t xcb_out; - - xcb_out.counter = counter; - xcb_out.amount = amount; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_set_counter_checked (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */, - xcb_sync_int64_t value /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_SET_COUNTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_set_counter_request_t xcb_out; - - xcb_out.counter = counter; - xcb_out.value = value; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_set_counter (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */, - xcb_sync_int64_t value /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_SET_COUNTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_set_counter_request_t xcb_out; - - xcb_out.counter = counter; - xcb_out.value = value; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_sync_create_alarm_value_list_serialize (void **_buffer /**< */, - uint32_t value_mask /**< */, - const xcb_sync_create_alarm_value_list_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[7]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(value_mask & XCB_SYNC_CA_COUNTER) { - /* xcb_sync_create_alarm_value_list_t.counter */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->counter; - xcb_block_len += sizeof(xcb_sync_counter_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_sync_counter_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_sync_counter_t); - } - if(value_mask & XCB_SYNC_CA_VALUE_TYPE) { - /* xcb_sync_create_alarm_value_list_t.valueType */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->valueType; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - if(value_mask & XCB_SYNC_CA_VALUE) { - /* xcb_sync_create_alarm_value_list_t.value */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->value; - xcb_block_len += sizeof(xcb_sync_int64_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_sync_int64_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_sync_int64_t); - } - if(value_mask & XCB_SYNC_CA_TEST_TYPE) { - /* xcb_sync_create_alarm_value_list_t.testType */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->testType; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - if(value_mask & XCB_SYNC_CA_DELTA) { - /* xcb_sync_create_alarm_value_list_t.delta */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->delta; - xcb_block_len += sizeof(xcb_sync_int64_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_sync_int64_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_sync_int64_t); - } - if(value_mask & XCB_SYNC_CA_EVENTS) { - /* xcb_sync_create_alarm_value_list_t.events */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->events; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; icounter = *(xcb_sync_counter_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_sync_counter_t); - xcb_tmp += sizeof(xcb_sync_counter_t); - xcb_align_to = ALIGNOF(xcb_sync_counter_t); - } - if(value_mask & XCB_SYNC_CA_VALUE_TYPE) { - /* xcb_sync_create_alarm_value_list_t.valueType */ - _aux->valueType = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - } - if(value_mask & XCB_SYNC_CA_VALUE) { - /* xcb_sync_create_alarm_value_list_t.value */ - _aux->value = *(xcb_sync_int64_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_sync_int64_t); - xcb_tmp += sizeof(xcb_sync_int64_t); - xcb_align_to = ALIGNOF(xcb_sync_int64_t); - } - if(value_mask & XCB_SYNC_CA_TEST_TYPE) { - /* xcb_sync_create_alarm_value_list_t.testType */ - _aux->testType = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - } - if(value_mask & XCB_SYNC_CA_DELTA) { - /* xcb_sync_create_alarm_value_list_t.delta */ - _aux->delta = *(xcb_sync_int64_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_sync_int64_t); - xcb_tmp += sizeof(xcb_sync_int64_t); - xcb_align_to = ALIGNOF(xcb_sync_int64_t); - } - if(value_mask & XCB_SYNC_CA_EVENTS) { - /* xcb_sync_create_alarm_value_list_t.events */ - _aux->events = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_sync_create_alarm_value_list_sizeof (const void *_buffer /**< */, - uint32_t value_mask /**< */) -{ - xcb_sync_create_alarm_value_list_t _aux; - return xcb_sync_create_alarm_value_list_unpack(_buffer, value_mask, &_aux); -} - -xcb_void_cookie_t -xcb_sync_create_alarm_checked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const void *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CREATE_ALARM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_sync_create_alarm_request_t xcb_out; - - xcb_out.id = id; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_create_alarm_value_list_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = - xcb_sync_create_alarm_value_list_sizeof (value_list, value_mask); - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_create_alarm (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const void *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CREATE_ALARM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_sync_create_alarm_request_t xcb_out; - - xcb_out.id = id; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_create_alarm_value_list_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = - xcb_sync_create_alarm_value_list_sizeof (value_list, value_mask); - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_create_alarm_aux_checked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const xcb_sync_create_alarm_value_list_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CREATE_ALARM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_sync_create_alarm_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.id = id; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_create_alarm_value_list_t value_list */ - xcb_parts[4].iov_len = - xcb_sync_create_alarm_value_list_serialize (&xcb_aux0, value_mask, value_list); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_create_alarm_aux (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const xcb_sync_create_alarm_value_list_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CREATE_ALARM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_sync_create_alarm_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.id = id; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_create_alarm_value_list_t value_list */ - xcb_parts[4].iov_len = - xcb_sync_create_alarm_value_list_serialize (&xcb_aux0, value_mask, value_list); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -int -xcb_sync_change_alarm_value_list_serialize (void **_buffer /**< */, - uint32_t value_mask /**< */, - const xcb_sync_change_alarm_value_list_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[7]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(value_mask & XCB_SYNC_CA_COUNTER) { - /* xcb_sync_change_alarm_value_list_t.counter */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->counter; - xcb_block_len += sizeof(xcb_sync_counter_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_sync_counter_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_sync_counter_t); - } - if(value_mask & XCB_SYNC_CA_VALUE_TYPE) { - /* xcb_sync_change_alarm_value_list_t.valueType */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->valueType; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - if(value_mask & XCB_SYNC_CA_VALUE) { - /* xcb_sync_change_alarm_value_list_t.value */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->value; - xcb_block_len += sizeof(xcb_sync_int64_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_sync_int64_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_sync_int64_t); - } - if(value_mask & XCB_SYNC_CA_TEST_TYPE) { - /* xcb_sync_change_alarm_value_list_t.testType */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->testType; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - if(value_mask & XCB_SYNC_CA_DELTA) { - /* xcb_sync_change_alarm_value_list_t.delta */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->delta; - xcb_block_len += sizeof(xcb_sync_int64_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_sync_int64_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_sync_int64_t); - } - if(value_mask & XCB_SYNC_CA_EVENTS) { - /* xcb_sync_change_alarm_value_list_t.events */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->events; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; icounter = *(xcb_sync_counter_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_sync_counter_t); - xcb_tmp += sizeof(xcb_sync_counter_t); - xcb_align_to = ALIGNOF(xcb_sync_counter_t); - } - if(value_mask & XCB_SYNC_CA_VALUE_TYPE) { - /* xcb_sync_change_alarm_value_list_t.valueType */ - _aux->valueType = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - } - if(value_mask & XCB_SYNC_CA_VALUE) { - /* xcb_sync_change_alarm_value_list_t.value */ - _aux->value = *(xcb_sync_int64_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_sync_int64_t); - xcb_tmp += sizeof(xcb_sync_int64_t); - xcb_align_to = ALIGNOF(xcb_sync_int64_t); - } - if(value_mask & XCB_SYNC_CA_TEST_TYPE) { - /* xcb_sync_change_alarm_value_list_t.testType */ - _aux->testType = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - } - if(value_mask & XCB_SYNC_CA_DELTA) { - /* xcb_sync_change_alarm_value_list_t.delta */ - _aux->delta = *(xcb_sync_int64_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_sync_int64_t); - xcb_tmp += sizeof(xcb_sync_int64_t); - xcb_align_to = ALIGNOF(xcb_sync_int64_t); - } - if(value_mask & XCB_SYNC_CA_EVENTS) { - /* xcb_sync_change_alarm_value_list_t.events */ - _aux->events = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_sync_change_alarm_value_list_sizeof (const void *_buffer /**< */, - uint32_t value_mask /**< */) -{ - xcb_sync_change_alarm_value_list_t _aux; - return xcb_sync_change_alarm_value_list_unpack(_buffer, value_mask, &_aux); -} - -xcb_void_cookie_t -xcb_sync_change_alarm_checked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const void *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CHANGE_ALARM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_sync_change_alarm_request_t xcb_out; - - xcb_out.id = id; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_change_alarm_value_list_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = - xcb_sync_change_alarm_value_list_sizeof (value_list, value_mask); - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_change_alarm (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const void *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CHANGE_ALARM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_sync_change_alarm_request_t xcb_out; - - xcb_out.id = id; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_change_alarm_value_list_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = - xcb_sync_change_alarm_value_list_sizeof (value_list, value_mask); - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_change_alarm_aux_checked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const xcb_sync_change_alarm_value_list_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CHANGE_ALARM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_sync_change_alarm_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.id = id; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_change_alarm_value_list_t value_list */ - xcb_parts[4].iov_len = - xcb_sync_change_alarm_value_list_serialize (&xcb_aux0, value_mask, value_list); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_change_alarm_aux (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const xcb_sync_change_alarm_value_list_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CHANGE_ALARM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_sync_change_alarm_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.id = id; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_change_alarm_value_list_t value_list */ - xcb_parts[4].iov_len = - xcb_sync_change_alarm_value_list_serialize (&xcb_aux0, value_mask, value_list); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_destroy_alarm_checked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t alarm /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_DESTROY_ALARM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_destroy_alarm_request_t xcb_out; - - xcb_out.alarm = alarm; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_destroy_alarm (xcb_connection_t *c /**< */, - xcb_sync_alarm_t alarm /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_DESTROY_ALARM, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_destroy_alarm_request_t xcb_out; - - xcb_out.alarm = alarm; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_query_alarm_cookie_t -xcb_sync_query_alarm (xcb_connection_t *c /**< */, - xcb_sync_alarm_t alarm /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_QUERY_ALARM, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_query_alarm_cookie_t xcb_ret; - xcb_sync_query_alarm_request_t xcb_out; - - xcb_out.alarm = alarm; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_query_alarm_cookie_t -xcb_sync_query_alarm_unchecked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t alarm /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_QUERY_ALARM, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_query_alarm_cookie_t xcb_ret; - xcb_sync_query_alarm_request_t xcb_out; - - xcb_out.alarm = alarm; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_query_alarm_reply_t * -xcb_sync_query_alarm_reply (xcb_connection_t *c /**< */, - xcb_sync_query_alarm_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_sync_query_alarm_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_sync_set_priority_checked (xcb_connection_t *c /**< */, - uint32_t id /**< */, - int32_t priority /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_SET_PRIORITY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_set_priority_request_t xcb_out; - - xcb_out.id = id; - xcb_out.priority = priority; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_set_priority (xcb_connection_t *c /**< */, - uint32_t id /**< */, - int32_t priority /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_SET_PRIORITY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_set_priority_request_t xcb_out; - - xcb_out.id = id; - xcb_out.priority = priority; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_get_priority_cookie_t -xcb_sync_get_priority (xcb_connection_t *c /**< */, - uint32_t id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_GET_PRIORITY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_get_priority_cookie_t xcb_ret; - xcb_sync_get_priority_request_t xcb_out; - - xcb_out.id = id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_get_priority_cookie_t -xcb_sync_get_priority_unchecked (xcb_connection_t *c /**< */, - uint32_t id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_GET_PRIORITY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_get_priority_cookie_t xcb_ret; - xcb_sync_get_priority_request_t xcb_out; - - xcb_out.id = id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_get_priority_reply_t * -xcb_sync_get_priority_reply (xcb_connection_t *c /**< */, - xcb_sync_get_priority_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_sync_get_priority_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_sync_create_fence_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_sync_fence_t fence /**< */, - uint8_t initially_triggered /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CREATE_FENCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_create_fence_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.fence = fence; - xcb_out.initially_triggered = initially_triggered; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_create_fence (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_sync_fence_t fence /**< */, - uint8_t initially_triggered /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_CREATE_FENCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_create_fence_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.fence = fence; - xcb_out.initially_triggered = initially_triggered; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_trigger_fence_checked (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_TRIGGER_FENCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_trigger_fence_request_t xcb_out; - - xcb_out.fence = fence; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_trigger_fence (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_TRIGGER_FENCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_trigger_fence_request_t xcb_out; - - xcb_out.fence = fence; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_reset_fence_checked (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_RESET_FENCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_reset_fence_request_t xcb_out; - - xcb_out.fence = fence; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_reset_fence (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_RESET_FENCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_reset_fence_request_t xcb_out; - - xcb_out.fence = fence; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_destroy_fence_checked (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_DESTROY_FENCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_destroy_fence_request_t xcb_out; - - xcb_out.fence = fence; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_destroy_fence (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_DESTROY_FENCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_sync_destroy_fence_request_t xcb_out; - - xcb_out.fence = fence; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_query_fence_cookie_t -xcb_sync_query_fence (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_QUERY_FENCE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_query_fence_cookie_t xcb_ret; - xcb_sync_query_fence_request_t xcb_out; - - xcb_out.fence = fence; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_query_fence_cookie_t -xcb_sync_query_fence_unchecked (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_QUERY_FENCE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_sync_query_fence_cookie_t xcb_ret; - xcb_sync_query_fence_request_t xcb_out; - - xcb_out.fence = fence; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_sync_query_fence_reply_t * -xcb_sync_query_fence_reply (xcb_connection_t *c /**< */, - xcb_sync_query_fence_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_sync_query_fence_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_sync_await_fence_sizeof (const void *_buffer /**< */, - uint32_t fence_list_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_sync_await_fence_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* fence_list */ - xcb_block_len += fence_list_len * sizeof(xcb_sync_fence_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_sync_fence_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_sync_await_fence_checked (xcb_connection_t *c /**< */, - uint32_t fence_list_len /**< */, - const xcb_sync_fence_t *fence_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_AWAIT_FENCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_sync_await_fence_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_fence_t fence_list */ - xcb_parts[4].iov_base = (char *) fence_list; - xcb_parts[4].iov_len = fence_list_len * sizeof(xcb_sync_fence_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_sync_await_fence (xcb_connection_t *c /**< */, - uint32_t fence_list_len /**< */, - const xcb_sync_fence_t *fence_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_sync_id, - /* opcode */ XCB_SYNC_AWAIT_FENCE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_sync_await_fence_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_sync_fence_t fence_list */ - xcb_parts[4].iov_base = (char *) fence_list; - xcb_parts[4].iov_len = fence_list_len * sizeof(xcb_sync_fence_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - diff --git a/external/mit/xorg/lib/libxcb/files/sync.h b/external/mit/xorg/lib/libxcb/files/sync.h deleted file mode 100644 index a21969c63..000000000 --- a/external/mit/xorg/lib/libxcb/files/sync.h +++ /dev/null @@ -1,1598 +0,0 @@ -/* - * This file generated automatically from sync.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Sync_API XCB Sync API - * @brief Sync XCB Protocol Implementation. - * @{ - **/ - -#ifndef __SYNC_H -#define __SYNC_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_SYNC_MAJOR_VERSION 3 -#define XCB_SYNC_MINOR_VERSION 1 - -extern xcb_extension_t xcb_sync_id; - -typedef uint32_t xcb_sync_alarm_t; - -/** - * @brief xcb_sync_alarm_iterator_t - **/ -typedef struct xcb_sync_alarm_iterator_t { - xcb_sync_alarm_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_sync_alarm_iterator_t; - -typedef enum xcb_sync_alarmstate_t { - XCB_SYNC_ALARMSTATE_ACTIVE = 0, - XCB_SYNC_ALARMSTATE_INACTIVE = 1, - XCB_SYNC_ALARMSTATE_DESTROYED = 2 -} xcb_sync_alarmstate_t; - -typedef uint32_t xcb_sync_counter_t; - -/** - * @brief xcb_sync_counter_iterator_t - **/ -typedef struct xcb_sync_counter_iterator_t { - xcb_sync_counter_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_sync_counter_iterator_t; - -typedef uint32_t xcb_sync_fence_t; - -/** - * @brief xcb_sync_fence_iterator_t - **/ -typedef struct xcb_sync_fence_iterator_t { - xcb_sync_fence_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_sync_fence_iterator_t; - -typedef enum xcb_sync_testtype_t { - XCB_SYNC_TESTTYPE_POSITIVE_TRANSITION = 0, - XCB_SYNC_TESTTYPE_NEGATIVE_TRANSITION = 1, - XCB_SYNC_TESTTYPE_POSITIVE_COMPARISON = 2, - XCB_SYNC_TESTTYPE_NEGATIVE_COMPARISON = 3 -} xcb_sync_testtype_t; - -typedef enum xcb_sync_valuetype_t { - XCB_SYNC_VALUETYPE_ABSOLUTE = 0, - XCB_SYNC_VALUETYPE_RELATIVE = 1 -} xcb_sync_valuetype_t; - -typedef enum xcb_sync_ca_t { - XCB_SYNC_CA_COUNTER = 1, - XCB_SYNC_CA_VALUE_TYPE = 2, - XCB_SYNC_CA_VALUE = 4, - XCB_SYNC_CA_TEST_TYPE = 8, - XCB_SYNC_CA_DELTA = 16, - XCB_SYNC_CA_EVENTS = 32 -} xcb_sync_ca_t; - -/** - * @brief xcb_sync_int64_t - **/ -typedef struct xcb_sync_int64_t { - int32_t hi; /**< */ - uint32_t lo; /**< */ -} xcb_sync_int64_t; - -/** - * @brief xcb_sync_int64_iterator_t - **/ -typedef struct xcb_sync_int64_iterator_t { - xcb_sync_int64_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_sync_int64_iterator_t; - -/** - * @brief xcb_sync_systemcounter_t - **/ -typedef struct xcb_sync_systemcounter_t { - xcb_sync_counter_t counter; /**< */ - xcb_sync_int64_t resolution; /**< */ - uint16_t name_len; /**< */ -} xcb_sync_systemcounter_t; - -/** - * @brief xcb_sync_systemcounter_iterator_t - **/ -typedef struct xcb_sync_systemcounter_iterator_t { - xcb_sync_systemcounter_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_sync_systemcounter_iterator_t; - -/** - * @brief xcb_sync_trigger_t - **/ -typedef struct xcb_sync_trigger_t { - xcb_sync_counter_t counter; /**< */ - uint32_t wait_type; /**< */ - xcb_sync_int64_t wait_value; /**< */ - uint32_t test_type; /**< */ -} xcb_sync_trigger_t; - -/** - * @brief xcb_sync_trigger_iterator_t - **/ -typedef struct xcb_sync_trigger_iterator_t { - xcb_sync_trigger_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_sync_trigger_iterator_t; - -/** - * @brief xcb_sync_waitcondition_t - **/ -typedef struct xcb_sync_waitcondition_t { - xcb_sync_trigger_t trigger; /**< */ - xcb_sync_int64_t event_threshold; /**< */ -} xcb_sync_waitcondition_t; - -/** - * @brief xcb_sync_waitcondition_iterator_t - **/ -typedef struct xcb_sync_waitcondition_iterator_t { - xcb_sync_waitcondition_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_sync_waitcondition_iterator_t; - -/** Opcode for xcb_sync_counter. */ -#define XCB_SYNC_COUNTER 0 - -/** - * @brief xcb_sync_counter_error_t - **/ -typedef struct xcb_sync_counter_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ - uint32_t bad_counter; /**< */ - uint16_t minor_opcode; /**< */ - uint8_t major_opcode; /**< */ -} xcb_sync_counter_error_t; - -/** Opcode for xcb_sync_alarm. */ -#define XCB_SYNC_ALARM 1 - -/** - * @brief xcb_sync_alarm_error_t - **/ -typedef struct xcb_sync_alarm_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ - uint32_t bad_alarm; /**< */ - uint16_t minor_opcode; /**< */ - uint8_t major_opcode; /**< */ -} xcb_sync_alarm_error_t; - -/** - * @brief xcb_sync_initialize_cookie_t - **/ -typedef struct xcb_sync_initialize_cookie_t { - unsigned int sequence; /**< */ -} xcb_sync_initialize_cookie_t; - -/** Opcode for xcb_sync_initialize. */ -#define XCB_SYNC_INITIALIZE 0 - -/** - * @brief xcb_sync_initialize_request_t - **/ -typedef struct xcb_sync_initialize_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t desired_major_version; /**< */ - uint8_t desired_minor_version; /**< */ -} xcb_sync_initialize_request_t; - -/** - * @brief xcb_sync_initialize_reply_t - **/ -typedef struct xcb_sync_initialize_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t major_version; /**< */ - uint8_t minor_version; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_sync_initialize_reply_t; - -/** - * @brief xcb_sync_list_system_counters_cookie_t - **/ -typedef struct xcb_sync_list_system_counters_cookie_t { - unsigned int sequence; /**< */ -} xcb_sync_list_system_counters_cookie_t; - -/** Opcode for xcb_sync_list_system_counters. */ -#define XCB_SYNC_LIST_SYSTEM_COUNTERS 1 - -/** - * @brief xcb_sync_list_system_counters_request_t - **/ -typedef struct xcb_sync_list_system_counters_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_sync_list_system_counters_request_t; - -/** - * @brief xcb_sync_list_system_counters_reply_t - **/ -typedef struct xcb_sync_list_system_counters_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t counters_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_sync_list_system_counters_reply_t; - -/** Opcode for xcb_sync_create_counter. */ -#define XCB_SYNC_CREATE_COUNTER 2 - -/** - * @brief xcb_sync_create_counter_request_t - **/ -typedef struct xcb_sync_create_counter_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_counter_t id; /**< */ - xcb_sync_int64_t initial_value; /**< */ -} xcb_sync_create_counter_request_t; - -/** Opcode for xcb_sync_destroy_counter. */ -#define XCB_SYNC_DESTROY_COUNTER 6 - -/** - * @brief xcb_sync_destroy_counter_request_t - **/ -typedef struct xcb_sync_destroy_counter_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_counter_t counter; /**< */ -} xcb_sync_destroy_counter_request_t; - -/** - * @brief xcb_sync_query_counter_cookie_t - **/ -typedef struct xcb_sync_query_counter_cookie_t { - unsigned int sequence; /**< */ -} xcb_sync_query_counter_cookie_t; - -/** Opcode for xcb_sync_query_counter. */ -#define XCB_SYNC_QUERY_COUNTER 5 - -/** - * @brief xcb_sync_query_counter_request_t - **/ -typedef struct xcb_sync_query_counter_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_counter_t counter; /**< */ -} xcb_sync_query_counter_request_t; - -/** - * @brief xcb_sync_query_counter_reply_t - **/ -typedef struct xcb_sync_query_counter_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_sync_int64_t counter_value; /**< */ -} xcb_sync_query_counter_reply_t; - -/** Opcode for xcb_sync_await. */ -#define XCB_SYNC_AWAIT 7 - -/** - * @brief xcb_sync_await_request_t - **/ -typedef struct xcb_sync_await_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_sync_await_request_t; - -/** Opcode for xcb_sync_change_counter. */ -#define XCB_SYNC_CHANGE_COUNTER 4 - -/** - * @brief xcb_sync_change_counter_request_t - **/ -typedef struct xcb_sync_change_counter_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_counter_t counter; /**< */ - xcb_sync_int64_t amount; /**< */ -} xcb_sync_change_counter_request_t; - -/** Opcode for xcb_sync_set_counter. */ -#define XCB_SYNC_SET_COUNTER 3 - -/** - * @brief xcb_sync_set_counter_request_t - **/ -typedef struct xcb_sync_set_counter_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_counter_t counter; /**< */ - xcb_sync_int64_t value; /**< */ -} xcb_sync_set_counter_request_t; - -/** - * @brief xcb_sync_create_alarm_value_list_t - **/ -typedef struct xcb_sync_create_alarm_value_list_t { - xcb_sync_counter_t counter; /**< */ - uint32_t valueType; /**< */ - xcb_sync_int64_t value; /**< */ - uint32_t testType; /**< */ - xcb_sync_int64_t delta; /**< */ - uint32_t events; /**< */ -} xcb_sync_create_alarm_value_list_t; - -/** Opcode for xcb_sync_create_alarm. */ -#define XCB_SYNC_CREATE_ALARM 8 - -/** - * @brief xcb_sync_create_alarm_request_t - **/ -typedef struct xcb_sync_create_alarm_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_alarm_t id; /**< */ - uint32_t value_mask; /**< */ -} xcb_sync_create_alarm_request_t; - -/** - * @brief xcb_sync_change_alarm_value_list_t - **/ -typedef struct xcb_sync_change_alarm_value_list_t { - xcb_sync_counter_t counter; /**< */ - uint32_t valueType; /**< */ - xcb_sync_int64_t value; /**< */ - uint32_t testType; /**< */ - xcb_sync_int64_t delta; /**< */ - uint32_t events; /**< */ -} xcb_sync_change_alarm_value_list_t; - -/** Opcode for xcb_sync_change_alarm. */ -#define XCB_SYNC_CHANGE_ALARM 9 - -/** - * @brief xcb_sync_change_alarm_request_t - **/ -typedef struct xcb_sync_change_alarm_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_alarm_t id; /**< */ - uint32_t value_mask; /**< */ -} xcb_sync_change_alarm_request_t; - -/** Opcode for xcb_sync_destroy_alarm. */ -#define XCB_SYNC_DESTROY_ALARM 11 - -/** - * @brief xcb_sync_destroy_alarm_request_t - **/ -typedef struct xcb_sync_destroy_alarm_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_alarm_t alarm; /**< */ -} xcb_sync_destroy_alarm_request_t; - -/** - * @brief xcb_sync_query_alarm_cookie_t - **/ -typedef struct xcb_sync_query_alarm_cookie_t { - unsigned int sequence; /**< */ -} xcb_sync_query_alarm_cookie_t; - -/** Opcode for xcb_sync_query_alarm. */ -#define XCB_SYNC_QUERY_ALARM 10 - -/** - * @brief xcb_sync_query_alarm_request_t - **/ -typedef struct xcb_sync_query_alarm_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_alarm_t alarm; /**< */ -} xcb_sync_query_alarm_request_t; - -/** - * @brief xcb_sync_query_alarm_reply_t - **/ -typedef struct xcb_sync_query_alarm_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_sync_trigger_t trigger; /**< */ - xcb_sync_int64_t delta; /**< */ - uint8_t events; /**< */ - uint8_t state; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_sync_query_alarm_reply_t; - -/** Opcode for xcb_sync_set_priority. */ -#define XCB_SYNC_SET_PRIORITY 12 - -/** - * @brief xcb_sync_set_priority_request_t - **/ -typedef struct xcb_sync_set_priority_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t id; /**< */ - int32_t priority; /**< */ -} xcb_sync_set_priority_request_t; - -/** - * @brief xcb_sync_get_priority_cookie_t - **/ -typedef struct xcb_sync_get_priority_cookie_t { - unsigned int sequence; /**< */ -} xcb_sync_get_priority_cookie_t; - -/** Opcode for xcb_sync_get_priority. */ -#define XCB_SYNC_GET_PRIORITY 13 - -/** - * @brief xcb_sync_get_priority_request_t - **/ -typedef struct xcb_sync_get_priority_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t id; /**< */ -} xcb_sync_get_priority_request_t; - -/** - * @brief xcb_sync_get_priority_reply_t - **/ -typedef struct xcb_sync_get_priority_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - int32_t priority; /**< */ -} xcb_sync_get_priority_reply_t; - -/** Opcode for xcb_sync_create_fence. */ -#define XCB_SYNC_CREATE_FENCE 14 - -/** - * @brief xcb_sync_create_fence_request_t - **/ -typedef struct xcb_sync_create_fence_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_sync_fence_t fence; /**< */ - uint8_t initially_triggered; /**< */ -} xcb_sync_create_fence_request_t; - -/** Opcode for xcb_sync_trigger_fence. */ -#define XCB_SYNC_TRIGGER_FENCE 15 - -/** - * @brief xcb_sync_trigger_fence_request_t - **/ -typedef struct xcb_sync_trigger_fence_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_fence_t fence; /**< */ -} xcb_sync_trigger_fence_request_t; - -/** Opcode for xcb_sync_reset_fence. */ -#define XCB_SYNC_RESET_FENCE 16 - -/** - * @brief xcb_sync_reset_fence_request_t - **/ -typedef struct xcb_sync_reset_fence_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_fence_t fence; /**< */ -} xcb_sync_reset_fence_request_t; - -/** Opcode for xcb_sync_destroy_fence. */ -#define XCB_SYNC_DESTROY_FENCE 17 - -/** - * @brief xcb_sync_destroy_fence_request_t - **/ -typedef struct xcb_sync_destroy_fence_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_fence_t fence; /**< */ -} xcb_sync_destroy_fence_request_t; - -/** - * @brief xcb_sync_query_fence_cookie_t - **/ -typedef struct xcb_sync_query_fence_cookie_t { - unsigned int sequence; /**< */ -} xcb_sync_query_fence_cookie_t; - -/** Opcode for xcb_sync_query_fence. */ -#define XCB_SYNC_QUERY_FENCE 18 - -/** - * @brief xcb_sync_query_fence_request_t - **/ -typedef struct xcb_sync_query_fence_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_sync_fence_t fence; /**< */ -} xcb_sync_query_fence_request_t; - -/** - * @brief xcb_sync_query_fence_reply_t - **/ -typedef struct xcb_sync_query_fence_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t triggered; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_sync_query_fence_reply_t; - -/** Opcode for xcb_sync_await_fence. */ -#define XCB_SYNC_AWAIT_FENCE 19 - -/** - * @brief xcb_sync_await_fence_request_t - **/ -typedef struct xcb_sync_await_fence_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_sync_await_fence_request_t; - -/** Opcode for xcb_sync_counter_notify. */ -#define XCB_SYNC_COUNTER_NOTIFY 0 - -/** - * @brief xcb_sync_counter_notify_event_t - **/ -typedef struct xcb_sync_counter_notify_event_t { - uint8_t response_type; /**< */ - uint8_t kind; /**< */ - uint16_t sequence; /**< */ - xcb_sync_counter_t counter; /**< */ - xcb_sync_int64_t wait_value; /**< */ - xcb_sync_int64_t counter_value; /**< */ - xcb_timestamp_t timestamp; /**< */ - uint16_t count; /**< */ - uint8_t destroyed; /**< */ - uint8_t pad0; /**< */ -} xcb_sync_counter_notify_event_t; - -/** Opcode for xcb_sync_alarm_notify. */ -#define XCB_SYNC_ALARM_NOTIFY 1 - -/** - * @brief xcb_sync_alarm_notify_event_t - **/ -typedef struct xcb_sync_alarm_notify_event_t { - uint8_t response_type; /**< */ - uint8_t kind; /**< */ - uint16_t sequence; /**< */ - xcb_sync_alarm_t alarm; /**< */ - xcb_sync_int64_t counter_value; /**< */ - xcb_sync_int64_t alarm_value; /**< */ - xcb_timestamp_t timestamp; /**< */ - uint8_t state; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_sync_alarm_notify_event_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_sync_alarm_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_sync_alarm_t) - */ -void -xcb_sync_alarm_next (xcb_sync_alarm_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_sync_alarm_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_sync_alarm_end (xcb_sync_alarm_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_sync_counter_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_sync_counter_t) - */ -void -xcb_sync_counter_next (xcb_sync_counter_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_sync_counter_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_sync_counter_end (xcb_sync_counter_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_sync_fence_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_sync_fence_t) - */ -void -xcb_sync_fence_next (xcb_sync_fence_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_sync_fence_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_sync_fence_end (xcb_sync_fence_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_sync_int64_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_sync_int64_t) - */ -void -xcb_sync_int64_next (xcb_sync_int64_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_sync_int64_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_sync_int64_end (xcb_sync_int64_iterator_t i /**< */); - -int -xcb_sync_systemcounter_sizeof (const void *_buffer /**< */); - -char * -xcb_sync_systemcounter_name (const xcb_sync_systemcounter_t *R /**< */); - -int -xcb_sync_systemcounter_name_length (const xcb_sync_systemcounter_t *R /**< */); - -xcb_generic_iterator_t -xcb_sync_systemcounter_name_end (const xcb_sync_systemcounter_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_sync_systemcounter_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_sync_systemcounter_t) - */ -void -xcb_sync_systemcounter_next (xcb_sync_systemcounter_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_sync_systemcounter_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_sync_systemcounter_end (xcb_sync_systemcounter_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_sync_trigger_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_sync_trigger_t) - */ -void -xcb_sync_trigger_next (xcb_sync_trigger_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_sync_trigger_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_sync_trigger_end (xcb_sync_trigger_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_sync_waitcondition_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_sync_waitcondition_t) - */ -void -xcb_sync_waitcondition_next (xcb_sync_waitcondition_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_sync_waitcondition_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_sync_waitcondition_end (xcb_sync_waitcondition_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_sync_initialize_cookie_t -xcb_sync_initialize (xcb_connection_t *c /**< */, - uint8_t desired_major_version /**< */, - uint8_t desired_minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_sync_initialize_cookie_t -xcb_sync_initialize_unchecked (xcb_connection_t *c /**< */, - uint8_t desired_major_version /**< */, - uint8_t desired_minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_sync_initialize_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_sync_initialize_reply_t * -xcb_sync_initialize_reply (xcb_connection_t *c /**< */, - xcb_sync_initialize_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_sync_list_system_counters_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_sync_list_system_counters_cookie_t -xcb_sync_list_system_counters (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_sync_list_system_counters_cookie_t -xcb_sync_list_system_counters_unchecked (xcb_connection_t *c /**< */); - -int -xcb_sync_list_system_counters_counters_length (const xcb_sync_list_system_counters_reply_t *R /**< */); - -xcb_sync_systemcounter_iterator_t -xcb_sync_list_system_counters_counters_iterator (const xcb_sync_list_system_counters_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_sync_list_system_counters_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_sync_list_system_counters_reply_t * -xcb_sync_list_system_counters_reply (xcb_connection_t *c /**< */, - xcb_sync_list_system_counters_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_create_counter_checked (xcb_connection_t *c /**< */, - xcb_sync_counter_t id /**< */, - xcb_sync_int64_t initial_value /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_create_counter (xcb_connection_t *c /**< */, - xcb_sync_counter_t id /**< */, - xcb_sync_int64_t initial_value /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_destroy_counter_checked (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_destroy_counter (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_sync_query_counter_cookie_t -xcb_sync_query_counter (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_sync_query_counter_cookie_t -xcb_sync_query_counter_unchecked (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_sync_query_counter_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_sync_query_counter_reply_t * -xcb_sync_query_counter_reply (xcb_connection_t *c /**< */, - xcb_sync_query_counter_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_sync_await_sizeof (const void *_buffer /**< */, - uint32_t wait_list_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_await_checked (xcb_connection_t *c /**< */, - uint32_t wait_list_len /**< */, - const xcb_sync_waitcondition_t *wait_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_await (xcb_connection_t *c /**< */, - uint32_t wait_list_len /**< */, - const xcb_sync_waitcondition_t *wait_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_change_counter_checked (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */, - xcb_sync_int64_t amount /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_change_counter (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */, - xcb_sync_int64_t amount /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_set_counter_checked (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */, - xcb_sync_int64_t value /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_set_counter (xcb_connection_t *c /**< */, - xcb_sync_counter_t counter /**< */, - xcb_sync_int64_t value /**< */); - -int -xcb_sync_create_alarm_value_list_serialize (void **_buffer /**< */, - uint32_t value_mask /**< */, - const xcb_sync_create_alarm_value_list_t *_aux /**< */); - -int -xcb_sync_create_alarm_value_list_unpack (const void *_buffer /**< */, - uint32_t value_mask /**< */, - xcb_sync_create_alarm_value_list_t *_aux /**< */); - -int -xcb_sync_create_alarm_value_list_sizeof (const void *_buffer /**< */, - uint32_t value_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_create_alarm_checked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const void *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_create_alarm (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const void *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_create_alarm_aux_checked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const xcb_sync_create_alarm_value_list_t *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_create_alarm_aux (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const xcb_sync_create_alarm_value_list_t *value_list /**< */); - -int -xcb_sync_change_alarm_value_list_serialize (void **_buffer /**< */, - uint32_t value_mask /**< */, - const xcb_sync_change_alarm_value_list_t *_aux /**< */); - -int -xcb_sync_change_alarm_value_list_unpack (const void *_buffer /**< */, - uint32_t value_mask /**< */, - xcb_sync_change_alarm_value_list_t *_aux /**< */); - -int -xcb_sync_change_alarm_value_list_sizeof (const void *_buffer /**< */, - uint32_t value_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_change_alarm_checked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const void *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_change_alarm (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const void *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_change_alarm_aux_checked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const xcb_sync_change_alarm_value_list_t *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_change_alarm_aux (xcb_connection_t *c /**< */, - xcb_sync_alarm_t id /**< */, - uint32_t value_mask /**< */, - const xcb_sync_change_alarm_value_list_t *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_destroy_alarm_checked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t alarm /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_destroy_alarm (xcb_connection_t *c /**< */, - xcb_sync_alarm_t alarm /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_sync_query_alarm_cookie_t -xcb_sync_query_alarm (xcb_connection_t *c /**< */, - xcb_sync_alarm_t alarm /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_sync_query_alarm_cookie_t -xcb_sync_query_alarm_unchecked (xcb_connection_t *c /**< */, - xcb_sync_alarm_t alarm /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_sync_query_alarm_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_sync_query_alarm_reply_t * -xcb_sync_query_alarm_reply (xcb_connection_t *c /**< */, - xcb_sync_query_alarm_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_set_priority_checked (xcb_connection_t *c /**< */, - uint32_t id /**< */, - int32_t priority /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_set_priority (xcb_connection_t *c /**< */, - uint32_t id /**< */, - int32_t priority /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_sync_get_priority_cookie_t -xcb_sync_get_priority (xcb_connection_t *c /**< */, - uint32_t id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_sync_get_priority_cookie_t -xcb_sync_get_priority_unchecked (xcb_connection_t *c /**< */, - uint32_t id /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_sync_get_priority_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_sync_get_priority_reply_t * -xcb_sync_get_priority_reply (xcb_connection_t *c /**< */, - xcb_sync_get_priority_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_create_fence_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_sync_fence_t fence /**< */, - uint8_t initially_triggered /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_create_fence (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_sync_fence_t fence /**< */, - uint8_t initially_triggered /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_trigger_fence_checked (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_trigger_fence (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_reset_fence_checked (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_reset_fence (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_destroy_fence_checked (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_destroy_fence (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_sync_query_fence_cookie_t -xcb_sync_query_fence (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_sync_query_fence_cookie_t -xcb_sync_query_fence_unchecked (xcb_connection_t *c /**< */, - xcb_sync_fence_t fence /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_sync_query_fence_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_sync_query_fence_reply_t * -xcb_sync_query_fence_reply (xcb_connection_t *c /**< */, - xcb_sync_query_fence_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_sync_await_fence_sizeof (const void *_buffer /**< */, - uint32_t fence_list_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_sync_await_fence_checked (xcb_connection_t *c /**< */, - uint32_t fence_list_len /**< */, - const xcb_sync_fence_t *fence_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_sync_await_fence (xcb_connection_t *c /**< */, - uint32_t fence_list_len /**< */, - const xcb_sync_fence_t *fence_list /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xc_misc.c b/external/mit/xorg/lib/libxcb/files/xc_misc.c deleted file mode 100644 index 06e71fac5..000000000 --- a/external/mit/xorg/lib/libxcb/files/xc_misc.c +++ /dev/null @@ -1,252 +0,0 @@ -/* - * This file generated automatically from xc_misc.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xc_misc.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) - -xcb_extension_t xcb_xc_misc_id = { "XC-MISC", 0 }; - -xcb_xc_misc_get_version_cookie_t -xcb_xc_misc_get_version (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xc_misc_id, - /* opcode */ XCB_XC_MISC_GET_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xc_misc_get_version_cookie_t xcb_ret; - xcb_xc_misc_get_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xc_misc_get_version_cookie_t -xcb_xc_misc_get_version_unchecked (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xc_misc_id, - /* opcode */ XCB_XC_MISC_GET_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xc_misc_get_version_cookie_t xcb_ret; - xcb_xc_misc_get_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xc_misc_get_version_reply_t * -xcb_xc_misc_get_version_reply (xcb_connection_t *c /**< */, - xcb_xc_misc_get_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xc_misc_get_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xc_misc_get_xid_range_cookie_t -xcb_xc_misc_get_xid_range (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xc_misc_id, - /* opcode */ XCB_XC_MISC_GET_XID_RANGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xc_misc_get_xid_range_cookie_t xcb_ret; - xcb_xc_misc_get_xid_range_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xc_misc_get_xid_range_cookie_t -xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xc_misc_id, - /* opcode */ XCB_XC_MISC_GET_XID_RANGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xc_misc_get_xid_range_cookie_t xcb_ret; - xcb_xc_misc_get_xid_range_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xc_misc_get_xid_range_reply_t * -xcb_xc_misc_get_xid_range_reply (xcb_connection_t *c /**< */, - xcb_xc_misc_get_xid_range_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xc_misc_get_xid_range_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xc_misc_get_xid_list_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xc_misc_get_xid_list_reply_t *_aux = (xcb_xc_misc_get_xid_list_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xc_misc_get_xid_list_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* ids */ - xcb_block_len += _aux->ids_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xc_misc_get_xid_list_cookie_t -xcb_xc_misc_get_xid_list (xcb_connection_t *c /**< */, - uint32_t count /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xc_misc_id, - /* opcode */ XCB_XC_MISC_GET_XID_LIST, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xc_misc_get_xid_list_cookie_t xcb_ret; - xcb_xc_misc_get_xid_list_request_t xcb_out; - - xcb_out.count = count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xc_misc_get_xid_list_cookie_t -xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c /**< */, - uint32_t count /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xc_misc_id, - /* opcode */ XCB_XC_MISC_GET_XID_LIST, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xc_misc_get_xid_list_cookie_t xcb_ret; - xcb_xc_misc_get_xid_list_request_t xcb_out; - - xcb_out.count = count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R /**< */) -{ - return R->ids_len; -} - -xcb_generic_iterator_t -xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->ids_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xc_misc_get_xid_list_reply_t * -xcb_xc_misc_get_xid_list_reply (xcb_connection_t *c /**< */, - xcb_xc_misc_get_xid_list_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xc_misc_get_xid_list_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/xc_misc.h b/external/mit/xorg/lib/libxcb/files/xc_misc.h deleted file mode 100644 index 5df599f96..000000000 --- a/external/mit/xorg/lib/libxcb/files/xc_misc.h +++ /dev/null @@ -1,281 +0,0 @@ -/* - * This file generated automatically from xc_misc.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_XCMisc_API XCB XCMisc API - * @brief XCMisc XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XC_MISC_H -#define __XC_MISC_H - -#include "xcb.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_XCMISC_MAJOR_VERSION 1 -#define XCB_XCMISC_MINOR_VERSION 1 - -extern xcb_extension_t xcb_xc_misc_id; - -/** - * @brief xcb_xc_misc_get_version_cookie_t - **/ -typedef struct xcb_xc_misc_get_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_xc_misc_get_version_cookie_t; - -/** Opcode for xcb_xc_misc_get_version. */ -#define XCB_XC_MISC_GET_VERSION 0 - -/** - * @brief xcb_xc_misc_get_version_request_t - **/ -typedef struct xcb_xc_misc_get_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t client_major_version; /**< */ - uint16_t client_minor_version; /**< */ -} xcb_xc_misc_get_version_request_t; - -/** - * @brief xcb_xc_misc_get_version_reply_t - **/ -typedef struct xcb_xc_misc_get_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t server_major_version; /**< */ - uint16_t server_minor_version; /**< */ -} xcb_xc_misc_get_version_reply_t; - -/** - * @brief xcb_xc_misc_get_xid_range_cookie_t - **/ -typedef struct xcb_xc_misc_get_xid_range_cookie_t { - unsigned int sequence; /**< */ -} xcb_xc_misc_get_xid_range_cookie_t; - -/** Opcode for xcb_xc_misc_get_xid_range. */ -#define XCB_XC_MISC_GET_XID_RANGE 1 - -/** - * @brief xcb_xc_misc_get_xid_range_request_t - **/ -typedef struct xcb_xc_misc_get_xid_range_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_xc_misc_get_xid_range_request_t; - -/** - * @brief xcb_xc_misc_get_xid_range_reply_t - **/ -typedef struct xcb_xc_misc_get_xid_range_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t start_id; /**< */ - uint32_t count; /**< */ -} xcb_xc_misc_get_xid_range_reply_t; - -/** - * @brief xcb_xc_misc_get_xid_list_cookie_t - **/ -typedef struct xcb_xc_misc_get_xid_list_cookie_t { - unsigned int sequence; /**< */ -} xcb_xc_misc_get_xid_list_cookie_t; - -/** Opcode for xcb_xc_misc_get_xid_list. */ -#define XCB_XC_MISC_GET_XID_LIST 2 - -/** - * @brief xcb_xc_misc_get_xid_list_request_t - **/ -typedef struct xcb_xc_misc_get_xid_list_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t count; /**< */ -} xcb_xc_misc_get_xid_list_request_t; - -/** - * @brief xcb_xc_misc_get_xid_list_reply_t - **/ -typedef struct xcb_xc_misc_get_xid_list_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t ids_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_xc_misc_get_xid_list_reply_t; - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xc_misc_get_version_cookie_t -xcb_xc_misc_get_version (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xc_misc_get_version_cookie_t -xcb_xc_misc_get_version_unchecked (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xc_misc_get_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xc_misc_get_version_reply_t * -xcb_xc_misc_get_version_reply (xcb_connection_t *c /**< */, - xcb_xc_misc_get_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xc_misc_get_xid_range_cookie_t -xcb_xc_misc_get_xid_range (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xc_misc_get_xid_range_cookie_t -xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xc_misc_get_xid_range_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xc_misc_get_xid_range_reply_t * -xcb_xc_misc_get_xid_range_reply (xcb_connection_t *c /**< */, - xcb_xc_misc_get_xid_range_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xc_misc_get_xid_list_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xc_misc_get_xid_list_cookie_t -xcb_xc_misc_get_xid_list (xcb_connection_t *c /**< */, - uint32_t count /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xc_misc_get_xid_list_cookie_t -xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c /**< */, - uint32_t count /**< */); - -uint32_t * -xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R /**< */); - -int -xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xc_misc_get_xid_list_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xc_misc_get_xid_list_reply_t * -xcb_xc_misc_get_xid_list_reply (xcb_connection_t *c /**< */, - xcb_xc_misc_get_xid_list_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xevie.c b/external/mit/xorg/lib/libxcb/files/xevie.c deleted file mode 100644 index 708882df6..000000000 --- a/external/mit/xorg/lib/libxcb/files/xevie.c +++ /dev/null @@ -1,347 +0,0 @@ -/* - * This file generated automatically from xevie.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xevie.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) - -xcb_extension_t xcb_xevie_id = { "XEVIE", 0 }; - -xcb_xevie_query_version_cookie_t -xcb_xevie_query_version (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xevie_id, - /* opcode */ XCB_XEVIE_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xevie_query_version_cookie_t xcb_ret; - xcb_xevie_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xevie_query_version_cookie_t -xcb_xevie_query_version_unchecked (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xevie_id, - /* opcode */ XCB_XEVIE_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xevie_query_version_cookie_t xcb_ret; - xcb_xevie_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xevie_query_version_reply_t * -xcb_xevie_query_version_reply (xcb_connection_t *c /**< */, - xcb_xevie_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xevie_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xevie_start_cookie_t -xcb_xevie_start (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xevie_id, - /* opcode */ XCB_XEVIE_START, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xevie_start_cookie_t xcb_ret; - xcb_xevie_start_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xevie_start_cookie_t -xcb_xevie_start_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xevie_id, - /* opcode */ XCB_XEVIE_START, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xevie_start_cookie_t xcb_ret; - xcb_xevie_start_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xevie_start_reply_t * -xcb_xevie_start_reply (xcb_connection_t *c /**< */, - xcb_xevie_start_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xevie_start_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xevie_end_cookie_t -xcb_xevie_end (xcb_connection_t *c /**< */, - uint32_t cmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xevie_id, - /* opcode */ XCB_XEVIE_END, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xevie_end_cookie_t xcb_ret; - xcb_xevie_end_request_t xcb_out; - - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xevie_end_cookie_t -xcb_xevie_end_unchecked (xcb_connection_t *c /**< */, - uint32_t cmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xevie_id, - /* opcode */ XCB_XEVIE_END, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xevie_end_cookie_t xcb_ret; - xcb_xevie_end_request_t xcb_out; - - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xevie_end_reply_t * -xcb_xevie_end_reply (xcb_connection_t *c /**< */, - xcb_xevie_end_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xevie_end_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -void -xcb_xevie_event_next (xcb_xevie_event_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xevie_event_t); -} - -xcb_generic_iterator_t -xcb_xevie_event_end (xcb_xevie_event_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_xevie_send_cookie_t -xcb_xevie_send (xcb_connection_t *c /**< */, - xcb_xevie_event_t event /**< */, - uint32_t data_type /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xevie_id, - /* opcode */ XCB_XEVIE_SEND, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xevie_send_cookie_t xcb_ret; - xcb_xevie_send_request_t xcb_out; - - xcb_out.event = event; - xcb_out.data_type = data_type; - memset(xcb_out.pad0, 0, 64); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xevie_send_cookie_t -xcb_xevie_send_unchecked (xcb_connection_t *c /**< */, - xcb_xevie_event_t event /**< */, - uint32_t data_type /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xevie_id, - /* opcode */ XCB_XEVIE_SEND, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xevie_send_cookie_t xcb_ret; - xcb_xevie_send_request_t xcb_out; - - xcb_out.event = event; - xcb_out.data_type = data_type; - memset(xcb_out.pad0, 0, 64); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xevie_send_reply_t * -xcb_xevie_send_reply (xcb_connection_t *c /**< */, - xcb_xevie_send_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xevie_send_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xevie_select_input_cookie_t -xcb_xevie_select_input (xcb_connection_t *c /**< */, - uint32_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xevie_id, - /* opcode */ XCB_XEVIE_SELECT_INPUT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xevie_select_input_cookie_t xcb_ret; - xcb_xevie_select_input_request_t xcb_out; - - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xevie_select_input_cookie_t -xcb_xevie_select_input_unchecked (xcb_connection_t *c /**< */, - uint32_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xevie_id, - /* opcode */ XCB_XEVIE_SELECT_INPUT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xevie_select_input_cookie_t xcb_ret; - xcb_xevie_select_input_request_t xcb_out; - - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xevie_select_input_reply_t * -xcb_xevie_select_input_reply (xcb_connection_t *c /**< */, - xcb_xevie_select_input_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xevie_select_input_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/xevie.h b/external/mit/xorg/lib/libxcb/files/xevie.h deleted file mode 100644 index 7d386f3ca..000000000 --- a/external/mit/xorg/lib/libxcb/files/xevie.h +++ /dev/null @@ -1,473 +0,0 @@ -/* - * This file generated automatically from xevie.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Xevie_API XCB Xevie API - * @brief Xevie XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XEVIE_H -#define __XEVIE_H - -#include "xcb.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_XEVIE_MAJOR_VERSION 1 -#define XCB_XEVIE_MINOR_VERSION 0 - -extern xcb_extension_t xcb_xevie_id; - -/** - * @brief xcb_xevie_query_version_cookie_t - **/ -typedef struct xcb_xevie_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_xevie_query_version_cookie_t; - -/** Opcode for xcb_xevie_query_version. */ -#define XCB_XEVIE_QUERY_VERSION 0 - -/** - * @brief xcb_xevie_query_version_request_t - **/ -typedef struct xcb_xevie_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t client_major_version; /**< */ - uint16_t client_minor_version; /**< */ -} xcb_xevie_query_version_request_t; - -/** - * @brief xcb_xevie_query_version_reply_t - **/ -typedef struct xcb_xevie_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t server_major_version; /**< */ - uint16_t server_minor_version; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_xevie_query_version_reply_t; - -/** - * @brief xcb_xevie_start_cookie_t - **/ -typedef struct xcb_xevie_start_cookie_t { - unsigned int sequence; /**< */ -} xcb_xevie_start_cookie_t; - -/** Opcode for xcb_xevie_start. */ -#define XCB_XEVIE_START 1 - -/** - * @brief xcb_xevie_start_request_t - **/ -typedef struct xcb_xevie_start_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ -} xcb_xevie_start_request_t; - -/** - * @brief xcb_xevie_start_reply_t - **/ -typedef struct xcb_xevie_start_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[24]; /**< */ -} xcb_xevie_start_reply_t; - -/** - * @brief xcb_xevie_end_cookie_t - **/ -typedef struct xcb_xevie_end_cookie_t { - unsigned int sequence; /**< */ -} xcb_xevie_end_cookie_t; - -/** Opcode for xcb_xevie_end. */ -#define XCB_XEVIE_END 2 - -/** - * @brief xcb_xevie_end_request_t - **/ -typedef struct xcb_xevie_end_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t cmap; /**< */ -} xcb_xevie_end_request_t; - -/** - * @brief xcb_xevie_end_reply_t - **/ -typedef struct xcb_xevie_end_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[24]; /**< */ -} xcb_xevie_end_reply_t; - -typedef enum xcb_xevie_datatype_t { - XCB_XEVIE_DATATYPE_UNMODIFIED = 0, - XCB_XEVIE_DATATYPE_MODIFIED = 1 -} xcb_xevie_datatype_t; - -/** - * @brief xcb_xevie_event_t - **/ -typedef struct xcb_xevie_event_t { - uint8_t pad0[32]; /**< */ -} xcb_xevie_event_t; - -/** - * @brief xcb_xevie_event_iterator_t - **/ -typedef struct xcb_xevie_event_iterator_t { - xcb_xevie_event_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xevie_event_iterator_t; - -/** - * @brief xcb_xevie_send_cookie_t - **/ -typedef struct xcb_xevie_send_cookie_t { - unsigned int sequence; /**< */ -} xcb_xevie_send_cookie_t; - -/** Opcode for xcb_xevie_send. */ -#define XCB_XEVIE_SEND 3 - -/** - * @brief xcb_xevie_send_request_t - **/ -typedef struct xcb_xevie_send_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xevie_event_t event; /**< */ - uint32_t data_type; /**< */ - uint8_t pad0[64]; /**< */ -} xcb_xevie_send_request_t; - -/** - * @brief xcb_xevie_send_reply_t - **/ -typedef struct xcb_xevie_send_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[24]; /**< */ -} xcb_xevie_send_reply_t; - -/** - * @brief xcb_xevie_select_input_cookie_t - **/ -typedef struct xcb_xevie_select_input_cookie_t { - unsigned int sequence; /**< */ -} xcb_xevie_select_input_cookie_t; - -/** Opcode for xcb_xevie_select_input. */ -#define XCB_XEVIE_SELECT_INPUT 4 - -/** - * @brief xcb_xevie_select_input_request_t - **/ -typedef struct xcb_xevie_select_input_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t event_mask; /**< */ -} xcb_xevie_select_input_request_t; - -/** - * @brief xcb_xevie_select_input_reply_t - **/ -typedef struct xcb_xevie_select_input_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[24]; /**< */ -} xcb_xevie_select_input_reply_t; - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xevie_query_version_cookie_t -xcb_xevie_query_version (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xevie_query_version_cookie_t -xcb_xevie_query_version_unchecked (xcb_connection_t *c /**< */, - uint16_t client_major_version /**< */, - uint16_t client_minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xevie_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xevie_query_version_reply_t * -xcb_xevie_query_version_reply (xcb_connection_t *c /**< */, - xcb_xevie_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xevie_start_cookie_t -xcb_xevie_start (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xevie_start_cookie_t -xcb_xevie_start_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xevie_start_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xevie_start_reply_t * -xcb_xevie_start_reply (xcb_connection_t *c /**< */, - xcb_xevie_start_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xevie_end_cookie_t -xcb_xevie_end (xcb_connection_t *c /**< */, - uint32_t cmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xevie_end_cookie_t -xcb_xevie_end_unchecked (xcb_connection_t *c /**< */, - uint32_t cmap /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xevie_end_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xevie_end_reply_t * -xcb_xevie_end_reply (xcb_connection_t *c /**< */, - xcb_xevie_end_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xevie_event_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xevie_event_t) - */ -void -xcb_xevie_event_next (xcb_xevie_event_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xevie_event_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xevie_event_end (xcb_xevie_event_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xevie_send_cookie_t -xcb_xevie_send (xcb_connection_t *c /**< */, - xcb_xevie_event_t event /**< */, - uint32_t data_type /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xevie_send_cookie_t -xcb_xevie_send_unchecked (xcb_connection_t *c /**< */, - xcb_xevie_event_t event /**< */, - uint32_t data_type /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xevie_send_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xevie_send_reply_t * -xcb_xevie_send_reply (xcb_connection_t *c /**< */, - xcb_xevie_send_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xevie_select_input_cookie_t -xcb_xevie_select_input (xcb_connection_t *c /**< */, - uint32_t event_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xevie_select_input_cookie_t -xcb_xevie_select_input_unchecked (xcb_connection_t *c /**< */, - uint32_t event_mask /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xevie_select_input_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xevie_select_input_reply_t * -xcb_xevie_select_input_reply (xcb_connection_t *c /**< */, - xcb_xevie_select_input_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xf86dri.c b/external/mit/xorg/lib/libxcb/files/xf86dri.c deleted file mode 100644 index bf59d3ebd..000000000 --- a/external/mit/xorg/lib/libxcb/files/xf86dri.c +++ /dev/null @@ -1,1005 +0,0 @@ -/* - * This file generated automatically from xf86dri.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xf86dri.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) - -xcb_extension_t xcb_xf86dri_id = { "XFree86-DRI", 0 }; - -void -xcb_xf86dri_drm_clip_rect_next (xcb_xf86dri_drm_clip_rect_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xf86dri_drm_clip_rect_t); -} - -xcb_generic_iterator_t -xcb_xf86dri_drm_clip_rect_end (xcb_xf86dri_drm_clip_rect_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_xf86dri_query_version_cookie_t -xcb_xf86dri_query_version (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_query_version_cookie_t xcb_ret; - xcb_xf86dri_query_version_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_query_version_cookie_t -xcb_xf86dri_query_version_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_query_version_cookie_t xcb_ret; - xcb_xf86dri_query_version_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_query_version_reply_t * -xcb_xf86dri_query_version_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xf86dri_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xf86dri_query_direct_rendering_capable_cookie_t -xcb_xf86dri_query_direct_rendering_capable (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_QUERY_DIRECT_RENDERING_CAPABLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_query_direct_rendering_capable_cookie_t xcb_ret; - xcb_xf86dri_query_direct_rendering_capable_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_query_direct_rendering_capable_cookie_t -xcb_xf86dri_query_direct_rendering_capable_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_QUERY_DIRECT_RENDERING_CAPABLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_query_direct_rendering_capable_cookie_t xcb_ret; - xcb_xf86dri_query_direct_rendering_capable_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_query_direct_rendering_capable_reply_t * -xcb_xf86dri_query_direct_rendering_capable_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_query_direct_rendering_capable_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xf86dri_query_direct_rendering_capable_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xf86dri_open_connection_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xf86dri_open_connection_reply_t *_aux = (xcb_xf86dri_open_connection_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xf86dri_open_connection_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* bus_id */ - xcb_block_len += _aux->bus_id_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xf86dri_open_connection_cookie_t -xcb_xf86dri_open_connection (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_OPEN_CONNECTION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_open_connection_cookie_t xcb_ret; - xcb_xf86dri_open_connection_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_open_connection_cookie_t -xcb_xf86dri_open_connection_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_OPEN_CONNECTION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_open_connection_cookie_t xcb_ret; - xcb_xf86dri_open_connection_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_xf86dri_open_connection_bus_id (const xcb_xf86dri_open_connection_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_xf86dri_open_connection_bus_id_length (const xcb_xf86dri_open_connection_reply_t *R /**< */) -{ - return R->bus_id_len; -} - -xcb_generic_iterator_t -xcb_xf86dri_open_connection_bus_id_end (const xcb_xf86dri_open_connection_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->bus_id_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xf86dri_open_connection_reply_t * -xcb_xf86dri_open_connection_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_open_connection_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xf86dri_open_connection_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xf86dri_close_connection_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_CLOSE_CONNECTION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xf86dri_close_connection_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xf86dri_close_connection (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_CLOSE_CONNECTION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xf86dri_close_connection_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xf86dri_get_client_driver_name_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xf86dri_get_client_driver_name_reply_t *_aux = (xcb_xf86dri_get_client_driver_name_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xf86dri_get_client_driver_name_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* client_driver_name */ - xcb_block_len += _aux->client_driver_name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xf86dri_get_client_driver_name_cookie_t -xcb_xf86dri_get_client_driver_name (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_GET_CLIENT_DRIVER_NAME, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_get_client_driver_name_cookie_t xcb_ret; - xcb_xf86dri_get_client_driver_name_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_get_client_driver_name_cookie_t -xcb_xf86dri_get_client_driver_name_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_GET_CLIENT_DRIVER_NAME, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_get_client_driver_name_cookie_t xcb_ret; - xcb_xf86dri_get_client_driver_name_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_xf86dri_get_client_driver_name_client_driver_name (const xcb_xf86dri_get_client_driver_name_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_xf86dri_get_client_driver_name_client_driver_name_length (const xcb_xf86dri_get_client_driver_name_reply_t *R /**< */) -{ - return R->client_driver_name_len; -} - -xcb_generic_iterator_t -xcb_xf86dri_get_client_driver_name_client_driver_name_end (const xcb_xf86dri_get_client_driver_name_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->client_driver_name_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xf86dri_get_client_driver_name_reply_t * -xcb_xf86dri_get_client_driver_name_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_get_client_driver_name_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xf86dri_get_client_driver_name_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xf86dri_create_context_cookie_t -xcb_xf86dri_create_context (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t visual /**< */, - uint32_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_create_context_cookie_t xcb_ret; - xcb_xf86dri_create_context_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.visual = visual; - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_create_context_cookie_t -xcb_xf86dri_create_context_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t visual /**< */, - uint32_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_create_context_cookie_t xcb_ret; - xcb_xf86dri_create_context_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.visual = visual; - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_create_context_reply_t * -xcb_xf86dri_create_context_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xf86dri_create_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xf86dri_destroy_context_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_DESTROY_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xf86dri_destroy_context_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xf86dri_destroy_context (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_DESTROY_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xf86dri_destroy_context_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_create_drawable_cookie_t -xcb_xf86dri_create_drawable (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_CREATE_DRAWABLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_create_drawable_cookie_t xcb_ret; - xcb_xf86dri_create_drawable_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_create_drawable_cookie_t -xcb_xf86dri_create_drawable_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_CREATE_DRAWABLE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_create_drawable_cookie_t xcb_ret; - xcb_xf86dri_create_drawable_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_create_drawable_reply_t * -xcb_xf86dri_create_drawable_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_create_drawable_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xf86dri_create_drawable_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xf86dri_destroy_drawable_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_DESTROY_DRAWABLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xf86dri_destroy_drawable_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xf86dri_destroy_drawable (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_DESTROY_DRAWABLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xf86dri_destroy_drawable_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xf86dri_get_drawable_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xf86dri_get_drawable_info_reply_t *_aux = (xcb_xf86dri_get_drawable_info_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xf86dri_get_drawable_info_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* clip_rects */ - xcb_block_len += _aux->num_clip_rects * sizeof(xcb_xf86dri_drm_clip_rect_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xf86dri_drm_clip_rect_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* back_clip_rects */ - xcb_block_len += _aux->num_back_clip_rects * sizeof(xcb_xf86dri_drm_clip_rect_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xf86dri_drm_clip_rect_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xf86dri_get_drawable_info_cookie_t -xcb_xf86dri_get_drawable_info (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_GET_DRAWABLE_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_get_drawable_info_cookie_t xcb_ret; - xcb_xf86dri_get_drawable_info_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_get_drawable_info_cookie_t -xcb_xf86dri_get_drawable_info_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_GET_DRAWABLE_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_get_drawable_info_cookie_t xcb_ret; - xcb_xf86dri_get_drawable_info_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_drm_clip_rect_t * -xcb_xf86dri_get_drawable_info_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */) -{ - return (xcb_xf86dri_drm_clip_rect_t *) (R + 1); -} - -int -xcb_xf86dri_get_drawable_info_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */) -{ - return R->num_clip_rects; -} - -xcb_xf86dri_drm_clip_rect_iterator_t -xcb_xf86dri_get_drawable_info_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */) -{ - xcb_xf86dri_drm_clip_rect_iterator_t i; - i.data = (xcb_xf86dri_drm_clip_rect_t *) (R + 1); - i.rem = R->num_clip_rects; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xf86dri_drm_clip_rect_t * -xcb_xf86dri_get_drawable_info_back_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xf86dri_drm_clip_rect_end(xcb_xf86dri_get_drawable_info_clip_rects_iterator(R)); - return (xcb_xf86dri_drm_clip_rect_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xf86dri_drm_clip_rect_t, prev.index) + 0); -} - -int -xcb_xf86dri_get_drawable_info_back_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */) -{ - return R->num_back_clip_rects; -} - -xcb_xf86dri_drm_clip_rect_iterator_t -xcb_xf86dri_get_drawable_info_back_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */) -{ - xcb_xf86dri_drm_clip_rect_iterator_t i; - xcb_generic_iterator_t prev = xcb_xf86dri_drm_clip_rect_end(xcb_xf86dri_get_drawable_info_clip_rects_iterator(R)); - i.data = (xcb_xf86dri_drm_clip_rect_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xf86dri_drm_clip_rect_t, prev.index)); - i.rem = R->num_back_clip_rects; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xf86dri_get_drawable_info_reply_t * -xcb_xf86dri_get_drawable_info_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_get_drawable_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xf86dri_get_drawable_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xf86dri_get_device_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xf86dri_get_device_info_reply_t *_aux = (xcb_xf86dri_get_device_info_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xf86dri_get_device_info_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* device_private */ - xcb_block_len += _aux->device_private_size * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xf86dri_get_device_info_cookie_t -xcb_xf86dri_get_device_info (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_GET_DEVICE_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_get_device_info_cookie_t xcb_ret; - xcb_xf86dri_get_device_info_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_get_device_info_cookie_t -xcb_xf86dri_get_device_info_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_GET_DEVICE_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_get_device_info_cookie_t xcb_ret; - xcb_xf86dri_get_device_info_request_t xcb_out; - - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_xf86dri_get_device_info_device_private (const xcb_xf86dri_get_device_info_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_xf86dri_get_device_info_device_private_length (const xcb_xf86dri_get_device_info_reply_t *R /**< */) -{ - return R->device_private_size; -} - -xcb_generic_iterator_t -xcb_xf86dri_get_device_info_device_private_end (const xcb_xf86dri_get_device_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->device_private_size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xf86dri_get_device_info_reply_t * -xcb_xf86dri_get_device_info_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_get_device_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xf86dri_get_device_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xf86dri_auth_connection_cookie_t -xcb_xf86dri_auth_connection (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t magic /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_AUTH_CONNECTION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_auth_connection_cookie_t xcb_ret; - xcb_xf86dri_auth_connection_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.magic = magic; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_auth_connection_cookie_t -xcb_xf86dri_auth_connection_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t magic /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xf86dri_id, - /* opcode */ XCB_XF86DRI_AUTH_CONNECTION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xf86dri_auth_connection_cookie_t xcb_ret; - xcb_xf86dri_auth_connection_request_t xcb_out; - - xcb_out.screen = screen; - xcb_out.magic = magic; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xf86dri_auth_connection_reply_t * -xcb_xf86dri_auth_connection_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_auth_connection_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xf86dri_auth_connection_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/xf86dri.h b/external/mit/xorg/lib/libxcb/files/xf86dri.h deleted file mode 100644 index da7716194..000000000 --- a/external/mit/xorg/lib/libxcb/files/xf86dri.h +++ /dev/null @@ -1,988 +0,0 @@ -/* - * This file generated automatically from xf86dri.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_XF86Dri_API XCB XF86Dri API - * @brief XF86Dri XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XF86DRI_H -#define __XF86DRI_H - -#include "xcb.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_XF86DRI_MAJOR_VERSION 4 -#define XCB_XF86DRI_MINOR_VERSION 1 - -extern xcb_extension_t xcb_xf86dri_id; - -/** - * @brief xcb_xf86dri_drm_clip_rect_t - **/ -typedef struct xcb_xf86dri_drm_clip_rect_t { - int16_t x1; /**< */ - int16_t y1; /**< */ - int16_t x2; /**< */ - int16_t x3; /**< */ -} xcb_xf86dri_drm_clip_rect_t; - -/** - * @brief xcb_xf86dri_drm_clip_rect_iterator_t - **/ -typedef struct xcb_xf86dri_drm_clip_rect_iterator_t { - xcb_xf86dri_drm_clip_rect_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xf86dri_drm_clip_rect_iterator_t; - -/** - * @brief xcb_xf86dri_query_version_cookie_t - **/ -typedef struct xcb_xf86dri_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_xf86dri_query_version_cookie_t; - -/** Opcode for xcb_xf86dri_query_version. */ -#define XCB_XF86DRI_QUERY_VERSION 0 - -/** - * @brief xcb_xf86dri_query_version_request_t - **/ -typedef struct xcb_xf86dri_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_xf86dri_query_version_request_t; - -/** - * @brief xcb_xf86dri_query_version_reply_t - **/ -typedef struct xcb_xf86dri_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t dri_major_version; /**< */ - uint16_t dri_minor_version; /**< */ - uint32_t dri_minor_patch; /**< */ -} xcb_xf86dri_query_version_reply_t; - -/** - * @brief xcb_xf86dri_query_direct_rendering_capable_cookie_t - **/ -typedef struct xcb_xf86dri_query_direct_rendering_capable_cookie_t { - unsigned int sequence; /**< */ -} xcb_xf86dri_query_direct_rendering_capable_cookie_t; - -/** Opcode for xcb_xf86dri_query_direct_rendering_capable. */ -#define XCB_XF86DRI_QUERY_DIRECT_RENDERING_CAPABLE 1 - -/** - * @brief xcb_xf86dri_query_direct_rendering_capable_request_t - **/ -typedef struct xcb_xf86dri_query_direct_rendering_capable_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ -} xcb_xf86dri_query_direct_rendering_capable_request_t; - -/** - * @brief xcb_xf86dri_query_direct_rendering_capable_reply_t - **/ -typedef struct xcb_xf86dri_query_direct_rendering_capable_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t is_capable; /**< */ -} xcb_xf86dri_query_direct_rendering_capable_reply_t; - -/** - * @brief xcb_xf86dri_open_connection_cookie_t - **/ -typedef struct xcb_xf86dri_open_connection_cookie_t { - unsigned int sequence; /**< */ -} xcb_xf86dri_open_connection_cookie_t; - -/** Opcode for xcb_xf86dri_open_connection. */ -#define XCB_XF86DRI_OPEN_CONNECTION 2 - -/** - * @brief xcb_xf86dri_open_connection_request_t - **/ -typedef struct xcb_xf86dri_open_connection_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ -} xcb_xf86dri_open_connection_request_t; - -/** - * @brief xcb_xf86dri_open_connection_reply_t - **/ -typedef struct xcb_xf86dri_open_connection_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t sarea_handle_low; /**< */ - uint32_t sarea_handle_high; /**< */ - uint32_t bus_id_len; /**< */ - uint8_t pad1[12]; /**< */ -} xcb_xf86dri_open_connection_reply_t; - -/** Opcode for xcb_xf86dri_close_connection. */ -#define XCB_XF86DRI_CLOSE_CONNECTION 3 - -/** - * @brief xcb_xf86dri_close_connection_request_t - **/ -typedef struct xcb_xf86dri_close_connection_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ -} xcb_xf86dri_close_connection_request_t; - -/** - * @brief xcb_xf86dri_get_client_driver_name_cookie_t - **/ -typedef struct xcb_xf86dri_get_client_driver_name_cookie_t { - unsigned int sequence; /**< */ -} xcb_xf86dri_get_client_driver_name_cookie_t; - -/** Opcode for xcb_xf86dri_get_client_driver_name. */ -#define XCB_XF86DRI_GET_CLIENT_DRIVER_NAME 4 - -/** - * @brief xcb_xf86dri_get_client_driver_name_request_t - **/ -typedef struct xcb_xf86dri_get_client_driver_name_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ -} xcb_xf86dri_get_client_driver_name_request_t; - -/** - * @brief xcb_xf86dri_get_client_driver_name_reply_t - **/ -typedef struct xcb_xf86dri_get_client_driver_name_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t client_driver_major_version; /**< */ - uint32_t client_driver_minor_version; /**< */ - uint32_t client_driver_patch_version; /**< */ - uint32_t client_driver_name_len; /**< */ - uint8_t pad1[8]; /**< */ -} xcb_xf86dri_get_client_driver_name_reply_t; - -/** - * @brief xcb_xf86dri_create_context_cookie_t - **/ -typedef struct xcb_xf86dri_create_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_xf86dri_create_context_cookie_t; - -/** Opcode for xcb_xf86dri_create_context. */ -#define XCB_XF86DRI_CREATE_CONTEXT 5 - -/** - * @brief xcb_xf86dri_create_context_request_t - **/ -typedef struct xcb_xf86dri_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ - uint32_t visual; /**< */ - uint32_t context; /**< */ -} xcb_xf86dri_create_context_request_t; - -/** - * @brief xcb_xf86dri_create_context_reply_t - **/ -typedef struct xcb_xf86dri_create_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t hw_context; /**< */ -} xcb_xf86dri_create_context_reply_t; - -/** Opcode for xcb_xf86dri_destroy_context. */ -#define XCB_XF86DRI_DESTROY_CONTEXT 6 - -/** - * @brief xcb_xf86dri_destroy_context_request_t - **/ -typedef struct xcb_xf86dri_destroy_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ - uint32_t context; /**< */ -} xcb_xf86dri_destroy_context_request_t; - -/** - * @brief xcb_xf86dri_create_drawable_cookie_t - **/ -typedef struct xcb_xf86dri_create_drawable_cookie_t { - unsigned int sequence; /**< */ -} xcb_xf86dri_create_drawable_cookie_t; - -/** Opcode for xcb_xf86dri_create_drawable. */ -#define XCB_XF86DRI_CREATE_DRAWABLE 7 - -/** - * @brief xcb_xf86dri_create_drawable_request_t - **/ -typedef struct xcb_xf86dri_create_drawable_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ - uint32_t drawable; /**< */ -} xcb_xf86dri_create_drawable_request_t; - -/** - * @brief xcb_xf86dri_create_drawable_reply_t - **/ -typedef struct xcb_xf86dri_create_drawable_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t hw_drawable_handle; /**< */ -} xcb_xf86dri_create_drawable_reply_t; - -/** Opcode for xcb_xf86dri_destroy_drawable. */ -#define XCB_XF86DRI_DESTROY_DRAWABLE 8 - -/** - * @brief xcb_xf86dri_destroy_drawable_request_t - **/ -typedef struct xcb_xf86dri_destroy_drawable_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ - uint32_t drawable; /**< */ -} xcb_xf86dri_destroy_drawable_request_t; - -/** - * @brief xcb_xf86dri_get_drawable_info_cookie_t - **/ -typedef struct xcb_xf86dri_get_drawable_info_cookie_t { - unsigned int sequence; /**< */ -} xcb_xf86dri_get_drawable_info_cookie_t; - -/** Opcode for xcb_xf86dri_get_drawable_info. */ -#define XCB_XF86DRI_GET_DRAWABLE_INFO 9 - -/** - * @brief xcb_xf86dri_get_drawable_info_request_t - **/ -typedef struct xcb_xf86dri_get_drawable_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ - uint32_t drawable; /**< */ -} xcb_xf86dri_get_drawable_info_request_t; - -/** - * @brief xcb_xf86dri_get_drawable_info_reply_t - **/ -typedef struct xcb_xf86dri_get_drawable_info_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t drawable_table_index; /**< */ - uint32_t drawable_table_stamp; /**< */ - int16_t drawable_origin_X; /**< */ - int16_t drawable_origin_Y; /**< */ - int16_t drawable_size_W; /**< */ - int16_t drawable_size_H; /**< */ - uint32_t num_clip_rects; /**< */ - int16_t back_x; /**< */ - int16_t back_y; /**< */ - uint32_t num_back_clip_rects; /**< */ -} xcb_xf86dri_get_drawable_info_reply_t; - -/** - * @brief xcb_xf86dri_get_device_info_cookie_t - **/ -typedef struct xcb_xf86dri_get_device_info_cookie_t { - unsigned int sequence; /**< */ -} xcb_xf86dri_get_device_info_cookie_t; - -/** Opcode for xcb_xf86dri_get_device_info. */ -#define XCB_XF86DRI_GET_DEVICE_INFO 10 - -/** - * @brief xcb_xf86dri_get_device_info_request_t - **/ -typedef struct xcb_xf86dri_get_device_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ -} xcb_xf86dri_get_device_info_request_t; - -/** - * @brief xcb_xf86dri_get_device_info_reply_t - **/ -typedef struct xcb_xf86dri_get_device_info_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t framebuffer_handle_low; /**< */ - uint32_t framebuffer_handle_high; /**< */ - uint32_t framebuffer_origin_offset; /**< */ - uint32_t framebuffer_size; /**< */ - uint32_t framebuffer_stride; /**< */ - uint32_t device_private_size; /**< */ -} xcb_xf86dri_get_device_info_reply_t; - -/** - * @brief xcb_xf86dri_auth_connection_cookie_t - **/ -typedef struct xcb_xf86dri_auth_connection_cookie_t { - unsigned int sequence; /**< */ -} xcb_xf86dri_auth_connection_cookie_t; - -/** Opcode for xcb_xf86dri_auth_connection. */ -#define XCB_XF86DRI_AUTH_CONNECTION 11 - -/** - * @brief xcb_xf86dri_auth_connection_request_t - **/ -typedef struct xcb_xf86dri_auth_connection_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t screen; /**< */ - uint32_t magic; /**< */ -} xcb_xf86dri_auth_connection_request_t; - -/** - * @brief xcb_xf86dri_auth_connection_reply_t - **/ -typedef struct xcb_xf86dri_auth_connection_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t authenticated; /**< */ -} xcb_xf86dri_auth_connection_reply_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xf86dri_drm_clip_rect_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xf86dri_drm_clip_rect_t) - */ -void -xcb_xf86dri_drm_clip_rect_next (xcb_xf86dri_drm_clip_rect_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xf86dri_drm_clip_rect_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xf86dri_drm_clip_rect_end (xcb_xf86dri_drm_clip_rect_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xf86dri_query_version_cookie_t -xcb_xf86dri_query_version (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xf86dri_query_version_cookie_t -xcb_xf86dri_query_version_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xf86dri_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xf86dri_query_version_reply_t * -xcb_xf86dri_query_version_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xf86dri_query_direct_rendering_capable_cookie_t -xcb_xf86dri_query_direct_rendering_capable (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xf86dri_query_direct_rendering_capable_cookie_t -xcb_xf86dri_query_direct_rendering_capable_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xf86dri_query_direct_rendering_capable_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xf86dri_query_direct_rendering_capable_reply_t * -xcb_xf86dri_query_direct_rendering_capable_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_query_direct_rendering_capable_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xf86dri_open_connection_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xf86dri_open_connection_cookie_t -xcb_xf86dri_open_connection (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xf86dri_open_connection_cookie_t -xcb_xf86dri_open_connection_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -char * -xcb_xf86dri_open_connection_bus_id (const xcb_xf86dri_open_connection_reply_t *R /**< */); - -int -xcb_xf86dri_open_connection_bus_id_length (const xcb_xf86dri_open_connection_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xf86dri_open_connection_bus_id_end (const xcb_xf86dri_open_connection_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xf86dri_open_connection_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xf86dri_open_connection_reply_t * -xcb_xf86dri_open_connection_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_open_connection_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xf86dri_close_connection_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xf86dri_close_connection (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -int -xcb_xf86dri_get_client_driver_name_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xf86dri_get_client_driver_name_cookie_t -xcb_xf86dri_get_client_driver_name (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xf86dri_get_client_driver_name_cookie_t -xcb_xf86dri_get_client_driver_name_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -char * -xcb_xf86dri_get_client_driver_name_client_driver_name (const xcb_xf86dri_get_client_driver_name_reply_t *R /**< */); - -int -xcb_xf86dri_get_client_driver_name_client_driver_name_length (const xcb_xf86dri_get_client_driver_name_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xf86dri_get_client_driver_name_client_driver_name_end (const xcb_xf86dri_get_client_driver_name_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xf86dri_get_client_driver_name_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xf86dri_get_client_driver_name_reply_t * -xcb_xf86dri_get_client_driver_name_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_get_client_driver_name_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xf86dri_create_context_cookie_t -xcb_xf86dri_create_context (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t visual /**< */, - uint32_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xf86dri_create_context_cookie_t -xcb_xf86dri_create_context_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t visual /**< */, - uint32_t context /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xf86dri_create_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xf86dri_create_context_reply_t * -xcb_xf86dri_create_context_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xf86dri_destroy_context_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xf86dri_destroy_context (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xf86dri_create_drawable_cookie_t -xcb_xf86dri_create_drawable (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xf86dri_create_drawable_cookie_t -xcb_xf86dri_create_drawable_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xf86dri_create_drawable_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xf86dri_create_drawable_reply_t * -xcb_xf86dri_create_drawable_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_create_drawable_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xf86dri_destroy_drawable_checked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xf86dri_destroy_drawable (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */); - -int -xcb_xf86dri_get_drawable_info_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xf86dri_get_drawable_info_cookie_t -xcb_xf86dri_get_drawable_info (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xf86dri_get_drawable_info_cookie_t -xcb_xf86dri_get_drawable_info_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t drawable /**< */); - -xcb_xf86dri_drm_clip_rect_t * -xcb_xf86dri_get_drawable_info_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); - -int -xcb_xf86dri_get_drawable_info_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); - -xcb_xf86dri_drm_clip_rect_iterator_t -xcb_xf86dri_get_drawable_info_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); - -xcb_xf86dri_drm_clip_rect_t * -xcb_xf86dri_get_drawable_info_back_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); - -int -xcb_xf86dri_get_drawable_info_back_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); - -xcb_xf86dri_drm_clip_rect_iterator_t -xcb_xf86dri_get_drawable_info_back_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xf86dri_get_drawable_info_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xf86dri_get_drawable_info_reply_t * -xcb_xf86dri_get_drawable_info_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_get_drawable_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xf86dri_get_device_info_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xf86dri_get_device_info_cookie_t -xcb_xf86dri_get_device_info (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xf86dri_get_device_info_cookie_t -xcb_xf86dri_get_device_info_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */); - -uint32_t * -xcb_xf86dri_get_device_info_device_private (const xcb_xf86dri_get_device_info_reply_t *R /**< */); - -int -xcb_xf86dri_get_device_info_device_private_length (const xcb_xf86dri_get_device_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xf86dri_get_device_info_device_private_end (const xcb_xf86dri_get_device_info_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xf86dri_get_device_info_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xf86dri_get_device_info_reply_t * -xcb_xf86dri_get_device_info_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_get_device_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xf86dri_auth_connection_cookie_t -xcb_xf86dri_auth_connection (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t magic /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xf86dri_auth_connection_cookie_t -xcb_xf86dri_auth_connection_unchecked (xcb_connection_t *c /**< */, - uint32_t screen /**< */, - uint32_t magic /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xf86dri_auth_connection_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xf86dri_auth_connection_reply_t * -xcb_xf86dri_auth_connection_reply (xcb_connection_t *c /**< */, - xcb_xf86dri_auth_connection_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xfixes.c b/external/mit/xorg/lib/libxcb/files/xfixes.c deleted file mode 100644 index a10868c44..000000000 --- a/external/mit/xorg/lib/libxcb/files/xfixes.c +++ /dev/null @@ -1,2481 +0,0 @@ -/* - * This file generated automatically from xfixes.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xfixes.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" -#include "render.h" -#include "shape.h" - -xcb_extension_t xcb_xfixes_id = { "XFIXES", 0 }; - -xcb_xfixes_query_version_cookie_t -xcb_xfixes_query_version (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xfixes_query_version_cookie_t xcb_ret; - xcb_xfixes_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xfixes_query_version_cookie_t -xcb_xfixes_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xfixes_query_version_cookie_t xcb_ret; - xcb_xfixes_query_version_request_t xcb_out; - - xcb_out.client_major_version = client_major_version; - xcb_out.client_minor_version = client_minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xfixes_query_version_reply_t * -xcb_xfixes_query_version_reply (xcb_connection_t *c /**< */, - xcb_xfixes_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xfixes_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xfixes_change_save_set_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - uint8_t target /**< */, - uint8_t map /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CHANGE_SAVE_SET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_change_save_set_request_t xcb_out; - - xcb_out.mode = mode; - xcb_out.target = target; - xcb_out.map = map; - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_change_save_set (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - uint8_t target /**< */, - uint8_t map /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CHANGE_SAVE_SET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_change_save_set_request_t xcb_out; - - xcb_out.mode = mode; - xcb_out.target = target; - xcb_out.map = map; - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_select_selection_input_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t selection /**< */, - uint32_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SELECT_SELECTION_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_select_selection_input_request_t xcb_out; - - xcb_out.window = window; - xcb_out.selection = selection; - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_select_selection_input (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t selection /**< */, - uint32_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SELECT_SELECTION_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_select_selection_input_request_t xcb_out; - - xcb_out.window = window; - xcb_out.selection = selection; - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_select_cursor_input_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SELECT_CURSOR_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_select_cursor_input_request_t xcb_out; - - xcb_out.window = window; - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_select_cursor_input (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SELECT_CURSOR_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_select_cursor_input_request_t xcb_out; - - xcb_out.window = window; - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xfixes_get_cursor_image_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xfixes_get_cursor_image_reply_t *_aux = (xcb_xfixes_get_cursor_image_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xfixes_get_cursor_image_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* cursor_image */ - xcb_block_len += (_aux->width * _aux->height) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xfixes_get_cursor_image_cookie_t -xcb_xfixes_get_cursor_image (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_GET_CURSOR_IMAGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xfixes_get_cursor_image_cookie_t xcb_ret; - xcb_xfixes_get_cursor_image_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xfixes_get_cursor_image_cookie_t -xcb_xfixes_get_cursor_image_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_GET_CURSOR_IMAGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xfixes_get_cursor_image_cookie_t xcb_ret; - xcb_xfixes_get_cursor_image_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_xfixes_get_cursor_image_cursor_image (const xcb_xfixes_get_cursor_image_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_xfixes_get_cursor_image_cursor_image_length (const xcb_xfixes_get_cursor_image_reply_t *R /**< */) -{ - return (R->width * R->height); -} - -xcb_generic_iterator_t -xcb_xfixes_get_cursor_image_cursor_image_end (const xcb_xfixes_get_cursor_image_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + ((R->width * R->height)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xfixes_get_cursor_image_reply_t * -xcb_xfixes_get_cursor_image_reply (xcb_connection_t *c /**< */, - xcb_xfixes_get_cursor_image_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xfixes_get_cursor_image_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -void -xcb_xfixes_region_next (xcb_xfixes_region_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xfixes_region_t); -} - -xcb_generic_iterator_t -xcb_xfixes_region_end (xcb_xfixes_region_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_xfixes_create_region_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xfixes_create_region_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rectangles */ - xcb_block_len += rectangles_len * sizeof(xcb_rectangle_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_rectangle_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_xfixes_create_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_region_request_t xcb_out; - - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_create_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_region_request_t xcb_out; - - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_create_region_from_bitmap_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_pixmap_t bitmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_REGION_FROM_BITMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_region_from_bitmap_request_t xcb_out; - - xcb_out.region = region; - xcb_out.bitmap = bitmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_create_region_from_bitmap (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_pixmap_t bitmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_REGION_FROM_BITMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_region_from_bitmap_request_t xcb_out; - - xcb_out.region = region; - xcb_out.bitmap = bitmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_create_region_from_window_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_window_t window /**< */, - xcb_shape_kind_t kind /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_REGION_FROM_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_region_from_window_request_t xcb_out; - - xcb_out.region = region; - xcb_out.window = window; - xcb_out.kind = kind; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_create_region_from_window (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_window_t window /**< */, - xcb_shape_kind_t kind /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_REGION_FROM_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_region_from_window_request_t xcb_out; - - xcb_out.region = region; - xcb_out.window = window; - xcb_out.kind = kind; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_create_region_from_gc_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_gcontext_t gc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_REGION_FROM_GC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_region_from_gc_request_t xcb_out; - - xcb_out.region = region; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_create_region_from_gc (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_gcontext_t gc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_REGION_FROM_GC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_region_from_gc_request_t xcb_out; - - xcb_out.region = region; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_create_region_from_picture_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_render_picture_t picture /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_REGION_FROM_PICTURE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_region_from_picture_request_t xcb_out; - - xcb_out.region = region; - xcb_out.picture = picture; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_create_region_from_picture (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_render_picture_t picture /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_REGION_FROM_PICTURE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_region_from_picture_request_t xcb_out; - - xcb_out.region = region; - xcb_out.picture = picture; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_destroy_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_DESTROY_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_destroy_region_request_t xcb_out; - - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_destroy_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_DESTROY_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_destroy_region_request_t xcb_out; - - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xfixes_set_region_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xfixes_set_region_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rectangles */ - xcb_block_len += rectangles_len * sizeof(xcb_rectangle_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_rectangle_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_xfixes_set_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SET_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_set_region_request_t xcb_out; - - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_set_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SET_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_set_region_request_t xcb_out; - - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_copy_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_COPY_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_copy_region_request_t xcb_out; - - xcb_out.source = source; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_copy_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_COPY_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_copy_region_request_t xcb_out; - - xcb_out.source = source; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_union_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_UNION_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_union_region_request_t xcb_out; - - xcb_out.source1 = source1; - xcb_out.source2 = source2; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_union_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_UNION_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_union_region_request_t xcb_out; - - xcb_out.source1 = source1; - xcb_out.source2 = source2; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_intersect_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_INTERSECT_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_intersect_region_request_t xcb_out; - - xcb_out.source1 = source1; - xcb_out.source2 = source2; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_intersect_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_INTERSECT_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_intersect_region_request_t xcb_out; - - xcb_out.source1 = source1; - xcb_out.source2 = source2; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_subtract_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SUBTRACT_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_subtract_region_request_t xcb_out; - - xcb_out.source1 = source1; - xcb_out.source2 = source2; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_subtract_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SUBTRACT_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_subtract_region_request_t xcb_out; - - xcb_out.source1 = source1; - xcb_out.source2 = source2; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_invert_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_rectangle_t bounds /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_INVERT_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_invert_region_request_t xcb_out; - - xcb_out.source = source; - xcb_out.bounds = bounds; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_invert_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_rectangle_t bounds /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_INVERT_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_invert_region_request_t xcb_out; - - xcb_out.source = source; - xcb_out.bounds = bounds; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_translate_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - int16_t dx /**< */, - int16_t dy /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_TRANSLATE_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_translate_region_request_t xcb_out; - - xcb_out.region = region; - xcb_out.dx = dx; - xcb_out.dy = dy; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_translate_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - int16_t dx /**< */, - int16_t dy /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_TRANSLATE_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_translate_region_request_t xcb_out; - - xcb_out.region = region; - xcb_out.dx = dx; - xcb_out.dy = dy; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_region_extents_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_REGION_EXTENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_region_extents_request_t xcb_out; - - xcb_out.source = source; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_region_extents (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_REGION_EXTENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_region_extents_request_t xcb_out; - - xcb_out.source = source; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xfixes_fetch_region_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xfixes_fetch_region_reply_t *_aux = (xcb_xfixes_fetch_region_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xfixes_fetch_region_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rectangles */ - xcb_block_len += (_aux->length / 2) * sizeof(xcb_rectangle_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_rectangle_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xfixes_fetch_region_cookie_t -xcb_xfixes_fetch_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_FETCH_REGION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xfixes_fetch_region_cookie_t xcb_ret; - xcb_xfixes_fetch_region_request_t xcb_out; - - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xfixes_fetch_region_cookie_t -xcb_xfixes_fetch_region_unchecked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_FETCH_REGION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xfixes_fetch_region_cookie_t xcb_ret; - xcb_xfixes_fetch_region_request_t xcb_out; - - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_rectangle_t * -xcb_xfixes_fetch_region_rectangles (const xcb_xfixes_fetch_region_reply_t *R /**< */) -{ - return (xcb_rectangle_t *) (R + 1); -} - -int -xcb_xfixes_fetch_region_rectangles_length (const xcb_xfixes_fetch_region_reply_t *R /**< */) -{ - return (R->length / 2); -} - -xcb_rectangle_iterator_t -xcb_xfixes_fetch_region_rectangles_iterator (const xcb_xfixes_fetch_region_reply_t *R /**< */) -{ - xcb_rectangle_iterator_t i; - i.data = (xcb_rectangle_t *) (R + 1); - i.rem = (R->length / 2); - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xfixes_fetch_region_reply_t * -xcb_xfixes_fetch_region_reply (xcb_connection_t *c /**< */, - xcb_xfixes_fetch_region_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xfixes_fetch_region_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xfixes_set_gc_clip_region_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - xcb_xfixes_region_t region /**< */, - int16_t x_origin /**< */, - int16_t y_origin /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SET_GC_CLIP_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_set_gc_clip_region_request_t xcb_out; - - xcb_out.gc = gc; - xcb_out.region = region; - xcb_out.x_origin = x_origin; - xcb_out.y_origin = y_origin; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_set_gc_clip_region (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - xcb_xfixes_region_t region /**< */, - int16_t x_origin /**< */, - int16_t y_origin /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SET_GC_CLIP_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_set_gc_clip_region_request_t xcb_out; - - xcb_out.gc = gc; - xcb_out.region = region; - xcb_out.x_origin = x_origin; - xcb_out.y_origin = y_origin; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_set_window_shape_region_checked (xcb_connection_t *c /**< */, - xcb_window_t dest /**< */, - xcb_shape_kind_t dest_kind /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_xfixes_region_t region /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SET_WINDOW_SHAPE_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_set_window_shape_region_request_t xcb_out; - - xcb_out.dest = dest; - xcb_out.dest_kind = dest_kind; - memset(xcb_out.pad0, 0, 3); - xcb_out.x_offset = x_offset; - xcb_out.y_offset = y_offset; - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_set_window_shape_region (xcb_connection_t *c /**< */, - xcb_window_t dest /**< */, - xcb_shape_kind_t dest_kind /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_xfixes_region_t region /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SET_WINDOW_SHAPE_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_set_window_shape_region_request_t xcb_out; - - xcb_out.dest = dest; - xcb_out.dest_kind = dest_kind; - memset(xcb_out.pad0, 0, 3); - xcb_out.x_offset = x_offset; - xcb_out.y_offset = y_offset; - xcb_out.region = region; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_set_picture_clip_region_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_xfixes_region_t region /**< */, - int16_t x_origin /**< */, - int16_t y_origin /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SET_PICTURE_CLIP_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_set_picture_clip_region_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.region = region; - xcb_out.x_origin = x_origin; - xcb_out.y_origin = y_origin; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_set_picture_clip_region (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_xfixes_region_t region /**< */, - int16_t x_origin /**< */, - int16_t y_origin /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SET_PICTURE_CLIP_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_set_picture_clip_region_request_t xcb_out; - - xcb_out.picture = picture; - xcb_out.region = region; - xcb_out.x_origin = x_origin; - xcb_out.y_origin = y_origin; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xfixes_set_cursor_name_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xfixes_set_cursor_name_request_t *_aux = (xcb_xfixes_set_cursor_name_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xfixes_set_cursor_name_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->nbytes * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_xfixes_set_cursor_name_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - uint16_t nbytes /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SET_CURSOR_NAME, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_set_cursor_name_request_t xcb_out; - - xcb_out.cursor = cursor; - xcb_out.nbytes = nbytes; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = nbytes * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_set_cursor_name (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - uint16_t nbytes /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SET_CURSOR_NAME, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_set_cursor_name_request_t xcb_out; - - xcb_out.cursor = cursor; - xcb_out.nbytes = nbytes; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = nbytes * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xfixes_get_cursor_name_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xfixes_get_cursor_name_reply_t *_aux = (xcb_xfixes_get_cursor_name_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xfixes_get_cursor_name_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->nbytes * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xfixes_get_cursor_name_cookie_t -xcb_xfixes_get_cursor_name (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_GET_CURSOR_NAME, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xfixes_get_cursor_name_cookie_t xcb_ret; - xcb_xfixes_get_cursor_name_request_t xcb_out; - - xcb_out.cursor = cursor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xfixes_get_cursor_name_cookie_t -xcb_xfixes_get_cursor_name_unchecked (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_GET_CURSOR_NAME, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xfixes_get_cursor_name_cookie_t xcb_ret; - xcb_xfixes_get_cursor_name_request_t xcb_out; - - xcb_out.cursor = cursor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_xfixes_get_cursor_name_name (const xcb_xfixes_get_cursor_name_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_xfixes_get_cursor_name_name_length (const xcb_xfixes_get_cursor_name_reply_t *R /**< */) -{ - return R->nbytes; -} - -xcb_generic_iterator_t -xcb_xfixes_get_cursor_name_name_end (const xcb_xfixes_get_cursor_name_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->nbytes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xfixes_get_cursor_name_reply_t * -xcb_xfixes_get_cursor_name_reply (xcb_connection_t *c /**< */, - xcb_xfixes_get_cursor_name_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xfixes_get_cursor_name_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xfixes_get_cursor_image_and_name_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xfixes_get_cursor_image_and_name_reply_t *_aux = (xcb_xfixes_get_cursor_image_and_name_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xfixes_get_cursor_image_and_name_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->nbytes * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* cursor_image */ - xcb_block_len += (_aux->width * _aux->height) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xfixes_get_cursor_image_and_name_cookie_t -xcb_xfixes_get_cursor_image_and_name (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_GET_CURSOR_IMAGE_AND_NAME, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xfixes_get_cursor_image_and_name_cookie_t xcb_ret; - xcb_xfixes_get_cursor_image_and_name_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xfixes_get_cursor_image_and_name_cookie_t -xcb_xfixes_get_cursor_image_and_name_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_GET_CURSOR_IMAGE_AND_NAME, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xfixes_get_cursor_image_and_name_cookie_t xcb_ret; - xcb_xfixes_get_cursor_image_and_name_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_xfixes_get_cursor_image_and_name_name (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_xfixes_get_cursor_image_and_name_name_length (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */) -{ - return R->nbytes; -} - -xcb_generic_iterator_t -xcb_xfixes_get_cursor_image_and_name_name_end (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->nbytes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint32_t * -xcb_xfixes_get_cursor_image_and_name_cursor_image (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xfixes_get_cursor_image_and_name_name_end(R); - return (uint32_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index) + 0); -} - -int -xcb_xfixes_get_cursor_image_and_name_cursor_image_length (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */) -{ - return (R->width * R->height); -} - -xcb_generic_iterator_t -xcb_xfixes_get_cursor_image_and_name_cursor_image_end (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_xfixes_get_cursor_image_and_name_name_end(R); - i.data = ((uint32_t *) child.data) + ((R->width * R->height)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xfixes_get_cursor_image_and_name_reply_t * -xcb_xfixes_get_cursor_image_and_name_reply (xcb_connection_t *c /**< */, - xcb_xfixes_get_cursor_image_and_name_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xfixes_get_cursor_image_and_name_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xfixes_change_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t source /**< */, - xcb_cursor_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CHANGE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_change_cursor_request_t xcb_out; - - xcb_out.source = source; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_change_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t source /**< */, - xcb_cursor_t destination /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CHANGE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_change_cursor_request_t xcb_out; - - xcb_out.source = source; - xcb_out.destination = destination; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xfixes_change_cursor_by_name_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xfixes_change_cursor_by_name_request_t *_aux = (xcb_xfixes_change_cursor_by_name_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xfixes_change_cursor_by_name_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->nbytes * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_xfixes_change_cursor_by_name_checked (xcb_connection_t *c /**< */, - xcb_cursor_t src /**< */, - uint16_t nbytes /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CHANGE_CURSOR_BY_NAME, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_change_cursor_by_name_request_t xcb_out; - - xcb_out.src = src; - xcb_out.nbytes = nbytes; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = nbytes * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_change_cursor_by_name (xcb_connection_t *c /**< */, - xcb_cursor_t src /**< */, - uint16_t nbytes /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CHANGE_CURSOR_BY_NAME, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_change_cursor_by_name_request_t xcb_out; - - xcb_out.src = src; - xcb_out.nbytes = nbytes; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = nbytes * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_expand_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */, - uint16_t left /**< */, - uint16_t right /**< */, - uint16_t top /**< */, - uint16_t bottom /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_EXPAND_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_expand_region_request_t xcb_out; - - xcb_out.source = source; - xcb_out.destination = destination; - xcb_out.left = left; - xcb_out.right = right; - xcb_out.top = top; - xcb_out.bottom = bottom; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_expand_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */, - uint16_t left /**< */, - uint16_t right /**< */, - uint16_t top /**< */, - uint16_t bottom /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_EXPAND_REGION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_expand_region_request_t xcb_out; - - xcb_out.source = source; - xcb_out.destination = destination; - xcb_out.left = left; - xcb_out.right = right; - xcb_out.top = top; - xcb_out.bottom = bottom; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_hide_cursor_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_HIDE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_hide_cursor_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_hide_cursor (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_HIDE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_hide_cursor_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_show_cursor_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SHOW_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_show_cursor_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_show_cursor (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_SHOW_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_show_cursor_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_xfixes_barrier_next (xcb_xfixes_barrier_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xfixes_barrier_t); -} - -xcb_generic_iterator_t -xcb_xfixes_barrier_end (xcb_xfixes_barrier_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_xfixes_create_pointer_barrier_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xfixes_create_pointer_barrier_request_t *_aux = (xcb_xfixes_create_pointer_barrier_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xfixes_create_pointer_barrier_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* devices */ - xcb_block_len += _aux->num_devices * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_xfixes_create_pointer_barrier_checked (xcb_connection_t *c /**< */, - xcb_xfixes_barrier_t barrier /**< */, - xcb_window_t window /**< */, - uint16_t x1 /**< */, - uint16_t y1 /**< */, - uint16_t x2 /**< */, - uint16_t y2 /**< */, - uint32_t directions /**< */, - uint16_t num_devices /**< */, - const uint16_t *devices /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_POINTER_BARRIER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_pointer_barrier_request_t xcb_out; - - xcb_out.barrier = barrier; - xcb_out.window = window; - xcb_out.x1 = x1; - xcb_out.y1 = y1; - xcb_out.x2 = x2; - xcb_out.y2 = y2; - xcb_out.directions = directions; - memset(xcb_out.pad0, 0, 2); - xcb_out.num_devices = num_devices; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint16_t devices */ - xcb_parts[4].iov_base = (char *) devices; - xcb_parts[4].iov_len = num_devices * sizeof(uint16_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_create_pointer_barrier (xcb_connection_t *c /**< */, - xcb_xfixes_barrier_t barrier /**< */, - xcb_window_t window /**< */, - uint16_t x1 /**< */, - uint16_t y1 /**< */, - uint16_t x2 /**< */, - uint16_t y2 /**< */, - uint32_t directions /**< */, - uint16_t num_devices /**< */, - const uint16_t *devices /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_CREATE_POINTER_BARRIER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_create_pointer_barrier_request_t xcb_out; - - xcb_out.barrier = barrier; - xcb_out.window = window; - xcb_out.x1 = x1; - xcb_out.y1 = y1; - xcb_out.x2 = x2; - xcb_out.y2 = y2; - xcb_out.directions = directions; - memset(xcb_out.pad0, 0, 2); - xcb_out.num_devices = num_devices; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint16_t devices */ - xcb_parts[4].iov_base = (char *) devices; - xcb_parts[4].iov_len = num_devices * sizeof(uint16_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_delete_pointer_barrier_checked (xcb_connection_t *c /**< */, - xcb_xfixes_barrier_t barrier /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_DELETE_POINTER_BARRIER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_delete_pointer_barrier_request_t xcb_out; - - xcb_out.barrier = barrier; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xfixes_delete_pointer_barrier (xcb_connection_t *c /**< */, - xcb_xfixes_barrier_t barrier /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xfixes_id, - /* opcode */ XCB_XFIXES_DELETE_POINTER_BARRIER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xfixes_delete_pointer_barrier_request_t xcb_out; - - xcb_out.barrier = barrier; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - diff --git a/external/mit/xorg/lib/libxcb/files/xfixes.h b/external/mit/xorg/lib/libxcb/files/xfixes.h deleted file mode 100644 index 1752ebb3f..000000000 --- a/external/mit/xorg/lib/libxcb/files/xfixes.h +++ /dev/null @@ -1,1960 +0,0 @@ -/* - * This file generated automatically from xfixes.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_XFixes_API XCB XFixes API - * @brief XFixes XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XFIXES_H -#define __XFIXES_H - -#include "xcb.h" -#include "xproto.h" -#include "render.h" -#include "shape.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_XFIXES_MAJOR_VERSION 5 -#define XCB_XFIXES_MINOR_VERSION 0 - -extern xcb_extension_t xcb_xfixes_id; - -/** - * @brief xcb_xfixes_query_version_cookie_t - **/ -typedef struct xcb_xfixes_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_xfixes_query_version_cookie_t; - -/** Opcode for xcb_xfixes_query_version. */ -#define XCB_XFIXES_QUERY_VERSION 0 - -/** - * @brief xcb_xfixes_query_version_request_t - **/ -typedef struct xcb_xfixes_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t client_major_version; /**< */ - uint32_t client_minor_version; /**< */ -} xcb_xfixes_query_version_request_t; - -/** - * @brief xcb_xfixes_query_version_reply_t - **/ -typedef struct xcb_xfixes_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t major_version; /**< */ - uint32_t minor_version; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_xfixes_query_version_reply_t; - -typedef enum xcb_xfixes_save_set_mode_t { - XCB_XFIXES_SAVE_SET_MODE_INSERT = 0, - XCB_XFIXES_SAVE_SET_MODE_DELETE = 1 -} xcb_xfixes_save_set_mode_t; - -typedef enum xcb_xfixes_save_set_target_t { - XCB_XFIXES_SAVE_SET_TARGET_NEAREST = 0, - XCB_XFIXES_SAVE_SET_TARGET_ROOT = 1 -} xcb_xfixes_save_set_target_t; - -typedef enum xcb_xfixes_save_set_mapping_t { - XCB_XFIXES_SAVE_SET_MAPPING_MAP = 0, - XCB_XFIXES_SAVE_SET_MAPPING_UNMAP = 1 -} xcb_xfixes_save_set_mapping_t; - -/** Opcode for xcb_xfixes_change_save_set. */ -#define XCB_XFIXES_CHANGE_SAVE_SET 1 - -/** - * @brief xcb_xfixes_change_save_set_request_t - **/ -typedef struct xcb_xfixes_change_save_set_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t mode; /**< */ - uint8_t target; /**< */ - uint8_t map; /**< */ - uint8_t pad0; /**< */ - xcb_window_t window; /**< */ -} xcb_xfixes_change_save_set_request_t; - -typedef enum xcb_xfixes_selection_event_t { - XCB_XFIXES_SELECTION_EVENT_SET_SELECTION_OWNER = 0, - XCB_XFIXES_SELECTION_EVENT_SELECTION_WINDOW_DESTROY = 1, - XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE = 2 -} xcb_xfixes_selection_event_t; - -typedef enum xcb_xfixes_selection_event_mask_t { - XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER = 1, - XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_WINDOW_DESTROY = 2, - XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_CLIENT_CLOSE = 4 -} xcb_xfixes_selection_event_mask_t; - -/** Opcode for xcb_xfixes_selection_notify. */ -#define XCB_XFIXES_SELECTION_NOTIFY 0 - -/** - * @brief xcb_xfixes_selection_notify_event_t - **/ -typedef struct xcb_xfixes_selection_notify_event_t { - uint8_t response_type; /**< */ - uint8_t subtype; /**< */ - uint16_t sequence; /**< */ - xcb_window_t window; /**< */ - xcb_window_t owner; /**< */ - xcb_atom_t selection; /**< */ - xcb_timestamp_t timestamp; /**< */ - xcb_timestamp_t selection_timestamp; /**< */ - uint8_t pad0[8]; /**< */ -} xcb_xfixes_selection_notify_event_t; - -/** Opcode for xcb_xfixes_select_selection_input. */ -#define XCB_XFIXES_SELECT_SELECTION_INPUT 2 - -/** - * @brief xcb_xfixes_select_selection_input_request_t - **/ -typedef struct xcb_xfixes_select_selection_input_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_atom_t selection; /**< */ - uint32_t event_mask; /**< */ -} xcb_xfixes_select_selection_input_request_t; - -typedef enum xcb_xfixes_cursor_notify_t { - XCB_XFIXES_CURSOR_NOTIFY_DISPLAY_CURSOR = 0 -} xcb_xfixes_cursor_notify_t; - -typedef enum xcb_xfixes_cursor_notify_mask_t { - XCB_XFIXES_CURSOR_NOTIFY_MASK_DISPLAY_CURSOR = 1 -} xcb_xfixes_cursor_notify_mask_t; - -/** Opcode for xcb_xfixes_cursor_notify. */ -#define XCB_XFIXES_CURSOR_NOTIFY 1 - -/** - * @brief xcb_xfixes_cursor_notify_event_t - **/ -typedef struct xcb_xfixes_cursor_notify_event_t { - uint8_t response_type; /**< */ - uint8_t subtype; /**< */ - uint16_t sequence; /**< */ - xcb_window_t window; /**< */ - uint32_t cursor_serial; /**< */ - xcb_timestamp_t timestamp; /**< */ - xcb_atom_t name; /**< */ - uint8_t pad0[12]; /**< */ -} xcb_xfixes_cursor_notify_event_t; - -/** Opcode for xcb_xfixes_select_cursor_input. */ -#define XCB_XFIXES_SELECT_CURSOR_INPUT 3 - -/** - * @brief xcb_xfixes_select_cursor_input_request_t - **/ -typedef struct xcb_xfixes_select_cursor_input_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint32_t event_mask; /**< */ -} xcb_xfixes_select_cursor_input_request_t; - -/** - * @brief xcb_xfixes_get_cursor_image_cookie_t - **/ -typedef struct xcb_xfixes_get_cursor_image_cookie_t { - unsigned int sequence; /**< */ -} xcb_xfixes_get_cursor_image_cookie_t; - -/** Opcode for xcb_xfixes_get_cursor_image. */ -#define XCB_XFIXES_GET_CURSOR_IMAGE 4 - -/** - * @brief xcb_xfixes_get_cursor_image_request_t - **/ -typedef struct xcb_xfixes_get_cursor_image_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_xfixes_get_cursor_image_request_t; - -/** - * @brief xcb_xfixes_get_cursor_image_reply_t - **/ -typedef struct xcb_xfixes_get_cursor_image_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t xhot; /**< */ - uint16_t yhot; /**< */ - uint32_t cursor_serial; /**< */ - uint8_t pad1[8]; /**< */ -} xcb_xfixes_get_cursor_image_reply_t; - -typedef uint32_t xcb_xfixes_region_t; - -/** - * @brief xcb_xfixes_region_iterator_t - **/ -typedef struct xcb_xfixes_region_iterator_t { - xcb_xfixes_region_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xfixes_region_iterator_t; - -/** Opcode for xcb_xfixes_bad_region. */ -#define XCB_XFIXES_BAD_REGION 0 - -/** - * @brief xcb_xfixes_bad_region_error_t - **/ -typedef struct xcb_xfixes_bad_region_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_xfixes_bad_region_error_t; - -typedef enum xcb_xfixes_region_enum_t { - XCB_XFIXES_REGION_NONE = 0 -} xcb_xfixes_region_enum_t; - -/** Opcode for xcb_xfixes_create_region. */ -#define XCB_XFIXES_CREATE_REGION 5 - -/** - * @brief xcb_xfixes_create_region_request_t - **/ -typedef struct xcb_xfixes_create_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t region; /**< */ -} xcb_xfixes_create_region_request_t; - -/** Opcode for xcb_xfixes_create_region_from_bitmap. */ -#define XCB_XFIXES_CREATE_REGION_FROM_BITMAP 6 - -/** - * @brief xcb_xfixes_create_region_from_bitmap_request_t - **/ -typedef struct xcb_xfixes_create_region_from_bitmap_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t region; /**< */ - xcb_pixmap_t bitmap; /**< */ -} xcb_xfixes_create_region_from_bitmap_request_t; - -/** Opcode for xcb_xfixes_create_region_from_window. */ -#define XCB_XFIXES_CREATE_REGION_FROM_WINDOW 7 - -/** - * @brief xcb_xfixes_create_region_from_window_request_t - **/ -typedef struct xcb_xfixes_create_region_from_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t region; /**< */ - xcb_window_t window; /**< */ - xcb_shape_kind_t kind; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_xfixes_create_region_from_window_request_t; - -/** Opcode for xcb_xfixes_create_region_from_gc. */ -#define XCB_XFIXES_CREATE_REGION_FROM_GC 8 - -/** - * @brief xcb_xfixes_create_region_from_gc_request_t - **/ -typedef struct xcb_xfixes_create_region_from_gc_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t region; /**< */ - xcb_gcontext_t gc; /**< */ -} xcb_xfixes_create_region_from_gc_request_t; - -/** Opcode for xcb_xfixes_create_region_from_picture. */ -#define XCB_XFIXES_CREATE_REGION_FROM_PICTURE 9 - -/** - * @brief xcb_xfixes_create_region_from_picture_request_t - **/ -typedef struct xcb_xfixes_create_region_from_picture_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t region; /**< */ - xcb_render_picture_t picture; /**< */ -} xcb_xfixes_create_region_from_picture_request_t; - -/** Opcode for xcb_xfixes_destroy_region. */ -#define XCB_XFIXES_DESTROY_REGION 10 - -/** - * @brief xcb_xfixes_destroy_region_request_t - **/ -typedef struct xcb_xfixes_destroy_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t region; /**< */ -} xcb_xfixes_destroy_region_request_t; - -/** Opcode for xcb_xfixes_set_region. */ -#define XCB_XFIXES_SET_REGION 11 - -/** - * @brief xcb_xfixes_set_region_request_t - **/ -typedef struct xcb_xfixes_set_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t region; /**< */ -} xcb_xfixes_set_region_request_t; - -/** Opcode for xcb_xfixes_copy_region. */ -#define XCB_XFIXES_COPY_REGION 12 - -/** - * @brief xcb_xfixes_copy_region_request_t - **/ -typedef struct xcb_xfixes_copy_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t source; /**< */ - xcb_xfixes_region_t destination; /**< */ -} xcb_xfixes_copy_region_request_t; - -/** Opcode for xcb_xfixes_union_region. */ -#define XCB_XFIXES_UNION_REGION 13 - -/** - * @brief xcb_xfixes_union_region_request_t - **/ -typedef struct xcb_xfixes_union_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t source1; /**< */ - xcb_xfixes_region_t source2; /**< */ - xcb_xfixes_region_t destination; /**< */ -} xcb_xfixes_union_region_request_t; - -/** Opcode for xcb_xfixes_intersect_region. */ -#define XCB_XFIXES_INTERSECT_REGION 14 - -/** - * @brief xcb_xfixes_intersect_region_request_t - **/ -typedef struct xcb_xfixes_intersect_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t source1; /**< */ - xcb_xfixes_region_t source2; /**< */ - xcb_xfixes_region_t destination; /**< */ -} xcb_xfixes_intersect_region_request_t; - -/** Opcode for xcb_xfixes_subtract_region. */ -#define XCB_XFIXES_SUBTRACT_REGION 15 - -/** - * @brief xcb_xfixes_subtract_region_request_t - **/ -typedef struct xcb_xfixes_subtract_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t source1; /**< */ - xcb_xfixes_region_t source2; /**< */ - xcb_xfixes_region_t destination; /**< */ -} xcb_xfixes_subtract_region_request_t; - -/** Opcode for xcb_xfixes_invert_region. */ -#define XCB_XFIXES_INVERT_REGION 16 - -/** - * @brief xcb_xfixes_invert_region_request_t - **/ -typedef struct xcb_xfixes_invert_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t source; /**< */ - xcb_rectangle_t bounds; /**< */ - xcb_xfixes_region_t destination; /**< */ -} xcb_xfixes_invert_region_request_t; - -/** Opcode for xcb_xfixes_translate_region. */ -#define XCB_XFIXES_TRANSLATE_REGION 17 - -/** - * @brief xcb_xfixes_translate_region_request_t - **/ -typedef struct xcb_xfixes_translate_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t region; /**< */ - int16_t dx; /**< */ - int16_t dy; /**< */ -} xcb_xfixes_translate_region_request_t; - -/** Opcode for xcb_xfixes_region_extents. */ -#define XCB_XFIXES_REGION_EXTENTS 18 - -/** - * @brief xcb_xfixes_region_extents_request_t - **/ -typedef struct xcb_xfixes_region_extents_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t source; /**< */ - xcb_xfixes_region_t destination; /**< */ -} xcb_xfixes_region_extents_request_t; - -/** - * @brief xcb_xfixes_fetch_region_cookie_t - **/ -typedef struct xcb_xfixes_fetch_region_cookie_t { - unsigned int sequence; /**< */ -} xcb_xfixes_fetch_region_cookie_t; - -/** Opcode for xcb_xfixes_fetch_region. */ -#define XCB_XFIXES_FETCH_REGION 19 - -/** - * @brief xcb_xfixes_fetch_region_request_t - **/ -typedef struct xcb_xfixes_fetch_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t region; /**< */ -} xcb_xfixes_fetch_region_request_t; - -/** - * @brief xcb_xfixes_fetch_region_reply_t - **/ -typedef struct xcb_xfixes_fetch_region_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_rectangle_t extents; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_xfixes_fetch_region_reply_t; - -/** Opcode for xcb_xfixes_set_gc_clip_region. */ -#define XCB_XFIXES_SET_GC_CLIP_REGION 20 - -/** - * @brief xcb_xfixes_set_gc_clip_region_request_t - **/ -typedef struct xcb_xfixes_set_gc_clip_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_gcontext_t gc; /**< */ - xcb_xfixes_region_t region; /**< */ - int16_t x_origin; /**< */ - int16_t y_origin; /**< */ -} xcb_xfixes_set_gc_clip_region_request_t; - -/** Opcode for xcb_xfixes_set_window_shape_region. */ -#define XCB_XFIXES_SET_WINDOW_SHAPE_REGION 21 - -/** - * @brief xcb_xfixes_set_window_shape_region_request_t - **/ -typedef struct xcb_xfixes_set_window_shape_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t dest; /**< */ - xcb_shape_kind_t dest_kind; /**< */ - uint8_t pad0[3]; /**< */ - int16_t x_offset; /**< */ - int16_t y_offset; /**< */ - xcb_xfixes_region_t region; /**< */ -} xcb_xfixes_set_window_shape_region_request_t; - -/** Opcode for xcb_xfixes_set_picture_clip_region. */ -#define XCB_XFIXES_SET_PICTURE_CLIP_REGION 22 - -/** - * @brief xcb_xfixes_set_picture_clip_region_request_t - **/ -typedef struct xcb_xfixes_set_picture_clip_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_render_picture_t picture; /**< */ - xcb_xfixes_region_t region; /**< */ - int16_t x_origin; /**< */ - int16_t y_origin; /**< */ -} xcb_xfixes_set_picture_clip_region_request_t; - -/** Opcode for xcb_xfixes_set_cursor_name. */ -#define XCB_XFIXES_SET_CURSOR_NAME 23 - -/** - * @brief xcb_xfixes_set_cursor_name_request_t - **/ -typedef struct xcb_xfixes_set_cursor_name_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_cursor_t cursor; /**< */ - uint16_t nbytes; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xfixes_set_cursor_name_request_t; - -/** - * @brief xcb_xfixes_get_cursor_name_cookie_t - **/ -typedef struct xcb_xfixes_get_cursor_name_cookie_t { - unsigned int sequence; /**< */ -} xcb_xfixes_get_cursor_name_cookie_t; - -/** Opcode for xcb_xfixes_get_cursor_name. */ -#define XCB_XFIXES_GET_CURSOR_NAME 24 - -/** - * @brief xcb_xfixes_get_cursor_name_request_t - **/ -typedef struct xcb_xfixes_get_cursor_name_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_cursor_t cursor; /**< */ -} xcb_xfixes_get_cursor_name_request_t; - -/** - * @brief xcb_xfixes_get_cursor_name_reply_t - **/ -typedef struct xcb_xfixes_get_cursor_name_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_atom_t atom; /**< */ - uint16_t nbytes; /**< */ - uint8_t pad1[18]; /**< */ -} xcb_xfixes_get_cursor_name_reply_t; - -/** - * @brief xcb_xfixes_get_cursor_image_and_name_cookie_t - **/ -typedef struct xcb_xfixes_get_cursor_image_and_name_cookie_t { - unsigned int sequence; /**< */ -} xcb_xfixes_get_cursor_image_and_name_cookie_t; - -/** Opcode for xcb_xfixes_get_cursor_image_and_name. */ -#define XCB_XFIXES_GET_CURSOR_IMAGE_AND_NAME 25 - -/** - * @brief xcb_xfixes_get_cursor_image_and_name_request_t - **/ -typedef struct xcb_xfixes_get_cursor_image_and_name_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_xfixes_get_cursor_image_and_name_request_t; - -/** - * @brief xcb_xfixes_get_cursor_image_and_name_reply_t - **/ -typedef struct xcb_xfixes_get_cursor_image_and_name_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t xhot; /**< */ - uint16_t yhot; /**< */ - uint32_t cursor_serial; /**< */ - xcb_atom_t cursor_atom; /**< */ - uint16_t nbytes; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_xfixes_get_cursor_image_and_name_reply_t; - -/** Opcode for xcb_xfixes_change_cursor. */ -#define XCB_XFIXES_CHANGE_CURSOR 26 - -/** - * @brief xcb_xfixes_change_cursor_request_t - **/ -typedef struct xcb_xfixes_change_cursor_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_cursor_t source; /**< */ - xcb_cursor_t destination; /**< */ -} xcb_xfixes_change_cursor_request_t; - -/** Opcode for xcb_xfixes_change_cursor_by_name. */ -#define XCB_XFIXES_CHANGE_CURSOR_BY_NAME 27 - -/** - * @brief xcb_xfixes_change_cursor_by_name_request_t - **/ -typedef struct xcb_xfixes_change_cursor_by_name_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_cursor_t src; /**< */ - uint16_t nbytes; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xfixes_change_cursor_by_name_request_t; - -/** Opcode for xcb_xfixes_expand_region. */ -#define XCB_XFIXES_EXPAND_REGION 28 - -/** - * @brief xcb_xfixes_expand_region_request_t - **/ -typedef struct xcb_xfixes_expand_region_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_region_t source; /**< */ - xcb_xfixes_region_t destination; /**< */ - uint16_t left; /**< */ - uint16_t right; /**< */ - uint16_t top; /**< */ - uint16_t bottom; /**< */ -} xcb_xfixes_expand_region_request_t; - -/** Opcode for xcb_xfixes_hide_cursor. */ -#define XCB_XFIXES_HIDE_CURSOR 29 - -/** - * @brief xcb_xfixes_hide_cursor_request_t - **/ -typedef struct xcb_xfixes_hide_cursor_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_xfixes_hide_cursor_request_t; - -/** Opcode for xcb_xfixes_show_cursor. */ -#define XCB_XFIXES_SHOW_CURSOR 30 - -/** - * @brief xcb_xfixes_show_cursor_request_t - **/ -typedef struct xcb_xfixes_show_cursor_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_xfixes_show_cursor_request_t; - -typedef uint32_t xcb_xfixes_barrier_t; - -/** - * @brief xcb_xfixes_barrier_iterator_t - **/ -typedef struct xcb_xfixes_barrier_iterator_t { - xcb_xfixes_barrier_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xfixes_barrier_iterator_t; - -typedef enum xcb_xfixes_barrier_directions_t { - XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_X = 1, - XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_Y = 2, - XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_X = 4, - XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_Y = 8 -} xcb_xfixes_barrier_directions_t; - -/** Opcode for xcb_xfixes_create_pointer_barrier. */ -#define XCB_XFIXES_CREATE_POINTER_BARRIER 31 - -/** - * @brief xcb_xfixes_create_pointer_barrier_request_t - **/ -typedef struct xcb_xfixes_create_pointer_barrier_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_barrier_t barrier; /**< */ - xcb_window_t window; /**< */ - uint16_t x1; /**< */ - uint16_t y1; /**< */ - uint16_t x2; /**< */ - uint16_t y2; /**< */ - uint32_t directions; /**< */ - uint8_t pad0[2]; /**< */ - uint16_t num_devices; /**< */ -} xcb_xfixes_create_pointer_barrier_request_t; - -/** Opcode for xcb_xfixes_delete_pointer_barrier. */ -#define XCB_XFIXES_DELETE_POINTER_BARRIER 32 - -/** - * @brief xcb_xfixes_delete_pointer_barrier_request_t - **/ -typedef struct xcb_xfixes_delete_pointer_barrier_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xfixes_barrier_t barrier; /**< */ -} xcb_xfixes_delete_pointer_barrier_request_t; - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xfixes_query_version_cookie_t -xcb_xfixes_query_version (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xfixes_query_version_cookie_t -xcb_xfixes_query_version_unchecked (xcb_connection_t *c /**< */, - uint32_t client_major_version /**< */, - uint32_t client_minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xfixes_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xfixes_query_version_reply_t * -xcb_xfixes_query_version_reply (xcb_connection_t *c /**< */, - xcb_xfixes_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_change_save_set_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - uint8_t target /**< */, - uint8_t map /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_change_save_set (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - uint8_t target /**< */, - uint8_t map /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_select_selection_input_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t selection /**< */, - uint32_t event_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_select_selection_input (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t selection /**< */, - uint32_t event_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_select_cursor_input_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t event_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_select_cursor_input (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t event_mask /**< */); - -int -xcb_xfixes_get_cursor_image_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xfixes_get_cursor_image_cookie_t -xcb_xfixes_get_cursor_image (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xfixes_get_cursor_image_cookie_t -xcb_xfixes_get_cursor_image_unchecked (xcb_connection_t *c /**< */); - -uint32_t * -xcb_xfixes_get_cursor_image_cursor_image (const xcb_xfixes_get_cursor_image_reply_t *R /**< */); - -int -xcb_xfixes_get_cursor_image_cursor_image_length (const xcb_xfixes_get_cursor_image_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xfixes_get_cursor_image_cursor_image_end (const xcb_xfixes_get_cursor_image_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xfixes_get_cursor_image_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xfixes_get_cursor_image_reply_t * -xcb_xfixes_get_cursor_image_reply (xcb_connection_t *c /**< */, - xcb_xfixes_get_cursor_image_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xfixes_region_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xfixes_region_t) - */ -void -xcb_xfixes_region_next (xcb_xfixes_region_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xfixes_region_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xfixes_region_end (xcb_xfixes_region_iterator_t i /**< */); - -int -xcb_xfixes_create_region_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_create_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_create_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_create_region_from_bitmap_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_pixmap_t bitmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_create_region_from_bitmap (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_pixmap_t bitmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_create_region_from_window_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_window_t window /**< */, - xcb_shape_kind_t kind /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_create_region_from_window (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_window_t window /**< */, - xcb_shape_kind_t kind /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_create_region_from_gc_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_gcontext_t gc /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_create_region_from_gc (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_gcontext_t gc /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_create_region_from_picture_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_render_picture_t picture /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_create_region_from_picture (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - xcb_render_picture_t picture /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_destroy_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_destroy_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */); - -int -xcb_xfixes_set_region_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_set_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_set_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_copy_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_copy_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_union_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_union_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_intersect_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_intersect_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_subtract_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_subtract_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source1 /**< */, - xcb_xfixes_region_t source2 /**< */, - xcb_xfixes_region_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_invert_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_rectangle_t bounds /**< */, - xcb_xfixes_region_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_invert_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_rectangle_t bounds /**< */, - xcb_xfixes_region_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_translate_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - int16_t dx /**< */, - int16_t dy /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_translate_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */, - int16_t dx /**< */, - int16_t dy /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_region_extents_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_region_extents (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */); - -int -xcb_xfixes_fetch_region_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xfixes_fetch_region_cookie_t -xcb_xfixes_fetch_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xfixes_fetch_region_cookie_t -xcb_xfixes_fetch_region_unchecked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t region /**< */); - -xcb_rectangle_t * -xcb_xfixes_fetch_region_rectangles (const xcb_xfixes_fetch_region_reply_t *R /**< */); - -int -xcb_xfixes_fetch_region_rectangles_length (const xcb_xfixes_fetch_region_reply_t *R /**< */); - -xcb_rectangle_iterator_t -xcb_xfixes_fetch_region_rectangles_iterator (const xcb_xfixes_fetch_region_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xfixes_fetch_region_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xfixes_fetch_region_reply_t * -xcb_xfixes_fetch_region_reply (xcb_connection_t *c /**< */, - xcb_xfixes_fetch_region_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_set_gc_clip_region_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - xcb_xfixes_region_t region /**< */, - int16_t x_origin /**< */, - int16_t y_origin /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_set_gc_clip_region (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - xcb_xfixes_region_t region /**< */, - int16_t x_origin /**< */, - int16_t y_origin /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_set_window_shape_region_checked (xcb_connection_t *c /**< */, - xcb_window_t dest /**< */, - xcb_shape_kind_t dest_kind /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_xfixes_region_t region /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_set_window_shape_region (xcb_connection_t *c /**< */, - xcb_window_t dest /**< */, - xcb_shape_kind_t dest_kind /**< */, - int16_t x_offset /**< */, - int16_t y_offset /**< */, - xcb_xfixes_region_t region /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_set_picture_clip_region_checked (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_xfixes_region_t region /**< */, - int16_t x_origin /**< */, - int16_t y_origin /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_set_picture_clip_region (xcb_connection_t *c /**< */, - xcb_render_picture_t picture /**< */, - xcb_xfixes_region_t region /**< */, - int16_t x_origin /**< */, - int16_t y_origin /**< */); - -int -xcb_xfixes_set_cursor_name_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_set_cursor_name_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - uint16_t nbytes /**< */, - const char *name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_set_cursor_name (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - uint16_t nbytes /**< */, - const char *name /**< */); - -int -xcb_xfixes_get_cursor_name_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xfixes_get_cursor_name_cookie_t -xcb_xfixes_get_cursor_name (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xfixes_get_cursor_name_cookie_t -xcb_xfixes_get_cursor_name_unchecked (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */); - -char * -xcb_xfixes_get_cursor_name_name (const xcb_xfixes_get_cursor_name_reply_t *R /**< */); - -int -xcb_xfixes_get_cursor_name_name_length (const xcb_xfixes_get_cursor_name_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xfixes_get_cursor_name_name_end (const xcb_xfixes_get_cursor_name_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xfixes_get_cursor_name_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xfixes_get_cursor_name_reply_t * -xcb_xfixes_get_cursor_name_reply (xcb_connection_t *c /**< */, - xcb_xfixes_get_cursor_name_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xfixes_get_cursor_image_and_name_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xfixes_get_cursor_image_and_name_cookie_t -xcb_xfixes_get_cursor_image_and_name (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xfixes_get_cursor_image_and_name_cookie_t -xcb_xfixes_get_cursor_image_and_name_unchecked (xcb_connection_t *c /**< */); - -char * -xcb_xfixes_get_cursor_image_and_name_name (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */); - -int -xcb_xfixes_get_cursor_image_and_name_name_length (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xfixes_get_cursor_image_and_name_name_end (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */); - -uint32_t * -xcb_xfixes_get_cursor_image_and_name_cursor_image (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */); - -int -xcb_xfixes_get_cursor_image_and_name_cursor_image_length (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xfixes_get_cursor_image_and_name_cursor_image_end (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xfixes_get_cursor_image_and_name_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xfixes_get_cursor_image_and_name_reply_t * -xcb_xfixes_get_cursor_image_and_name_reply (xcb_connection_t *c /**< */, - xcb_xfixes_get_cursor_image_and_name_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_change_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t source /**< */, - xcb_cursor_t destination /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_change_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t source /**< */, - xcb_cursor_t destination /**< */); - -int -xcb_xfixes_change_cursor_by_name_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_change_cursor_by_name_checked (xcb_connection_t *c /**< */, - xcb_cursor_t src /**< */, - uint16_t nbytes /**< */, - const char *name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_change_cursor_by_name (xcb_connection_t *c /**< */, - xcb_cursor_t src /**< */, - uint16_t nbytes /**< */, - const char *name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_expand_region_checked (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */, - uint16_t left /**< */, - uint16_t right /**< */, - uint16_t top /**< */, - uint16_t bottom /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_expand_region (xcb_connection_t *c /**< */, - xcb_xfixes_region_t source /**< */, - xcb_xfixes_region_t destination /**< */, - uint16_t left /**< */, - uint16_t right /**< */, - uint16_t top /**< */, - uint16_t bottom /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_hide_cursor_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_hide_cursor (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_show_cursor_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_show_cursor (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xfixes_barrier_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xfixes_barrier_t) - */ -void -xcb_xfixes_barrier_next (xcb_xfixes_barrier_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xfixes_barrier_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xfixes_barrier_end (xcb_xfixes_barrier_iterator_t i /**< */); - -int -xcb_xfixes_create_pointer_barrier_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_create_pointer_barrier_checked (xcb_connection_t *c /**< */, - xcb_xfixes_barrier_t barrier /**< */, - xcb_window_t window /**< */, - uint16_t x1 /**< */, - uint16_t y1 /**< */, - uint16_t x2 /**< */, - uint16_t y2 /**< */, - uint32_t directions /**< */, - uint16_t num_devices /**< */, - const uint16_t *devices /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_create_pointer_barrier (xcb_connection_t *c /**< */, - xcb_xfixes_barrier_t barrier /**< */, - xcb_window_t window /**< */, - uint16_t x1 /**< */, - uint16_t y1 /**< */, - uint16_t x2 /**< */, - uint16_t y2 /**< */, - uint32_t directions /**< */, - uint16_t num_devices /**< */, - const uint16_t *devices /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xfixes_delete_pointer_barrier_checked (xcb_connection_t *c /**< */, - xcb_xfixes_barrier_t barrier /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xfixes_delete_pointer_barrier (xcb_connection_t *c /**< */, - xcb_xfixes_barrier_t barrier /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xinerama.c b/external/mit/xorg/lib/libxcb/files/xinerama.c deleted file mode 100644 index 8c3dc9284..000000000 --- a/external/mit/xorg/lib/libxcb/files/xinerama.c +++ /dev/null @@ -1,451 +0,0 @@ -/* - * This file generated automatically from xinerama.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xinerama.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_xinerama_id = { "XINERAMA", 0 }; - -void -xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xinerama_screen_info_t); -} - -xcb_generic_iterator_t -xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_xinerama_query_version_cookie_t -xcb_xinerama_query_version (xcb_connection_t *c /**< */, - uint8_t major /**< */, - uint8_t minor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_query_version_cookie_t xcb_ret; - xcb_xinerama_query_version_request_t xcb_out; - - xcb_out.major = major; - xcb_out.minor = minor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_query_version_cookie_t -xcb_xinerama_query_version_unchecked (xcb_connection_t *c /**< */, - uint8_t major /**< */, - uint8_t minor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_query_version_cookie_t xcb_ret; - xcb_xinerama_query_version_request_t xcb_out; - - xcb_out.major = major; - xcb_out.minor = minor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_query_version_reply_t * -xcb_xinerama_query_version_reply (xcb_connection_t *c /**< */, - xcb_xinerama_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xinerama_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xinerama_get_state_cookie_t -xcb_xinerama_get_state (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_GET_STATE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_get_state_cookie_t xcb_ret; - xcb_xinerama_get_state_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_get_state_cookie_t -xcb_xinerama_get_state_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_GET_STATE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_get_state_cookie_t xcb_ret; - xcb_xinerama_get_state_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_get_state_reply_t * -xcb_xinerama_get_state_reply (xcb_connection_t *c /**< */, - xcb_xinerama_get_state_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xinerama_get_state_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xinerama_get_screen_count_cookie_t -xcb_xinerama_get_screen_count (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_GET_SCREEN_COUNT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_get_screen_count_cookie_t xcb_ret; - xcb_xinerama_get_screen_count_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_get_screen_count_cookie_t -xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_GET_SCREEN_COUNT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_get_screen_count_cookie_t xcb_ret; - xcb_xinerama_get_screen_count_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_get_screen_count_reply_t * -xcb_xinerama_get_screen_count_reply (xcb_connection_t *c /**< */, - xcb_xinerama_get_screen_count_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xinerama_get_screen_count_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xinerama_get_screen_size_cookie_t -xcb_xinerama_get_screen_size (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_GET_SCREEN_SIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_get_screen_size_cookie_t xcb_ret; - xcb_xinerama_get_screen_size_request_t xcb_out; - - xcb_out.window = window; - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_get_screen_size_cookie_t -xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t screen /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_GET_SCREEN_SIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_get_screen_size_cookie_t xcb_ret; - xcb_xinerama_get_screen_size_request_t xcb_out; - - xcb_out.window = window; - xcb_out.screen = screen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_get_screen_size_reply_t * -xcb_xinerama_get_screen_size_reply (xcb_connection_t *c /**< */, - xcb_xinerama_get_screen_size_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xinerama_get_screen_size_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xinerama_is_active_cookie_t -xcb_xinerama_is_active (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_IS_ACTIVE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_is_active_cookie_t xcb_ret; - xcb_xinerama_is_active_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_is_active_cookie_t -xcb_xinerama_is_active_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_IS_ACTIVE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_is_active_cookie_t xcb_ret; - xcb_xinerama_is_active_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_is_active_reply_t * -xcb_xinerama_is_active_reply (xcb_connection_t *c /**< */, - xcb_xinerama_is_active_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xinerama_is_active_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xinerama_query_screens_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xinerama_query_screens_reply_t *_aux = (xcb_xinerama_query_screens_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xinerama_query_screens_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* screen_info */ - xcb_block_len += _aux->number * sizeof(xcb_xinerama_screen_info_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xinerama_screen_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xinerama_query_screens_cookie_t -xcb_xinerama_query_screens (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_QUERY_SCREENS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_query_screens_cookie_t xcb_ret; - xcb_xinerama_query_screens_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_query_screens_cookie_t -xcb_xinerama_query_screens_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xinerama_id, - /* opcode */ XCB_XINERAMA_QUERY_SCREENS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xinerama_query_screens_cookie_t xcb_ret; - xcb_xinerama_query_screens_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xinerama_screen_info_t * -xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R /**< */) -{ - return (xcb_xinerama_screen_info_t *) (R + 1); -} - -int -xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R /**< */) -{ - return R->number; -} - -xcb_xinerama_screen_info_iterator_t -xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R /**< */) -{ - xcb_xinerama_screen_info_iterator_t i; - i.data = (xcb_xinerama_screen_info_t *) (R + 1); - i.rem = R->number; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xinerama_query_screens_reply_t * -xcb_xinerama_query_screens_reply (xcb_connection_t *c /**< */, - xcb_xinerama_query_screens_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xinerama_query_screens_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/xinerama.h b/external/mit/xorg/lib/libxcb/files/xinerama.h deleted file mode 100644 index 3c75c60f8..000000000 --- a/external/mit/xorg/lib/libxcb/files/xinerama.h +++ /dev/null @@ -1,557 +0,0 @@ -/* - * This file generated automatically from xinerama.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Xinerama_API XCB Xinerama API - * @brief Xinerama XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XINERAMA_H -#define __XINERAMA_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_XINERAMA_MAJOR_VERSION 1 -#define XCB_XINERAMA_MINOR_VERSION 1 - -extern xcb_extension_t xcb_xinerama_id; - -/** - * @brief xcb_xinerama_screen_info_t - **/ -typedef struct xcb_xinerama_screen_info_t { - int16_t x_org; /**< */ - int16_t y_org; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_xinerama_screen_info_t; - -/** - * @brief xcb_xinerama_screen_info_iterator_t - **/ -typedef struct xcb_xinerama_screen_info_iterator_t { - xcb_xinerama_screen_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xinerama_screen_info_iterator_t; - -/** - * @brief xcb_xinerama_query_version_cookie_t - **/ -typedef struct xcb_xinerama_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_xinerama_query_version_cookie_t; - -/** Opcode for xcb_xinerama_query_version. */ -#define XCB_XINERAMA_QUERY_VERSION 0 - -/** - * @brief xcb_xinerama_query_version_request_t - **/ -typedef struct xcb_xinerama_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t major; /**< */ - uint8_t minor; /**< */ -} xcb_xinerama_query_version_request_t; - -/** - * @brief xcb_xinerama_query_version_reply_t - **/ -typedef struct xcb_xinerama_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t major; /**< */ - uint16_t minor; /**< */ -} xcb_xinerama_query_version_reply_t; - -/** - * @brief xcb_xinerama_get_state_cookie_t - **/ -typedef struct xcb_xinerama_get_state_cookie_t { - unsigned int sequence; /**< */ -} xcb_xinerama_get_state_cookie_t; - -/** Opcode for xcb_xinerama_get_state. */ -#define XCB_XINERAMA_GET_STATE 1 - -/** - * @brief xcb_xinerama_get_state_request_t - **/ -typedef struct xcb_xinerama_get_state_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_xinerama_get_state_request_t; - -/** - * @brief xcb_xinerama_get_state_reply_t - **/ -typedef struct xcb_xinerama_get_state_reply_t { - uint8_t response_type; /**< */ - uint8_t state; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_xinerama_get_state_reply_t; - -/** - * @brief xcb_xinerama_get_screen_count_cookie_t - **/ -typedef struct xcb_xinerama_get_screen_count_cookie_t { - unsigned int sequence; /**< */ -} xcb_xinerama_get_screen_count_cookie_t; - -/** Opcode for xcb_xinerama_get_screen_count. */ -#define XCB_XINERAMA_GET_SCREEN_COUNT 2 - -/** - * @brief xcb_xinerama_get_screen_count_request_t - **/ -typedef struct xcb_xinerama_get_screen_count_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_xinerama_get_screen_count_request_t; - -/** - * @brief xcb_xinerama_get_screen_count_reply_t - **/ -typedef struct xcb_xinerama_get_screen_count_reply_t { - uint8_t response_type; /**< */ - uint8_t screen_count; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_xinerama_get_screen_count_reply_t; - -/** - * @brief xcb_xinerama_get_screen_size_cookie_t - **/ -typedef struct xcb_xinerama_get_screen_size_cookie_t { - unsigned int sequence; /**< */ -} xcb_xinerama_get_screen_size_cookie_t; - -/** Opcode for xcb_xinerama_get_screen_size. */ -#define XCB_XINERAMA_GET_SCREEN_SIZE 3 - -/** - * @brief xcb_xinerama_get_screen_size_request_t - **/ -typedef struct xcb_xinerama_get_screen_size_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint32_t screen; /**< */ -} xcb_xinerama_get_screen_size_request_t; - -/** - * @brief xcb_xinerama_get_screen_size_reply_t - **/ -typedef struct xcb_xinerama_get_screen_size_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t width; /**< */ - uint32_t height; /**< */ - xcb_window_t window; /**< */ - uint32_t screen; /**< */ -} xcb_xinerama_get_screen_size_reply_t; - -/** - * @brief xcb_xinerama_is_active_cookie_t - **/ -typedef struct xcb_xinerama_is_active_cookie_t { - unsigned int sequence; /**< */ -} xcb_xinerama_is_active_cookie_t; - -/** Opcode for xcb_xinerama_is_active. */ -#define XCB_XINERAMA_IS_ACTIVE 4 - -/** - * @brief xcb_xinerama_is_active_request_t - **/ -typedef struct xcb_xinerama_is_active_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_xinerama_is_active_request_t; - -/** - * @brief xcb_xinerama_is_active_reply_t - **/ -typedef struct xcb_xinerama_is_active_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t state; /**< */ -} xcb_xinerama_is_active_reply_t; - -/** - * @brief xcb_xinerama_query_screens_cookie_t - **/ -typedef struct xcb_xinerama_query_screens_cookie_t { - unsigned int sequence; /**< */ -} xcb_xinerama_query_screens_cookie_t; - -/** Opcode for xcb_xinerama_query_screens. */ -#define XCB_XINERAMA_QUERY_SCREENS 5 - -/** - * @brief xcb_xinerama_query_screens_request_t - **/ -typedef struct xcb_xinerama_query_screens_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_xinerama_query_screens_request_t; - -/** - * @brief xcb_xinerama_query_screens_reply_t - **/ -typedef struct xcb_xinerama_query_screens_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t number; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_xinerama_query_screens_reply_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xinerama_screen_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xinerama_screen_info_t) - */ -void -xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xinerama_screen_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xinerama_query_version_cookie_t -xcb_xinerama_query_version (xcb_connection_t *c /**< */, - uint8_t major /**< */, - uint8_t minor /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xinerama_query_version_cookie_t -xcb_xinerama_query_version_unchecked (xcb_connection_t *c /**< */, - uint8_t major /**< */, - uint8_t minor /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xinerama_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xinerama_query_version_reply_t * -xcb_xinerama_query_version_reply (xcb_connection_t *c /**< */, - xcb_xinerama_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xinerama_get_state_cookie_t -xcb_xinerama_get_state (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xinerama_get_state_cookie_t -xcb_xinerama_get_state_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xinerama_get_state_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xinerama_get_state_reply_t * -xcb_xinerama_get_state_reply (xcb_connection_t *c /**< */, - xcb_xinerama_get_state_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xinerama_get_screen_count_cookie_t -xcb_xinerama_get_screen_count (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xinerama_get_screen_count_cookie_t -xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xinerama_get_screen_count_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xinerama_get_screen_count_reply_t * -xcb_xinerama_get_screen_count_reply (xcb_connection_t *c /**< */, - xcb_xinerama_get_screen_count_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xinerama_get_screen_size_cookie_t -xcb_xinerama_get_screen_size (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t screen /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xinerama_get_screen_size_cookie_t -xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t screen /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xinerama_get_screen_size_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xinerama_get_screen_size_reply_t * -xcb_xinerama_get_screen_size_reply (xcb_connection_t *c /**< */, - xcb_xinerama_get_screen_size_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xinerama_is_active_cookie_t -xcb_xinerama_is_active (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xinerama_is_active_cookie_t -xcb_xinerama_is_active_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xinerama_is_active_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xinerama_is_active_reply_t * -xcb_xinerama_is_active_reply (xcb_connection_t *c /**< */, - xcb_xinerama_is_active_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xinerama_query_screens_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xinerama_query_screens_cookie_t -xcb_xinerama_query_screens (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xinerama_query_screens_cookie_t -xcb_xinerama_query_screens_unchecked (xcb_connection_t *c /**< */); - -xcb_xinerama_screen_info_t * -xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R /**< */); - -int -xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R /**< */); - -xcb_xinerama_screen_info_iterator_t -xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xinerama_query_screens_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xinerama_query_screens_reply_t * -xcb_xinerama_query_screens_reply (xcb_connection_t *c /**< */, - xcb_xinerama_query_screens_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xinput.c b/external/mit/xorg/lib/libxcb/files/xinput.c deleted file mode 100644 index 620ac6a08..000000000 --- a/external/mit/xorg/lib/libxcb/files/xinput.c +++ /dev/null @@ -1,10140 +0,0 @@ -/* - * This file generated automatically from xinput.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xinput.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xfixes.h" - -xcb_extension_t xcb_input_id = { "XInputExtension", 0 }; - -void -xcb_input_event_class_next (xcb_input_event_class_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_event_class_t); -} - -xcb_generic_iterator_t -xcb_input_event_class_end (xcb_input_event_class_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_key_code_next (xcb_input_key_code_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_key_code_t); -} - -xcb_generic_iterator_t -xcb_input_key_code_end (xcb_input_key_code_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_device_id_next (xcb_input_device_id_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_device_id_t); -} - -xcb_generic_iterator_t -xcb_input_device_id_end (xcb_input_device_id_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_fp1616_next (xcb_input_fp1616_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_fp1616_t); -} - -xcb_generic_iterator_t -xcb_input_fp1616_end (xcb_input_fp1616_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_fp3232_next (xcb_input_fp3232_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_fp3232_t); -} - -xcb_generic_iterator_t -xcb_input_fp3232_end (xcb_input_fp3232_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_get_extension_version_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_get_extension_version_request_t *_aux = (xcb_input_get_extension_version_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_get_extension_version_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_get_extension_version_cookie_t -xcb_input_get_extension_version (xcb_connection_t *c /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_EXTENSION_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_get_extension_version_cookie_t xcb_ret; - xcb_input_get_extension_version_request_t xcb_out; - - xcb_out.name_len = name_len; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_extension_version_cookie_t -xcb_input_get_extension_version_unchecked (xcb_connection_t *c /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_EXTENSION_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_get_extension_version_cookie_t xcb_ret; - xcb_input_get_extension_version_request_t xcb_out; - - xcb_out.name_len = name_len; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_extension_version_reply_t * -xcb_input_get_extension_version_reply (xcb_connection_t *c /**< */, - xcb_input_get_extension_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_get_extension_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -void -xcb_input_device_info_next (xcb_input_device_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_device_info_t); -} - -xcb_generic_iterator_t -xcb_input_device_info_end (xcb_input_device_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_key_info_next (xcb_input_key_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_key_info_t); -} - -xcb_generic_iterator_t -xcb_input_key_info_end (xcb_input_key_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_button_info_next (xcb_input_button_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_button_info_t); -} - -xcb_generic_iterator_t -xcb_input_button_info_end (xcb_input_button_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_axis_info_next (xcb_input_axis_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_axis_info_t); -} - -xcb_generic_iterator_t -xcb_input_axis_info_end (xcb_input_axis_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_valuator_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_valuator_info_t *_aux = (xcb_input_valuator_info_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_valuator_info_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* axes */ - xcb_block_len += _aux->axes_len * sizeof(xcb_input_axis_info_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_axis_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_axis_info_t * -xcb_input_valuator_info_axes (const xcb_input_valuator_info_t *R /**< */) -{ - return (xcb_input_axis_info_t *) (R + 1); -} - -int -xcb_input_valuator_info_axes_length (const xcb_input_valuator_info_t *R /**< */) -{ - return R->axes_len; -} - -xcb_input_axis_info_iterator_t -xcb_input_valuator_info_axes_iterator (const xcb_input_valuator_info_t *R /**< */) -{ - xcb_input_axis_info_iterator_t i; - i.data = (xcb_input_axis_info_t *) (R + 1); - i.rem = R->axes_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_valuator_info_next (xcb_input_valuator_info_iterator_t *i /**< */) -{ - xcb_input_valuator_info_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_valuator_info_t *)(((char *)R) + xcb_input_valuator_info_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_valuator_info_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_valuator_info_end (xcb_input_valuator_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_valuator_info_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_input_input_info_next (xcb_input_input_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_input_info_t); -} - -xcb_generic_iterator_t -xcb_input_input_info_end (xcb_input_input_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_device_name_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_device_name_t *_aux = (xcb_input_device_name_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_device_name_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* string */ - xcb_block_len += _aux->len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_input_device_name_string (const xcb_input_device_name_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_input_device_name_string_length (const xcb_input_device_name_t *R /**< */) -{ - return R->len; -} - -xcb_generic_iterator_t -xcb_input_device_name_string_end (const xcb_input_device_name_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_device_name_next (xcb_input_device_name_iterator_t *i /**< */) -{ - xcb_input_device_name_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_device_name_t *)(((char *)R) + xcb_input_device_name_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_device_name_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_device_name_end (xcb_input_device_name_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_device_name_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_list_input_devices_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_list_input_devices_reply_t *_aux = (xcb_input_list_input_devices_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_list_input_devices_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* devices */ - xcb_block_len += _aux->devices_len * sizeof(xcb_input_device_info_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_device_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_list_input_devices_cookie_t -xcb_input_list_input_devices (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_LIST_INPUT_DEVICES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_list_input_devices_cookie_t xcb_ret; - xcb_input_list_input_devices_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_list_input_devices_cookie_t -xcb_input_list_input_devices_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_LIST_INPUT_DEVICES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_list_input_devices_cookie_t xcb_ret; - xcb_input_list_input_devices_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_device_info_t * -xcb_input_list_input_devices_devices (const xcb_input_list_input_devices_reply_t *R /**< */) -{ - return (xcb_input_device_info_t *) (R + 1); -} - -int -xcb_input_list_input_devices_devices_length (const xcb_input_list_input_devices_reply_t *R /**< */) -{ - return R->devices_len; -} - -xcb_input_device_info_iterator_t -xcb_input_list_input_devices_devices_iterator (const xcb_input_list_input_devices_reply_t *R /**< */) -{ - xcb_input_device_info_iterator_t i; - i.data = (xcb_input_device_info_t *) (R + 1); - i.rem = R->devices_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_list_input_devices_reply_t * -xcb_input_list_input_devices_reply (xcb_connection_t *c /**< */, - xcb_input_list_input_devices_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_list_input_devices_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -void -xcb_input_input_class_info_next (xcb_input_input_class_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_input_class_info_t); -} - -xcb_generic_iterator_t -xcb_input_input_class_info_end (xcb_input_input_class_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_open_device_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_open_device_reply_t *_aux = (xcb_input_open_device_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_open_device_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* class_info */ - xcb_block_len += _aux->num_classes * sizeof(xcb_input_input_class_info_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_input_class_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_open_device_cookie_t -xcb_input_open_device (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_OPEN_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_open_device_cookie_t xcb_ret; - xcb_input_open_device_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_open_device_cookie_t -xcb_input_open_device_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_OPEN_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_open_device_cookie_t xcb_ret; - xcb_input_open_device_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_input_class_info_t * -xcb_input_open_device_class_info (const xcb_input_open_device_reply_t *R /**< */) -{ - return (xcb_input_input_class_info_t *) (R + 1); -} - -int -xcb_input_open_device_class_info_length (const xcb_input_open_device_reply_t *R /**< */) -{ - return R->num_classes; -} - -xcb_input_input_class_info_iterator_t -xcb_input_open_device_class_info_iterator (const xcb_input_open_device_reply_t *R /**< */) -{ - xcb_input_input_class_info_iterator_t i; - i.data = (xcb_input_input_class_info_t *) (R + 1); - i.rem = R->num_classes; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_open_device_reply_t * -xcb_input_open_device_reply (xcb_connection_t *c /**< */, - xcb_input_open_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_open_device_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_input_close_device_checked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CLOSE_DEVICE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_close_device_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_close_device (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CLOSE_DEVICE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_close_device_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_set_device_mode_cookie_t -xcb_input_set_device_mode (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SET_DEVICE_MODE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_set_device_mode_cookie_t xcb_ret; - xcb_input_set_device_mode_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.mode = mode; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_set_device_mode_cookie_t -xcb_input_set_device_mode_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SET_DEVICE_MODE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_set_device_mode_cookie_t xcb_ret; - xcb_input_set_device_mode_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.mode = mode; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_set_device_mode_reply_t * -xcb_input_set_device_mode_reply (xcb_connection_t *c /**< */, - xcb_input_set_device_mode_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_set_device_mode_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_select_extension_event_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_select_extension_event_request_t *_aux = (xcb_input_select_extension_event_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_select_extension_event_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* classes */ - xcb_block_len += _aux->num_classes * sizeof(xcb_input_event_class_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_event_class_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_input_select_extension_event_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t num_classes /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SELECT_EXTENSION_EVENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_select_extension_event_request_t xcb_out; - - xcb_out.window = window; - xcb_out.num_classes = num_classes; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[4].iov_base = (char *) classes; - xcb_parts[4].iov_len = num_classes * sizeof(xcb_input_event_class_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_select_extension_event (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t num_classes /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SELECT_EXTENSION_EVENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_select_extension_event_request_t xcb_out; - - xcb_out.window = window; - xcb_out.num_classes = num_classes; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[4].iov_base = (char *) classes; - xcb_parts[4].iov_len = num_classes * sizeof(xcb_input_event_class_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_get_selected_extension_events_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_get_selected_extension_events_reply_t *_aux = (xcb_input_get_selected_extension_events_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_get_selected_extension_events_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* this_classes */ - xcb_block_len += _aux->num_this_classes * sizeof(xcb_input_event_class_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_event_class_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* all_classes */ - xcb_block_len += _aux->num_all_classes * sizeof(xcb_input_event_class_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_event_class_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_get_selected_extension_events_cookie_t -xcb_input_get_selected_extension_events (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_SELECTED_EXTENSION_EVENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_selected_extension_events_cookie_t xcb_ret; - xcb_input_get_selected_extension_events_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_selected_extension_events_cookie_t -xcb_input_get_selected_extension_events_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_SELECTED_EXTENSION_EVENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_selected_extension_events_cookie_t xcb_ret; - xcb_input_get_selected_extension_events_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_event_class_t * -xcb_input_get_selected_extension_events_this_classes (const xcb_input_get_selected_extension_events_reply_t *R /**< */) -{ - return (xcb_input_event_class_t *) (R + 1); -} - -int -xcb_input_get_selected_extension_events_this_classes_length (const xcb_input_get_selected_extension_events_reply_t *R /**< */) -{ - return R->num_this_classes; -} - -xcb_generic_iterator_t -xcb_input_get_selected_extension_events_this_classes_end (const xcb_input_get_selected_extension_events_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_input_event_class_t *) (R + 1)) + (R->num_this_classes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_event_class_t * -xcb_input_get_selected_extension_events_all_classes (const xcb_input_get_selected_extension_events_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_input_get_selected_extension_events_this_classes_end(R); - return (xcb_input_event_class_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_input_event_class_t, prev.index) + 0); -} - -int -xcb_input_get_selected_extension_events_all_classes_length (const xcb_input_get_selected_extension_events_reply_t *R /**< */) -{ - return R->num_all_classes; -} - -xcb_generic_iterator_t -xcb_input_get_selected_extension_events_all_classes_end (const xcb_input_get_selected_extension_events_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_input_get_selected_extension_events_this_classes_end(R); - i.data = ((xcb_input_event_class_t *) child.data) + (R->num_all_classes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_get_selected_extension_events_reply_t * -xcb_input_get_selected_extension_events_reply (xcb_connection_t *c /**< */, - xcb_input_get_selected_extension_events_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_get_selected_extension_events_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_change_device_dont_propagate_list_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_change_device_dont_propagate_list_request_t *_aux = (xcb_input_change_device_dont_propagate_list_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_change_device_dont_propagate_list_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* classes */ - xcb_block_len += _aux->num_classes * sizeof(xcb_input_event_class_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_event_class_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_input_change_device_dont_propagate_list_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t num_classes /**< */, - uint8_t mode /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_DEVICE_DONT_PROPAGATE_LIST, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_change_device_dont_propagate_list_request_t xcb_out; - - xcb_out.window = window; - xcb_out.num_classes = num_classes; - xcb_out.mode = mode; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[4].iov_base = (char *) classes; - xcb_parts[4].iov_len = num_classes * sizeof(xcb_input_event_class_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_change_device_dont_propagate_list (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t num_classes /**< */, - uint8_t mode /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_DEVICE_DONT_PROPAGATE_LIST, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_change_device_dont_propagate_list_request_t xcb_out; - - xcb_out.window = window; - xcb_out.num_classes = num_classes; - xcb_out.mode = mode; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[4].iov_base = (char *) classes; - xcb_parts[4].iov_len = num_classes * sizeof(xcb_input_event_class_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_get_device_dont_propagate_list_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_get_device_dont_propagate_list_reply_t *_aux = (xcb_input_get_device_dont_propagate_list_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_get_device_dont_propagate_list_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* classes */ - xcb_block_len += _aux->num_classes * sizeof(xcb_input_event_class_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_event_class_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_get_device_dont_propagate_list_cookie_t -xcb_input_get_device_dont_propagate_list (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_DONT_PROPAGATE_LIST, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_dont_propagate_list_cookie_t xcb_ret; - xcb_input_get_device_dont_propagate_list_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_device_dont_propagate_list_cookie_t -xcb_input_get_device_dont_propagate_list_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_DONT_PROPAGATE_LIST, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_dont_propagate_list_cookie_t xcb_ret; - xcb_input_get_device_dont_propagate_list_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_event_class_t * -xcb_input_get_device_dont_propagate_list_classes (const xcb_input_get_device_dont_propagate_list_reply_t *R /**< */) -{ - return (xcb_input_event_class_t *) (R + 1); -} - -int -xcb_input_get_device_dont_propagate_list_classes_length (const xcb_input_get_device_dont_propagate_list_reply_t *R /**< */) -{ - return R->num_classes; -} - -xcb_generic_iterator_t -xcb_input_get_device_dont_propagate_list_classes_end (const xcb_input_get_device_dont_propagate_list_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_input_event_class_t *) (R + 1)) + (R->num_classes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_get_device_dont_propagate_list_reply_t * -xcb_input_get_device_dont_propagate_list_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_dont_propagate_list_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_get_device_dont_propagate_list_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -void -xcb_input_device_time_coord_next (xcb_input_device_time_coord_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_device_time_coord_t); -} - -xcb_generic_iterator_t -xcb_input_device_time_coord_end (xcb_input_device_time_coord_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_input_get_device_motion_events_cookie_t -xcb_input_get_device_motion_events (xcb_connection_t *c /**< */, - xcb_timestamp_t start /**< */, - xcb_timestamp_t stop /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_MOTION_EVENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_motion_events_cookie_t xcb_ret; - xcb_input_get_device_motion_events_request_t xcb_out; - - xcb_out.start = start; - xcb_out.stop = stop; - xcb_out.device_id = device_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_device_motion_events_cookie_t -xcb_input_get_device_motion_events_unchecked (xcb_connection_t *c /**< */, - xcb_timestamp_t start /**< */, - xcb_timestamp_t stop /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_MOTION_EVENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_motion_events_cookie_t xcb_ret; - xcb_input_get_device_motion_events_request_t xcb_out; - - xcb_out.start = start; - xcb_out.stop = stop; - xcb_out.device_id = device_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_device_motion_events_reply_t * -xcb_input_get_device_motion_events_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_motion_events_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_get_device_motion_events_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_input_change_keyboard_device_cookie_t -xcb_input_change_keyboard_device (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_KEYBOARD_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_change_keyboard_device_cookie_t xcb_ret; - xcb_input_change_keyboard_device_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_change_keyboard_device_cookie_t -xcb_input_change_keyboard_device_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_KEYBOARD_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_change_keyboard_device_cookie_t xcb_ret; - xcb_input_change_keyboard_device_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_change_keyboard_device_reply_t * -xcb_input_change_keyboard_device_reply (xcb_connection_t *c /**< */, - xcb_input_change_keyboard_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_change_keyboard_device_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_input_change_pointer_device_cookie_t -xcb_input_change_pointer_device (xcb_connection_t *c /**< */, - uint8_t x_axis /**< */, - uint8_t y_axis /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_POINTER_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_change_pointer_device_cookie_t xcb_ret; - xcb_input_change_pointer_device_request_t xcb_out; - - xcb_out.x_axis = x_axis; - xcb_out.y_axis = y_axis; - xcb_out.device_id = device_id; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_change_pointer_device_cookie_t -xcb_input_change_pointer_device_unchecked (xcb_connection_t *c /**< */, - uint8_t x_axis /**< */, - uint8_t y_axis /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_POINTER_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_change_pointer_device_cookie_t xcb_ret; - xcb_input_change_pointer_device_request_t xcb_out; - - xcb_out.x_axis = x_axis; - xcb_out.y_axis = y_axis; - xcb_out.device_id = device_id; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_change_pointer_device_reply_t * -xcb_input_change_pointer_device_reply (xcb_connection_t *c /**< */, - xcb_input_change_pointer_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_change_pointer_device_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_grab_device_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_grab_device_request_t *_aux = (xcb_input_grab_device_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_grab_device_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* classes */ - xcb_block_len += _aux->num_classes * sizeof(xcb_input_event_class_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_event_class_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_grab_device_cookie_t -xcb_input_grab_device (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - xcb_timestamp_t time /**< */, - uint16_t num_classes /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t owner_events /**< */, - uint8_t device_id /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GRAB_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_grab_device_cookie_t xcb_ret; - xcb_input_grab_device_request_t xcb_out; - - xcb_out.grab_window = grab_window; - xcb_out.time = time; - xcb_out.num_classes = num_classes; - xcb_out.this_device_mode = this_device_mode; - xcb_out.other_device_mode = other_device_mode; - xcb_out.owner_events = owner_events; - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[4].iov_base = (char *) classes; - xcb_parts[4].iov_len = num_classes * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_grab_device_cookie_t -xcb_input_grab_device_unchecked (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - xcb_timestamp_t time /**< */, - uint16_t num_classes /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t owner_events /**< */, - uint8_t device_id /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GRAB_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_grab_device_cookie_t xcb_ret; - xcb_input_grab_device_request_t xcb_out; - - xcb_out.grab_window = grab_window; - xcb_out.time = time; - xcb_out.num_classes = num_classes; - xcb_out.this_device_mode = this_device_mode; - xcb_out.other_device_mode = other_device_mode; - xcb_out.owner_events = owner_events; - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[4].iov_base = (char *) classes; - xcb_parts[4].iov_len = num_classes * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_grab_device_reply_t * -xcb_input_grab_device_reply (xcb_connection_t *c /**< */, - xcb_input_grab_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_grab_device_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_input_ungrab_device_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_UNGRAB_DEVICE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_ungrab_device_request_t xcb_out; - - xcb_out.time = time; - xcb_out.device_id = device_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_ungrab_device (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_UNGRAB_DEVICE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_ungrab_device_request_t xcb_out; - - xcb_out.time = time; - xcb_out.device_id = device_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_grab_device_key_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_grab_device_key_request_t *_aux = (xcb_input_grab_device_key_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_grab_device_key_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* classes */ - xcb_block_len += _aux->num_classes * sizeof(xcb_input_event_class_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_event_class_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_input_grab_device_key_checked (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint16_t num_classes /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t grabbed_device /**< */, - uint8_t key /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t owner_events /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GRAB_DEVICE_KEY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_grab_device_key_request_t xcb_out; - - xcb_out.grab_window = grab_window; - xcb_out.num_classes = num_classes; - xcb_out.modifiers = modifiers; - xcb_out.modifier_device = modifier_device; - xcb_out.grabbed_device = grabbed_device; - xcb_out.key = key; - xcb_out.this_device_mode = this_device_mode; - xcb_out.other_device_mode = other_device_mode; - xcb_out.owner_events = owner_events; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[4].iov_base = (char *) classes; - xcb_parts[4].iov_len = num_classes * sizeof(xcb_input_event_class_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_grab_device_key (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint16_t num_classes /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t grabbed_device /**< */, - uint8_t key /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t owner_events /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GRAB_DEVICE_KEY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_grab_device_key_request_t xcb_out; - - xcb_out.grab_window = grab_window; - xcb_out.num_classes = num_classes; - xcb_out.modifiers = modifiers; - xcb_out.modifier_device = modifier_device; - xcb_out.grabbed_device = grabbed_device; - xcb_out.key = key; - xcb_out.this_device_mode = this_device_mode; - xcb_out.other_device_mode = other_device_mode; - xcb_out.owner_events = owner_events; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[4].iov_base = (char *) classes; - xcb_parts[4].iov_len = num_classes * sizeof(xcb_input_event_class_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_ungrab_device_key_checked (xcb_connection_t *c /**< */, - xcb_window_t grabWindow /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t key /**< */, - uint8_t grabbed_device /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_UNGRAB_DEVICE_KEY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_ungrab_device_key_request_t xcb_out; - - xcb_out.grabWindow = grabWindow; - xcb_out.modifiers = modifiers; - xcb_out.modifier_device = modifier_device; - xcb_out.key = key; - xcb_out.grabbed_device = grabbed_device; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_ungrab_device_key (xcb_connection_t *c /**< */, - xcb_window_t grabWindow /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t key /**< */, - uint8_t grabbed_device /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_UNGRAB_DEVICE_KEY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_ungrab_device_key_request_t xcb_out; - - xcb_out.grabWindow = grabWindow; - xcb_out.modifiers = modifiers; - xcb_out.modifier_device = modifier_device; - xcb_out.key = key; - xcb_out.grabbed_device = grabbed_device; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_grab_device_button_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_grab_device_button_request_t *_aux = (xcb_input_grab_device_button_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_grab_device_button_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* classes */ - xcb_block_len += _aux->num_classes * sizeof(xcb_input_event_class_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_event_class_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_input_grab_device_button_checked (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint8_t grabbed_device /**< */, - uint8_t modifier_device /**< */, - uint16_t num_classes /**< */, - uint16_t modifiers /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t button /**< */, - uint8_t owner_events /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GRAB_DEVICE_BUTTON, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_grab_device_button_request_t xcb_out; - - xcb_out.grab_window = grab_window; - xcb_out.grabbed_device = grabbed_device; - xcb_out.modifier_device = modifier_device; - xcb_out.num_classes = num_classes; - xcb_out.modifiers = modifiers; - xcb_out.this_device_mode = this_device_mode; - xcb_out.other_device_mode = other_device_mode; - xcb_out.button = button; - xcb_out.owner_events = owner_events; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[4].iov_base = (char *) classes; - xcb_parts[4].iov_len = num_classes * sizeof(xcb_input_event_class_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_grab_device_button (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint8_t grabbed_device /**< */, - uint8_t modifier_device /**< */, - uint16_t num_classes /**< */, - uint16_t modifiers /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t button /**< */, - uint8_t owner_events /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GRAB_DEVICE_BUTTON, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_grab_device_button_request_t xcb_out; - - xcb_out.grab_window = grab_window; - xcb_out.grabbed_device = grabbed_device; - xcb_out.modifier_device = modifier_device; - xcb_out.num_classes = num_classes; - xcb_out.modifiers = modifiers; - xcb_out.this_device_mode = this_device_mode; - xcb_out.other_device_mode = other_device_mode; - xcb_out.button = button; - xcb_out.owner_events = owner_events; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[4].iov_base = (char *) classes; - xcb_parts[4].iov_len = num_classes * sizeof(xcb_input_event_class_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_ungrab_device_button_checked (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t button /**< */, - uint8_t grabbed_device /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_UNGRAB_DEVICE_BUTTON, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_ungrab_device_button_request_t xcb_out; - - xcb_out.grab_window = grab_window; - xcb_out.modifiers = modifiers; - xcb_out.modifier_device = modifier_device; - xcb_out.button = button; - xcb_out.grabbed_device = grabbed_device; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_ungrab_device_button (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t button /**< */, - uint8_t grabbed_device /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_UNGRAB_DEVICE_BUTTON, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_ungrab_device_button_request_t xcb_out; - - xcb_out.grab_window = grab_window; - xcb_out.modifiers = modifiers; - xcb_out.modifier_device = modifier_device; - xcb_out.button = button; - xcb_out.grabbed_device = grabbed_device; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_allow_device_events_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - uint8_t mode /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_ALLOW_DEVICE_EVENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_allow_device_events_request_t xcb_out; - - xcb_out.time = time; - xcb_out.mode = mode; - xcb_out.device_id = device_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_allow_device_events (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - uint8_t mode /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_ALLOW_DEVICE_EVENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_allow_device_events_request_t xcb_out; - - xcb_out.time = time; - xcb_out.mode = mode; - xcb_out.device_id = device_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_device_focus_cookie_t -xcb_input_get_device_focus (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_FOCUS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_focus_cookie_t xcb_ret; - xcb_input_get_device_focus_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_device_focus_cookie_t -xcb_input_get_device_focus_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_FOCUS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_focus_cookie_t xcb_ret; - xcb_input_get_device_focus_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_device_focus_reply_t * -xcb_input_get_device_focus_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_focus_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_get_device_focus_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_input_set_device_focus_checked (xcb_connection_t *c /**< */, - xcb_window_t focus /**< */, - xcb_timestamp_t time /**< */, - uint8_t revert_to /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SET_DEVICE_FOCUS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_set_device_focus_request_t xcb_out; - - xcb_out.focus = focus; - xcb_out.time = time; - xcb_out.revert_to = revert_to; - xcb_out.device_id = device_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_set_device_focus (xcb_connection_t *c /**< */, - xcb_window_t focus /**< */, - xcb_timestamp_t time /**< */, - uint8_t revert_to /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SET_DEVICE_FOCUS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_set_device_focus_request_t xcb_out; - - xcb_out.focus = focus; - xcb_out.time = time; - xcb_out.revert_to = revert_to; - xcb_out.device_id = device_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_input_kbd_feedback_state_next (xcb_input_kbd_feedback_state_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_kbd_feedback_state_t); -} - -xcb_generic_iterator_t -xcb_input_kbd_feedback_state_end (xcb_input_kbd_feedback_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_ptr_feedback_state_next (xcb_input_ptr_feedback_state_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_ptr_feedback_state_t); -} - -xcb_generic_iterator_t -xcb_input_ptr_feedback_state_end (xcb_input_ptr_feedback_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_integer_feedback_state_next (xcb_input_integer_feedback_state_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_integer_feedback_state_t); -} - -xcb_generic_iterator_t -xcb_input_integer_feedback_state_end (xcb_input_integer_feedback_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_string_feedback_state_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_string_feedback_state_t *_aux = (xcb_input_string_feedback_state_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_string_feedback_state_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keysyms */ - xcb_block_len += _aux->num_keysyms * sizeof(xcb_keysym_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_keysym_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_keysym_t * -xcb_input_string_feedback_state_keysyms (const xcb_input_string_feedback_state_t *R /**< */) -{ - return (xcb_keysym_t *) (R + 1); -} - -int -xcb_input_string_feedback_state_keysyms_length (const xcb_input_string_feedback_state_t *R /**< */) -{ - return R->num_keysyms; -} - -xcb_generic_iterator_t -xcb_input_string_feedback_state_keysyms_end (const xcb_input_string_feedback_state_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_keysym_t *) (R + 1)) + (R->num_keysyms); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_string_feedback_state_next (xcb_input_string_feedback_state_iterator_t *i /**< */) -{ - xcb_input_string_feedback_state_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_string_feedback_state_t *)(((char *)R) + xcb_input_string_feedback_state_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_string_feedback_state_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_string_feedback_state_end (xcb_input_string_feedback_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_string_feedback_state_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_input_bell_feedback_state_next (xcb_input_bell_feedback_state_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_bell_feedback_state_t); -} - -xcb_generic_iterator_t -xcb_input_bell_feedback_state_end (xcb_input_bell_feedback_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_led_feedback_state_next (xcb_input_led_feedback_state_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_led_feedback_state_t); -} - -xcb_generic_iterator_t -xcb_input_led_feedback_state_end (xcb_input_led_feedback_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_feedback_state_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_feedback_state_t *_aux = (xcb_input_feedback_state_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_feedback_state_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* uninterpreted_data */ - xcb_block_len += (_aux->len - 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint8_t * -xcb_input_feedback_state_uninterpreted_data (const xcb_input_feedback_state_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_input_feedback_state_uninterpreted_data_length (const xcb_input_feedback_state_t *R /**< */) -{ - return (R->len - 4); -} - -xcb_generic_iterator_t -xcb_input_feedback_state_uninterpreted_data_end (const xcb_input_feedback_state_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->len - 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_feedback_state_next (xcb_input_feedback_state_iterator_t *i /**< */) -{ - xcb_input_feedback_state_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_feedback_state_t *)(((char *)R) + xcb_input_feedback_state_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_feedback_state_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_feedback_state_end (xcb_input_feedback_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_feedback_state_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_get_feedback_control_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_get_feedback_control_reply_t *_aux = (xcb_input_get_feedback_control_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_input_get_feedback_control_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* feedbacks */ - for(i=0; i<_aux->num_feedbacks; i++) { - xcb_tmp_len = xcb_input_feedback_state_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_input_feedback_state_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_get_feedback_control_cookie_t -xcb_input_get_feedback_control (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_FEEDBACK_CONTROL, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_feedback_control_cookie_t xcb_ret; - xcb_input_get_feedback_control_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_feedback_control_cookie_t -xcb_input_get_feedback_control_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_FEEDBACK_CONTROL, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_feedback_control_cookie_t xcb_ret; - xcb_input_get_feedback_control_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_get_feedback_control_feedbacks_length (const xcb_input_get_feedback_control_reply_t *R /**< */) -{ - return R->num_feedbacks; -} - -xcb_input_feedback_state_iterator_t -xcb_input_get_feedback_control_feedbacks_iterator (const xcb_input_get_feedback_control_reply_t *R /**< */) -{ - xcb_input_feedback_state_iterator_t i; - i.data = (xcb_input_feedback_state_t *) (R + 1); - i.rem = R->num_feedbacks; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_get_feedback_control_reply_t * -xcb_input_get_feedback_control_reply (xcb_connection_t *c /**< */, - xcb_input_get_feedback_control_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_get_feedback_control_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -void -xcb_input_kbd_feedback_ctl_next (xcb_input_kbd_feedback_ctl_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_kbd_feedback_ctl_t); -} - -xcb_generic_iterator_t -xcb_input_kbd_feedback_ctl_end (xcb_input_kbd_feedback_ctl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_ptr_feedback_ctl_next (xcb_input_ptr_feedback_ctl_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_ptr_feedback_ctl_t); -} - -xcb_generic_iterator_t -xcb_input_ptr_feedback_ctl_end (xcb_input_ptr_feedback_ctl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_integer_feedback_ctl_next (xcb_input_integer_feedback_ctl_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_integer_feedback_ctl_t); -} - -xcb_generic_iterator_t -xcb_input_integer_feedback_ctl_end (xcb_input_integer_feedback_ctl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_string_feedback_ctl_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_string_feedback_ctl_t *_aux = (xcb_input_string_feedback_ctl_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_string_feedback_ctl_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keysyms */ - xcb_block_len += _aux->num_keysyms * sizeof(xcb_keysym_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_keysym_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_keysym_t * -xcb_input_string_feedback_ctl_keysyms (const xcb_input_string_feedback_ctl_t *R /**< */) -{ - return (xcb_keysym_t *) (R + 1); -} - -int -xcb_input_string_feedback_ctl_keysyms_length (const xcb_input_string_feedback_ctl_t *R /**< */) -{ - return R->num_keysyms; -} - -xcb_generic_iterator_t -xcb_input_string_feedback_ctl_keysyms_end (const xcb_input_string_feedback_ctl_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_keysym_t *) (R + 1)) + (R->num_keysyms); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_string_feedback_ctl_next (xcb_input_string_feedback_ctl_iterator_t *i /**< */) -{ - xcb_input_string_feedback_ctl_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_string_feedback_ctl_t *)(((char *)R) + xcb_input_string_feedback_ctl_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_string_feedback_ctl_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_string_feedback_ctl_end (xcb_input_string_feedback_ctl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_string_feedback_ctl_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_input_bell_feedback_ctl_next (xcb_input_bell_feedback_ctl_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_bell_feedback_ctl_t); -} - -xcb_generic_iterator_t -xcb_input_bell_feedback_ctl_end (xcb_input_bell_feedback_ctl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_led_feedback_ctl_next (xcb_input_led_feedback_ctl_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_led_feedback_ctl_t); -} - -xcb_generic_iterator_t -xcb_input_led_feedback_ctl_end (xcb_input_led_feedback_ctl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_feedback_ctl_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_feedback_ctl_t *_aux = (xcb_input_feedback_ctl_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_feedback_ctl_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* uninterpreted_data */ - xcb_block_len += (_aux->len - 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint8_t * -xcb_input_feedback_ctl_uninterpreted_data (const xcb_input_feedback_ctl_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_input_feedback_ctl_uninterpreted_data_length (const xcb_input_feedback_ctl_t *R /**< */) -{ - return (R->len - 4); -} - -xcb_generic_iterator_t -xcb_input_feedback_ctl_uninterpreted_data_end (const xcb_input_feedback_ctl_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->len - 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_feedback_ctl_next (xcb_input_feedback_ctl_iterator_t *i /**< */) -{ - xcb_input_feedback_ctl_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_feedback_ctl_t *)(((char *)R) + xcb_input_feedback_ctl_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_feedback_ctl_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_feedback_ctl_end (xcb_input_feedback_ctl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_feedback_ctl_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_change_feedback_control_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_change_feedback_control_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* feedback */ - xcb_block_len += xcb_input_feedback_ctl_sizeof(xcb_tmp); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_feedback_ctl_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_input_change_feedback_control_checked (xcb_connection_t *c /**< */, - uint32_t mask /**< */, - uint8_t device_id /**< */, - uint8_t feedback_id /**< */, - xcb_input_feedback_ctl_t *feedback /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_FEEDBACK_CONTROL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_change_feedback_control_request_t xcb_out; - - xcb_out.mask = mask; - xcb_out.device_id = device_id; - xcb_out.feedback_id = feedback_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_feedback_ctl_t feedback */ - xcb_parts[4].iov_base = (char *) feedback; - xcb_parts[4].iov_len = - xcb_input_feedback_ctl_sizeof (feedback); - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_change_feedback_control (xcb_connection_t *c /**< */, - uint32_t mask /**< */, - uint8_t device_id /**< */, - uint8_t feedback_id /**< */, - xcb_input_feedback_ctl_t *feedback /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_FEEDBACK_CONTROL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_change_feedback_control_request_t xcb_out; - - xcb_out.mask = mask; - xcb_out.device_id = device_id; - xcb_out.feedback_id = feedback_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_feedback_ctl_t feedback */ - xcb_parts[4].iov_base = (char *) feedback; - xcb_parts[4].iov_len = - xcb_input_feedback_ctl_sizeof (feedback); - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_get_device_key_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_get_device_key_mapping_reply_t *_aux = (xcb_input_get_device_key_mapping_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_get_device_key_mapping_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keysyms */ - xcb_block_len += _aux->length * sizeof(xcb_keysym_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_keysym_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_get_device_key_mapping_cookie_t -xcb_input_get_device_key_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - xcb_input_key_code_t first_keycode /**< */, - uint8_t count /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_KEY_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_key_mapping_cookie_t xcb_ret; - xcb_input_get_device_key_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.first_keycode = first_keycode; - xcb_out.count = count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_device_key_mapping_cookie_t -xcb_input_get_device_key_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - xcb_input_key_code_t first_keycode /**< */, - uint8_t count /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_KEY_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_key_mapping_cookie_t xcb_ret; - xcb_input_get_device_key_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.first_keycode = first_keycode; - xcb_out.count = count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_keysym_t * -xcb_input_get_device_key_mapping_keysyms (const xcb_input_get_device_key_mapping_reply_t *R /**< */) -{ - return (xcb_keysym_t *) (R + 1); -} - -int -xcb_input_get_device_key_mapping_keysyms_length (const xcb_input_get_device_key_mapping_reply_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_input_get_device_key_mapping_keysyms_end (const xcb_input_get_device_key_mapping_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_keysym_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_get_device_key_mapping_reply_t * -xcb_input_get_device_key_mapping_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_key_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_get_device_key_mapping_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_change_device_key_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_change_device_key_mapping_request_t *_aux = (xcb_input_change_device_key_mapping_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_change_device_key_mapping_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keysyms */ - xcb_block_len += (_aux->keycode_count * _aux->keysyms_per_keycode) * sizeof(xcb_keysym_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_keysym_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_input_change_device_key_mapping_checked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - xcb_input_key_code_t first_keycode /**< */, - uint8_t keysyms_per_keycode /**< */, - uint8_t keycode_count /**< */, - const xcb_keysym_t *keysyms /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_DEVICE_KEY_MAPPING, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_change_device_key_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.first_keycode = first_keycode; - xcb_out.keysyms_per_keycode = keysyms_per_keycode; - xcb_out.keycode_count = keycode_count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_keysym_t keysyms */ - xcb_parts[4].iov_base = (char *) keysyms; - xcb_parts[4].iov_len = (keycode_count * keysyms_per_keycode) * sizeof(xcb_keysym_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_change_device_key_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - xcb_input_key_code_t first_keycode /**< */, - uint8_t keysyms_per_keycode /**< */, - uint8_t keycode_count /**< */, - const xcb_keysym_t *keysyms /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_DEVICE_KEY_MAPPING, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_change_device_key_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.first_keycode = first_keycode; - xcb_out.keysyms_per_keycode = keysyms_per_keycode; - xcb_out.keycode_count = keycode_count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_keysym_t keysyms */ - xcb_parts[4].iov_base = (char *) keysyms; - xcb_parts[4].iov_len = (keycode_count * keysyms_per_keycode) * sizeof(xcb_keysym_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_get_device_modifier_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_get_device_modifier_mapping_reply_t *_aux = (xcb_input_get_device_modifier_mapping_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_get_device_modifier_mapping_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keymaps */ - xcb_block_len += (_aux->keycodes_per_modifier * 8) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_get_device_modifier_mapping_cookie_t -xcb_input_get_device_modifier_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_MODIFIER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_modifier_mapping_cookie_t xcb_ret; - xcb_input_get_device_modifier_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_device_modifier_mapping_cookie_t -xcb_input_get_device_modifier_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_MODIFIER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_modifier_mapping_cookie_t xcb_ret; - xcb_input_get_device_modifier_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_input_get_device_modifier_mapping_keymaps (const xcb_input_get_device_modifier_mapping_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_input_get_device_modifier_mapping_keymaps_length (const xcb_input_get_device_modifier_mapping_reply_t *R /**< */) -{ - return (R->keycodes_per_modifier * 8); -} - -xcb_generic_iterator_t -xcb_input_get_device_modifier_mapping_keymaps_end (const xcb_input_get_device_modifier_mapping_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->keycodes_per_modifier * 8)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_get_device_modifier_mapping_reply_t * -xcb_input_get_device_modifier_mapping_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_modifier_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_get_device_modifier_mapping_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_set_device_modifier_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_set_device_modifier_mapping_request_t *_aux = (xcb_input_set_device_modifier_mapping_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_set_device_modifier_mapping_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keymaps */ - xcb_block_len += (_aux->keycodes_per_modifier * 8) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_set_device_modifier_mapping_cookie_t -xcb_input_set_device_modifier_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t keycodes_per_modifier /**< */, - const uint8_t *keymaps /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SET_DEVICE_MODIFIER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_set_device_modifier_mapping_cookie_t xcb_ret; - xcb_input_set_device_modifier_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.keycodes_per_modifier = keycodes_per_modifier; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t keymaps */ - xcb_parts[4].iov_base = (char *) keymaps; - xcb_parts[4].iov_len = (keycodes_per_modifier * 8) * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_set_device_modifier_mapping_cookie_t -xcb_input_set_device_modifier_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t keycodes_per_modifier /**< */, - const uint8_t *keymaps /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SET_DEVICE_MODIFIER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_set_device_modifier_mapping_cookie_t xcb_ret; - xcb_input_set_device_modifier_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.keycodes_per_modifier = keycodes_per_modifier; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t keymaps */ - xcb_parts[4].iov_base = (char *) keymaps; - xcb_parts[4].iov_len = (keycodes_per_modifier * 8) * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_set_device_modifier_mapping_reply_t * -xcb_input_set_device_modifier_mapping_reply (xcb_connection_t *c /**< */, - xcb_input_set_device_modifier_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_set_device_modifier_mapping_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_get_device_button_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_get_device_button_mapping_reply_t *_aux = (xcb_input_get_device_button_mapping_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_get_device_button_mapping_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* map */ - xcb_block_len += _aux->map_size * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_get_device_button_mapping_cookie_t -xcb_input_get_device_button_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_BUTTON_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_button_mapping_cookie_t xcb_ret; - xcb_input_get_device_button_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_device_button_mapping_cookie_t -xcb_input_get_device_button_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_BUTTON_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_button_mapping_cookie_t xcb_ret; - xcb_input_get_device_button_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_input_get_device_button_mapping_map (const xcb_input_get_device_button_mapping_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_input_get_device_button_mapping_map_length (const xcb_input_get_device_button_mapping_reply_t *R /**< */) -{ - return R->map_size; -} - -xcb_generic_iterator_t -xcb_input_get_device_button_mapping_map_end (const xcb_input_get_device_button_mapping_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + (R->map_size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_get_device_button_mapping_reply_t * -xcb_input_get_device_button_mapping_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_button_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_get_device_button_mapping_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_set_device_button_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_set_device_button_mapping_request_t *_aux = (xcb_input_set_device_button_mapping_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_set_device_button_mapping_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* map */ - xcb_block_len += _aux->map_size * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_set_device_button_mapping_cookie_t -xcb_input_set_device_button_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t map_size /**< */, - const uint8_t *map /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SET_DEVICE_BUTTON_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_set_device_button_mapping_cookie_t xcb_ret; - xcb_input_set_device_button_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.map_size = map_size; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t map */ - xcb_parts[4].iov_base = (char *) map; - xcb_parts[4].iov_len = map_size * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_set_device_button_mapping_cookie_t -xcb_input_set_device_button_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t map_size /**< */, - const uint8_t *map /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SET_DEVICE_BUTTON_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_set_device_button_mapping_cookie_t xcb_ret; - xcb_input_set_device_button_mapping_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.map_size = map_size; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t map */ - xcb_parts[4].iov_base = (char *) map; - xcb_parts[4].iov_len = map_size * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_set_device_button_mapping_reply_t * -xcb_input_set_device_button_mapping_reply (xcb_connection_t *c /**< */, - xcb_input_set_device_button_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_set_device_button_mapping_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -void -xcb_input_key_state_next (xcb_input_key_state_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_key_state_t); -} - -xcb_generic_iterator_t -xcb_input_key_state_end (xcb_input_key_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_button_state_next (xcb_input_button_state_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_button_state_t); -} - -xcb_generic_iterator_t -xcb_input_button_state_end (xcb_input_button_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_valuator_state_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_valuator_state_t *_aux = (xcb_input_valuator_state_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_valuator_state_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* valuators */ - xcb_block_len += _aux->num_valuators * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint32_t * -xcb_input_valuator_state_valuators (const xcb_input_valuator_state_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_input_valuator_state_valuators_length (const xcb_input_valuator_state_t *R /**< */) -{ - return R->num_valuators; -} - -xcb_generic_iterator_t -xcb_input_valuator_state_valuators_end (const xcb_input_valuator_state_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->num_valuators); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_valuator_state_next (xcb_input_valuator_state_iterator_t *i /**< */) -{ - xcb_input_valuator_state_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_valuator_state_t *)(((char *)R) + xcb_input_valuator_state_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_valuator_state_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_valuator_state_end (xcb_input_valuator_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_valuator_state_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_input_state_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_input_state_t *_aux = (xcb_input_input_state_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_input_state_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* uninterpreted_data */ - xcb_block_len += (_aux->len - 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint8_t * -xcb_input_input_state_uninterpreted_data (const xcb_input_input_state_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_input_input_state_uninterpreted_data_length (const xcb_input_input_state_t *R /**< */) -{ - return (R->len - 4); -} - -xcb_generic_iterator_t -xcb_input_input_state_uninterpreted_data_end (const xcb_input_input_state_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->len - 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_input_state_next (xcb_input_input_state_iterator_t *i /**< */) -{ - xcb_input_input_state_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_input_state_t *)(((char *)R) + xcb_input_input_state_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_input_state_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_input_state_end (xcb_input_input_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_input_state_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_query_device_state_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_query_device_state_reply_t *_aux = (xcb_input_query_device_state_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_input_query_device_state_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* classes */ - for(i=0; i<_aux->num_classes; i++) { - xcb_tmp_len = xcb_input_input_state_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_input_input_state_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_query_device_state_cookie_t -xcb_input_query_device_state (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_QUERY_DEVICE_STATE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_query_device_state_cookie_t xcb_ret; - xcb_input_query_device_state_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_query_device_state_cookie_t -xcb_input_query_device_state_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_QUERY_DEVICE_STATE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_query_device_state_cookie_t xcb_ret; - xcb_input_query_device_state_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_query_device_state_classes_length (const xcb_input_query_device_state_reply_t *R /**< */) -{ - return R->num_classes; -} - -xcb_input_input_state_iterator_t -xcb_input_query_device_state_classes_iterator (const xcb_input_query_device_state_reply_t *R /**< */) -{ - xcb_input_input_state_iterator_t i; - i.data = (xcb_input_input_state_t *) (R + 1); - i.rem = R->num_classes; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_query_device_state_reply_t * -xcb_input_query_device_state_reply (xcb_connection_t *c /**< */, - xcb_input_query_device_state_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_query_device_state_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_send_extension_event_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_send_extension_event_request_t *_aux = (xcb_input_send_extension_event_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_send_extension_event_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* events */ - xcb_block_len += (_aux->num_events * 32) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* classes */ - xcb_block_len += _aux->num_classes * sizeof(xcb_input_event_class_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_event_class_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_input_send_extension_event_checked (xcb_connection_t *c /**< */, - xcb_window_t destination /**< */, - uint8_t device_id /**< */, - uint8_t propagate /**< */, - uint16_t num_classes /**< */, - uint8_t num_events /**< */, - const uint8_t *events /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SEND_EXTENSION_EVENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_input_send_extension_event_request_t xcb_out; - - xcb_out.destination = destination; - xcb_out.device_id = device_id; - xcb_out.propagate = propagate; - xcb_out.num_classes = num_classes; - xcb_out.num_events = num_events; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t events */ - xcb_parts[4].iov_base = (char *) events; - xcb_parts[4].iov_len = (num_events * 32) * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[6].iov_base = (char *) classes; - xcb_parts[6].iov_len = num_classes * sizeof(xcb_input_event_class_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_send_extension_event (xcb_connection_t *c /**< */, - xcb_window_t destination /**< */, - uint8_t device_id /**< */, - uint8_t propagate /**< */, - uint16_t num_classes /**< */, - uint8_t num_events /**< */, - const uint8_t *events /**< */, - const xcb_input_event_class_t *classes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SEND_EXTENSION_EVENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_input_send_extension_event_request_t xcb_out; - - xcb_out.destination = destination; - xcb_out.device_id = device_id; - xcb_out.propagate = propagate; - xcb_out.num_classes = num_classes; - xcb_out.num_events = num_events; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t events */ - xcb_parts[4].iov_base = (char *) events; - xcb_parts[4].iov_len = (num_events * 32) * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_input_event_class_t classes */ - xcb_parts[6].iov_base = (char *) classes; - xcb_parts[6].iov_len = num_classes * sizeof(xcb_input_event_class_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_device_bell_checked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t feedback_id /**< */, - uint8_t feedback_class /**< */, - int8_t percent /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_DEVICE_BELL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_device_bell_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.feedback_id = feedback_id; - xcb_out.feedback_class = feedback_class; - xcb_out.percent = percent; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_device_bell (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t feedback_id /**< */, - uint8_t feedback_class /**< */, - int8_t percent /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_DEVICE_BELL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_device_bell_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.feedback_id = feedback_id; - xcb_out.feedback_class = feedback_class; - xcb_out.percent = percent; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_set_device_valuators_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_set_device_valuators_request_t *_aux = (xcb_input_set_device_valuators_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_set_device_valuators_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* valuators */ - xcb_block_len += _aux->num_valuators * sizeof(int32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(int32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_set_device_valuators_cookie_t -xcb_input_set_device_valuators (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t first_valuator /**< */, - uint8_t num_valuators /**< */, - const int32_t *valuators /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SET_DEVICE_VALUATORS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_set_device_valuators_cookie_t xcb_ret; - xcb_input_set_device_valuators_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.first_valuator = first_valuator; - xcb_out.num_valuators = num_valuators; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* int32_t valuators */ - xcb_parts[4].iov_base = (char *) valuators; - xcb_parts[4].iov_len = num_valuators * sizeof(int32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_set_device_valuators_cookie_t -xcb_input_set_device_valuators_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t first_valuator /**< */, - uint8_t num_valuators /**< */, - const int32_t *valuators /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_SET_DEVICE_VALUATORS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_set_device_valuators_cookie_t xcb_ret; - xcb_input_set_device_valuators_request_t xcb_out; - - xcb_out.device_id = device_id; - xcb_out.first_valuator = first_valuator; - xcb_out.num_valuators = num_valuators; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* int32_t valuators */ - xcb_parts[4].iov_base = (char *) valuators; - xcb_parts[4].iov_len = num_valuators * sizeof(int32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_set_device_valuators_reply_t * -xcb_input_set_device_valuators_reply (xcb_connection_t *c /**< */, - xcb_input_set_device_valuators_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_set_device_valuators_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_device_resolution_state_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_device_resolution_state_t *_aux = (xcb_input_device_resolution_state_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_device_resolution_state_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* resolution_values */ - xcb_block_len += _aux->num_valuators * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* resolution_min */ - xcb_block_len += _aux->num_valuators * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* resolution_max */ - xcb_block_len += _aux->num_valuators * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint32_t * -xcb_input_device_resolution_state_resolution_values (const xcb_input_device_resolution_state_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_input_device_resolution_state_resolution_values_length (const xcb_input_device_resolution_state_t *R /**< */) -{ - return R->num_valuators; -} - -xcb_generic_iterator_t -xcb_input_device_resolution_state_resolution_values_end (const xcb_input_device_resolution_state_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->num_valuators); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint32_t * -xcb_input_device_resolution_state_resolution_min (const xcb_input_device_resolution_state_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_input_device_resolution_state_resolution_values_end(R); - return (uint32_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index) + 0); -} - -int -xcb_input_device_resolution_state_resolution_min_length (const xcb_input_device_resolution_state_t *R /**< */) -{ - return R->num_valuators; -} - -xcb_generic_iterator_t -xcb_input_device_resolution_state_resolution_min_end (const xcb_input_device_resolution_state_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_input_device_resolution_state_resolution_values_end(R); - i.data = ((uint32_t *) child.data) + (R->num_valuators); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint32_t * -xcb_input_device_resolution_state_resolution_max (const xcb_input_device_resolution_state_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_input_device_resolution_state_resolution_min_end(R); - return (uint32_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index) + 0); -} - -int -xcb_input_device_resolution_state_resolution_max_length (const xcb_input_device_resolution_state_t *R /**< */) -{ - return R->num_valuators; -} - -xcb_generic_iterator_t -xcb_input_device_resolution_state_resolution_max_end (const xcb_input_device_resolution_state_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_input_device_resolution_state_resolution_min_end(R); - i.data = ((uint32_t *) child.data) + (R->num_valuators); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_device_resolution_state_next (xcb_input_device_resolution_state_iterator_t *i /**< */) -{ - xcb_input_device_resolution_state_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_device_resolution_state_t *)(((char *)R) + xcb_input_device_resolution_state_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_device_resolution_state_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_device_resolution_state_end (xcb_input_device_resolution_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_device_resolution_state_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_input_device_abs_calib_state_next (xcb_input_device_abs_calib_state_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_device_abs_calib_state_t); -} - -xcb_generic_iterator_t -xcb_input_device_abs_calib_state_end (xcb_input_device_abs_calib_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_device_abs_area_state_next (xcb_input_device_abs_area_state_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_device_abs_area_state_t); -} - -xcb_generic_iterator_t -xcb_input_device_abs_area_state_end (xcb_input_device_abs_area_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_device_core_state_next (xcb_input_device_core_state_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_device_core_state_t); -} - -xcb_generic_iterator_t -xcb_input_device_core_state_end (xcb_input_device_core_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_device_enable_state_next (xcb_input_device_enable_state_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_device_enable_state_t); -} - -xcb_generic_iterator_t -xcb_input_device_enable_state_end (xcb_input_device_enable_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_device_state_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_device_state_t *_aux = (xcb_input_device_state_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_device_state_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* uninterpreted_data */ - xcb_block_len += (_aux->len - 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint8_t * -xcb_input_device_state_uninterpreted_data (const xcb_input_device_state_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_input_device_state_uninterpreted_data_length (const xcb_input_device_state_t *R /**< */) -{ - return (R->len - 4); -} - -xcb_generic_iterator_t -xcb_input_device_state_uninterpreted_data_end (const xcb_input_device_state_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->len - 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_device_state_next (xcb_input_device_state_iterator_t *i /**< */) -{ - xcb_input_device_state_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_device_state_t *)(((char *)R) + xcb_input_device_state_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_device_state_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_device_state_end (xcb_input_device_state_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_device_state_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_get_device_control_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_get_device_control_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* control */ - xcb_block_len += xcb_input_device_state_sizeof(xcb_tmp); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_device_state_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_get_device_control_cookie_t -xcb_input_get_device_control (xcb_connection_t *c /**< */, - uint16_t control_id /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_CONTROL, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_control_cookie_t xcb_ret; - xcb_input_get_device_control_request_t xcb_out; - - xcb_out.control_id = control_id; - xcb_out.device_id = device_id; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_device_control_cookie_t -xcb_input_get_device_control_unchecked (xcb_connection_t *c /**< */, - uint16_t control_id /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_CONTROL, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_control_cookie_t xcb_ret; - xcb_input_get_device_control_request_t xcb_out; - - xcb_out.control_id = control_id; - xcb_out.device_id = device_id; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_device_state_t * -xcb_input_get_device_control_control (const xcb_input_get_device_control_reply_t *R /**< */) -{ - return (xcb_input_device_state_t *) (R + 1); -} - -xcb_input_get_device_control_reply_t * -xcb_input_get_device_control_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_control_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_get_device_control_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_device_resolution_ctl_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_device_resolution_ctl_t *_aux = (xcb_input_device_resolution_ctl_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_device_resolution_ctl_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* resolution_values */ - xcb_block_len += _aux->num_valuators * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint32_t * -xcb_input_device_resolution_ctl_resolution_values (const xcb_input_device_resolution_ctl_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_input_device_resolution_ctl_resolution_values_length (const xcb_input_device_resolution_ctl_t *R /**< */) -{ - return R->num_valuators; -} - -xcb_generic_iterator_t -xcb_input_device_resolution_ctl_resolution_values_end (const xcb_input_device_resolution_ctl_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->num_valuators); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_device_resolution_ctl_next (xcb_input_device_resolution_ctl_iterator_t *i /**< */) -{ - xcb_input_device_resolution_ctl_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_device_resolution_ctl_t *)(((char *)R) + xcb_input_device_resolution_ctl_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_device_resolution_ctl_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_device_resolution_ctl_end (xcb_input_device_resolution_ctl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_device_resolution_ctl_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_input_device_abs_calib_ctl_next (xcb_input_device_abs_calib_ctl_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_device_abs_calib_ctl_t); -} - -xcb_generic_iterator_t -xcb_input_device_abs_calib_ctl_end (xcb_input_device_abs_calib_ctl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_device_abs_area_ctrl_next (xcb_input_device_abs_area_ctrl_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_device_abs_area_ctrl_t); -} - -xcb_generic_iterator_t -xcb_input_device_abs_area_ctrl_end (xcb_input_device_abs_area_ctrl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_device_core_ctrl_next (xcb_input_device_core_ctrl_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_device_core_ctrl_t); -} - -xcb_generic_iterator_t -xcb_input_device_core_ctrl_end (xcb_input_device_core_ctrl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_device_enable_ctrl_next (xcb_input_device_enable_ctrl_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_device_enable_ctrl_t); -} - -xcb_generic_iterator_t -xcb_input_device_enable_ctrl_end (xcb_input_device_enable_ctrl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_device_ctl_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_device_ctl_t *_aux = (xcb_input_device_ctl_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_device_ctl_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* uninterpreted_data */ - xcb_block_len += (_aux->len - 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint8_t * -xcb_input_device_ctl_uninterpreted_data (const xcb_input_device_ctl_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_input_device_ctl_uninterpreted_data_length (const xcb_input_device_ctl_t *R /**< */) -{ - return (R->len - 4); -} - -xcb_generic_iterator_t -xcb_input_device_ctl_uninterpreted_data_end (const xcb_input_device_ctl_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->len - 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_device_ctl_next (xcb_input_device_ctl_iterator_t *i /**< */) -{ - xcb_input_device_ctl_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_device_ctl_t *)(((char *)R) + xcb_input_device_ctl_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_device_ctl_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_device_ctl_end (xcb_input_device_ctl_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_device_ctl_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_change_device_control_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_change_device_control_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* control */ - xcb_block_len += xcb_input_device_ctl_sizeof(xcb_tmp); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_device_ctl_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_change_device_control_cookie_t -xcb_input_change_device_control (xcb_connection_t *c /**< */, - uint16_t control_id /**< */, - uint8_t device_id /**< */, - xcb_input_device_ctl_t *control /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_DEVICE_CONTROL, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_change_device_control_cookie_t xcb_ret; - xcb_input_change_device_control_request_t xcb_out; - - xcb_out.control_id = control_id; - xcb_out.device_id = device_id; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_device_ctl_t control */ - xcb_parts[4].iov_base = (char *) control; - xcb_parts[4].iov_len = - xcb_input_device_ctl_sizeof (control); - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_change_device_control_cookie_t -xcb_input_change_device_control_unchecked (xcb_connection_t *c /**< */, - uint16_t control_id /**< */, - uint8_t device_id /**< */, - xcb_input_device_ctl_t *control /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_DEVICE_CONTROL, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_change_device_control_cookie_t xcb_ret; - xcb_input_change_device_control_request_t xcb_out; - - xcb_out.control_id = control_id; - xcb_out.device_id = device_id; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_device_ctl_t control */ - xcb_parts[4].iov_base = (char *) control; - xcb_parts[4].iov_len = - xcb_input_device_ctl_sizeof (control); - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_change_device_control_reply_t * -xcb_input_change_device_control_reply (xcb_connection_t *c /**< */, - xcb_input_change_device_control_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_change_device_control_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_list_device_properties_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_list_device_properties_reply_t *_aux = (xcb_input_list_device_properties_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_list_device_properties_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* atoms */ - xcb_block_len += _aux->num_atoms * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_list_device_properties_cookie_t -xcb_input_list_device_properties (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_LIST_DEVICE_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_list_device_properties_cookie_t xcb_ret; - xcb_input_list_device_properties_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_list_device_properties_cookie_t -xcb_input_list_device_properties_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_LIST_DEVICE_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_list_device_properties_cookie_t xcb_ret; - xcb_input_list_device_properties_request_t xcb_out; - - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_atom_t * -xcb_input_list_device_properties_atoms (const xcb_input_list_device_properties_reply_t *R /**< */) -{ - return (xcb_atom_t *) (R + 1); -} - -int -xcb_input_list_device_properties_atoms_length (const xcb_input_list_device_properties_reply_t *R /**< */) -{ - return R->num_atoms; -} - -xcb_generic_iterator_t -xcb_input_list_device_properties_atoms_end (const xcb_input_list_device_properties_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_atom_t *) (R + 1)) + (R->num_atoms); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_list_device_properties_reply_t * -xcb_input_list_device_properties_reply (xcb_connection_t *c /**< */, - xcb_input_list_device_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_list_device_properties_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -uint8_t * -xcb_input_change_device_property_items_data_8 (const xcb_input_change_device_property_items_t *S /**< */) -{ - return /* items */ S->data8; -} - -int -xcb_input_change_device_property_items_data_8_length (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_change_device_property_items_data_8_end (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data8 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint16_t * -xcb_input_change_device_property_items_data_16 (const xcb_input_change_device_property_items_t *S /**< */) -{ - return /* items */ S->data16; -} - -int -xcb_input_change_device_property_items_data_16_length (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_change_device_property_items_data_16_end (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data16 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint32_t * -xcb_input_change_device_property_items_data_32 (const xcb_input_change_device_property_items_t *S /**< */) -{ - return /* items */ S->data32; -} - -int -xcb_input_change_device_property_items_data_32_length (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_change_device_property_items_data_32_end (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data32 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_input_change_device_property_items_serialize (void **_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - const xcb_input_change_device_property_items_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[7]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(format & XCB_INPUT_PROPERTY_FORMAT_8_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data8 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data8; - xcb_block_len += num_items * sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_16_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data16 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data16; - xcb_block_len += num_items * sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_32_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data32 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data32; - xcb_block_len += num_items * sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; idata8 = (uint8_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_16_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data16 */ - _aux->data16 = (uint16_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_32_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data32 */ - _aux->data32 = (uint32_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_change_device_property_items_sizeof (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */) -{ - xcb_input_change_device_property_items_t _aux; - return xcb_input_change_device_property_items_unpack(_buffer, num_items, format, &_aux); -} - -xcb_void_cookie_t -xcb_input_change_device_property_checked (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t device_id /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const void *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_DEVICE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_input_change_device_property_request_t xcb_out; - - xcb_out.property = property; - xcb_out.type = type; - xcb_out.device_id = device_id; - xcb_out.format = format; - xcb_out.mode = mode; - xcb_out.pad0 = 0; - xcb_out.num_items = num_items; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_change_device_property_items_t items */ - xcb_parts[4].iov_base = (char *) items; - xcb_parts[4].iov_len = - xcb_input_change_device_property_items_sizeof (items, num_items, format); - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_change_device_property (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t device_id /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const void *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_DEVICE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_input_change_device_property_request_t xcb_out; - - xcb_out.property = property; - xcb_out.type = type; - xcb_out.device_id = device_id; - xcb_out.format = format; - xcb_out.mode = mode; - xcb_out.pad0 = 0; - xcb_out.num_items = num_items; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_change_device_property_items_t items */ - xcb_parts[4].iov_base = (char *) items; - xcb_parts[4].iov_len = - xcb_input_change_device_property_items_sizeof (items, num_items, format); - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_change_device_property_aux_checked (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t device_id /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const xcb_input_change_device_property_items_t *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_DEVICE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_input_change_device_property_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.property = property; - xcb_out.type = type; - xcb_out.device_id = device_id; - xcb_out.format = format; - xcb_out.mode = mode; - xcb_out.pad0 = 0; - xcb_out.num_items = num_items; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_change_device_property_items_t items */ - xcb_parts[4].iov_len = - xcb_input_change_device_property_items_serialize (&xcb_aux0, num_items, format, items); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_change_device_property_aux (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t device_id /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const xcb_input_change_device_property_items_t *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_CHANGE_DEVICE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_input_change_device_property_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.property = property; - xcb_out.type = type; - xcb_out.device_id = device_id; - xcb_out.format = format; - xcb_out.mode = mode; - xcb_out.pad0 = 0; - xcb_out.num_items = num_items; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_change_device_property_items_t items */ - xcb_parts[4].iov_len = - xcb_input_change_device_property_items_serialize (&xcb_aux0, num_items, format, items); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_delete_device_property_checked (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_DELETE_DEVICE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_delete_device_property_request_t xcb_out; - - xcb_out.property = property; - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_delete_device_property (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - uint8_t device_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_DELETE_DEVICE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_delete_device_property_request_t xcb_out; - - xcb_out.property = property; - xcb_out.device_id = device_id; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_input_get_device_property_items_data_8 (const xcb_input_get_device_property_items_t *S /**< */) -{ - return /* items */ S->data8; -} - -int -xcb_input_get_device_property_items_data_8_length (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_get_device_property_items_data_8_end (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data8 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint16_t * -xcb_input_get_device_property_items_data_16 (const xcb_input_get_device_property_items_t *S /**< */) -{ - return /* items */ S->data16; -} - -int -xcb_input_get_device_property_items_data_16_length (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_get_device_property_items_data_16_end (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data16 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint32_t * -xcb_input_get_device_property_items_data_32 (const xcb_input_get_device_property_items_t *S /**< */) -{ - return /* items */ S->data32; -} - -int -xcb_input_get_device_property_items_data_32_length (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_get_device_property_items_data_32_end (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data32 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_input_get_device_property_items_serialize (void **_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - const xcb_input_get_device_property_items_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[7]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(format & XCB_INPUT_PROPERTY_FORMAT_8_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data8 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data8; - xcb_block_len += num_items * sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_16_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data16 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data16; - xcb_block_len += num_items * sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_32_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data32 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data32; - xcb_block_len += num_items * sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; idata8 = (uint8_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_16_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data16 */ - _aux->data16 = (uint16_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_32_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data32 */ - _aux->data32 = (uint32_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_get_device_property_items_sizeof (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */) -{ - xcb_input_get_device_property_items_t _aux; - return xcb_input_get_device_property_items_unpack(_buffer, num_items, format, &_aux); -} - -xcb_input_get_device_property_cookie_t -xcb_input_get_device_property (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t offset /**< */, - uint32_t len /**< */, - uint8_t device_id /**< */, - uint8_t _delete /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_property_cookie_t xcb_ret; - xcb_input_get_device_property_request_t xcb_out; - - xcb_out.property = property; - xcb_out.type = type; - xcb_out.offset = offset; - xcb_out.len = len; - xcb_out.device_id = device_id; - xcb_out._delete = _delete; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_get_device_property_cookie_t -xcb_input_get_device_property_unchecked (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t offset /**< */, - uint32_t len /**< */, - uint8_t device_id /**< */, - uint8_t _delete /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_GET_DEVICE_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_get_device_property_cookie_t xcb_ret; - xcb_input_get_device_property_request_t xcb_out; - - xcb_out.property = property; - xcb_out.type = type; - xcb_out.offset = offset; - xcb_out.len = len; - xcb_out.device_id = device_id; - xcb_out._delete = _delete; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void * -xcb_input_get_device_property_items (const xcb_input_get_device_property_reply_t *R /**< */) -{ - return (void *) (R + 1); -} - -xcb_input_get_device_property_reply_t * -xcb_input_get_device_property_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_get_device_property_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -void -xcb_input_group_info_next (xcb_input_group_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_group_info_t); -} - -xcb_generic_iterator_t -xcb_input_group_info_end (xcb_input_group_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_modifier_info_next (xcb_input_modifier_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_modifier_info_t); -} - -xcb_generic_iterator_t -xcb_input_modifier_info_end (xcb_input_modifier_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_xi_query_pointer_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_xi_query_pointer_reply_t *_aux = (xcb_input_xi_query_pointer_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_xi_query_pointer_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* buttons */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_xi_query_pointer_cookie_t -xcb_input_xi_query_pointer (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_QUERY_POINTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_query_pointer_cookie_t xcb_ret; - xcb_input_xi_query_pointer_request_t xcb_out; - - xcb_out.window = window; - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_xi_query_pointer_cookie_t -xcb_input_xi_query_pointer_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_QUERY_POINTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_query_pointer_cookie_t xcb_ret; - xcb_input_xi_query_pointer_request_t xcb_out; - - xcb_out.window = window; - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_input_xi_query_pointer_buttons (const xcb_input_xi_query_pointer_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_input_xi_query_pointer_buttons_length (const xcb_input_xi_query_pointer_reply_t *R /**< */) -{ - return R->buttons_len; -} - -xcb_generic_iterator_t -xcb_input_xi_query_pointer_buttons_end (const xcb_input_xi_query_pointer_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->buttons_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_xi_query_pointer_reply_t * -xcb_input_xi_query_pointer_reply (xcb_connection_t *c /**< */, - xcb_input_xi_query_pointer_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_xi_query_pointer_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_input_xi_warp_pointer_checked (xcb_connection_t *c /**< */, - xcb_window_t src_win /**< */, - xcb_window_t dst_win /**< */, - xcb_input_fp1616_t src_x /**< */, - xcb_input_fp1616_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - xcb_input_fp1616_t dst_x /**< */, - xcb_input_fp1616_t dst_y /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_WARP_POINTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_warp_pointer_request_t xcb_out; - - xcb_out.src_win = src_win; - xcb_out.dst_win = dst_win; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_width = src_width; - xcb_out.src_height = src_height; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_warp_pointer (xcb_connection_t *c /**< */, - xcb_window_t src_win /**< */, - xcb_window_t dst_win /**< */, - xcb_input_fp1616_t src_x /**< */, - xcb_input_fp1616_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - xcb_input_fp1616_t dst_x /**< */, - xcb_input_fp1616_t dst_y /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_WARP_POINTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_warp_pointer_request_t xcb_out; - - xcb_out.src_win = src_win; - xcb_out.dst_win = dst_win; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_width = src_width; - xcb_out.src_height = src_height; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_change_cursor_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_cursor_t cursor /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_CHANGE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_change_cursor_request_t xcb_out; - - xcb_out.window = window; - xcb_out.cursor = cursor; - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_change_cursor (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_cursor_t cursor /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_CHANGE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_change_cursor_request_t xcb_out; - - xcb_out.window = window; - xcb_out.cursor = cursor; - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_add_master_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_add_master_t *_aux = (xcb_input_add_master_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_add_master_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_input_add_master_name (const xcb_input_add_master_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_input_add_master_name_length (const xcb_input_add_master_t *R /**< */) -{ - return R->name_len; -} - -xcb_generic_iterator_t -xcb_input_add_master_name_end (const xcb_input_add_master_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->name_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_add_master_next (xcb_input_add_master_iterator_t *i /**< */) -{ - xcb_input_add_master_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_add_master_t *)(((char *)R) + xcb_input_add_master_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_add_master_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_add_master_end (xcb_input_add_master_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_add_master_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_input_remove_master_next (xcb_input_remove_master_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_remove_master_t); -} - -xcb_generic_iterator_t -xcb_input_remove_master_end (xcb_input_remove_master_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_attach_slave_next (xcb_input_attach_slave_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_attach_slave_t); -} - -xcb_generic_iterator_t -xcb_input_attach_slave_end (xcb_input_attach_slave_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_detach_slave_next (xcb_input_detach_slave_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_detach_slave_t); -} - -xcb_generic_iterator_t -xcb_input_detach_slave_end (xcb_input_detach_slave_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_hierarchy_change_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_hierarchy_change_t *_aux = (xcb_input_hierarchy_change_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_hierarchy_change_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* uninterpreted_data */ - xcb_block_len += ((_aux->len * 4) - 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint8_t * -xcb_input_hierarchy_change_uninterpreted_data (const xcb_input_hierarchy_change_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_input_hierarchy_change_uninterpreted_data_length (const xcb_input_hierarchy_change_t *R /**< */) -{ - return ((R->len * 4) - 4); -} - -xcb_generic_iterator_t -xcb_input_hierarchy_change_uninterpreted_data_end (const xcb_input_hierarchy_change_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + (((R->len * 4) - 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_hierarchy_change_next (xcb_input_hierarchy_change_iterator_t *i /**< */) -{ - xcb_input_hierarchy_change_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_hierarchy_change_t *)(((char *)R) + xcb_input_hierarchy_change_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_hierarchy_change_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_hierarchy_change_end (xcb_input_hierarchy_change_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_hierarchy_change_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_xi_change_hierarchy_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_xi_change_hierarchy_request_t *_aux = (xcb_input_xi_change_hierarchy_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_input_xi_change_hierarchy_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* changes */ - for(i=0; i<_aux->num_changes; i++) { - xcb_tmp_len = xcb_input_hierarchy_change_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_input_hierarchy_change_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_input_xi_change_hierarchy_checked (xcb_connection_t *c /**< */, - uint8_t num_changes /**< */, - const xcb_input_hierarchy_change_t *changes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_CHANGE_HIERARCHY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_change_hierarchy_request_t xcb_out; - unsigned int i; - unsigned int xcb_tmp_len; - char *xcb_tmp; - - xcb_out.num_changes = num_changes; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_hierarchy_change_t changes */ - xcb_parts[4].iov_base = (char *) changes; - xcb_parts[4].iov_len = 0; - xcb_tmp = (char *)changes; - for(i=0; imask_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint32_t * -xcb_input_event_mask_mask (const xcb_input_event_mask_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_input_event_mask_mask_length (const xcb_input_event_mask_t *R /**< */) -{ - return R->mask_len; -} - -xcb_generic_iterator_t -xcb_input_event_mask_mask_end (const xcb_input_event_mask_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->mask_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_event_mask_next (xcb_input_event_mask_iterator_t *i /**< */) -{ - xcb_input_event_mask_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_event_mask_t *)(((char *)R) + xcb_input_event_mask_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_event_mask_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_event_mask_end (xcb_input_event_mask_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_event_mask_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_xi_select_events_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_xi_select_events_request_t *_aux = (xcb_input_xi_select_events_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_input_xi_select_events_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* masks */ - for(i=0; i<_aux->num_mask; i++) { - xcb_tmp_len = xcb_input_event_mask_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_input_event_mask_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_input_xi_select_events_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t num_mask /**< */, - const xcb_input_event_mask_t *masks /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_SELECT_EVENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_select_events_request_t xcb_out; - unsigned int i; - unsigned int xcb_tmp_len; - char *xcb_tmp; - - xcb_out.window = window; - xcb_out.num_mask = num_mask; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_event_mask_t masks */ - xcb_parts[4].iov_base = (char *) masks; - xcb_parts[4].iov_len = 0; - xcb_tmp = (char *)masks; - for(i=0; inum_buttons + 31) / 32) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* labels */ - xcb_block_len += _aux->num_buttons * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint32_t * -xcb_input_button_class_state (const xcb_input_button_class_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_input_button_class_state_length (const xcb_input_button_class_t *R /**< */) -{ - return ((R->num_buttons + 31) / 32); -} - -xcb_generic_iterator_t -xcb_input_button_class_state_end (const xcb_input_button_class_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (((R->num_buttons + 31) / 32)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_atom_t * -xcb_input_button_class_labels (const xcb_input_button_class_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_input_button_class_state_end(R); - return (xcb_atom_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_atom_t, prev.index) + 0); -} - -int -xcb_input_button_class_labels_length (const xcb_input_button_class_t *R /**< */) -{ - return R->num_buttons; -} - -xcb_generic_iterator_t -xcb_input_button_class_labels_end (const xcb_input_button_class_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_input_button_class_state_end(R); - i.data = ((xcb_atom_t *) child.data) + (R->num_buttons); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_button_class_next (xcb_input_button_class_iterator_t *i /**< */) -{ - xcb_input_button_class_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_button_class_t *)(((char *)R) + xcb_input_button_class_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_button_class_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_button_class_end (xcb_input_button_class_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_button_class_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_key_class_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_key_class_t *_aux = (xcb_input_key_class_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_key_class_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keys */ - xcb_block_len += _aux->num_keys * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint32_t * -xcb_input_key_class_keys (const xcb_input_key_class_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_input_key_class_keys_length (const xcb_input_key_class_t *R /**< */) -{ - return R->num_keys; -} - -xcb_generic_iterator_t -xcb_input_key_class_keys_end (const xcb_input_key_class_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->num_keys); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_key_class_next (xcb_input_key_class_iterator_t *i /**< */) -{ - xcb_input_key_class_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_key_class_t *)(((char *)R) + xcb_input_key_class_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_key_class_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_key_class_end (xcb_input_key_class_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_key_class_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_input_scroll_class_next (xcb_input_scroll_class_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_scroll_class_t); -} - -xcb_generic_iterator_t -xcb_input_scroll_class_end (xcb_input_scroll_class_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_touch_class_next (xcb_input_touch_class_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_touch_class_t); -} - -xcb_generic_iterator_t -xcb_input_touch_class_end (xcb_input_touch_class_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_input_valuator_class_next (xcb_input_valuator_class_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_valuator_class_t); -} - -xcb_generic_iterator_t -xcb_input_valuator_class_end (xcb_input_valuator_class_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_device_class_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_device_class_t *_aux = (xcb_input_device_class_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_device_class_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* uninterpreted_data */ - xcb_block_len += ((_aux->len * 4) - 8) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint8_t * -xcb_input_device_class_uninterpreted_data (const xcb_input_device_class_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_input_device_class_uninterpreted_data_length (const xcb_input_device_class_t *R /**< */) -{ - return ((R->len * 4) - 8); -} - -xcb_generic_iterator_t -xcb_input_device_class_uninterpreted_data_end (const xcb_input_device_class_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + (((R->len * 4) - 8)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_device_class_next (xcb_input_device_class_iterator_t *i /**< */) -{ - xcb_input_device_class_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_device_class_t *)(((char *)R) + xcb_input_device_class_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_device_class_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_device_class_end (xcb_input_device_class_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_device_class_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_xi_device_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_xi_device_info_t *_aux = (xcb_input_xi_device_info_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_input_xi_device_info_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += (((_aux->name_len + 3) / 4) * 4) * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* classes */ - for(i=0; i<_aux->num_classes; i++) { - xcb_tmp_len = xcb_input_device_class_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_input_device_class_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_input_xi_device_info_name (const xcb_input_xi_device_info_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_input_xi_device_info_name_length (const xcb_input_xi_device_info_t *R /**< */) -{ - return (((R->name_len + 3) / 4) * 4); -} - -xcb_generic_iterator_t -xcb_input_xi_device_info_name_end (const xcb_input_xi_device_info_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + ((((R->name_len + 3) / 4) * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -int -xcb_input_xi_device_info_classes_length (const xcb_input_xi_device_info_t *R /**< */) -{ - return R->num_classes; -} - -xcb_input_device_class_iterator_t -xcb_input_xi_device_info_classes_iterator (const xcb_input_xi_device_info_t *R /**< */) -{ - xcb_input_device_class_iterator_t i; - xcb_generic_iterator_t prev = xcb_input_xi_device_info_name_end(R); - i.data = (xcb_input_device_class_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_input_device_class_t, prev.index)); - i.rem = R->num_classes; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_input_xi_device_info_next (xcb_input_xi_device_info_iterator_t *i /**< */) -{ - xcb_input_xi_device_info_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_input_xi_device_info_t *)(((char *)R) + xcb_input_xi_device_info_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_input_xi_device_info_t *) child.data; -} - -xcb_generic_iterator_t -xcb_input_xi_device_info_end (xcb_input_xi_device_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_input_xi_device_info_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_input_xi_query_device_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_xi_query_device_reply_t *_aux = (xcb_input_xi_query_device_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_input_xi_query_device_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* infos */ - for(i=0; i<_aux->num_infos; i++) { - xcb_tmp_len = xcb_input_xi_device_info_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_input_xi_device_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_xi_query_device_cookie_t -xcb_input_xi_query_device (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_QUERY_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_query_device_cookie_t xcb_ret; - xcb_input_xi_query_device_request_t xcb_out; - - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_xi_query_device_cookie_t -xcb_input_xi_query_device_unchecked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_QUERY_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_query_device_cookie_t xcb_ret; - xcb_input_xi_query_device_request_t xcb_out; - - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_xi_query_device_infos_length (const xcb_input_xi_query_device_reply_t *R /**< */) -{ - return R->num_infos; -} - -xcb_input_xi_device_info_iterator_t -xcb_input_xi_query_device_infos_iterator (const xcb_input_xi_query_device_reply_t *R /**< */) -{ - xcb_input_xi_device_info_iterator_t i; - i.data = (xcb_input_xi_device_info_t *) (R + 1); - i.rem = R->num_infos; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_xi_query_device_reply_t * -xcb_input_xi_query_device_reply (xcb_connection_t *c /**< */, - xcb_input_xi_query_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_xi_query_device_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_input_xi_set_focus_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_SET_FOCUS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_set_focus_request_t xcb_out; - - xcb_out.window = window; - xcb_out.time = time; - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_set_focus (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_SET_FOCUS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_set_focus_request_t xcb_out; - - xcb_out.window = window; - xcb_out.time = time; - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_xi_get_focus_cookie_t -xcb_input_xi_get_focus (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_GET_FOCUS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_get_focus_cookie_t xcb_ret; - xcb_input_xi_get_focus_request_t xcb_out; - - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_xi_get_focus_cookie_t -xcb_input_xi_get_focus_unchecked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_GET_FOCUS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_get_focus_cookie_t xcb_ret; - xcb_input_xi_get_focus_request_t xcb_out; - - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_xi_get_focus_reply_t * -xcb_input_xi_get_focus_reply (xcb_connection_t *c /**< */, - xcb_input_xi_get_focus_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_xi_get_focus_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_xi_grab_device_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_xi_grab_device_request_t *_aux = (xcb_input_xi_grab_device_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_xi_grab_device_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* mask */ - xcb_block_len += _aux->mask_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_xi_grab_device_cookie_t -xcb_input_xi_grab_device (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t time /**< */, - xcb_cursor_t cursor /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t paired_device_mode /**< */, - uint8_t owner_events /**< */, - uint16_t mask_len /**< */, - const uint32_t *mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_GRAB_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_xi_grab_device_cookie_t xcb_ret; - xcb_input_xi_grab_device_request_t xcb_out; - - xcb_out.window = window; - xcb_out.time = time; - xcb_out.cursor = cursor; - xcb_out.deviceid = deviceid; - xcb_out.mode = mode; - xcb_out.paired_device_mode = paired_device_mode; - xcb_out.owner_events = owner_events; - xcb_out.pad0 = 0; - xcb_out.mask_len = mask_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t mask */ - xcb_parts[4].iov_base = (char *) mask; - xcb_parts[4].iov_len = mask_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_xi_grab_device_cookie_t -xcb_input_xi_grab_device_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t time /**< */, - xcb_cursor_t cursor /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t paired_device_mode /**< */, - uint8_t owner_events /**< */, - uint16_t mask_len /**< */, - const uint32_t *mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_GRAB_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_input_xi_grab_device_cookie_t xcb_ret; - xcb_input_xi_grab_device_request_t xcb_out; - - xcb_out.window = window; - xcb_out.time = time; - xcb_out.cursor = cursor; - xcb_out.deviceid = deviceid; - xcb_out.mode = mode; - xcb_out.paired_device_mode = paired_device_mode; - xcb_out.owner_events = owner_events; - xcb_out.pad0 = 0; - xcb_out.mask_len = mask_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t mask */ - xcb_parts[4].iov_base = (char *) mask; - xcb_parts[4].iov_len = mask_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_xi_grab_device_reply_t * -xcb_input_xi_grab_device_reply (xcb_connection_t *c /**< */, - xcb_input_xi_grab_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_xi_grab_device_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_input_xi_ungrab_device_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_UNGRAB_DEVICE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_ungrab_device_request_t xcb_out; - - xcb_out.time = time; - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_ungrab_device (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_UNGRAB_DEVICE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_ungrab_device_request_t xcb_out; - - xcb_out.time = time; - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_allow_events_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t event_mode /**< */, - uint32_t touchid /**< */, - xcb_window_t grab_window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_ALLOW_EVENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_allow_events_request_t xcb_out; - - xcb_out.time = time; - xcb_out.deviceid = deviceid; - xcb_out.event_mode = event_mode; - xcb_out.pad0 = 0; - xcb_out.touchid = touchid; - xcb_out.grab_window = grab_window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_allow_events (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t event_mode /**< */, - uint32_t touchid /**< */, - xcb_window_t grab_window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_ALLOW_EVENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_allow_events_request_t xcb_out; - - xcb_out.time = time; - xcb_out.deviceid = deviceid; - xcb_out.event_mode = event_mode; - xcb_out.pad0 = 0; - xcb_out.touchid = touchid; - xcb_out.grab_window = grab_window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_input_grab_modifier_info_next (xcb_input_grab_modifier_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_grab_modifier_info_t); -} - -xcb_generic_iterator_t -xcb_input_grab_modifier_info_end (xcb_input_grab_modifier_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_xi_passive_grab_device_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_xi_passive_grab_device_request_t *_aux = (xcb_input_xi_passive_grab_device_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_xi_passive_grab_device_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* mask */ - xcb_block_len += _aux->mask_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* modifiers */ - xcb_block_len += _aux->num_modifiers * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_xi_passive_grab_device_cookie_t -xcb_input_xi_passive_grab_device (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_window_t grab_window /**< */, - xcb_cursor_t cursor /**< */, - uint32_t detail /**< */, - xcb_input_device_id_t deviceid /**< */, - uint16_t num_modifiers /**< */, - uint16_t mask_len /**< */, - uint8_t grab_type /**< */, - uint8_t grab_mode /**< */, - uint8_t paired_device_mode /**< */, - uint8_t owner_events /**< */, - const uint32_t *mask /**< */, - const uint32_t *modifiers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_PASSIVE_GRAB_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[8]; - xcb_input_xi_passive_grab_device_cookie_t xcb_ret; - xcb_input_xi_passive_grab_device_request_t xcb_out; - - xcb_out.time = time; - xcb_out.grab_window = grab_window; - xcb_out.cursor = cursor; - xcb_out.detail = detail; - xcb_out.deviceid = deviceid; - xcb_out.num_modifiers = num_modifiers; - xcb_out.mask_len = mask_len; - xcb_out.grab_type = grab_type; - xcb_out.grab_mode = grab_mode; - xcb_out.paired_device_mode = paired_device_mode; - xcb_out.owner_events = owner_events; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t mask */ - xcb_parts[4].iov_base = (char *) mask; - xcb_parts[4].iov_len = mask_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* uint32_t modifiers */ - xcb_parts[6].iov_base = (char *) modifiers; - xcb_parts[6].iov_len = num_modifiers * sizeof(uint32_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_xi_passive_grab_device_cookie_t -xcb_input_xi_passive_grab_device_unchecked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_window_t grab_window /**< */, - xcb_cursor_t cursor /**< */, - uint32_t detail /**< */, - xcb_input_device_id_t deviceid /**< */, - uint16_t num_modifiers /**< */, - uint16_t mask_len /**< */, - uint8_t grab_type /**< */, - uint8_t grab_mode /**< */, - uint8_t paired_device_mode /**< */, - uint8_t owner_events /**< */, - const uint32_t *mask /**< */, - const uint32_t *modifiers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_PASSIVE_GRAB_DEVICE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[8]; - xcb_input_xi_passive_grab_device_cookie_t xcb_ret; - xcb_input_xi_passive_grab_device_request_t xcb_out; - - xcb_out.time = time; - xcb_out.grab_window = grab_window; - xcb_out.cursor = cursor; - xcb_out.detail = detail; - xcb_out.deviceid = deviceid; - xcb_out.num_modifiers = num_modifiers; - xcb_out.mask_len = mask_len; - xcb_out.grab_type = grab_type; - xcb_out.grab_mode = grab_mode; - xcb_out.paired_device_mode = paired_device_mode; - xcb_out.owner_events = owner_events; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t mask */ - xcb_parts[4].iov_base = (char *) mask; - xcb_parts[4].iov_len = mask_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* uint32_t modifiers */ - xcb_parts[6].iov_base = (char *) modifiers; - xcb_parts[6].iov_len = num_modifiers * sizeof(uint32_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_grab_modifier_info_t * -xcb_input_xi_passive_grab_device_modifiers (const xcb_input_xi_passive_grab_device_reply_t *R /**< */) -{ - return (xcb_input_grab_modifier_info_t *) (R + 1); -} - -int -xcb_input_xi_passive_grab_device_modifiers_length (const xcb_input_xi_passive_grab_device_reply_t *R /**< */) -{ - return R->num_modifiers; -} - -xcb_input_grab_modifier_info_iterator_t -xcb_input_xi_passive_grab_device_modifiers_iterator (const xcb_input_xi_passive_grab_device_reply_t *R /**< */) -{ - xcb_input_grab_modifier_info_iterator_t i; - i.data = (xcb_input_grab_modifier_info_t *) (R + 1); - i.rem = R->num_modifiers; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_xi_passive_grab_device_reply_t * -xcb_input_xi_passive_grab_device_reply (xcb_connection_t *c /**< */, - xcb_input_xi_passive_grab_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_xi_passive_grab_device_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_xi_passive_ungrab_device_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_xi_passive_ungrab_device_request_t *_aux = (xcb_input_xi_passive_ungrab_device_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_xi_passive_ungrab_device_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* modifiers */ - xcb_block_len += _aux->num_modifiers * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_input_xi_passive_ungrab_device_checked (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint32_t detail /**< */, - xcb_input_device_id_t deviceid /**< */, - uint16_t num_modifiers /**< */, - uint8_t grab_type /**< */, - const uint32_t *modifiers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_PASSIVE_UNGRAB_DEVICE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_passive_ungrab_device_request_t xcb_out; - - xcb_out.grab_window = grab_window; - xcb_out.detail = detail; - xcb_out.deviceid = deviceid; - xcb_out.num_modifiers = num_modifiers; - xcb_out.grab_type = grab_type; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t modifiers */ - xcb_parts[4].iov_base = (char *) modifiers; - xcb_parts[4].iov_len = num_modifiers * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_passive_ungrab_device (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint32_t detail /**< */, - xcb_input_device_id_t deviceid /**< */, - uint16_t num_modifiers /**< */, - uint8_t grab_type /**< */, - const uint32_t *modifiers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_PASSIVE_UNGRAB_DEVICE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_passive_ungrab_device_request_t xcb_out; - - xcb_out.grab_window = grab_window; - xcb_out.detail = detail; - xcb_out.deviceid = deviceid; - xcb_out.num_modifiers = num_modifiers; - xcb_out.grab_type = grab_type; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t modifiers */ - xcb_parts[4].iov_base = (char *) modifiers; - xcb_parts[4].iov_len = num_modifiers * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_xi_list_properties_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_xi_list_properties_reply_t *_aux = (xcb_input_xi_list_properties_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_xi_list_properties_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* properties */ - xcb_block_len += _aux->num_properties * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_xi_list_properties_cookie_t -xcb_input_xi_list_properties (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_LIST_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_list_properties_cookie_t xcb_ret; - xcb_input_xi_list_properties_request_t xcb_out; - - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_xi_list_properties_cookie_t -xcb_input_xi_list_properties_unchecked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_LIST_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_list_properties_cookie_t xcb_ret; - xcb_input_xi_list_properties_request_t xcb_out; - - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_atom_t * -xcb_input_xi_list_properties_properties (const xcb_input_xi_list_properties_reply_t *R /**< */) -{ - return (xcb_atom_t *) (R + 1); -} - -int -xcb_input_xi_list_properties_properties_length (const xcb_input_xi_list_properties_reply_t *R /**< */) -{ - return R->num_properties; -} - -xcb_generic_iterator_t -xcb_input_xi_list_properties_properties_end (const xcb_input_xi_list_properties_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_atom_t *) (R + 1)) + (R->num_properties); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_xi_list_properties_reply_t * -xcb_input_xi_list_properties_reply (xcb_connection_t *c /**< */, - xcb_input_xi_list_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_xi_list_properties_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -uint8_t * -xcb_input_xi_change_property_items_data_8 (const xcb_input_xi_change_property_items_t *S /**< */) -{ - return /* items */ S->data8; -} - -int -xcb_input_xi_change_property_items_data_8_length (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_xi_change_property_items_data_8_end (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data8 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint16_t * -xcb_input_xi_change_property_items_data_16 (const xcb_input_xi_change_property_items_t *S /**< */) -{ - return /* items */ S->data16; -} - -int -xcb_input_xi_change_property_items_data_16_length (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_xi_change_property_items_data_16_end (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data16 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint32_t * -xcb_input_xi_change_property_items_data_32 (const xcb_input_xi_change_property_items_t *S /**< */) -{ - return /* items */ S->data32; -} - -int -xcb_input_xi_change_property_items_data_32_length (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_xi_change_property_items_data_32_end (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data32 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_input_xi_change_property_items_serialize (void **_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - const xcb_input_xi_change_property_items_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[7]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(format & XCB_INPUT_PROPERTY_FORMAT_8_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data8 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data8; - xcb_block_len += num_items * sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_16_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data16 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data16; - xcb_block_len += num_items * sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_32_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data32 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data32; - xcb_block_len += num_items * sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; idata8 = (uint8_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_16_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data16 */ - _aux->data16 = (uint16_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_32_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data32 */ - _aux->data32 = (uint32_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_xi_change_property_items_sizeof (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */) -{ - xcb_input_xi_change_property_items_t _aux; - return xcb_input_xi_change_property_items_unpack(_buffer, num_items, format, &_aux); -} - -xcb_void_cookie_t -xcb_input_xi_change_property_checked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t format /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t num_items /**< */, - const void *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_CHANGE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_change_property_request_t xcb_out; - - xcb_out.deviceid = deviceid; - xcb_out.mode = mode; - xcb_out.format = format; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.num_items = num_items; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_xi_change_property_items_t items */ - xcb_parts[4].iov_base = (char *) items; - xcb_parts[4].iov_len = - xcb_input_xi_change_property_items_sizeof (items, num_items, format); - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_change_property (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t format /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t num_items /**< */, - const void *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_CHANGE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_change_property_request_t xcb_out; - - xcb_out.deviceid = deviceid; - xcb_out.mode = mode; - xcb_out.format = format; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.num_items = num_items; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_xi_change_property_items_t items */ - xcb_parts[4].iov_base = (char *) items; - xcb_parts[4].iov_len = - xcb_input_xi_change_property_items_sizeof (items, num_items, format); - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_change_property_aux_checked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t format /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t num_items /**< */, - const xcb_input_xi_change_property_items_t *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_CHANGE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_change_property_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.deviceid = deviceid; - xcb_out.mode = mode; - xcb_out.format = format; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.num_items = num_items; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_xi_change_property_items_t items */ - xcb_parts[4].iov_len = - xcb_input_xi_change_property_items_serialize (&xcb_aux0, num_items, format, items); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_change_property_aux (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t format /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t num_items /**< */, - const xcb_input_xi_change_property_items_t *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_CHANGE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_change_property_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.deviceid = deviceid; - xcb_out.mode = mode; - xcb_out.format = format; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.num_items = num_items; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_xi_change_property_items_t items */ - xcb_parts[4].iov_len = - xcb_input_xi_change_property_items_serialize (&xcb_aux0, num_items, format, items); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_delete_property_checked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_DELETE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_delete_property_request_t xcb_out; - - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_delete_property (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_DELETE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_delete_property_request_t xcb_out; - - xcb_out.deviceid = deviceid; - memset(xcb_out.pad0, 0, 2); - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_input_xi_get_property_items_data_8 (const xcb_input_xi_get_property_items_t *S /**< */) -{ - return /* items */ S->data8; -} - -int -xcb_input_xi_get_property_items_data_8_length (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_xi_get_property_items_data_8_end (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data8 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint16_t * -xcb_input_xi_get_property_items_data_16 (const xcb_input_xi_get_property_items_t *S /**< */) -{ - return /* items */ S->data16; -} - -int -xcb_input_xi_get_property_items_data_16_length (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_xi_get_property_items_data_16_end (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data16 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint32_t * -xcb_input_xi_get_property_items_data_32 (const xcb_input_xi_get_property_items_t *S /**< */) -{ - return /* items */ S->data32; -} - -int -xcb_input_xi_get_property_items_data_32_length (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */) -{ - return R->num_items; -} - -xcb_generic_iterator_t -xcb_input_xi_get_property_items_data_32_end (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* items */ S->data32 + R->num_items; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_input_xi_get_property_items_serialize (void **_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - const xcb_input_xi_get_property_items_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[7]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(format & XCB_INPUT_PROPERTY_FORMAT_8_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data8 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data8; - xcb_block_len += num_items * sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_16_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data16 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data16; - xcb_block_len += num_items * sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_32_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data32 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->data32; - xcb_block_len += num_items * sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = num_items * sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; idata8 = (uint8_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_16_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data16 */ - _aux->data16 = (uint16_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint16_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint16_t); - } - if(format & XCB_INPUT_PROPERTY_FORMAT_32_BITS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data32 */ - _aux->data32 = (uint32_t *)xcb_tmp; - xcb_block_len += num_items * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_xi_get_property_items_sizeof (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */) -{ - xcb_input_xi_get_property_items_t _aux; - return xcb_input_xi_get_property_items_unpack(_buffer, num_items, format, &_aux); -} - -xcb_input_xi_get_property_cookie_t -xcb_input_xi_get_property (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t _delete /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t offset /**< */, - uint32_t len /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_GET_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_get_property_cookie_t xcb_ret; - xcb_input_xi_get_property_request_t xcb_out; - - xcb_out.deviceid = deviceid; - xcb_out._delete = _delete; - xcb_out.pad0 = 0; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.offset = offset; - xcb_out.len = len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_xi_get_property_cookie_t -xcb_input_xi_get_property_unchecked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t _delete /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t offset /**< */, - uint32_t len /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_GET_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_get_property_cookie_t xcb_ret; - xcb_input_xi_get_property_request_t xcb_out; - - xcb_out.deviceid = deviceid; - xcb_out._delete = _delete; - xcb_out.pad0 = 0; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.offset = offset; - xcb_out.len = len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void * -xcb_input_xi_get_property_items (const xcb_input_xi_get_property_reply_t *R /**< */) -{ - return (void *) (R + 1); -} - -xcb_input_xi_get_property_reply_t * -xcb_input_xi_get_property_reply (xcb_connection_t *c /**< */, - xcb_input_xi_get_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_xi_get_property_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_input_xi_get_selected_events_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_xi_get_selected_events_reply_t *_aux = (xcb_input_xi_get_selected_events_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_input_xi_get_selected_events_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* masks */ - for(i=0; i<_aux->num_masks; i++) { - xcb_tmp_len = xcb_input_event_mask_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_input_event_mask_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_input_xi_get_selected_events_cookie_t -xcb_input_xi_get_selected_events (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_GET_SELECTED_EVENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_get_selected_events_cookie_t xcb_ret; - xcb_input_xi_get_selected_events_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_input_xi_get_selected_events_cookie_t -xcb_input_xi_get_selected_events_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_GET_SELECTED_EVENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_input_xi_get_selected_events_cookie_t xcb_ret; - xcb_input_xi_get_selected_events_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_xi_get_selected_events_masks_length (const xcb_input_xi_get_selected_events_reply_t *R /**< */) -{ - return R->num_masks; -} - -xcb_input_event_mask_iterator_t -xcb_input_xi_get_selected_events_masks_iterator (const xcb_input_xi_get_selected_events_reply_t *R /**< */) -{ - xcb_input_event_mask_iterator_t i; - i.data = (xcb_input_event_mask_t *) (R + 1); - i.rem = R->num_masks; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_input_xi_get_selected_events_reply_t * -xcb_input_xi_get_selected_events_reply (xcb_connection_t *c /**< */, - xcb_input_xi_get_selected_events_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_input_xi_get_selected_events_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -void -xcb_input_barrier_release_pointer_info_next (xcb_input_barrier_release_pointer_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_barrier_release_pointer_info_t); -} - -xcb_generic_iterator_t -xcb_input_barrier_release_pointer_info_end (xcb_input_barrier_release_pointer_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_xi_barrier_release_pointer_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_xi_barrier_release_pointer_request_t *_aux = (xcb_input_xi_barrier_release_pointer_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_xi_barrier_release_pointer_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* barriers */ - xcb_block_len += _aux->num_barriers * sizeof(xcb_input_barrier_release_pointer_info_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_barrier_release_pointer_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_input_xi_barrier_release_pointer_checked (xcb_connection_t *c /**< */, - uint32_t num_barriers /**< */, - const xcb_input_barrier_release_pointer_info_t *barriers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_BARRIER_RELEASE_POINTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_barrier_release_pointer_request_t xcb_out; - - xcb_out.num_barriers = num_barriers; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_barrier_release_pointer_info_t barriers */ - xcb_parts[4].iov_base = (char *) barriers; - xcb_parts[4].iov_len = num_barriers * sizeof(xcb_input_barrier_release_pointer_info_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_input_xi_barrier_release_pointer (xcb_connection_t *c /**< */, - uint32_t num_barriers /**< */, - const xcb_input_barrier_release_pointer_info_t *barriers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_input_id, - /* opcode */ XCB_INPUT_XI_BARRIER_RELEASE_POINTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_input_xi_barrier_release_pointer_request_t xcb_out; - - xcb_out.num_barriers = num_barriers; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_input_barrier_release_pointer_info_t barriers */ - xcb_parts[4].iov_base = (char *) barriers; - xcb_parts[4].iov_len = num_barriers * sizeof(xcb_input_barrier_release_pointer_info_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_input_device_changed_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_device_changed_event_t *_aux = (xcb_input_device_changed_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_input_device_changed_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* classes */ - for(i=0; i<_aux->num_classes; i++) { - xcb_tmp_len = xcb_input_device_class_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_input_device_class_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_key_press_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_key_press_event_t *_aux = (xcb_input_key_press_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_key_press_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* button_mask */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_key_release_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_key_release_event_t *_aux = (xcb_input_key_release_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_key_release_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* button_mask */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_button_press_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_button_press_event_t *_aux = (xcb_input_button_press_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_button_press_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* button_mask */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_button_release_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_button_release_event_t *_aux = (xcb_input_button_release_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_button_release_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* button_mask */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_motion_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_motion_event_t *_aux = (xcb_input_motion_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_motion_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* button_mask */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_enter_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_enter_event_t *_aux = (xcb_input_enter_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_enter_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* buttons */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_leave_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_leave_event_t *_aux = (xcb_input_leave_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_leave_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* buttons */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_focus_in_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_focus_in_event_t *_aux = (xcb_input_focus_in_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_focus_in_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* buttons */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_focus_out_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_focus_out_event_t *_aux = (xcb_input_focus_out_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_focus_out_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* buttons */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -void -xcb_input_hierarchy_info_next (xcb_input_hierarchy_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_input_hierarchy_info_t); -} - -xcb_generic_iterator_t -xcb_input_hierarchy_info_end (xcb_input_hierarchy_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_input_hierarchy_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_hierarchy_event_t *_aux = (xcb_input_hierarchy_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_hierarchy_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* infos */ - xcb_block_len += _aux->num_infos * sizeof(xcb_input_hierarchy_info_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_input_hierarchy_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_raw_key_press_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_raw_key_press_event_t *_aux = (xcb_input_raw_key_press_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_raw_key_press_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_raw_key_release_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_raw_key_release_event_t *_aux = (xcb_input_raw_key_release_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_raw_key_release_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_raw_button_press_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_raw_button_press_event_t *_aux = (xcb_input_raw_button_press_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_raw_button_press_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_raw_button_release_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_raw_button_release_event_t *_aux = (xcb_input_raw_button_release_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_raw_button_release_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_raw_motion_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_raw_motion_event_t *_aux = (xcb_input_raw_motion_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_raw_motion_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_touch_begin_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_touch_begin_event_t *_aux = (xcb_input_touch_begin_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_touch_begin_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* button_mask */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_touch_update_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_touch_update_event_t *_aux = (xcb_input_touch_update_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_touch_update_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* button_mask */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_touch_end_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_touch_end_event_t *_aux = (xcb_input_touch_end_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_touch_end_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* button_mask */ - xcb_block_len += _aux->buttons_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_raw_touch_begin_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_raw_touch_begin_event_t *_aux = (xcb_input_raw_touch_begin_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_raw_touch_begin_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_raw_touch_update_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_raw_touch_update_event_t *_aux = (xcb_input_raw_touch_update_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_raw_touch_update_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_input_raw_touch_end_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_input_raw_touch_end_event_t *_aux = (xcb_input_raw_touch_end_event_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_input_raw_touch_end_event_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* valuator_mask */ - xcb_block_len += _aux->valuators_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - diff --git a/external/mit/xorg/lib/libxcb/files/xinput.h b/external/mit/xorg/lib/libxcb/files/xinput.h deleted file mode 100644 index e972573dd..000000000 --- a/external/mit/xorg/lib/libxcb/files/xinput.h +++ /dev/null @@ -1,8619 +0,0 @@ -/* - * This file generated automatically from xinput.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Input_API XCB Input API - * @brief Input XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XINPUT_H -#define __XINPUT_H - -#include "xcb.h" -#include "xfixes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_INPUT_MAJOR_VERSION 2 -#define XCB_INPUT_MINOR_VERSION 3 - -extern xcb_extension_t xcb_input_id; - -typedef uint32_t xcb_input_event_class_t; - -/** - * @brief xcb_input_event_class_iterator_t - **/ -typedef struct xcb_input_event_class_iterator_t { - xcb_input_event_class_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_event_class_iterator_t; - -typedef uint8_t xcb_input_key_code_t; - -/** - * @brief xcb_input_key_code_iterator_t - **/ -typedef struct xcb_input_key_code_iterator_t { - xcb_input_key_code_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_key_code_iterator_t; - -typedef uint16_t xcb_input_device_id_t; - -/** - * @brief xcb_input_device_id_iterator_t - **/ -typedef struct xcb_input_device_id_iterator_t { - xcb_input_device_id_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_id_iterator_t; - -typedef int32_t xcb_input_fp1616_t; - -/** - * @brief xcb_input_fp1616_iterator_t - **/ -typedef struct xcb_input_fp1616_iterator_t { - xcb_input_fp1616_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_fp1616_iterator_t; - -/** - * @brief xcb_input_fp3232_t - **/ -typedef struct xcb_input_fp3232_t { - int32_t integral; /**< */ - uint32_t frac; /**< */ -} xcb_input_fp3232_t; - -/** - * @brief xcb_input_fp3232_iterator_t - **/ -typedef struct xcb_input_fp3232_iterator_t { - xcb_input_fp3232_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_fp3232_iterator_t; - -/** - * @brief xcb_input_get_extension_version_cookie_t - **/ -typedef struct xcb_input_get_extension_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_get_extension_version_cookie_t; - -/** Opcode for xcb_input_get_extension_version. */ -#define XCB_INPUT_GET_EXTENSION_VERSION 1 - -/** - * @brief xcb_input_get_extension_version_request_t - **/ -typedef struct xcb_input_get_extension_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t name_len; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_get_extension_version_request_t; - -/** - * @brief xcb_input_get_extension_version_reply_t - **/ -typedef struct xcb_input_get_extension_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t server_major; /**< */ - uint16_t server_minor; /**< */ - uint8_t present; /**< */ - uint8_t pad1[19]; /**< */ -} xcb_input_get_extension_version_reply_t; - -typedef enum xcb_input_device_use_t { - XCB_INPUT_DEVICE_USE_IS_X_POINTER = 0, - XCB_INPUT_DEVICE_USE_IS_X_KEYBOARD = 1, - XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_DEVICE = 2, - XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_KEYBOARD = 3, - XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_POINTER = 4 -} xcb_input_device_use_t; - -typedef enum xcb_input_input_class_t { - XCB_INPUT_INPUT_CLASS_KEY = 0, - XCB_INPUT_INPUT_CLASS_BUTTON = 1, - XCB_INPUT_INPUT_CLASS_VALUATOR = 2, - XCB_INPUT_INPUT_CLASS_FEEDBACK = 3, - XCB_INPUT_INPUT_CLASS_PROXIMITY = 4, - XCB_INPUT_INPUT_CLASS_FOCUS = 5, - XCB_INPUT_INPUT_CLASS_OTHER = 6 -} xcb_input_input_class_t; - -typedef enum xcb_input_valuator_mode_t { - XCB_INPUT_VALUATOR_MODE_RELATIVE = 0, - XCB_INPUT_VALUATOR_MODE_ABSOLUTE = 1 -} xcb_input_valuator_mode_t; - -/** - * @brief xcb_input_device_info_t - **/ -typedef struct xcb_input_device_info_t { - xcb_atom_t device_type; /**< */ - uint8_t device_id; /**< */ - uint8_t num_class_info; /**< */ - uint8_t device_use; /**< */ - uint8_t pad0; /**< */ -} xcb_input_device_info_t; - -/** - * @brief xcb_input_device_info_iterator_t - **/ -typedef struct xcb_input_device_info_iterator_t { - xcb_input_device_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_info_iterator_t; - -/** - * @brief xcb_input_key_info_t - **/ -typedef struct xcb_input_key_info_t { - uint8_t class_id; /**< */ - uint8_t len; /**< */ - xcb_input_key_code_t min_keycode; /**< */ - xcb_input_key_code_t max_keycode; /**< */ - uint16_t num_keys; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_key_info_t; - -/** - * @brief xcb_input_key_info_iterator_t - **/ -typedef struct xcb_input_key_info_iterator_t { - xcb_input_key_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_key_info_iterator_t; - -/** - * @brief xcb_input_button_info_t - **/ -typedef struct xcb_input_button_info_t { - uint8_t class_id; /**< */ - uint8_t len; /**< */ - uint16_t num_buttons; /**< */ -} xcb_input_button_info_t; - -/** - * @brief xcb_input_button_info_iterator_t - **/ -typedef struct xcb_input_button_info_iterator_t { - xcb_input_button_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_button_info_iterator_t; - -/** - * @brief xcb_input_axis_info_t - **/ -typedef struct xcb_input_axis_info_t { - uint32_t resolution; /**< */ - int32_t minimum; /**< */ - int32_t maximum; /**< */ -} xcb_input_axis_info_t; - -/** - * @brief xcb_input_axis_info_iterator_t - **/ -typedef struct xcb_input_axis_info_iterator_t { - xcb_input_axis_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_axis_info_iterator_t; - -/** - * @brief xcb_input_valuator_info_t - **/ -typedef struct xcb_input_valuator_info_t { - uint8_t class_id; /**< */ - uint8_t len; /**< */ - uint8_t axes_len; /**< */ - uint8_t mode; /**< */ - uint32_t motion_size; /**< */ -} xcb_input_valuator_info_t; - -/** - * @brief xcb_input_valuator_info_iterator_t - **/ -typedef struct xcb_input_valuator_info_iterator_t { - xcb_input_valuator_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_valuator_info_iterator_t; - -/** - * @brief xcb_input_input_info_t - **/ -typedef struct xcb_input_input_info_t { - uint8_t class_id; /**< */ - uint8_t len; /**< */ -} xcb_input_input_info_t; - -/** - * @brief xcb_input_input_info_iterator_t - **/ -typedef struct xcb_input_input_info_iterator_t { - xcb_input_input_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_input_info_iterator_t; - -/** - * @brief xcb_input_device_name_t - **/ -typedef struct xcb_input_device_name_t { - uint8_t len; /**< */ -} xcb_input_device_name_t; - -/** - * @brief xcb_input_device_name_iterator_t - **/ -typedef struct xcb_input_device_name_iterator_t { - xcb_input_device_name_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_name_iterator_t; - -/** - * @brief xcb_input_list_input_devices_cookie_t - **/ -typedef struct xcb_input_list_input_devices_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_list_input_devices_cookie_t; - -/** Opcode for xcb_input_list_input_devices. */ -#define XCB_INPUT_LIST_INPUT_DEVICES 2 - -/** - * @brief xcb_input_list_input_devices_request_t - **/ -typedef struct xcb_input_list_input_devices_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_input_list_input_devices_request_t; - -/** - * @brief xcb_input_list_input_devices_reply_t - **/ -typedef struct xcb_input_list_input_devices_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t devices_len; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_list_input_devices_reply_t; - -/** - * @brief xcb_input_input_class_info_t - **/ -typedef struct xcb_input_input_class_info_t { - uint8_t class_id; /**< */ - uint8_t event_type_base; /**< */ -} xcb_input_input_class_info_t; - -/** - * @brief xcb_input_input_class_info_iterator_t - **/ -typedef struct xcb_input_input_class_info_iterator_t { - xcb_input_input_class_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_input_class_info_iterator_t; - -/** - * @brief xcb_input_open_device_cookie_t - **/ -typedef struct xcb_input_open_device_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_open_device_cookie_t; - -/** Opcode for xcb_input_open_device. */ -#define XCB_INPUT_OPEN_DEVICE 3 - -/** - * @brief xcb_input_open_device_request_t - **/ -typedef struct xcb_input_open_device_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_open_device_request_t; - -/** - * @brief xcb_input_open_device_reply_t - **/ -typedef struct xcb_input_open_device_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t num_classes; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_open_device_reply_t; - -/** Opcode for xcb_input_close_device. */ -#define XCB_INPUT_CLOSE_DEVICE 4 - -/** - * @brief xcb_input_close_device_request_t - **/ -typedef struct xcb_input_close_device_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_close_device_request_t; - -/** - * @brief xcb_input_set_device_mode_cookie_t - **/ -typedef struct xcb_input_set_device_mode_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_set_device_mode_cookie_t; - -/** Opcode for xcb_input_set_device_mode. */ -#define XCB_INPUT_SET_DEVICE_MODE 5 - -/** - * @brief xcb_input_set_device_mode_request_t - **/ -typedef struct xcb_input_set_device_mode_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t mode; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_set_device_mode_request_t; - -/** - * @brief xcb_input_set_device_mode_reply_t - **/ -typedef struct xcb_input_set_device_mode_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t status; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_set_device_mode_reply_t; - -/** Opcode for xcb_input_select_extension_event. */ -#define XCB_INPUT_SELECT_EXTENSION_EVENT 6 - -/** - * @brief xcb_input_select_extension_event_request_t - **/ -typedef struct xcb_input_select_extension_event_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint16_t num_classes; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_select_extension_event_request_t; - -/** - * @brief xcb_input_get_selected_extension_events_cookie_t - **/ -typedef struct xcb_input_get_selected_extension_events_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_get_selected_extension_events_cookie_t; - -/** Opcode for xcb_input_get_selected_extension_events. */ -#define XCB_INPUT_GET_SELECTED_EXTENSION_EVENTS 7 - -/** - * @brief xcb_input_get_selected_extension_events_request_t - **/ -typedef struct xcb_input_get_selected_extension_events_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_input_get_selected_extension_events_request_t; - -/** - * @brief xcb_input_get_selected_extension_events_reply_t - **/ -typedef struct xcb_input_get_selected_extension_events_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_this_classes; /**< */ - uint16_t num_all_classes; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_input_get_selected_extension_events_reply_t; - -typedef enum xcb_input_propagate_mode_t { - XCB_INPUT_PROPAGATE_MODE_ADD_TO_LIST = 0, - XCB_INPUT_PROPAGATE_MODE_DELETE_FROM_LIST = 1 -} xcb_input_propagate_mode_t; - -/** Opcode for xcb_input_change_device_dont_propagate_list. */ -#define XCB_INPUT_CHANGE_DEVICE_DONT_PROPAGATE_LIST 8 - -/** - * @brief xcb_input_change_device_dont_propagate_list_request_t - **/ -typedef struct xcb_input_change_device_dont_propagate_list_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint16_t num_classes; /**< */ - uint8_t mode; /**< */ - uint8_t pad0; /**< */ -} xcb_input_change_device_dont_propagate_list_request_t; - -/** - * @brief xcb_input_get_device_dont_propagate_list_cookie_t - **/ -typedef struct xcb_input_get_device_dont_propagate_list_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_get_device_dont_propagate_list_cookie_t; - -/** Opcode for xcb_input_get_device_dont_propagate_list. */ -#define XCB_INPUT_GET_DEVICE_DONT_PROPAGATE_LIST 9 - -/** - * @brief xcb_input_get_device_dont_propagate_list_request_t - **/ -typedef struct xcb_input_get_device_dont_propagate_list_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_input_get_device_dont_propagate_list_request_t; - -/** - * @brief xcb_input_get_device_dont_propagate_list_reply_t - **/ -typedef struct xcb_input_get_device_dont_propagate_list_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_classes; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_input_get_device_dont_propagate_list_reply_t; - -/** - * @brief xcb_input_device_time_coord_t - **/ -typedef struct xcb_input_device_time_coord_t { - xcb_timestamp_t time; /**< */ -} xcb_input_device_time_coord_t; - -/** - * @brief xcb_input_device_time_coord_iterator_t - **/ -typedef struct xcb_input_device_time_coord_iterator_t { - xcb_input_device_time_coord_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_time_coord_iterator_t; - -/** - * @brief xcb_input_get_device_motion_events_cookie_t - **/ -typedef struct xcb_input_get_device_motion_events_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_get_device_motion_events_cookie_t; - -/** Opcode for xcb_input_get_device_motion_events. */ -#define XCB_INPUT_GET_DEVICE_MOTION_EVENTS 10 - -/** - * @brief xcb_input_get_device_motion_events_request_t - **/ -typedef struct xcb_input_get_device_motion_events_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_timestamp_t start; /**< */ - xcb_timestamp_t stop; /**< */ - uint8_t device_id; /**< */ -} xcb_input_get_device_motion_events_request_t; - -/** - * @brief xcb_input_get_device_motion_events_reply_t - **/ -typedef struct xcb_input_get_device_motion_events_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_events; /**< */ - uint8_t num_axes; /**< */ - uint8_t device_mode; /**< */ - uint8_t pad1[18]; /**< */ -} xcb_input_get_device_motion_events_reply_t; - -/** - * @brief xcb_input_change_keyboard_device_cookie_t - **/ -typedef struct xcb_input_change_keyboard_device_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_change_keyboard_device_cookie_t; - -/** Opcode for xcb_input_change_keyboard_device. */ -#define XCB_INPUT_CHANGE_KEYBOARD_DEVICE 11 - -/** - * @brief xcb_input_change_keyboard_device_request_t - **/ -typedef struct xcb_input_change_keyboard_device_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_change_keyboard_device_request_t; - -/** - * @brief xcb_input_change_keyboard_device_reply_t - **/ -typedef struct xcb_input_change_keyboard_device_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t status; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_change_keyboard_device_reply_t; - -/** - * @brief xcb_input_change_pointer_device_cookie_t - **/ -typedef struct xcb_input_change_pointer_device_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_change_pointer_device_cookie_t; - -/** Opcode for xcb_input_change_pointer_device. */ -#define XCB_INPUT_CHANGE_POINTER_DEVICE 12 - -/** - * @brief xcb_input_change_pointer_device_request_t - **/ -typedef struct xcb_input_change_pointer_device_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t x_axis; /**< */ - uint8_t y_axis; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0; /**< */ -} xcb_input_change_pointer_device_request_t; - -/** - * @brief xcb_input_change_pointer_device_reply_t - **/ -typedef struct xcb_input_change_pointer_device_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t status; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_change_pointer_device_reply_t; - -/** - * @brief xcb_input_grab_device_cookie_t - **/ -typedef struct xcb_input_grab_device_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_grab_device_cookie_t; - -/** Opcode for xcb_input_grab_device. */ -#define XCB_INPUT_GRAB_DEVICE 13 - -/** - * @brief xcb_input_grab_device_request_t - **/ -typedef struct xcb_input_grab_device_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t grab_window; /**< */ - xcb_timestamp_t time; /**< */ - uint16_t num_classes; /**< */ - uint8_t this_device_mode; /**< */ - uint8_t other_device_mode; /**< */ - uint8_t owner_events; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_grab_device_request_t; - -/** - * @brief xcb_input_grab_device_reply_t - **/ -typedef struct xcb_input_grab_device_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t status; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_grab_device_reply_t; - -/** Opcode for xcb_input_ungrab_device. */ -#define XCB_INPUT_UNGRAB_DEVICE 14 - -/** - * @brief xcb_input_ungrab_device_request_t - **/ -typedef struct xcb_input_ungrab_device_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t device_id; /**< */ -} xcb_input_ungrab_device_request_t; - -/** Opcode for xcb_input_grab_device_key. */ -#define XCB_INPUT_GRAB_DEVICE_KEY 15 - -/** - * @brief xcb_input_grab_device_key_request_t - **/ -typedef struct xcb_input_grab_device_key_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t grab_window; /**< */ - uint16_t num_classes; /**< */ - uint16_t modifiers; /**< */ - uint8_t modifier_device; /**< */ - uint8_t grabbed_device; /**< */ - uint8_t key; /**< */ - uint8_t this_device_mode; /**< */ - uint8_t other_device_mode; /**< */ - uint8_t owner_events; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_grab_device_key_request_t; - -/** Opcode for xcb_input_ungrab_device_key. */ -#define XCB_INPUT_UNGRAB_DEVICE_KEY 16 - -/** - * @brief xcb_input_ungrab_device_key_request_t - **/ -typedef struct xcb_input_ungrab_device_key_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t grabWindow; /**< */ - uint16_t modifiers; /**< */ - uint8_t modifier_device; /**< */ - uint8_t key; /**< */ - uint8_t grabbed_device; /**< */ -} xcb_input_ungrab_device_key_request_t; - -/** Opcode for xcb_input_grab_device_button. */ -#define XCB_INPUT_GRAB_DEVICE_BUTTON 17 - -/** - * @brief xcb_input_grab_device_button_request_t - **/ -typedef struct xcb_input_grab_device_button_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t grab_window; /**< */ - uint8_t grabbed_device; /**< */ - uint8_t modifier_device; /**< */ - uint16_t num_classes; /**< */ - uint16_t modifiers; /**< */ - uint8_t this_device_mode; /**< */ - uint8_t other_device_mode; /**< */ - uint8_t button; /**< */ - uint8_t owner_events; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_grab_device_button_request_t; - -/** Opcode for xcb_input_ungrab_device_button. */ -#define XCB_INPUT_UNGRAB_DEVICE_BUTTON 18 - -/** - * @brief xcb_input_ungrab_device_button_request_t - **/ -typedef struct xcb_input_ungrab_device_button_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t grab_window; /**< */ - uint16_t modifiers; /**< */ - uint8_t modifier_device; /**< */ - uint8_t button; /**< */ - uint8_t grabbed_device; /**< */ -} xcb_input_ungrab_device_button_request_t; - -typedef enum xcb_input_device_input_mode_t { - XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_THIS_DEVICE = 0, - XCB_INPUT_DEVICE_INPUT_MODE_SYNC_THIS_DEVICE = 1, - XCB_INPUT_DEVICE_INPUT_MODE_REPLAY_THIS_DEVICE = 2, - XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_OTHER_DEVICES = 3, - XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_ALL = 4, - XCB_INPUT_DEVICE_INPUT_MODE_SYNC_ALL = 5 -} xcb_input_device_input_mode_t; - -/** Opcode for xcb_input_allow_device_events. */ -#define XCB_INPUT_ALLOW_DEVICE_EVENTS 19 - -/** - * @brief xcb_input_allow_device_events_request_t - **/ -typedef struct xcb_input_allow_device_events_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t mode; /**< */ - uint8_t device_id; /**< */ -} xcb_input_allow_device_events_request_t; - -/** - * @brief xcb_input_get_device_focus_cookie_t - **/ -typedef struct xcb_input_get_device_focus_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_get_device_focus_cookie_t; - -/** Opcode for xcb_input_get_device_focus. */ -#define XCB_INPUT_GET_DEVICE_FOCUS 20 - -/** - * @brief xcb_input_get_device_focus_request_t - **/ -typedef struct xcb_input_get_device_focus_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_get_device_focus_request_t; - -/** - * @brief xcb_input_get_device_focus_reply_t - **/ -typedef struct xcb_input_get_device_focus_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t focus; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t revert_to; /**< */ - uint8_t pad1[15]; /**< */ -} xcb_input_get_device_focus_reply_t; - -/** Opcode for xcb_input_set_device_focus. */ -#define XCB_INPUT_SET_DEVICE_FOCUS 21 - -/** - * @brief xcb_input_set_device_focus_request_t - **/ -typedef struct xcb_input_set_device_focus_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t focus; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t revert_to; /**< */ - uint8_t device_id; /**< */ -} xcb_input_set_device_focus_request_t; - -typedef enum xcb_input_feedback_class_t { - XCB_INPUT_FEEDBACK_CLASS_KEYBOARD = 0, - XCB_INPUT_FEEDBACK_CLASS_POINTER = 1, - XCB_INPUT_FEEDBACK_CLASS_STRING = 2, - XCB_INPUT_FEEDBACK_CLASS_INTEGER = 3, - XCB_INPUT_FEEDBACK_CLASS_LED = 4, - XCB_INPUT_FEEDBACK_CLASS_BELL = 5 -} xcb_input_feedback_class_t; - -/** - * @brief xcb_input_kbd_feedback_state_t - **/ -typedef struct xcb_input_kbd_feedback_state_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - uint16_t pitch; /**< */ - uint16_t duration; /**< */ - uint32_t led_mask; /**< */ - uint32_t led_values; /**< */ - uint8_t global_auto_repeat; /**< */ - uint8_t click; /**< */ - uint8_t percent; /**< */ - uint8_t pad0; /**< */ - uint8_t auto_repeats[32]; /**< */ -} xcb_input_kbd_feedback_state_t; - -/** - * @brief xcb_input_kbd_feedback_state_iterator_t - **/ -typedef struct xcb_input_kbd_feedback_state_iterator_t { - xcb_input_kbd_feedback_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_kbd_feedback_state_iterator_t; - -/** - * @brief xcb_input_ptr_feedback_state_t - **/ -typedef struct xcb_input_ptr_feedback_state_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - uint8_t pad0[2]; /**< */ - uint16_t accel_num; /**< */ - uint16_t accel_denom; /**< */ - uint16_t threshold; /**< */ -} xcb_input_ptr_feedback_state_t; - -/** - * @brief xcb_input_ptr_feedback_state_iterator_t - **/ -typedef struct xcb_input_ptr_feedback_state_iterator_t { - xcb_input_ptr_feedback_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_ptr_feedback_state_iterator_t; - -/** - * @brief xcb_input_integer_feedback_state_t - **/ -typedef struct xcb_input_integer_feedback_state_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - uint32_t resolution; /**< */ - int32_t min_value; /**< */ - int32_t max_value; /**< */ -} xcb_input_integer_feedback_state_t; - -/** - * @brief xcb_input_integer_feedback_state_iterator_t - **/ -typedef struct xcb_input_integer_feedback_state_iterator_t { - xcb_input_integer_feedback_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_integer_feedback_state_iterator_t; - -/** - * @brief xcb_input_string_feedback_state_t - **/ -typedef struct xcb_input_string_feedback_state_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - uint16_t max_symbols; /**< */ - uint16_t num_keysyms; /**< */ -} xcb_input_string_feedback_state_t; - -/** - * @brief xcb_input_string_feedback_state_iterator_t - **/ -typedef struct xcb_input_string_feedback_state_iterator_t { - xcb_input_string_feedback_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_string_feedback_state_iterator_t; - -/** - * @brief xcb_input_bell_feedback_state_t - **/ -typedef struct xcb_input_bell_feedback_state_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - uint8_t percent; /**< */ - uint8_t pad0[3]; /**< */ - uint16_t pitch; /**< */ - uint16_t duration; /**< */ -} xcb_input_bell_feedback_state_t; - -/** - * @brief xcb_input_bell_feedback_state_iterator_t - **/ -typedef struct xcb_input_bell_feedback_state_iterator_t { - xcb_input_bell_feedback_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_bell_feedback_state_iterator_t; - -/** - * @brief xcb_input_led_feedback_state_t - **/ -typedef struct xcb_input_led_feedback_state_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - uint32_t led_mask; /**< */ - uint32_t led_values; /**< */ -} xcb_input_led_feedback_state_t; - -/** - * @brief xcb_input_led_feedback_state_iterator_t - **/ -typedef struct xcb_input_led_feedback_state_iterator_t { - xcb_input_led_feedback_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_led_feedback_state_iterator_t; - -/** - * @brief xcb_input_feedback_state_t - **/ -typedef struct xcb_input_feedback_state_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ -} xcb_input_feedback_state_t; - -/** - * @brief xcb_input_feedback_state_iterator_t - **/ -typedef struct xcb_input_feedback_state_iterator_t { - xcb_input_feedback_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_feedback_state_iterator_t; - -/** - * @brief xcb_input_get_feedback_control_cookie_t - **/ -typedef struct xcb_input_get_feedback_control_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_get_feedback_control_cookie_t; - -/** Opcode for xcb_input_get_feedback_control. */ -#define XCB_INPUT_GET_FEEDBACK_CONTROL 22 - -/** - * @brief xcb_input_get_feedback_control_request_t - **/ -typedef struct xcb_input_get_feedback_control_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_get_feedback_control_request_t; - -/** - * @brief xcb_input_get_feedback_control_reply_t - **/ -typedef struct xcb_input_get_feedback_control_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_feedbacks; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_input_get_feedback_control_reply_t; - -/** - * @brief xcb_input_kbd_feedback_ctl_t - **/ -typedef struct xcb_input_kbd_feedback_ctl_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - xcb_input_key_code_t key; /**< */ - uint8_t auto_repeat_mode; /**< */ - int8_t key_click_percent; /**< */ - int8_t bell_percent; /**< */ - int16_t bell_pitch; /**< */ - int16_t bell_duration; /**< */ - uint32_t led_mask; /**< */ - uint32_t led_values; /**< */ -} xcb_input_kbd_feedback_ctl_t; - -/** - * @brief xcb_input_kbd_feedback_ctl_iterator_t - **/ -typedef struct xcb_input_kbd_feedback_ctl_iterator_t { - xcb_input_kbd_feedback_ctl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_kbd_feedback_ctl_iterator_t; - -/** - * @brief xcb_input_ptr_feedback_ctl_t - **/ -typedef struct xcb_input_ptr_feedback_ctl_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - uint8_t pad0[2]; /**< */ - int16_t num; /**< */ - int16_t denom; /**< */ - int16_t threshold; /**< */ -} xcb_input_ptr_feedback_ctl_t; - -/** - * @brief xcb_input_ptr_feedback_ctl_iterator_t - **/ -typedef struct xcb_input_ptr_feedback_ctl_iterator_t { - xcb_input_ptr_feedback_ctl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_ptr_feedback_ctl_iterator_t; - -/** - * @brief xcb_input_integer_feedback_ctl_t - **/ -typedef struct xcb_input_integer_feedback_ctl_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - int32_t int_to_display; /**< */ -} xcb_input_integer_feedback_ctl_t; - -/** - * @brief xcb_input_integer_feedback_ctl_iterator_t - **/ -typedef struct xcb_input_integer_feedback_ctl_iterator_t { - xcb_input_integer_feedback_ctl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_integer_feedback_ctl_iterator_t; - -/** - * @brief xcb_input_string_feedback_ctl_t - **/ -typedef struct xcb_input_string_feedback_ctl_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - uint8_t pad0[2]; /**< */ - uint16_t num_keysyms; /**< */ -} xcb_input_string_feedback_ctl_t; - -/** - * @brief xcb_input_string_feedback_ctl_iterator_t - **/ -typedef struct xcb_input_string_feedback_ctl_iterator_t { - xcb_input_string_feedback_ctl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_string_feedback_ctl_iterator_t; - -/** - * @brief xcb_input_bell_feedback_ctl_t - **/ -typedef struct xcb_input_bell_feedback_ctl_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - int8_t percent; /**< */ - uint8_t pad0[3]; /**< */ - int16_t pitch; /**< */ - int16_t duration; /**< */ -} xcb_input_bell_feedback_ctl_t; - -/** - * @brief xcb_input_bell_feedback_ctl_iterator_t - **/ -typedef struct xcb_input_bell_feedback_ctl_iterator_t { - xcb_input_bell_feedback_ctl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_bell_feedback_ctl_iterator_t; - -/** - * @brief xcb_input_led_feedback_ctl_t - **/ -typedef struct xcb_input_led_feedback_ctl_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ - uint32_t led_mask; /**< */ - uint32_t led_values; /**< */ -} xcb_input_led_feedback_ctl_t; - -/** - * @brief xcb_input_led_feedback_ctl_iterator_t - **/ -typedef struct xcb_input_led_feedback_ctl_iterator_t { - xcb_input_led_feedback_ctl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_led_feedback_ctl_iterator_t; - -/** - * @brief xcb_input_feedback_ctl_t - **/ -typedef struct xcb_input_feedback_ctl_t { - uint8_t class_id; /**< */ - uint8_t feedback_id; /**< */ - uint16_t len; /**< */ -} xcb_input_feedback_ctl_t; - -/** - * @brief xcb_input_feedback_ctl_iterator_t - **/ -typedef struct xcb_input_feedback_ctl_iterator_t { - xcb_input_feedback_ctl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_feedback_ctl_iterator_t; - -/** Opcode for xcb_input_change_feedback_control. */ -#define XCB_INPUT_CHANGE_FEEDBACK_CONTROL 23 - -/** - * @brief xcb_input_change_feedback_control_request_t - **/ -typedef struct xcb_input_change_feedback_control_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t mask; /**< */ - uint8_t device_id; /**< */ - uint8_t feedback_id; /**< */ -} xcb_input_change_feedback_control_request_t; - -/** - * @brief xcb_input_get_device_key_mapping_cookie_t - **/ -typedef struct xcb_input_get_device_key_mapping_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_get_device_key_mapping_cookie_t; - -/** Opcode for xcb_input_get_device_key_mapping. */ -#define XCB_INPUT_GET_DEVICE_KEY_MAPPING 24 - -/** - * @brief xcb_input_get_device_key_mapping_request_t - **/ -typedef struct xcb_input_get_device_key_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - xcb_input_key_code_t first_keycode; /**< */ - uint8_t count; /**< */ -} xcb_input_get_device_key_mapping_request_t; - -/** - * @brief xcb_input_get_device_key_mapping_reply_t - **/ -typedef struct xcb_input_get_device_key_mapping_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t keysyms_per_keycode; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_get_device_key_mapping_reply_t; - -/** Opcode for xcb_input_change_device_key_mapping. */ -#define XCB_INPUT_CHANGE_DEVICE_KEY_MAPPING 25 - -/** - * @brief xcb_input_change_device_key_mapping_request_t - **/ -typedef struct xcb_input_change_device_key_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - xcb_input_key_code_t first_keycode; /**< */ - uint8_t keysyms_per_keycode; /**< */ - uint8_t keycode_count; /**< */ -} xcb_input_change_device_key_mapping_request_t; - -/** - * @brief xcb_input_get_device_modifier_mapping_cookie_t - **/ -typedef struct xcb_input_get_device_modifier_mapping_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_get_device_modifier_mapping_cookie_t; - -/** Opcode for xcb_input_get_device_modifier_mapping. */ -#define XCB_INPUT_GET_DEVICE_MODIFIER_MAPPING 26 - -/** - * @brief xcb_input_get_device_modifier_mapping_request_t - **/ -typedef struct xcb_input_get_device_modifier_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_get_device_modifier_mapping_request_t; - -/** - * @brief xcb_input_get_device_modifier_mapping_reply_t - **/ -typedef struct xcb_input_get_device_modifier_mapping_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t keycodes_per_modifier; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_get_device_modifier_mapping_reply_t; - -/** - * @brief xcb_input_set_device_modifier_mapping_cookie_t - **/ -typedef struct xcb_input_set_device_modifier_mapping_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_set_device_modifier_mapping_cookie_t; - -/** Opcode for xcb_input_set_device_modifier_mapping. */ -#define XCB_INPUT_SET_DEVICE_MODIFIER_MAPPING 27 - -/** - * @brief xcb_input_set_device_modifier_mapping_request_t - **/ -typedef struct xcb_input_set_device_modifier_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t keycodes_per_modifier; /**< */ - uint8_t pad0; /**< */ -} xcb_input_set_device_modifier_mapping_request_t; - -/** - * @brief xcb_input_set_device_modifier_mapping_reply_t - **/ -typedef struct xcb_input_set_device_modifier_mapping_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t status; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_set_device_modifier_mapping_reply_t; - -/** - * @brief xcb_input_get_device_button_mapping_cookie_t - **/ -typedef struct xcb_input_get_device_button_mapping_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_get_device_button_mapping_cookie_t; - -/** Opcode for xcb_input_get_device_button_mapping. */ -#define XCB_INPUT_GET_DEVICE_BUTTON_MAPPING 28 - -/** - * @brief xcb_input_get_device_button_mapping_request_t - **/ -typedef struct xcb_input_get_device_button_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_get_device_button_mapping_request_t; - -/** - * @brief xcb_input_get_device_button_mapping_reply_t - **/ -typedef struct xcb_input_get_device_button_mapping_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t map_size; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_get_device_button_mapping_reply_t; - -/** - * @brief xcb_input_set_device_button_mapping_cookie_t - **/ -typedef struct xcb_input_set_device_button_mapping_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_set_device_button_mapping_cookie_t; - -/** Opcode for xcb_input_set_device_button_mapping. */ -#define XCB_INPUT_SET_DEVICE_BUTTON_MAPPING 29 - -/** - * @brief xcb_input_set_device_button_mapping_request_t - **/ -typedef struct xcb_input_set_device_button_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t map_size; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_set_device_button_mapping_request_t; - -/** - * @brief xcb_input_set_device_button_mapping_reply_t - **/ -typedef struct xcb_input_set_device_button_mapping_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t status; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_set_device_button_mapping_reply_t; - -/** - * @brief xcb_input_key_state_t - **/ -typedef struct xcb_input_key_state_t { - uint8_t class_id; /**< */ - uint8_t len; /**< */ - uint8_t num_keys; /**< */ - uint8_t pad0; /**< */ - uint8_t keys[32]; /**< */ -} xcb_input_key_state_t; - -/** - * @brief xcb_input_key_state_iterator_t - **/ -typedef struct xcb_input_key_state_iterator_t { - xcb_input_key_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_key_state_iterator_t; - -/** - * @brief xcb_input_button_state_t - **/ -typedef struct xcb_input_button_state_t { - uint8_t class_id; /**< */ - uint8_t len; /**< */ - uint8_t num_buttons; /**< */ - uint8_t pad0; /**< */ - uint8_t buttons[32]; /**< */ -} xcb_input_button_state_t; - -/** - * @brief xcb_input_button_state_iterator_t - **/ -typedef struct xcb_input_button_state_iterator_t { - xcb_input_button_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_button_state_iterator_t; - -/** - * @brief xcb_input_valuator_state_t - **/ -typedef struct xcb_input_valuator_state_t { - uint8_t class_id; /**< */ - uint8_t len; /**< */ - uint8_t num_valuators; /**< */ - uint8_t mode; /**< */ -} xcb_input_valuator_state_t; - -/** - * @brief xcb_input_valuator_state_iterator_t - **/ -typedef struct xcb_input_valuator_state_iterator_t { - xcb_input_valuator_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_valuator_state_iterator_t; - -/** - * @brief xcb_input_input_state_t - **/ -typedef struct xcb_input_input_state_t { - uint8_t class_id; /**< */ - uint8_t len; /**< */ - uint8_t num_items; /**< */ - uint8_t pad0; /**< */ -} xcb_input_input_state_t; - -/** - * @brief xcb_input_input_state_iterator_t - **/ -typedef struct xcb_input_input_state_iterator_t { - xcb_input_input_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_input_state_iterator_t; - -/** - * @brief xcb_input_query_device_state_cookie_t - **/ -typedef struct xcb_input_query_device_state_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_query_device_state_cookie_t; - -/** Opcode for xcb_input_query_device_state. */ -#define XCB_INPUT_QUERY_DEVICE_STATE 30 - -/** - * @brief xcb_input_query_device_state_request_t - **/ -typedef struct xcb_input_query_device_state_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_query_device_state_request_t; - -/** - * @brief xcb_input_query_device_state_reply_t - **/ -typedef struct xcb_input_query_device_state_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t num_classes; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_query_device_state_reply_t; - -/** Opcode for xcb_input_send_extension_event. */ -#define XCB_INPUT_SEND_EXTENSION_EVENT 31 - -/** - * @brief xcb_input_send_extension_event_request_t - **/ -typedef struct xcb_input_send_extension_event_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t destination; /**< */ - uint8_t device_id; /**< */ - uint8_t propagate; /**< */ - uint16_t num_classes; /**< */ - uint8_t num_events; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_send_extension_event_request_t; - -/** Opcode for xcb_input_device_bell. */ -#define XCB_INPUT_DEVICE_BELL 32 - -/** - * @brief xcb_input_device_bell_request_t - **/ -typedef struct xcb_input_device_bell_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t feedback_id; /**< */ - uint8_t feedback_class; /**< */ - int8_t percent; /**< */ -} xcb_input_device_bell_request_t; - -/** - * @brief xcb_input_set_device_valuators_cookie_t - **/ -typedef struct xcb_input_set_device_valuators_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_set_device_valuators_cookie_t; - -/** Opcode for xcb_input_set_device_valuators. */ -#define XCB_INPUT_SET_DEVICE_VALUATORS 33 - -/** - * @brief xcb_input_set_device_valuators_request_t - **/ -typedef struct xcb_input_set_device_valuators_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t first_valuator; /**< */ - uint8_t num_valuators; /**< */ - uint8_t pad0; /**< */ -} xcb_input_set_device_valuators_request_t; - -/** - * @brief xcb_input_set_device_valuators_reply_t - **/ -typedef struct xcb_input_set_device_valuators_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t status; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_set_device_valuators_reply_t; - -typedef enum xcb_input_device_control_t { - XCB_INPUT_DEVICE_CONTROL_RESOLUTION = 1, - XCB_INPUT_DEVICE_CONTROL_ABS_CALIB = 2, - XCB_INPUT_DEVICE_CONTROL_CORE = 3, - XCB_INPUT_DEVICE_CONTROL_ENABLE = 4, - XCB_INPUT_DEVICE_CONTROL_ABS_AREA = 5 -} xcb_input_device_control_t; - -/** - * @brief xcb_input_device_resolution_state_t - **/ -typedef struct xcb_input_device_resolution_state_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ - uint32_t num_valuators; /**< */ -} xcb_input_device_resolution_state_t; - -/** - * @brief xcb_input_device_resolution_state_iterator_t - **/ -typedef struct xcb_input_device_resolution_state_iterator_t { - xcb_input_device_resolution_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_resolution_state_iterator_t; - -/** - * @brief xcb_input_device_abs_calib_state_t - **/ -typedef struct xcb_input_device_abs_calib_state_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ - int32_t min_x; /**< */ - int32_t max_x; /**< */ - int32_t min_y; /**< */ - int32_t max_y; /**< */ - uint32_t flip_x; /**< */ - uint32_t flip_y; /**< */ - uint32_t rotation; /**< */ - uint32_t button_threshold; /**< */ -} xcb_input_device_abs_calib_state_t; - -/** - * @brief xcb_input_device_abs_calib_state_iterator_t - **/ -typedef struct xcb_input_device_abs_calib_state_iterator_t { - xcb_input_device_abs_calib_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_abs_calib_state_iterator_t; - -/** - * @brief xcb_input_device_abs_area_state_t - **/ -typedef struct xcb_input_device_abs_area_state_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ - uint32_t offset_x; /**< */ - uint32_t offset_y; /**< */ - uint32_t width; /**< */ - uint32_t height; /**< */ - uint32_t screen; /**< */ - uint32_t following; /**< */ -} xcb_input_device_abs_area_state_t; - -/** - * @brief xcb_input_device_abs_area_state_iterator_t - **/ -typedef struct xcb_input_device_abs_area_state_iterator_t { - xcb_input_device_abs_area_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_abs_area_state_iterator_t; - -/** - * @brief xcb_input_device_core_state_t - **/ -typedef struct xcb_input_device_core_state_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ - uint8_t status; /**< */ - uint8_t iscore; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_device_core_state_t; - -/** - * @brief xcb_input_device_core_state_iterator_t - **/ -typedef struct xcb_input_device_core_state_iterator_t { - xcb_input_device_core_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_core_state_iterator_t; - -/** - * @brief xcb_input_device_enable_state_t - **/ -typedef struct xcb_input_device_enable_state_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ - uint8_t enable; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_device_enable_state_t; - -/** - * @brief xcb_input_device_enable_state_iterator_t - **/ -typedef struct xcb_input_device_enable_state_iterator_t { - xcb_input_device_enable_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_enable_state_iterator_t; - -/** - * @brief xcb_input_device_state_t - **/ -typedef struct xcb_input_device_state_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ -} xcb_input_device_state_t; - -/** - * @brief xcb_input_device_state_iterator_t - **/ -typedef struct xcb_input_device_state_iterator_t { - xcb_input_device_state_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_state_iterator_t; - -/** - * @brief xcb_input_get_device_control_cookie_t - **/ -typedef struct xcb_input_get_device_control_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_get_device_control_cookie_t; - -/** Opcode for xcb_input_get_device_control. */ -#define XCB_INPUT_GET_DEVICE_CONTROL 34 - -/** - * @brief xcb_input_get_device_control_request_t - **/ -typedef struct xcb_input_get_device_control_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t control_id; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0; /**< */ -} xcb_input_get_device_control_request_t; - -/** - * @brief xcb_input_get_device_control_reply_t - **/ -typedef struct xcb_input_get_device_control_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t status; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_get_device_control_reply_t; - -/** - * @brief xcb_input_device_resolution_ctl_t - **/ -typedef struct xcb_input_device_resolution_ctl_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ - uint8_t first_valuator; /**< */ - uint8_t num_valuators; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_device_resolution_ctl_t; - -/** - * @brief xcb_input_device_resolution_ctl_iterator_t - **/ -typedef struct xcb_input_device_resolution_ctl_iterator_t { - xcb_input_device_resolution_ctl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_resolution_ctl_iterator_t; - -/** - * @brief xcb_input_device_abs_calib_ctl_t - **/ -typedef struct xcb_input_device_abs_calib_ctl_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ - int32_t min_x; /**< */ - int32_t max_x; /**< */ - int32_t min_y; /**< */ - int32_t max_y; /**< */ - uint32_t flip_x; /**< */ - uint32_t flip_y; /**< */ - uint32_t rotation; /**< */ - uint32_t button_threshold; /**< */ -} xcb_input_device_abs_calib_ctl_t; - -/** - * @brief xcb_input_device_abs_calib_ctl_iterator_t - **/ -typedef struct xcb_input_device_abs_calib_ctl_iterator_t { - xcb_input_device_abs_calib_ctl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_abs_calib_ctl_iterator_t; - -/** - * @brief xcb_input_device_abs_area_ctrl_t - **/ -typedef struct xcb_input_device_abs_area_ctrl_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ - uint32_t offset_x; /**< */ - uint32_t offset_y; /**< */ - int32_t width; /**< */ - int32_t height; /**< */ - int32_t screen; /**< */ - uint32_t following; /**< */ -} xcb_input_device_abs_area_ctrl_t; - -/** - * @brief xcb_input_device_abs_area_ctrl_iterator_t - **/ -typedef struct xcb_input_device_abs_area_ctrl_iterator_t { - xcb_input_device_abs_area_ctrl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_abs_area_ctrl_iterator_t; - -/** - * @brief xcb_input_device_core_ctrl_t - **/ -typedef struct xcb_input_device_core_ctrl_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ - uint8_t status; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_device_core_ctrl_t; - -/** - * @brief xcb_input_device_core_ctrl_iterator_t - **/ -typedef struct xcb_input_device_core_ctrl_iterator_t { - xcb_input_device_core_ctrl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_core_ctrl_iterator_t; - -/** - * @brief xcb_input_device_enable_ctrl_t - **/ -typedef struct xcb_input_device_enable_ctrl_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ - uint8_t enable; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_device_enable_ctrl_t; - -/** - * @brief xcb_input_device_enable_ctrl_iterator_t - **/ -typedef struct xcb_input_device_enable_ctrl_iterator_t { - xcb_input_device_enable_ctrl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_enable_ctrl_iterator_t; - -/** - * @brief xcb_input_device_ctl_t - **/ -typedef struct xcb_input_device_ctl_t { - uint16_t control_id; /**< */ - uint16_t len; /**< */ -} xcb_input_device_ctl_t; - -/** - * @brief xcb_input_device_ctl_iterator_t - **/ -typedef struct xcb_input_device_ctl_iterator_t { - xcb_input_device_ctl_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_ctl_iterator_t; - -/** - * @brief xcb_input_change_device_control_cookie_t - **/ -typedef struct xcb_input_change_device_control_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_change_device_control_cookie_t; - -/** Opcode for xcb_input_change_device_control. */ -#define XCB_INPUT_CHANGE_DEVICE_CONTROL 35 - -/** - * @brief xcb_input_change_device_control_request_t - **/ -typedef struct xcb_input_change_device_control_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t control_id; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0; /**< */ -} xcb_input_change_device_control_request_t; - -/** - * @brief xcb_input_change_device_control_reply_t - **/ -typedef struct xcb_input_change_device_control_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t status; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_change_device_control_reply_t; - -/** - * @brief xcb_input_list_device_properties_cookie_t - **/ -typedef struct xcb_input_list_device_properties_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_list_device_properties_cookie_t; - -/** Opcode for xcb_input_list_device_properties. */ -#define XCB_INPUT_LIST_DEVICE_PROPERTIES 36 - -/** - * @brief xcb_input_list_device_properties_request_t - **/ -typedef struct xcb_input_list_device_properties_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_list_device_properties_request_t; - -/** - * @brief xcb_input_list_device_properties_reply_t - **/ -typedef struct xcb_input_list_device_properties_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_atoms; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_input_list_device_properties_reply_t; - -typedef enum xcb_input_property_format_t { - XCB_INPUT_PROPERTY_FORMAT_8_BITS = 8, - XCB_INPUT_PROPERTY_FORMAT_16_BITS = 16, - XCB_INPUT_PROPERTY_FORMAT_32_BITS = 32 -} xcb_input_property_format_t; - -/** - * @brief xcb_input_change_device_property_items_t - **/ -typedef struct xcb_input_change_device_property_items_t { - uint8_t *data8; /**< */ - uint16_t *data16; /**< */ - uint32_t *data32; /**< */ -} xcb_input_change_device_property_items_t; - -/** Opcode for xcb_input_change_device_property. */ -#define XCB_INPUT_CHANGE_DEVICE_PROPERTY 37 - -/** - * @brief xcb_input_change_device_property_request_t - **/ -typedef struct xcb_input_change_device_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_atom_t property; /**< */ - xcb_atom_t type; /**< */ - uint8_t device_id; /**< */ - uint8_t format; /**< */ - uint8_t mode; /**< */ - uint8_t pad0; /**< */ - uint32_t num_items; /**< */ -} xcb_input_change_device_property_request_t; - -/** Opcode for xcb_input_delete_device_property. */ -#define XCB_INPUT_DELETE_DEVICE_PROPERTY 38 - -/** - * @brief xcb_input_delete_device_property_request_t - **/ -typedef struct xcb_input_delete_device_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_atom_t property; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_delete_device_property_request_t; - -/** - * @brief xcb_input_get_device_property_cookie_t - **/ -typedef struct xcb_input_get_device_property_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_get_device_property_cookie_t; - -/** Opcode for xcb_input_get_device_property. */ -#define XCB_INPUT_GET_DEVICE_PROPERTY 39 - -/** - * @brief xcb_input_get_device_property_request_t - **/ -typedef struct xcb_input_get_device_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_atom_t property; /**< */ - xcb_atom_t type; /**< */ - uint32_t offset; /**< */ - uint32_t len; /**< */ - uint8_t device_id; /**< */ - uint8_t _delete; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_get_device_property_request_t; - -/** - * @brief xcb_input_get_device_property_items_t - **/ -typedef struct xcb_input_get_device_property_items_t { - uint8_t *data8; /**< */ - uint16_t *data16; /**< */ - uint32_t *data32; /**< */ -} xcb_input_get_device_property_items_t; - -/** - * @brief xcb_input_get_device_property_reply_t - **/ -typedef struct xcb_input_get_device_property_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_atom_t type; /**< */ - uint32_t bytes_after; /**< */ - uint32_t num_items; /**< */ - uint8_t format; /**< */ - uint8_t device_id; /**< */ - uint8_t pad1[10]; /**< */ -} xcb_input_get_device_property_reply_t; - -typedef enum xcb_input_device_t { - XCB_INPUT_DEVICE_ALL = 0, - XCB_INPUT_DEVICE_ALL_MASTER = 1 -} xcb_input_device_t; - -/** - * @brief xcb_input_group_info_t - **/ -typedef struct xcb_input_group_info_t { - uint8_t base; /**< */ - uint8_t latched; /**< */ - uint8_t locked; /**< */ - uint8_t effective; /**< */ -} xcb_input_group_info_t; - -/** - * @brief xcb_input_group_info_iterator_t - **/ -typedef struct xcb_input_group_info_iterator_t { - xcb_input_group_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_group_info_iterator_t; - -/** - * @brief xcb_input_modifier_info_t - **/ -typedef struct xcb_input_modifier_info_t { - uint32_t base; /**< */ - uint32_t latched; /**< */ - uint32_t locked; /**< */ - uint32_t effective; /**< */ -} xcb_input_modifier_info_t; - -/** - * @brief xcb_input_modifier_info_iterator_t - **/ -typedef struct xcb_input_modifier_info_iterator_t { - xcb_input_modifier_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_modifier_info_iterator_t; - -/** - * @brief xcb_input_xi_query_pointer_cookie_t - **/ -typedef struct xcb_input_xi_query_pointer_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_xi_query_pointer_cookie_t; - -/** Opcode for xcb_input_xi_query_pointer. */ -#define XCB_INPUT_XI_QUERY_POINTER 40 - -/** - * @brief xcb_input_xi_query_pointer_request_t - **/ -typedef struct xcb_input_xi_query_pointer_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_xi_query_pointer_request_t; - -/** - * @brief xcb_input_xi_query_pointer_reply_t - **/ -typedef struct xcb_input_xi_query_pointer_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t root; /**< */ - xcb_window_t child; /**< */ - xcb_input_fp1616_t root_x; /**< */ - xcb_input_fp1616_t root_y; /**< */ - xcb_input_fp1616_t win_x; /**< */ - xcb_input_fp1616_t win_y; /**< */ - uint8_t same_screen; /**< */ - uint8_t pad1; /**< */ - uint16_t buttons_len; /**< */ - xcb_input_modifier_info_t mods; /**< */ - xcb_input_group_info_t group; /**< */ -} xcb_input_xi_query_pointer_reply_t; - -/** Opcode for xcb_input_xi_warp_pointer. */ -#define XCB_INPUT_XI_WARP_POINTER 41 - -/** - * @brief xcb_input_xi_warp_pointer_request_t - **/ -typedef struct xcb_input_xi_warp_pointer_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t src_win; /**< */ - xcb_window_t dst_win; /**< */ - xcb_input_fp1616_t src_x; /**< */ - xcb_input_fp1616_t src_y; /**< */ - uint16_t src_width; /**< */ - uint16_t src_height; /**< */ - xcb_input_fp1616_t dst_x; /**< */ - xcb_input_fp1616_t dst_y; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_xi_warp_pointer_request_t; - -/** Opcode for xcb_input_xi_change_cursor. */ -#define XCB_INPUT_XI_CHANGE_CURSOR 42 - -/** - * @brief xcb_input_xi_change_cursor_request_t - **/ -typedef struct xcb_input_xi_change_cursor_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_cursor_t cursor; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_xi_change_cursor_request_t; - -typedef enum xcb_input_hierarchy_change_type_t { - XCB_INPUT_HIERARCHY_CHANGE_TYPE_ADD_MASTER = 1, - XCB_INPUT_HIERARCHY_CHANGE_TYPE_REMOVE_MASTER = 2, - XCB_INPUT_HIERARCHY_CHANGE_TYPE_ATTACH_SLAVE = 3, - XCB_INPUT_HIERARCHY_CHANGE_TYPE_DETACH_SLAVE = 4 -} xcb_input_hierarchy_change_type_t; - -typedef enum xcb_input_change_mode_t { - XCB_INPUT_CHANGE_MODE_ATTACH = 1, - XCB_INPUT_CHANGE_MODE_FLOAT = 2 -} xcb_input_change_mode_t; - -/** - * @brief xcb_input_add_master_t - **/ -typedef struct xcb_input_add_master_t { - uint16_t type; /**< */ - uint16_t len; /**< */ - uint16_t name_len; /**< */ - uint8_t send_core; /**< */ - uint8_t enable; /**< */ -} xcb_input_add_master_t; - -/** - * @brief xcb_input_add_master_iterator_t - **/ -typedef struct xcb_input_add_master_iterator_t { - xcb_input_add_master_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_add_master_iterator_t; - -/** - * @brief xcb_input_remove_master_t - **/ -typedef struct xcb_input_remove_master_t { - uint16_t type; /**< */ - uint16_t len; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t return_mode; /**< */ - uint8_t pad0; /**< */ - xcb_input_device_id_t return_pointer; /**< */ - xcb_input_device_id_t return_keyboard; /**< */ -} xcb_input_remove_master_t; - -/** - * @brief xcb_input_remove_master_iterator_t - **/ -typedef struct xcb_input_remove_master_iterator_t { - xcb_input_remove_master_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_remove_master_iterator_t; - -/** - * @brief xcb_input_attach_slave_t - **/ -typedef struct xcb_input_attach_slave_t { - uint16_t type; /**< */ - uint16_t len; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_input_device_id_t master; /**< */ -} xcb_input_attach_slave_t; - -/** - * @brief xcb_input_attach_slave_iterator_t - **/ -typedef struct xcb_input_attach_slave_iterator_t { - xcb_input_attach_slave_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_attach_slave_iterator_t; - -/** - * @brief xcb_input_detach_slave_t - **/ -typedef struct xcb_input_detach_slave_t { - uint16_t type; /**< */ - uint16_t len; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_detach_slave_t; - -/** - * @brief xcb_input_detach_slave_iterator_t - **/ -typedef struct xcb_input_detach_slave_iterator_t { - xcb_input_detach_slave_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_detach_slave_iterator_t; - -/** - * @brief xcb_input_hierarchy_change_t - **/ -typedef struct xcb_input_hierarchy_change_t { - uint16_t type; /**< */ - uint16_t len; /**< */ -} xcb_input_hierarchy_change_t; - -/** - * @brief xcb_input_hierarchy_change_iterator_t - **/ -typedef struct xcb_input_hierarchy_change_iterator_t { - xcb_input_hierarchy_change_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_hierarchy_change_iterator_t; - -/** Opcode for xcb_input_xi_change_hierarchy. */ -#define XCB_INPUT_XI_CHANGE_HIERARCHY 43 - -/** - * @brief xcb_input_xi_change_hierarchy_request_t - **/ -typedef struct xcb_input_xi_change_hierarchy_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t num_changes; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_xi_change_hierarchy_request_t; - -/** Opcode for xcb_input_xi_set_client_pointer. */ -#define XCB_INPUT_XI_SET_CLIENT_POINTER 44 - -/** - * @brief xcb_input_xi_set_client_pointer_request_t - **/ -typedef struct xcb_input_xi_set_client_pointer_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_xi_set_client_pointer_request_t; - -/** - * @brief xcb_input_xi_get_client_pointer_cookie_t - **/ -typedef struct xcb_input_xi_get_client_pointer_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_xi_get_client_pointer_cookie_t; - -/** Opcode for xcb_input_xi_get_client_pointer. */ -#define XCB_INPUT_XI_GET_CLIENT_POINTER 45 - -/** - * @brief xcb_input_xi_get_client_pointer_request_t - **/ -typedef struct xcb_input_xi_get_client_pointer_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_input_xi_get_client_pointer_request_t; - -/** - * @brief xcb_input_xi_get_client_pointer_reply_t - **/ -typedef struct xcb_input_xi_get_client_pointer_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t set; /**< */ - uint8_t pad1; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad2[20]; /**< */ -} xcb_input_xi_get_client_pointer_reply_t; - -typedef enum xcb_input_xi_event_mask_t { - XCB_INPUT_XI_EVENT_MASK_DEVICE_CHANGED = 2, - XCB_INPUT_XI_EVENT_MASK_KEY_PRESS = 4, - XCB_INPUT_XI_EVENT_MASK_KEY_RELEASE = 8, - XCB_INPUT_XI_EVENT_MASK_BUTTON_PRESS = 16, - XCB_INPUT_XI_EVENT_MASK_BUTTON_RELEASE = 32, - XCB_INPUT_XI_EVENT_MASK_MOTION = 64, - XCB_INPUT_XI_EVENT_MASK_ENTER = 128, - XCB_INPUT_XI_EVENT_MASK_LEAVE = 256, - XCB_INPUT_XI_EVENT_MASK_FOCUS_IN = 512, - XCB_INPUT_XI_EVENT_MASK_FOCUS_OUT = 1024, - XCB_INPUT_XI_EVENT_MASK_HIERARCHY = 2048, - XCB_INPUT_XI_EVENT_MASK_PROPERTY = 4096, - XCB_INPUT_XI_EVENT_MASK_RAW_KEY_PRESS = 8192, - XCB_INPUT_XI_EVENT_MASK_RAW_KEY_RELEASE = 16384, - XCB_INPUT_XI_EVENT_MASK_RAW_BUTTON_PRESS = 32768, - XCB_INPUT_XI_EVENT_MASK_RAW_BUTTON_RELEASE = 65536, - XCB_INPUT_XI_EVENT_MASK_RAW_MOTION = 131072, - XCB_INPUT_XI_EVENT_MASK_TOUCH_BEGIN = 262144, - XCB_INPUT_XI_EVENT_MASK_TOUCH_UPDATE = 524288, - XCB_INPUT_XI_EVENT_MASK_TOUCH_END = 1048576, - XCB_INPUT_XI_EVENT_MASK_TOUCH_OWNERSHIP = 2097152, - XCB_INPUT_XI_EVENT_MASK_RAW_TOUCH_BEGIN = 4194304, - XCB_INPUT_XI_EVENT_MASK_RAW_TOUCH_UPDATE = 8388608, - XCB_INPUT_XI_EVENT_MASK_RAW_TOUCH_END = 16777216, - XCB_INPUT_XI_EVENT_MASK_BARRIER_HIT = 33554432, - XCB_INPUT_XI_EVENT_MASK_BARRIER_LEAVE = 67108864 -} xcb_input_xi_event_mask_t; - -/** - * @brief xcb_input_event_mask_t - **/ -typedef struct xcb_input_event_mask_t { - xcb_input_device_id_t deviceid; /**< */ - uint16_t mask_len; /**< */ -} xcb_input_event_mask_t; - -/** - * @brief xcb_input_event_mask_iterator_t - **/ -typedef struct xcb_input_event_mask_iterator_t { - xcb_input_event_mask_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_event_mask_iterator_t; - -/** Opcode for xcb_input_xi_select_events. */ -#define XCB_INPUT_XI_SELECT_EVENTS 46 - -/** - * @brief xcb_input_xi_select_events_request_t - **/ -typedef struct xcb_input_xi_select_events_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint16_t num_mask; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_xi_select_events_request_t; - -/** - * @brief xcb_input_xi_query_version_cookie_t - **/ -typedef struct xcb_input_xi_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_xi_query_version_cookie_t; - -/** Opcode for xcb_input_xi_query_version. */ -#define XCB_INPUT_XI_QUERY_VERSION 47 - -/** - * @brief xcb_input_xi_query_version_request_t - **/ -typedef struct xcb_input_xi_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t major_version; /**< */ - uint16_t minor_version; /**< */ -} xcb_input_xi_query_version_request_t; - -/** - * @brief xcb_input_xi_query_version_reply_t - **/ -typedef struct xcb_input_xi_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t major_version; /**< */ - uint16_t minor_version; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_input_xi_query_version_reply_t; - -typedef enum xcb_input_device_class_type_t { - XCB_INPUT_DEVICE_CLASS_TYPE_KEY = 0, - XCB_INPUT_DEVICE_CLASS_TYPE_BUTTON = 1, - XCB_INPUT_DEVICE_CLASS_TYPE_VALUATOR = 2, - XCB_INPUT_DEVICE_CLASS_TYPE_SCROLL = 3, - XCB_INPUT_DEVICE_CLASS_TYPE_TOUCH = 8 -} xcb_input_device_class_type_t; - -typedef enum xcb_input_device_type_t { - XCB_INPUT_DEVICE_TYPE_MASTER_POINTER = 1, - XCB_INPUT_DEVICE_TYPE_MASTER_KEYBOARD = 2, - XCB_INPUT_DEVICE_TYPE_SLAVE_POINTER = 3, - XCB_INPUT_DEVICE_TYPE_SLAVE_KEYBOARD = 4, - XCB_INPUT_DEVICE_TYPE_FLOATING_SLAVE = 5 -} xcb_input_device_type_t; - -typedef enum xcb_input_scroll_flags_t { - XCB_INPUT_SCROLL_FLAGS_NO_EMULATION = 1, - XCB_INPUT_SCROLL_FLAGS_PREFERRED = 2 -} xcb_input_scroll_flags_t; - -typedef enum xcb_input_scroll_type_t { - XCB_INPUT_SCROLL_TYPE_VERTICAL = 1, - XCB_INPUT_SCROLL_TYPE_HORIZONTAL = 2 -} xcb_input_scroll_type_t; - -typedef enum xcb_input_touch_mode_t { - XCB_INPUT_TOUCH_MODE_DIRECT = 1, - XCB_INPUT_TOUCH_MODE_DEPENDENT = 2 -} xcb_input_touch_mode_t; - -/** - * @brief xcb_input_button_class_t - **/ -typedef struct xcb_input_button_class_t { - uint16_t type; /**< */ - uint16_t len; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint16_t num_buttons; /**< */ -} xcb_input_button_class_t; - -/** - * @brief xcb_input_button_class_iterator_t - **/ -typedef struct xcb_input_button_class_iterator_t { - xcb_input_button_class_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_button_class_iterator_t; - -/** - * @brief xcb_input_key_class_t - **/ -typedef struct xcb_input_key_class_t { - uint16_t type; /**< */ - uint16_t len; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint16_t num_keys; /**< */ -} xcb_input_key_class_t; - -/** - * @brief xcb_input_key_class_iterator_t - **/ -typedef struct xcb_input_key_class_iterator_t { - xcb_input_key_class_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_key_class_iterator_t; - -/** - * @brief xcb_input_scroll_class_t - **/ -typedef struct xcb_input_scroll_class_t { - uint16_t type; /**< */ - uint16_t len; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint16_t number; /**< */ - uint16_t scroll_type; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t flags; /**< */ - xcb_input_fp3232_t increment; /**< */ -} xcb_input_scroll_class_t; - -/** - * @brief xcb_input_scroll_class_iterator_t - **/ -typedef struct xcb_input_scroll_class_iterator_t { - xcb_input_scroll_class_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_scroll_class_iterator_t; - -/** - * @brief xcb_input_touch_class_t - **/ -typedef struct xcb_input_touch_class_t { - uint16_t type; /**< */ - uint16_t len; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint8_t mode; /**< */ - uint8_t num_touches; /**< */ -} xcb_input_touch_class_t; - -/** - * @brief xcb_input_touch_class_iterator_t - **/ -typedef struct xcb_input_touch_class_iterator_t { - xcb_input_touch_class_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_touch_class_iterator_t; - -/** - * @brief xcb_input_valuator_class_t - **/ -typedef struct xcb_input_valuator_class_t { - uint16_t type; /**< */ - uint16_t len; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint16_t number; /**< */ - xcb_atom_t label; /**< */ - xcb_input_fp3232_t min; /**< */ - xcb_input_fp3232_t max; /**< */ - xcb_input_fp3232_t value; /**< */ - uint32_t resolution; /**< */ - uint8_t mode; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_valuator_class_t; - -/** - * @brief xcb_input_valuator_class_iterator_t - **/ -typedef struct xcb_input_valuator_class_iterator_t { - xcb_input_valuator_class_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_valuator_class_iterator_t; - -/** - * @brief xcb_input_device_class_t - **/ -typedef struct xcb_input_device_class_t { - uint16_t type; /**< */ - uint16_t len; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_device_class_t; - -/** - * @brief xcb_input_device_class_iterator_t - **/ -typedef struct xcb_input_device_class_iterator_t { - xcb_input_device_class_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_device_class_iterator_t; - -/** - * @brief xcb_input_xi_device_info_t - **/ -typedef struct xcb_input_xi_device_info_t { - xcb_input_device_id_t deviceid; /**< */ - uint16_t type; /**< */ - xcb_input_device_id_t attachment; /**< */ - uint16_t num_classes; /**< */ - uint16_t name_len; /**< */ - uint8_t enabled; /**< */ - uint8_t pad0; /**< */ -} xcb_input_xi_device_info_t; - -/** - * @brief xcb_input_xi_device_info_iterator_t - **/ -typedef struct xcb_input_xi_device_info_iterator_t { - xcb_input_xi_device_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_xi_device_info_iterator_t; - -/** - * @brief xcb_input_xi_query_device_cookie_t - **/ -typedef struct xcb_input_xi_query_device_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_xi_query_device_cookie_t; - -/** Opcode for xcb_input_xi_query_device. */ -#define XCB_INPUT_XI_QUERY_DEVICE 48 - -/** - * @brief xcb_input_xi_query_device_request_t - **/ -typedef struct xcb_input_xi_query_device_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_xi_query_device_request_t; - -/** - * @brief xcb_input_xi_query_device_reply_t - **/ -typedef struct xcb_input_xi_query_device_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_infos; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_input_xi_query_device_reply_t; - -/** Opcode for xcb_input_xi_set_focus. */ -#define XCB_INPUT_XI_SET_FOCUS 49 - -/** - * @brief xcb_input_xi_set_focus_request_t - **/ -typedef struct xcb_input_xi_set_focus_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_timestamp_t time; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_xi_set_focus_request_t; - -/** - * @brief xcb_input_xi_get_focus_cookie_t - **/ -typedef struct xcb_input_xi_get_focus_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_xi_get_focus_cookie_t; - -/** Opcode for xcb_input_xi_get_focus. */ -#define XCB_INPUT_XI_GET_FOCUS 50 - -/** - * @brief xcb_input_xi_get_focus_request_t - **/ -typedef struct xcb_input_xi_get_focus_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_xi_get_focus_request_t; - -/** - * @brief xcb_input_xi_get_focus_reply_t - **/ -typedef struct xcb_input_xi_get_focus_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t focus; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_input_xi_get_focus_reply_t; - -typedef enum xcb_input_grab_owner_t { - XCB_INPUT_GRAB_OWNER_NO_OWNER = 0, - XCB_INPUT_GRAB_OWNER_OWNER = 1 -} xcb_input_grab_owner_t; - -/** - * @brief xcb_input_xi_grab_device_cookie_t - **/ -typedef struct xcb_input_xi_grab_device_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_xi_grab_device_cookie_t; - -/** Opcode for xcb_input_xi_grab_device. */ -#define XCB_INPUT_XI_GRAB_DEVICE 51 - -/** - * @brief xcb_input_xi_grab_device_request_t - **/ -typedef struct xcb_input_xi_grab_device_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_timestamp_t time; /**< */ - xcb_cursor_t cursor; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t mode; /**< */ - uint8_t paired_device_mode; /**< */ - uint8_t owner_events; /**< */ - uint8_t pad0; /**< */ - uint16_t mask_len; /**< */ -} xcb_input_xi_grab_device_request_t; - -/** - * @brief xcb_input_xi_grab_device_reply_t - **/ -typedef struct xcb_input_xi_grab_device_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t status; /**< */ - uint8_t pad1[23]; /**< */ -} xcb_input_xi_grab_device_reply_t; - -/** Opcode for xcb_input_xi_ungrab_device. */ -#define XCB_INPUT_XI_UNGRAB_DEVICE 52 - -/** - * @brief xcb_input_xi_ungrab_device_request_t - **/ -typedef struct xcb_input_xi_ungrab_device_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_timestamp_t time; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_xi_ungrab_device_request_t; - -typedef enum xcb_input_event_mode_t { - XCB_INPUT_EVENT_MODE_ASYNC_DEVICE = 0, - XCB_INPUT_EVENT_MODE_SYNC_DEVICE = 1, - XCB_INPUT_EVENT_MODE_REPLAY_DEVICE = 2, - XCB_INPUT_EVENT_MODE_ASYNC_PAIRED_DEVICE = 3, - XCB_INPUT_EVENT_MODE_ASYNC_PAIR = 4, - XCB_INPUT_EVENT_MODE_SYNC_PAIR = 5, - XCB_INPUT_EVENT_MODE_ACCEPT_TOUCH = 6, - XCB_INPUT_EVENT_MODE_REJECT_TOUCH = 7 -} xcb_input_event_mode_t; - -/** Opcode for xcb_input_xi_allow_events. */ -#define XCB_INPUT_XI_ALLOW_EVENTS 53 - -/** - * @brief xcb_input_xi_allow_events_request_t - **/ -typedef struct xcb_input_xi_allow_events_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_timestamp_t time; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t event_mode; /**< */ - uint8_t pad0; /**< */ - uint32_t touchid; /**< */ - xcb_window_t grab_window; /**< */ -} xcb_input_xi_allow_events_request_t; - -typedef enum xcb_input_grab_mode_22_t { - XCB_INPUT_GRAB_MODE_22_SYNC = 0, - XCB_INPUT_GRAB_MODE_22_ASYNC = 1, - XCB_INPUT_GRAB_MODE_22_TOUCH = 2 -} xcb_input_grab_mode_22_t; - -typedef enum xcb_input_grab_type_t { - XCB_INPUT_GRAB_TYPE_BUTTON = 0, - XCB_INPUT_GRAB_TYPE_KEYCODE = 1, - XCB_INPUT_GRAB_TYPE_ENTER = 2, - XCB_INPUT_GRAB_TYPE_FOCUS_IN = 3, - XCB_INPUT_GRAB_TYPE_TOUCH_BEGIN = 4 -} xcb_input_grab_type_t; - -typedef enum xcb_input_modifier_mask_t { - XCB_INPUT_MODIFIER_MASK_ANY = 2147483648 -} xcb_input_modifier_mask_t; - -/** - * @brief xcb_input_grab_modifier_info_t - **/ -typedef struct xcb_input_grab_modifier_info_t { - uint32_t modifiers; /**< */ - uint8_t status; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_grab_modifier_info_t; - -/** - * @brief xcb_input_grab_modifier_info_iterator_t - **/ -typedef struct xcb_input_grab_modifier_info_iterator_t { - xcb_input_grab_modifier_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_grab_modifier_info_iterator_t; - -/** - * @brief xcb_input_xi_passive_grab_device_cookie_t - **/ -typedef struct xcb_input_xi_passive_grab_device_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_xi_passive_grab_device_cookie_t; - -/** Opcode for xcb_input_xi_passive_grab_device. */ -#define XCB_INPUT_XI_PASSIVE_GRAB_DEVICE 54 - -/** - * @brief xcb_input_xi_passive_grab_device_request_t - **/ -typedef struct xcb_input_xi_passive_grab_device_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_timestamp_t time; /**< */ - xcb_window_t grab_window; /**< */ - xcb_cursor_t cursor; /**< */ - uint32_t detail; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint16_t num_modifiers; /**< */ - uint16_t mask_len; /**< */ - uint8_t grab_type; /**< */ - uint8_t grab_mode; /**< */ - uint8_t paired_device_mode; /**< */ - uint8_t owner_events; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_xi_passive_grab_device_request_t; - -/** - * @brief xcb_input_xi_passive_grab_device_reply_t - **/ -typedef struct xcb_input_xi_passive_grab_device_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_modifiers; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_input_xi_passive_grab_device_reply_t; - -/** Opcode for xcb_input_xi_passive_ungrab_device. */ -#define XCB_INPUT_XI_PASSIVE_UNGRAB_DEVICE 55 - -/** - * @brief xcb_input_xi_passive_ungrab_device_request_t - **/ -typedef struct xcb_input_xi_passive_ungrab_device_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t grab_window; /**< */ - uint32_t detail; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint16_t num_modifiers; /**< */ - uint8_t grab_type; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_input_xi_passive_ungrab_device_request_t; - -/** - * @brief xcb_input_xi_list_properties_cookie_t - **/ -typedef struct xcb_input_xi_list_properties_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_xi_list_properties_cookie_t; - -/** Opcode for xcb_input_xi_list_properties. */ -#define XCB_INPUT_XI_LIST_PROPERTIES 56 - -/** - * @brief xcb_input_xi_list_properties_request_t - **/ -typedef struct xcb_input_xi_list_properties_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_input_xi_list_properties_request_t; - -/** - * @brief xcb_input_xi_list_properties_reply_t - **/ -typedef struct xcb_input_xi_list_properties_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_properties; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_input_xi_list_properties_reply_t; - -/** - * @brief xcb_input_xi_change_property_items_t - **/ -typedef struct xcb_input_xi_change_property_items_t { - uint8_t *data8; /**< */ - uint16_t *data16; /**< */ - uint32_t *data32; /**< */ -} xcb_input_xi_change_property_items_t; - -/** Opcode for xcb_input_xi_change_property. */ -#define XCB_INPUT_XI_CHANGE_PROPERTY 57 - -/** - * @brief xcb_input_xi_change_property_request_t - **/ -typedef struct xcb_input_xi_change_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t mode; /**< */ - uint8_t format; /**< */ - xcb_atom_t property; /**< */ - xcb_atom_t type; /**< */ - uint32_t num_items; /**< */ -} xcb_input_xi_change_property_request_t; - -/** Opcode for xcb_input_xi_delete_property. */ -#define XCB_INPUT_XI_DELETE_PROPERTY 58 - -/** - * @brief xcb_input_xi_delete_property_request_t - **/ -typedef struct xcb_input_xi_delete_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ - xcb_atom_t property; /**< */ -} xcb_input_xi_delete_property_request_t; - -/** - * @brief xcb_input_xi_get_property_cookie_t - **/ -typedef struct xcb_input_xi_get_property_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_xi_get_property_cookie_t; - -/** Opcode for xcb_input_xi_get_property. */ -#define XCB_INPUT_XI_GET_PROPERTY 59 - -/** - * @brief xcb_input_xi_get_property_request_t - **/ -typedef struct xcb_input_xi_get_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_input_device_id_t deviceid; /**< */ - uint8_t _delete; /**< */ - uint8_t pad0; /**< */ - xcb_atom_t property; /**< */ - xcb_atom_t type; /**< */ - uint32_t offset; /**< */ - uint32_t len; /**< */ -} xcb_input_xi_get_property_request_t; - -/** - * @brief xcb_input_xi_get_property_items_t - **/ -typedef struct xcb_input_xi_get_property_items_t { - uint8_t *data8; /**< */ - uint16_t *data16; /**< */ - uint32_t *data32; /**< */ -} xcb_input_xi_get_property_items_t; - -/** - * @brief xcb_input_xi_get_property_reply_t - **/ -typedef struct xcb_input_xi_get_property_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_atom_t type; /**< */ - uint32_t bytes_after; /**< */ - uint32_t num_items; /**< */ - uint8_t format; /**< */ - uint8_t pad1[11]; /**< */ -} xcb_input_xi_get_property_reply_t; - -/** - * @brief xcb_input_xi_get_selected_events_cookie_t - **/ -typedef struct xcb_input_xi_get_selected_events_cookie_t { - unsigned int sequence; /**< */ -} xcb_input_xi_get_selected_events_cookie_t; - -/** Opcode for xcb_input_xi_get_selected_events. */ -#define XCB_INPUT_XI_GET_SELECTED_EVENTS 60 - -/** - * @brief xcb_input_xi_get_selected_events_request_t - **/ -typedef struct xcb_input_xi_get_selected_events_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_input_xi_get_selected_events_request_t; - -/** - * @brief xcb_input_xi_get_selected_events_reply_t - **/ -typedef struct xcb_input_xi_get_selected_events_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_masks; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_input_xi_get_selected_events_reply_t; - -/** - * @brief xcb_input_barrier_release_pointer_info_t - **/ -typedef struct xcb_input_barrier_release_pointer_info_t { - xcb_input_device_id_t deviceid; /**< */ - uint8_t pad0[2]; /**< */ - xcb_xfixes_barrier_t barrier; /**< */ - uint32_t eventid; /**< */ -} xcb_input_barrier_release_pointer_info_t; - -/** - * @brief xcb_input_barrier_release_pointer_info_iterator_t - **/ -typedef struct xcb_input_barrier_release_pointer_info_iterator_t { - xcb_input_barrier_release_pointer_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_barrier_release_pointer_info_iterator_t; - -/** Opcode for xcb_input_xi_barrier_release_pointer. */ -#define XCB_INPUT_XI_BARRIER_RELEASE_POINTER 61 - -/** - * @brief xcb_input_xi_barrier_release_pointer_request_t - **/ -typedef struct xcb_input_xi_barrier_release_pointer_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t num_barriers; /**< */ -} xcb_input_xi_barrier_release_pointer_request_t; - -/** Opcode for xcb_input_device_valuator. */ -#define XCB_INPUT_DEVICE_VALUATOR 0 - -/** - * @brief xcb_input_device_valuator_event_t - **/ -typedef struct xcb_input_device_valuator_event_t { - uint8_t response_type; /**< */ - uint8_t device_id; /**< */ - uint16_t sequence; /**< */ - uint16_t device_state; /**< */ - uint8_t num_valuators; /**< */ - uint8_t first_valuator; /**< */ - int32_t valuators[6]; /**< */ -} xcb_input_device_valuator_event_t; - -/** Opcode for xcb_input_device_key_press. */ -#define XCB_INPUT_DEVICE_KEY_PRESS 1 - -/** - * @brief xcb_input_device_key_press_event_t - **/ -typedef struct xcb_input_device_key_press_event_t { - uint8_t response_type; /**< */ - uint8_t detail; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_window_t root; /**< */ - xcb_window_t event; /**< */ - xcb_window_t child; /**< */ - int16_t root_x; /**< */ - int16_t root_y; /**< */ - int16_t event_x; /**< */ - int16_t event_y; /**< */ - uint16_t state; /**< */ - uint8_t same_screen; /**< */ - uint8_t device_id; /**< */ -} xcb_input_device_key_press_event_t; - -/** Opcode for xcb_input_device_key_release. */ -#define XCB_INPUT_DEVICE_KEY_RELEASE 2 - -typedef xcb_input_device_key_press_event_t xcb_input_device_key_release_event_t; - -/** Opcode for xcb_input_device_button_press. */ -#define XCB_INPUT_DEVICE_BUTTON_PRESS 3 - -typedef xcb_input_device_key_press_event_t xcb_input_device_button_press_event_t; - -/** Opcode for xcb_input_device_button_release. */ -#define XCB_INPUT_DEVICE_BUTTON_RELEASE 4 - -typedef xcb_input_device_key_press_event_t xcb_input_device_button_release_event_t; - -/** Opcode for xcb_input_device_motion_notify. */ -#define XCB_INPUT_DEVICE_MOTION_NOTIFY 5 - -typedef xcb_input_device_key_press_event_t xcb_input_device_motion_notify_event_t; - -/** Opcode for xcb_input_device_focus_in. */ -#define XCB_INPUT_DEVICE_FOCUS_IN 6 - -/** - * @brief xcb_input_device_focus_in_event_t - **/ -typedef struct xcb_input_device_focus_in_event_t { - uint8_t response_type; /**< */ - uint8_t detail; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_window_t window; /**< */ - uint8_t mode; /**< */ - uint8_t device_id; /**< */ - uint8_t pad0[18]; /**< */ -} xcb_input_device_focus_in_event_t; - -/** Opcode for xcb_input_device_focus_out. */ -#define XCB_INPUT_DEVICE_FOCUS_OUT 7 - -typedef xcb_input_device_focus_in_event_t xcb_input_device_focus_out_event_t; - -/** Opcode for xcb_input_proximity_in. */ -#define XCB_INPUT_PROXIMITY_IN 8 - -typedef xcb_input_device_key_press_event_t xcb_input_proximity_in_event_t; - -/** Opcode for xcb_input_proximity_out. */ -#define XCB_INPUT_PROXIMITY_OUT 9 - -typedef xcb_input_device_key_press_event_t xcb_input_proximity_out_event_t; - -/** Opcode for xcb_input_device_state_notify. */ -#define XCB_INPUT_DEVICE_STATE_NOTIFY 10 - -/** - * @brief xcb_input_device_state_notify_event_t - **/ -typedef struct xcb_input_device_state_notify_event_t { - uint8_t response_type; /**< */ - uint8_t device_id; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t num_keys; /**< */ - uint8_t num_buttons; /**< */ - uint8_t num_valuators; /**< */ - uint8_t classes_reported; /**< */ - uint8_t buttons[4]; /**< */ - uint8_t keys[4]; /**< */ - uint32_t valuators[3]; /**< */ -} xcb_input_device_state_notify_event_t; - -/** Opcode for xcb_input_device_mapping_notify. */ -#define XCB_INPUT_DEVICE_MAPPING_NOTIFY 11 - -/** - * @brief xcb_input_device_mapping_notify_event_t - **/ -typedef struct xcb_input_device_mapping_notify_event_t { - uint8_t response_type; /**< */ - uint8_t device_id; /**< */ - uint16_t sequence; /**< */ - uint8_t request; /**< */ - xcb_input_key_code_t first_keycode; /**< */ - uint8_t count; /**< */ - uint8_t pad0; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_input_device_mapping_notify_event_t; - -/** Opcode for xcb_input_change_device_notify. */ -#define XCB_INPUT_CHANGE_DEVICE_NOTIFY 12 - -/** - * @brief xcb_input_change_device_notify_event_t - **/ -typedef struct xcb_input_change_device_notify_event_t { - uint8_t response_type; /**< */ - uint8_t device_id; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t request; /**< */ - uint8_t pad0[23]; /**< */ -} xcb_input_change_device_notify_event_t; - -/** Opcode for xcb_input_device_key_state_notify. */ -#define XCB_INPUT_DEVICE_KEY_STATE_NOTIFY 13 - -/** - * @brief xcb_input_device_key_state_notify_event_t - **/ -typedef struct xcb_input_device_key_state_notify_event_t { - uint8_t response_type; /**< */ - uint8_t device_id; /**< */ - uint16_t sequence; /**< */ - uint8_t keys[28]; /**< */ -} xcb_input_device_key_state_notify_event_t; - -/** Opcode for xcb_input_device_button_state_notify. */ -#define XCB_INPUT_DEVICE_BUTTON_STATE_NOTIFY 14 - -/** - * @brief xcb_input_device_button_state_notify_event_t - **/ -typedef struct xcb_input_device_button_state_notify_event_t { - uint8_t response_type; /**< */ - uint8_t device_id; /**< */ - uint16_t sequence; /**< */ - uint8_t buttons[28]; /**< */ -} xcb_input_device_button_state_notify_event_t; - -typedef enum xcb_input_device_change_t { - XCB_INPUT_DEVICE_CHANGE_ADDED = 0, - XCB_INPUT_DEVICE_CHANGE_REMOVED = 1, - XCB_INPUT_DEVICE_CHANGE_ENABLED = 2, - XCB_INPUT_DEVICE_CHANGE_DISABLED = 3, - XCB_INPUT_DEVICE_CHANGE_UNRECOVERABLE = 4, - XCB_INPUT_DEVICE_CHANGE_CONTROL_CHANGED = 5 -} xcb_input_device_change_t; - -/** Opcode for xcb_input_device_presence_notify. */ -#define XCB_INPUT_DEVICE_PRESENCE_NOTIFY 15 - -/** - * @brief xcb_input_device_presence_notify_event_t - **/ -typedef struct xcb_input_device_presence_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t devchange; /**< */ - uint8_t device_id; /**< */ - uint16_t control; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_input_device_presence_notify_event_t; - -/** Opcode for xcb_input_device_property_notify. */ -#define XCB_INPUT_DEVICE_PROPERTY_NOTIFY 16 - -/** - * @brief xcb_input_device_property_notify_event_t - **/ -typedef struct xcb_input_device_property_notify_event_t { - uint8_t response_type; /**< */ - uint8_t state; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_atom_t property; /**< */ - uint8_t pad0[19]; /**< */ - uint8_t device_id; /**< */ -} xcb_input_device_property_notify_event_t; - -typedef enum xcb_input_change_reason_t { - XCB_INPUT_CHANGE_REASON_SLAVE_SWITCH = 1, - XCB_INPUT_CHANGE_REASON_DEVICE_CHANGE = 2 -} xcb_input_change_reason_t; - -/** Opcode for xcb_input_device_changed. */ -#define XCB_INPUT_DEVICE_CHANGED 1 - -/** - * @brief xcb_input_device_changed_event_t - **/ -typedef struct xcb_input_device_changed_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - uint16_t num_classes; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint8_t reason; /**< */ - uint8_t pad0[11]; /**< */ - uint32_t full_sequence; /**< */ -} xcb_input_device_changed_event_t; - -typedef enum xcb_input_key_event_flags_t { - XCB_INPUT_KEY_EVENT_FLAGS_KEY_REPEAT = 65536 -} xcb_input_key_event_flags_t; - -/** Opcode for xcb_input_key_press. */ -#define XCB_INPUT_KEY_PRESS 2 - -/** - * @brief xcb_input_key_press_event_t - **/ -typedef struct xcb_input_key_press_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - uint32_t detail; /**< */ - xcb_window_t root; /**< */ - xcb_window_t event; /**< */ - xcb_window_t child; /**< */ - uint32_t full_sequence; /**< */ - xcb_input_fp1616_t root_x; /**< */ - xcb_input_fp1616_t root_y; /**< */ - xcb_input_fp1616_t event_x; /**< */ - xcb_input_fp1616_t event_y; /**< */ - uint16_t buttons_len; /**< */ - uint16_t valuators_len; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t flags; /**< */ - xcb_input_modifier_info_t mods; /**< */ - xcb_input_group_info_t group; /**< */ -} xcb_input_key_press_event_t; - -/** Opcode for xcb_input_key_release. */ -#define XCB_INPUT_KEY_RELEASE 3 - -typedef xcb_input_key_press_event_t xcb_input_key_release_event_t; - -typedef enum xcb_input_pointer_event_flags_t { - XCB_INPUT_POINTER_EVENT_FLAGS_POINTER_EMULATED = 65536 -} xcb_input_pointer_event_flags_t; - -/** Opcode for xcb_input_button_press. */ -#define XCB_INPUT_BUTTON_PRESS 4 - -/** - * @brief xcb_input_button_press_event_t - **/ -typedef struct xcb_input_button_press_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - uint32_t detail; /**< */ - xcb_window_t root; /**< */ - xcb_window_t event; /**< */ - xcb_window_t child; /**< */ - uint32_t full_sequence; /**< */ - xcb_input_fp1616_t root_x; /**< */ - xcb_input_fp1616_t root_y; /**< */ - xcb_input_fp1616_t event_x; /**< */ - xcb_input_fp1616_t event_y; /**< */ - uint16_t buttons_len; /**< */ - uint16_t valuators_len; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t flags; /**< */ - xcb_input_modifier_info_t mods; /**< */ - xcb_input_group_info_t group; /**< */ -} xcb_input_button_press_event_t; - -/** Opcode for xcb_input_button_release. */ -#define XCB_INPUT_BUTTON_RELEASE 5 - -typedef xcb_input_button_press_event_t xcb_input_button_release_event_t; - -/** Opcode for xcb_input_motion. */ -#define XCB_INPUT_MOTION 6 - -typedef xcb_input_button_press_event_t xcb_input_motion_event_t; - -typedef enum xcb_input_notify_mode_t { - XCB_INPUT_NOTIFY_MODE_NORMAL = 0, - XCB_INPUT_NOTIFY_MODE_GRAB = 1, - XCB_INPUT_NOTIFY_MODE_UNGRAB = 2, - XCB_INPUT_NOTIFY_MODE_WHILE_GRABBED = 3, - XCB_INPUT_NOTIFY_MODE_PASSIVE_GRAB = 4, - XCB_INPUT_NOTIFY_MODE_PASSIVE_UNGRAB = 5 -} xcb_input_notify_mode_t; - -typedef enum xcb_input_notify_detail_t { - XCB_INPUT_NOTIFY_DETAIL_ANCESTOR = 0, - XCB_INPUT_NOTIFY_DETAIL_VIRTUAL = 1, - XCB_INPUT_NOTIFY_DETAIL_INFERIOR = 2, - XCB_INPUT_NOTIFY_DETAIL_NONLINEAR = 3, - XCB_INPUT_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4, - XCB_INPUT_NOTIFY_DETAIL_POINTER = 5, - XCB_INPUT_NOTIFY_DETAIL_POINTER_ROOT = 6, - XCB_INPUT_NOTIFY_DETAIL_NONE = 7 -} xcb_input_notify_detail_t; - -/** Opcode for xcb_input_enter. */ -#define XCB_INPUT_ENTER 7 - -/** - * @brief xcb_input_enter_event_t - **/ -typedef struct xcb_input_enter_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint8_t mode; /**< */ - uint8_t detail; /**< */ - xcb_window_t root; /**< */ - xcb_window_t event; /**< */ - xcb_window_t child; /**< */ - uint32_t full_sequence; /**< */ - xcb_input_fp1616_t root_x; /**< */ - xcb_input_fp1616_t root_y; /**< */ - xcb_input_fp1616_t event_x; /**< */ - xcb_input_fp1616_t event_y; /**< */ - uint8_t same_screen; /**< */ - uint8_t focus; /**< */ - uint16_t buttons_len; /**< */ - xcb_input_modifier_info_t mods; /**< */ - xcb_input_group_info_t group; /**< */ -} xcb_input_enter_event_t; - -/** Opcode for xcb_input_leave. */ -#define XCB_INPUT_LEAVE 8 - -typedef xcb_input_enter_event_t xcb_input_leave_event_t; - -/** Opcode for xcb_input_focus_in. */ -#define XCB_INPUT_FOCUS_IN 9 - -typedef xcb_input_enter_event_t xcb_input_focus_in_event_t; - -/** Opcode for xcb_input_focus_out. */ -#define XCB_INPUT_FOCUS_OUT 10 - -typedef xcb_input_enter_event_t xcb_input_focus_out_event_t; - -typedef enum xcb_input_hierarchy_mask_t { - XCB_INPUT_HIERARCHY_MASK_MASTER_ADDED = 1, - XCB_INPUT_HIERARCHY_MASK_MASTER_REMOVED = 2, - XCB_INPUT_HIERARCHY_MASK_SLAVE_ADDED = 4, - XCB_INPUT_HIERARCHY_MASK_SLAVE_REMOVED = 8, - XCB_INPUT_HIERARCHY_MASK_SLAVE_ATTACHED = 16, - XCB_INPUT_HIERARCHY_MASK_SLAVE_DETACHED = 32, - XCB_INPUT_HIERARCHY_MASK_DEVICE_ENABLED = 64, - XCB_INPUT_HIERARCHY_MASK_DEVICE_DISABLED = 128 -} xcb_input_hierarchy_mask_t; - -/** - * @brief xcb_input_hierarchy_info_t - **/ -typedef struct xcb_input_hierarchy_info_t { - xcb_input_device_id_t deviceid; /**< */ - xcb_input_device_id_t attachment; /**< */ - uint8_t type; /**< */ - uint8_t enabled; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t flags; /**< */ -} xcb_input_hierarchy_info_t; - -/** - * @brief xcb_input_hierarchy_info_iterator_t - **/ -typedef struct xcb_input_hierarchy_info_iterator_t { - xcb_input_hierarchy_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_input_hierarchy_info_iterator_t; - -/** Opcode for xcb_input_hierarchy. */ -#define XCB_INPUT_HIERARCHY 11 - -/** - * @brief xcb_input_hierarchy_event_t - **/ -typedef struct xcb_input_hierarchy_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - uint32_t flags; /**< */ - uint16_t num_infos; /**< */ - uint8_t pad0[10]; /**< */ - uint32_t full_sequence; /**< */ -} xcb_input_hierarchy_event_t; - -typedef enum xcb_input_property_flag_t { - XCB_INPUT_PROPERTY_FLAG_DELETED = 0, - XCB_INPUT_PROPERTY_FLAG_CREATED = 1, - XCB_INPUT_PROPERTY_FLAG_MODIFIED = 2 -} xcb_input_property_flag_t; - -/** Opcode for xcb_input_property. */ -#define XCB_INPUT_PROPERTY 12 - -/** - * @brief xcb_input_property_event_t - **/ -typedef struct xcb_input_property_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - xcb_atom_t property; /**< */ - uint8_t what; /**< */ - uint8_t pad0[11]; /**< */ - uint32_t full_sequence; /**< */ -} xcb_input_property_event_t; - -/** Opcode for xcb_input_raw_key_press. */ -#define XCB_INPUT_RAW_KEY_PRESS 13 - -/** - * @brief xcb_input_raw_key_press_event_t - **/ -typedef struct xcb_input_raw_key_press_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - uint32_t detail; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint16_t valuators_len; /**< */ - uint32_t flags; /**< */ - uint8_t pad0[4]; /**< */ - uint32_t full_sequence; /**< */ -} xcb_input_raw_key_press_event_t; - -/** Opcode for xcb_input_raw_key_release. */ -#define XCB_INPUT_RAW_KEY_RELEASE 14 - -typedef xcb_input_raw_key_press_event_t xcb_input_raw_key_release_event_t; - -/** Opcode for xcb_input_raw_button_press. */ -#define XCB_INPUT_RAW_BUTTON_PRESS 15 - -/** - * @brief xcb_input_raw_button_press_event_t - **/ -typedef struct xcb_input_raw_button_press_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - uint32_t detail; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint16_t valuators_len; /**< */ - uint32_t flags; /**< */ - uint8_t pad0[4]; /**< */ - uint32_t full_sequence; /**< */ -} xcb_input_raw_button_press_event_t; - -/** Opcode for xcb_input_raw_button_release. */ -#define XCB_INPUT_RAW_BUTTON_RELEASE 16 - -typedef xcb_input_raw_button_press_event_t xcb_input_raw_button_release_event_t; - -/** Opcode for xcb_input_raw_motion. */ -#define XCB_INPUT_RAW_MOTION 17 - -typedef xcb_input_raw_button_press_event_t xcb_input_raw_motion_event_t; - -typedef enum xcb_input_touch_event_flags_t { - XCB_INPUT_TOUCH_EVENT_FLAGS_TOUCH_PENDING_END = 65536, - XCB_INPUT_TOUCH_EVENT_FLAGS_TOUCH_EMULATING_POINTER = 131072 -} xcb_input_touch_event_flags_t; - -/** Opcode for xcb_input_touch_begin. */ -#define XCB_INPUT_TOUCH_BEGIN 18 - -/** - * @brief xcb_input_touch_begin_event_t - **/ -typedef struct xcb_input_touch_begin_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - uint32_t detail; /**< */ - xcb_window_t root; /**< */ - xcb_window_t event; /**< */ - xcb_window_t child; /**< */ - uint32_t full_sequence; /**< */ - xcb_input_fp1616_t root_x; /**< */ - xcb_input_fp1616_t root_y; /**< */ - xcb_input_fp1616_t event_x; /**< */ - xcb_input_fp1616_t event_y; /**< */ - uint16_t buttons_len; /**< */ - uint16_t valuators_len; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t flags; /**< */ - xcb_input_modifier_info_t mods; /**< */ - xcb_input_group_info_t group; /**< */ -} xcb_input_touch_begin_event_t; - -/** Opcode for xcb_input_touch_update. */ -#define XCB_INPUT_TOUCH_UPDATE 19 - -typedef xcb_input_touch_begin_event_t xcb_input_touch_update_event_t; - -/** Opcode for xcb_input_touch_end. */ -#define XCB_INPUT_TOUCH_END 20 - -typedef xcb_input_touch_begin_event_t xcb_input_touch_end_event_t; - -typedef enum xcb_input_touch_ownership_flags_t { - XCB_INPUT_TOUCH_OWNERSHIP_FLAGS_NONE = 0 -} xcb_input_touch_ownership_flags_t; - -/** Opcode for xcb_input_touch_ownership. */ -#define XCB_INPUT_TOUCH_OWNERSHIP 21 - -/** - * @brief xcb_input_touch_ownership_event_t - **/ -typedef struct xcb_input_touch_ownership_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - uint32_t touchid; /**< */ - xcb_window_t root; /**< */ - xcb_window_t event; /**< */ - xcb_window_t child; /**< */ - uint32_t full_sequence; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t flags; /**< */ - uint8_t pad1[8]; /**< */ -} xcb_input_touch_ownership_event_t; - -/** Opcode for xcb_input_raw_touch_begin. */ -#define XCB_INPUT_RAW_TOUCH_BEGIN 22 - -/** - * @brief xcb_input_raw_touch_begin_event_t - **/ -typedef struct xcb_input_raw_touch_begin_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - uint32_t detail; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint16_t valuators_len; /**< */ - uint32_t flags; /**< */ - uint8_t pad0[4]; /**< */ - uint32_t full_sequence; /**< */ -} xcb_input_raw_touch_begin_event_t; - -/** Opcode for xcb_input_raw_touch_update. */ -#define XCB_INPUT_RAW_TOUCH_UPDATE 23 - -typedef xcb_input_raw_touch_begin_event_t xcb_input_raw_touch_update_event_t; - -/** Opcode for xcb_input_raw_touch_end. */ -#define XCB_INPUT_RAW_TOUCH_END 24 - -typedef xcb_input_raw_touch_begin_event_t xcb_input_raw_touch_end_event_t; - -/** Opcode for xcb_input_barrier_hit. */ -#define XCB_INPUT_BARRIER_HIT 25 - -/** - * @brief xcb_input_barrier_hit_event_t - **/ -typedef struct xcb_input_barrier_hit_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - xcb_input_device_id_t deviceid; /**< */ - xcb_timestamp_t time; /**< */ - uint32_t eventid; /**< */ - xcb_window_t root; /**< */ - xcb_window_t event; /**< */ - xcb_xfixes_barrier_t barrier; /**< */ - uint32_t full_sequence; /**< */ - uint32_t dtime; /**< */ - uint32_t flags; /**< */ - xcb_input_device_id_t sourceid; /**< */ - uint8_t pad0[2]; /**< */ - xcb_input_fp1616_t root_x; /**< */ - xcb_input_fp1616_t root_y; /**< */ - xcb_input_fp3232_t dx; /**< */ - xcb_input_fp3232_t dy; /**< */ -} xcb_input_barrier_hit_event_t; - -/** Opcode for xcb_input_barrier_leave. */ -#define XCB_INPUT_BARRIER_LEAVE 26 - -typedef xcb_input_barrier_hit_event_t xcb_input_barrier_leave_event_t; - -/** Opcode for xcb_input_device. */ -#define XCB_INPUT_DEVICE 0 - -/** - * @brief xcb_input_device_error_t - **/ -typedef struct xcb_input_device_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_input_device_error_t; - -/** Opcode for xcb_input_event. */ -#define XCB_INPUT_EVENT 1 - -/** - * @brief xcb_input_event_error_t - **/ -typedef struct xcb_input_event_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_input_event_error_t; - -/** Opcode for xcb_input_mode. */ -#define XCB_INPUT_MODE 2 - -/** - * @brief xcb_input_mode_error_t - **/ -typedef struct xcb_input_mode_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_input_mode_error_t; - -/** Opcode for xcb_input_device_busy. */ -#define XCB_INPUT_DEVICE_BUSY 3 - -/** - * @brief xcb_input_device_busy_error_t - **/ -typedef struct xcb_input_device_busy_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_input_device_busy_error_t; - -/** Opcode for xcb_input_class. */ -#define XCB_INPUT_CLASS 4 - -/** - * @brief xcb_input_class_error_t - **/ -typedef struct xcb_input_class_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_input_class_error_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_event_class_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_event_class_t) - */ -void -xcb_input_event_class_next (xcb_input_event_class_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_event_class_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_event_class_end (xcb_input_event_class_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_key_code_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_key_code_t) - */ -void -xcb_input_key_code_next (xcb_input_key_code_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_key_code_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_key_code_end (xcb_input_key_code_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_id_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_id_t) - */ -void -xcb_input_device_id_next (xcb_input_device_id_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_id_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_id_end (xcb_input_device_id_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_fp1616_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_fp1616_t) - */ -void -xcb_input_fp1616_next (xcb_input_fp1616_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_fp1616_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_fp1616_end (xcb_input_fp1616_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_fp3232_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_fp3232_t) - */ -void -xcb_input_fp3232_next (xcb_input_fp3232_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_fp3232_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_fp3232_end (xcb_input_fp3232_iterator_t i /**< */); - -int -xcb_input_get_extension_version_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_get_extension_version_cookie_t -xcb_input_get_extension_version (xcb_connection_t *c /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_get_extension_version_cookie_t -xcb_input_get_extension_version_unchecked (xcb_connection_t *c /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_get_extension_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_get_extension_version_reply_t * -xcb_input_get_extension_version_reply (xcb_connection_t *c /**< */, - xcb_input_get_extension_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_info_t) - */ -void -xcb_input_device_info_next (xcb_input_device_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_info_end (xcb_input_device_info_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_key_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_key_info_t) - */ -void -xcb_input_key_info_next (xcb_input_key_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_key_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_key_info_end (xcb_input_key_info_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_button_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_button_info_t) - */ -void -xcb_input_button_info_next (xcb_input_button_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_button_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_button_info_end (xcb_input_button_info_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_axis_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_axis_info_t) - */ -void -xcb_input_axis_info_next (xcb_input_axis_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_axis_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_axis_info_end (xcb_input_axis_info_iterator_t i /**< */); - -int -xcb_input_valuator_info_sizeof (const void *_buffer /**< */); - -xcb_input_axis_info_t * -xcb_input_valuator_info_axes (const xcb_input_valuator_info_t *R /**< */); - -int -xcb_input_valuator_info_axes_length (const xcb_input_valuator_info_t *R /**< */); - -xcb_input_axis_info_iterator_t -xcb_input_valuator_info_axes_iterator (const xcb_input_valuator_info_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_valuator_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_valuator_info_t) - */ -void -xcb_input_valuator_info_next (xcb_input_valuator_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_valuator_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_valuator_info_end (xcb_input_valuator_info_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_input_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_input_info_t) - */ -void -xcb_input_input_info_next (xcb_input_input_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_input_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_input_info_end (xcb_input_input_info_iterator_t i /**< */); - -int -xcb_input_device_name_sizeof (const void *_buffer /**< */); - -char * -xcb_input_device_name_string (const xcb_input_device_name_t *R /**< */); - -int -xcb_input_device_name_string_length (const xcb_input_device_name_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_device_name_string_end (const xcb_input_device_name_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_name_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_name_t) - */ -void -xcb_input_device_name_next (xcb_input_device_name_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_name_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_name_end (xcb_input_device_name_iterator_t i /**< */); - -int -xcb_input_list_input_devices_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_list_input_devices_cookie_t -xcb_input_list_input_devices (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_list_input_devices_cookie_t -xcb_input_list_input_devices_unchecked (xcb_connection_t *c /**< */); - -xcb_input_device_info_t * -xcb_input_list_input_devices_devices (const xcb_input_list_input_devices_reply_t *R /**< */); - -int -xcb_input_list_input_devices_devices_length (const xcb_input_list_input_devices_reply_t *R /**< */); - -xcb_input_device_info_iterator_t -xcb_input_list_input_devices_devices_iterator (const xcb_input_list_input_devices_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_list_input_devices_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_list_input_devices_reply_t * -xcb_input_list_input_devices_reply (xcb_connection_t *c /**< */, - xcb_input_list_input_devices_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_input_class_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_input_class_info_t) - */ -void -xcb_input_input_class_info_next (xcb_input_input_class_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_input_class_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_input_class_info_end (xcb_input_input_class_info_iterator_t i /**< */); - -int -xcb_input_open_device_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_open_device_cookie_t -xcb_input_open_device (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_open_device_cookie_t -xcb_input_open_device_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -xcb_input_input_class_info_t * -xcb_input_open_device_class_info (const xcb_input_open_device_reply_t *R /**< */); - -int -xcb_input_open_device_class_info_length (const xcb_input_open_device_reply_t *R /**< */); - -xcb_input_input_class_info_iterator_t -xcb_input_open_device_class_info_iterator (const xcb_input_open_device_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_open_device_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_open_device_reply_t * -xcb_input_open_device_reply (xcb_connection_t *c /**< */, - xcb_input_open_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_close_device_checked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_close_device (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_set_device_mode_cookie_t -xcb_input_set_device_mode (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_set_device_mode_cookie_t -xcb_input_set_device_mode_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t mode /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_set_device_mode_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_set_device_mode_reply_t * -xcb_input_set_device_mode_reply (xcb_connection_t *c /**< */, - xcb_input_set_device_mode_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_select_extension_event_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_select_extension_event_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t num_classes /**< */, - const xcb_input_event_class_t *classes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_select_extension_event (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t num_classes /**< */, - const xcb_input_event_class_t *classes /**< */); - -int -xcb_input_get_selected_extension_events_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_get_selected_extension_events_cookie_t -xcb_input_get_selected_extension_events (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_get_selected_extension_events_cookie_t -xcb_input_get_selected_extension_events_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -xcb_input_event_class_t * -xcb_input_get_selected_extension_events_this_classes (const xcb_input_get_selected_extension_events_reply_t *R /**< */); - -int -xcb_input_get_selected_extension_events_this_classes_length (const xcb_input_get_selected_extension_events_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_get_selected_extension_events_this_classes_end (const xcb_input_get_selected_extension_events_reply_t *R /**< */); - -xcb_input_event_class_t * -xcb_input_get_selected_extension_events_all_classes (const xcb_input_get_selected_extension_events_reply_t *R /**< */); - -int -xcb_input_get_selected_extension_events_all_classes_length (const xcb_input_get_selected_extension_events_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_get_selected_extension_events_all_classes_end (const xcb_input_get_selected_extension_events_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_get_selected_extension_events_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_get_selected_extension_events_reply_t * -xcb_input_get_selected_extension_events_reply (xcb_connection_t *c /**< */, - xcb_input_get_selected_extension_events_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_change_device_dont_propagate_list_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_change_device_dont_propagate_list_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t num_classes /**< */, - uint8_t mode /**< */, - const xcb_input_event_class_t *classes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_change_device_dont_propagate_list (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t num_classes /**< */, - uint8_t mode /**< */, - const xcb_input_event_class_t *classes /**< */); - -int -xcb_input_get_device_dont_propagate_list_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_get_device_dont_propagate_list_cookie_t -xcb_input_get_device_dont_propagate_list (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_get_device_dont_propagate_list_cookie_t -xcb_input_get_device_dont_propagate_list_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -xcb_input_event_class_t * -xcb_input_get_device_dont_propagate_list_classes (const xcb_input_get_device_dont_propagate_list_reply_t *R /**< */); - -int -xcb_input_get_device_dont_propagate_list_classes_length (const xcb_input_get_device_dont_propagate_list_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_get_device_dont_propagate_list_classes_end (const xcb_input_get_device_dont_propagate_list_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_get_device_dont_propagate_list_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_get_device_dont_propagate_list_reply_t * -xcb_input_get_device_dont_propagate_list_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_dont_propagate_list_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_time_coord_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_time_coord_t) - */ -void -xcb_input_device_time_coord_next (xcb_input_device_time_coord_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_time_coord_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_time_coord_end (xcb_input_device_time_coord_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_get_device_motion_events_cookie_t -xcb_input_get_device_motion_events (xcb_connection_t *c /**< */, - xcb_timestamp_t start /**< */, - xcb_timestamp_t stop /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_get_device_motion_events_cookie_t -xcb_input_get_device_motion_events_unchecked (xcb_connection_t *c /**< */, - xcb_timestamp_t start /**< */, - xcb_timestamp_t stop /**< */, - uint8_t device_id /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_get_device_motion_events_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_get_device_motion_events_reply_t * -xcb_input_get_device_motion_events_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_motion_events_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_change_keyboard_device_cookie_t -xcb_input_change_keyboard_device (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_change_keyboard_device_cookie_t -xcb_input_change_keyboard_device_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_change_keyboard_device_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_change_keyboard_device_reply_t * -xcb_input_change_keyboard_device_reply (xcb_connection_t *c /**< */, - xcb_input_change_keyboard_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_change_pointer_device_cookie_t -xcb_input_change_pointer_device (xcb_connection_t *c /**< */, - uint8_t x_axis /**< */, - uint8_t y_axis /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_change_pointer_device_cookie_t -xcb_input_change_pointer_device_unchecked (xcb_connection_t *c /**< */, - uint8_t x_axis /**< */, - uint8_t y_axis /**< */, - uint8_t device_id /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_change_pointer_device_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_change_pointer_device_reply_t * -xcb_input_change_pointer_device_reply (xcb_connection_t *c /**< */, - xcb_input_change_pointer_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_grab_device_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_grab_device_cookie_t -xcb_input_grab_device (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - xcb_timestamp_t time /**< */, - uint16_t num_classes /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t owner_events /**< */, - uint8_t device_id /**< */, - const xcb_input_event_class_t *classes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_grab_device_cookie_t -xcb_input_grab_device_unchecked (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - xcb_timestamp_t time /**< */, - uint16_t num_classes /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t owner_events /**< */, - uint8_t device_id /**< */, - const xcb_input_event_class_t *classes /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_grab_device_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_grab_device_reply_t * -xcb_input_grab_device_reply (xcb_connection_t *c /**< */, - xcb_input_grab_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_ungrab_device_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_ungrab_device (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - uint8_t device_id /**< */); - -int -xcb_input_grab_device_key_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_grab_device_key_checked (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint16_t num_classes /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t grabbed_device /**< */, - uint8_t key /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t owner_events /**< */, - const xcb_input_event_class_t *classes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_grab_device_key (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint16_t num_classes /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t grabbed_device /**< */, - uint8_t key /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t owner_events /**< */, - const xcb_input_event_class_t *classes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_ungrab_device_key_checked (xcb_connection_t *c /**< */, - xcb_window_t grabWindow /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t key /**< */, - uint8_t grabbed_device /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_ungrab_device_key (xcb_connection_t *c /**< */, - xcb_window_t grabWindow /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t key /**< */, - uint8_t grabbed_device /**< */); - -int -xcb_input_grab_device_button_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_grab_device_button_checked (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint8_t grabbed_device /**< */, - uint8_t modifier_device /**< */, - uint16_t num_classes /**< */, - uint16_t modifiers /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t button /**< */, - uint8_t owner_events /**< */, - const xcb_input_event_class_t *classes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_grab_device_button (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint8_t grabbed_device /**< */, - uint8_t modifier_device /**< */, - uint16_t num_classes /**< */, - uint16_t modifiers /**< */, - uint8_t this_device_mode /**< */, - uint8_t other_device_mode /**< */, - uint8_t button /**< */, - uint8_t owner_events /**< */, - const xcb_input_event_class_t *classes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_ungrab_device_button_checked (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t button /**< */, - uint8_t grabbed_device /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_ungrab_device_button (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */, - uint8_t modifier_device /**< */, - uint8_t button /**< */, - uint8_t grabbed_device /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_allow_device_events_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - uint8_t mode /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_allow_device_events (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - uint8_t mode /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_get_device_focus_cookie_t -xcb_input_get_device_focus (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_get_device_focus_cookie_t -xcb_input_get_device_focus_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_get_device_focus_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_get_device_focus_reply_t * -xcb_input_get_device_focus_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_focus_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_set_device_focus_checked (xcb_connection_t *c /**< */, - xcb_window_t focus /**< */, - xcb_timestamp_t time /**< */, - uint8_t revert_to /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_set_device_focus (xcb_connection_t *c /**< */, - xcb_window_t focus /**< */, - xcb_timestamp_t time /**< */, - uint8_t revert_to /**< */, - uint8_t device_id /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_kbd_feedback_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_kbd_feedback_state_t) - */ -void -xcb_input_kbd_feedback_state_next (xcb_input_kbd_feedback_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_kbd_feedback_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_kbd_feedback_state_end (xcb_input_kbd_feedback_state_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_ptr_feedback_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_ptr_feedback_state_t) - */ -void -xcb_input_ptr_feedback_state_next (xcb_input_ptr_feedback_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_ptr_feedback_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_ptr_feedback_state_end (xcb_input_ptr_feedback_state_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_integer_feedback_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_integer_feedback_state_t) - */ -void -xcb_input_integer_feedback_state_next (xcb_input_integer_feedback_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_integer_feedback_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_integer_feedback_state_end (xcb_input_integer_feedback_state_iterator_t i /**< */); - -int -xcb_input_string_feedback_state_sizeof (const void *_buffer /**< */); - -xcb_keysym_t * -xcb_input_string_feedback_state_keysyms (const xcb_input_string_feedback_state_t *R /**< */); - -int -xcb_input_string_feedback_state_keysyms_length (const xcb_input_string_feedback_state_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_string_feedback_state_keysyms_end (const xcb_input_string_feedback_state_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_string_feedback_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_string_feedback_state_t) - */ -void -xcb_input_string_feedback_state_next (xcb_input_string_feedback_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_string_feedback_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_string_feedback_state_end (xcb_input_string_feedback_state_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_bell_feedback_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_bell_feedback_state_t) - */ -void -xcb_input_bell_feedback_state_next (xcb_input_bell_feedback_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_bell_feedback_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_bell_feedback_state_end (xcb_input_bell_feedback_state_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_led_feedback_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_led_feedback_state_t) - */ -void -xcb_input_led_feedback_state_next (xcb_input_led_feedback_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_led_feedback_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_led_feedback_state_end (xcb_input_led_feedback_state_iterator_t i /**< */); - -int -xcb_input_feedback_state_sizeof (const void *_buffer /**< */); - -uint8_t * -xcb_input_feedback_state_uninterpreted_data (const xcb_input_feedback_state_t *R /**< */); - -int -xcb_input_feedback_state_uninterpreted_data_length (const xcb_input_feedback_state_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_feedback_state_uninterpreted_data_end (const xcb_input_feedback_state_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_feedback_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_feedback_state_t) - */ -void -xcb_input_feedback_state_next (xcb_input_feedback_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_feedback_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_feedback_state_end (xcb_input_feedback_state_iterator_t i /**< */); - -int -xcb_input_get_feedback_control_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_get_feedback_control_cookie_t -xcb_input_get_feedback_control (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_get_feedback_control_cookie_t -xcb_input_get_feedback_control_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -int -xcb_input_get_feedback_control_feedbacks_length (const xcb_input_get_feedback_control_reply_t *R /**< */); - -xcb_input_feedback_state_iterator_t -xcb_input_get_feedback_control_feedbacks_iterator (const xcb_input_get_feedback_control_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_get_feedback_control_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_get_feedback_control_reply_t * -xcb_input_get_feedback_control_reply (xcb_connection_t *c /**< */, - xcb_input_get_feedback_control_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_kbd_feedback_ctl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_kbd_feedback_ctl_t) - */ -void -xcb_input_kbd_feedback_ctl_next (xcb_input_kbd_feedback_ctl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_kbd_feedback_ctl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_kbd_feedback_ctl_end (xcb_input_kbd_feedback_ctl_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_ptr_feedback_ctl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_ptr_feedback_ctl_t) - */ -void -xcb_input_ptr_feedback_ctl_next (xcb_input_ptr_feedback_ctl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_ptr_feedback_ctl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_ptr_feedback_ctl_end (xcb_input_ptr_feedback_ctl_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_integer_feedback_ctl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_integer_feedback_ctl_t) - */ -void -xcb_input_integer_feedback_ctl_next (xcb_input_integer_feedback_ctl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_integer_feedback_ctl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_integer_feedback_ctl_end (xcb_input_integer_feedback_ctl_iterator_t i /**< */); - -int -xcb_input_string_feedback_ctl_sizeof (const void *_buffer /**< */); - -xcb_keysym_t * -xcb_input_string_feedback_ctl_keysyms (const xcb_input_string_feedback_ctl_t *R /**< */); - -int -xcb_input_string_feedback_ctl_keysyms_length (const xcb_input_string_feedback_ctl_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_string_feedback_ctl_keysyms_end (const xcb_input_string_feedback_ctl_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_string_feedback_ctl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_string_feedback_ctl_t) - */ -void -xcb_input_string_feedback_ctl_next (xcb_input_string_feedback_ctl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_string_feedback_ctl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_string_feedback_ctl_end (xcb_input_string_feedback_ctl_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_bell_feedback_ctl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_bell_feedback_ctl_t) - */ -void -xcb_input_bell_feedback_ctl_next (xcb_input_bell_feedback_ctl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_bell_feedback_ctl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_bell_feedback_ctl_end (xcb_input_bell_feedback_ctl_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_led_feedback_ctl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_led_feedback_ctl_t) - */ -void -xcb_input_led_feedback_ctl_next (xcb_input_led_feedback_ctl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_led_feedback_ctl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_led_feedback_ctl_end (xcb_input_led_feedback_ctl_iterator_t i /**< */); - -int -xcb_input_feedback_ctl_sizeof (const void *_buffer /**< */); - -uint8_t * -xcb_input_feedback_ctl_uninterpreted_data (const xcb_input_feedback_ctl_t *R /**< */); - -int -xcb_input_feedback_ctl_uninterpreted_data_length (const xcb_input_feedback_ctl_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_feedback_ctl_uninterpreted_data_end (const xcb_input_feedback_ctl_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_feedback_ctl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_feedback_ctl_t) - */ -void -xcb_input_feedback_ctl_next (xcb_input_feedback_ctl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_feedback_ctl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_feedback_ctl_end (xcb_input_feedback_ctl_iterator_t i /**< */); - -int -xcb_input_change_feedback_control_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_change_feedback_control_checked (xcb_connection_t *c /**< */, - uint32_t mask /**< */, - uint8_t device_id /**< */, - uint8_t feedback_id /**< */, - xcb_input_feedback_ctl_t *feedback /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_change_feedback_control (xcb_connection_t *c /**< */, - uint32_t mask /**< */, - uint8_t device_id /**< */, - uint8_t feedback_id /**< */, - xcb_input_feedback_ctl_t *feedback /**< */); - -int -xcb_input_get_device_key_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_get_device_key_mapping_cookie_t -xcb_input_get_device_key_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - xcb_input_key_code_t first_keycode /**< */, - uint8_t count /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_get_device_key_mapping_cookie_t -xcb_input_get_device_key_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - xcb_input_key_code_t first_keycode /**< */, - uint8_t count /**< */); - -xcb_keysym_t * -xcb_input_get_device_key_mapping_keysyms (const xcb_input_get_device_key_mapping_reply_t *R /**< */); - -int -xcb_input_get_device_key_mapping_keysyms_length (const xcb_input_get_device_key_mapping_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_get_device_key_mapping_keysyms_end (const xcb_input_get_device_key_mapping_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_get_device_key_mapping_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_get_device_key_mapping_reply_t * -xcb_input_get_device_key_mapping_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_key_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_change_device_key_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_change_device_key_mapping_checked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - xcb_input_key_code_t first_keycode /**< */, - uint8_t keysyms_per_keycode /**< */, - uint8_t keycode_count /**< */, - const xcb_keysym_t *keysyms /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_change_device_key_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - xcb_input_key_code_t first_keycode /**< */, - uint8_t keysyms_per_keycode /**< */, - uint8_t keycode_count /**< */, - const xcb_keysym_t *keysyms /**< */); - -int -xcb_input_get_device_modifier_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_get_device_modifier_mapping_cookie_t -xcb_input_get_device_modifier_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_get_device_modifier_mapping_cookie_t -xcb_input_get_device_modifier_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -uint8_t * -xcb_input_get_device_modifier_mapping_keymaps (const xcb_input_get_device_modifier_mapping_reply_t *R /**< */); - -int -xcb_input_get_device_modifier_mapping_keymaps_length (const xcb_input_get_device_modifier_mapping_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_get_device_modifier_mapping_keymaps_end (const xcb_input_get_device_modifier_mapping_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_get_device_modifier_mapping_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_get_device_modifier_mapping_reply_t * -xcb_input_get_device_modifier_mapping_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_modifier_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_set_device_modifier_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_set_device_modifier_mapping_cookie_t -xcb_input_set_device_modifier_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t keycodes_per_modifier /**< */, - const uint8_t *keymaps /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_set_device_modifier_mapping_cookie_t -xcb_input_set_device_modifier_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t keycodes_per_modifier /**< */, - const uint8_t *keymaps /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_set_device_modifier_mapping_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_set_device_modifier_mapping_reply_t * -xcb_input_set_device_modifier_mapping_reply (xcb_connection_t *c /**< */, - xcb_input_set_device_modifier_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_get_device_button_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_get_device_button_mapping_cookie_t -xcb_input_get_device_button_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_get_device_button_mapping_cookie_t -xcb_input_get_device_button_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -uint8_t * -xcb_input_get_device_button_mapping_map (const xcb_input_get_device_button_mapping_reply_t *R /**< */); - -int -xcb_input_get_device_button_mapping_map_length (const xcb_input_get_device_button_mapping_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_get_device_button_mapping_map_end (const xcb_input_get_device_button_mapping_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_get_device_button_mapping_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_get_device_button_mapping_reply_t * -xcb_input_get_device_button_mapping_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_button_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_set_device_button_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_set_device_button_mapping_cookie_t -xcb_input_set_device_button_mapping (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t map_size /**< */, - const uint8_t *map /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_set_device_button_mapping_cookie_t -xcb_input_set_device_button_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t map_size /**< */, - const uint8_t *map /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_set_device_button_mapping_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_set_device_button_mapping_reply_t * -xcb_input_set_device_button_mapping_reply (xcb_connection_t *c /**< */, - xcb_input_set_device_button_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_key_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_key_state_t) - */ -void -xcb_input_key_state_next (xcb_input_key_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_key_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_key_state_end (xcb_input_key_state_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_button_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_button_state_t) - */ -void -xcb_input_button_state_next (xcb_input_button_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_button_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_button_state_end (xcb_input_button_state_iterator_t i /**< */); - -int -xcb_input_valuator_state_sizeof (const void *_buffer /**< */); - -uint32_t * -xcb_input_valuator_state_valuators (const xcb_input_valuator_state_t *R /**< */); - -int -xcb_input_valuator_state_valuators_length (const xcb_input_valuator_state_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_valuator_state_valuators_end (const xcb_input_valuator_state_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_valuator_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_valuator_state_t) - */ -void -xcb_input_valuator_state_next (xcb_input_valuator_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_valuator_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_valuator_state_end (xcb_input_valuator_state_iterator_t i /**< */); - -int -xcb_input_input_state_sizeof (const void *_buffer /**< */); - -uint8_t * -xcb_input_input_state_uninterpreted_data (const xcb_input_input_state_t *R /**< */); - -int -xcb_input_input_state_uninterpreted_data_length (const xcb_input_input_state_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_input_state_uninterpreted_data_end (const xcb_input_input_state_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_input_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_input_state_t) - */ -void -xcb_input_input_state_next (xcb_input_input_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_input_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_input_state_end (xcb_input_input_state_iterator_t i /**< */); - -int -xcb_input_query_device_state_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_query_device_state_cookie_t -xcb_input_query_device_state (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_query_device_state_cookie_t -xcb_input_query_device_state_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -int -xcb_input_query_device_state_classes_length (const xcb_input_query_device_state_reply_t *R /**< */); - -xcb_input_input_state_iterator_t -xcb_input_query_device_state_classes_iterator (const xcb_input_query_device_state_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_query_device_state_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_query_device_state_reply_t * -xcb_input_query_device_state_reply (xcb_connection_t *c /**< */, - xcb_input_query_device_state_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_send_extension_event_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_send_extension_event_checked (xcb_connection_t *c /**< */, - xcb_window_t destination /**< */, - uint8_t device_id /**< */, - uint8_t propagate /**< */, - uint16_t num_classes /**< */, - uint8_t num_events /**< */, - const uint8_t *events /**< */, - const xcb_input_event_class_t *classes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_send_extension_event (xcb_connection_t *c /**< */, - xcb_window_t destination /**< */, - uint8_t device_id /**< */, - uint8_t propagate /**< */, - uint16_t num_classes /**< */, - uint8_t num_events /**< */, - const uint8_t *events /**< */, - const xcb_input_event_class_t *classes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_device_bell_checked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t feedback_id /**< */, - uint8_t feedback_class /**< */, - int8_t percent /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_device_bell (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t feedback_id /**< */, - uint8_t feedback_class /**< */, - int8_t percent /**< */); - -int -xcb_input_set_device_valuators_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_set_device_valuators_cookie_t -xcb_input_set_device_valuators (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t first_valuator /**< */, - uint8_t num_valuators /**< */, - const int32_t *valuators /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_set_device_valuators_cookie_t -xcb_input_set_device_valuators_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */, - uint8_t first_valuator /**< */, - uint8_t num_valuators /**< */, - const int32_t *valuators /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_set_device_valuators_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_set_device_valuators_reply_t * -xcb_input_set_device_valuators_reply (xcb_connection_t *c /**< */, - xcb_input_set_device_valuators_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_device_resolution_state_sizeof (const void *_buffer /**< */); - -uint32_t * -xcb_input_device_resolution_state_resolution_values (const xcb_input_device_resolution_state_t *R /**< */); - -int -xcb_input_device_resolution_state_resolution_values_length (const xcb_input_device_resolution_state_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_device_resolution_state_resolution_values_end (const xcb_input_device_resolution_state_t *R /**< */); - -uint32_t * -xcb_input_device_resolution_state_resolution_min (const xcb_input_device_resolution_state_t *R /**< */); - -int -xcb_input_device_resolution_state_resolution_min_length (const xcb_input_device_resolution_state_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_device_resolution_state_resolution_min_end (const xcb_input_device_resolution_state_t *R /**< */); - -uint32_t * -xcb_input_device_resolution_state_resolution_max (const xcb_input_device_resolution_state_t *R /**< */); - -int -xcb_input_device_resolution_state_resolution_max_length (const xcb_input_device_resolution_state_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_device_resolution_state_resolution_max_end (const xcb_input_device_resolution_state_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_resolution_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_resolution_state_t) - */ -void -xcb_input_device_resolution_state_next (xcb_input_device_resolution_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_resolution_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_resolution_state_end (xcb_input_device_resolution_state_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_abs_calib_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_abs_calib_state_t) - */ -void -xcb_input_device_abs_calib_state_next (xcb_input_device_abs_calib_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_abs_calib_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_abs_calib_state_end (xcb_input_device_abs_calib_state_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_abs_area_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_abs_area_state_t) - */ -void -xcb_input_device_abs_area_state_next (xcb_input_device_abs_area_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_abs_area_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_abs_area_state_end (xcb_input_device_abs_area_state_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_core_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_core_state_t) - */ -void -xcb_input_device_core_state_next (xcb_input_device_core_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_core_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_core_state_end (xcb_input_device_core_state_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_enable_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_enable_state_t) - */ -void -xcb_input_device_enable_state_next (xcb_input_device_enable_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_enable_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_enable_state_end (xcb_input_device_enable_state_iterator_t i /**< */); - -int -xcb_input_device_state_sizeof (const void *_buffer /**< */); - -uint8_t * -xcb_input_device_state_uninterpreted_data (const xcb_input_device_state_t *R /**< */); - -int -xcb_input_device_state_uninterpreted_data_length (const xcb_input_device_state_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_device_state_uninterpreted_data_end (const xcb_input_device_state_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_state_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_state_t) - */ -void -xcb_input_device_state_next (xcb_input_device_state_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_state_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_state_end (xcb_input_device_state_iterator_t i /**< */); - -int -xcb_input_get_device_control_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_get_device_control_cookie_t -xcb_input_get_device_control (xcb_connection_t *c /**< */, - uint16_t control_id /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_get_device_control_cookie_t -xcb_input_get_device_control_unchecked (xcb_connection_t *c /**< */, - uint16_t control_id /**< */, - uint8_t device_id /**< */); - -xcb_input_device_state_t * -xcb_input_get_device_control_control (const xcb_input_get_device_control_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_get_device_control_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_get_device_control_reply_t * -xcb_input_get_device_control_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_control_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_device_resolution_ctl_sizeof (const void *_buffer /**< */); - -uint32_t * -xcb_input_device_resolution_ctl_resolution_values (const xcb_input_device_resolution_ctl_t *R /**< */); - -int -xcb_input_device_resolution_ctl_resolution_values_length (const xcb_input_device_resolution_ctl_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_device_resolution_ctl_resolution_values_end (const xcb_input_device_resolution_ctl_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_resolution_ctl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_resolution_ctl_t) - */ -void -xcb_input_device_resolution_ctl_next (xcb_input_device_resolution_ctl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_resolution_ctl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_resolution_ctl_end (xcb_input_device_resolution_ctl_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_abs_calib_ctl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_abs_calib_ctl_t) - */ -void -xcb_input_device_abs_calib_ctl_next (xcb_input_device_abs_calib_ctl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_abs_calib_ctl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_abs_calib_ctl_end (xcb_input_device_abs_calib_ctl_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_abs_area_ctrl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_abs_area_ctrl_t) - */ -void -xcb_input_device_abs_area_ctrl_next (xcb_input_device_abs_area_ctrl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_abs_area_ctrl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_abs_area_ctrl_end (xcb_input_device_abs_area_ctrl_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_core_ctrl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_core_ctrl_t) - */ -void -xcb_input_device_core_ctrl_next (xcb_input_device_core_ctrl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_core_ctrl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_core_ctrl_end (xcb_input_device_core_ctrl_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_enable_ctrl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_enable_ctrl_t) - */ -void -xcb_input_device_enable_ctrl_next (xcb_input_device_enable_ctrl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_enable_ctrl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_enable_ctrl_end (xcb_input_device_enable_ctrl_iterator_t i /**< */); - -int -xcb_input_device_ctl_sizeof (const void *_buffer /**< */); - -uint8_t * -xcb_input_device_ctl_uninterpreted_data (const xcb_input_device_ctl_t *R /**< */); - -int -xcb_input_device_ctl_uninterpreted_data_length (const xcb_input_device_ctl_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_device_ctl_uninterpreted_data_end (const xcb_input_device_ctl_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_ctl_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_ctl_t) - */ -void -xcb_input_device_ctl_next (xcb_input_device_ctl_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_ctl_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_ctl_end (xcb_input_device_ctl_iterator_t i /**< */); - -int -xcb_input_change_device_control_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_change_device_control_cookie_t -xcb_input_change_device_control (xcb_connection_t *c /**< */, - uint16_t control_id /**< */, - uint8_t device_id /**< */, - xcb_input_device_ctl_t *control /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_change_device_control_cookie_t -xcb_input_change_device_control_unchecked (xcb_connection_t *c /**< */, - uint16_t control_id /**< */, - uint8_t device_id /**< */, - xcb_input_device_ctl_t *control /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_change_device_control_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_change_device_control_reply_t * -xcb_input_change_device_control_reply (xcb_connection_t *c /**< */, - xcb_input_change_device_control_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_list_device_properties_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_list_device_properties_cookie_t -xcb_input_list_device_properties (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_list_device_properties_cookie_t -xcb_input_list_device_properties_unchecked (xcb_connection_t *c /**< */, - uint8_t device_id /**< */); - -xcb_atom_t * -xcb_input_list_device_properties_atoms (const xcb_input_list_device_properties_reply_t *R /**< */); - -int -xcb_input_list_device_properties_atoms_length (const xcb_input_list_device_properties_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_list_device_properties_atoms_end (const xcb_input_list_device_properties_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_list_device_properties_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_list_device_properties_reply_t * -xcb_input_list_device_properties_reply (xcb_connection_t *c /**< */, - xcb_input_list_device_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -uint8_t * -xcb_input_change_device_property_items_data_8 (const xcb_input_change_device_property_items_t *S /**< */); - -int -xcb_input_change_device_property_items_data_8_length (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_change_device_property_items_data_8_end (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */); - -uint16_t * -xcb_input_change_device_property_items_data_16 (const xcb_input_change_device_property_items_t *S /**< */); - -int -xcb_input_change_device_property_items_data_16_length (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_change_device_property_items_data_16_end (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */); - -uint32_t * -xcb_input_change_device_property_items_data_32 (const xcb_input_change_device_property_items_t *S /**< */); - -int -xcb_input_change_device_property_items_data_32_length (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_change_device_property_items_data_32_end (const xcb_input_change_device_property_request_t *R /**< */, - const xcb_input_change_device_property_items_t *S /**< */); - -int -xcb_input_change_device_property_items_serialize (void **_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - const xcb_input_change_device_property_items_t *_aux /**< */); - -int -xcb_input_change_device_property_items_unpack (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - xcb_input_change_device_property_items_t *_aux /**< */); - -int -xcb_input_change_device_property_items_sizeof (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_change_device_property_checked (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t device_id /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const void *items /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_change_device_property (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t device_id /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const void *items /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_change_device_property_aux_checked (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t device_id /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const xcb_input_change_device_property_items_t *items /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_change_device_property_aux (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t device_id /**< */, - uint8_t format /**< */, - uint8_t mode /**< */, - uint32_t num_items /**< */, - const xcb_input_change_device_property_items_t *items /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_delete_device_property_checked (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - uint8_t device_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_delete_device_property (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - uint8_t device_id /**< */); - -uint8_t * -xcb_input_get_device_property_items_data_8 (const xcb_input_get_device_property_items_t *S /**< */); - -int -xcb_input_get_device_property_items_data_8_length (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_get_device_property_items_data_8_end (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */); - -uint16_t * -xcb_input_get_device_property_items_data_16 (const xcb_input_get_device_property_items_t *S /**< */); - -int -xcb_input_get_device_property_items_data_16_length (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_get_device_property_items_data_16_end (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */); - -uint32_t * -xcb_input_get_device_property_items_data_32 (const xcb_input_get_device_property_items_t *S /**< */); - -int -xcb_input_get_device_property_items_data_32_length (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_get_device_property_items_data_32_end (const xcb_input_get_device_property_reply_t *R /**< */, - const xcb_input_get_device_property_items_t *S /**< */); - -int -xcb_input_get_device_property_items_serialize (void **_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - const xcb_input_get_device_property_items_t *_aux /**< */); - -int -xcb_input_get_device_property_items_unpack (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - xcb_input_get_device_property_items_t *_aux /**< */); - -int -xcb_input_get_device_property_items_sizeof (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_get_device_property_cookie_t -xcb_input_get_device_property (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t offset /**< */, - uint32_t len /**< */, - uint8_t device_id /**< */, - uint8_t _delete /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_get_device_property_cookie_t -xcb_input_get_device_property_unchecked (xcb_connection_t *c /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t offset /**< */, - uint32_t len /**< */, - uint8_t device_id /**< */, - uint8_t _delete /**< */); - -void * -xcb_input_get_device_property_items (const xcb_input_get_device_property_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_get_device_property_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_get_device_property_reply_t * -xcb_input_get_device_property_reply (xcb_connection_t *c /**< */, - xcb_input_get_device_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_group_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_group_info_t) - */ -void -xcb_input_group_info_next (xcb_input_group_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_group_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_group_info_end (xcb_input_group_info_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_modifier_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_modifier_info_t) - */ -void -xcb_input_modifier_info_next (xcb_input_modifier_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_modifier_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_modifier_info_end (xcb_input_modifier_info_iterator_t i /**< */); - -int -xcb_input_xi_query_pointer_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_xi_query_pointer_cookie_t -xcb_input_xi_query_pointer (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_xi_query_pointer_cookie_t -xcb_input_xi_query_pointer_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_input_device_id_t deviceid /**< */); - -uint32_t * -xcb_input_xi_query_pointer_buttons (const xcb_input_xi_query_pointer_reply_t *R /**< */); - -int -xcb_input_xi_query_pointer_buttons_length (const xcb_input_xi_query_pointer_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_xi_query_pointer_buttons_end (const xcb_input_xi_query_pointer_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_xi_query_pointer_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_xi_query_pointer_reply_t * -xcb_input_xi_query_pointer_reply (xcb_connection_t *c /**< */, - xcb_input_xi_query_pointer_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_warp_pointer_checked (xcb_connection_t *c /**< */, - xcb_window_t src_win /**< */, - xcb_window_t dst_win /**< */, - xcb_input_fp1616_t src_x /**< */, - xcb_input_fp1616_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - xcb_input_fp1616_t dst_x /**< */, - xcb_input_fp1616_t dst_y /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_warp_pointer (xcb_connection_t *c /**< */, - xcb_window_t src_win /**< */, - xcb_window_t dst_win /**< */, - xcb_input_fp1616_t src_x /**< */, - xcb_input_fp1616_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - xcb_input_fp1616_t dst_x /**< */, - xcb_input_fp1616_t dst_y /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_change_cursor_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_cursor_t cursor /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_change_cursor (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_cursor_t cursor /**< */, - xcb_input_device_id_t deviceid /**< */); - -int -xcb_input_add_master_sizeof (const void *_buffer /**< */); - -char * -xcb_input_add_master_name (const xcb_input_add_master_t *R /**< */); - -int -xcb_input_add_master_name_length (const xcb_input_add_master_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_add_master_name_end (const xcb_input_add_master_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_add_master_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_add_master_t) - */ -void -xcb_input_add_master_next (xcb_input_add_master_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_add_master_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_add_master_end (xcb_input_add_master_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_remove_master_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_remove_master_t) - */ -void -xcb_input_remove_master_next (xcb_input_remove_master_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_remove_master_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_remove_master_end (xcb_input_remove_master_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_attach_slave_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_attach_slave_t) - */ -void -xcb_input_attach_slave_next (xcb_input_attach_slave_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_attach_slave_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_attach_slave_end (xcb_input_attach_slave_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_detach_slave_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_detach_slave_t) - */ -void -xcb_input_detach_slave_next (xcb_input_detach_slave_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_detach_slave_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_detach_slave_end (xcb_input_detach_slave_iterator_t i /**< */); - -int -xcb_input_hierarchy_change_sizeof (const void *_buffer /**< */); - -uint8_t * -xcb_input_hierarchy_change_uninterpreted_data (const xcb_input_hierarchy_change_t *R /**< */); - -int -xcb_input_hierarchy_change_uninterpreted_data_length (const xcb_input_hierarchy_change_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_hierarchy_change_uninterpreted_data_end (const xcb_input_hierarchy_change_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_hierarchy_change_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_hierarchy_change_t) - */ -void -xcb_input_hierarchy_change_next (xcb_input_hierarchy_change_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_hierarchy_change_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_hierarchy_change_end (xcb_input_hierarchy_change_iterator_t i /**< */); - -int -xcb_input_xi_change_hierarchy_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_change_hierarchy_checked (xcb_connection_t *c /**< */, - uint8_t num_changes /**< */, - const xcb_input_hierarchy_change_t *changes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_change_hierarchy (xcb_connection_t *c /**< */, - uint8_t num_changes /**< */, - const xcb_input_hierarchy_change_t *changes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_set_client_pointer_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_set_client_pointer (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_xi_get_client_pointer_cookie_t -xcb_input_xi_get_client_pointer (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_xi_get_client_pointer_cookie_t -xcb_input_xi_get_client_pointer_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_xi_get_client_pointer_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_xi_get_client_pointer_reply_t * -xcb_input_xi_get_client_pointer_reply (xcb_connection_t *c /**< */, - xcb_input_xi_get_client_pointer_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_event_mask_sizeof (const void *_buffer /**< */); - -uint32_t * -xcb_input_event_mask_mask (const xcb_input_event_mask_t *R /**< */); - -int -xcb_input_event_mask_mask_length (const xcb_input_event_mask_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_event_mask_mask_end (const xcb_input_event_mask_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_event_mask_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_event_mask_t) - */ -void -xcb_input_event_mask_next (xcb_input_event_mask_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_event_mask_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_event_mask_end (xcb_input_event_mask_iterator_t i /**< */); - -int -xcb_input_xi_select_events_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_select_events_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t num_mask /**< */, - const xcb_input_event_mask_t *masks /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_select_events (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t num_mask /**< */, - const xcb_input_event_mask_t *masks /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_xi_query_version_cookie_t -xcb_input_xi_query_version (xcb_connection_t *c /**< */, - uint16_t major_version /**< */, - uint16_t minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_xi_query_version_cookie_t -xcb_input_xi_query_version_unchecked (xcb_connection_t *c /**< */, - uint16_t major_version /**< */, - uint16_t minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_xi_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_xi_query_version_reply_t * -xcb_input_xi_query_version_reply (xcb_connection_t *c /**< */, - xcb_input_xi_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_button_class_sizeof (const void *_buffer /**< */); - -uint32_t * -xcb_input_button_class_state (const xcb_input_button_class_t *R /**< */); - -int -xcb_input_button_class_state_length (const xcb_input_button_class_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_button_class_state_end (const xcb_input_button_class_t *R /**< */); - -xcb_atom_t * -xcb_input_button_class_labels (const xcb_input_button_class_t *R /**< */); - -int -xcb_input_button_class_labels_length (const xcb_input_button_class_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_button_class_labels_end (const xcb_input_button_class_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_button_class_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_button_class_t) - */ -void -xcb_input_button_class_next (xcb_input_button_class_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_button_class_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_button_class_end (xcb_input_button_class_iterator_t i /**< */); - -int -xcb_input_key_class_sizeof (const void *_buffer /**< */); - -uint32_t * -xcb_input_key_class_keys (const xcb_input_key_class_t *R /**< */); - -int -xcb_input_key_class_keys_length (const xcb_input_key_class_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_key_class_keys_end (const xcb_input_key_class_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_key_class_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_key_class_t) - */ -void -xcb_input_key_class_next (xcb_input_key_class_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_key_class_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_key_class_end (xcb_input_key_class_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_scroll_class_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_scroll_class_t) - */ -void -xcb_input_scroll_class_next (xcb_input_scroll_class_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_scroll_class_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_scroll_class_end (xcb_input_scroll_class_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_touch_class_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_touch_class_t) - */ -void -xcb_input_touch_class_next (xcb_input_touch_class_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_touch_class_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_touch_class_end (xcb_input_touch_class_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_valuator_class_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_valuator_class_t) - */ -void -xcb_input_valuator_class_next (xcb_input_valuator_class_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_valuator_class_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_valuator_class_end (xcb_input_valuator_class_iterator_t i /**< */); - -int -xcb_input_device_class_sizeof (const void *_buffer /**< */); - -uint8_t * -xcb_input_device_class_uninterpreted_data (const xcb_input_device_class_t *R /**< */); - -int -xcb_input_device_class_uninterpreted_data_length (const xcb_input_device_class_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_device_class_uninterpreted_data_end (const xcb_input_device_class_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_device_class_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_device_class_t) - */ -void -xcb_input_device_class_next (xcb_input_device_class_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_device_class_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_device_class_end (xcb_input_device_class_iterator_t i /**< */); - -int -xcb_input_xi_device_info_sizeof (const void *_buffer /**< */); - -char * -xcb_input_xi_device_info_name (const xcb_input_xi_device_info_t *R /**< */); - -int -xcb_input_xi_device_info_name_length (const xcb_input_xi_device_info_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_xi_device_info_name_end (const xcb_input_xi_device_info_t *R /**< */); - -int -xcb_input_xi_device_info_classes_length (const xcb_input_xi_device_info_t *R /**< */); - -xcb_input_device_class_iterator_t -xcb_input_xi_device_info_classes_iterator (const xcb_input_xi_device_info_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_xi_device_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_xi_device_info_t) - */ -void -xcb_input_xi_device_info_next (xcb_input_xi_device_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_xi_device_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_xi_device_info_end (xcb_input_xi_device_info_iterator_t i /**< */); - -int -xcb_input_xi_query_device_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_xi_query_device_cookie_t -xcb_input_xi_query_device (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_xi_query_device_cookie_t -xcb_input_xi_query_device_unchecked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */); - -int -xcb_input_xi_query_device_infos_length (const xcb_input_xi_query_device_reply_t *R /**< */); - -xcb_input_xi_device_info_iterator_t -xcb_input_xi_query_device_infos_iterator (const xcb_input_xi_query_device_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_xi_query_device_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_xi_query_device_reply_t * -xcb_input_xi_query_device_reply (xcb_connection_t *c /**< */, - xcb_input_xi_query_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_set_focus_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_set_focus (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_xi_get_focus_cookie_t -xcb_input_xi_get_focus (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_xi_get_focus_cookie_t -xcb_input_xi_get_focus_unchecked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_xi_get_focus_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_xi_get_focus_reply_t * -xcb_input_xi_get_focus_reply (xcb_connection_t *c /**< */, - xcb_input_xi_get_focus_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_xi_grab_device_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_xi_grab_device_cookie_t -xcb_input_xi_grab_device (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t time /**< */, - xcb_cursor_t cursor /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t paired_device_mode /**< */, - uint8_t owner_events /**< */, - uint16_t mask_len /**< */, - const uint32_t *mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_xi_grab_device_cookie_t -xcb_input_xi_grab_device_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t time /**< */, - xcb_cursor_t cursor /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t paired_device_mode /**< */, - uint8_t owner_events /**< */, - uint16_t mask_len /**< */, - const uint32_t *mask /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_xi_grab_device_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_xi_grab_device_reply_t * -xcb_input_xi_grab_device_reply (xcb_connection_t *c /**< */, - xcb_input_xi_grab_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_ungrab_device_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_ungrab_device (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_allow_events_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t event_mode /**< */, - uint32_t touchid /**< */, - xcb_window_t grab_window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_allow_events (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t event_mode /**< */, - uint32_t touchid /**< */, - xcb_window_t grab_window /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_grab_modifier_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_grab_modifier_info_t) - */ -void -xcb_input_grab_modifier_info_next (xcb_input_grab_modifier_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_grab_modifier_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_grab_modifier_info_end (xcb_input_grab_modifier_info_iterator_t i /**< */); - -int -xcb_input_xi_passive_grab_device_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_xi_passive_grab_device_cookie_t -xcb_input_xi_passive_grab_device (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_window_t grab_window /**< */, - xcb_cursor_t cursor /**< */, - uint32_t detail /**< */, - xcb_input_device_id_t deviceid /**< */, - uint16_t num_modifiers /**< */, - uint16_t mask_len /**< */, - uint8_t grab_type /**< */, - uint8_t grab_mode /**< */, - uint8_t paired_device_mode /**< */, - uint8_t owner_events /**< */, - const uint32_t *mask /**< */, - const uint32_t *modifiers /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_xi_passive_grab_device_cookie_t -xcb_input_xi_passive_grab_device_unchecked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */, - xcb_window_t grab_window /**< */, - xcb_cursor_t cursor /**< */, - uint32_t detail /**< */, - xcb_input_device_id_t deviceid /**< */, - uint16_t num_modifiers /**< */, - uint16_t mask_len /**< */, - uint8_t grab_type /**< */, - uint8_t grab_mode /**< */, - uint8_t paired_device_mode /**< */, - uint8_t owner_events /**< */, - const uint32_t *mask /**< */, - const uint32_t *modifiers /**< */); - -xcb_input_grab_modifier_info_t * -xcb_input_xi_passive_grab_device_modifiers (const xcb_input_xi_passive_grab_device_reply_t *R /**< */); - -int -xcb_input_xi_passive_grab_device_modifiers_length (const xcb_input_xi_passive_grab_device_reply_t *R /**< */); - -xcb_input_grab_modifier_info_iterator_t -xcb_input_xi_passive_grab_device_modifiers_iterator (const xcb_input_xi_passive_grab_device_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_xi_passive_grab_device_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_xi_passive_grab_device_reply_t * -xcb_input_xi_passive_grab_device_reply (xcb_connection_t *c /**< */, - xcb_input_xi_passive_grab_device_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_xi_passive_ungrab_device_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_passive_ungrab_device_checked (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint32_t detail /**< */, - xcb_input_device_id_t deviceid /**< */, - uint16_t num_modifiers /**< */, - uint8_t grab_type /**< */, - const uint32_t *modifiers /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_passive_ungrab_device (xcb_connection_t *c /**< */, - xcb_window_t grab_window /**< */, - uint32_t detail /**< */, - xcb_input_device_id_t deviceid /**< */, - uint16_t num_modifiers /**< */, - uint8_t grab_type /**< */, - const uint32_t *modifiers /**< */); - -int -xcb_input_xi_list_properties_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_xi_list_properties_cookie_t -xcb_input_xi_list_properties (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_xi_list_properties_cookie_t -xcb_input_xi_list_properties_unchecked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */); - -xcb_atom_t * -xcb_input_xi_list_properties_properties (const xcb_input_xi_list_properties_reply_t *R /**< */); - -int -xcb_input_xi_list_properties_properties_length (const xcb_input_xi_list_properties_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_input_xi_list_properties_properties_end (const xcb_input_xi_list_properties_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_xi_list_properties_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_xi_list_properties_reply_t * -xcb_input_xi_list_properties_reply (xcb_connection_t *c /**< */, - xcb_input_xi_list_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -uint8_t * -xcb_input_xi_change_property_items_data_8 (const xcb_input_xi_change_property_items_t *S /**< */); - -int -xcb_input_xi_change_property_items_data_8_length (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_xi_change_property_items_data_8_end (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */); - -uint16_t * -xcb_input_xi_change_property_items_data_16 (const xcb_input_xi_change_property_items_t *S /**< */); - -int -xcb_input_xi_change_property_items_data_16_length (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_xi_change_property_items_data_16_end (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */); - -uint32_t * -xcb_input_xi_change_property_items_data_32 (const xcb_input_xi_change_property_items_t *S /**< */); - -int -xcb_input_xi_change_property_items_data_32_length (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_xi_change_property_items_data_32_end (const xcb_input_xi_change_property_request_t *R /**< */, - const xcb_input_xi_change_property_items_t *S /**< */); - -int -xcb_input_xi_change_property_items_serialize (void **_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - const xcb_input_xi_change_property_items_t *_aux /**< */); - -int -xcb_input_xi_change_property_items_unpack (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - xcb_input_xi_change_property_items_t *_aux /**< */); - -int -xcb_input_xi_change_property_items_sizeof (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_change_property_checked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t format /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t num_items /**< */, - const void *items /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_change_property (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t format /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t num_items /**< */, - const void *items /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_change_property_aux_checked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t format /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t num_items /**< */, - const xcb_input_xi_change_property_items_t *items /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_change_property_aux (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t mode /**< */, - uint8_t format /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t num_items /**< */, - const xcb_input_xi_change_property_items_t *items /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_delete_property_checked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - xcb_atom_t property /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_delete_property (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - xcb_atom_t property /**< */); - -uint8_t * -xcb_input_xi_get_property_items_data_8 (const xcb_input_xi_get_property_items_t *S /**< */); - -int -xcb_input_xi_get_property_items_data_8_length (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_xi_get_property_items_data_8_end (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */); - -uint16_t * -xcb_input_xi_get_property_items_data_16 (const xcb_input_xi_get_property_items_t *S /**< */); - -int -xcb_input_xi_get_property_items_data_16_length (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_xi_get_property_items_data_16_end (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */); - -uint32_t * -xcb_input_xi_get_property_items_data_32 (const xcb_input_xi_get_property_items_t *S /**< */); - -int -xcb_input_xi_get_property_items_data_32_length (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */); - -xcb_generic_iterator_t -xcb_input_xi_get_property_items_data_32_end (const xcb_input_xi_get_property_reply_t *R /**< */, - const xcb_input_xi_get_property_items_t *S /**< */); - -int -xcb_input_xi_get_property_items_serialize (void **_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - const xcb_input_xi_get_property_items_t *_aux /**< */); - -int -xcb_input_xi_get_property_items_unpack (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */, - xcb_input_xi_get_property_items_t *_aux /**< */); - -int -xcb_input_xi_get_property_items_sizeof (const void *_buffer /**< */, - uint32_t num_items /**< */, - uint8_t format /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_xi_get_property_cookie_t -xcb_input_xi_get_property (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t _delete /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t offset /**< */, - uint32_t len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_xi_get_property_cookie_t -xcb_input_xi_get_property_unchecked (xcb_connection_t *c /**< */, - xcb_input_device_id_t deviceid /**< */, - uint8_t _delete /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t offset /**< */, - uint32_t len /**< */); - -void * -xcb_input_xi_get_property_items (const xcb_input_xi_get_property_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_xi_get_property_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_xi_get_property_reply_t * -xcb_input_xi_get_property_reply (xcb_connection_t *c /**< */, - xcb_input_xi_get_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_input_xi_get_selected_events_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_input_xi_get_selected_events_cookie_t -xcb_input_xi_get_selected_events (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_input_xi_get_selected_events_cookie_t -xcb_input_xi_get_selected_events_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -int -xcb_input_xi_get_selected_events_masks_length (const xcb_input_xi_get_selected_events_reply_t *R /**< */); - -xcb_input_event_mask_iterator_t -xcb_input_xi_get_selected_events_masks_iterator (const xcb_input_xi_get_selected_events_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_input_xi_get_selected_events_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_input_xi_get_selected_events_reply_t * -xcb_input_xi_get_selected_events_reply (xcb_connection_t *c /**< */, - xcb_input_xi_get_selected_events_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_barrier_release_pointer_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_barrier_release_pointer_info_t) - */ -void -xcb_input_barrier_release_pointer_info_next (xcb_input_barrier_release_pointer_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_barrier_release_pointer_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_barrier_release_pointer_info_end (xcb_input_barrier_release_pointer_info_iterator_t i /**< */); - -int -xcb_input_xi_barrier_release_pointer_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_input_xi_barrier_release_pointer_checked (xcb_connection_t *c /**< */, - uint32_t num_barriers /**< */, - const xcb_input_barrier_release_pointer_info_t *barriers /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_input_xi_barrier_release_pointer (xcb_connection_t *c /**< */, - uint32_t num_barriers /**< */, - const xcb_input_barrier_release_pointer_info_t *barriers /**< */); - -int -xcb_input_device_changed_sizeof (const void *_buffer /**< */); - -int -xcb_input_key_press_sizeof (const void *_buffer /**< */); - -int -xcb_input_key_release_sizeof (const void *_buffer /**< */); - -int -xcb_input_button_press_sizeof (const void *_buffer /**< */); - -int -xcb_input_button_release_sizeof (const void *_buffer /**< */); - -int -xcb_input_motion_sizeof (const void *_buffer /**< */); - -int -xcb_input_enter_sizeof (const void *_buffer /**< */); - -int -xcb_input_leave_sizeof (const void *_buffer /**< */); - -int -xcb_input_focus_in_sizeof (const void *_buffer /**< */); - -int -xcb_input_focus_out_sizeof (const void *_buffer /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_input_hierarchy_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_input_hierarchy_info_t) - */ -void -xcb_input_hierarchy_info_next (xcb_input_hierarchy_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_input_hierarchy_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_input_hierarchy_info_end (xcb_input_hierarchy_info_iterator_t i /**< */); - -int -xcb_input_hierarchy_sizeof (const void *_buffer /**< */); - -int -xcb_input_raw_key_press_sizeof (const void *_buffer /**< */); - -int -xcb_input_raw_key_release_sizeof (const void *_buffer /**< */); - -int -xcb_input_raw_button_press_sizeof (const void *_buffer /**< */); - -int -xcb_input_raw_button_release_sizeof (const void *_buffer /**< */); - -int -xcb_input_raw_motion_sizeof (const void *_buffer /**< */); - -int -xcb_input_touch_begin_sizeof (const void *_buffer /**< */); - -int -xcb_input_touch_update_sizeof (const void *_buffer /**< */); - -int -xcb_input_touch_end_sizeof (const void *_buffer /**< */); - -int -xcb_input_raw_touch_begin_sizeof (const void *_buffer /**< */); - -int -xcb_input_raw_touch_update_sizeof (const void *_buffer /**< */); - -int -xcb_input_raw_touch_end_sizeof (const void *_buffer /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xkb.c b/external/mit/xorg/lib/libxcb/files/xkb.c deleted file mode 100644 index c03ea83b3..000000000 --- a/external/mit/xorg/lib/libxcb/files/xkb.c +++ /dev/null @@ -1,10835 +0,0 @@ -/* - * This file generated automatically from xkb.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xkb.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_xkb_id = { "XKEYBOARD", 0 }; - -void -xcb_xkb_device_spec_next (xcb_xkb_device_spec_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_device_spec_t); -} - -xcb_generic_iterator_t -xcb_xkb_device_spec_end (xcb_xkb_device_spec_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_led_class_spec_next (xcb_xkb_led_class_spec_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_led_class_spec_t); -} - -xcb_generic_iterator_t -xcb_xkb_led_class_spec_end (xcb_xkb_led_class_spec_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_bell_class_spec_next (xcb_xkb_bell_class_spec_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_bell_class_spec_t); -} - -xcb_generic_iterator_t -xcb_xkb_bell_class_spec_end (xcb_xkb_bell_class_spec_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_id_spec_next (xcb_xkb_id_spec_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_id_spec_t); -} - -xcb_generic_iterator_t -xcb_xkb_id_spec_end (xcb_xkb_id_spec_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_indicator_map_next (xcb_xkb_indicator_map_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_indicator_map_t); -} - -xcb_generic_iterator_t -xcb_xkb_indicator_map_end (xcb_xkb_indicator_map_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_mod_def_next (xcb_xkb_mod_def_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_mod_def_t); -} - -xcb_generic_iterator_t -xcb_xkb_mod_def_end (xcb_xkb_mod_def_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_key_name_next (xcb_xkb_key_name_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_key_name_t); -} - -xcb_generic_iterator_t -xcb_xkb_key_name_end (xcb_xkb_key_name_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_key_alias_next (xcb_xkb_key_alias_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_key_alias_t); -} - -xcb_generic_iterator_t -xcb_xkb_key_alias_end (xcb_xkb_key_alias_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_xkb_counted_string_16_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_counted_string_16_t *_aux = (xcb_xkb_counted_string_16_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_counted_string_16_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* string */ - xcb_block_len += _aux->length * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* alignment_pad */ - xcb_block_len += (((_aux->length + 5) & (~3)) - (_aux->length + 2)) * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_xkb_counted_string_16_string (const xcb_xkb_counted_string_16_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_xkb_counted_string_16_string_length (const xcb_xkb_counted_string_16_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_xkb_counted_string_16_string_end (const xcb_xkb_counted_string_16_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void * -xcb_xkb_counted_string_16_alignment_pad (const xcb_xkb_counted_string_16_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xkb_counted_string_16_string_end(R); - return (void *) ((char *) prev.data + XCB_TYPE_PAD(char, prev.index) + 0); -} - -int -xcb_xkb_counted_string_16_alignment_pad_length (const xcb_xkb_counted_string_16_t *R /**< */) -{ - return (((R->length + 5) & (~3)) - (R->length + 2)); -} - -xcb_generic_iterator_t -xcb_xkb_counted_string_16_alignment_pad_end (const xcb_xkb_counted_string_16_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_xkb_counted_string_16_string_end(R); - i.data = ((char *) child.data) + ((((R->length + 5) & (~3)) - (R->length + 2))); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xkb_counted_string_16_next (xcb_xkb_counted_string_16_iterator_t *i /**< */) -{ - xcb_xkb_counted_string_16_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xkb_counted_string_16_t *)(((char *)R) + xcb_xkb_counted_string_16_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xkb_counted_string_16_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xkb_counted_string_16_end (xcb_xkb_counted_string_16_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xkb_counted_string_16_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_xkb_kt_map_entry_next (xcb_xkb_kt_map_entry_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_kt_map_entry_t); -} - -xcb_generic_iterator_t -xcb_xkb_kt_map_entry_end (xcb_xkb_kt_map_entry_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_xkb_key_type_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_key_type_t *_aux = (xcb_xkb_key_type_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_key_type_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* map */ - xcb_block_len += _aux->nMapEntries * sizeof(xcb_xkb_kt_map_entry_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_kt_map_entry_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* preserve */ - xcb_block_len += (_aux->hasPreserve * _aux->nMapEntries) * sizeof(xcb_xkb_mod_def_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_mod_def_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xkb_kt_map_entry_t * -xcb_xkb_key_type_map (const xcb_xkb_key_type_t *R /**< */) -{ - return (xcb_xkb_kt_map_entry_t *) (R + 1); -} - -int -xcb_xkb_key_type_map_length (const xcb_xkb_key_type_t *R /**< */) -{ - return R->nMapEntries; -} - -xcb_xkb_kt_map_entry_iterator_t -xcb_xkb_key_type_map_iterator (const xcb_xkb_key_type_t *R /**< */) -{ - xcb_xkb_kt_map_entry_iterator_t i; - i.data = (xcb_xkb_kt_map_entry_t *) (R + 1); - i.rem = R->nMapEntries; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xkb_mod_def_t * -xcb_xkb_key_type_preserve (const xcb_xkb_key_type_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xkb_kt_map_entry_end(xcb_xkb_key_type_map_iterator(R)); - return (xcb_xkb_mod_def_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_mod_def_t, prev.index) + 0); -} - -int -xcb_xkb_key_type_preserve_length (const xcb_xkb_key_type_t *R /**< */) -{ - return (R->hasPreserve * R->nMapEntries); -} - -xcb_xkb_mod_def_iterator_t -xcb_xkb_key_type_preserve_iterator (const xcb_xkb_key_type_t *R /**< */) -{ - xcb_xkb_mod_def_iterator_t i; - xcb_generic_iterator_t prev = xcb_xkb_kt_map_entry_end(xcb_xkb_key_type_map_iterator(R)); - i.data = (xcb_xkb_mod_def_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_mod_def_t, prev.index)); - i.rem = (R->hasPreserve * R->nMapEntries); - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xkb_key_type_next (xcb_xkb_key_type_iterator_t *i /**< */) -{ - xcb_xkb_key_type_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xkb_key_type_t *)(((char *)R) + xcb_xkb_key_type_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xkb_key_type_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xkb_key_type_end (xcb_xkb_key_type_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xkb_key_type_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_xkb_key_sym_map_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_key_sym_map_t *_aux = (xcb_xkb_key_sym_map_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_key_sym_map_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* syms */ - xcb_block_len += _aux->nSyms * sizeof(xcb_keysym_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_keysym_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_keysym_t * -xcb_xkb_key_sym_map_syms (const xcb_xkb_key_sym_map_t *R /**< */) -{ - return (xcb_keysym_t *) (R + 1); -} - -int -xcb_xkb_key_sym_map_syms_length (const xcb_xkb_key_sym_map_t *R /**< */) -{ - return R->nSyms; -} - -xcb_generic_iterator_t -xcb_xkb_key_sym_map_syms_end (const xcb_xkb_key_sym_map_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_keysym_t *) (R + 1)) + (R->nSyms); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xkb_key_sym_map_next (xcb_xkb_key_sym_map_iterator_t *i /**< */) -{ - xcb_xkb_key_sym_map_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xkb_key_sym_map_t *)(((char *)R) + xcb_xkb_key_sym_map_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xkb_key_sym_map_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xkb_key_sym_map_end (xcb_xkb_key_sym_map_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xkb_key_sym_map_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_xkb_common_behavior_next (xcb_xkb_common_behavior_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_common_behavior_t); -} - -xcb_generic_iterator_t -xcb_xkb_common_behavior_end (xcb_xkb_common_behavior_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_default_behavior_next (xcb_xkb_default_behavior_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_default_behavior_t); -} - -xcb_generic_iterator_t -xcb_xkb_default_behavior_end (xcb_xkb_default_behavior_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_lock_behavior_next (xcb_xkb_lock_behavior_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_lock_behavior_t); -} - -xcb_generic_iterator_t -xcb_xkb_lock_behavior_end (xcb_xkb_lock_behavior_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_radio_group_behavior_next (xcb_xkb_radio_group_behavior_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_radio_group_behavior_t); -} - -xcb_generic_iterator_t -xcb_xkb_radio_group_behavior_end (xcb_xkb_radio_group_behavior_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_overlay_behavior_next (xcb_xkb_overlay_behavior_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_overlay_behavior_t); -} - -xcb_generic_iterator_t -xcb_xkb_overlay_behavior_end (xcb_xkb_overlay_behavior_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_permament_lock_behavior_next (xcb_xkb_permament_lock_behavior_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_permament_lock_behavior_t); -} - -xcb_generic_iterator_t -xcb_xkb_permament_lock_behavior_end (xcb_xkb_permament_lock_behavior_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_permament_radio_group_behavior_next (xcb_xkb_permament_radio_group_behavior_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_permament_radio_group_behavior_t); -} - -xcb_generic_iterator_t -xcb_xkb_permament_radio_group_behavior_end (xcb_xkb_permament_radio_group_behavior_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_permament_overlay_behavior_next (xcb_xkb_permament_overlay_behavior_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_permament_overlay_behavior_t); -} - -xcb_generic_iterator_t -xcb_xkb_permament_overlay_behavior_end (xcb_xkb_permament_overlay_behavior_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_behavior_next (xcb_xkb_behavior_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_behavior_t); -} - -xcb_generic_iterator_t -xcb_xkb_behavior_end (xcb_xkb_behavior_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_set_behavior_next (xcb_xkb_set_behavior_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_set_behavior_t); -} - -xcb_generic_iterator_t -xcb_xkb_set_behavior_end (xcb_xkb_set_behavior_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_set_explicit_next (xcb_xkb_set_explicit_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_set_explicit_t); -} - -xcb_generic_iterator_t -xcb_xkb_set_explicit_end (xcb_xkb_set_explicit_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_key_mod_map_next (xcb_xkb_key_mod_map_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_key_mod_map_t); -} - -xcb_generic_iterator_t -xcb_xkb_key_mod_map_end (xcb_xkb_key_mod_map_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_key_v_mod_map_next (xcb_xkb_key_v_mod_map_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_key_v_mod_map_t); -} - -xcb_generic_iterator_t -xcb_xkb_key_v_mod_map_end (xcb_xkb_key_v_mod_map_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_kt_set_map_entry_next (xcb_xkb_kt_set_map_entry_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_kt_set_map_entry_t); -} - -xcb_generic_iterator_t -xcb_xkb_kt_set_map_entry_end (xcb_xkb_kt_set_map_entry_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_xkb_set_key_type_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_set_key_type_t *_aux = (xcb_xkb_set_key_type_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_set_key_type_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* entries */ - xcb_block_len += _aux->nMapEntries * sizeof(xcb_xkb_kt_set_map_entry_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_kt_set_map_entry_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* preserve_entries */ - xcb_block_len += (_aux->preserve * _aux->nMapEntries) * sizeof(xcb_xkb_kt_set_map_entry_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_kt_set_map_entry_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xkb_kt_set_map_entry_t * -xcb_xkb_set_key_type_entries (const xcb_xkb_set_key_type_t *R /**< */) -{ - return (xcb_xkb_kt_set_map_entry_t *) (R + 1); -} - -int -xcb_xkb_set_key_type_entries_length (const xcb_xkb_set_key_type_t *R /**< */) -{ - return R->nMapEntries; -} - -xcb_xkb_kt_set_map_entry_iterator_t -xcb_xkb_set_key_type_entries_iterator (const xcb_xkb_set_key_type_t *R /**< */) -{ - xcb_xkb_kt_set_map_entry_iterator_t i; - i.data = (xcb_xkb_kt_set_map_entry_t *) (R + 1); - i.rem = R->nMapEntries; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xkb_kt_set_map_entry_t * -xcb_xkb_set_key_type_preserve_entries (const xcb_xkb_set_key_type_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xkb_kt_set_map_entry_end(xcb_xkb_set_key_type_entries_iterator(R)); - return (xcb_xkb_kt_set_map_entry_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_kt_set_map_entry_t, prev.index) + 0); -} - -int -xcb_xkb_set_key_type_preserve_entries_length (const xcb_xkb_set_key_type_t *R /**< */) -{ - return (R->preserve * R->nMapEntries); -} - -xcb_xkb_kt_set_map_entry_iterator_t -xcb_xkb_set_key_type_preserve_entries_iterator (const xcb_xkb_set_key_type_t *R /**< */) -{ - xcb_xkb_kt_set_map_entry_iterator_t i; - xcb_generic_iterator_t prev = xcb_xkb_kt_set_map_entry_end(xcb_xkb_set_key_type_entries_iterator(R)); - i.data = (xcb_xkb_kt_set_map_entry_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_kt_set_map_entry_t, prev.index)); - i.rem = (R->preserve * R->nMapEntries); - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xkb_set_key_type_next (xcb_xkb_set_key_type_iterator_t *i /**< */) -{ - xcb_xkb_set_key_type_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xkb_set_key_type_t *)(((char *)R) + xcb_xkb_set_key_type_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xkb_set_key_type_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xkb_set_key_type_end (xcb_xkb_set_key_type_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xkb_set_key_type_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_xkb_string8_next (xcb_xkb_string8_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_string8_t); -} - -xcb_generic_iterator_t -xcb_xkb_string8_end (xcb_xkb_string8_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_xkb_outline_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_outline_t *_aux = (xcb_xkb_outline_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_outline_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* points */ - xcb_block_len += _aux->nPoints * sizeof(xcb_point_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_point_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_point_t * -xcb_xkb_outline_points (const xcb_xkb_outline_t *R /**< */) -{ - return (xcb_point_t *) (R + 1); -} - -int -xcb_xkb_outline_points_length (const xcb_xkb_outline_t *R /**< */) -{ - return R->nPoints; -} - -xcb_point_iterator_t -xcb_xkb_outline_points_iterator (const xcb_xkb_outline_t *R /**< */) -{ - xcb_point_iterator_t i; - i.data = (xcb_point_t *) (R + 1); - i.rem = R->nPoints; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xkb_outline_next (xcb_xkb_outline_iterator_t *i /**< */) -{ - xcb_xkb_outline_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xkb_outline_t *)(((char *)R) + xcb_xkb_outline_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xkb_outline_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xkb_outline_end (xcb_xkb_outline_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xkb_outline_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_xkb_shape_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_shape_t *_aux = (xcb_xkb_shape_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_xkb_shape_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* outlines */ - for(i=0; i<_aux->nOutlines; i++) { - xcb_tmp_len = xcb_xkb_outline_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xkb_outline_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_xkb_shape_outlines_length (const xcb_xkb_shape_t *R /**< */) -{ - return R->nOutlines; -} - -xcb_xkb_outline_iterator_t -xcb_xkb_shape_outlines_iterator (const xcb_xkb_shape_t *R /**< */) -{ - xcb_xkb_outline_iterator_t i; - i.data = (xcb_xkb_outline_t *) (R + 1); - i.rem = R->nOutlines; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xkb_shape_next (xcb_xkb_shape_iterator_t *i /**< */) -{ - xcb_xkb_shape_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xkb_shape_t *)(((char *)R) + xcb_xkb_shape_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xkb_shape_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xkb_shape_end (xcb_xkb_shape_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xkb_shape_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_xkb_key_next (xcb_xkb_key_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_key_t); -} - -xcb_generic_iterator_t -xcb_xkb_key_end (xcb_xkb_key_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_overlay_key_next (xcb_xkb_overlay_key_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_overlay_key_t); -} - -xcb_generic_iterator_t -xcb_xkb_overlay_key_end (xcb_xkb_overlay_key_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_xkb_overlay_row_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_overlay_row_t *_aux = (xcb_xkb_overlay_row_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_overlay_row_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keys */ - xcb_block_len += _aux->nKeys * sizeof(xcb_xkb_overlay_key_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_overlay_key_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xkb_overlay_key_t * -xcb_xkb_overlay_row_keys (const xcb_xkb_overlay_row_t *R /**< */) -{ - return (xcb_xkb_overlay_key_t *) (R + 1); -} - -int -xcb_xkb_overlay_row_keys_length (const xcb_xkb_overlay_row_t *R /**< */) -{ - return R->nKeys; -} - -xcb_xkb_overlay_key_iterator_t -xcb_xkb_overlay_row_keys_iterator (const xcb_xkb_overlay_row_t *R /**< */) -{ - xcb_xkb_overlay_key_iterator_t i; - i.data = (xcb_xkb_overlay_key_t *) (R + 1); - i.rem = R->nKeys; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xkb_overlay_row_next (xcb_xkb_overlay_row_iterator_t *i /**< */) -{ - xcb_xkb_overlay_row_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xkb_overlay_row_t *)(((char *)R) + xcb_xkb_overlay_row_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xkb_overlay_row_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xkb_overlay_row_end (xcb_xkb_overlay_row_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xkb_overlay_row_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_xkb_overlay_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_overlay_t *_aux = (xcb_xkb_overlay_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_xkb_overlay_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rows */ - for(i=0; i<_aux->nRows; i++) { - xcb_tmp_len = xcb_xkb_overlay_row_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xkb_overlay_row_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_xkb_overlay_rows_length (const xcb_xkb_overlay_t *R /**< */) -{ - return R->nRows; -} - -xcb_xkb_overlay_row_iterator_t -xcb_xkb_overlay_rows_iterator (const xcb_xkb_overlay_t *R /**< */) -{ - xcb_xkb_overlay_row_iterator_t i; - i.data = (xcb_xkb_overlay_row_t *) (R + 1); - i.rem = R->nRows; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xkb_overlay_next (xcb_xkb_overlay_iterator_t *i /**< */) -{ - xcb_xkb_overlay_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xkb_overlay_t *)(((char *)R) + xcb_xkb_overlay_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xkb_overlay_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xkb_overlay_end (xcb_xkb_overlay_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xkb_overlay_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_xkb_row_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_row_t *_aux = (xcb_xkb_row_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_row_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keys */ - xcb_block_len += _aux->nKeys * sizeof(xcb_xkb_key_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xkb_key_t * -xcb_xkb_row_keys (const xcb_xkb_row_t *R /**< */) -{ - return (xcb_xkb_key_t *) (R + 1); -} - -int -xcb_xkb_row_keys_length (const xcb_xkb_row_t *R /**< */) -{ - return R->nKeys; -} - -xcb_xkb_key_iterator_t -xcb_xkb_row_keys_iterator (const xcb_xkb_row_t *R /**< */) -{ - xcb_xkb_key_iterator_t i; - i.data = (xcb_xkb_key_t *) (R + 1); - i.rem = R->nKeys; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xkb_row_next (xcb_xkb_row_iterator_t *i /**< */) -{ - xcb_xkb_row_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xkb_row_t *)(((char *)R) + xcb_xkb_row_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xkb_row_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xkb_row_end (xcb_xkb_row_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xkb_row_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_xkb_listing_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_listing_t *_aux = (xcb_xkb_listing_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_listing_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* string */ - xcb_block_len += _aux->length * sizeof(xcb_xkb_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xkb_string8_t * -xcb_xkb_listing_string (const xcb_xkb_listing_t *R /**< */) -{ - return (xcb_xkb_string8_t *) (R + 1); -} - -int -xcb_xkb_listing_string_length (const xcb_xkb_listing_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_xkb_listing_string_end (const xcb_xkb_listing_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_xkb_string8_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xkb_listing_next (xcb_xkb_listing_iterator_t *i /**< */) -{ - xcb_xkb_listing_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xkb_listing_t *)(((char *)R) + xcb_xkb_listing_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xkb_listing_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xkb_listing_end (xcb_xkb_listing_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xkb_listing_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_xkb_device_led_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_device_led_info_t *_aux = (xcb_xkb_device_led_info_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_device_led_info_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* names */ - xcb_block_len += xcb_popcount(_aux->namesPresent) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* maps */ - xcb_block_len += xcb_popcount(_aux->mapsPresent) * sizeof(xcb_xkb_indicator_map_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_indicator_map_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_atom_t * -xcb_xkb_device_led_info_names (const xcb_xkb_device_led_info_t *R /**< */) -{ - return (xcb_atom_t *) (R + 1); -} - -int -xcb_xkb_device_led_info_names_length (const xcb_xkb_device_led_info_t *R /**< */) -{ - return xcb_popcount(R->namesPresent); -} - -xcb_generic_iterator_t -xcb_xkb_device_led_info_names_end (const xcb_xkb_device_led_info_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_atom_t *) (R + 1)) + (xcb_popcount(R->namesPresent)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xkb_indicator_map_t * -xcb_xkb_device_led_info_maps (const xcb_xkb_device_led_info_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xkb_device_led_info_names_end(R); - return (xcb_xkb_indicator_map_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_indicator_map_t, prev.index) + 0); -} - -int -xcb_xkb_device_led_info_maps_length (const xcb_xkb_device_led_info_t *R /**< */) -{ - return xcb_popcount(R->mapsPresent); -} - -xcb_xkb_indicator_map_iterator_t -xcb_xkb_device_led_info_maps_iterator (const xcb_xkb_device_led_info_t *R /**< */) -{ - xcb_xkb_indicator_map_iterator_t i; - xcb_generic_iterator_t prev = xcb_xkb_device_led_info_names_end(R); - i.data = (xcb_xkb_indicator_map_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_indicator_map_t, prev.index)); - i.rem = xcb_popcount(R->mapsPresent); - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xkb_device_led_info_next (xcb_xkb_device_led_info_iterator_t *i /**< */) -{ - xcb_xkb_device_led_info_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xkb_device_led_info_t *)(((char *)R) + xcb_xkb_device_led_info_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xkb_device_led_info_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xkb_device_led_info_end (xcb_xkb_device_led_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xkb_device_led_info_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_xkb_sa_no_action_next (xcb_xkb_sa_no_action_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_no_action_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_no_action_end (xcb_xkb_sa_no_action_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_set_mods_next (xcb_xkb_sa_set_mods_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_set_mods_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_set_mods_end (xcb_xkb_sa_set_mods_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_latch_mods_next (xcb_xkb_sa_latch_mods_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_latch_mods_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_latch_mods_end (xcb_xkb_sa_latch_mods_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_lock_mods_next (xcb_xkb_sa_lock_mods_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_lock_mods_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_lock_mods_end (xcb_xkb_sa_lock_mods_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_set_group_next (xcb_xkb_sa_set_group_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_set_group_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_set_group_end (xcb_xkb_sa_set_group_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_latch_group_next (xcb_xkb_sa_latch_group_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_latch_group_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_latch_group_end (xcb_xkb_sa_latch_group_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_lock_group_next (xcb_xkb_sa_lock_group_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_lock_group_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_lock_group_end (xcb_xkb_sa_lock_group_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_move_ptr_next (xcb_xkb_sa_move_ptr_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_move_ptr_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_move_ptr_end (xcb_xkb_sa_move_ptr_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_ptr_btn_next (xcb_xkb_sa_ptr_btn_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_ptr_btn_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_ptr_btn_end (xcb_xkb_sa_ptr_btn_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_lock_ptr_btn_next (xcb_xkb_sa_lock_ptr_btn_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_lock_ptr_btn_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_lock_ptr_btn_end (xcb_xkb_sa_lock_ptr_btn_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_set_ptr_dflt_next (xcb_xkb_sa_set_ptr_dflt_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_set_ptr_dflt_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_set_ptr_dflt_end (xcb_xkb_sa_set_ptr_dflt_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_iso_lock_next (xcb_xkb_sa_iso_lock_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_iso_lock_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_iso_lock_end (xcb_xkb_sa_iso_lock_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_terminate_next (xcb_xkb_sa_terminate_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_terminate_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_terminate_end (xcb_xkb_sa_terminate_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_switch_screen_next (xcb_xkb_sa_switch_screen_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_switch_screen_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_switch_screen_end (xcb_xkb_sa_switch_screen_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_set_controls_next (xcb_xkb_sa_set_controls_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_set_controls_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_set_controls_end (xcb_xkb_sa_set_controls_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_lock_controls_next (xcb_xkb_sa_lock_controls_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_lock_controls_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_lock_controls_end (xcb_xkb_sa_lock_controls_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_action_message_next (xcb_xkb_sa_action_message_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_action_message_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_action_message_end (xcb_xkb_sa_action_message_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_redirect_key_next (xcb_xkb_sa_redirect_key_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_redirect_key_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_redirect_key_end (xcb_xkb_sa_redirect_key_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_device_btn_next (xcb_xkb_sa_device_btn_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_device_btn_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_device_btn_end (xcb_xkb_sa_device_btn_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_lock_device_btn_next (xcb_xkb_sa_lock_device_btn_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_lock_device_btn_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_lock_device_btn_end (xcb_xkb_sa_lock_device_btn_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sa_device_valuator_next (xcb_xkb_sa_device_valuator_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sa_device_valuator_t); -} - -xcb_generic_iterator_t -xcb_xkb_sa_device_valuator_end (xcb_xkb_sa_device_valuator_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_si_action_next (xcb_xkb_si_action_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_si_action_t); -} - -xcb_generic_iterator_t -xcb_xkb_si_action_end (xcb_xkb_si_action_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_sym_interpret_next (xcb_xkb_sym_interpret_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_sym_interpret_t); -} - -xcb_generic_iterator_t -xcb_xkb_sym_interpret_end (xcb_xkb_sym_interpret_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xkb_action_next (xcb_xkb_action_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xkb_action_t); -} - -xcb_generic_iterator_t -xcb_xkb_action_end (xcb_xkb_action_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_xkb_use_extension_cookie_t -xcb_xkb_use_extension (xcb_connection_t *c /**< */, - uint16_t wantedMajor /**< */, - uint16_t wantedMinor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_USE_EXTENSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_use_extension_cookie_t xcb_ret; - xcb_xkb_use_extension_request_t xcb_out; - - xcb_out.wantedMajor = wantedMajor; - xcb_out.wantedMinor = wantedMinor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_use_extension_cookie_t -xcb_xkb_use_extension_unchecked (xcb_connection_t *c /**< */, - uint16_t wantedMajor /**< */, - uint16_t wantedMinor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_USE_EXTENSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_use_extension_cookie_t xcb_ret; - xcb_xkb_use_extension_request_t xcb_out; - - xcb_out.wantedMajor = wantedMajor; - xcb_out.wantedMinor = wantedMinor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_use_extension_reply_t * -xcb_xkb_use_extension_reply (xcb_connection_t *c /**< */, - xcb_xkb_use_extension_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_use_extension_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xkb_select_events_details_serialize (void **_buffer /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */, - const xcb_xkb_select_events_details_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[23]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_NEW_KEYBOARD_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectNewKeyboard */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->affectNewKeyboard; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_select_events_details_t.newKeyboardDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->newKeyboardDetails; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_STATE_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectState */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->affectState; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_select_events_details_t.stateDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->stateDetails; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_CONTROLS_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectCtrls */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->affectCtrls; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_select_events_details_t.ctrlDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->ctrlDetails; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_INDICATOR_STATE_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectIndicatorState */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->affectIndicatorState; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_select_events_details_t.indicatorStateDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->indicatorStateDetails; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_INDICATOR_MAP_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectIndicatorMap */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->affectIndicatorMap; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_select_events_details_t.indicatorMapDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->indicatorMapDetails; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_NAMES_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->affectNames; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_select_events_details_t.namesDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->namesDetails; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_COMPAT_MAP_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectCompat */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->affectCompat; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_select_events_details_t.compatDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compatDetails; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_BELL_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectBell */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->affectBell; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_select_events_details_t.bellDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->bellDetails; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_ACTION_MESSAGE) { - /* xcb_xkb_select_events_details_t.affectMsgDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->affectMsgDetails; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_select_events_details_t.msgDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->msgDetails; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_ACCESS_X_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectAccessX */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->affectAccessX; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_select_events_details_t.accessXDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->accessXDetails; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_EXTENSION_DEVICE_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectExtDev */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->affectExtDev; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_select_events_details_t.extdevDetails */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->extdevDetails; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; iaffectNewKeyboard = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_select_events_details_t.newKeyboardDetails */ - _aux->newKeyboardDetails = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_STATE_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectState */ - _aux->affectState = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_select_events_details_t.stateDetails */ - _aux->stateDetails = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_CONTROLS_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectCtrls */ - _aux->affectCtrls = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_select_events_details_t.ctrlDetails */ - _aux->ctrlDetails = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_INDICATOR_STATE_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectIndicatorState */ - _aux->affectIndicatorState = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_select_events_details_t.indicatorStateDetails */ - _aux->indicatorStateDetails = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_INDICATOR_MAP_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectIndicatorMap */ - _aux->affectIndicatorMap = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_select_events_details_t.indicatorMapDetails */ - _aux->indicatorMapDetails = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_NAMES_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectNames */ - _aux->affectNames = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_select_events_details_t.namesDetails */ - _aux->namesDetails = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_COMPAT_MAP_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectCompat */ - _aux->affectCompat = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_select_events_details_t.compatDetails */ - _aux->compatDetails = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_BELL_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectBell */ - _aux->affectBell = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_select_events_details_t.bellDetails */ - _aux->bellDetails = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_ACTION_MESSAGE) { - /* xcb_xkb_select_events_details_t.affectMsgDetails */ - _aux->affectMsgDetails = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_select_events_details_t.msgDetails */ - _aux->msgDetails = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_ACCESS_X_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectAccessX */ - _aux->affectAccessX = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_select_events_details_t.accessXDetails */ - _aux->accessXDetails = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - } - if((affectWhich & ((~clear) & (~selectAll))) & XCB_XKB_EVENT_TYPE_EXTENSION_DEVICE_NOTIFY) { - /* xcb_xkb_select_events_details_t.affectExtDev */ - _aux->affectExtDev = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_select_events_details_t.extdevDetails */ - _aux->extdevDetails = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_xkb_select_events_details_sizeof (const void *_buffer /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */) -{ - xcb_xkb_select_events_details_t _aux; - return xcb_xkb_select_events_details_unpack(_buffer, affectWhich, clear, selectAll, &_aux); -} - -xcb_void_cookie_t -xcb_xkb_select_events_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */, - uint16_t affectMap /**< */, - uint16_t map /**< */, - const void *details /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SELECT_EVENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_select_events_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.affectWhich = affectWhich; - xcb_out.clear = clear; - xcb_out.selectAll = selectAll; - xcb_out.affectMap = affectMap; - xcb_out.map = map; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_select_events_details_t details */ - xcb_parts[4].iov_base = (char *) details; - xcb_parts[4].iov_len = - xcb_xkb_select_events_details_sizeof (details, affectWhich, clear, selectAll); - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_select_events (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */, - uint16_t affectMap /**< */, - uint16_t map /**< */, - const void *details /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SELECT_EVENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_select_events_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.affectWhich = affectWhich; - xcb_out.clear = clear; - xcb_out.selectAll = selectAll; - xcb_out.affectMap = affectMap; - xcb_out.map = map; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_select_events_details_t details */ - xcb_parts[4].iov_base = (char *) details; - xcb_parts[4].iov_len = - xcb_xkb_select_events_details_sizeof (details, affectWhich, clear, selectAll); - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_select_events_aux_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */, - uint16_t affectMap /**< */, - uint16_t map /**< */, - const xcb_xkb_select_events_details_t *details /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SELECT_EVENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_select_events_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.affectWhich = affectWhich; - xcb_out.clear = clear; - xcb_out.selectAll = selectAll; - xcb_out.affectMap = affectMap; - xcb_out.map = map; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_select_events_details_t details */ - xcb_parts[4].iov_len = - xcb_xkb_select_events_details_serialize (&xcb_aux0, affectWhich, clear, selectAll, details); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_select_events_aux (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */, - uint16_t affectMap /**< */, - uint16_t map /**< */, - const xcb_xkb_select_events_details_t *details /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SELECT_EVENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_select_events_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.affectWhich = affectWhich; - xcb_out.clear = clear; - xcb_out.selectAll = selectAll; - xcb_out.affectMap = affectMap; - xcb_out.map = map; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_select_events_details_t details */ - xcb_parts[4].iov_len = - xcb_xkb_select_events_details_serialize (&xcb_aux0, affectWhich, clear, selectAll, details); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_bell_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_bell_class_spec_t bellClass /**< */, - xcb_xkb_id_spec_t bellID /**< */, - int8_t percent /**< */, - uint8_t forceSound /**< */, - uint8_t eventOnly /**< */, - int16_t pitch /**< */, - int16_t duration /**< */, - xcb_atom_t name /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_BELL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_bell_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.bellClass = bellClass; - xcb_out.bellID = bellID; - xcb_out.percent = percent; - xcb_out.forceSound = forceSound; - xcb_out.eventOnly = eventOnly; - xcb_out.pad0 = 0; - xcb_out.pitch = pitch; - xcb_out.duration = duration; - memset(xcb_out.pad1, 0, 2); - xcb_out.name = name; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_bell (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_bell_class_spec_t bellClass /**< */, - xcb_xkb_id_spec_t bellID /**< */, - int8_t percent /**< */, - uint8_t forceSound /**< */, - uint8_t eventOnly /**< */, - int16_t pitch /**< */, - int16_t duration /**< */, - xcb_atom_t name /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_BELL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_bell_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.bellClass = bellClass; - xcb_out.bellID = bellID; - xcb_out.percent = percent; - xcb_out.forceSound = forceSound; - xcb_out.eventOnly = eventOnly; - xcb_out.pad0 = 0; - xcb_out.pitch = pitch; - xcb_out.duration = duration; - memset(xcb_out.pad1, 0, 2); - xcb_out.name = name; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_state_cookie_t -xcb_xkb_get_state (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_STATE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_state_cookie_t xcb_ret; - xcb_xkb_get_state_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_state_cookie_t -xcb_xkb_get_state_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_STATE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_state_cookie_t xcb_ret; - xcb_xkb_get_state_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_state_reply_t * -xcb_xkb_get_state_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_state_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_get_state_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xkb_latch_lock_state_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t affectModLocks /**< */, - uint8_t modLocks /**< */, - uint8_t lockGroup /**< */, - uint8_t groupLock /**< */, - uint8_t affectModLatches /**< */, - uint8_t latchGroup /**< */, - uint16_t groupLatch /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_LATCH_LOCK_STATE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_latch_lock_state_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.affectModLocks = affectModLocks; - xcb_out.modLocks = modLocks; - xcb_out.lockGroup = lockGroup; - xcb_out.groupLock = groupLock; - xcb_out.affectModLatches = affectModLatches; - xcb_out.pad0 = 0; - xcb_out.pad1 = 0; - xcb_out.latchGroup = latchGroup; - xcb_out.groupLatch = groupLatch; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_latch_lock_state (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t affectModLocks /**< */, - uint8_t modLocks /**< */, - uint8_t lockGroup /**< */, - uint8_t groupLock /**< */, - uint8_t affectModLatches /**< */, - uint8_t latchGroup /**< */, - uint16_t groupLatch /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_LATCH_LOCK_STATE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_latch_lock_state_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.affectModLocks = affectModLocks; - xcb_out.modLocks = modLocks; - xcb_out.lockGroup = lockGroup; - xcb_out.groupLock = groupLock; - xcb_out.affectModLatches = affectModLatches; - xcb_out.pad0 = 0; - xcb_out.pad1 = 0; - xcb_out.latchGroup = latchGroup; - xcb_out.groupLatch = groupLatch; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_controls_cookie_t -xcb_xkb_get_controls (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_CONTROLS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_controls_cookie_t xcb_ret; - xcb_xkb_get_controls_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_controls_cookie_t -xcb_xkb_get_controls_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_CONTROLS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_controls_cookie_t xcb_ret; - xcb_xkb_get_controls_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_controls_reply_t * -xcb_xkb_get_controls_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_controls_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_get_controls_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xkb_set_controls_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t affectInternalRealMods /**< */, - uint8_t internalRealMods /**< */, - uint8_t affectIgnoreLockRealMods /**< */, - uint8_t ignoreLockRealMods /**< */, - uint16_t affectInternalVirtualMods /**< */, - uint16_t internalVirtualMods /**< */, - uint16_t affectIgnoreLockVirtualMods /**< */, - uint16_t ignoreLockVirtualMods /**< */, - uint8_t mouseKeysDfltBtn /**< */, - uint8_t groupsWrap /**< */, - uint16_t accessXOptions /**< */, - uint32_t affectEnabledControls /**< */, - uint32_t enabledControls /**< */, - uint32_t changeControls /**< */, - uint16_t repeatDelay /**< */, - uint16_t repeatInterval /**< */, - uint16_t slowKeysDelay /**< */, - uint16_t debounceDelay /**< */, - uint16_t mouseKeysDelay /**< */, - uint16_t mouseKeysInterval /**< */, - uint16_t mouseKeysTimeToMax /**< */, - uint16_t mouseKeysMaxSpeed /**< */, - int16_t mouseKeysCurve /**< */, - uint16_t accessXTimeout /**< */, - uint32_t accessXTimeoutMask /**< */, - uint32_t accessXTimeoutValues /**< */, - uint16_t accessXTimeoutOptionsMask /**< */, - uint16_t accessXTimeoutOptionsValues /**< */, - const uint8_t *perKeyRepeat /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_CONTROLS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_controls_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.affectInternalRealMods = affectInternalRealMods; - xcb_out.internalRealMods = internalRealMods; - xcb_out.affectIgnoreLockRealMods = affectIgnoreLockRealMods; - xcb_out.ignoreLockRealMods = ignoreLockRealMods; - xcb_out.affectInternalVirtualMods = affectInternalVirtualMods; - xcb_out.internalVirtualMods = internalVirtualMods; - xcb_out.affectIgnoreLockVirtualMods = affectIgnoreLockVirtualMods; - xcb_out.ignoreLockVirtualMods = ignoreLockVirtualMods; - xcb_out.mouseKeysDfltBtn = mouseKeysDfltBtn; - xcb_out.groupsWrap = groupsWrap; - xcb_out.accessXOptions = accessXOptions; - memset(xcb_out.pad0, 0, 2); - xcb_out.affectEnabledControls = affectEnabledControls; - xcb_out.enabledControls = enabledControls; - xcb_out.changeControls = changeControls; - xcb_out.repeatDelay = repeatDelay; - xcb_out.repeatInterval = repeatInterval; - xcb_out.slowKeysDelay = slowKeysDelay; - xcb_out.debounceDelay = debounceDelay; - xcb_out.mouseKeysDelay = mouseKeysDelay; - xcb_out.mouseKeysInterval = mouseKeysInterval; - xcb_out.mouseKeysTimeToMax = mouseKeysTimeToMax; - xcb_out.mouseKeysMaxSpeed = mouseKeysMaxSpeed; - xcb_out.mouseKeysCurve = mouseKeysCurve; - xcb_out.accessXTimeout = accessXTimeout; - xcb_out.accessXTimeoutMask = accessXTimeoutMask; - xcb_out.accessXTimeoutValues = accessXTimeoutValues; - xcb_out.accessXTimeoutOptionsMask = accessXTimeoutOptionsMask; - xcb_out.accessXTimeoutOptionsValues = accessXTimeoutOptionsValues; - memcpy(xcb_out.perKeyRepeat, perKeyRepeat, 32); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_set_controls (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t affectInternalRealMods /**< */, - uint8_t internalRealMods /**< */, - uint8_t affectIgnoreLockRealMods /**< */, - uint8_t ignoreLockRealMods /**< */, - uint16_t affectInternalVirtualMods /**< */, - uint16_t internalVirtualMods /**< */, - uint16_t affectIgnoreLockVirtualMods /**< */, - uint16_t ignoreLockVirtualMods /**< */, - uint8_t mouseKeysDfltBtn /**< */, - uint8_t groupsWrap /**< */, - uint16_t accessXOptions /**< */, - uint32_t affectEnabledControls /**< */, - uint32_t enabledControls /**< */, - uint32_t changeControls /**< */, - uint16_t repeatDelay /**< */, - uint16_t repeatInterval /**< */, - uint16_t slowKeysDelay /**< */, - uint16_t debounceDelay /**< */, - uint16_t mouseKeysDelay /**< */, - uint16_t mouseKeysInterval /**< */, - uint16_t mouseKeysTimeToMax /**< */, - uint16_t mouseKeysMaxSpeed /**< */, - int16_t mouseKeysCurve /**< */, - uint16_t accessXTimeout /**< */, - uint32_t accessXTimeoutMask /**< */, - uint32_t accessXTimeoutValues /**< */, - uint16_t accessXTimeoutOptionsMask /**< */, - uint16_t accessXTimeoutOptionsValues /**< */, - const uint8_t *perKeyRepeat /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_CONTROLS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_controls_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.affectInternalRealMods = affectInternalRealMods; - xcb_out.internalRealMods = internalRealMods; - xcb_out.affectIgnoreLockRealMods = affectIgnoreLockRealMods; - xcb_out.ignoreLockRealMods = ignoreLockRealMods; - xcb_out.affectInternalVirtualMods = affectInternalVirtualMods; - xcb_out.internalVirtualMods = internalVirtualMods; - xcb_out.affectIgnoreLockVirtualMods = affectIgnoreLockVirtualMods; - xcb_out.ignoreLockVirtualMods = ignoreLockVirtualMods; - xcb_out.mouseKeysDfltBtn = mouseKeysDfltBtn; - xcb_out.groupsWrap = groupsWrap; - xcb_out.accessXOptions = accessXOptions; - memset(xcb_out.pad0, 0, 2); - xcb_out.affectEnabledControls = affectEnabledControls; - xcb_out.enabledControls = enabledControls; - xcb_out.changeControls = changeControls; - xcb_out.repeatDelay = repeatDelay; - xcb_out.repeatInterval = repeatInterval; - xcb_out.slowKeysDelay = slowKeysDelay; - xcb_out.debounceDelay = debounceDelay; - xcb_out.mouseKeysDelay = mouseKeysDelay; - xcb_out.mouseKeysInterval = mouseKeysInterval; - xcb_out.mouseKeysTimeToMax = mouseKeysTimeToMax; - xcb_out.mouseKeysMaxSpeed = mouseKeysMaxSpeed; - xcb_out.mouseKeysCurve = mouseKeysCurve; - xcb_out.accessXTimeout = accessXTimeout; - xcb_out.accessXTimeoutMask = accessXTimeoutMask; - xcb_out.accessXTimeoutValues = accessXTimeoutValues; - xcb_out.accessXTimeoutOptionsMask = accessXTimeoutOptionsMask; - xcb_out.accessXTimeoutOptionsValues = accessXTimeoutOptionsValues; - memcpy(xcb_out.perKeyRepeat, perKeyRepeat, 32); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xkb_get_map_map_types_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - return R->nTypes; -} - -xcb_xkb_key_type_iterator_t -xcb_xkb_get_map_map_types_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - xcb_xkb_key_type_iterator_t i; - i.data = /* map */ S->types_rtrn; - i.rem = R->nTypes; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_xkb_get_map_map_syms_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - return R->nKeySyms; -} - -xcb_xkb_key_sym_map_iterator_t -xcb_xkb_get_map_map_syms_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - xcb_xkb_key_sym_map_iterator_t i; - i.data = /* map */ S->syms_rtrn; - i.rem = R->nKeySyms; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint8_t * -xcb_xkb_get_map_map_acts_rtrn_count (const xcb_xkb_get_map_map_t *S /**< */) -{ - return /* map */ S->acts_rtrn_count; -} - -int -xcb_xkb_get_map_map_acts_rtrn_count_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - return R->nKeyActions; -} - -xcb_generic_iterator_t -xcb_xkb_get_map_map_acts_rtrn_count_end (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* map */ S->acts_rtrn_count + R->nKeyActions; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_action_t * -xcb_xkb_get_map_map_acts_rtrn_acts (const xcb_xkb_get_map_map_t *S /**< */) -{ - return /* map */ S->acts_rtrn_acts; -} - -int -xcb_xkb_get_map_map_acts_rtrn_acts_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - return R->totalActions; -} - -xcb_xkb_action_iterator_t -xcb_xkb_get_map_map_acts_rtrn_acts_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - xcb_xkb_action_iterator_t i; - i.data = /* map */ S->acts_rtrn_acts; - i.rem = R->totalActions; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_set_behavior_t * -xcb_xkb_get_map_map_behaviors_rtrn (const xcb_xkb_get_map_map_t *S /**< */) -{ - return /* map */ S->behaviors_rtrn; -} - -int -xcb_xkb_get_map_map_behaviors_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - return R->totalKeyBehaviors; -} - -xcb_xkb_set_behavior_iterator_t -xcb_xkb_get_map_map_behaviors_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - xcb_xkb_set_behavior_iterator_t i; - i.data = /* map */ S->behaviors_rtrn; - i.rem = R->totalKeyBehaviors; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint8_t * -xcb_xkb_get_map_map_vmods_rtrn (const xcb_xkb_get_map_map_t *S /**< */) -{ - return /* map */ S->vmods_rtrn; -} - -int -xcb_xkb_get_map_map_vmods_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - return xcb_popcount(R->virtualMods); -} - -xcb_generic_iterator_t -xcb_xkb_get_map_map_vmods_rtrn_end (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* map */ S->vmods_rtrn + xcb_popcount(R->virtualMods); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_set_explicit_t * -xcb_xkb_get_map_map_explicit_rtrn (const xcb_xkb_get_map_map_t *S /**< */) -{ - return /* map */ S->explicit_rtrn; -} - -int -xcb_xkb_get_map_map_explicit_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - return R->totalKeyExplicit; -} - -xcb_xkb_set_explicit_iterator_t -xcb_xkb_get_map_map_explicit_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - xcb_xkb_set_explicit_iterator_t i; - i.data = /* map */ S->explicit_rtrn; - i.rem = R->totalKeyExplicit; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_mod_map_t * -xcb_xkb_get_map_map_modmap_rtrn (const xcb_xkb_get_map_map_t *S /**< */) -{ - return /* map */ S->modmap_rtrn; -} - -int -xcb_xkb_get_map_map_modmap_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - return R->totalModMapKeys; -} - -xcb_xkb_key_mod_map_iterator_t -xcb_xkb_get_map_map_modmap_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - xcb_xkb_key_mod_map_iterator_t i; - i.data = /* map */ S->modmap_rtrn; - i.rem = R->totalModMapKeys; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_v_mod_map_t * -xcb_xkb_get_map_map_vmodmap_rtrn (const xcb_xkb_get_map_map_t *S /**< */) -{ - return /* map */ S->vmodmap_rtrn; -} - -int -xcb_xkb_get_map_map_vmodmap_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - return R->totalVModMapKeys; -} - -xcb_xkb_key_v_mod_map_iterator_t -xcb_xkb_get_map_map_vmodmap_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */) -{ - xcb_xkb_key_v_mod_map_iterator_t i; - i.data = /* map */ S->vmodmap_rtrn; - i.rem = R->totalVModMapKeys; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_xkb_get_map_map_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */, - const xcb_xkb_get_map_map_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[23]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(present & XCB_XKB_MAP_PART_KEY_TYPES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* types_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->types_rtrn; - xcb_parts[xcb_parts_idx].iov_len = 0; - xcb_tmp = (char *) _aux->types_rtrn; - for(i=0; isyms_rtrn; - xcb_parts[xcb_parts_idx].iov_len = 0; - xcb_tmp = (char *) _aux->syms_rtrn; - for(i=0; iacts_rtrn_count; - xcb_block_len += nKeyActions * sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = nKeyActions * sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - xcb_align_to = 4; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* acts_rtrn_acts */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->acts_rtrn_acts; - xcb_block_len += totalActions * sizeof(xcb_xkb_action_t); - xcb_parts[xcb_parts_idx].iov_len = totalActions * sizeof(xcb_xkb_action_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_action_t); - } - if(present & XCB_XKB_MAP_PART_KEY_BEHAVIORS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* behaviors_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->behaviors_rtrn; - xcb_block_len += totalKeyBehaviors * sizeof(xcb_xkb_set_behavior_t); - xcb_parts[xcb_parts_idx].iov_len = totalKeyBehaviors * sizeof(xcb_xkb_set_behavior_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_set_behavior_t); - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MODS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmods_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->vmods_rtrn; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(virtualMods) * sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - xcb_align_to = 4; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - } - if(present & XCB_XKB_MAP_PART_EXPLICIT_COMPONENTS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* explicit_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->explicit_rtrn; - xcb_block_len += totalKeyExplicit * sizeof(xcb_xkb_set_explicit_t); - xcb_parts[xcb_parts_idx].iov_len = totalKeyExplicit * sizeof(xcb_xkb_set_explicit_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_set_explicit_t); - xcb_align_to = 4; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - } - if(present & XCB_XKB_MAP_PART_MODIFIER_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* modmap_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->modmap_rtrn; - xcb_block_len += totalModMapKeys * sizeof(xcb_xkb_key_mod_map_t); - xcb_parts[xcb_parts_idx].iov_len = totalModMapKeys * sizeof(xcb_xkb_key_mod_map_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_mod_map_t); - xcb_align_to = 4; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmodmap_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->vmodmap_rtrn; - xcb_block_len += totalVModMapKeys * sizeof(xcb_xkb_key_v_mod_map_t); - xcb_parts[xcb_parts_idx].iov_len = totalVModMapKeys * sizeof(xcb_xkb_key_v_mod_map_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_v_mod_map_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; itypes_rtrn = (xcb_xkb_key_type_t *)xcb_tmp; - for(i=0; isyms_rtrn = (xcb_xkb_key_sym_map_t *)xcb_tmp; - for(i=0; iacts_rtrn_count = (uint8_t *)xcb_tmp; - xcb_block_len += nKeyActions * sizeof(xcb_keycode_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - xcb_align_to = 4; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* acts_rtrn_acts */ - _aux->acts_rtrn_acts = (xcb_xkb_action_t *)xcb_tmp; - xcb_block_len += totalActions * sizeof(xcb_xkb_action_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_action_t); - } - if(present & XCB_XKB_MAP_PART_KEY_BEHAVIORS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* behaviors_rtrn */ - _aux->behaviors_rtrn = (xcb_xkb_set_behavior_t *)xcb_tmp; - xcb_block_len += totalKeyBehaviors * sizeof(xcb_xkb_set_behavior_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_set_behavior_t); - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MODS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmods_rtrn */ - _aux->vmods_rtrn = (uint8_t *)xcb_tmp; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_keycode_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - xcb_align_to = 4; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - } - if(present & XCB_XKB_MAP_PART_EXPLICIT_COMPONENTS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* explicit_rtrn */ - _aux->explicit_rtrn = (xcb_xkb_set_explicit_t *)xcb_tmp; - xcb_block_len += totalKeyExplicit * sizeof(xcb_xkb_set_explicit_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_set_explicit_t); - xcb_align_to = 4; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - } - if(present & XCB_XKB_MAP_PART_MODIFIER_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* modmap_rtrn */ - _aux->modmap_rtrn = (xcb_xkb_key_mod_map_t *)xcb_tmp; - xcb_block_len += totalModMapKeys * sizeof(xcb_xkb_key_mod_map_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_mod_map_t); - xcb_align_to = 4; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmodmap_rtrn */ - _aux->vmodmap_rtrn = (xcb_xkb_key_v_mod_map_t *)xcb_tmp; - xcb_block_len += totalVModMapKeys * sizeof(xcb_xkb_key_v_mod_map_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_v_mod_map_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_xkb_get_map_map_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */) -{ - xcb_xkb_get_map_map_t _aux; - return xcb_xkb_get_map_map_unpack(_buffer, nTypes, nKeySyms, nKeyActions, totalActions, totalKeyBehaviors, virtualMods, totalKeyExplicit, totalModMapKeys, totalVModMapKeys, present, &_aux); -} - -xcb_xkb_get_map_cookie_t -xcb_xkb_get_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t full /**< */, - uint16_t partial /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_MAP, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_map_cookie_t xcb_ret; - xcb_xkb_get_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.full = full; - xcb_out.partial = partial; - xcb_out.firstType = firstType; - xcb_out.nTypes = nTypes; - xcb_out.firstKeySym = firstKeySym; - xcb_out.nKeySyms = nKeySyms; - xcb_out.firstKeyAction = firstKeyAction; - xcb_out.nKeyActions = nKeyActions; - xcb_out.firstKeyBehavior = firstKeyBehavior; - xcb_out.nKeyBehaviors = nKeyBehaviors; - xcb_out.virtualMods = virtualMods; - xcb_out.firstKeyExplicit = firstKeyExplicit; - xcb_out.nKeyExplicit = nKeyExplicit; - xcb_out.firstModMapKey = firstModMapKey; - xcb_out.nModMapKeys = nModMapKeys; - xcb_out.firstVModMapKey = firstVModMapKey; - xcb_out.nVModMapKeys = nVModMapKeys; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_map_cookie_t -xcb_xkb_get_map_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t full /**< */, - uint16_t partial /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_MAP, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_map_cookie_t xcb_ret; - xcb_xkb_get_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.full = full; - xcb_out.partial = partial; - xcb_out.firstType = firstType; - xcb_out.nTypes = nTypes; - xcb_out.firstKeySym = firstKeySym; - xcb_out.nKeySyms = nKeySyms; - xcb_out.firstKeyAction = firstKeyAction; - xcb_out.nKeyActions = nKeyActions; - xcb_out.firstKeyBehavior = firstKeyBehavior; - xcb_out.nKeyBehaviors = nKeyBehaviors; - xcb_out.virtualMods = virtualMods; - xcb_out.firstKeyExplicit = firstKeyExplicit; - xcb_out.nKeyExplicit = nKeyExplicit; - xcb_out.firstModMapKey = firstModMapKey; - xcb_out.nModMapKeys = nModMapKeys; - xcb_out.firstVModMapKey = firstVModMapKey; - xcb_out.nVModMapKeys = nVModMapKeys; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void * -xcb_xkb_get_map_map (const xcb_xkb_get_map_reply_t *R /**< */) -{ - return (void *) (R + 1); -} - -xcb_xkb_get_map_reply_t * -xcb_xkb_get_map_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_map_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_get_map_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xkb_set_map_values_types_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - return R->nTypes; -} - -xcb_xkb_set_key_type_iterator_t -xcb_xkb_set_map_values_types_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - xcb_xkb_set_key_type_iterator_t i; - i.data = /* values */ S->types; - i.rem = R->nTypes; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_xkb_set_map_values_syms_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - return R->nKeySyms; -} - -xcb_xkb_key_sym_map_iterator_t -xcb_xkb_set_map_values_syms_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - xcb_xkb_key_sym_map_iterator_t i; - i.data = /* values */ S->syms; - i.rem = R->nKeySyms; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint8_t * -xcb_xkb_set_map_values_actions_count (const xcb_xkb_set_map_values_t *S /**< */) -{ - return /* values */ S->actionsCount; -} - -int -xcb_xkb_set_map_values_actions_count_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - return R->nKeyActions; -} - -xcb_generic_iterator_t -xcb_xkb_set_map_values_actions_count_end (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* values */ S->actionsCount + R->nKeyActions; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_action_t * -xcb_xkb_set_map_values_actions (const xcb_xkb_set_map_values_t *S /**< */) -{ - return /* values */ S->actions; -} - -int -xcb_xkb_set_map_values_actions_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - return R->totalActions; -} - -xcb_xkb_action_iterator_t -xcb_xkb_set_map_values_actions_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - xcb_xkb_action_iterator_t i; - i.data = /* values */ S->actions; - i.rem = R->totalActions; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_set_behavior_t * -xcb_xkb_set_map_values_behaviors (const xcb_xkb_set_map_values_t *S /**< */) -{ - return /* values */ S->behaviors; -} - -int -xcb_xkb_set_map_values_behaviors_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - return R->totalKeyBehaviors; -} - -xcb_xkb_set_behavior_iterator_t -xcb_xkb_set_map_values_behaviors_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - xcb_xkb_set_behavior_iterator_t i; - i.data = /* values */ S->behaviors; - i.rem = R->totalKeyBehaviors; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint8_t * -xcb_xkb_set_map_values_vmods (const xcb_xkb_set_map_values_t *S /**< */) -{ - return /* values */ S->vmods; -} - -int -xcb_xkb_set_map_values_vmods_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - return xcb_popcount(R->virtualMods); -} - -xcb_generic_iterator_t -xcb_xkb_set_map_values_vmods_end (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* values */ S->vmods + xcb_popcount(R->virtualMods); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_set_explicit_t * -xcb_xkb_set_map_values_explicit (const xcb_xkb_set_map_values_t *S /**< */) -{ - return /* values */ S->explicit; -} - -int -xcb_xkb_set_map_values_explicit_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - return R->totalKeyExplicit; -} - -xcb_xkb_set_explicit_iterator_t -xcb_xkb_set_map_values_explicit_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - xcb_xkb_set_explicit_iterator_t i; - i.data = /* values */ S->explicit; - i.rem = R->totalKeyExplicit; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_mod_map_t * -xcb_xkb_set_map_values_modmap (const xcb_xkb_set_map_values_t *S /**< */) -{ - return /* values */ S->modmap; -} - -int -xcb_xkb_set_map_values_modmap_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - return R->totalModMapKeys; -} - -xcb_xkb_key_mod_map_iterator_t -xcb_xkb_set_map_values_modmap_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - xcb_xkb_key_mod_map_iterator_t i; - i.data = /* values */ S->modmap; - i.rem = R->totalModMapKeys; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_v_mod_map_t * -xcb_xkb_set_map_values_vmodmap (const xcb_xkb_set_map_values_t *S /**< */) -{ - return /* values */ S->vmodmap; -} - -int -xcb_xkb_set_map_values_vmodmap_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - return R->totalVModMapKeys; -} - -xcb_xkb_key_v_mod_map_iterator_t -xcb_xkb_set_map_values_vmodmap_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */) -{ - xcb_xkb_key_v_mod_map_iterator_t i; - i.data = /* values */ S->vmodmap; - i.rem = R->totalVModMapKeys; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_xkb_set_map_values_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */, - const xcb_xkb_set_map_values_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[19]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(present & XCB_XKB_MAP_PART_KEY_TYPES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* types */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->types; - xcb_parts[xcb_parts_idx].iov_len = 0; - xcb_tmp = (char *) _aux->types; - for(i=0; isyms; - xcb_parts[xcb_parts_idx].iov_len = 0; - xcb_tmp = (char *) _aux->syms; - for(i=0; iactionsCount; - xcb_block_len += nKeyActions * sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = nKeyActions * sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* actions */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->actions; - xcb_block_len += totalActions * sizeof(xcb_xkb_action_t); - xcb_parts[xcb_parts_idx].iov_len = totalActions * sizeof(xcb_xkb_action_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_action_t); - } - if(present & XCB_XKB_MAP_PART_KEY_BEHAVIORS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* behaviors */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->behaviors; - xcb_block_len += totalKeyBehaviors * sizeof(xcb_xkb_set_behavior_t); - xcb_parts[xcb_parts_idx].iov_len = totalKeyBehaviors * sizeof(xcb_xkb_set_behavior_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_set_behavior_t); - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MODS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmods */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->vmods; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(virtualMods) * sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - } - if(present & XCB_XKB_MAP_PART_EXPLICIT_COMPONENTS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* explicit */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->explicit; - xcb_block_len += totalKeyExplicit * sizeof(xcb_xkb_set_explicit_t); - xcb_parts[xcb_parts_idx].iov_len = totalKeyExplicit * sizeof(xcb_xkb_set_explicit_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_set_explicit_t); - } - if(present & XCB_XKB_MAP_PART_MODIFIER_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* modmap */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->modmap; - xcb_block_len += totalModMapKeys * sizeof(xcb_xkb_key_mod_map_t); - xcb_parts[xcb_parts_idx].iov_len = totalModMapKeys * sizeof(xcb_xkb_key_mod_map_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_mod_map_t); - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmodmap */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->vmodmap; - xcb_block_len += totalVModMapKeys * sizeof(xcb_xkb_key_v_mod_map_t); - xcb_parts[xcb_parts_idx].iov_len = totalVModMapKeys * sizeof(xcb_xkb_key_v_mod_map_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_v_mod_map_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; itypes = (xcb_xkb_set_key_type_t *)xcb_tmp; - for(i=0; isyms = (xcb_xkb_key_sym_map_t *)xcb_tmp; - for(i=0; iactionsCount = (uint8_t *)xcb_tmp; - xcb_block_len += nKeyActions * sizeof(xcb_keycode_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* actions */ - _aux->actions = (xcb_xkb_action_t *)xcb_tmp; - xcb_block_len += totalActions * sizeof(xcb_xkb_action_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_action_t); - } - if(present & XCB_XKB_MAP_PART_KEY_BEHAVIORS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* behaviors */ - _aux->behaviors = (xcb_xkb_set_behavior_t *)xcb_tmp; - xcb_block_len += totalKeyBehaviors * sizeof(xcb_xkb_set_behavior_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_set_behavior_t); - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MODS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmods */ - _aux->vmods = (uint8_t *)xcb_tmp; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_keycode_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - } - if(present & XCB_XKB_MAP_PART_EXPLICIT_COMPONENTS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* explicit */ - _aux->explicit = (xcb_xkb_set_explicit_t *)xcb_tmp; - xcb_block_len += totalKeyExplicit * sizeof(xcb_xkb_set_explicit_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_set_explicit_t); - } - if(present & XCB_XKB_MAP_PART_MODIFIER_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* modmap */ - _aux->modmap = (xcb_xkb_key_mod_map_t *)xcb_tmp; - xcb_block_len += totalModMapKeys * sizeof(xcb_xkb_key_mod_map_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_mod_map_t); - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmodmap */ - _aux->vmodmap = (xcb_xkb_key_v_mod_map_t *)xcb_tmp; - xcb_block_len += totalVModMapKeys * sizeof(xcb_xkb_key_v_mod_map_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_v_mod_map_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_xkb_set_map_values_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */) -{ - xcb_xkb_set_map_values_t _aux; - return xcb_xkb_set_map_values_unpack(_buffer, nTypes, nKeySyms, nKeyActions, totalActions, totalKeyBehaviors, virtualMods, totalKeyExplicit, totalModMapKeys, totalVModMapKeys, present, &_aux); -} - -xcb_void_cookie_t -xcb_xkb_set_map_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t present /**< */, - uint16_t flags /**< */, - xcb_keycode_t minKeyCode /**< */, - xcb_keycode_t maxKeyCode /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - uint16_t totalSyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint8_t totalKeyBehaviors /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - uint8_t totalKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - uint8_t totalModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t virtualMods /**< */, - const void *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_MAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.present = present; - xcb_out.flags = flags; - xcb_out.minKeyCode = minKeyCode; - xcb_out.maxKeyCode = maxKeyCode; - xcb_out.firstType = firstType; - xcb_out.nTypes = nTypes; - xcb_out.firstKeySym = firstKeySym; - xcb_out.nKeySyms = nKeySyms; - xcb_out.totalSyms = totalSyms; - xcb_out.firstKeyAction = firstKeyAction; - xcb_out.nKeyActions = nKeyActions; - xcb_out.totalActions = totalActions; - xcb_out.firstKeyBehavior = firstKeyBehavior; - xcb_out.nKeyBehaviors = nKeyBehaviors; - xcb_out.totalKeyBehaviors = totalKeyBehaviors; - xcb_out.firstKeyExplicit = firstKeyExplicit; - xcb_out.nKeyExplicit = nKeyExplicit; - xcb_out.totalKeyExplicit = totalKeyExplicit; - xcb_out.firstModMapKey = firstModMapKey; - xcb_out.nModMapKeys = nModMapKeys; - xcb_out.totalModMapKeys = totalModMapKeys; - xcb_out.firstVModMapKey = firstVModMapKey; - xcb_out.nVModMapKeys = nVModMapKeys; - xcb_out.totalVModMapKeys = totalVModMapKeys; - xcb_out.virtualMods = virtualMods; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_set_map_values_t values */ - xcb_parts[4].iov_base = (char *) values; - xcb_parts[4].iov_len = - xcb_xkb_set_map_values_sizeof (values, nTypes, nKeySyms, nKeyActions, totalActions, totalKeyBehaviors, virtualMods, totalKeyExplicit, totalModMapKeys, totalVModMapKeys, present); - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_set_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t present /**< */, - uint16_t flags /**< */, - xcb_keycode_t minKeyCode /**< */, - xcb_keycode_t maxKeyCode /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - uint16_t totalSyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint8_t totalKeyBehaviors /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - uint8_t totalKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - uint8_t totalModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t virtualMods /**< */, - const void *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_MAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.present = present; - xcb_out.flags = flags; - xcb_out.minKeyCode = minKeyCode; - xcb_out.maxKeyCode = maxKeyCode; - xcb_out.firstType = firstType; - xcb_out.nTypes = nTypes; - xcb_out.firstKeySym = firstKeySym; - xcb_out.nKeySyms = nKeySyms; - xcb_out.totalSyms = totalSyms; - xcb_out.firstKeyAction = firstKeyAction; - xcb_out.nKeyActions = nKeyActions; - xcb_out.totalActions = totalActions; - xcb_out.firstKeyBehavior = firstKeyBehavior; - xcb_out.nKeyBehaviors = nKeyBehaviors; - xcb_out.totalKeyBehaviors = totalKeyBehaviors; - xcb_out.firstKeyExplicit = firstKeyExplicit; - xcb_out.nKeyExplicit = nKeyExplicit; - xcb_out.totalKeyExplicit = totalKeyExplicit; - xcb_out.firstModMapKey = firstModMapKey; - xcb_out.nModMapKeys = nModMapKeys; - xcb_out.totalModMapKeys = totalModMapKeys; - xcb_out.firstVModMapKey = firstVModMapKey; - xcb_out.nVModMapKeys = nVModMapKeys; - xcb_out.totalVModMapKeys = totalVModMapKeys; - xcb_out.virtualMods = virtualMods; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_set_map_values_t values */ - xcb_parts[4].iov_base = (char *) values; - xcb_parts[4].iov_len = - xcb_xkb_set_map_values_sizeof (values, nTypes, nKeySyms, nKeyActions, totalActions, totalKeyBehaviors, virtualMods, totalKeyExplicit, totalModMapKeys, totalVModMapKeys, present); - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_set_map_aux_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t present /**< */, - uint16_t flags /**< */, - xcb_keycode_t minKeyCode /**< */, - xcb_keycode_t maxKeyCode /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - uint16_t totalSyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint8_t totalKeyBehaviors /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - uint8_t totalKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - uint8_t totalModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t virtualMods /**< */, - const xcb_xkb_set_map_values_t *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_MAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_map_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.present = present; - xcb_out.flags = flags; - xcb_out.minKeyCode = minKeyCode; - xcb_out.maxKeyCode = maxKeyCode; - xcb_out.firstType = firstType; - xcb_out.nTypes = nTypes; - xcb_out.firstKeySym = firstKeySym; - xcb_out.nKeySyms = nKeySyms; - xcb_out.totalSyms = totalSyms; - xcb_out.firstKeyAction = firstKeyAction; - xcb_out.nKeyActions = nKeyActions; - xcb_out.totalActions = totalActions; - xcb_out.firstKeyBehavior = firstKeyBehavior; - xcb_out.nKeyBehaviors = nKeyBehaviors; - xcb_out.totalKeyBehaviors = totalKeyBehaviors; - xcb_out.firstKeyExplicit = firstKeyExplicit; - xcb_out.nKeyExplicit = nKeyExplicit; - xcb_out.totalKeyExplicit = totalKeyExplicit; - xcb_out.firstModMapKey = firstModMapKey; - xcb_out.nModMapKeys = nModMapKeys; - xcb_out.totalModMapKeys = totalModMapKeys; - xcb_out.firstVModMapKey = firstVModMapKey; - xcb_out.nVModMapKeys = nVModMapKeys; - xcb_out.totalVModMapKeys = totalVModMapKeys; - xcb_out.virtualMods = virtualMods; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_set_map_values_t values */ - xcb_parts[4].iov_len = - xcb_xkb_set_map_values_serialize (&xcb_aux0, nTypes, nKeySyms, nKeyActions, totalActions, totalKeyBehaviors, virtualMods, totalKeyExplicit, totalModMapKeys, totalVModMapKeys, present, values); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_set_map_aux (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t present /**< */, - uint16_t flags /**< */, - xcb_keycode_t minKeyCode /**< */, - xcb_keycode_t maxKeyCode /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - uint16_t totalSyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint8_t totalKeyBehaviors /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - uint8_t totalKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - uint8_t totalModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t virtualMods /**< */, - const xcb_xkb_set_map_values_t *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_MAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_map_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.present = present; - xcb_out.flags = flags; - xcb_out.minKeyCode = minKeyCode; - xcb_out.maxKeyCode = maxKeyCode; - xcb_out.firstType = firstType; - xcb_out.nTypes = nTypes; - xcb_out.firstKeySym = firstKeySym; - xcb_out.nKeySyms = nKeySyms; - xcb_out.totalSyms = totalSyms; - xcb_out.firstKeyAction = firstKeyAction; - xcb_out.nKeyActions = nKeyActions; - xcb_out.totalActions = totalActions; - xcb_out.firstKeyBehavior = firstKeyBehavior; - xcb_out.nKeyBehaviors = nKeyBehaviors; - xcb_out.totalKeyBehaviors = totalKeyBehaviors; - xcb_out.firstKeyExplicit = firstKeyExplicit; - xcb_out.nKeyExplicit = nKeyExplicit; - xcb_out.totalKeyExplicit = totalKeyExplicit; - xcb_out.firstModMapKey = firstModMapKey; - xcb_out.nModMapKeys = nModMapKeys; - xcb_out.totalModMapKeys = totalModMapKeys; - xcb_out.firstVModMapKey = firstVModMapKey; - xcb_out.nVModMapKeys = nVModMapKeys; - xcb_out.totalVModMapKeys = totalVModMapKeys; - xcb_out.virtualMods = virtualMods; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_set_map_values_t values */ - xcb_parts[4].iov_len = - xcb_xkb_set_map_values_serialize (&xcb_aux0, nTypes, nKeySyms, nKeyActions, totalActions, totalKeyBehaviors, virtualMods, totalKeyExplicit, totalModMapKeys, totalVModMapKeys, present, values); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -int -xcb_xkb_get_compat_map_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_get_compat_map_reply_t *_aux = (xcb_xkb_get_compat_map_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_get_compat_map_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* si_rtrn */ - xcb_block_len += _aux->nSIRtrn * sizeof(xcb_xkb_sym_interpret_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_sym_interpret_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* group_rtrn */ - xcb_block_len += xcb_popcount(_aux->groupsRtrn) * sizeof(xcb_xkb_mod_def_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_mod_def_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xkb_get_compat_map_cookie_t -xcb_xkb_get_compat_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t groups /**< */, - uint8_t getAllSI /**< */, - uint16_t firstSI /**< */, - uint16_t nSI /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_COMPAT_MAP, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_compat_map_cookie_t xcb_ret; - xcb_xkb_get_compat_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.groups = groups; - xcb_out.getAllSI = getAllSI; - xcb_out.firstSI = firstSI; - xcb_out.nSI = nSI; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_compat_map_cookie_t -xcb_xkb_get_compat_map_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t groups /**< */, - uint8_t getAllSI /**< */, - uint16_t firstSI /**< */, - uint16_t nSI /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_COMPAT_MAP, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_compat_map_cookie_t xcb_ret; - xcb_xkb_get_compat_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.groups = groups; - xcb_out.getAllSI = getAllSI; - xcb_out.firstSI = firstSI; - xcb_out.nSI = nSI; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_sym_interpret_t * -xcb_xkb_get_compat_map_si_rtrn (const xcb_xkb_get_compat_map_reply_t *R /**< */) -{ - return (xcb_xkb_sym_interpret_t *) (R + 1); -} - -int -xcb_xkb_get_compat_map_si_rtrn_length (const xcb_xkb_get_compat_map_reply_t *R /**< */) -{ - return R->nSIRtrn; -} - -xcb_xkb_sym_interpret_iterator_t -xcb_xkb_get_compat_map_si_rtrn_iterator (const xcb_xkb_get_compat_map_reply_t *R /**< */) -{ - xcb_xkb_sym_interpret_iterator_t i; - i.data = (xcb_xkb_sym_interpret_t *) (R + 1); - i.rem = R->nSIRtrn; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xkb_mod_def_t * -xcb_xkb_get_compat_map_group_rtrn (const xcb_xkb_get_compat_map_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xkb_sym_interpret_end(xcb_xkb_get_compat_map_si_rtrn_iterator(R)); - return (xcb_xkb_mod_def_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_mod_def_t, prev.index) + 0); -} - -int -xcb_xkb_get_compat_map_group_rtrn_length (const xcb_xkb_get_compat_map_reply_t *R /**< */) -{ - return xcb_popcount(R->groupsRtrn); -} - -xcb_xkb_mod_def_iterator_t -xcb_xkb_get_compat_map_group_rtrn_iterator (const xcb_xkb_get_compat_map_reply_t *R /**< */) -{ - xcb_xkb_mod_def_iterator_t i; - xcb_generic_iterator_t prev = xcb_xkb_sym_interpret_end(xcb_xkb_get_compat_map_si_rtrn_iterator(R)); - i.data = (xcb_xkb_mod_def_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_mod_def_t, prev.index)); - i.rem = xcb_popcount(R->groupsRtrn); - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xkb_get_compat_map_reply_t * -xcb_xkb_get_compat_map_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_compat_map_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_get_compat_map_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xkb_set_compat_map_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_set_compat_map_request_t *_aux = (xcb_xkb_set_compat_map_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_set_compat_map_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* si */ - xcb_block_len += _aux->nSI * sizeof(xcb_xkb_sym_interpret_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_sym_interpret_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* groupMaps */ - xcb_block_len += xcb_popcount(_aux->groups) * sizeof(xcb_xkb_mod_def_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_mod_def_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_xkb_set_compat_map_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t recomputeActions /**< */, - uint8_t truncateSI /**< */, - uint8_t groups /**< */, - uint16_t firstSI /**< */, - uint16_t nSI /**< */, - const xcb_xkb_sym_interpret_t *si /**< */, - const xcb_xkb_mod_def_t *groupMaps /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_COMPAT_MAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_compat_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.pad0 = 0; - xcb_out.recomputeActions = recomputeActions; - xcb_out.truncateSI = truncateSI; - xcb_out.groups = groups; - xcb_out.firstSI = firstSI; - xcb_out.nSI = nSI; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_sym_interpret_t si */ - xcb_parts[4].iov_base = (char *) si; - xcb_parts[4].iov_len = nSI * sizeof(xcb_xkb_sym_interpret_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_xkb_mod_def_t groupMaps */ - xcb_parts[6].iov_base = (char *) groupMaps; - xcb_parts[6].iov_len = xcb_popcount(groups) * sizeof(xcb_xkb_mod_def_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_set_compat_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t recomputeActions /**< */, - uint8_t truncateSI /**< */, - uint8_t groups /**< */, - uint16_t firstSI /**< */, - uint16_t nSI /**< */, - const xcb_xkb_sym_interpret_t *si /**< */, - const xcb_xkb_mod_def_t *groupMaps /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_COMPAT_MAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_compat_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.pad0 = 0; - xcb_out.recomputeActions = recomputeActions; - xcb_out.truncateSI = truncateSI; - xcb_out.groups = groups; - xcb_out.firstSI = firstSI; - xcb_out.nSI = nSI; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_sym_interpret_t si */ - xcb_parts[4].iov_base = (char *) si; - xcb_parts[4].iov_len = nSI * sizeof(xcb_xkb_sym_interpret_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_xkb_mod_def_t groupMaps */ - xcb_parts[6].iov_base = (char *) groupMaps; - xcb_parts[6].iov_len = xcb_popcount(groups) * sizeof(xcb_xkb_mod_def_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_indicator_state_cookie_t -xcb_xkb_get_indicator_state (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_INDICATOR_STATE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_indicator_state_cookie_t xcb_ret; - xcb_xkb_get_indicator_state_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_indicator_state_cookie_t -xcb_xkb_get_indicator_state_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_INDICATOR_STATE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_indicator_state_cookie_t xcb_ret; - xcb_xkb_get_indicator_state_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_indicator_state_reply_t * -xcb_xkb_get_indicator_state_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_indicator_state_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_get_indicator_state_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xkb_get_indicator_map_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_get_indicator_map_reply_t *_aux = (xcb_xkb_get_indicator_map_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_get_indicator_map_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* maps */ - xcb_block_len += xcb_popcount(_aux->which) * sizeof(xcb_xkb_indicator_map_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_indicator_map_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xkb_get_indicator_map_cookie_t -xcb_xkb_get_indicator_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_INDICATOR_MAP, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_indicator_map_cookie_t xcb_ret; - xcb_xkb_get_indicator_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - xcb_out.which = which; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_indicator_map_cookie_t -xcb_xkb_get_indicator_map_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_INDICATOR_MAP, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_indicator_map_cookie_t xcb_ret; - xcb_xkb_get_indicator_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - xcb_out.which = which; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_indicator_map_t * -xcb_xkb_get_indicator_map_maps (const xcb_xkb_get_indicator_map_reply_t *R /**< */) -{ - return (xcb_xkb_indicator_map_t *) (R + 1); -} - -int -xcb_xkb_get_indicator_map_maps_length (const xcb_xkb_get_indicator_map_reply_t *R /**< */) -{ - return xcb_popcount(R->which); -} - -xcb_xkb_indicator_map_iterator_t -xcb_xkb_get_indicator_map_maps_iterator (const xcb_xkb_get_indicator_map_reply_t *R /**< */) -{ - xcb_xkb_indicator_map_iterator_t i; - i.data = (xcb_xkb_indicator_map_t *) (R + 1); - i.rem = xcb_popcount(R->which); - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xkb_get_indicator_map_reply_t * -xcb_xkb_get_indicator_map_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_indicator_map_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_get_indicator_map_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xkb_set_indicator_map_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_set_indicator_map_request_t *_aux = (xcb_xkb_set_indicator_map_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xkb_set_indicator_map_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* maps */ - xcb_block_len += xcb_popcount(_aux->which) * sizeof(xcb_xkb_indicator_map_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_indicator_map_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_xkb_set_indicator_map_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */, - const xcb_xkb_indicator_map_t *maps /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_INDICATOR_MAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_indicator_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - xcb_out.which = which; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_indicator_map_t maps */ - xcb_parts[4].iov_base = (char *) maps; - xcb_parts[4].iov_len = xcb_popcount(which) * sizeof(xcb_xkb_indicator_map_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_set_indicator_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */, - const xcb_xkb_indicator_map_t *maps /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_INDICATOR_MAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_indicator_map_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - xcb_out.which = which; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_indicator_map_t maps */ - xcb_parts[4].iov_base = (char *) maps; - xcb_parts[4].iov_len = xcb_popcount(which) * sizeof(xcb_xkb_indicator_map_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_named_indicator_cookie_t -xcb_xkb_get_named_indicator (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */, - xcb_atom_t indicator /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_NAMED_INDICATOR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_named_indicator_cookie_t xcb_ret; - xcb_xkb_get_named_indicator_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.ledClass = ledClass; - xcb_out.ledID = ledID; - memset(xcb_out.pad0, 0, 2); - xcb_out.indicator = indicator; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_named_indicator_cookie_t -xcb_xkb_get_named_indicator_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */, - xcb_atom_t indicator /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_NAMED_INDICATOR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_named_indicator_cookie_t xcb_ret; - xcb_xkb_get_named_indicator_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.ledClass = ledClass; - xcb_out.ledID = ledID; - memset(xcb_out.pad0, 0, 2); - xcb_out.indicator = indicator; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_named_indicator_reply_t * -xcb_xkb_get_named_indicator_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_named_indicator_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_get_named_indicator_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xkb_set_named_indicator_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */, - xcb_atom_t indicator /**< */, - uint8_t setState /**< */, - uint8_t on /**< */, - uint8_t setMap /**< */, - uint8_t createMap /**< */, - uint8_t map_flags /**< */, - uint8_t map_whichGroups /**< */, - uint8_t map_groups /**< */, - uint8_t map_whichMods /**< */, - uint8_t map_realMods /**< */, - uint16_t map_vmods /**< */, - uint32_t map_ctrls /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_NAMED_INDICATOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_named_indicator_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.ledClass = ledClass; - xcb_out.ledID = ledID; - memset(xcb_out.pad0, 0, 2); - xcb_out.indicator = indicator; - xcb_out.setState = setState; - xcb_out.on = on; - xcb_out.setMap = setMap; - xcb_out.createMap = createMap; - xcb_out.pad1 = 0; - xcb_out.map_flags = map_flags; - xcb_out.map_whichGroups = map_whichGroups; - xcb_out.map_groups = map_groups; - xcb_out.map_whichMods = map_whichMods; - xcb_out.map_realMods = map_realMods; - xcb_out.map_vmods = map_vmods; - xcb_out.map_ctrls = map_ctrls; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_set_named_indicator (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */, - xcb_atom_t indicator /**< */, - uint8_t setState /**< */, - uint8_t on /**< */, - uint8_t setMap /**< */, - uint8_t createMap /**< */, - uint8_t map_flags /**< */, - uint8_t map_whichGroups /**< */, - uint8_t map_groups /**< */, - uint8_t map_whichMods /**< */, - uint8_t map_realMods /**< */, - uint16_t map_vmods /**< */, - uint32_t map_ctrls /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_NAMED_INDICATOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_named_indicator_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.ledClass = ledClass; - xcb_out.ledID = ledID; - memset(xcb_out.pad0, 0, 2); - xcb_out.indicator = indicator; - xcb_out.setState = setState; - xcb_out.on = on; - xcb_out.setMap = setMap; - xcb_out.createMap = createMap; - xcb_out.pad1 = 0; - xcb_out.map_flags = map_flags; - xcb_out.map_whichGroups = map_whichGroups; - xcb_out.map_groups = map_groups; - xcb_out.map_whichMods = map_whichMods; - xcb_out.map_realMods = map_realMods; - xcb_out.map_vmods = map_vmods; - xcb_out.map_ctrls = map_ctrls; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_atom_t * -xcb_xkb_get_names_value_list_type_names (const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return /* valueList */ S->typeNames; -} - -int -xcb_xkb_get_names_value_list_type_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return R->nTypes; -} - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_type_names_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* valueList */ S->typeNames + R->nTypes; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint8_t * -xcb_xkb_get_names_value_list_n_levels_per_type (const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return /* valueList */ S->nLevelsPerType; -} - -int -xcb_xkb_get_names_value_list_n_levels_per_type_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return R->nTypes; -} - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_n_levels_per_type_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* valueList */ S->nLevelsPerType + R->nTypes; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint8_t * -xcb_xkb_get_names_value_list_alignment_pad (const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return /* valueList */ S->alignment_pad; -} - -int -xcb_xkb_get_names_value_list_alignment_pad_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return (((R->nTypes + 3) & (~3)) - R->nTypes); -} - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_alignment_pad_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* valueList */ S->alignment_pad + (((R->nTypes + 3) & (~3)) - R->nTypes); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_get_names_value_list_kt_level_names (const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return /* valueList */ S->ktLevelNames; -} - -int -xcb_xkb_get_names_value_list_kt_level_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return xcb_sumof(/* valueList */ S->nLevelsPerType, R->nTypes); -} - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_kt_level_names_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* valueList */ S->ktLevelNames + xcb_sumof(/* valueList */ S->nLevelsPerType, R->nTypes); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_get_names_value_list_indicator_names (const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return /* valueList */ S->indicatorNames; -} - -int -xcb_xkb_get_names_value_list_indicator_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return xcb_popcount(R->indicators); -} - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_indicator_names_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* valueList */ S->indicatorNames + xcb_popcount(R->indicators); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_get_names_value_list_virtual_mod_names (const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return /* valueList */ S->virtualModNames; -} - -int -xcb_xkb_get_names_value_list_virtual_mod_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return xcb_popcount(R->virtualMods); -} - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_virtual_mod_names_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* valueList */ S->virtualModNames + xcb_popcount(R->virtualMods); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_get_names_value_list_groups (const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return /* valueList */ S->groups; -} - -int -xcb_xkb_get_names_value_list_groups_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return xcb_popcount(R->groupNames); -} - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_groups_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* valueList */ S->groups + xcb_popcount(R->groupNames); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_name_t * -xcb_xkb_get_names_value_list_key_names (const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return /* valueList */ S->keyNames; -} - -int -xcb_xkb_get_names_value_list_key_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return R->nKeys; -} - -xcb_xkb_key_name_iterator_t -xcb_xkb_get_names_value_list_key_names_iterator (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - xcb_xkb_key_name_iterator_t i; - i.data = /* valueList */ S->keyNames; - i.rem = R->nKeys; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_alias_t * -xcb_xkb_get_names_value_list_key_aliases (const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return /* valueList */ S->keyAliases; -} - -int -xcb_xkb_get_names_value_list_key_aliases_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return R->nKeyAliases; -} - -xcb_xkb_key_alias_iterator_t -xcb_xkb_get_names_value_list_key_aliases_iterator (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - xcb_xkb_key_alias_iterator_t i; - i.data = /* valueList */ S->keyAliases; - i.rem = R->nKeyAliases; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_get_names_value_list_radio_group_names (const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return /* valueList */ S->radioGroupNames; -} - -int -xcb_xkb_get_names_value_list_radio_group_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - return R->nRadioGroups; -} - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_radio_group_names_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* valueList */ S->radioGroupNames + R->nRadioGroups; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_xkb_get_names_value_list_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */, - const xcb_xkb_get_names_value_list_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[27]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(which & XCB_XKB_NAME_DETAIL_KEYCODES) { - /* xcb_xkb_get_names_value_list_t.keycodesName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->keycodesName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GEOMETRY) { - /* xcb_xkb_get_names_value_list_t.geometryName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometryName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_SYMBOLS) { - /* xcb_xkb_get_names_value_list_t.symbolsName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->symbolsName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_PHYS_SYMBOLS) { - /* xcb_xkb_get_names_value_list_t.physSymbolsName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->physSymbolsName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_TYPES) { - /* xcb_xkb_get_names_value_list_t.typesName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->typesName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_COMPAT) { - /* xcb_xkb_get_names_value_list_t.compatName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compatName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_TYPE_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* typeNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->typeNames; - xcb_block_len += nTypes * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = nTypes * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KT_LEVEL_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* nLevelsPerType */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->nLevelsPerType; - xcb_block_len += nTypes * sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = nTypes * sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* alignment_pad */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->alignment_pad; - xcb_block_len += (((nTypes + 3) & (~3)) - nTypes) * sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = (((nTypes + 3) & (~3)) - nTypes) * sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* ktLevelNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->ktLevelNames; - xcb_block_len += xcb_sumof(_aux->nLevelsPerType, nTypes) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_sumof(_aux->nLevelsPerType, nTypes) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_INDICATOR_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* indicatorNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->indicatorNames; - xcb_block_len += xcb_popcount(indicators) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(indicators) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_VIRTUAL_MOD_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* virtualModNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->virtualModNames; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(virtualMods) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GROUP_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* groups */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->groups; - xcb_block_len += xcb_popcount(groupNames) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(groupNames) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->keyNames; - xcb_block_len += nKeys * sizeof(xcb_xkb_key_name_t); - xcb_parts[xcb_parts_idx].iov_len = nKeys * sizeof(xcb_xkb_key_name_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_name_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_ALIASES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyAliases */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->keyAliases; - xcb_block_len += nKeyAliases * sizeof(xcb_xkb_key_alias_t); - xcb_parts[xcb_parts_idx].iov_len = nKeyAliases * sizeof(xcb_xkb_key_alias_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_alias_t); - } - if(which & XCB_XKB_NAME_DETAIL_RG_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* radioGroupNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->radioGroupNames; - xcb_block_len += nRadioGroups * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = nRadioGroups * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; ikeycodesName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GEOMETRY) { - /* xcb_xkb_get_names_value_list_t.geometryName */ - _aux->geometryName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_SYMBOLS) { - /* xcb_xkb_get_names_value_list_t.symbolsName */ - _aux->symbolsName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_PHYS_SYMBOLS) { - /* xcb_xkb_get_names_value_list_t.physSymbolsName */ - _aux->physSymbolsName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_TYPES) { - /* xcb_xkb_get_names_value_list_t.typesName */ - _aux->typesName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_COMPAT) { - /* xcb_xkb_get_names_value_list_t.compatName */ - _aux->compatName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_TYPE_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* typeNames */ - _aux->typeNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += nTypes * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KT_LEVEL_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* nLevelsPerType */ - _aux->nLevelsPerType = (uint8_t *)xcb_tmp; - xcb_block_len += nTypes * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* alignment_pad */ - _aux->alignment_pad = (uint8_t *)xcb_tmp; - xcb_block_len += (((nTypes + 3) & (~3)) - nTypes) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* ktLevelNames */ - _aux->ktLevelNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_sumof(_aux->nLevelsPerType, nTypes) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_INDICATOR_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* indicatorNames */ - _aux->indicatorNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_popcount(indicators) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_VIRTUAL_MOD_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* virtualModNames */ - _aux->virtualModNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GROUP_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* groups */ - _aux->groups = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_popcount(groupNames) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyNames */ - _aux->keyNames = (xcb_xkb_key_name_t *)xcb_tmp; - xcb_block_len += nKeys * sizeof(xcb_xkb_key_name_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_name_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_ALIASES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyAliases */ - _aux->keyAliases = (xcb_xkb_key_alias_t *)xcb_tmp; - xcb_block_len += nKeyAliases * sizeof(xcb_xkb_key_alias_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_alias_t); - } - if(which & XCB_XKB_NAME_DETAIL_RG_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* radioGroupNames */ - _aux->radioGroupNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += nRadioGroups * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_xkb_get_names_value_list_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */) -{ - xcb_xkb_get_names_value_list_t _aux; - return xcb_xkb_get_names_value_list_unpack(_buffer, nTypes, indicators, virtualMods, groupNames, nKeys, nKeyAliases, nRadioGroups, which, &_aux); -} - -xcb_xkb_get_names_cookie_t -xcb_xkb_get_names (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_NAMES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_names_cookie_t xcb_ret; - xcb_xkb_get_names_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - xcb_out.which = which; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_names_cookie_t -xcb_xkb_get_names_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_NAMES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_names_cookie_t xcb_ret; - xcb_xkb_get_names_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - xcb_out.which = which; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void * -xcb_xkb_get_names_value_list (const xcb_xkb_get_names_reply_t *R /**< */) -{ - return (void *) (R + 1); -} - -xcb_xkb_get_names_reply_t * -xcb_xkb_get_names_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_names_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_get_names_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_atom_t * -xcb_xkb_set_names_values_type_names (const xcb_xkb_set_names_values_t *S /**< */) -{ - return /* values */ S->typeNames; -} - -int -xcb_xkb_set_names_values_type_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - return R->nTypes; -} - -xcb_generic_iterator_t -xcb_xkb_set_names_values_type_names_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* values */ S->typeNames + R->nTypes; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint8_t * -xcb_xkb_set_names_values_n_levels_per_type (const xcb_xkb_set_names_values_t *S /**< */) -{ - return /* values */ S->nLevelsPerType; -} - -int -xcb_xkb_set_names_values_n_levels_per_type_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - return R->nTypes; -} - -xcb_generic_iterator_t -xcb_xkb_set_names_values_n_levels_per_type_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* values */ S->nLevelsPerType + R->nTypes; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_set_names_values_kt_level_names (const xcb_xkb_set_names_values_t *S /**< */) -{ - return /* values */ S->ktLevelNames; -} - -int -xcb_xkb_set_names_values_kt_level_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - return xcb_sumof(/* values */ S->nLevelsPerType, R->nTypes); -} - -xcb_generic_iterator_t -xcb_xkb_set_names_values_kt_level_names_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* values */ S->ktLevelNames + xcb_sumof(/* values */ S->nLevelsPerType, R->nTypes); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_set_names_values_indicator_names (const xcb_xkb_set_names_values_t *S /**< */) -{ - return /* values */ S->indicatorNames; -} - -int -xcb_xkb_set_names_values_indicator_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - return xcb_popcount(R->indicators); -} - -xcb_generic_iterator_t -xcb_xkb_set_names_values_indicator_names_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* values */ S->indicatorNames + xcb_popcount(R->indicators); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_set_names_values_virtual_mod_names (const xcb_xkb_set_names_values_t *S /**< */) -{ - return /* values */ S->virtualModNames; -} - -int -xcb_xkb_set_names_values_virtual_mod_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - return xcb_popcount(R->virtualMods); -} - -xcb_generic_iterator_t -xcb_xkb_set_names_values_virtual_mod_names_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* values */ S->virtualModNames + xcb_popcount(R->virtualMods); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_set_names_values_groups (const xcb_xkb_set_names_values_t *S /**< */) -{ - return /* values */ S->groups; -} - -int -xcb_xkb_set_names_values_groups_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - return xcb_popcount(R->groupNames); -} - -xcb_generic_iterator_t -xcb_xkb_set_names_values_groups_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* values */ S->groups + xcb_popcount(R->groupNames); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_name_t * -xcb_xkb_set_names_values_key_names (const xcb_xkb_set_names_values_t *S /**< */) -{ - return /* values */ S->keyNames; -} - -int -xcb_xkb_set_names_values_key_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - return R->nKeys; -} - -xcb_xkb_key_name_iterator_t -xcb_xkb_set_names_values_key_names_iterator (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - xcb_xkb_key_name_iterator_t i; - i.data = /* values */ S->keyNames; - i.rem = R->nKeys; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_alias_t * -xcb_xkb_set_names_values_key_aliases (const xcb_xkb_set_names_values_t *S /**< */) -{ - return /* values */ S->keyAliases; -} - -int -xcb_xkb_set_names_values_key_aliases_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - return R->nKeyAliases; -} - -xcb_xkb_key_alias_iterator_t -xcb_xkb_set_names_values_key_aliases_iterator (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - xcb_xkb_key_alias_iterator_t i; - i.data = /* values */ S->keyAliases; - i.rem = R->nKeyAliases; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_set_names_values_radio_group_names (const xcb_xkb_set_names_values_t *S /**< */) -{ - return /* values */ S->radioGroupNames; -} - -int -xcb_xkb_set_names_values_radio_group_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - return R->nRadioGroups; -} - -xcb_generic_iterator_t -xcb_xkb_set_names_values_radio_group_names_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* values */ S->radioGroupNames + R->nRadioGroups; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_xkb_set_names_values_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */, - const xcb_xkb_set_names_values_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[25]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(which & XCB_XKB_NAME_DETAIL_KEYCODES) { - /* xcb_xkb_set_names_values_t.keycodesName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->keycodesName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GEOMETRY) { - /* xcb_xkb_set_names_values_t.geometryName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometryName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_SYMBOLS) { - /* xcb_xkb_set_names_values_t.symbolsName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->symbolsName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_PHYS_SYMBOLS) { - /* xcb_xkb_set_names_values_t.physSymbolsName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->physSymbolsName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_TYPES) { - /* xcb_xkb_set_names_values_t.typesName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->typesName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_COMPAT) { - /* xcb_xkb_set_names_values_t.compatName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compatName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_TYPE_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* typeNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->typeNames; - xcb_block_len += nTypes * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = nTypes * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KT_LEVEL_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* nLevelsPerType */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->nLevelsPerType; - xcb_block_len += nTypes * sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = nTypes * sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* ktLevelNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->ktLevelNames; - xcb_block_len += xcb_sumof(_aux->nLevelsPerType, nTypes) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_sumof(_aux->nLevelsPerType, nTypes) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_INDICATOR_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* indicatorNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->indicatorNames; - xcb_block_len += xcb_popcount(indicators) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(indicators) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_VIRTUAL_MOD_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* virtualModNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->virtualModNames; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(virtualMods) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GROUP_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* groups */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->groups; - xcb_block_len += xcb_popcount(groupNames) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(groupNames) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->keyNames; - xcb_block_len += nKeys * sizeof(xcb_xkb_key_name_t); - xcb_parts[xcb_parts_idx].iov_len = nKeys * sizeof(xcb_xkb_key_name_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_name_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_ALIASES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyAliases */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->keyAliases; - xcb_block_len += nKeyAliases * sizeof(xcb_xkb_key_alias_t); - xcb_parts[xcb_parts_idx].iov_len = nKeyAliases * sizeof(xcb_xkb_key_alias_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_alias_t); - } - if(which & XCB_XKB_NAME_DETAIL_RG_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* radioGroupNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->radioGroupNames; - xcb_block_len += nRadioGroups * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = nRadioGroups * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; ikeycodesName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GEOMETRY) { - /* xcb_xkb_set_names_values_t.geometryName */ - _aux->geometryName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_SYMBOLS) { - /* xcb_xkb_set_names_values_t.symbolsName */ - _aux->symbolsName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_PHYS_SYMBOLS) { - /* xcb_xkb_set_names_values_t.physSymbolsName */ - _aux->physSymbolsName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_TYPES) { - /* xcb_xkb_set_names_values_t.typesName */ - _aux->typesName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_COMPAT) { - /* xcb_xkb_set_names_values_t.compatName */ - _aux->compatName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_TYPE_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* typeNames */ - _aux->typeNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += nTypes * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KT_LEVEL_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* nLevelsPerType */ - _aux->nLevelsPerType = (uint8_t *)xcb_tmp; - xcb_block_len += nTypes * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* ktLevelNames */ - _aux->ktLevelNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_sumof(_aux->nLevelsPerType, nTypes) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_INDICATOR_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* indicatorNames */ - _aux->indicatorNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_popcount(indicators) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_VIRTUAL_MOD_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* virtualModNames */ - _aux->virtualModNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GROUP_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* groups */ - _aux->groups = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_popcount(groupNames) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyNames */ - _aux->keyNames = (xcb_xkb_key_name_t *)xcb_tmp; - xcb_block_len += nKeys * sizeof(xcb_xkb_key_name_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_name_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_ALIASES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyAliases */ - _aux->keyAliases = (xcb_xkb_key_alias_t *)xcb_tmp; - xcb_block_len += nKeyAliases * sizeof(xcb_xkb_key_alias_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_alias_t); - } - if(which & XCB_XKB_NAME_DETAIL_RG_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* radioGroupNames */ - _aux->radioGroupNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += nRadioGroups * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_xkb_set_names_values_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */) -{ - xcb_xkb_set_names_values_t _aux; - return xcb_xkb_set_names_values_unpack(_buffer, nTypes, indicators, virtualMods, groupNames, nKeys, nKeyAliases, nRadioGroups, which, &_aux); -} - -xcb_void_cookie_t -xcb_xkb_set_names_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t virtualMods /**< */, - uint32_t which /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - uint8_t firstKTLevelt /**< */, - uint8_t nKTLevels /**< */, - uint32_t indicators /**< */, - uint8_t groupNames /**< */, - uint8_t nRadioGroups /**< */, - xcb_keycode_t firstKey /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint16_t totalKTLevelNames /**< */, - const void *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_NAMES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_names_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.virtualMods = virtualMods; - xcb_out.which = which; - xcb_out.firstType = firstType; - xcb_out.nTypes = nTypes; - xcb_out.firstKTLevelt = firstKTLevelt; - xcb_out.nKTLevels = nKTLevels; - xcb_out.indicators = indicators; - xcb_out.groupNames = groupNames; - xcb_out.nRadioGroups = nRadioGroups; - xcb_out.firstKey = firstKey; - xcb_out.nKeys = nKeys; - xcb_out.nKeyAliases = nKeyAliases; - xcb_out.pad0 = 0; - xcb_out.totalKTLevelNames = totalKTLevelNames; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_set_names_values_t values */ - xcb_parts[4].iov_base = (char *) values; - xcb_parts[4].iov_len = - xcb_xkb_set_names_values_sizeof (values, nTypes, indicators, virtualMods, groupNames, nKeys, nKeyAliases, nRadioGroups, which); - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_set_names (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t virtualMods /**< */, - uint32_t which /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - uint8_t firstKTLevelt /**< */, - uint8_t nKTLevels /**< */, - uint32_t indicators /**< */, - uint8_t groupNames /**< */, - uint8_t nRadioGroups /**< */, - xcb_keycode_t firstKey /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint16_t totalKTLevelNames /**< */, - const void *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_NAMES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_names_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.virtualMods = virtualMods; - xcb_out.which = which; - xcb_out.firstType = firstType; - xcb_out.nTypes = nTypes; - xcb_out.firstKTLevelt = firstKTLevelt; - xcb_out.nKTLevels = nKTLevels; - xcb_out.indicators = indicators; - xcb_out.groupNames = groupNames; - xcb_out.nRadioGroups = nRadioGroups; - xcb_out.firstKey = firstKey; - xcb_out.nKeys = nKeys; - xcb_out.nKeyAliases = nKeyAliases; - xcb_out.pad0 = 0; - xcb_out.totalKTLevelNames = totalKTLevelNames; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_set_names_values_t values */ - xcb_parts[4].iov_base = (char *) values; - xcb_parts[4].iov_len = - xcb_xkb_set_names_values_sizeof (values, nTypes, indicators, virtualMods, groupNames, nKeys, nKeyAliases, nRadioGroups, which); - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_set_names_aux_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t virtualMods /**< */, - uint32_t which /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - uint8_t firstKTLevelt /**< */, - uint8_t nKTLevels /**< */, - uint32_t indicators /**< */, - uint8_t groupNames /**< */, - uint8_t nRadioGroups /**< */, - xcb_keycode_t firstKey /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint16_t totalKTLevelNames /**< */, - const xcb_xkb_set_names_values_t *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_NAMES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_names_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.virtualMods = virtualMods; - xcb_out.which = which; - xcb_out.firstType = firstType; - xcb_out.nTypes = nTypes; - xcb_out.firstKTLevelt = firstKTLevelt; - xcb_out.nKTLevels = nKTLevels; - xcb_out.indicators = indicators; - xcb_out.groupNames = groupNames; - xcb_out.nRadioGroups = nRadioGroups; - xcb_out.firstKey = firstKey; - xcb_out.nKeys = nKeys; - xcb_out.nKeyAliases = nKeyAliases; - xcb_out.pad0 = 0; - xcb_out.totalKTLevelNames = totalKTLevelNames; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_set_names_values_t values */ - xcb_parts[4].iov_len = - xcb_xkb_set_names_values_serialize (&xcb_aux0, nTypes, indicators, virtualMods, groupNames, nKeys, nKeyAliases, nRadioGroups, which, values); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xkb_set_names_aux (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t virtualMods /**< */, - uint32_t which /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - uint8_t firstKTLevelt /**< */, - uint8_t nKTLevels /**< */, - uint32_t indicators /**< */, - uint8_t groupNames /**< */, - uint8_t nRadioGroups /**< */, - xcb_keycode_t firstKey /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint16_t totalKTLevelNames /**< */, - const xcb_xkb_set_names_values_t *values /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 3, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_NAMES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[5]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_names_request_t xcb_out; - void *xcb_aux0 = 0; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.virtualMods = virtualMods; - xcb_out.which = which; - xcb_out.firstType = firstType; - xcb_out.nTypes = nTypes; - xcb_out.firstKTLevelt = firstKTLevelt; - xcb_out.nKTLevels = nKTLevels; - xcb_out.indicators = indicators; - xcb_out.groupNames = groupNames; - xcb_out.nRadioGroups = nRadioGroups; - xcb_out.firstKey = firstKey; - xcb_out.nKeys = nKeys; - xcb_out.nKeyAliases = nKeyAliases; - xcb_out.pad0 = 0; - xcb_out.totalKTLevelNames = totalKTLevelNames; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_set_names_values_t values */ - xcb_parts[4].iov_len = - xcb_xkb_set_names_values_serialize (&xcb_aux0, nTypes, indicators, virtualMods, groupNames, nKeys, nKeyAliases, nRadioGroups, which, values); - xcb_parts[4].iov_base = xcb_aux0; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - free(xcb_aux0); - return xcb_ret; -} - -xcb_xkb_per_client_flags_cookie_t -xcb_xkb_per_client_flags (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t change /**< */, - uint32_t value /**< */, - uint32_t ctrlsToChange /**< */, - uint32_t autoCtrls /**< */, - uint32_t autoCtrlsValues /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_PER_CLIENT_FLAGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_per_client_flags_cookie_t xcb_ret; - xcb_xkb_per_client_flags_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - xcb_out.change = change; - xcb_out.value = value; - xcb_out.ctrlsToChange = ctrlsToChange; - xcb_out.autoCtrls = autoCtrls; - xcb_out.autoCtrlsValues = autoCtrlsValues; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_per_client_flags_cookie_t -xcb_xkb_per_client_flags_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t change /**< */, - uint32_t value /**< */, - uint32_t ctrlsToChange /**< */, - uint32_t autoCtrls /**< */, - uint32_t autoCtrlsValues /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_PER_CLIENT_FLAGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_per_client_flags_cookie_t xcb_ret; - xcb_xkb_per_client_flags_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - memset(xcb_out.pad0, 0, 2); - xcb_out.change = change; - xcb_out.value = value; - xcb_out.ctrlsToChange = ctrlsToChange; - xcb_out.autoCtrls = autoCtrls; - xcb_out.autoCtrlsValues = autoCtrlsValues; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_per_client_flags_reply_t * -xcb_xkb_per_client_flags_reply (xcb_connection_t *c /**< */, - xcb_xkb_per_client_flags_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_per_client_flags_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xkb_list_components_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_list_components_reply_t *_aux = (xcb_xkb_list_components_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_xkb_list_components_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keymaps */ - for(i=0; i<_aux->nKeymaps; i++) { - xcb_tmp_len = xcb_xkb_listing_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xkb_listing_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keycodes */ - for(i=0; i<_aux->nKeycodes; i++) { - xcb_tmp_len = xcb_xkb_listing_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xkb_listing_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* types */ - for(i=0; i<_aux->nTypes; i++) { - xcb_tmp_len = xcb_xkb_listing_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xkb_listing_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* compatMaps */ - for(i=0; i<_aux->nCompatMaps; i++) { - xcb_tmp_len = xcb_xkb_listing_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xkb_listing_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* symbols */ - for(i=0; i<_aux->nSymbols; i++) { - xcb_tmp_len = xcb_xkb_listing_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xkb_listing_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* geometries */ - for(i=0; i<_aux->nGeometries; i++) { - xcb_tmp_len = xcb_xkb_listing_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xkb_listing_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xkb_list_components_cookie_t -xcb_xkb_list_components (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t maxNames /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_LIST_COMPONENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_list_components_cookie_t xcb_ret; - xcb_xkb_list_components_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.maxNames = maxNames; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_list_components_cookie_t -xcb_xkb_list_components_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t maxNames /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_LIST_COMPONENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_list_components_cookie_t xcb_ret; - xcb_xkb_list_components_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.maxNames = maxNames; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xkb_list_components_keymaps_length (const xcb_xkb_list_components_reply_t *R /**< */) -{ - return R->nKeymaps; -} - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_keymaps_iterator (const xcb_xkb_list_components_reply_t *R /**< */) -{ - xcb_xkb_listing_iterator_t i; - i.data = (xcb_xkb_listing_t *) (R + 1); - i.rem = R->nKeymaps; - i.index = (char *) i.data - (char *) R; - return i; -} - -int -xcb_xkb_list_components_keycodes_length (const xcb_xkb_list_components_reply_t *R /**< */) -{ - return R->nKeycodes; -} - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_keycodes_iterator (const xcb_xkb_list_components_reply_t *R /**< */) -{ - xcb_xkb_listing_iterator_t i; - xcb_generic_iterator_t prev = xcb_xkb_listing_end(xcb_xkb_list_components_keymaps_iterator(R)); - i.data = (xcb_xkb_listing_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_listing_t, prev.index)); - i.rem = R->nKeycodes; - i.index = (char *) i.data - (char *) R; - return i; -} - -int -xcb_xkb_list_components_types_length (const xcb_xkb_list_components_reply_t *R /**< */) -{ - return R->nTypes; -} - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_types_iterator (const xcb_xkb_list_components_reply_t *R /**< */) -{ - xcb_xkb_listing_iterator_t i; - xcb_generic_iterator_t prev = xcb_xkb_listing_end(xcb_xkb_list_components_keycodes_iterator(R)); - i.data = (xcb_xkb_listing_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_listing_t, prev.index)); - i.rem = R->nTypes; - i.index = (char *) i.data - (char *) R; - return i; -} - -int -xcb_xkb_list_components_compat_maps_length (const xcb_xkb_list_components_reply_t *R /**< */) -{ - return R->nCompatMaps; -} - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_compat_maps_iterator (const xcb_xkb_list_components_reply_t *R /**< */) -{ - xcb_xkb_listing_iterator_t i; - xcb_generic_iterator_t prev = xcb_xkb_listing_end(xcb_xkb_list_components_types_iterator(R)); - i.data = (xcb_xkb_listing_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_listing_t, prev.index)); - i.rem = R->nCompatMaps; - i.index = (char *) i.data - (char *) R; - return i; -} - -int -xcb_xkb_list_components_symbols_length (const xcb_xkb_list_components_reply_t *R /**< */) -{ - return R->nSymbols; -} - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_symbols_iterator (const xcb_xkb_list_components_reply_t *R /**< */) -{ - xcb_xkb_listing_iterator_t i; - xcb_generic_iterator_t prev = xcb_xkb_listing_end(xcb_xkb_list_components_compat_maps_iterator(R)); - i.data = (xcb_xkb_listing_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_listing_t, prev.index)); - i.rem = R->nSymbols; - i.index = (char *) i.data - (char *) R; - return i; -} - -int -xcb_xkb_list_components_geometries_length (const xcb_xkb_list_components_reply_t *R /**< */) -{ - return R->nGeometries; -} - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_geometries_iterator (const xcb_xkb_list_components_reply_t *R /**< */) -{ - xcb_xkb_listing_iterator_t i; - xcb_generic_iterator_t prev = xcb_xkb_listing_end(xcb_xkb_list_components_symbols_iterator(R)); - i.data = (xcb_xkb_listing_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_listing_t, prev.index)); - i.rem = R->nGeometries; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xkb_list_components_reply_t * -xcb_xkb_list_components_reply (xcb_connection_t *c /**< */, - xcb_xkb_list_components_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_list_components_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xkb_get_kbd_by_name_replies_types_map_types_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.nTypes; -} - -xcb_xkb_key_type_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_types_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_key_type_iterator_t i; - i.data = /* replies */ S->types.map.types_rtrn; - i.rem = /* replies */ S->types.nTypes; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_xkb_get_kbd_by_name_replies_types_map_syms_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.nKeySyms; -} - -xcb_xkb_key_sym_map_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_syms_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_key_sym_map_iterator_t i; - i.data = /* replies */ S->types.map.syms_rtrn; - i.rem = /* replies */ S->types.nKeySyms; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint8_t * -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_count (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.map.acts_rtrn_count; -} - -int -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_count_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.nKeyActions; -} - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_count_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* replies */ S->types.map.acts_rtrn_count + /* replies */ S->types.nKeyActions; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_action_t * -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_acts (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.map.acts_rtrn_acts; -} - -int -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_acts_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.totalActions; -} - -xcb_xkb_action_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_acts_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_action_iterator_t i; - i.data = /* replies */ S->types.map.acts_rtrn_acts; - i.rem = /* replies */ S->types.totalActions; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_set_behavior_t * -xcb_xkb_get_kbd_by_name_replies_types_map_behaviors_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.map.behaviors_rtrn; -} - -int -xcb_xkb_get_kbd_by_name_replies_types_map_behaviors_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.totalKeyBehaviors; -} - -xcb_xkb_set_behavior_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_behaviors_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_set_behavior_iterator_t i; - i.data = /* replies */ S->types.map.behaviors_rtrn; - i.rem = /* replies */ S->types.totalKeyBehaviors; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint8_t * -xcb_xkb_get_kbd_by_name_replies_types_map_vmods_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.map.vmods_rtrn; -} - -int -xcb_xkb_get_kbd_by_name_replies_types_map_vmods_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return xcb_popcount(/* replies */ S->types.virtualMods); -} - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_vmods_rtrn_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* replies */ S->types.map.vmods_rtrn + xcb_popcount(/* replies */ S->types.virtualMods); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_set_explicit_t * -xcb_xkb_get_kbd_by_name_replies_types_map_explicit_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.map.explicit_rtrn; -} - -int -xcb_xkb_get_kbd_by_name_replies_types_map_explicit_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.totalKeyExplicit; -} - -xcb_xkb_set_explicit_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_explicit_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_set_explicit_iterator_t i; - i.data = /* replies */ S->types.map.explicit_rtrn; - i.rem = /* replies */ S->types.totalKeyExplicit; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_mod_map_t * -xcb_xkb_get_kbd_by_name_replies_types_map_modmap_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.map.modmap_rtrn; -} - -int -xcb_xkb_get_kbd_by_name_replies_types_map_modmap_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.totalModMapKeys; -} - -xcb_xkb_key_mod_map_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_modmap_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_key_mod_map_iterator_t i; - i.data = /* replies */ S->types.map.modmap_rtrn; - i.rem = /* replies */ S->types.totalModMapKeys; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_v_mod_map_t * -xcb_xkb_get_kbd_by_name_replies_types_map_vmodmap_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.map.vmodmap_rtrn; -} - -int -xcb_xkb_get_kbd_by_name_replies_types_map_vmodmap_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->types.totalVModMapKeys; -} - -xcb_xkb_key_v_mod_map_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_vmodmap_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_key_v_mod_map_iterator_t i; - i.data = /* replies */ S->types.map.vmodmap_rtrn; - i.rem = /* replies */ S->types.totalVModMapKeys; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_xkb_get_kbd_by_name_replies_types_map_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */, - const xcb_xkb_get_kbd_by_name_replies_types_map_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[19]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(present & XCB_XKB_MAP_PART_KEY_TYPES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* types_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->types_rtrn; - xcb_parts[xcb_parts_idx].iov_len = 0; - xcb_tmp = (char *) _aux->types_rtrn; - for(i=0; isyms_rtrn; - xcb_parts[xcb_parts_idx].iov_len = 0; - xcb_tmp = (char *) _aux->syms_rtrn; - for(i=0; iacts_rtrn_count; - xcb_block_len += nKeyActions * sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = nKeyActions * sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* acts_rtrn_acts */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->acts_rtrn_acts; - xcb_block_len += totalActions * sizeof(xcb_xkb_action_t); - xcb_parts[xcb_parts_idx].iov_len = totalActions * sizeof(xcb_xkb_action_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_action_t); - } - if(present & XCB_XKB_MAP_PART_KEY_BEHAVIORS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* behaviors_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->behaviors_rtrn; - xcb_block_len += totalKeyBehaviors * sizeof(xcb_xkb_set_behavior_t); - xcb_parts[xcb_parts_idx].iov_len = totalKeyBehaviors * sizeof(xcb_xkb_set_behavior_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_set_behavior_t); - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MODS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmods_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->vmods_rtrn; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(virtualMods) * sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - } - if(present & XCB_XKB_MAP_PART_EXPLICIT_COMPONENTS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* explicit_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->explicit_rtrn; - xcb_block_len += totalKeyExplicit * sizeof(xcb_xkb_set_explicit_t); - xcb_parts[xcb_parts_idx].iov_len = totalKeyExplicit * sizeof(xcb_xkb_set_explicit_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_set_explicit_t); - } - if(present & XCB_XKB_MAP_PART_MODIFIER_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* modmap_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->modmap_rtrn; - xcb_block_len += totalModMapKeys * sizeof(xcb_xkb_key_mod_map_t); - xcb_parts[xcb_parts_idx].iov_len = totalModMapKeys * sizeof(xcb_xkb_key_mod_map_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_mod_map_t); - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmodmap_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->vmodmap_rtrn; - xcb_block_len += totalVModMapKeys * sizeof(xcb_xkb_key_v_mod_map_t); - xcb_parts[xcb_parts_idx].iov_len = totalVModMapKeys * sizeof(xcb_xkb_key_v_mod_map_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_v_mod_map_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; itypes_rtrn = (xcb_xkb_key_type_t *)xcb_tmp; - for(i=0; isyms_rtrn = (xcb_xkb_key_sym_map_t *)xcb_tmp; - for(i=0; iacts_rtrn_count = (uint8_t *)xcb_tmp; - xcb_block_len += nKeyActions * sizeof(xcb_keycode_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* acts_rtrn_acts */ - _aux->acts_rtrn_acts = (xcb_xkb_action_t *)xcb_tmp; - xcb_block_len += totalActions * sizeof(xcb_xkb_action_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_action_t); - } - if(present & XCB_XKB_MAP_PART_KEY_BEHAVIORS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* behaviors_rtrn */ - _aux->behaviors_rtrn = (xcb_xkb_set_behavior_t *)xcb_tmp; - xcb_block_len += totalKeyBehaviors * sizeof(xcb_xkb_set_behavior_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_set_behavior_t); - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MODS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmods_rtrn */ - _aux->vmods_rtrn = (uint8_t *)xcb_tmp; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_keycode_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - } - if(present & XCB_XKB_MAP_PART_EXPLICIT_COMPONENTS) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* explicit_rtrn */ - _aux->explicit_rtrn = (xcb_xkb_set_explicit_t *)xcb_tmp; - xcb_block_len += totalKeyExplicit * sizeof(xcb_xkb_set_explicit_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_set_explicit_t); - } - if(present & XCB_XKB_MAP_PART_MODIFIER_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* modmap_rtrn */ - _aux->modmap_rtrn = (xcb_xkb_key_mod_map_t *)xcb_tmp; - xcb_block_len += totalModMapKeys * sizeof(xcb_xkb_key_mod_map_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_mod_map_t); - } - if(present & XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* vmodmap_rtrn */ - _aux->vmodmap_rtrn = (xcb_xkb_key_v_mod_map_t *)xcb_tmp; - xcb_block_len += totalVModMapKeys * sizeof(xcb_xkb_key_v_mod_map_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_v_mod_map_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_xkb_get_kbd_by_name_replies_types_map_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */) -{ - xcb_xkb_get_kbd_by_name_replies_types_map_t _aux; - return xcb_xkb_get_kbd_by_name_replies_types_map_unpack(_buffer, nTypes, nKeySyms, nKeyActions, totalActions, totalKeyBehaviors, virtualMods, totalKeyExplicit, totalModMapKeys, totalVModMapKeys, present, &_aux); -} - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_type_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.valueList.typeNames; -} - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_type_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.nTypes; -} - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_type_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* replies */ S->key_names.valueList.typeNames + /* replies */ S->key_names.nTypes; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -uint8_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_n_levels_per_type (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.valueList.nLevelsPerType; -} - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_n_levels_per_type_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.nTypes; -} - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_n_levels_per_type_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* replies */ S->key_names.valueList.nLevelsPerType + /* replies */ S->key_names.nTypes; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_kt_level_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.valueList.ktLevelNames; -} - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_kt_level_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return xcb_sumof(/* replies */ S->key_names.valueList.nLevelsPerType, /* replies */ S->key_names.nTypes); -} - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_kt_level_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* replies */ S->key_names.valueList.ktLevelNames + xcb_sumof(/* replies */ S->key_names.valueList.nLevelsPerType, /* replies */ S->key_names.nTypes); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_indicator_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.valueList.indicatorNames; -} - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_indicator_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return xcb_popcount(/* replies */ S->key_names.indicators); -} - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_indicator_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* replies */ S->key_names.valueList.indicatorNames + xcb_popcount(/* replies */ S->key_names.indicators); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_virtual_mod_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.valueList.virtualModNames; -} - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_virtual_mod_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return xcb_popcount(/* replies */ S->key_names.virtualMods); -} - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_virtual_mod_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* replies */ S->key_names.valueList.virtualModNames + xcb_popcount(/* replies */ S->key_names.virtualMods); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_groups (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.valueList.groups; -} - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_groups_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return xcb_popcount(/* replies */ S->key_names.groupNames); -} - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_groups_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* replies */ S->key_names.valueList.groups + xcb_popcount(/* replies */ S->key_names.groupNames); - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_name_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.valueList.keyNames; -} - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.nKeys; -} - -xcb_xkb_key_name_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_names_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_key_name_iterator_t i; - i.data = /* replies */ S->key_names.valueList.keyNames; - i.rem = /* replies */ S->key_names.nKeys; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_key_alias_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_aliases (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.valueList.keyAliases; -} - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_aliases_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.nKeyAliases; -} - -xcb_xkb_key_alias_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_aliases_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_key_alias_iterator_t i; - i.data = /* replies */ S->key_names.valueList.keyAliases; - i.rem = /* replies */ S->key_names.nKeyAliases; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_radio_group_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.valueList.radioGroupNames; -} - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_radio_group_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->key_names.nRadioGroups; -} - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_radio_group_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_generic_iterator_t i; - i.data = /* replies */ S->key_names.valueList.radioGroupNames + /* replies */ S->key_names.nRadioGroups; - i.rem = 0; - i.index = (char *) i.data - (char *) S; - return i; -} - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */, - const xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[25]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if(which & XCB_XKB_NAME_DETAIL_KEYCODES) { - /* xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t.keycodesName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->keycodesName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GEOMETRY) { - /* xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t.geometryName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometryName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_SYMBOLS) { - /* xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t.symbolsName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->symbolsName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_PHYS_SYMBOLS) { - /* xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t.physSymbolsName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->physSymbolsName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_TYPES) { - /* xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t.typesName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->typesName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_COMPAT) { - /* xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t.compatName */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compatName; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_TYPE_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* typeNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->typeNames; - xcb_block_len += nTypes * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = nTypes * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KT_LEVEL_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* nLevelsPerType */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->nLevelsPerType; - xcb_block_len += nTypes * sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = nTypes * sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* ktLevelNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->ktLevelNames; - xcb_block_len += xcb_sumof(_aux->nLevelsPerType, nTypes) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_sumof(_aux->nLevelsPerType, nTypes) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_INDICATOR_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* indicatorNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->indicatorNames; - xcb_block_len += xcb_popcount(indicators) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(indicators) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_VIRTUAL_MOD_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* virtualModNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->virtualModNames; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(virtualMods) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GROUP_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* groups */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->groups; - xcb_block_len += xcb_popcount(groupNames) * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(groupNames) * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->keyNames; - xcb_block_len += nKeys * sizeof(xcb_xkb_key_name_t); - xcb_parts[xcb_parts_idx].iov_len = nKeys * sizeof(xcb_xkb_key_name_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_name_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_ALIASES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyAliases */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->keyAliases; - xcb_block_len += nKeyAliases * sizeof(xcb_xkb_key_alias_t); - xcb_parts[xcb_parts_idx].iov_len = nKeyAliases * sizeof(xcb_xkb_key_alias_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_key_alias_t); - } - if(which & XCB_XKB_NAME_DETAIL_RG_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* radioGroupNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->radioGroupNames; - xcb_block_len += nRadioGroups * sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = nRadioGroups * sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; ikeycodesName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GEOMETRY) { - /* xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t.geometryName */ - _aux->geometryName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_SYMBOLS) { - /* xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t.symbolsName */ - _aux->symbolsName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_PHYS_SYMBOLS) { - /* xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t.physSymbolsName */ - _aux->physSymbolsName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_TYPES) { - /* xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t.typesName */ - _aux->typesName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_COMPAT) { - /* xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t.compatName */ - _aux->compatName = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_TYPE_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* typeNames */ - _aux->typeNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += nTypes * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KT_LEVEL_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* nLevelsPerType */ - _aux->nLevelsPerType = (uint8_t *)xcb_tmp; - xcb_block_len += nTypes * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* ktLevelNames */ - _aux->ktLevelNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_sumof(_aux->nLevelsPerType, nTypes) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_INDICATOR_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* indicatorNames */ - _aux->indicatorNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_popcount(indicators) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_VIRTUAL_MOD_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* virtualModNames */ - _aux->virtualModNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_popcount(virtualMods) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_GROUP_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* groups */ - _aux->groups = (xcb_atom_t *)xcb_tmp; - xcb_block_len += xcb_popcount(groupNames) * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyNames */ - _aux->keyNames = (xcb_xkb_key_name_t *)xcb_tmp; - xcb_block_len += nKeys * sizeof(xcb_xkb_key_name_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_name_t); - } - if(which & XCB_XKB_NAME_DETAIL_KEY_ALIASES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* keyAliases */ - _aux->keyAliases = (xcb_xkb_key_alias_t *)xcb_tmp; - xcb_block_len += nKeyAliases * sizeof(xcb_xkb_key_alias_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_key_alias_t); - } - if(which & XCB_XKB_NAME_DETAIL_RG_NAMES) { - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* radioGroupNames */ - _aux->radioGroupNames = (xcb_atom_t *)xcb_tmp; - xcb_block_len += nRadioGroups * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */) -{ - xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t _aux; - return xcb_xkb_get_kbd_by_name_replies_key_names_value_list_unpack(_buffer, nTypes, indicators, virtualMods, groupNames, nKeys, nKeyAliases, nRadioGroups, which, &_aux); -} - -xcb_xkb_get_kbd_by_name_replies_types_map_t * -xcb_xkb_get_kbd_by_name_replies_types_map (const xcb_xkb_get_kbd_by_name_replies_t *R /**< */) -{ - return (xcb_xkb_get_kbd_by_name_replies_types_map_t *) (R + 1); -} - -xcb_xkb_sym_interpret_t * -xcb_xkb_get_kbd_by_name_replies_compat_map_si_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->compat_map.si_rtrn; -} - -int -xcb_xkb_get_kbd_by_name_replies_compat_map_si_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->compat_map.nSIRtrn; -} - -xcb_xkb_sym_interpret_iterator_t -xcb_xkb_get_kbd_by_name_replies_compat_map_si_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_sym_interpret_iterator_t i; - i.data = /* replies */ S->compat_map.si_rtrn; - i.rem = /* replies */ S->compat_map.nSIRtrn; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_mod_def_t * -xcb_xkb_get_kbd_by_name_replies_compat_map_group_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->compat_map.group_rtrn; -} - -int -xcb_xkb_get_kbd_by_name_replies_compat_map_group_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return xcb_popcount(/* replies */ S->compat_map.groupsRtrn); -} - -xcb_xkb_mod_def_iterator_t -xcb_xkb_get_kbd_by_name_replies_compat_map_group_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_mod_def_iterator_t i; - i.data = /* replies */ S->compat_map.group_rtrn; - i.rem = xcb_popcount(/* replies */ S->compat_map.groupsRtrn); - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_indicator_map_t * -xcb_xkb_get_kbd_by_name_replies_indicator_maps_maps (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->indicator_maps.maps; -} - -int -xcb_xkb_get_kbd_by_name_replies_indicator_maps_maps_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - return /* replies */ S->indicator_maps.nIndicators; -} - -xcb_xkb_indicator_map_iterator_t -xcb_xkb_get_kbd_by_name_replies_indicator_maps_maps_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */) -{ - xcb_xkb_indicator_map_iterator_t i; - i.data = /* replies */ S->indicator_maps.maps; - i.rem = /* replies */ S->indicator_maps.nIndicators; - i.index = (char *) i.data - (char *) S; - return i; -} - -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list (const xcb_xkb_get_kbd_by_name_replies_t *R /**< */) -{ - return (xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t *) (R + 1); -} - -xcb_xkb_counted_string_16_t * -xcb_xkb_get_kbd_by_name_replies_geometry_label_font (const xcb_xkb_get_kbd_by_name_replies_t *R /**< */) -{ - return (xcb_xkb_counted_string_16_t *) (R + 1); -} - -int -xcb_xkb_get_kbd_by_name_replies_serialize (void **_buffer /**< */, - uint16_t reported /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *_aux /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[96]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - if((reported & XCB_XKB_GBN_DETAIL_TYPES) || - (reported & XCB_XKB_GBN_DETAIL_CLIENT_SYMBOLS) || - (reported & XCB_XKB_GBN_DETAIL_SERVER_SYMBOLS)) { - /* xcb_xkb_get_kbd_by_name_replies_t.types.getmap_type */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.getmap_type; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.typeDeviceID */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.typeDeviceID; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.getmap_sequence */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.getmap_sequence; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.getmap_length */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.getmap_length; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.pad1 */ - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_block_len += sizeof(uint8_t)*2; - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t)*2; - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.typeMinKeyCode */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.typeMinKeyCode; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.typeMaxKeyCode */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.typeMaxKeyCode; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.present */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.present; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstType */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.firstType; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nTypes */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.nTypes; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalTypes */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.totalTypes; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstKeySym */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.firstKeySym; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalSyms */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.totalSyms; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nKeySyms */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.nKeySyms; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstKeyAction */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.firstKeyAction; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalActions */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.totalActions; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nKeyActions */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.nKeyActions; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstKeyBehavior */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.firstKeyBehavior; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nKeyBehaviors */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.nKeyBehaviors; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalKeyBehaviors */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.totalKeyBehaviors; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstKeyExplicit */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.firstKeyExplicit; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nKeyExplicit */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.nKeyExplicit; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalKeyExplicit */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.totalKeyExplicit; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstModMapKey */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.firstModMapKey; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nModMapKeys */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.nModMapKeys; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalModMapKeys */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.totalModMapKeys; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstVModMapKey */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.firstVModMapKey; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nVModMapKeys */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.nVModMapKeys; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalVModMapKeys */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.totalVModMapKeys; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.pad2 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &xcb_pad; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.virtualMods */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->types.virtualMods; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* map */ - xcb_parts[xcb_parts_idx].iov_base = (char *)0; - xcb_block_len += xcb_xkb_get_kbd_by_name_replies_types_map_serialize(&xcb_parts[xcb_parts_idx].iov_base, _aux->types.nTypes, _aux->types.nKeySyms, _aux->types.nKeyActions, _aux->types.totalActions, _aux->types.totalKeyBehaviors, _aux->types.virtualMods, _aux->types.totalKeyExplicit, _aux->types.totalModMapKeys, _aux->types.totalVModMapKeys, _aux->types.present, &_aux->types.map); - xcb_parts[xcb_parts_idx].iov_len = xcb_xkb_get_kbd_by_name_replies_types_map_serialize(&xcb_parts[xcb_parts_idx].iov_base, _aux->types.nTypes, _aux->types.nKeySyms, _aux->types.nKeyActions, _aux->types.totalActions, _aux->types.totalKeyBehaviors, _aux->types.virtualMods, _aux->types.totalKeyExplicit, _aux->types.totalModMapKeys, _aux->types.totalVModMapKeys, _aux->types.present, &_aux->types.map); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_get_kbd_by_name_replies_types_map_t); - } - if(reported & XCB_XKB_GBN_DETAIL_COMPAT_MAP) { - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.compatmap_type */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compat_map.compatmap_type; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.compatDeviceID */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compat_map.compatDeviceID; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.compatmap_sequence */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compat_map.compatmap_sequence; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.compatmap_length */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compat_map.compatmap_length; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.groupsRtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compat_map.groupsRtrn; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.pad3 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &xcb_pad; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.firstSIRtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compat_map.firstSIRtrn; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.nSIRtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compat_map.nSIRtrn; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.nTotalSI */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->compat_map.nTotalSI; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.pad4 */ - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_block_len += sizeof(uint8_t)*16; - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t)*16; - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* si_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->compat_map.si_rtrn; - xcb_block_len += _aux->compat_map.nSIRtrn * sizeof(xcb_xkb_sym_interpret_t); - xcb_parts[xcb_parts_idx].iov_len = _aux->compat_map.nSIRtrn * sizeof(xcb_xkb_sym_interpret_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_sym_interpret_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* group_rtrn */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->compat_map.group_rtrn; - xcb_block_len += xcb_popcount(_aux->compat_map.groupsRtrn) * sizeof(xcb_xkb_mod_def_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(_aux->compat_map.groupsRtrn) * sizeof(xcb_xkb_mod_def_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_mod_def_t); - } - if(reported & XCB_XKB_GBN_DETAIL_INDICATOR_MAPS) { - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.indicatormap_type */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->indicator_maps.indicatormap_type; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.indicatorDeviceID */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->indicator_maps.indicatorDeviceID; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.indicatormap_sequence */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->indicator_maps.indicatormap_sequence; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.indicatormap_length */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->indicator_maps.indicatormap_length; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.which */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->indicator_maps.which; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.realIndicators */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->indicator_maps.realIndicators; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.nIndicators */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->indicator_maps.nIndicators; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.pad5 */ - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_block_len += sizeof(uint8_t)*15; - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t)*15; - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* maps */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->indicator_maps.maps; - xcb_block_len += _aux->indicator_maps.nIndicators * sizeof(xcb_xkb_indicator_map_t); - xcb_parts[xcb_parts_idx].iov_len = _aux->indicator_maps.nIndicators * sizeof(xcb_xkb_indicator_map_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_indicator_map_t); - } - if((reported & XCB_XKB_GBN_DETAIL_KEY_NAMES) || - (reported & XCB_XKB_GBN_DETAIL_OTHER_NAMES)) { - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyname_type */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.keyname_type; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyDeviceID */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.keyDeviceID; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyname_sequence */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.keyname_sequence; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyname_length */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.keyname_length; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.which */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.which; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyMinKeyCode */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.keyMinKeyCode; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyMaxKeyCode */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.keyMaxKeyCode; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.nTypes */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.nTypes; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.groupNames */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.groupNames; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.virtualMods */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.virtualMods; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.firstKey */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.firstKey; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_keycode_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.nKeys */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.nKeys; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.indicators */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.indicators; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.nRadioGroups */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.nRadioGroups; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.nKeyAliases */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.nKeyAliases; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.nKTLevels */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->key_names.nKTLevels; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.pad6 */ - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_block_len += sizeof(uint8_t)*4; - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t)*4; - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* valueList */ - xcb_parts[xcb_parts_idx].iov_base = (char *)0; - xcb_block_len += xcb_xkb_get_kbd_by_name_replies_key_names_value_list_serialize(&xcb_parts[xcb_parts_idx].iov_base, _aux->key_names.nTypes, _aux->key_names.indicators, _aux->key_names.virtualMods, _aux->key_names.groupNames, _aux->key_names.nKeys, _aux->key_names.nKeyAliases, _aux->key_names.nRadioGroups, _aux->key_names.which, &_aux->key_names.valueList); - xcb_parts[xcb_parts_idx].iov_len = xcb_xkb_get_kbd_by_name_replies_key_names_value_list_serialize(&xcb_parts[xcb_parts_idx].iov_base, _aux->key_names.nTypes, _aux->key_names.indicators, _aux->key_names.virtualMods, _aux->key_names.groupNames, _aux->key_names.nKeys, _aux->key_names.nKeyAliases, _aux->key_names.nRadioGroups, _aux->key_names.which, &_aux->key_names.valueList); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t); - } - if(reported & XCB_XKB_GBN_DETAIL_GEOMETRY) { - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.geometry_type */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.geometry_type; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.geometryDeviceID */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.geometryDeviceID; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.geometry_sequence */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.geometry_sequence; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.geometry_length */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.geometry_length; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.name */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.name; - xcb_block_len += sizeof(xcb_atom_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(xcb_atom_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_atom_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.geometryFound */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.geometryFound; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.pad7 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &xcb_pad; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.widthMM */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.widthMM; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.heightMM */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.heightMM; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nProperties */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.nProperties; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nColors */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.nColors; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nShapes */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.nShapes; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nSections */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.nSections; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nDoodads */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.nDoodads; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nKeyAliases */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.nKeyAliases; - xcb_block_len += sizeof(uint16_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint16_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.baseColorNdx */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.baseColorNdx; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.labelColorNdx */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->geometry.labelColorNdx; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - /* labelFont */ - xcb_parts[xcb_parts_idx].iov_base = (char *) _aux->geometry.labelFont; - xcb_block_len += xcb_xkb_counted_string_16_sizeof(_aux->geometry.labelFont); - xcb_parts[xcb_parts_idx].iov_len = xcb_xkb_counted_string_16_sizeof(_aux->geometry.labelFont); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_xkb_counted_string_16_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; itypes.getmap_type = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.typeDeviceID */ - _aux->types.typeDeviceID = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.getmap_sequence */ - _aux->types.getmap_sequence = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.getmap_length */ - _aux->types.getmap_length = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.pad1 */ - _aux->types.pad1[0] = *(uint8_t *)xcb_tmp; - _aux->types.pad1[1] = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t) * 2; - xcb_tmp += sizeof(uint8_t) * 2; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.typeMinKeyCode */ - _aux->types.typeMinKeyCode = *(xcb_keycode_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_tmp += sizeof(xcb_keycode_t); - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.typeMaxKeyCode */ - _aux->types.typeMaxKeyCode = *(xcb_keycode_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_tmp += sizeof(xcb_keycode_t); - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.present */ - _aux->types.present = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstType */ - _aux->types.firstType = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nTypes */ - _aux->types.nTypes = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalTypes */ - _aux->types.totalTypes = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstKeySym */ - _aux->types.firstKeySym = *(xcb_keycode_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_tmp += sizeof(xcb_keycode_t); - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalSyms */ - _aux->types.totalSyms = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nKeySyms */ - _aux->types.nKeySyms = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstKeyAction */ - _aux->types.firstKeyAction = *(xcb_keycode_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_tmp += sizeof(xcb_keycode_t); - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalActions */ - _aux->types.totalActions = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nKeyActions */ - _aux->types.nKeyActions = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstKeyBehavior */ - _aux->types.firstKeyBehavior = *(xcb_keycode_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_tmp += sizeof(xcb_keycode_t); - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nKeyBehaviors */ - _aux->types.nKeyBehaviors = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalKeyBehaviors */ - _aux->types.totalKeyBehaviors = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstKeyExplicit */ - _aux->types.firstKeyExplicit = *(xcb_keycode_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_tmp += sizeof(xcb_keycode_t); - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nKeyExplicit */ - _aux->types.nKeyExplicit = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalKeyExplicit */ - _aux->types.totalKeyExplicit = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstModMapKey */ - _aux->types.firstModMapKey = *(xcb_keycode_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_tmp += sizeof(xcb_keycode_t); - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nModMapKeys */ - _aux->types.nModMapKeys = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalModMapKeys */ - _aux->types.totalModMapKeys = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.firstVModMapKey */ - _aux->types.firstVModMapKey = *(xcb_keycode_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_tmp += sizeof(xcb_keycode_t); - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.nVModMapKeys */ - _aux->types.nVModMapKeys = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.totalVModMapKeys */ - _aux->types.totalVModMapKeys = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.pad2 */ - _aux->types.pad2 = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.types.virtualMods */ - _aux->types.virtualMods = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* map */ - xcb_block_len += xcb_xkb_get_kbd_by_name_replies_types_map_unpack(xcb_tmp, _aux->types.nTypes, _aux->types.nKeySyms, _aux->types.nKeyActions, _aux->types.totalActions, _aux->types.totalKeyBehaviors, _aux->types.virtualMods, _aux->types.totalKeyExplicit, _aux->types.totalModMapKeys, _aux->types.totalVModMapKeys, _aux->types.present, &_aux->types.map); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_get_kbd_by_name_replies_types_map_t); - } - if(reported & XCB_XKB_GBN_DETAIL_COMPAT_MAP) { - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.compatmap_type */ - _aux->compat_map.compatmap_type = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.compatDeviceID */ - _aux->compat_map.compatDeviceID = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.compatmap_sequence */ - _aux->compat_map.compatmap_sequence = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.compatmap_length */ - _aux->compat_map.compatmap_length = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.groupsRtrn */ - _aux->compat_map.groupsRtrn = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.pad3 */ - _aux->compat_map.pad3 = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.firstSIRtrn */ - _aux->compat_map.firstSIRtrn = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.nSIRtrn */ - _aux->compat_map.nSIRtrn = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.nTotalSI */ - _aux->compat_map.nTotalSI = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.compat_map.pad4 */ - _aux->compat_map.pad4[0] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[1] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[2] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[3] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[4] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[5] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[6] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[7] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[8] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[9] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[10] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[11] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[12] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[13] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[14] = *(uint8_t *)xcb_tmp; - _aux->compat_map.pad4[15] = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t) * 16; - xcb_tmp += sizeof(uint8_t) * 16; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* si_rtrn */ - _aux->compat_map.si_rtrn = (xcb_xkb_sym_interpret_t *)xcb_tmp; - xcb_block_len += _aux->compat_map.nSIRtrn * sizeof(xcb_xkb_sym_interpret_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_sym_interpret_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* group_rtrn */ - _aux->compat_map.group_rtrn = (xcb_xkb_mod_def_t *)xcb_tmp; - xcb_block_len += xcb_popcount(_aux->compat_map.groupsRtrn) * sizeof(xcb_xkb_mod_def_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_mod_def_t); - } - if(reported & XCB_XKB_GBN_DETAIL_INDICATOR_MAPS) { - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.indicatormap_type */ - _aux->indicator_maps.indicatormap_type = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.indicatorDeviceID */ - _aux->indicator_maps.indicatorDeviceID = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.indicatormap_sequence */ - _aux->indicator_maps.indicatormap_sequence = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.indicatormap_length */ - _aux->indicator_maps.indicatormap_length = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.which */ - _aux->indicator_maps.which = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.realIndicators */ - _aux->indicator_maps.realIndicators = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.nIndicators */ - _aux->indicator_maps.nIndicators = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.indicator_maps.pad5 */ - _aux->indicator_maps.pad5[0] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[1] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[2] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[3] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[4] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[5] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[6] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[7] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[8] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[9] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[10] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[11] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[12] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[13] = *(uint8_t *)xcb_tmp; - _aux->indicator_maps.pad5[14] = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t) * 15; - xcb_tmp += sizeof(uint8_t) * 15; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* maps */ - _aux->indicator_maps.maps = (xcb_xkb_indicator_map_t *)xcb_tmp; - xcb_block_len += _aux->indicator_maps.nIndicators * sizeof(xcb_xkb_indicator_map_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_indicator_map_t); - } - if((reported & XCB_XKB_GBN_DETAIL_KEY_NAMES) || - (reported & XCB_XKB_GBN_DETAIL_OTHER_NAMES)) { - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyname_type */ - _aux->key_names.keyname_type = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyDeviceID */ - _aux->key_names.keyDeviceID = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyname_sequence */ - _aux->key_names.keyname_sequence = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyname_length */ - _aux->key_names.keyname_length = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.which */ - _aux->key_names.which = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyMinKeyCode */ - _aux->key_names.keyMinKeyCode = *(xcb_keycode_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_tmp += sizeof(xcb_keycode_t); - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.keyMaxKeyCode */ - _aux->key_names.keyMaxKeyCode = *(xcb_keycode_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_tmp += sizeof(xcb_keycode_t); - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.nTypes */ - _aux->key_names.nTypes = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.groupNames */ - _aux->key_names.groupNames = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.virtualMods */ - _aux->key_names.virtualMods = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.firstKey */ - _aux->key_names.firstKey = *(xcb_keycode_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_keycode_t); - xcb_tmp += sizeof(xcb_keycode_t); - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.nKeys */ - _aux->key_names.nKeys = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.indicators */ - _aux->key_names.indicators = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.nRadioGroups */ - _aux->key_names.nRadioGroups = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.nKeyAliases */ - _aux->key_names.nKeyAliases = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.nKTLevels */ - _aux->key_names.nKTLevels = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.key_names.pad6 */ - _aux->key_names.pad6[0] = *(uint8_t *)xcb_tmp; - _aux->key_names.pad6[1] = *(uint8_t *)xcb_tmp; - _aux->key_names.pad6[2] = *(uint8_t *)xcb_tmp; - _aux->key_names.pad6[3] = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t) * 4; - xcb_tmp += sizeof(uint8_t) * 4; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* valueList */ - xcb_block_len += xcb_xkb_get_kbd_by_name_replies_key_names_value_list_unpack(xcb_tmp, _aux->key_names.nTypes, _aux->key_names.indicators, _aux->key_names.virtualMods, _aux->key_names.groupNames, _aux->key_names.nKeys, _aux->key_names.nKeyAliases, _aux->key_names.nRadioGroups, _aux->key_names.which, &_aux->key_names.valueList); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t); - } - if(reported & XCB_XKB_GBN_DETAIL_GEOMETRY) { - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.geometry_type */ - _aux->geometry.geometry_type = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.geometryDeviceID */ - _aux->geometry.geometryDeviceID = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.geometry_sequence */ - _aux->geometry.geometry_sequence = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.geometry_length */ - _aux->geometry.geometry_length = *(uint32_t *)xcb_tmp; - xcb_block_len += sizeof(uint32_t); - xcb_tmp += sizeof(uint32_t); - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.name */ - _aux->geometry.name = *(xcb_atom_t *)xcb_tmp; - xcb_block_len += sizeof(xcb_atom_t); - xcb_tmp += sizeof(xcb_atom_t); - xcb_align_to = ALIGNOF(xcb_atom_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.geometryFound */ - _aux->geometry.geometryFound = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.pad7 */ - _aux->geometry.pad7 = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.widthMM */ - _aux->geometry.widthMM = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.heightMM */ - _aux->geometry.heightMM = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nProperties */ - _aux->geometry.nProperties = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nColors */ - _aux->geometry.nColors = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nShapes */ - _aux->geometry.nShapes = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nSections */ - _aux->geometry.nSections = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nDoodads */ - _aux->geometry.nDoodads = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.nKeyAliases */ - _aux->geometry.nKeyAliases = *(uint16_t *)xcb_tmp; - xcb_block_len += sizeof(uint16_t); - xcb_tmp += sizeof(uint16_t); - xcb_align_to = ALIGNOF(uint16_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.baseColorNdx */ - _aux->geometry.baseColorNdx = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_xkb_get_kbd_by_name_replies_t.geometry.labelColorNdx */ - _aux->geometry.labelColorNdx = *(uint8_t *)xcb_tmp; - xcb_block_len += sizeof(uint8_t); - xcb_tmp += sizeof(uint8_t); - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* labelFont */ - _aux->geometry.labelFont = (xcb_xkb_counted_string_16_t *)xcb_tmp; - xcb_block_len += xcb_xkb_counted_string_16_sizeof(xcb_tmp); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_counted_string_16_t); - } - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_xkb_get_kbd_by_name_replies_sizeof (const void *_buffer /**< */, - uint16_t reported /**< */) -{ - xcb_xkb_get_kbd_by_name_replies_t _aux; - return xcb_xkb_get_kbd_by_name_replies_unpack(_buffer, reported, &_aux); -} - -xcb_xkb_get_kbd_by_name_cookie_t -xcb_xkb_get_kbd_by_name (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t need /**< */, - uint16_t want /**< */, - uint8_t load /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_KBD_BY_NAME, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_kbd_by_name_cookie_t xcb_ret; - xcb_xkb_get_kbd_by_name_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.need = need; - xcb_out.want = want; - xcb_out.load = load; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_kbd_by_name_cookie_t -xcb_xkb_get_kbd_by_name_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t need /**< */, - uint16_t want /**< */, - uint8_t load /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_KBD_BY_NAME, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_kbd_by_name_cookie_t xcb_ret; - xcb_xkb_get_kbd_by_name_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.need = need; - xcb_out.want = want; - xcb_out.load = load; - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void * -xcb_xkb_get_kbd_by_name_replies (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */) -{ - return (void *) (R + 1); -} - -xcb_xkb_get_kbd_by_name_reply_t * -xcb_xkb_get_kbd_by_name_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_kbd_by_name_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_get_kbd_by_name_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xkb_get_device_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_get_device_info_reply_t *_aux = (xcb_xkb_get_device_info_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_xkb_get_device_info_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->nameLen * sizeof(xcb_xkb_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* btnActions */ - xcb_block_len += _aux->nBtnsRtrn * sizeof(xcb_xkb_action_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_action_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* leds */ - for(i=0; i<_aux->nDeviceLedFBs; i++) { - xcb_tmp_len = xcb_xkb_device_led_info_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xkb_device_led_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xkb_get_device_info_cookie_t -xcb_xkb_get_device_info (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t wanted /**< */, - uint8_t allButtons /**< */, - uint8_t firstButton /**< */, - uint8_t nButtons /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_DEVICE_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_device_info_cookie_t xcb_ret; - xcb_xkb_get_device_info_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.wanted = wanted; - xcb_out.allButtons = allButtons; - xcb_out.firstButton = firstButton; - xcb_out.nButtons = nButtons; - xcb_out.pad0 = 0; - xcb_out.ledClass = ledClass; - xcb_out.ledID = ledID; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_get_device_info_cookie_t -xcb_xkb_get_device_info_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t wanted /**< */, - uint8_t allButtons /**< */, - uint8_t firstButton /**< */, - uint8_t nButtons /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_GET_DEVICE_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xkb_get_device_info_cookie_t xcb_ret; - xcb_xkb_get_device_info_request_t xcb_out; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.wanted = wanted; - xcb_out.allButtons = allButtons; - xcb_out.firstButton = firstButton; - xcb_out.nButtons = nButtons; - xcb_out.pad0 = 0; - xcb_out.ledClass = ledClass; - xcb_out.ledID = ledID; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_string8_t * -xcb_xkb_get_device_info_name (const xcb_xkb_get_device_info_reply_t *R /**< */) -{ - return (xcb_xkb_string8_t *) (R + 1); -} - -int -xcb_xkb_get_device_info_name_length (const xcb_xkb_get_device_info_reply_t *R /**< */) -{ - return R->nameLen; -} - -xcb_generic_iterator_t -xcb_xkb_get_device_info_name_end (const xcb_xkb_get_device_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_xkb_string8_t *) (R + 1)) + (R->nameLen); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xkb_action_t * -xcb_xkb_get_device_info_btn_actions (const xcb_xkb_get_device_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xkb_get_device_info_name_end(R); - return (xcb_xkb_action_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_action_t, prev.index) + 0); -} - -int -xcb_xkb_get_device_info_btn_actions_length (const xcb_xkb_get_device_info_reply_t *R /**< */) -{ - return R->nBtnsRtrn; -} - -xcb_xkb_action_iterator_t -xcb_xkb_get_device_info_btn_actions_iterator (const xcb_xkb_get_device_info_reply_t *R /**< */) -{ - xcb_xkb_action_iterator_t i; - xcb_generic_iterator_t prev = xcb_xkb_get_device_info_name_end(R); - i.data = (xcb_xkb_action_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_action_t, prev.index)); - i.rem = R->nBtnsRtrn; - i.index = (char *) i.data - (char *) R; - return i; -} - -int -xcb_xkb_get_device_info_leds_length (const xcb_xkb_get_device_info_reply_t *R /**< */) -{ - return R->nDeviceLedFBs; -} - -xcb_xkb_device_led_info_iterator_t -xcb_xkb_get_device_info_leds_iterator (const xcb_xkb_get_device_info_reply_t *R /**< */) -{ - xcb_xkb_device_led_info_iterator_t i; - xcb_generic_iterator_t prev = xcb_xkb_action_end(xcb_xkb_get_device_info_btn_actions_iterator(R)); - i.data = (xcb_xkb_device_led_info_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xkb_device_led_info_t, prev.index)); - i.rem = R->nDeviceLedFBs; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xkb_get_device_info_reply_t * -xcb_xkb_get_device_info_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_device_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_get_device_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xkb_set_device_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xkb_set_device_info_request_t *_aux = (xcb_xkb_set_device_info_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_xkb_set_device_info_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* btnActions */ - xcb_block_len += _aux->nBtns * sizeof(xcb_xkb_action_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_action_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* leds */ - for(i=0; i<_aux->nDeviceLedFBs; i++) { - xcb_tmp_len = xcb_xkb_device_led_info_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xkb_device_led_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_xkb_set_device_info_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t firstBtn /**< */, - uint8_t nBtns /**< */, - uint16_t change /**< */, - uint16_t nDeviceLedFBs /**< */, - const xcb_xkb_action_t *btnActions /**< */, - const xcb_xkb_device_led_info_t *leds /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_DEVICE_INFO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_xkb_set_device_info_request_t xcb_out; - unsigned int i; - unsigned int xcb_tmp_len; - char *xcb_tmp; - - xcb_out.deviceSpec = deviceSpec; - xcb_out.firstBtn = firstBtn; - xcb_out.nBtns = nBtns; - xcb_out.change = change; - xcb_out.nDeviceLedFBs = nDeviceLedFBs; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_action_t btnActions */ - xcb_parts[4].iov_base = (char *) btnActions; - xcb_parts[4].iov_len = nBtns * sizeof(xcb_xkb_action_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_xkb_device_led_info_t leds */ - xcb_parts[6].iov_base = (char *) leds; - xcb_parts[6].iov_len = 0; - xcb_tmp = (char *)leds; - for(i=0; imsgLength * sizeof(xcb_xkb_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xkb_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xkb_set_debugging_flags_cookie_t -xcb_xkb_set_debugging_flags (xcb_connection_t *c /**< */, - uint16_t msgLength /**< */, - uint32_t affectFlags /**< */, - uint32_t flags /**< */, - uint32_t affectCtrls /**< */, - uint32_t ctrls /**< */, - const xcb_xkb_string8_t *message /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_DEBUGGING_FLAGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_xkb_set_debugging_flags_cookie_t xcb_ret; - xcb_xkb_set_debugging_flags_request_t xcb_out; - - xcb_out.msgLength = msgLength; - memset(xcb_out.pad0, 0, 2); - xcb_out.affectFlags = affectFlags; - xcb_out.flags = flags; - xcb_out.affectCtrls = affectCtrls; - xcb_out.ctrls = ctrls; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_string8_t message */ - xcb_parts[4].iov_base = (char *) message; - xcb_parts[4].iov_len = msgLength * sizeof(xcb_xkb_string8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_set_debugging_flags_cookie_t -xcb_xkb_set_debugging_flags_unchecked (xcb_connection_t *c /**< */, - uint16_t msgLength /**< */, - uint32_t affectFlags /**< */, - uint32_t flags /**< */, - uint32_t affectCtrls /**< */, - uint32_t ctrls /**< */, - const xcb_xkb_string8_t *message /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xkb_id, - /* opcode */ XCB_XKB_SET_DEBUGGING_FLAGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_xkb_set_debugging_flags_cookie_t xcb_ret; - xcb_xkb_set_debugging_flags_request_t xcb_out; - - xcb_out.msgLength = msgLength; - memset(xcb_out.pad0, 0, 2); - xcb_out.affectFlags = affectFlags; - xcb_out.flags = flags; - xcb_out.affectCtrls = affectCtrls; - xcb_out.ctrls = ctrls; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_xkb_string8_t message */ - xcb_parts[4].iov_base = (char *) message; - xcb_parts[4].iov_len = msgLength * sizeof(xcb_xkb_string8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xkb_set_debugging_flags_reply_t * -xcb_xkb_set_debugging_flags_reply (xcb_connection_t *c /**< */, - xcb_xkb_set_debugging_flags_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xkb_set_debugging_flags_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/xkb.h b/external/mit/xorg/lib/libxcb/files/xkb.h deleted file mode 100644 index d061455e6..000000000 --- a/external/mit/xorg/lib/libxcb/files/xkb.h +++ /dev/null @@ -1,7048 +0,0 @@ -/* - * This file generated automatically from xkb.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_xkb_API XCB xkb API - * @brief xkb XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XKB_H -#define __XKB_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_XKB_MAJOR_VERSION 1 -#define XCB_XKB_MINOR_VERSION 0 - -extern xcb_extension_t xcb_xkb_id; - -typedef enum xcb_xkb_const_t { - XCB_XKB_CONST_MAX_LEGAL_KEY_CODE = 255, - XCB_XKB_CONST_PER_KEY_BIT_ARRAY_SIZE = 32, - XCB_XKB_CONST_KEY_NAME_LENGTH = 4 -} xcb_xkb_const_t; - -typedef enum xcb_xkb_event_type_t { - XCB_XKB_EVENT_TYPE_NEW_KEYBOARD_NOTIFY = 1, - XCB_XKB_EVENT_TYPE_MAP_NOTIFY = 2, - XCB_XKB_EVENT_TYPE_STATE_NOTIFY = 4, - XCB_XKB_EVENT_TYPE_CONTROLS_NOTIFY = 8, - XCB_XKB_EVENT_TYPE_INDICATOR_STATE_NOTIFY = 16, - XCB_XKB_EVENT_TYPE_INDICATOR_MAP_NOTIFY = 32, - XCB_XKB_EVENT_TYPE_NAMES_NOTIFY = 64, - XCB_XKB_EVENT_TYPE_COMPAT_MAP_NOTIFY = 128, - XCB_XKB_EVENT_TYPE_BELL_NOTIFY = 256, - XCB_XKB_EVENT_TYPE_ACTION_MESSAGE = 512, - XCB_XKB_EVENT_TYPE_ACCESS_X_NOTIFY = 1024, - XCB_XKB_EVENT_TYPE_EXTENSION_DEVICE_NOTIFY = 2048 -} xcb_xkb_event_type_t; - -typedef enum xcb_xkb_nkn_detail_t { - XCB_XKB_NKN_DETAIL_KEYCODES = 1, - XCB_XKB_NKN_DETAIL_GEOMETRY = 2, - XCB_XKB_NKN_DETAIL_DEVICE_ID = 4 -} xcb_xkb_nkn_detail_t; - -typedef enum xcb_xkb_axn_detail_t { - XCB_XKB_AXN_DETAIL_SK_PRESS = 1, - XCB_XKB_AXN_DETAIL_SK_ACCEPT = 2, - XCB_XKB_AXN_DETAIL_SK_REJECT = 4, - XCB_XKB_AXN_DETAIL_SK_RELEASE = 8, - XCB_XKB_AXN_DETAIL_BK_ACCEPT = 16, - XCB_XKB_AXN_DETAIL_BK_REJECT = 32, - XCB_XKB_AXN_DETAIL_AXK_WARNING = 64 -} xcb_xkb_axn_detail_t; - -typedef enum xcb_xkb_map_part_t { - XCB_XKB_MAP_PART_KEY_TYPES = 1, - XCB_XKB_MAP_PART_KEY_SYMS = 2, - XCB_XKB_MAP_PART_MODIFIER_MAP = 4, - XCB_XKB_MAP_PART_EXPLICIT_COMPONENTS = 8, - XCB_XKB_MAP_PART_KEY_ACTIONS = 16, - XCB_XKB_MAP_PART_KEY_BEHAVIORS = 32, - XCB_XKB_MAP_PART_VIRTUAL_MODS = 64, - XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP = 128 -} xcb_xkb_map_part_t; - -typedef enum xcb_xkb_set_map_flags_t { - XCB_XKB_SET_MAP_FLAGS_RESIZE_TYPES = 1, - XCB_XKB_SET_MAP_FLAGS_RECOMPUTE_ACTIONS = 2 -} xcb_xkb_set_map_flags_t; - -typedef enum xcb_xkb_state_part_t { - XCB_XKB_STATE_PART_MODIFIER_STATE = 1, - XCB_XKB_STATE_PART_MODIFIER_BASE = 2, - XCB_XKB_STATE_PART_MODIFIER_LATCH = 4, - XCB_XKB_STATE_PART_MODIFIER_LOCK = 8, - XCB_XKB_STATE_PART_GROUP_STATE = 16, - XCB_XKB_STATE_PART_GROUP_BASE = 32, - XCB_XKB_STATE_PART_GROUP_LATCH = 64, - XCB_XKB_STATE_PART_GROUP_LOCK = 128, - XCB_XKB_STATE_PART_COMPAT_STATE = 256, - XCB_XKB_STATE_PART_GRAB_MODS = 512, - XCB_XKB_STATE_PART_COMPAT_GRAB_MODS = 1024, - XCB_XKB_STATE_PART_LOOKUP_MODS = 2048, - XCB_XKB_STATE_PART_COMPAT_LOOKUP_MODS = 4096, - XCB_XKB_STATE_PART_POINTER_BUTTONS = 8192 -} xcb_xkb_state_part_t; - -typedef enum xcb_xkb_bool_ctrl_t { - XCB_XKB_BOOL_CTRL_REPEAT_KEYS = 1, - XCB_XKB_BOOL_CTRL_SLOW_KEYS = 2, - XCB_XKB_BOOL_CTRL_BOUNCE_KEYS = 4, - XCB_XKB_BOOL_CTRL_STICKY_KEYS = 8, - XCB_XKB_BOOL_CTRL_MOUSE_KEYS = 16, - XCB_XKB_BOOL_CTRL_MOUSE_KEYS_ACCEL = 32, - XCB_XKB_BOOL_CTRL_ACCESS_X_KEYS = 64, - XCB_XKB_BOOL_CTRL_ACCESS_X_TIMEOUT_MASK = 128, - XCB_XKB_BOOL_CTRL_ACCESS_X_FEEDBACK_MASK = 256, - XCB_XKB_BOOL_CTRL_AUDIBLE_BELL_MASK = 512, - XCB_XKB_BOOL_CTRL_OVERLAY_1_MASK = 1024, - XCB_XKB_BOOL_CTRL_OVERLAY_2_MASK = 2048, - XCB_XKB_BOOL_CTRL_IGNORE_GROUP_LOCK_MASK = 4096 -} xcb_xkb_bool_ctrl_t; - -typedef enum xcb_xkb_control_t { - XCB_XKB_CONTROL_GROUPS_WRAP = 134217728, - XCB_XKB_CONTROL_INTERNAL_MODS = 268435456, - XCB_XKB_CONTROL_IGNORE_LOCK_MODS = 536870912, - XCB_XKB_CONTROL_PER_KEY_REPEAT = 1073741824, - XCB_XKB_CONTROL_CONTROLS_ENABLED = 2147483648 -} xcb_xkb_control_t; - -typedef enum xcb_xkb_ax_option_t { - XCB_XKB_AX_OPTION_SK_PRESS_FB = 1, - XCB_XKB_AX_OPTION_SK_ACCEPT_FB = 2, - XCB_XKB_AX_OPTION_FEATURE_FB = 4, - XCB_XKB_AX_OPTION_SLOW_WARN_FB = 8, - XCB_XKB_AX_OPTION_INDICATOR_FB = 16, - XCB_XKB_AX_OPTION_STICKY_KEYS_FB = 32, - XCB_XKB_AX_OPTION_TWO_KEYS = 64, - XCB_XKB_AX_OPTION_LATCH_TO_LOCK = 128, - XCB_XKB_AX_OPTION_SK_RELEASE_FB = 256, - XCB_XKB_AX_OPTION_SK_REJECT_FB = 512, - XCB_XKB_AX_OPTION_BK_REJECT_FB = 1024, - XCB_XKB_AX_OPTION_DUMB_BELL = 2048 -} xcb_xkb_ax_option_t; - -typedef uint16_t xcb_xkb_device_spec_t; - -/** - * @brief xcb_xkb_device_spec_iterator_t - **/ -typedef struct xcb_xkb_device_spec_iterator_t { - xcb_xkb_device_spec_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_device_spec_iterator_t; - -typedef enum xcb_xkb_led_class_result_t { - XCB_XKB_LED_CLASS_RESULT_KBD_FEEDBACK_CLASS = 0, - XCB_XKB_LED_CLASS_RESULT_LED_FEEDBACK_CLASS = 4 -} xcb_xkb_led_class_result_t; - -typedef enum xcb_xkb_led_class_t { - XCB_XKB_LED_CLASS_KBD_FEEDBACK_CLASS = 0, - XCB_XKB_LED_CLASS_LED_FEEDBACK_CLASS = 4, - XCB_XKB_LED_CLASS_DFLT_XI_CLASS = 768, - XCB_XKB_LED_CLASS_ALL_XI_CLASSES = 1280 -} xcb_xkb_led_class_t; - -typedef uint16_t xcb_xkb_led_class_spec_t; - -/** - * @brief xcb_xkb_led_class_spec_iterator_t - **/ -typedef struct xcb_xkb_led_class_spec_iterator_t { - xcb_xkb_led_class_spec_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_led_class_spec_iterator_t; - -typedef enum xcb_xkb_bell_class_result_t { - XCB_XKB_BELL_CLASS_RESULT_KBD_FEEDBACK_CLASS = 0, - XCB_XKB_BELL_CLASS_RESULT_BELL_FEEDBACK_CLASS = 5 -} xcb_xkb_bell_class_result_t; - -typedef enum xcb_xkb_bell_class_t { - XCB_XKB_BELL_CLASS_KBD_FEEDBACK_CLASS = 0, - XCB_XKB_BELL_CLASS_BELL_FEEDBACK_CLASS = 5, - XCB_XKB_BELL_CLASS_DFLT_XI_CLASS = 768 -} xcb_xkb_bell_class_t; - -typedef uint16_t xcb_xkb_bell_class_spec_t; - -/** - * @brief xcb_xkb_bell_class_spec_iterator_t - **/ -typedef struct xcb_xkb_bell_class_spec_iterator_t { - xcb_xkb_bell_class_spec_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_bell_class_spec_iterator_t; - -typedef enum xcb_xkb_id_t { - XCB_XKB_ID_USE_CORE_KBD = 256, - XCB_XKB_ID_USE_CORE_PTR = 512, - XCB_XKB_ID_DFLT_XI_CLASS = 768, - XCB_XKB_ID_DFLT_XI_ID = 1024, - XCB_XKB_ID_ALL_XI_CLASS = 1280, - XCB_XKB_ID_ALL_XI_ID = 1536, - XCB_XKB_ID_XI_NONE = 65280 -} xcb_xkb_id_t; - -typedef uint16_t xcb_xkb_id_spec_t; - -/** - * @brief xcb_xkb_id_spec_iterator_t - **/ -typedef struct xcb_xkb_id_spec_iterator_t { - xcb_xkb_id_spec_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_id_spec_iterator_t; - -typedef enum xcb_xkb_group_t { - XCB_XKB_GROUP_1 = 0, - XCB_XKB_GROUP_2 = 1, - XCB_XKB_GROUP_3 = 2, - XCB_XKB_GROUP_4 = 3 -} xcb_xkb_group_t; - -typedef enum xcb_xkb_groups_t { - XCB_XKB_GROUPS_ANY = 254, - XCB_XKB_GROUPS_ALL = 255 -} xcb_xkb_groups_t; - -typedef enum xcb_xkb_set_of_group_t { - XCB_XKB_SET_OF_GROUP_GROUP_1 = 1, - XCB_XKB_SET_OF_GROUP_GROUP_2 = 2, - XCB_XKB_SET_OF_GROUP_GROUP_3 = 4, - XCB_XKB_SET_OF_GROUP_GROUP_4 = 8 -} xcb_xkb_set_of_group_t; - -typedef enum xcb_xkb_set_of_groups_t { - XCB_XKB_SET_OF_GROUPS_ANY = 128 -} xcb_xkb_set_of_groups_t; - -typedef enum xcb_xkb_groups_wrap_t { - XCB_XKB_GROUPS_WRAP_WRAP_INTO_RANGE = 0, - XCB_XKB_GROUPS_WRAP_CLAMP_INTO_RANGE = 64, - XCB_XKB_GROUPS_WRAP_REDIRECT_INTO_RANGE = 128 -} xcb_xkb_groups_wrap_t; - -typedef enum xcb_xkb_v_mods_high_t { - XCB_XKB_V_MODS_HIGH_15 = 128, - XCB_XKB_V_MODS_HIGH_14 = 64, - XCB_XKB_V_MODS_HIGH_13 = 32, - XCB_XKB_V_MODS_HIGH_12 = 16, - XCB_XKB_V_MODS_HIGH_11 = 8, - XCB_XKB_V_MODS_HIGH_10 = 4, - XCB_XKB_V_MODS_HIGH_9 = 2, - XCB_XKB_V_MODS_HIGH_8 = 1 -} xcb_xkb_v_mods_high_t; - -typedef enum xcb_xkb_v_mods_low_t { - XCB_XKB_V_MODS_LOW_7 = 128, - XCB_XKB_V_MODS_LOW_6 = 64, - XCB_XKB_V_MODS_LOW_5 = 32, - XCB_XKB_V_MODS_LOW_4 = 16, - XCB_XKB_V_MODS_LOW_3 = 8, - XCB_XKB_V_MODS_LOW_2 = 4, - XCB_XKB_V_MODS_LOW_1 = 2, - XCB_XKB_V_MODS_LOW_0 = 1 -} xcb_xkb_v_mods_low_t; - -typedef enum xcb_xkb_v_mod_t { - XCB_XKB_V_MOD_15 = 32768, - XCB_XKB_V_MOD_14 = 16384, - XCB_XKB_V_MOD_13 = 8192, - XCB_XKB_V_MOD_12 = 4096, - XCB_XKB_V_MOD_11 = 2048, - XCB_XKB_V_MOD_10 = 1024, - XCB_XKB_V_MOD_9 = 512, - XCB_XKB_V_MOD_8 = 256, - XCB_XKB_V_MOD_7 = 128, - XCB_XKB_V_MOD_6 = 64, - XCB_XKB_V_MOD_5 = 32, - XCB_XKB_V_MOD_4 = 16, - XCB_XKB_V_MOD_3 = 8, - XCB_XKB_V_MOD_2 = 4, - XCB_XKB_V_MOD_1 = 2, - XCB_XKB_V_MOD_0 = 1 -} xcb_xkb_v_mod_t; - -typedef enum xcb_xkb_explicit_t { - XCB_XKB_EXPLICIT_V_MOD_MAP = 128, - XCB_XKB_EXPLICIT_BEHAVIOR = 64, - XCB_XKB_EXPLICIT_AUTO_REPEAT = 32, - XCB_XKB_EXPLICIT_INTERPRET = 16, - XCB_XKB_EXPLICIT_KEY_TYPE_4 = 8, - XCB_XKB_EXPLICIT_KEY_TYPE_3 = 4, - XCB_XKB_EXPLICIT_KEY_TYPE_2 = 2, - XCB_XKB_EXPLICIT_KEY_TYPE_1 = 1 -} xcb_xkb_explicit_t; - -typedef enum xcb_xkb_sym_interpret_match_t { - XCB_XKB_SYM_INTERPRET_MATCH_NONE_OF = 0, - XCB_XKB_SYM_INTERPRET_MATCH_ANY_OF_OR_NONE = 1, - XCB_XKB_SYM_INTERPRET_MATCH_ANY_OF = 2, - XCB_XKB_SYM_INTERPRET_MATCH_ALL_OF = 3, - XCB_XKB_SYM_INTERPRET_MATCH_EXACTLY = 4 -} xcb_xkb_sym_interpret_match_t; - -typedef enum xcb_xkb_sym_interp_match_t { - XCB_XKB_SYM_INTERP_MATCH_LEVEL_ONE_ONLY = 128, - XCB_XKB_SYM_INTERP_MATCH_OP_MASK = 127 -} xcb_xkb_sym_interp_match_t; - -typedef enum xcb_xkb_im_flag_t { - XCB_XKB_IM_FLAG_NO_EXPLICIT = 128, - XCB_XKB_IM_FLAG_NO_AUTOMATIC = 64, - XCB_XKB_IM_FLAG_LED_DRIVES_KB = 32 -} xcb_xkb_im_flag_t; - -typedef enum xcb_xkb_im_mods_which_t { - XCB_XKB_IM_MODS_WHICH_USE_COMPAT = 16, - XCB_XKB_IM_MODS_WHICH_USE_EFFECTIVE = 8, - XCB_XKB_IM_MODS_WHICH_USE_LOCKED = 4, - XCB_XKB_IM_MODS_WHICH_USE_LATCHED = 2, - XCB_XKB_IM_MODS_WHICH_USE_BASE = 1 -} xcb_xkb_im_mods_which_t; - -typedef enum xcb_xkb_im_groups_which_t { - XCB_XKB_IM_GROUPS_WHICH_USE_COMPAT = 16, - XCB_XKB_IM_GROUPS_WHICH_USE_EFFECTIVE = 8, - XCB_XKB_IM_GROUPS_WHICH_USE_LOCKED = 4, - XCB_XKB_IM_GROUPS_WHICH_USE_LATCHED = 2, - XCB_XKB_IM_GROUPS_WHICH_USE_BASE = 1 -} xcb_xkb_im_groups_which_t; - -/** - * @brief xcb_xkb_indicator_map_t - **/ -typedef struct xcb_xkb_indicator_map_t { - uint8_t flags; /**< */ - uint8_t whichGroups; /**< */ - uint8_t groups; /**< */ - uint8_t whichMods; /**< */ - uint8_t mods; /**< */ - uint8_t realMods; /**< */ - uint16_t vmods; /**< */ - uint32_t ctrls; /**< */ -} xcb_xkb_indicator_map_t; - -/** - * @brief xcb_xkb_indicator_map_iterator_t - **/ -typedef struct xcb_xkb_indicator_map_iterator_t { - xcb_xkb_indicator_map_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_indicator_map_iterator_t; - -typedef enum xcb_xkb_cm_detail_t { - XCB_XKB_CM_DETAIL_SYM_INTERP = 1, - XCB_XKB_CM_DETAIL_GROUP_COMPAT = 2 -} xcb_xkb_cm_detail_t; - -typedef enum xcb_xkb_name_detail_t { - XCB_XKB_NAME_DETAIL_KEYCODES = 1, - XCB_XKB_NAME_DETAIL_GEOMETRY = 2, - XCB_XKB_NAME_DETAIL_SYMBOLS = 4, - XCB_XKB_NAME_DETAIL_PHYS_SYMBOLS = 8, - XCB_XKB_NAME_DETAIL_TYPES = 16, - XCB_XKB_NAME_DETAIL_COMPAT = 32, - XCB_XKB_NAME_DETAIL_KEY_TYPE_NAMES = 64, - XCB_XKB_NAME_DETAIL_KT_LEVEL_NAMES = 128, - XCB_XKB_NAME_DETAIL_INDICATOR_NAMES = 256, - XCB_XKB_NAME_DETAIL_KEY_NAMES = 512, - XCB_XKB_NAME_DETAIL_KEY_ALIASES = 1024, - XCB_XKB_NAME_DETAIL_VIRTUAL_MOD_NAMES = 2048, - XCB_XKB_NAME_DETAIL_GROUP_NAMES = 4096, - XCB_XKB_NAME_DETAIL_RG_NAMES = 8192 -} xcb_xkb_name_detail_t; - -typedef enum xcb_xkb_gbn_detail_t { - XCB_XKB_GBN_DETAIL_TYPES = 1, - XCB_XKB_GBN_DETAIL_COMPAT_MAP = 2, - XCB_XKB_GBN_DETAIL_CLIENT_SYMBOLS = 4, - XCB_XKB_GBN_DETAIL_SERVER_SYMBOLS = 8, - XCB_XKB_GBN_DETAIL_INDICATOR_MAPS = 16, - XCB_XKB_GBN_DETAIL_KEY_NAMES = 32, - XCB_XKB_GBN_DETAIL_GEOMETRY = 64, - XCB_XKB_GBN_DETAIL_OTHER_NAMES = 128 -} xcb_xkb_gbn_detail_t; - -typedef enum xcb_xkb_xi_feature_t { - XCB_XKB_XI_FEATURE_KEYBOARDS = 1, - XCB_XKB_XI_FEATURE_BUTTON_ACTIONS = 2, - XCB_XKB_XI_FEATURE_INDICATOR_NAMES = 4, - XCB_XKB_XI_FEATURE_INDICATOR_MAPS = 8, - XCB_XKB_XI_FEATURE_INDICATOR_STATE = 16 -} xcb_xkb_xi_feature_t; - -typedef enum xcb_xkb_per_client_flag_t { - XCB_XKB_PER_CLIENT_FLAG_DETECTABLE_AUTO_REPEAT = 1, - XCB_XKB_PER_CLIENT_FLAG_GRABS_USE_XKB_STATE = 2, - XCB_XKB_PER_CLIENT_FLAG_AUTO_RESET_CONTROLS = 4, - XCB_XKB_PER_CLIENT_FLAG_LOOKUP_STATE_WHEN_GRABBED = 8, - XCB_XKB_PER_CLIENT_FLAG_SEND_EVENT_USES_XKB_STATE = 16 -} xcb_xkb_per_client_flag_t; - -/** - * @brief xcb_xkb_mod_def_t - **/ -typedef struct xcb_xkb_mod_def_t { - uint8_t mask; /**< */ - uint8_t realMods; /**< */ - uint16_t vmods; /**< */ -} xcb_xkb_mod_def_t; - -/** - * @brief xcb_xkb_mod_def_iterator_t - **/ -typedef struct xcb_xkb_mod_def_iterator_t { - xcb_xkb_mod_def_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_mod_def_iterator_t; - -/** - * @brief xcb_xkb_key_name_t - **/ -typedef struct xcb_xkb_key_name_t { - char name[4]; /**< */ -} xcb_xkb_key_name_t; - -/** - * @brief xcb_xkb_key_name_iterator_t - **/ -typedef struct xcb_xkb_key_name_iterator_t { - xcb_xkb_key_name_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_key_name_iterator_t; - -/** - * @brief xcb_xkb_key_alias_t - **/ -typedef struct xcb_xkb_key_alias_t { - char real[4]; /**< */ - char alias[4]; /**< */ -} xcb_xkb_key_alias_t; - -/** - * @brief xcb_xkb_key_alias_iterator_t - **/ -typedef struct xcb_xkb_key_alias_iterator_t { - xcb_xkb_key_alias_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_key_alias_iterator_t; - -/** - * @brief xcb_xkb_counted_string_16_t - **/ -typedef struct xcb_xkb_counted_string_16_t { - uint16_t length; /**< */ -} xcb_xkb_counted_string_16_t; - -/** - * @brief xcb_xkb_counted_string_16_iterator_t - **/ -typedef struct xcb_xkb_counted_string_16_iterator_t { - xcb_xkb_counted_string_16_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_counted_string_16_iterator_t; - -/** - * @brief xcb_xkb_kt_map_entry_t - **/ -typedef struct xcb_xkb_kt_map_entry_t { - uint8_t active; /**< */ - uint8_t mods_mask; /**< */ - uint8_t level; /**< */ - uint8_t mods_mods; /**< */ - uint16_t mods_vmods; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_kt_map_entry_t; - -/** - * @brief xcb_xkb_kt_map_entry_iterator_t - **/ -typedef struct xcb_xkb_kt_map_entry_iterator_t { - xcb_xkb_kt_map_entry_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_kt_map_entry_iterator_t; - -/** - * @brief xcb_xkb_key_type_t - **/ -typedef struct xcb_xkb_key_type_t { - uint8_t mods_mask; /**< */ - uint8_t mods_mods; /**< */ - uint16_t mods_vmods; /**< */ - uint8_t numLevels; /**< */ - uint8_t nMapEntries; /**< */ - uint8_t hasPreserve; /**< */ - uint8_t pad0; /**< */ -} xcb_xkb_key_type_t; - -/** - * @brief xcb_xkb_key_type_iterator_t - **/ -typedef struct xcb_xkb_key_type_iterator_t { - xcb_xkb_key_type_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_key_type_iterator_t; - -/** - * @brief xcb_xkb_key_sym_map_t - **/ -typedef struct xcb_xkb_key_sym_map_t { - uint8_t kt_index[4]; /**< */ - uint8_t groupInfo; /**< */ - uint8_t width; /**< */ - uint16_t nSyms; /**< */ -} xcb_xkb_key_sym_map_t; - -/** - * @brief xcb_xkb_key_sym_map_iterator_t - **/ -typedef struct xcb_xkb_key_sym_map_iterator_t { - xcb_xkb_key_sym_map_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_key_sym_map_iterator_t; - -/** - * @brief xcb_xkb_common_behavior_t - **/ -typedef struct xcb_xkb_common_behavior_t { - uint8_t type; /**< */ - uint8_t data; /**< */ -} xcb_xkb_common_behavior_t; - -/** - * @brief xcb_xkb_common_behavior_iterator_t - **/ -typedef struct xcb_xkb_common_behavior_iterator_t { - xcb_xkb_common_behavior_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_common_behavior_iterator_t; - -/** - * @brief xcb_xkb_default_behavior_t - **/ -typedef struct xcb_xkb_default_behavior_t { - uint8_t type; /**< */ - uint8_t pad0; /**< */ -} xcb_xkb_default_behavior_t; - -/** - * @brief xcb_xkb_default_behavior_iterator_t - **/ -typedef struct xcb_xkb_default_behavior_iterator_t { - xcb_xkb_default_behavior_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_default_behavior_iterator_t; - -/** - * @brief xcb_xkb_lock_behavior_t - **/ -typedef struct xcb_xkb_lock_behavior_t { - uint8_t type; /**< */ - uint8_t pad0; /**< */ -} xcb_xkb_lock_behavior_t; - -/** - * @brief xcb_xkb_lock_behavior_iterator_t - **/ -typedef struct xcb_xkb_lock_behavior_iterator_t { - xcb_xkb_lock_behavior_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_lock_behavior_iterator_t; - -/** - * @brief xcb_xkb_radio_group_behavior_t - **/ -typedef struct xcb_xkb_radio_group_behavior_t { - uint8_t type; /**< */ - uint8_t group; /**< */ -} xcb_xkb_radio_group_behavior_t; - -/** - * @brief xcb_xkb_radio_group_behavior_iterator_t - **/ -typedef struct xcb_xkb_radio_group_behavior_iterator_t { - xcb_xkb_radio_group_behavior_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_radio_group_behavior_iterator_t; - -/** - * @brief xcb_xkb_overlay_behavior_t - **/ -typedef struct xcb_xkb_overlay_behavior_t { - uint8_t type; /**< */ - xcb_keycode_t key; /**< */ -} xcb_xkb_overlay_behavior_t; - -/** - * @brief xcb_xkb_overlay_behavior_iterator_t - **/ -typedef struct xcb_xkb_overlay_behavior_iterator_t { - xcb_xkb_overlay_behavior_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_overlay_behavior_iterator_t; - -/** - * @brief xcb_xkb_permament_lock_behavior_t - **/ -typedef struct xcb_xkb_permament_lock_behavior_t { - uint8_t type; /**< */ - uint8_t pad0; /**< */ -} xcb_xkb_permament_lock_behavior_t; - -/** - * @brief xcb_xkb_permament_lock_behavior_iterator_t - **/ -typedef struct xcb_xkb_permament_lock_behavior_iterator_t { - xcb_xkb_permament_lock_behavior_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_permament_lock_behavior_iterator_t; - -/** - * @brief xcb_xkb_permament_radio_group_behavior_t - **/ -typedef struct xcb_xkb_permament_radio_group_behavior_t { - uint8_t type; /**< */ - uint8_t group; /**< */ -} xcb_xkb_permament_radio_group_behavior_t; - -/** - * @brief xcb_xkb_permament_radio_group_behavior_iterator_t - **/ -typedef struct xcb_xkb_permament_radio_group_behavior_iterator_t { - xcb_xkb_permament_radio_group_behavior_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_permament_radio_group_behavior_iterator_t; - -/** - * @brief xcb_xkb_permament_overlay_behavior_t - **/ -typedef struct xcb_xkb_permament_overlay_behavior_t { - uint8_t type; /**< */ - xcb_keycode_t key; /**< */ -} xcb_xkb_permament_overlay_behavior_t; - -/** - * @brief xcb_xkb_permament_overlay_behavior_iterator_t - **/ -typedef struct xcb_xkb_permament_overlay_behavior_iterator_t { - xcb_xkb_permament_overlay_behavior_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_permament_overlay_behavior_iterator_t; - -/** - * @brief xcb_xkb_behavior_t - **/ -typedef union xcb_xkb_behavior_t { - xcb_xkb_common_behavior_t common; /**< */ - xcb_xkb_default_behavior_t _default; /**< */ - xcb_xkb_lock_behavior_t lock; /**< */ - xcb_xkb_radio_group_behavior_t radioGroup; /**< */ - xcb_xkb_overlay_behavior_t overlay1; /**< */ - xcb_xkb_overlay_behavior_t overlay2; /**< */ - xcb_xkb_permament_lock_behavior_t permamentLock; /**< */ - xcb_xkb_permament_radio_group_behavior_t permamentRadioGroup; /**< */ - xcb_xkb_permament_overlay_behavior_t permamentOverlay1; /**< */ - xcb_xkb_permament_overlay_behavior_t permamentOverlay2; /**< */ - uint8_t type; /**< */ -} xcb_xkb_behavior_t; - -/** - * @brief xcb_xkb_behavior_iterator_t - **/ -typedef struct xcb_xkb_behavior_iterator_t { - xcb_xkb_behavior_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_behavior_iterator_t; - -typedef enum xcb_xkb_behavior_type_t { - XCB_XKB_BEHAVIOR_TYPE_DEFAULT = 0, - XCB_XKB_BEHAVIOR_TYPE_LOCK = 1, - XCB_XKB_BEHAVIOR_TYPE_RADIO_GROUP = 2, - XCB_XKB_BEHAVIOR_TYPE_OVERLAY_1 = 3, - XCB_XKB_BEHAVIOR_TYPE_OVERLAY_2 = 4, - XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_LOCK = 129, - XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_RADIO_GROUP = 130, - XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_OVERLAY_1 = 131, - XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_OVERLAY_2 = 132 -} xcb_xkb_behavior_type_t; - -/** - * @brief xcb_xkb_set_behavior_t - **/ -typedef struct xcb_xkb_set_behavior_t { - xcb_keycode_t keycode; /**< */ - xcb_xkb_behavior_t behavior; /**< */ - uint8_t pad0; /**< */ -} xcb_xkb_set_behavior_t; - -/** - * @brief xcb_xkb_set_behavior_iterator_t - **/ -typedef struct xcb_xkb_set_behavior_iterator_t { - xcb_xkb_set_behavior_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_set_behavior_iterator_t; - -/** - * @brief xcb_xkb_set_explicit_t - **/ -typedef struct xcb_xkb_set_explicit_t { - xcb_keycode_t keycode; /**< */ - uint8_t explicit; /**< */ -} xcb_xkb_set_explicit_t; - -/** - * @brief xcb_xkb_set_explicit_iterator_t - **/ -typedef struct xcb_xkb_set_explicit_iterator_t { - xcb_xkb_set_explicit_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_set_explicit_iterator_t; - -/** - * @brief xcb_xkb_key_mod_map_t - **/ -typedef struct xcb_xkb_key_mod_map_t { - xcb_keycode_t keycode; /**< */ - uint8_t mods; /**< */ -} xcb_xkb_key_mod_map_t; - -/** - * @brief xcb_xkb_key_mod_map_iterator_t - **/ -typedef struct xcb_xkb_key_mod_map_iterator_t { - xcb_xkb_key_mod_map_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_key_mod_map_iterator_t; - -/** - * @brief xcb_xkb_key_v_mod_map_t - **/ -typedef struct xcb_xkb_key_v_mod_map_t { - xcb_keycode_t keycode; /**< */ - uint8_t pad0; /**< */ - uint16_t vmods; /**< */ -} xcb_xkb_key_v_mod_map_t; - -/** - * @brief xcb_xkb_key_v_mod_map_iterator_t - **/ -typedef struct xcb_xkb_key_v_mod_map_iterator_t { - xcb_xkb_key_v_mod_map_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_key_v_mod_map_iterator_t; - -/** - * @brief xcb_xkb_kt_set_map_entry_t - **/ -typedef struct xcb_xkb_kt_set_map_entry_t { - uint8_t level; /**< */ - uint8_t realMods; /**< */ - uint16_t virtualMods; /**< */ -} xcb_xkb_kt_set_map_entry_t; - -/** - * @brief xcb_xkb_kt_set_map_entry_iterator_t - **/ -typedef struct xcb_xkb_kt_set_map_entry_iterator_t { - xcb_xkb_kt_set_map_entry_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_kt_set_map_entry_iterator_t; - -/** - * @brief xcb_xkb_set_key_type_t - **/ -typedef struct xcb_xkb_set_key_type_t { - uint8_t mask; /**< */ - uint8_t realMods; /**< */ - uint16_t virtualMods; /**< */ - uint8_t numLevels; /**< */ - uint8_t nMapEntries; /**< */ - uint8_t preserve; /**< */ - uint8_t pad0; /**< */ -} xcb_xkb_set_key_type_t; - -/** - * @brief xcb_xkb_set_key_type_iterator_t - **/ -typedef struct xcb_xkb_set_key_type_iterator_t { - xcb_xkb_set_key_type_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_set_key_type_iterator_t; - -typedef char xcb_xkb_string8_t; - -/** - * @brief xcb_xkb_string8_iterator_t - **/ -typedef struct xcb_xkb_string8_iterator_t { - xcb_xkb_string8_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_string8_iterator_t; - -/** - * @brief xcb_xkb_outline_t - **/ -typedef struct xcb_xkb_outline_t { - uint8_t nPoints; /**< */ - uint8_t cornerRadius; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_outline_t; - -/** - * @brief xcb_xkb_outline_iterator_t - **/ -typedef struct xcb_xkb_outline_iterator_t { - xcb_xkb_outline_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_outline_iterator_t; - -/** - * @brief xcb_xkb_shape_t - **/ -typedef struct xcb_xkb_shape_t { - xcb_atom_t name; /**< */ - uint8_t nOutlines; /**< */ - uint8_t primaryNdx; /**< */ - uint8_t approxNdx; /**< */ - uint8_t pad0; /**< */ -} xcb_xkb_shape_t; - -/** - * @brief xcb_xkb_shape_iterator_t - **/ -typedef struct xcb_xkb_shape_iterator_t { - xcb_xkb_shape_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_shape_iterator_t; - -/** - * @brief xcb_xkb_key_t - **/ -typedef struct xcb_xkb_key_t { - xcb_xkb_string8_t name[4]; /**< */ - int16_t gap; /**< */ - uint8_t shapeNdx; /**< */ - uint8_t colorNdx; /**< */ -} xcb_xkb_key_t; - -/** - * @brief xcb_xkb_key_iterator_t - **/ -typedef struct xcb_xkb_key_iterator_t { - xcb_xkb_key_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_key_iterator_t; - -/** - * @brief xcb_xkb_overlay_key_t - **/ -typedef struct xcb_xkb_overlay_key_t { - xcb_xkb_string8_t over[4]; /**< */ - xcb_xkb_string8_t under[4]; /**< */ -} xcb_xkb_overlay_key_t; - -/** - * @brief xcb_xkb_overlay_key_iterator_t - **/ -typedef struct xcb_xkb_overlay_key_iterator_t { - xcb_xkb_overlay_key_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_overlay_key_iterator_t; - -/** - * @brief xcb_xkb_overlay_row_t - **/ -typedef struct xcb_xkb_overlay_row_t { - uint8_t rowUnder; /**< */ - uint8_t nKeys; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_overlay_row_t; - -/** - * @brief xcb_xkb_overlay_row_iterator_t - **/ -typedef struct xcb_xkb_overlay_row_iterator_t { - xcb_xkb_overlay_row_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_overlay_row_iterator_t; - -/** - * @brief xcb_xkb_overlay_t - **/ -typedef struct xcb_xkb_overlay_t { - xcb_atom_t name; /**< */ - uint8_t nRows; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_xkb_overlay_t; - -/** - * @brief xcb_xkb_overlay_iterator_t - **/ -typedef struct xcb_xkb_overlay_iterator_t { - xcb_xkb_overlay_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_overlay_iterator_t; - -/** - * @brief xcb_xkb_row_t - **/ -typedef struct xcb_xkb_row_t { - int16_t top; /**< */ - int16_t left; /**< */ - uint8_t nKeys; /**< */ - uint8_t vertical; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_row_t; - -/** - * @brief xcb_xkb_row_iterator_t - **/ -typedef struct xcb_xkb_row_iterator_t { - xcb_xkb_row_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_row_iterator_t; - -typedef enum xcb_xkb_doodad_type_t { - XCB_XKB_DOODAD_TYPE_OUTLINE = 1, - XCB_XKB_DOODAD_TYPE_SOLID = 2, - XCB_XKB_DOODAD_TYPE_TEXT = 3, - XCB_XKB_DOODAD_TYPE_INDICATOR = 4, - XCB_XKB_DOODAD_TYPE_LOGO = 5 -} xcb_xkb_doodad_type_t; - -/** - * @brief xcb_xkb_listing_t - **/ -typedef struct xcb_xkb_listing_t { - uint16_t flags; /**< */ - uint16_t length; /**< */ -} xcb_xkb_listing_t; - -/** - * @brief xcb_xkb_listing_iterator_t - **/ -typedef struct xcb_xkb_listing_iterator_t { - xcb_xkb_listing_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_listing_iterator_t; - -/** - * @brief xcb_xkb_device_led_info_t - **/ -typedef struct xcb_xkb_device_led_info_t { - xcb_xkb_led_class_spec_t ledClass; /**< */ - xcb_xkb_id_spec_t ledID; /**< */ - uint32_t namesPresent; /**< */ - uint32_t mapsPresent; /**< */ - uint32_t physIndicators; /**< */ - uint32_t state; /**< */ -} xcb_xkb_device_led_info_t; - -/** - * @brief xcb_xkb_device_led_info_iterator_t - **/ -typedef struct xcb_xkb_device_led_info_iterator_t { - xcb_xkb_device_led_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_device_led_info_iterator_t; - -typedef enum xcb_xkb_error_t { - XCB_XKB_ERROR_BAD_DEVICE = 255, - XCB_XKB_ERROR_BAD_CLASS = 254, - XCB_XKB_ERROR_BAD_ID = 253 -} xcb_xkb_error_t; - -/** Opcode for xcb_xkb_keyboard. */ -#define XCB_XKB_KEYBOARD 0 - -/** - * @brief xcb_xkb_keyboard_error_t - **/ -typedef struct xcb_xkb_keyboard_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ - uint32_t value; /**< */ - uint16_t minorOpcode; /**< */ - uint8_t majorOpcode; /**< */ - uint8_t pad0[21]; /**< */ -} xcb_xkb_keyboard_error_t; - -typedef enum xcb_xkb_sa_t { - XCB_XKB_SA_CLEAR_LOCKS = 1, - XCB_XKB_SA_LATCH_TO_LOCK = 2, - XCB_XKB_SA_USE_MOD_MAP_MODS = 4, - XCB_XKB_SA_GROUP_ABSOLUTE = 4 -} xcb_xkb_sa_t; - -typedef enum xcb_xkb_sa_type_t { - XCB_XKB_SA_TYPE_NO_ACTION = 0, - XCB_XKB_SA_TYPE_SET_MODS = 1, - XCB_XKB_SA_TYPE_LATCH_MODS = 2, - XCB_XKB_SA_TYPE_LOCK_MODS = 3, - XCB_XKB_SA_TYPE_SET_GROUP = 4, - XCB_XKB_SA_TYPE_LATCH_GROUP = 5, - XCB_XKB_SA_TYPE_LOCK_GROUP = 6, - XCB_XKB_SA_TYPE_MOVE_PTR = 7, - XCB_XKB_SA_TYPE_PTR_BTN = 8, - XCB_XKB_SA_TYPE_LOCK_PTR_BTN = 9, - XCB_XKB_SA_TYPE_SET_PTR_DFLT = 10, - XCB_XKB_SA_TYPE_ISO_LOCK = 11, - XCB_XKB_SA_TYPE_TERMINATE = 12, - XCB_XKB_SA_TYPE_SWITCH_SCREEN = 13, - XCB_XKB_SA_TYPE_SET_CONTROLS = 14, - XCB_XKB_SA_TYPE_LOCK_CONTROLS = 15, - XCB_XKB_SA_TYPE_ACTION_MESSAGE = 16, - XCB_XKB_SA_TYPE_REDIRECT_KEY = 17, - XCB_XKB_SA_TYPE_DEVICE_BTN = 18, - XCB_XKB_SA_TYPE_LOCK_DEVICE_BTN = 19, - XCB_XKB_SA_TYPE_DEVICE_VALUATOR = 20 -} xcb_xkb_sa_type_t; - -/** - * @brief xcb_xkb_sa_no_action_t - **/ -typedef struct xcb_xkb_sa_no_action_t { - uint8_t type; /**< */ - uint8_t pad0[7]; /**< */ -} xcb_xkb_sa_no_action_t; - -/** - * @brief xcb_xkb_sa_no_action_iterator_t - **/ -typedef struct xcb_xkb_sa_no_action_iterator_t { - xcb_xkb_sa_no_action_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_no_action_iterator_t; - -/** - * @brief xcb_xkb_sa_set_mods_t - **/ -typedef struct xcb_xkb_sa_set_mods_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - uint8_t mask; /**< */ - uint8_t realMods; /**< */ - uint8_t vmodsHigh; /**< */ - uint8_t vmodsLow; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_sa_set_mods_t; - -/** - * @brief xcb_xkb_sa_set_mods_iterator_t - **/ -typedef struct xcb_xkb_sa_set_mods_iterator_t { - xcb_xkb_sa_set_mods_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_set_mods_iterator_t; - -/** - * @brief xcb_xkb_sa_latch_mods_t - **/ -typedef struct xcb_xkb_sa_latch_mods_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - uint8_t mask; /**< */ - uint8_t realMods; /**< */ - uint8_t vmodsHigh; /**< */ - uint8_t vmodsLow; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_sa_latch_mods_t; - -/** - * @brief xcb_xkb_sa_latch_mods_iterator_t - **/ -typedef struct xcb_xkb_sa_latch_mods_iterator_t { - xcb_xkb_sa_latch_mods_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_latch_mods_iterator_t; - -/** - * @brief xcb_xkb_sa_lock_mods_t - **/ -typedef struct xcb_xkb_sa_lock_mods_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - uint8_t mask; /**< */ - uint8_t realMods; /**< */ - uint8_t vmodsHigh; /**< */ - uint8_t vmodsLow; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_sa_lock_mods_t; - -/** - * @brief xcb_xkb_sa_lock_mods_iterator_t - **/ -typedef struct xcb_xkb_sa_lock_mods_iterator_t { - xcb_xkb_sa_lock_mods_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_lock_mods_iterator_t; - -/** - * @brief xcb_xkb_sa_set_group_t - **/ -typedef struct xcb_xkb_sa_set_group_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - int8_t group; /**< */ - uint8_t pad0[5]; /**< */ -} xcb_xkb_sa_set_group_t; - -/** - * @brief xcb_xkb_sa_set_group_iterator_t - **/ -typedef struct xcb_xkb_sa_set_group_iterator_t { - xcb_xkb_sa_set_group_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_set_group_iterator_t; - -/** - * @brief xcb_xkb_sa_latch_group_t - **/ -typedef struct xcb_xkb_sa_latch_group_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - int8_t group; /**< */ - uint8_t pad0[5]; /**< */ -} xcb_xkb_sa_latch_group_t; - -/** - * @brief xcb_xkb_sa_latch_group_iterator_t - **/ -typedef struct xcb_xkb_sa_latch_group_iterator_t { - xcb_xkb_sa_latch_group_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_latch_group_iterator_t; - -/** - * @brief xcb_xkb_sa_lock_group_t - **/ -typedef struct xcb_xkb_sa_lock_group_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - int8_t group; /**< */ - uint8_t pad0[5]; /**< */ -} xcb_xkb_sa_lock_group_t; - -/** - * @brief xcb_xkb_sa_lock_group_iterator_t - **/ -typedef struct xcb_xkb_sa_lock_group_iterator_t { - xcb_xkb_sa_lock_group_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_lock_group_iterator_t; - -typedef enum xcb_xkb_sa_move_ptr_flag_t { - XCB_XKB_SA_MOVE_PTR_FLAG_NO_ACCELERATION = 1, - XCB_XKB_SA_MOVE_PTR_FLAG_MOVE_ABSOLUTE_X = 2, - XCB_XKB_SA_MOVE_PTR_FLAG_MOVE_ABSOLUTE_Y = 4 -} xcb_xkb_sa_move_ptr_flag_t; - -/** - * @brief xcb_xkb_sa_move_ptr_t - **/ -typedef struct xcb_xkb_sa_move_ptr_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - int8_t xHigh; /**< */ - uint8_t xLow; /**< */ - int8_t yHigh; /**< */ - uint8_t yLow; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_sa_move_ptr_t; - -/** - * @brief xcb_xkb_sa_move_ptr_iterator_t - **/ -typedef struct xcb_xkb_sa_move_ptr_iterator_t { - xcb_xkb_sa_move_ptr_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_move_ptr_iterator_t; - -/** - * @brief xcb_xkb_sa_ptr_btn_t - **/ -typedef struct xcb_xkb_sa_ptr_btn_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - uint8_t count; /**< */ - uint8_t button; /**< */ - uint8_t pad0[4]; /**< */ -} xcb_xkb_sa_ptr_btn_t; - -/** - * @brief xcb_xkb_sa_ptr_btn_iterator_t - **/ -typedef struct xcb_xkb_sa_ptr_btn_iterator_t { - xcb_xkb_sa_ptr_btn_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_ptr_btn_iterator_t; - -/** - * @brief xcb_xkb_sa_lock_ptr_btn_t - **/ -typedef struct xcb_xkb_sa_lock_ptr_btn_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - uint8_t pad0; /**< */ - uint8_t button; /**< */ - uint8_t pad1[4]; /**< */ -} xcb_xkb_sa_lock_ptr_btn_t; - -/** - * @brief xcb_xkb_sa_lock_ptr_btn_iterator_t - **/ -typedef struct xcb_xkb_sa_lock_ptr_btn_iterator_t { - xcb_xkb_sa_lock_ptr_btn_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_lock_ptr_btn_iterator_t; - -typedef enum xcb_xkb_sa_set_ptr_dflt_flag_t { - XCB_XKB_SA_SET_PTR_DFLT_FLAG_DFLT_BTN_ABSOLUTE = 4, - XCB_XKB_SA_SET_PTR_DFLT_FLAG_AFFECT_DFLT_BUTTON = 1 -} xcb_xkb_sa_set_ptr_dflt_flag_t; - -/** - * @brief xcb_xkb_sa_set_ptr_dflt_t - **/ -typedef struct xcb_xkb_sa_set_ptr_dflt_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - uint8_t affect; /**< */ - int8_t value; /**< */ - uint8_t pad0[4]; /**< */ -} xcb_xkb_sa_set_ptr_dflt_t; - -/** - * @brief xcb_xkb_sa_set_ptr_dflt_iterator_t - **/ -typedef struct xcb_xkb_sa_set_ptr_dflt_iterator_t { - xcb_xkb_sa_set_ptr_dflt_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_set_ptr_dflt_iterator_t; - -typedef enum xcb_xkb_sa_iso_lock_flag_t { - XCB_XKB_SA_ISO_LOCK_FLAG_NO_LOCK = 1, - XCB_XKB_SA_ISO_LOCK_FLAG_NO_UNLOCK = 2, - XCB_XKB_SA_ISO_LOCK_FLAG_USE_MOD_MAP_MODS = 4, - XCB_XKB_SA_ISO_LOCK_FLAG_GROUP_ABSOLUTE = 4, - XCB_XKB_SA_ISO_LOCK_FLAG_ISO_DFLT_IS_GROUP = 8 -} xcb_xkb_sa_iso_lock_flag_t; - -typedef enum xcb_xkb_sa_iso_lock_no_affect_t { - XCB_XKB_SA_ISO_LOCK_NO_AFFECT_CTRLS = 8, - XCB_XKB_SA_ISO_LOCK_NO_AFFECT_PTR = 16, - XCB_XKB_SA_ISO_LOCK_NO_AFFECT_GROUP = 32, - XCB_XKB_SA_ISO_LOCK_NO_AFFECT_MODS = 64 -} xcb_xkb_sa_iso_lock_no_affect_t; - -/** - * @brief xcb_xkb_sa_iso_lock_t - **/ -typedef struct xcb_xkb_sa_iso_lock_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - uint8_t mask; /**< */ - uint8_t realMods; /**< */ - int8_t group; /**< */ - uint8_t affect; /**< */ - uint8_t vmodsHigh; /**< */ - uint8_t vmodsLow; /**< */ -} xcb_xkb_sa_iso_lock_t; - -/** - * @brief xcb_xkb_sa_iso_lock_iterator_t - **/ -typedef struct xcb_xkb_sa_iso_lock_iterator_t { - xcb_xkb_sa_iso_lock_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_iso_lock_iterator_t; - -/** - * @brief xcb_xkb_sa_terminate_t - **/ -typedef struct xcb_xkb_sa_terminate_t { - uint8_t type; /**< */ - uint8_t pad0[7]; /**< */ -} xcb_xkb_sa_terminate_t; - -/** - * @brief xcb_xkb_sa_terminate_iterator_t - **/ -typedef struct xcb_xkb_sa_terminate_iterator_t { - xcb_xkb_sa_terminate_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_terminate_iterator_t; - -typedef enum xcb_xkb_switch_screen_flag_t { - XCB_XKB_SWITCH_SCREEN_FLAG_APPLICATION = 1, - XCB_XKB_SWITCH_SCREEN_FLAG_ABSOLUTE = 4 -} xcb_xkb_switch_screen_flag_t; - -/** - * @brief xcb_xkb_sa_switch_screen_t - **/ -typedef struct xcb_xkb_sa_switch_screen_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - int8_t newScreen; /**< */ - uint8_t pad0[5]; /**< */ -} xcb_xkb_sa_switch_screen_t; - -/** - * @brief xcb_xkb_sa_switch_screen_iterator_t - **/ -typedef struct xcb_xkb_sa_switch_screen_iterator_t { - xcb_xkb_sa_switch_screen_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_switch_screen_iterator_t; - -typedef enum xcb_xkb_bool_ctrls_high_t { - XCB_XKB_BOOL_CTRLS_HIGH_ACCESS_X_FEEDBACK = 1, - XCB_XKB_BOOL_CTRLS_HIGH_AUDIBLE_BELL = 2, - XCB_XKB_BOOL_CTRLS_HIGH_OVERLAY_1 = 4, - XCB_XKB_BOOL_CTRLS_HIGH_OVERLAY_2 = 8, - XCB_XKB_BOOL_CTRLS_HIGH_IGNORE_GROUP_LOCK = 16 -} xcb_xkb_bool_ctrls_high_t; - -typedef enum xcb_xkb_bool_ctrls_low_t { - XCB_XKB_BOOL_CTRLS_LOW_REPEAT_KEYS = 1, - XCB_XKB_BOOL_CTRLS_LOW_SLOW_KEYS = 2, - XCB_XKB_BOOL_CTRLS_LOW_BOUNCE_KEYS = 4, - XCB_XKB_BOOL_CTRLS_LOW_STICKY_KEYS = 8, - XCB_XKB_BOOL_CTRLS_LOW_MOUSE_KEYS = 16, - XCB_XKB_BOOL_CTRLS_LOW_MOUSE_KEYS_ACCEL = 32, - XCB_XKB_BOOL_CTRLS_LOW_ACCESS_X_KEYS = 64, - XCB_XKB_BOOL_CTRLS_LOW_ACCESS_X_TIMEOUT = 128 -} xcb_xkb_bool_ctrls_low_t; - -/** - * @brief xcb_xkb_sa_set_controls_t - **/ -typedef struct xcb_xkb_sa_set_controls_t { - uint8_t type; /**< */ - uint8_t pad0[3]; /**< */ - uint8_t boolCtrlsHigh; /**< */ - uint8_t boolCtrlsLow; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_xkb_sa_set_controls_t; - -/** - * @brief xcb_xkb_sa_set_controls_iterator_t - **/ -typedef struct xcb_xkb_sa_set_controls_iterator_t { - xcb_xkb_sa_set_controls_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_set_controls_iterator_t; - -/** - * @brief xcb_xkb_sa_lock_controls_t - **/ -typedef struct xcb_xkb_sa_lock_controls_t { - uint8_t type; /**< */ - uint8_t pad0[3]; /**< */ - uint8_t boolCtrlsHigh; /**< */ - uint8_t boolCtrlsLow; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_xkb_sa_lock_controls_t; - -/** - * @brief xcb_xkb_sa_lock_controls_iterator_t - **/ -typedef struct xcb_xkb_sa_lock_controls_iterator_t { - xcb_xkb_sa_lock_controls_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_lock_controls_iterator_t; - -typedef enum xcb_xkb_action_message_flag_t { - XCB_XKB_ACTION_MESSAGE_FLAG_ON_PRESS = 1, - XCB_XKB_ACTION_MESSAGE_FLAG_ON_RELEASE = 2, - XCB_XKB_ACTION_MESSAGE_FLAG_GEN_KEY_EVENT = 4 -} xcb_xkb_action_message_flag_t; - -/** - * @brief xcb_xkb_sa_action_message_t - **/ -typedef struct xcb_xkb_sa_action_message_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - uint8_t message[6]; /**< */ -} xcb_xkb_sa_action_message_t; - -/** - * @brief xcb_xkb_sa_action_message_iterator_t - **/ -typedef struct xcb_xkb_sa_action_message_iterator_t { - xcb_xkb_sa_action_message_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_action_message_iterator_t; - -/** - * @brief xcb_xkb_sa_redirect_key_t - **/ -typedef struct xcb_xkb_sa_redirect_key_t { - uint8_t type; /**< */ - xcb_keycode_t newkey; /**< */ - uint8_t mask; /**< */ - uint8_t realModifiers; /**< */ - uint8_t vmodsMaskHigh; /**< */ - uint8_t vmodsMaskLow; /**< */ - uint8_t vmodsHigh; /**< */ - uint8_t vmodsLow; /**< */ -} xcb_xkb_sa_redirect_key_t; - -/** - * @brief xcb_xkb_sa_redirect_key_iterator_t - **/ -typedef struct xcb_xkb_sa_redirect_key_iterator_t { - xcb_xkb_sa_redirect_key_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_redirect_key_iterator_t; - -/** - * @brief xcb_xkb_sa_device_btn_t - **/ -typedef struct xcb_xkb_sa_device_btn_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - uint8_t count; /**< */ - uint8_t button; /**< */ - uint8_t device; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_xkb_sa_device_btn_t; - -/** - * @brief xcb_xkb_sa_device_btn_iterator_t - **/ -typedef struct xcb_xkb_sa_device_btn_iterator_t { - xcb_xkb_sa_device_btn_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_device_btn_iterator_t; - -typedef enum xcb_xkb_lock_device_flags_t { - XCB_XKB_LOCK_DEVICE_FLAGS_NO_LOCK = 1, - XCB_XKB_LOCK_DEVICE_FLAGS_NO_UNLOCK = 2 -} xcb_xkb_lock_device_flags_t; - -/** - * @brief xcb_xkb_sa_lock_device_btn_t - **/ -typedef struct xcb_xkb_sa_lock_device_btn_t { - uint8_t type; /**< */ - uint8_t flags; /**< */ - uint8_t pad0; /**< */ - uint8_t button; /**< */ - uint8_t device; /**< */ - uint8_t pad1[3]; /**< */ -} xcb_xkb_sa_lock_device_btn_t; - -/** - * @brief xcb_xkb_sa_lock_device_btn_iterator_t - **/ -typedef struct xcb_xkb_sa_lock_device_btn_iterator_t { - xcb_xkb_sa_lock_device_btn_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_lock_device_btn_iterator_t; - -typedef enum xcb_xkb_sa_val_what_t { - XCB_XKB_SA_VAL_WHAT_IGNORE_VAL = 0, - XCB_XKB_SA_VAL_WHAT_SET_VAL_MIN = 1, - XCB_XKB_SA_VAL_WHAT_SET_VAL_CENTER = 2, - XCB_XKB_SA_VAL_WHAT_SET_VAL_MAX = 3, - XCB_XKB_SA_VAL_WHAT_SET_VAL_RELATIVE = 4, - XCB_XKB_SA_VAL_WHAT_SET_VAL_ABSOLUTE = 5 -} xcb_xkb_sa_val_what_t; - -/** - * @brief xcb_xkb_sa_device_valuator_t - **/ -typedef struct xcb_xkb_sa_device_valuator_t { - uint8_t type; /**< */ - uint8_t device; /**< */ - uint8_t val1what; /**< */ - uint8_t val1index; /**< */ - uint8_t val1value; /**< */ - uint8_t val2what; /**< */ - uint8_t val2index; /**< */ - uint8_t val2value; /**< */ -} xcb_xkb_sa_device_valuator_t; - -/** - * @brief xcb_xkb_sa_device_valuator_iterator_t - **/ -typedef struct xcb_xkb_sa_device_valuator_iterator_t { - xcb_xkb_sa_device_valuator_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sa_device_valuator_iterator_t; - -/** - * @brief xcb_xkb_si_action_t - **/ -typedef struct xcb_xkb_si_action_t { - uint8_t type; /**< */ - uint8_t data[7]; /**< */ -} xcb_xkb_si_action_t; - -/** - * @brief xcb_xkb_si_action_iterator_t - **/ -typedef struct xcb_xkb_si_action_iterator_t { - xcb_xkb_si_action_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_si_action_iterator_t; - -/** - * @brief xcb_xkb_sym_interpret_t - **/ -typedef struct xcb_xkb_sym_interpret_t { - xcb_keysym_t sym; /**< */ - uint8_t mods; /**< */ - uint8_t match; /**< */ - uint8_t virtualMod; /**< */ - uint8_t flags; /**< */ - xcb_xkb_si_action_t action; /**< */ -} xcb_xkb_sym_interpret_t; - -/** - * @brief xcb_xkb_sym_interpret_iterator_t - **/ -typedef struct xcb_xkb_sym_interpret_iterator_t { - xcb_xkb_sym_interpret_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_sym_interpret_iterator_t; - -/** - * @brief xcb_xkb_action_t - **/ -typedef union xcb_xkb_action_t { - xcb_xkb_sa_no_action_t noaction; /**< */ - xcb_xkb_sa_set_mods_t setmods; /**< */ - xcb_xkb_sa_latch_mods_t latchmods; /**< */ - xcb_xkb_sa_lock_mods_t lockmods; /**< */ - xcb_xkb_sa_set_group_t setgroup; /**< */ - xcb_xkb_sa_latch_group_t latchgroup; /**< */ - xcb_xkb_sa_lock_group_t lockgroup; /**< */ - xcb_xkb_sa_move_ptr_t moveptr; /**< */ - xcb_xkb_sa_ptr_btn_t ptrbtn; /**< */ - xcb_xkb_sa_lock_ptr_btn_t lockptrbtn; /**< */ - xcb_xkb_sa_set_ptr_dflt_t setptrdflt; /**< */ - xcb_xkb_sa_iso_lock_t isolock; /**< */ - xcb_xkb_sa_terminate_t terminate; /**< */ - xcb_xkb_sa_switch_screen_t switchscreen; /**< */ - xcb_xkb_sa_set_controls_t setcontrols; /**< */ - xcb_xkb_sa_lock_controls_t lockcontrols; /**< */ - xcb_xkb_sa_action_message_t message; /**< */ - xcb_xkb_sa_redirect_key_t redirect; /**< */ - xcb_xkb_sa_device_btn_t devbtn; /**< */ - xcb_xkb_sa_lock_device_btn_t lockdevbtn; /**< */ - xcb_xkb_sa_device_valuator_t devval; /**< */ - uint8_t type; /**< */ -} xcb_xkb_action_t; - -/** - * @brief xcb_xkb_action_iterator_t - **/ -typedef struct xcb_xkb_action_iterator_t { - xcb_xkb_action_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xkb_action_iterator_t; - -/** - * @brief xcb_xkb_use_extension_cookie_t - **/ -typedef struct xcb_xkb_use_extension_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_use_extension_cookie_t; - -/** Opcode for xcb_xkb_use_extension. */ -#define XCB_XKB_USE_EXTENSION 0 - -/** - * @brief xcb_xkb_use_extension_request_t - **/ -typedef struct xcb_xkb_use_extension_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t wantedMajor; /**< */ - uint16_t wantedMinor; /**< */ -} xcb_xkb_use_extension_request_t; - -/** - * @brief xcb_xkb_use_extension_reply_t - **/ -typedef struct xcb_xkb_use_extension_reply_t { - uint8_t response_type; /**< */ - uint8_t supported; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t serverMajor; /**< */ - uint16_t serverMinor; /**< */ - uint8_t pad0[20]; /**< */ -} xcb_xkb_use_extension_reply_t; - -/** - * @brief xcb_xkb_select_events_details_t - **/ -typedef struct xcb_xkb_select_events_details_t { - uint16_t affectNewKeyboard; /**< */ - uint16_t newKeyboardDetails; /**< */ - uint16_t affectState; /**< */ - uint16_t stateDetails; /**< */ - uint32_t affectCtrls; /**< */ - uint32_t ctrlDetails; /**< */ - uint32_t affectIndicatorState; /**< */ - uint32_t indicatorStateDetails; /**< */ - uint32_t affectIndicatorMap; /**< */ - uint32_t indicatorMapDetails; /**< */ - uint16_t affectNames; /**< */ - uint16_t namesDetails; /**< */ - uint8_t affectCompat; /**< */ - uint8_t compatDetails; /**< */ - uint8_t affectBell; /**< */ - uint8_t bellDetails; /**< */ - uint8_t affectMsgDetails; /**< */ - uint8_t msgDetails; /**< */ - uint16_t affectAccessX; /**< */ - uint16_t accessXDetails; /**< */ - uint16_t affectExtDev; /**< */ - uint16_t extdevDetails; /**< */ -} xcb_xkb_select_events_details_t; - -/** Opcode for xcb_xkb_select_events. */ -#define XCB_XKB_SELECT_EVENTS 1 - -/** - * @brief xcb_xkb_select_events_request_t - **/ -typedef struct xcb_xkb_select_events_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint16_t affectWhich; /**< */ - uint16_t clear; /**< */ - uint16_t selectAll; /**< */ - uint16_t affectMap; /**< */ - uint16_t map; /**< */ -} xcb_xkb_select_events_request_t; - -/** Opcode for xcb_xkb_bell. */ -#define XCB_XKB_BELL 3 - -/** - * @brief xcb_xkb_bell_request_t - **/ -typedef struct xcb_xkb_bell_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - xcb_xkb_bell_class_spec_t bellClass; /**< */ - xcb_xkb_id_spec_t bellID; /**< */ - int8_t percent; /**< */ - uint8_t forceSound; /**< */ - uint8_t eventOnly; /**< */ - uint8_t pad0; /**< */ - int16_t pitch; /**< */ - int16_t duration; /**< */ - uint8_t pad1[2]; /**< */ - xcb_atom_t name; /**< */ - xcb_window_t window; /**< */ -} xcb_xkb_bell_request_t; - -/** - * @brief xcb_xkb_get_state_cookie_t - **/ -typedef struct xcb_xkb_get_state_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_get_state_cookie_t; - -/** Opcode for xcb_xkb_get_state. */ -#define XCB_XKB_GET_STATE 4 - -/** - * @brief xcb_xkb_get_state_request_t - **/ -typedef struct xcb_xkb_get_state_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_get_state_request_t; - -/** - * @brief xcb_xkb_get_state_reply_t - **/ -typedef struct xcb_xkb_get_state_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t mods; /**< */ - uint8_t baseMods; /**< */ - uint8_t latchedMods; /**< */ - uint8_t lockedMods; /**< */ - uint8_t group; /**< */ - uint8_t lockedGroup; /**< */ - int16_t baseGroup; /**< */ - int16_t latchedGroup; /**< */ - uint8_t compatState; /**< */ - uint8_t grabMods; /**< */ - uint8_t compatGrabMods; /**< */ - uint8_t lookupMods; /**< */ - uint8_t compatLookupMods; /**< */ - uint8_t pad0; /**< */ - uint16_t ptrBtnState; /**< */ - uint8_t pad1[6]; /**< */ -} xcb_xkb_get_state_reply_t; - -/** Opcode for xcb_xkb_latch_lock_state. */ -#define XCB_XKB_LATCH_LOCK_STATE 5 - -/** - * @brief xcb_xkb_latch_lock_state_request_t - **/ -typedef struct xcb_xkb_latch_lock_state_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t affectModLocks; /**< */ - uint8_t modLocks; /**< */ - uint8_t lockGroup; /**< */ - uint8_t groupLock; /**< */ - uint8_t affectModLatches; /**< */ - uint8_t pad0; /**< */ - uint8_t pad1; /**< */ - uint8_t latchGroup; /**< */ - uint16_t groupLatch; /**< */ -} xcb_xkb_latch_lock_state_request_t; - -/** - * @brief xcb_xkb_get_controls_cookie_t - **/ -typedef struct xcb_xkb_get_controls_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_get_controls_cookie_t; - -/** Opcode for xcb_xkb_get_controls. */ -#define XCB_XKB_GET_CONTROLS 6 - -/** - * @brief xcb_xkb_get_controls_request_t - **/ -typedef struct xcb_xkb_get_controls_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_get_controls_request_t; - -/** - * @brief xcb_xkb_get_controls_reply_t - **/ -typedef struct xcb_xkb_get_controls_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t mouseKeysDfltBtn; /**< */ - uint8_t numGroups; /**< */ - uint8_t groupsWrap; /**< */ - uint8_t internalModsMask; /**< */ - uint8_t ignoreLockModsMask; /**< */ - uint8_t internalModsRealMods; /**< */ - uint8_t ignoreLockModsRealMods; /**< */ - uint8_t pad0; /**< */ - uint16_t internalModsVmods; /**< */ - uint16_t ignoreLockModsVmods; /**< */ - uint16_t repeatDelay; /**< */ - uint16_t repeatInterval; /**< */ - uint16_t slowKeysDelay; /**< */ - uint16_t debounceDelay; /**< */ - uint16_t mouseKeysDelay; /**< */ - uint16_t mouseKeysInterval; /**< */ - uint16_t mouseKeysTimeToMax; /**< */ - uint16_t mouseKeysMaxSpeed; /**< */ - int16_t mouseKeysCurve; /**< */ - uint16_t accessXOption; /**< */ - uint16_t accessXTimeout; /**< */ - uint16_t accessXTimeoutOptionsMask; /**< */ - uint16_t accessXTimeoutOptionsValues; /**< */ - uint8_t pad1[2]; /**< */ - uint32_t accessXTimeoutMask; /**< */ - uint32_t accessXTimeoutValues; /**< */ - uint32_t enabledControls; /**< */ - uint8_t perKeyRepeat[32]; /**< */ -} xcb_xkb_get_controls_reply_t; - -/** Opcode for xcb_xkb_set_controls. */ -#define XCB_XKB_SET_CONTROLS 7 - -/** - * @brief xcb_xkb_set_controls_request_t - **/ -typedef struct xcb_xkb_set_controls_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t affectInternalRealMods; /**< */ - uint8_t internalRealMods; /**< */ - uint8_t affectIgnoreLockRealMods; /**< */ - uint8_t ignoreLockRealMods; /**< */ - uint16_t affectInternalVirtualMods; /**< */ - uint16_t internalVirtualMods; /**< */ - uint16_t affectIgnoreLockVirtualMods; /**< */ - uint16_t ignoreLockVirtualMods; /**< */ - uint8_t mouseKeysDfltBtn; /**< */ - uint8_t groupsWrap; /**< */ - uint16_t accessXOptions; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t affectEnabledControls; /**< */ - uint32_t enabledControls; /**< */ - uint32_t changeControls; /**< */ - uint16_t repeatDelay; /**< */ - uint16_t repeatInterval; /**< */ - uint16_t slowKeysDelay; /**< */ - uint16_t debounceDelay; /**< */ - uint16_t mouseKeysDelay; /**< */ - uint16_t mouseKeysInterval; /**< */ - uint16_t mouseKeysTimeToMax; /**< */ - uint16_t mouseKeysMaxSpeed; /**< */ - int16_t mouseKeysCurve; /**< */ - uint16_t accessXTimeout; /**< */ - uint32_t accessXTimeoutMask; /**< */ - uint32_t accessXTimeoutValues; /**< */ - uint16_t accessXTimeoutOptionsMask; /**< */ - uint16_t accessXTimeoutOptionsValues; /**< */ - uint8_t perKeyRepeat[32]; /**< */ -} xcb_xkb_set_controls_request_t; - -/** - * @brief xcb_xkb_get_map_cookie_t - **/ -typedef struct xcb_xkb_get_map_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_get_map_cookie_t; - -/** Opcode for xcb_xkb_get_map. */ -#define XCB_XKB_GET_MAP 8 - -/** - * @brief xcb_xkb_get_map_request_t - **/ -typedef struct xcb_xkb_get_map_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint16_t full; /**< */ - uint16_t partial; /**< */ - uint8_t firstType; /**< */ - uint8_t nTypes; /**< */ - xcb_keycode_t firstKeySym; /**< */ - uint8_t nKeySyms; /**< */ - xcb_keycode_t firstKeyAction; /**< */ - uint8_t nKeyActions; /**< */ - xcb_keycode_t firstKeyBehavior; /**< */ - uint8_t nKeyBehaviors; /**< */ - uint16_t virtualMods; /**< */ - xcb_keycode_t firstKeyExplicit; /**< */ - uint8_t nKeyExplicit; /**< */ - xcb_keycode_t firstModMapKey; /**< */ - uint8_t nModMapKeys; /**< */ - xcb_keycode_t firstVModMapKey; /**< */ - uint8_t nVModMapKeys; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_get_map_request_t; - -/** - * @brief xcb_xkb_get_map_map_t - **/ -typedef struct xcb_xkb_get_map_map_t { - xcb_xkb_key_type_t *types_rtrn; /**< */ - xcb_xkb_key_sym_map_t *syms_rtrn; /**< */ - uint8_t *acts_rtrn_count; /**< */ - uint8_t *pad2; /**< */ - xcb_xkb_action_t *acts_rtrn_acts; /**< */ - xcb_xkb_set_behavior_t *behaviors_rtrn; /**< */ - uint8_t *vmods_rtrn; /**< */ - uint8_t *pad3; /**< */ - xcb_xkb_set_explicit_t *explicit_rtrn; /**< */ - uint8_t *pad4; /**< */ - xcb_xkb_key_mod_map_t *modmap_rtrn; /**< */ - uint8_t *pad5; /**< */ - xcb_xkb_key_v_mod_map_t *vmodmap_rtrn; /**< */ -} xcb_xkb_get_map_map_t; - -/** - * @brief xcb_xkb_get_map_reply_t - **/ -typedef struct xcb_xkb_get_map_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad0[2]; /**< */ - xcb_keycode_t minKeyCode; /**< */ - xcb_keycode_t maxKeyCode; /**< */ - uint16_t present; /**< */ - uint8_t firstType; /**< */ - uint8_t nTypes; /**< */ - uint8_t totalTypes; /**< */ - xcb_keycode_t firstKeySym; /**< */ - uint16_t totalSyms; /**< */ - uint8_t nKeySyms; /**< */ - xcb_keycode_t firstKeyAction; /**< */ - uint16_t totalActions; /**< */ - uint8_t nKeyActions; /**< */ - xcb_keycode_t firstKeyBehavior; /**< */ - uint8_t nKeyBehaviors; /**< */ - uint8_t totalKeyBehaviors; /**< */ - xcb_keycode_t firstKeyExplicit; /**< */ - uint8_t nKeyExplicit; /**< */ - uint8_t totalKeyExplicit; /**< */ - xcb_keycode_t firstModMapKey; /**< */ - uint8_t nModMapKeys; /**< */ - uint8_t totalModMapKeys; /**< */ - xcb_keycode_t firstVModMapKey; /**< */ - uint8_t nVModMapKeys; /**< */ - uint8_t totalVModMapKeys; /**< */ - uint8_t pad1; /**< */ - uint16_t virtualMods; /**< */ -} xcb_xkb_get_map_reply_t; - -/** - * @brief xcb_xkb_set_map_values_t - **/ -typedef struct xcb_xkb_set_map_values_t { - xcb_xkb_set_key_type_t *types; /**< */ - xcb_xkb_key_sym_map_t *syms; /**< */ - uint8_t *actionsCount; /**< */ - xcb_xkb_action_t *actions; /**< */ - xcb_xkb_set_behavior_t *behaviors; /**< */ - uint8_t *vmods; /**< */ - xcb_xkb_set_explicit_t *explicit; /**< */ - xcb_xkb_key_mod_map_t *modmap; /**< */ - xcb_xkb_key_v_mod_map_t *vmodmap; /**< */ -} xcb_xkb_set_map_values_t; - -/** Opcode for xcb_xkb_set_map. */ -#define XCB_XKB_SET_MAP 9 - -/** - * @brief xcb_xkb_set_map_request_t - **/ -typedef struct xcb_xkb_set_map_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint16_t present; /**< */ - uint16_t flags; /**< */ - xcb_keycode_t minKeyCode; /**< */ - xcb_keycode_t maxKeyCode; /**< */ - uint8_t firstType; /**< */ - uint8_t nTypes; /**< */ - xcb_keycode_t firstKeySym; /**< */ - uint8_t nKeySyms; /**< */ - uint16_t totalSyms; /**< */ - xcb_keycode_t firstKeyAction; /**< */ - uint8_t nKeyActions; /**< */ - uint16_t totalActions; /**< */ - xcb_keycode_t firstKeyBehavior; /**< */ - uint8_t nKeyBehaviors; /**< */ - uint8_t totalKeyBehaviors; /**< */ - xcb_keycode_t firstKeyExplicit; /**< */ - uint8_t nKeyExplicit; /**< */ - uint8_t totalKeyExplicit; /**< */ - xcb_keycode_t firstModMapKey; /**< */ - uint8_t nModMapKeys; /**< */ - uint8_t totalModMapKeys; /**< */ - xcb_keycode_t firstVModMapKey; /**< */ - uint8_t nVModMapKeys; /**< */ - uint8_t totalVModMapKeys; /**< */ - uint16_t virtualMods; /**< */ -} xcb_xkb_set_map_request_t; - -/** - * @brief xcb_xkb_get_compat_map_cookie_t - **/ -typedef struct xcb_xkb_get_compat_map_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_get_compat_map_cookie_t; - -/** Opcode for xcb_xkb_get_compat_map. */ -#define XCB_XKB_GET_COMPAT_MAP 10 - -/** - * @brief xcb_xkb_get_compat_map_request_t - **/ -typedef struct xcb_xkb_get_compat_map_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t groups; /**< */ - uint8_t getAllSI; /**< */ - uint16_t firstSI; /**< */ - uint16_t nSI; /**< */ -} xcb_xkb_get_compat_map_request_t; - -/** - * @brief xcb_xkb_get_compat_map_reply_t - **/ -typedef struct xcb_xkb_get_compat_map_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t groupsRtrn; /**< */ - uint8_t pad0; /**< */ - uint16_t firstSIRtrn; /**< */ - uint16_t nSIRtrn; /**< */ - uint16_t nTotalSI; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_xkb_get_compat_map_reply_t; - -/** Opcode for xcb_xkb_set_compat_map. */ -#define XCB_XKB_SET_COMPAT_MAP 11 - -/** - * @brief xcb_xkb_set_compat_map_request_t - **/ -typedef struct xcb_xkb_set_compat_map_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t pad0; /**< */ - uint8_t recomputeActions; /**< */ - uint8_t truncateSI; /**< */ - uint8_t groups; /**< */ - uint16_t firstSI; /**< */ - uint16_t nSI; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_xkb_set_compat_map_request_t; - -/** - * @brief xcb_xkb_get_indicator_state_cookie_t - **/ -typedef struct xcb_xkb_get_indicator_state_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_get_indicator_state_cookie_t; - -/** Opcode for xcb_xkb_get_indicator_state. */ -#define XCB_XKB_GET_INDICATOR_STATE 12 - -/** - * @brief xcb_xkb_get_indicator_state_request_t - **/ -typedef struct xcb_xkb_get_indicator_state_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_get_indicator_state_request_t; - -/** - * @brief xcb_xkb_get_indicator_state_reply_t - **/ -typedef struct xcb_xkb_get_indicator_state_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t state; /**< */ - uint8_t pad0[20]; /**< */ -} xcb_xkb_get_indicator_state_reply_t; - -/** - * @brief xcb_xkb_get_indicator_map_cookie_t - **/ -typedef struct xcb_xkb_get_indicator_map_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_get_indicator_map_cookie_t; - -/** Opcode for xcb_xkb_get_indicator_map. */ -#define XCB_XKB_GET_INDICATOR_MAP 13 - -/** - * @brief xcb_xkb_get_indicator_map_request_t - **/ -typedef struct xcb_xkb_get_indicator_map_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t which; /**< */ -} xcb_xkb_get_indicator_map_request_t; - -/** - * @brief xcb_xkb_get_indicator_map_reply_t - **/ -typedef struct xcb_xkb_get_indicator_map_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t which; /**< */ - uint32_t realIndicators; /**< */ - uint8_t nIndicators; /**< */ - uint8_t pad0[15]; /**< */ -} xcb_xkb_get_indicator_map_reply_t; - -/** Opcode for xcb_xkb_set_indicator_map. */ -#define XCB_XKB_SET_INDICATOR_MAP 14 - -/** - * @brief xcb_xkb_set_indicator_map_request_t - **/ -typedef struct xcb_xkb_set_indicator_map_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t which; /**< */ -} xcb_xkb_set_indicator_map_request_t; - -/** - * @brief xcb_xkb_get_named_indicator_cookie_t - **/ -typedef struct xcb_xkb_get_named_indicator_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_get_named_indicator_cookie_t; - -/** Opcode for xcb_xkb_get_named_indicator. */ -#define XCB_XKB_GET_NAMED_INDICATOR 15 - -/** - * @brief xcb_xkb_get_named_indicator_request_t - **/ -typedef struct xcb_xkb_get_named_indicator_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - xcb_xkb_led_class_spec_t ledClass; /**< */ - xcb_xkb_id_spec_t ledID; /**< */ - uint8_t pad0[2]; /**< */ - xcb_atom_t indicator; /**< */ -} xcb_xkb_get_named_indicator_request_t; - -/** - * @brief xcb_xkb_get_named_indicator_reply_t - **/ -typedef struct xcb_xkb_get_named_indicator_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_atom_t indicator; /**< */ - uint8_t found; /**< */ - uint8_t on; /**< */ - uint8_t realIndicator; /**< */ - uint8_t ndx; /**< */ - uint8_t map_flags; /**< */ - uint8_t map_whichGroups; /**< */ - uint8_t map_groups; /**< */ - uint8_t map_whichMods; /**< */ - uint8_t map_mods; /**< */ - uint8_t map_realMods; /**< */ - uint16_t map_vmod; /**< */ - uint32_t map_ctrls; /**< */ - uint8_t supported; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_xkb_get_named_indicator_reply_t; - -/** Opcode for xcb_xkb_set_named_indicator. */ -#define XCB_XKB_SET_NAMED_INDICATOR 16 - -/** - * @brief xcb_xkb_set_named_indicator_request_t - **/ -typedef struct xcb_xkb_set_named_indicator_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - xcb_xkb_led_class_spec_t ledClass; /**< */ - xcb_xkb_id_spec_t ledID; /**< */ - uint8_t pad0[2]; /**< */ - xcb_atom_t indicator; /**< */ - uint8_t setState; /**< */ - uint8_t on; /**< */ - uint8_t setMap; /**< */ - uint8_t createMap; /**< */ - uint8_t pad1; /**< */ - uint8_t map_flags; /**< */ - uint8_t map_whichGroups; /**< */ - uint8_t map_groups; /**< */ - uint8_t map_whichMods; /**< */ - uint8_t map_realMods; /**< */ - uint16_t map_vmods; /**< */ - uint32_t map_ctrls; /**< */ -} xcb_xkb_set_named_indicator_request_t; - -/** - * @brief xcb_xkb_get_names_cookie_t - **/ -typedef struct xcb_xkb_get_names_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_get_names_cookie_t; - -/** Opcode for xcb_xkb_get_names. */ -#define XCB_XKB_GET_NAMES 17 - -/** - * @brief xcb_xkb_get_names_request_t - **/ -typedef struct xcb_xkb_get_names_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t which; /**< */ -} xcb_xkb_get_names_request_t; - -/** - * @brief xcb_xkb_get_names_value_list_t - **/ -typedef struct xcb_xkb_get_names_value_list_t { - xcb_atom_t keycodesName; /**< */ - xcb_atom_t geometryName; /**< */ - xcb_atom_t symbolsName; /**< */ - xcb_atom_t physSymbolsName; /**< */ - xcb_atom_t typesName; /**< */ - xcb_atom_t compatName; /**< */ - xcb_atom_t *typeNames; /**< */ - uint8_t *nLevelsPerType; /**< */ - uint8_t *alignment_pad; /**< */ - xcb_atom_t *ktLevelNames; /**< */ - xcb_atom_t *indicatorNames; /**< */ - xcb_atom_t *virtualModNames; /**< */ - xcb_atom_t *groups; /**< */ - xcb_xkb_key_name_t *keyNames; /**< */ - xcb_xkb_key_alias_t *keyAliases; /**< */ - xcb_atom_t *radioGroupNames; /**< */ -} xcb_xkb_get_names_value_list_t; - -/** - * @brief xcb_xkb_get_names_reply_t - **/ -typedef struct xcb_xkb_get_names_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t which; /**< */ - xcb_keycode_t minKeyCode; /**< */ - xcb_keycode_t maxKeyCode; /**< */ - uint8_t nTypes; /**< */ - uint8_t groupNames; /**< */ - uint16_t virtualMods; /**< */ - xcb_keycode_t firstKey; /**< */ - uint8_t nKeys; /**< */ - uint32_t indicators; /**< */ - uint8_t nRadioGroups; /**< */ - uint8_t nKeyAliases; /**< */ - uint16_t nKTLevels; /**< */ - uint8_t pad0[4]; /**< */ -} xcb_xkb_get_names_reply_t; - -/** - * @brief xcb_xkb_set_names_values_t - **/ -typedef struct xcb_xkb_set_names_values_t { - xcb_atom_t keycodesName; /**< */ - xcb_atom_t geometryName; /**< */ - xcb_atom_t symbolsName; /**< */ - xcb_atom_t physSymbolsName; /**< */ - xcb_atom_t typesName; /**< */ - xcb_atom_t compatName; /**< */ - xcb_atom_t *typeNames; /**< */ - uint8_t *nLevelsPerType; /**< */ - xcb_atom_t *ktLevelNames; /**< */ - xcb_atom_t *indicatorNames; /**< */ - xcb_atom_t *virtualModNames; /**< */ - xcb_atom_t *groups; /**< */ - xcb_xkb_key_name_t *keyNames; /**< */ - xcb_xkb_key_alias_t *keyAliases; /**< */ - xcb_atom_t *radioGroupNames; /**< */ -} xcb_xkb_set_names_values_t; - -/** Opcode for xcb_xkb_set_names. */ -#define XCB_XKB_SET_NAMES 18 - -/** - * @brief xcb_xkb_set_names_request_t - **/ -typedef struct xcb_xkb_set_names_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint16_t virtualMods; /**< */ - uint32_t which; /**< */ - uint8_t firstType; /**< */ - uint8_t nTypes; /**< */ - uint8_t firstKTLevelt; /**< */ - uint8_t nKTLevels; /**< */ - uint32_t indicators; /**< */ - uint8_t groupNames; /**< */ - uint8_t nRadioGroups; /**< */ - xcb_keycode_t firstKey; /**< */ - uint8_t nKeys; /**< */ - uint8_t nKeyAliases; /**< */ - uint8_t pad0; /**< */ - uint16_t totalKTLevelNames; /**< */ -} xcb_xkb_set_names_request_t; - -/** - * @brief xcb_xkb_per_client_flags_cookie_t - **/ -typedef struct xcb_xkb_per_client_flags_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_per_client_flags_cookie_t; - -/** Opcode for xcb_xkb_per_client_flags. */ -#define XCB_XKB_PER_CLIENT_FLAGS 21 - -/** - * @brief xcb_xkb_per_client_flags_request_t - **/ -typedef struct xcb_xkb_per_client_flags_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t change; /**< */ - uint32_t value; /**< */ - uint32_t ctrlsToChange; /**< */ - uint32_t autoCtrls; /**< */ - uint32_t autoCtrlsValues; /**< */ -} xcb_xkb_per_client_flags_request_t; - -/** - * @brief xcb_xkb_per_client_flags_reply_t - **/ -typedef struct xcb_xkb_per_client_flags_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t supported; /**< */ - uint32_t value; /**< */ - uint32_t autoCtrls; /**< */ - uint32_t autoCtrlsValues; /**< */ - uint8_t pad0[8]; /**< */ -} xcb_xkb_per_client_flags_reply_t; - -/** - * @brief xcb_xkb_list_components_cookie_t - **/ -typedef struct xcb_xkb_list_components_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_list_components_cookie_t; - -/** Opcode for xcb_xkb_list_components. */ -#define XCB_XKB_LIST_COMPONENTS 22 - -/** - * @brief xcb_xkb_list_components_request_t - **/ -typedef struct xcb_xkb_list_components_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint16_t maxNames; /**< */ -} xcb_xkb_list_components_request_t; - -/** - * @brief xcb_xkb_list_components_reply_t - **/ -typedef struct xcb_xkb_list_components_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t nKeymaps; /**< */ - uint16_t nKeycodes; /**< */ - uint16_t nTypes; /**< */ - uint16_t nCompatMaps; /**< */ - uint16_t nSymbols; /**< */ - uint16_t nGeometries; /**< */ - uint16_t extra; /**< */ - uint8_t pad0[10]; /**< */ -} xcb_xkb_list_components_reply_t; - -/** - * @brief xcb_xkb_get_kbd_by_name_cookie_t - **/ -typedef struct xcb_xkb_get_kbd_by_name_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_get_kbd_by_name_cookie_t; - -/** Opcode for xcb_xkb_get_kbd_by_name. */ -#define XCB_XKB_GET_KBD_BY_NAME 23 - -/** - * @brief xcb_xkb_get_kbd_by_name_request_t - **/ -typedef struct xcb_xkb_get_kbd_by_name_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint16_t need; /**< */ - uint16_t want; /**< */ - uint8_t load; /**< */ - uint8_t pad0; /**< */ -} xcb_xkb_get_kbd_by_name_request_t; - -/** - * @brief xcb_xkb_get_kbd_by_name_replies_types_map_t - **/ -typedef struct xcb_xkb_get_kbd_by_name_replies_types_map_t { - xcb_xkb_key_type_t *types_rtrn; /**< */ - xcb_xkb_key_sym_map_t *syms_rtrn; /**< */ - uint8_t *acts_rtrn_count; /**< */ - xcb_xkb_action_t *acts_rtrn_acts; /**< */ - xcb_xkb_set_behavior_t *behaviors_rtrn; /**< */ - uint8_t *vmods_rtrn; /**< */ - xcb_xkb_set_explicit_t *explicit_rtrn; /**< */ - xcb_xkb_key_mod_map_t *modmap_rtrn; /**< */ - xcb_xkb_key_v_mod_map_t *vmodmap_rtrn; /**< */ -} xcb_xkb_get_kbd_by_name_replies_types_map_t; - -/** - * @brief xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t - **/ -typedef struct xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t { - xcb_atom_t keycodesName; /**< */ - xcb_atom_t geometryName; /**< */ - xcb_atom_t symbolsName; /**< */ - xcb_atom_t physSymbolsName; /**< */ - xcb_atom_t typesName; /**< */ - xcb_atom_t compatName; /**< */ - xcb_atom_t *typeNames; /**< */ - uint8_t *nLevelsPerType; /**< */ - xcb_atom_t *ktLevelNames; /**< */ - xcb_atom_t *indicatorNames; /**< */ - xcb_atom_t *virtualModNames; /**< */ - xcb_atom_t *groups; /**< */ - xcb_xkb_key_name_t *keyNames; /**< */ - xcb_xkb_key_alias_t *keyAliases; /**< */ - xcb_atom_t *radioGroupNames; /**< */ -} xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t; - -/** - * @brief xcb_xkb_get_kbd_by_name_replies_t - **/ -typedef struct xcb_xkb_get_kbd_by_name_replies_t { - struct _types { - uint8_t getmap_type; /**< */ - uint8_t typeDeviceID; /**< */ - uint16_t getmap_sequence; /**< */ - uint32_t getmap_length; /**< */ - uint8_t pad1[2]; /**< */ - xcb_keycode_t typeMinKeyCode; /**< */ - xcb_keycode_t typeMaxKeyCode; /**< */ - uint16_t present; /**< */ - uint8_t firstType; /**< */ - uint8_t nTypes; /**< */ - uint8_t totalTypes; /**< */ - xcb_keycode_t firstKeySym; /**< */ - uint16_t totalSyms; /**< */ - uint8_t nKeySyms; /**< */ - xcb_keycode_t firstKeyAction; /**< */ - uint16_t totalActions; /**< */ - uint8_t nKeyActions; /**< */ - xcb_keycode_t firstKeyBehavior; /**< */ - uint8_t nKeyBehaviors; /**< */ - uint8_t totalKeyBehaviors; /**< */ - xcb_keycode_t firstKeyExplicit; /**< */ - uint8_t nKeyExplicit; /**< */ - uint8_t totalKeyExplicit; /**< */ - xcb_keycode_t firstModMapKey; /**< */ - uint8_t nModMapKeys; /**< */ - uint8_t totalModMapKeys; /**< */ - xcb_keycode_t firstVModMapKey; /**< */ - uint8_t nVModMapKeys; /**< */ - uint8_t totalVModMapKeys; /**< */ - uint8_t pad2; /**< */ - uint16_t virtualMods; /**< */ - xcb_xkb_get_kbd_by_name_replies_types_map_t map; /**< */ - } types; - struct _compat_map { - uint8_t compatmap_type; /**< */ - uint8_t compatDeviceID; /**< */ - uint16_t compatmap_sequence; /**< */ - uint32_t compatmap_length; /**< */ - uint8_t groupsRtrn; /**< */ - uint8_t pad3; /**< */ - uint16_t firstSIRtrn; /**< */ - uint16_t nSIRtrn; /**< */ - uint16_t nTotalSI; /**< */ - uint8_t pad4[16]; /**< */ - xcb_xkb_sym_interpret_t *si_rtrn; /**< */ - xcb_xkb_mod_def_t *group_rtrn; /**< */ - } compat_map; - struct _indicator_maps { - uint8_t indicatormap_type; /**< */ - uint8_t indicatorDeviceID; /**< */ - uint16_t indicatormap_sequence; /**< */ - uint32_t indicatormap_length; /**< */ - uint32_t which; /**< */ - uint32_t realIndicators; /**< */ - uint8_t nIndicators; /**< */ - uint8_t pad5[15]; /**< */ - xcb_xkb_indicator_map_t *maps; /**< */ - } indicator_maps; - struct _key_names { - uint8_t keyname_type; /**< */ - uint8_t keyDeviceID; /**< */ - uint16_t keyname_sequence; /**< */ - uint32_t keyname_length; /**< */ - uint32_t which; /**< */ - xcb_keycode_t keyMinKeyCode; /**< */ - xcb_keycode_t keyMaxKeyCode; /**< */ - uint8_t nTypes; /**< */ - uint8_t groupNames; /**< */ - uint16_t virtualMods; /**< */ - xcb_keycode_t firstKey; /**< */ - uint8_t nKeys; /**< */ - uint32_t indicators; /**< */ - uint8_t nRadioGroups; /**< */ - uint8_t nKeyAliases; /**< */ - uint16_t nKTLevels; /**< */ - uint8_t pad6[4]; /**< */ - xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t valueList; /**< */ - } key_names; - struct _geometry { - uint8_t geometry_type; /**< */ - uint8_t geometryDeviceID; /**< */ - uint16_t geometry_sequence; /**< */ - uint32_t geometry_length; /**< */ - xcb_atom_t name; /**< */ - uint8_t geometryFound; /**< */ - uint8_t pad7; /**< */ - uint16_t widthMM; /**< */ - uint16_t heightMM; /**< */ - uint16_t nProperties; /**< */ - uint16_t nColors; /**< */ - uint16_t nShapes; /**< */ - uint16_t nSections; /**< */ - uint16_t nDoodads; /**< */ - uint16_t nKeyAliases; /**< */ - uint8_t baseColorNdx; /**< */ - uint8_t labelColorNdx; /**< */ - xcb_xkb_counted_string_16_t *labelFont; /**< */ - } geometry; -} xcb_xkb_get_kbd_by_name_replies_t; - -xcb_xkb_get_kbd_by_name_replies_types_map_t * -xcb_xkb_get_kbd_by_name_replies_types_map (const xcb_xkb_get_kbd_by_name_replies_t *R /**< */); - -/** - * @brief xcb_xkb_get_kbd_by_name_reply_t - **/ -typedef struct xcb_xkb_get_kbd_by_name_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_keycode_t minKeyCode; /**< */ - xcb_keycode_t maxKeyCode; /**< */ - uint8_t loaded; /**< */ - uint8_t newKeyboard; /**< */ - uint16_t found; /**< */ - uint16_t reported; /**< */ - uint8_t pad0[16]; /**< */ -} xcb_xkb_get_kbd_by_name_reply_t; - -/** - * @brief xcb_xkb_get_device_info_cookie_t - **/ -typedef struct xcb_xkb_get_device_info_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_get_device_info_cookie_t; - -/** Opcode for xcb_xkb_get_device_info. */ -#define XCB_XKB_GET_DEVICE_INFO 24 - -/** - * @brief xcb_xkb_get_device_info_request_t - **/ -typedef struct xcb_xkb_get_device_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint16_t wanted; /**< */ - uint8_t allButtons; /**< */ - uint8_t firstButton; /**< */ - uint8_t nButtons; /**< */ - uint8_t pad0; /**< */ - xcb_xkb_led_class_spec_t ledClass; /**< */ - xcb_xkb_id_spec_t ledID; /**< */ -} xcb_xkb_get_device_info_request_t; - -/** - * @brief xcb_xkb_get_device_info_reply_t - **/ -typedef struct xcb_xkb_get_device_info_reply_t { - uint8_t response_type; /**< */ - uint8_t deviceID; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t present; /**< */ - uint16_t supported; /**< */ - uint16_t unsupported; /**< */ - uint16_t nDeviceLedFBs; /**< */ - uint8_t firstBtnWanted; /**< */ - uint8_t nBtnsWanted; /**< */ - uint8_t firstBtnRtrn; /**< */ - uint8_t nBtnsRtrn; /**< */ - uint8_t totalBtns; /**< */ - uint8_t hasOwnState; /**< */ - uint16_t dfltKbdFB; /**< */ - uint16_t dfltLedFB; /**< */ - uint8_t pad0[2]; /**< */ - xcb_atom_t devType; /**< */ - uint16_t nameLen; /**< */ -} xcb_xkb_get_device_info_reply_t; - -/** Opcode for xcb_xkb_set_device_info. */ -#define XCB_XKB_SET_DEVICE_INFO 25 - -/** - * @brief xcb_xkb_set_device_info_request_t - **/ -typedef struct xcb_xkb_set_device_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xkb_device_spec_t deviceSpec; /**< */ - uint8_t firstBtn; /**< */ - uint8_t nBtns; /**< */ - uint16_t change; /**< */ - uint16_t nDeviceLedFBs; /**< */ -} xcb_xkb_set_device_info_request_t; - -/** - * @brief xcb_xkb_set_debugging_flags_cookie_t - **/ -typedef struct xcb_xkb_set_debugging_flags_cookie_t { - unsigned int sequence; /**< */ -} xcb_xkb_set_debugging_flags_cookie_t; - -/** Opcode for xcb_xkb_set_debugging_flags. */ -#define XCB_XKB_SET_DEBUGGING_FLAGS 101 - -/** - * @brief xcb_xkb_set_debugging_flags_request_t - **/ -typedef struct xcb_xkb_set_debugging_flags_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint16_t msgLength; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t affectFlags; /**< */ - uint32_t flags; /**< */ - uint32_t affectCtrls; /**< */ - uint32_t ctrls; /**< */ -} xcb_xkb_set_debugging_flags_request_t; - -/** - * @brief xcb_xkb_set_debugging_flags_reply_t - **/ -typedef struct xcb_xkb_set_debugging_flags_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t currentFlags; /**< */ - uint32_t currentCtrls; /**< */ - uint32_t supportedFlags; /**< */ - uint32_t supportedCtrls; /**< */ - uint8_t pad1[8]; /**< */ -} xcb_xkb_set_debugging_flags_reply_t; - -/** Opcode for xcb_xkb_new_keyboard_notify. */ -#define XCB_XKB_NEW_KEYBOARD_NOTIFY 0 - -/** - * @brief xcb_xkb_new_keyboard_notify_event_t - **/ -typedef struct xcb_xkb_new_keyboard_notify_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - uint8_t oldDeviceID; /**< */ - xcb_keycode_t minKeyCode; /**< */ - xcb_keycode_t maxKeyCode; /**< */ - xcb_keycode_t oldMinKeyCode; /**< */ - xcb_keycode_t oldMaxKeyCode; /**< */ - uint8_t requestMajor; /**< */ - uint8_t requestMinor; /**< */ - uint16_t changed; /**< */ - uint8_t pad0[14]; /**< */ -} xcb_xkb_new_keyboard_notify_event_t; - -/** Opcode for xcb_xkb_map_notify. */ -#define XCB_XKB_MAP_NOTIFY 1 - -/** - * @brief xcb_xkb_map_notify_event_t - **/ -typedef struct xcb_xkb_map_notify_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - uint8_t ptrBtnActions; /**< */ - uint16_t changed; /**< */ - xcb_keycode_t minKeyCode; /**< */ - xcb_keycode_t maxKeyCode; /**< */ - uint8_t firstType; /**< */ - uint8_t nTypes; /**< */ - xcb_keycode_t firstKeySym; /**< */ - uint8_t nKeySyms; /**< */ - xcb_keycode_t firstKeyAct; /**< */ - uint8_t nKeyActs; /**< */ - xcb_keycode_t firstKeyBehavior; /**< */ - uint8_t nKeyBehavior; /**< */ - xcb_keycode_t firstKeyExplicit; /**< */ - uint8_t nKeyExplicit; /**< */ - xcb_keycode_t firstModMapKey; /**< */ - uint8_t nModMapKeys; /**< */ - xcb_keycode_t firstVModMapKey; /**< */ - uint8_t nVModMapKeys; /**< */ - uint16_t virtualMods; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_xkb_map_notify_event_t; - -/** Opcode for xcb_xkb_state_notify. */ -#define XCB_XKB_STATE_NOTIFY 2 - -/** - * @brief xcb_xkb_state_notify_event_t - **/ -typedef struct xcb_xkb_state_notify_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - uint8_t mods; /**< */ - uint8_t baseMods; /**< */ - uint8_t latchedMods; /**< */ - uint8_t lockedMods; /**< */ - uint8_t group; /**< */ - int16_t baseGroup; /**< */ - int16_t latchedGroup; /**< */ - uint8_t lockedGroup; /**< */ - uint8_t compatState; /**< */ - uint8_t grabMods; /**< */ - uint8_t compatGrabMods; /**< */ - uint8_t lookupMods; /**< */ - uint8_t compatLoockupMods; /**< */ - uint16_t ptrBtnState; /**< */ - uint16_t changed; /**< */ - xcb_keycode_t keycode; /**< */ - uint8_t eventType; /**< */ - uint8_t requestMajor; /**< */ - uint8_t requestMinor; /**< */ -} xcb_xkb_state_notify_event_t; - -/** Opcode for xcb_xkb_controls_notify. */ -#define XCB_XKB_CONTROLS_NOTIFY 3 - -/** - * @brief xcb_xkb_controls_notify_event_t - **/ -typedef struct xcb_xkb_controls_notify_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - uint8_t numGroups; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t changedControls; /**< */ - uint32_t enabledControls; /**< */ - uint32_t enabledControlChanges; /**< */ - xcb_keycode_t keycode; /**< */ - uint8_t eventType; /**< */ - uint8_t requestMajor; /**< */ - uint8_t requestMinor; /**< */ - uint8_t pad1[4]; /**< */ -} xcb_xkb_controls_notify_event_t; - -/** Opcode for xcb_xkb_indicator_state_notify. */ -#define XCB_XKB_INDICATOR_STATE_NOTIFY 4 - -/** - * @brief xcb_xkb_indicator_state_notify_event_t - **/ -typedef struct xcb_xkb_indicator_state_notify_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - uint8_t pad0[3]; /**< */ - uint32_t state; /**< */ - uint32_t stateChanged; /**< */ - uint8_t pad1[12]; /**< */ -} xcb_xkb_indicator_state_notify_event_t; - -/** Opcode for xcb_xkb_indicator_map_notify. */ -#define XCB_XKB_INDICATOR_MAP_NOTIFY 5 - -/** - * @brief xcb_xkb_indicator_map_notify_event_t - **/ -typedef struct xcb_xkb_indicator_map_notify_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - uint8_t pad0[3]; /**< */ - uint32_t state; /**< */ - uint32_t mapChanged; /**< */ - uint8_t pad1[12]; /**< */ -} xcb_xkb_indicator_map_notify_event_t; - -/** Opcode for xcb_xkb_names_notify. */ -#define XCB_XKB_NAMES_NOTIFY 6 - -/** - * @brief xcb_xkb_names_notify_event_t - **/ -typedef struct xcb_xkb_names_notify_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - uint8_t pad0; /**< */ - uint16_t changed; /**< */ - uint8_t firstType; /**< */ - uint8_t nTypes; /**< */ - uint8_t firstLevelName; /**< */ - uint8_t nLevelNames; /**< */ - uint8_t pad1; /**< */ - uint8_t nRadioGroups; /**< */ - uint8_t nKeyAliases; /**< */ - uint8_t changedGroupNames; /**< */ - uint16_t changedVirtualMods; /**< */ - xcb_keycode_t firstKey; /**< */ - uint8_t nKeys; /**< */ - uint32_t changedIndicators; /**< */ - uint8_t pad2[4]; /**< */ -} xcb_xkb_names_notify_event_t; - -/** Opcode for xcb_xkb_compat_map_notify. */ -#define XCB_XKB_COMPAT_MAP_NOTIFY 7 - -/** - * @brief xcb_xkb_compat_map_notify_event_t - **/ -typedef struct xcb_xkb_compat_map_notify_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - uint8_t changedGroups; /**< */ - uint16_t firstSI; /**< */ - uint16_t nSI; /**< */ - uint16_t nTotalSI; /**< */ - uint8_t pad0[16]; /**< */ -} xcb_xkb_compat_map_notify_event_t; - -/** Opcode for xcb_xkb_bell_notify. */ -#define XCB_XKB_BELL_NOTIFY 8 - -/** - * @brief xcb_xkb_bell_notify_event_t - **/ -typedef struct xcb_xkb_bell_notify_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - uint8_t bellClass; /**< */ - uint8_t bellID; /**< */ - uint8_t percent; /**< */ - uint16_t pitch; /**< */ - uint16_t duration; /**< */ - xcb_atom_t name; /**< */ - xcb_window_t window; /**< */ - uint8_t eventOnly; /**< */ - uint8_t pad0[7]; /**< */ -} xcb_xkb_bell_notify_event_t; - -/** Opcode for xcb_xkb_action_message. */ -#define XCB_XKB_ACTION_MESSAGE 9 - -/** - * @brief xcb_xkb_action_message_event_t - **/ -typedef struct xcb_xkb_action_message_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - xcb_keycode_t keycode; /**< */ - uint8_t press; /**< */ - uint8_t keyEventFollows; /**< */ - uint8_t mods; /**< */ - uint8_t group; /**< */ - xcb_xkb_string8_t message[8]; /**< */ - uint8_t pad0[10]; /**< */ -} xcb_xkb_action_message_event_t; - -/** Opcode for xcb_xkb_access_x_notify. */ -#define XCB_XKB_ACCESS_X_NOTIFY 10 - -/** - * @brief xcb_xkb_access_x_notify_event_t - **/ -typedef struct xcb_xkb_access_x_notify_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - xcb_keycode_t keycode; /**< */ - uint16_t detailt; /**< */ - uint16_t slowKeysDelay; /**< */ - uint16_t debounceDelay; /**< */ - uint8_t pad0[16]; /**< */ -} xcb_xkb_access_x_notify_event_t; - -/** Opcode for xcb_xkb_extension_device_notify. */ -#define XCB_XKB_EXTENSION_DEVICE_NOTIFY 11 - -/** - * @brief xcb_xkb_extension_device_notify_event_t - **/ -typedef struct xcb_xkb_extension_device_notify_event_t { - uint8_t response_type; /**< */ - uint8_t xkbType; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t deviceID; /**< */ - uint8_t pad0; /**< */ - uint16_t reason; /**< */ - uint16_t ledClass; /**< */ - uint16_t ledID; /**< */ - uint32_t ledsDefined; /**< */ - uint32_t ledState; /**< */ - uint8_t firstButton; /**< */ - uint8_t nButtons; /**< */ - uint16_t supported; /**< */ - uint16_t unsupported; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_xkb_extension_device_notify_event_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_device_spec_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_device_spec_t) - */ -void -xcb_xkb_device_spec_next (xcb_xkb_device_spec_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_device_spec_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_device_spec_end (xcb_xkb_device_spec_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_led_class_spec_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_led_class_spec_t) - */ -void -xcb_xkb_led_class_spec_next (xcb_xkb_led_class_spec_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_led_class_spec_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_led_class_spec_end (xcb_xkb_led_class_spec_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_bell_class_spec_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_bell_class_spec_t) - */ -void -xcb_xkb_bell_class_spec_next (xcb_xkb_bell_class_spec_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_bell_class_spec_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_bell_class_spec_end (xcb_xkb_bell_class_spec_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_id_spec_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_id_spec_t) - */ -void -xcb_xkb_id_spec_next (xcb_xkb_id_spec_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_id_spec_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_id_spec_end (xcb_xkb_id_spec_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_indicator_map_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_indicator_map_t) - */ -void -xcb_xkb_indicator_map_next (xcb_xkb_indicator_map_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_indicator_map_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_indicator_map_end (xcb_xkb_indicator_map_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_mod_def_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_mod_def_t) - */ -void -xcb_xkb_mod_def_next (xcb_xkb_mod_def_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_mod_def_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_mod_def_end (xcb_xkb_mod_def_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_key_name_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_key_name_t) - */ -void -xcb_xkb_key_name_next (xcb_xkb_key_name_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_key_name_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_key_name_end (xcb_xkb_key_name_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_key_alias_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_key_alias_t) - */ -void -xcb_xkb_key_alias_next (xcb_xkb_key_alias_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_key_alias_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_key_alias_end (xcb_xkb_key_alias_iterator_t i /**< */); - -int -xcb_xkb_counted_string_16_sizeof (const void *_buffer /**< */); - -char * -xcb_xkb_counted_string_16_string (const xcb_xkb_counted_string_16_t *R /**< */); - -int -xcb_xkb_counted_string_16_string_length (const xcb_xkb_counted_string_16_t *R /**< */); - -xcb_generic_iterator_t -xcb_xkb_counted_string_16_string_end (const xcb_xkb_counted_string_16_t *R /**< */); - -void * -xcb_xkb_counted_string_16_alignment_pad (const xcb_xkb_counted_string_16_t *R /**< */); - -int -xcb_xkb_counted_string_16_alignment_pad_length (const xcb_xkb_counted_string_16_t *R /**< */); - -xcb_generic_iterator_t -xcb_xkb_counted_string_16_alignment_pad_end (const xcb_xkb_counted_string_16_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_counted_string_16_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_counted_string_16_t) - */ -void -xcb_xkb_counted_string_16_next (xcb_xkb_counted_string_16_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_counted_string_16_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_counted_string_16_end (xcb_xkb_counted_string_16_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_kt_map_entry_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_kt_map_entry_t) - */ -void -xcb_xkb_kt_map_entry_next (xcb_xkb_kt_map_entry_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_kt_map_entry_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_kt_map_entry_end (xcb_xkb_kt_map_entry_iterator_t i /**< */); - -int -xcb_xkb_key_type_sizeof (const void *_buffer /**< */); - -xcb_xkb_kt_map_entry_t * -xcb_xkb_key_type_map (const xcb_xkb_key_type_t *R /**< */); - -int -xcb_xkb_key_type_map_length (const xcb_xkb_key_type_t *R /**< */); - -xcb_xkb_kt_map_entry_iterator_t -xcb_xkb_key_type_map_iterator (const xcb_xkb_key_type_t *R /**< */); - -xcb_xkb_mod_def_t * -xcb_xkb_key_type_preserve (const xcb_xkb_key_type_t *R /**< */); - -int -xcb_xkb_key_type_preserve_length (const xcb_xkb_key_type_t *R /**< */); - -xcb_xkb_mod_def_iterator_t -xcb_xkb_key_type_preserve_iterator (const xcb_xkb_key_type_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_key_type_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_key_type_t) - */ -void -xcb_xkb_key_type_next (xcb_xkb_key_type_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_key_type_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_key_type_end (xcb_xkb_key_type_iterator_t i /**< */); - -int -xcb_xkb_key_sym_map_sizeof (const void *_buffer /**< */); - -xcb_keysym_t * -xcb_xkb_key_sym_map_syms (const xcb_xkb_key_sym_map_t *R /**< */); - -int -xcb_xkb_key_sym_map_syms_length (const xcb_xkb_key_sym_map_t *R /**< */); - -xcb_generic_iterator_t -xcb_xkb_key_sym_map_syms_end (const xcb_xkb_key_sym_map_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_key_sym_map_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_key_sym_map_t) - */ -void -xcb_xkb_key_sym_map_next (xcb_xkb_key_sym_map_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_key_sym_map_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_key_sym_map_end (xcb_xkb_key_sym_map_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_common_behavior_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_common_behavior_t) - */ -void -xcb_xkb_common_behavior_next (xcb_xkb_common_behavior_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_common_behavior_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_common_behavior_end (xcb_xkb_common_behavior_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_default_behavior_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_default_behavior_t) - */ -void -xcb_xkb_default_behavior_next (xcb_xkb_default_behavior_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_default_behavior_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_default_behavior_end (xcb_xkb_default_behavior_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_lock_behavior_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_lock_behavior_t) - */ -void -xcb_xkb_lock_behavior_next (xcb_xkb_lock_behavior_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_lock_behavior_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_lock_behavior_end (xcb_xkb_lock_behavior_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_radio_group_behavior_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_radio_group_behavior_t) - */ -void -xcb_xkb_radio_group_behavior_next (xcb_xkb_radio_group_behavior_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_radio_group_behavior_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_radio_group_behavior_end (xcb_xkb_radio_group_behavior_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_overlay_behavior_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_overlay_behavior_t) - */ -void -xcb_xkb_overlay_behavior_next (xcb_xkb_overlay_behavior_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_overlay_behavior_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_overlay_behavior_end (xcb_xkb_overlay_behavior_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_permament_lock_behavior_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_permament_lock_behavior_t) - */ -void -xcb_xkb_permament_lock_behavior_next (xcb_xkb_permament_lock_behavior_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_permament_lock_behavior_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_permament_lock_behavior_end (xcb_xkb_permament_lock_behavior_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_permament_radio_group_behavior_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_permament_radio_group_behavior_t) - */ -void -xcb_xkb_permament_radio_group_behavior_next (xcb_xkb_permament_radio_group_behavior_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_permament_radio_group_behavior_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_permament_radio_group_behavior_end (xcb_xkb_permament_radio_group_behavior_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_permament_overlay_behavior_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_permament_overlay_behavior_t) - */ -void -xcb_xkb_permament_overlay_behavior_next (xcb_xkb_permament_overlay_behavior_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_permament_overlay_behavior_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_permament_overlay_behavior_end (xcb_xkb_permament_overlay_behavior_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_behavior_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_behavior_t) - */ -void -xcb_xkb_behavior_next (xcb_xkb_behavior_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_behavior_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_behavior_end (xcb_xkb_behavior_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_set_behavior_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_set_behavior_t) - */ -void -xcb_xkb_set_behavior_next (xcb_xkb_set_behavior_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_set_behavior_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_set_behavior_end (xcb_xkb_set_behavior_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_set_explicit_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_set_explicit_t) - */ -void -xcb_xkb_set_explicit_next (xcb_xkb_set_explicit_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_set_explicit_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_set_explicit_end (xcb_xkb_set_explicit_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_key_mod_map_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_key_mod_map_t) - */ -void -xcb_xkb_key_mod_map_next (xcb_xkb_key_mod_map_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_key_mod_map_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_key_mod_map_end (xcb_xkb_key_mod_map_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_key_v_mod_map_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_key_v_mod_map_t) - */ -void -xcb_xkb_key_v_mod_map_next (xcb_xkb_key_v_mod_map_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_key_v_mod_map_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_key_v_mod_map_end (xcb_xkb_key_v_mod_map_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_kt_set_map_entry_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_kt_set_map_entry_t) - */ -void -xcb_xkb_kt_set_map_entry_next (xcb_xkb_kt_set_map_entry_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_kt_set_map_entry_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_kt_set_map_entry_end (xcb_xkb_kt_set_map_entry_iterator_t i /**< */); - -int -xcb_xkb_set_key_type_sizeof (const void *_buffer /**< */); - -xcb_xkb_kt_set_map_entry_t * -xcb_xkb_set_key_type_entries (const xcb_xkb_set_key_type_t *R /**< */); - -int -xcb_xkb_set_key_type_entries_length (const xcb_xkb_set_key_type_t *R /**< */); - -xcb_xkb_kt_set_map_entry_iterator_t -xcb_xkb_set_key_type_entries_iterator (const xcb_xkb_set_key_type_t *R /**< */); - -xcb_xkb_kt_set_map_entry_t * -xcb_xkb_set_key_type_preserve_entries (const xcb_xkb_set_key_type_t *R /**< */); - -int -xcb_xkb_set_key_type_preserve_entries_length (const xcb_xkb_set_key_type_t *R /**< */); - -xcb_xkb_kt_set_map_entry_iterator_t -xcb_xkb_set_key_type_preserve_entries_iterator (const xcb_xkb_set_key_type_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_set_key_type_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_set_key_type_t) - */ -void -xcb_xkb_set_key_type_next (xcb_xkb_set_key_type_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_set_key_type_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_set_key_type_end (xcb_xkb_set_key_type_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_string8_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_string8_t) - */ -void -xcb_xkb_string8_next (xcb_xkb_string8_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_string8_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_string8_end (xcb_xkb_string8_iterator_t i /**< */); - -int -xcb_xkb_outline_sizeof (const void *_buffer /**< */); - -xcb_point_t * -xcb_xkb_outline_points (const xcb_xkb_outline_t *R /**< */); - -int -xcb_xkb_outline_points_length (const xcb_xkb_outline_t *R /**< */); - -xcb_point_iterator_t -xcb_xkb_outline_points_iterator (const xcb_xkb_outline_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_outline_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_outline_t) - */ -void -xcb_xkb_outline_next (xcb_xkb_outline_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_outline_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_outline_end (xcb_xkb_outline_iterator_t i /**< */); - -int -xcb_xkb_shape_sizeof (const void *_buffer /**< */); - -int -xcb_xkb_shape_outlines_length (const xcb_xkb_shape_t *R /**< */); - -xcb_xkb_outline_iterator_t -xcb_xkb_shape_outlines_iterator (const xcb_xkb_shape_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_shape_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_shape_t) - */ -void -xcb_xkb_shape_next (xcb_xkb_shape_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_shape_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_shape_end (xcb_xkb_shape_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_key_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_key_t) - */ -void -xcb_xkb_key_next (xcb_xkb_key_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_key_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_key_end (xcb_xkb_key_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_overlay_key_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_overlay_key_t) - */ -void -xcb_xkb_overlay_key_next (xcb_xkb_overlay_key_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_overlay_key_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_overlay_key_end (xcb_xkb_overlay_key_iterator_t i /**< */); - -int -xcb_xkb_overlay_row_sizeof (const void *_buffer /**< */); - -xcb_xkb_overlay_key_t * -xcb_xkb_overlay_row_keys (const xcb_xkb_overlay_row_t *R /**< */); - -int -xcb_xkb_overlay_row_keys_length (const xcb_xkb_overlay_row_t *R /**< */); - -xcb_xkb_overlay_key_iterator_t -xcb_xkb_overlay_row_keys_iterator (const xcb_xkb_overlay_row_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_overlay_row_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_overlay_row_t) - */ -void -xcb_xkb_overlay_row_next (xcb_xkb_overlay_row_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_overlay_row_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_overlay_row_end (xcb_xkb_overlay_row_iterator_t i /**< */); - -int -xcb_xkb_overlay_sizeof (const void *_buffer /**< */); - -int -xcb_xkb_overlay_rows_length (const xcb_xkb_overlay_t *R /**< */); - -xcb_xkb_overlay_row_iterator_t -xcb_xkb_overlay_rows_iterator (const xcb_xkb_overlay_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_overlay_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_overlay_t) - */ -void -xcb_xkb_overlay_next (xcb_xkb_overlay_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_overlay_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_overlay_end (xcb_xkb_overlay_iterator_t i /**< */); - -int -xcb_xkb_row_sizeof (const void *_buffer /**< */); - -xcb_xkb_key_t * -xcb_xkb_row_keys (const xcb_xkb_row_t *R /**< */); - -int -xcb_xkb_row_keys_length (const xcb_xkb_row_t *R /**< */); - -xcb_xkb_key_iterator_t -xcb_xkb_row_keys_iterator (const xcb_xkb_row_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_row_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_row_t) - */ -void -xcb_xkb_row_next (xcb_xkb_row_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_row_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_row_end (xcb_xkb_row_iterator_t i /**< */); - -int -xcb_xkb_listing_sizeof (const void *_buffer /**< */); - -xcb_xkb_string8_t * -xcb_xkb_listing_string (const xcb_xkb_listing_t *R /**< */); - -int -xcb_xkb_listing_string_length (const xcb_xkb_listing_t *R /**< */); - -xcb_generic_iterator_t -xcb_xkb_listing_string_end (const xcb_xkb_listing_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_listing_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_listing_t) - */ -void -xcb_xkb_listing_next (xcb_xkb_listing_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_listing_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_listing_end (xcb_xkb_listing_iterator_t i /**< */); - -int -xcb_xkb_device_led_info_sizeof (const void *_buffer /**< */); - -xcb_atom_t * -xcb_xkb_device_led_info_names (const xcb_xkb_device_led_info_t *R /**< */); - -int -xcb_xkb_device_led_info_names_length (const xcb_xkb_device_led_info_t *R /**< */); - -xcb_generic_iterator_t -xcb_xkb_device_led_info_names_end (const xcb_xkb_device_led_info_t *R /**< */); - -xcb_xkb_indicator_map_t * -xcb_xkb_device_led_info_maps (const xcb_xkb_device_led_info_t *R /**< */); - -int -xcb_xkb_device_led_info_maps_length (const xcb_xkb_device_led_info_t *R /**< */); - -xcb_xkb_indicator_map_iterator_t -xcb_xkb_device_led_info_maps_iterator (const xcb_xkb_device_led_info_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_device_led_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_device_led_info_t) - */ -void -xcb_xkb_device_led_info_next (xcb_xkb_device_led_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_device_led_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_device_led_info_end (xcb_xkb_device_led_info_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_no_action_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_no_action_t) - */ -void -xcb_xkb_sa_no_action_next (xcb_xkb_sa_no_action_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_no_action_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_no_action_end (xcb_xkb_sa_no_action_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_set_mods_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_set_mods_t) - */ -void -xcb_xkb_sa_set_mods_next (xcb_xkb_sa_set_mods_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_set_mods_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_set_mods_end (xcb_xkb_sa_set_mods_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_latch_mods_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_latch_mods_t) - */ -void -xcb_xkb_sa_latch_mods_next (xcb_xkb_sa_latch_mods_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_latch_mods_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_latch_mods_end (xcb_xkb_sa_latch_mods_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_lock_mods_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_lock_mods_t) - */ -void -xcb_xkb_sa_lock_mods_next (xcb_xkb_sa_lock_mods_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_lock_mods_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_lock_mods_end (xcb_xkb_sa_lock_mods_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_set_group_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_set_group_t) - */ -void -xcb_xkb_sa_set_group_next (xcb_xkb_sa_set_group_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_set_group_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_set_group_end (xcb_xkb_sa_set_group_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_latch_group_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_latch_group_t) - */ -void -xcb_xkb_sa_latch_group_next (xcb_xkb_sa_latch_group_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_latch_group_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_latch_group_end (xcb_xkb_sa_latch_group_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_lock_group_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_lock_group_t) - */ -void -xcb_xkb_sa_lock_group_next (xcb_xkb_sa_lock_group_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_lock_group_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_lock_group_end (xcb_xkb_sa_lock_group_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_move_ptr_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_move_ptr_t) - */ -void -xcb_xkb_sa_move_ptr_next (xcb_xkb_sa_move_ptr_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_move_ptr_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_move_ptr_end (xcb_xkb_sa_move_ptr_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_ptr_btn_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_ptr_btn_t) - */ -void -xcb_xkb_sa_ptr_btn_next (xcb_xkb_sa_ptr_btn_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_ptr_btn_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_ptr_btn_end (xcb_xkb_sa_ptr_btn_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_lock_ptr_btn_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_lock_ptr_btn_t) - */ -void -xcb_xkb_sa_lock_ptr_btn_next (xcb_xkb_sa_lock_ptr_btn_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_lock_ptr_btn_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_lock_ptr_btn_end (xcb_xkb_sa_lock_ptr_btn_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_set_ptr_dflt_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_set_ptr_dflt_t) - */ -void -xcb_xkb_sa_set_ptr_dflt_next (xcb_xkb_sa_set_ptr_dflt_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_set_ptr_dflt_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_set_ptr_dflt_end (xcb_xkb_sa_set_ptr_dflt_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_iso_lock_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_iso_lock_t) - */ -void -xcb_xkb_sa_iso_lock_next (xcb_xkb_sa_iso_lock_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_iso_lock_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_iso_lock_end (xcb_xkb_sa_iso_lock_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_terminate_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_terminate_t) - */ -void -xcb_xkb_sa_terminate_next (xcb_xkb_sa_terminate_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_terminate_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_terminate_end (xcb_xkb_sa_terminate_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_switch_screen_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_switch_screen_t) - */ -void -xcb_xkb_sa_switch_screen_next (xcb_xkb_sa_switch_screen_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_switch_screen_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_switch_screen_end (xcb_xkb_sa_switch_screen_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_set_controls_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_set_controls_t) - */ -void -xcb_xkb_sa_set_controls_next (xcb_xkb_sa_set_controls_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_set_controls_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_set_controls_end (xcb_xkb_sa_set_controls_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_lock_controls_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_lock_controls_t) - */ -void -xcb_xkb_sa_lock_controls_next (xcb_xkb_sa_lock_controls_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_lock_controls_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_lock_controls_end (xcb_xkb_sa_lock_controls_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_action_message_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_action_message_t) - */ -void -xcb_xkb_sa_action_message_next (xcb_xkb_sa_action_message_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_action_message_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_action_message_end (xcb_xkb_sa_action_message_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_redirect_key_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_redirect_key_t) - */ -void -xcb_xkb_sa_redirect_key_next (xcb_xkb_sa_redirect_key_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_redirect_key_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_redirect_key_end (xcb_xkb_sa_redirect_key_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_device_btn_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_device_btn_t) - */ -void -xcb_xkb_sa_device_btn_next (xcb_xkb_sa_device_btn_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_device_btn_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_device_btn_end (xcb_xkb_sa_device_btn_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_lock_device_btn_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_lock_device_btn_t) - */ -void -xcb_xkb_sa_lock_device_btn_next (xcb_xkb_sa_lock_device_btn_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_lock_device_btn_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_lock_device_btn_end (xcb_xkb_sa_lock_device_btn_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sa_device_valuator_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sa_device_valuator_t) - */ -void -xcb_xkb_sa_device_valuator_next (xcb_xkb_sa_device_valuator_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sa_device_valuator_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sa_device_valuator_end (xcb_xkb_sa_device_valuator_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_si_action_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_si_action_t) - */ -void -xcb_xkb_si_action_next (xcb_xkb_si_action_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_si_action_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_si_action_end (xcb_xkb_si_action_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_sym_interpret_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_sym_interpret_t) - */ -void -xcb_xkb_sym_interpret_next (xcb_xkb_sym_interpret_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_sym_interpret_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_sym_interpret_end (xcb_xkb_sym_interpret_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xkb_action_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xkb_action_t) - */ -void -xcb_xkb_action_next (xcb_xkb_action_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xkb_action_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xkb_action_end (xcb_xkb_action_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_use_extension_cookie_t -xcb_xkb_use_extension (xcb_connection_t *c /**< */, - uint16_t wantedMajor /**< */, - uint16_t wantedMinor /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_use_extension_cookie_t -xcb_xkb_use_extension_unchecked (xcb_connection_t *c /**< */, - uint16_t wantedMajor /**< */, - uint16_t wantedMinor /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_use_extension_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_use_extension_reply_t * -xcb_xkb_use_extension_reply (xcb_connection_t *c /**< */, - xcb_xkb_use_extension_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xkb_select_events_details_serialize (void **_buffer /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */, - const xcb_xkb_select_events_details_t *_aux /**< */); - -int -xcb_xkb_select_events_details_unpack (const void *_buffer /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */, - xcb_xkb_select_events_details_t *_aux /**< */); - -int -xcb_xkb_select_events_details_sizeof (const void *_buffer /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_select_events_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */, - uint16_t affectMap /**< */, - uint16_t map /**< */, - const void *details /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_select_events (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */, - uint16_t affectMap /**< */, - uint16_t map /**< */, - const void *details /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_select_events_aux_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */, - uint16_t affectMap /**< */, - uint16_t map /**< */, - const xcb_xkb_select_events_details_t *details /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_select_events_aux (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t affectWhich /**< */, - uint16_t clear /**< */, - uint16_t selectAll /**< */, - uint16_t affectMap /**< */, - uint16_t map /**< */, - const xcb_xkb_select_events_details_t *details /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_bell_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_bell_class_spec_t bellClass /**< */, - xcb_xkb_id_spec_t bellID /**< */, - int8_t percent /**< */, - uint8_t forceSound /**< */, - uint8_t eventOnly /**< */, - int16_t pitch /**< */, - int16_t duration /**< */, - xcb_atom_t name /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_bell (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_bell_class_spec_t bellClass /**< */, - xcb_xkb_id_spec_t bellID /**< */, - int8_t percent /**< */, - uint8_t forceSound /**< */, - uint8_t eventOnly /**< */, - int16_t pitch /**< */, - int16_t duration /**< */, - xcb_atom_t name /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_get_state_cookie_t -xcb_xkb_get_state (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_get_state_cookie_t -xcb_xkb_get_state_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_get_state_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_get_state_reply_t * -xcb_xkb_get_state_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_state_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_latch_lock_state_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t affectModLocks /**< */, - uint8_t modLocks /**< */, - uint8_t lockGroup /**< */, - uint8_t groupLock /**< */, - uint8_t affectModLatches /**< */, - uint8_t latchGroup /**< */, - uint16_t groupLatch /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_latch_lock_state (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t affectModLocks /**< */, - uint8_t modLocks /**< */, - uint8_t lockGroup /**< */, - uint8_t groupLock /**< */, - uint8_t affectModLatches /**< */, - uint8_t latchGroup /**< */, - uint16_t groupLatch /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_get_controls_cookie_t -xcb_xkb_get_controls (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_get_controls_cookie_t -xcb_xkb_get_controls_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_get_controls_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_get_controls_reply_t * -xcb_xkb_get_controls_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_controls_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_set_controls_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t affectInternalRealMods /**< */, - uint8_t internalRealMods /**< */, - uint8_t affectIgnoreLockRealMods /**< */, - uint8_t ignoreLockRealMods /**< */, - uint16_t affectInternalVirtualMods /**< */, - uint16_t internalVirtualMods /**< */, - uint16_t affectIgnoreLockVirtualMods /**< */, - uint16_t ignoreLockVirtualMods /**< */, - uint8_t mouseKeysDfltBtn /**< */, - uint8_t groupsWrap /**< */, - uint16_t accessXOptions /**< */, - uint32_t affectEnabledControls /**< */, - uint32_t enabledControls /**< */, - uint32_t changeControls /**< */, - uint16_t repeatDelay /**< */, - uint16_t repeatInterval /**< */, - uint16_t slowKeysDelay /**< */, - uint16_t debounceDelay /**< */, - uint16_t mouseKeysDelay /**< */, - uint16_t mouseKeysInterval /**< */, - uint16_t mouseKeysTimeToMax /**< */, - uint16_t mouseKeysMaxSpeed /**< */, - int16_t mouseKeysCurve /**< */, - uint16_t accessXTimeout /**< */, - uint32_t accessXTimeoutMask /**< */, - uint32_t accessXTimeoutValues /**< */, - uint16_t accessXTimeoutOptionsMask /**< */, - uint16_t accessXTimeoutOptionsValues /**< */, - const uint8_t *perKeyRepeat /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_set_controls (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t affectInternalRealMods /**< */, - uint8_t internalRealMods /**< */, - uint8_t affectIgnoreLockRealMods /**< */, - uint8_t ignoreLockRealMods /**< */, - uint16_t affectInternalVirtualMods /**< */, - uint16_t internalVirtualMods /**< */, - uint16_t affectIgnoreLockVirtualMods /**< */, - uint16_t ignoreLockVirtualMods /**< */, - uint8_t mouseKeysDfltBtn /**< */, - uint8_t groupsWrap /**< */, - uint16_t accessXOptions /**< */, - uint32_t affectEnabledControls /**< */, - uint32_t enabledControls /**< */, - uint32_t changeControls /**< */, - uint16_t repeatDelay /**< */, - uint16_t repeatInterval /**< */, - uint16_t slowKeysDelay /**< */, - uint16_t debounceDelay /**< */, - uint16_t mouseKeysDelay /**< */, - uint16_t mouseKeysInterval /**< */, - uint16_t mouseKeysTimeToMax /**< */, - uint16_t mouseKeysMaxSpeed /**< */, - int16_t mouseKeysCurve /**< */, - uint16_t accessXTimeout /**< */, - uint32_t accessXTimeoutMask /**< */, - uint32_t accessXTimeoutValues /**< */, - uint16_t accessXTimeoutOptionsMask /**< */, - uint16_t accessXTimeoutOptionsValues /**< */, - const uint8_t *perKeyRepeat /**< */); - -int -xcb_xkb_get_map_map_types_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_key_type_iterator_t -xcb_xkb_get_map_map_types_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -int -xcb_xkb_get_map_map_syms_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_key_sym_map_iterator_t -xcb_xkb_get_map_map_syms_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -uint8_t * -xcb_xkb_get_map_map_acts_rtrn_count (const xcb_xkb_get_map_map_t *S /**< */); - -int -xcb_xkb_get_map_map_acts_rtrn_count_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_map_map_acts_rtrn_count_end (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_action_t * -xcb_xkb_get_map_map_acts_rtrn_acts (const xcb_xkb_get_map_map_t *S /**< */); - -int -xcb_xkb_get_map_map_acts_rtrn_acts_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_action_iterator_t -xcb_xkb_get_map_map_acts_rtrn_acts_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_set_behavior_t * -xcb_xkb_get_map_map_behaviors_rtrn (const xcb_xkb_get_map_map_t *S /**< */); - -int -xcb_xkb_get_map_map_behaviors_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_set_behavior_iterator_t -xcb_xkb_get_map_map_behaviors_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -uint8_t * -xcb_xkb_get_map_map_vmods_rtrn (const xcb_xkb_get_map_map_t *S /**< */); - -int -xcb_xkb_get_map_map_vmods_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_map_map_vmods_rtrn_end (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_set_explicit_t * -xcb_xkb_get_map_map_explicit_rtrn (const xcb_xkb_get_map_map_t *S /**< */); - -int -xcb_xkb_get_map_map_explicit_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_set_explicit_iterator_t -xcb_xkb_get_map_map_explicit_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_key_mod_map_t * -xcb_xkb_get_map_map_modmap_rtrn (const xcb_xkb_get_map_map_t *S /**< */); - -int -xcb_xkb_get_map_map_modmap_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_key_mod_map_iterator_t -xcb_xkb_get_map_map_modmap_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_key_v_mod_map_t * -xcb_xkb_get_map_map_vmodmap_rtrn (const xcb_xkb_get_map_map_t *S /**< */); - -int -xcb_xkb_get_map_map_vmodmap_rtrn_length (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -xcb_xkb_key_v_mod_map_iterator_t -xcb_xkb_get_map_map_vmodmap_rtrn_iterator (const xcb_xkb_get_map_reply_t *R /**< */, - const xcb_xkb_get_map_map_t *S /**< */); - -int -xcb_xkb_get_map_map_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */, - const xcb_xkb_get_map_map_t *_aux /**< */); - -int -xcb_xkb_get_map_map_unpack (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */, - xcb_xkb_get_map_map_t *_aux /**< */); - -int -xcb_xkb_get_map_map_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_get_map_cookie_t -xcb_xkb_get_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t full /**< */, - uint16_t partial /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_get_map_cookie_t -xcb_xkb_get_map_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t full /**< */, - uint16_t partial /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */); - -void * -xcb_xkb_get_map_map (const xcb_xkb_get_map_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_get_map_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_get_map_reply_t * -xcb_xkb_get_map_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_map_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xkb_set_map_values_types_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_set_key_type_iterator_t -xcb_xkb_set_map_values_types_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -int -xcb_xkb_set_map_values_syms_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_key_sym_map_iterator_t -xcb_xkb_set_map_values_syms_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -uint8_t * -xcb_xkb_set_map_values_actions_count (const xcb_xkb_set_map_values_t *S /**< */); - -int -xcb_xkb_set_map_values_actions_count_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_set_map_values_actions_count_end (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_action_t * -xcb_xkb_set_map_values_actions (const xcb_xkb_set_map_values_t *S /**< */); - -int -xcb_xkb_set_map_values_actions_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_action_iterator_t -xcb_xkb_set_map_values_actions_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_set_behavior_t * -xcb_xkb_set_map_values_behaviors (const xcb_xkb_set_map_values_t *S /**< */); - -int -xcb_xkb_set_map_values_behaviors_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_set_behavior_iterator_t -xcb_xkb_set_map_values_behaviors_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -uint8_t * -xcb_xkb_set_map_values_vmods (const xcb_xkb_set_map_values_t *S /**< */); - -int -xcb_xkb_set_map_values_vmods_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_set_map_values_vmods_end (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_set_explicit_t * -xcb_xkb_set_map_values_explicit (const xcb_xkb_set_map_values_t *S /**< */); - -int -xcb_xkb_set_map_values_explicit_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_set_explicit_iterator_t -xcb_xkb_set_map_values_explicit_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_key_mod_map_t * -xcb_xkb_set_map_values_modmap (const xcb_xkb_set_map_values_t *S /**< */); - -int -xcb_xkb_set_map_values_modmap_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_key_mod_map_iterator_t -xcb_xkb_set_map_values_modmap_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_key_v_mod_map_t * -xcb_xkb_set_map_values_vmodmap (const xcb_xkb_set_map_values_t *S /**< */); - -int -xcb_xkb_set_map_values_vmodmap_length (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -xcb_xkb_key_v_mod_map_iterator_t -xcb_xkb_set_map_values_vmodmap_iterator (const xcb_xkb_set_map_request_t *R /**< */, - const xcb_xkb_set_map_values_t *S /**< */); - -int -xcb_xkb_set_map_values_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */, - const xcb_xkb_set_map_values_t *_aux /**< */); - -int -xcb_xkb_set_map_values_unpack (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */, - xcb_xkb_set_map_values_t *_aux /**< */); - -int -xcb_xkb_set_map_values_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_set_map_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t present /**< */, - uint16_t flags /**< */, - xcb_keycode_t minKeyCode /**< */, - xcb_keycode_t maxKeyCode /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - uint16_t totalSyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint8_t totalKeyBehaviors /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - uint8_t totalKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - uint8_t totalModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t virtualMods /**< */, - const void *values /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_set_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t present /**< */, - uint16_t flags /**< */, - xcb_keycode_t minKeyCode /**< */, - xcb_keycode_t maxKeyCode /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - uint16_t totalSyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint8_t totalKeyBehaviors /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - uint8_t totalKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - uint8_t totalModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t virtualMods /**< */, - const void *values /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_set_map_aux_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t present /**< */, - uint16_t flags /**< */, - xcb_keycode_t minKeyCode /**< */, - xcb_keycode_t maxKeyCode /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - uint16_t totalSyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint8_t totalKeyBehaviors /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - uint8_t totalKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - uint8_t totalModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t virtualMods /**< */, - const xcb_xkb_set_map_values_t *values /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_set_map_aux (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t present /**< */, - uint16_t flags /**< */, - xcb_keycode_t minKeyCode /**< */, - xcb_keycode_t maxKeyCode /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - xcb_keycode_t firstKeySym /**< */, - uint8_t nKeySyms /**< */, - uint16_t totalSyms /**< */, - xcb_keycode_t firstKeyAction /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - xcb_keycode_t firstKeyBehavior /**< */, - uint8_t nKeyBehaviors /**< */, - uint8_t totalKeyBehaviors /**< */, - xcb_keycode_t firstKeyExplicit /**< */, - uint8_t nKeyExplicit /**< */, - uint8_t totalKeyExplicit /**< */, - xcb_keycode_t firstModMapKey /**< */, - uint8_t nModMapKeys /**< */, - uint8_t totalModMapKeys /**< */, - xcb_keycode_t firstVModMapKey /**< */, - uint8_t nVModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t virtualMods /**< */, - const xcb_xkb_set_map_values_t *values /**< */); - -int -xcb_xkb_get_compat_map_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_get_compat_map_cookie_t -xcb_xkb_get_compat_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t groups /**< */, - uint8_t getAllSI /**< */, - uint16_t firstSI /**< */, - uint16_t nSI /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_get_compat_map_cookie_t -xcb_xkb_get_compat_map_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t groups /**< */, - uint8_t getAllSI /**< */, - uint16_t firstSI /**< */, - uint16_t nSI /**< */); - -xcb_xkb_sym_interpret_t * -xcb_xkb_get_compat_map_si_rtrn (const xcb_xkb_get_compat_map_reply_t *R /**< */); - -int -xcb_xkb_get_compat_map_si_rtrn_length (const xcb_xkb_get_compat_map_reply_t *R /**< */); - -xcb_xkb_sym_interpret_iterator_t -xcb_xkb_get_compat_map_si_rtrn_iterator (const xcb_xkb_get_compat_map_reply_t *R /**< */); - -xcb_xkb_mod_def_t * -xcb_xkb_get_compat_map_group_rtrn (const xcb_xkb_get_compat_map_reply_t *R /**< */); - -int -xcb_xkb_get_compat_map_group_rtrn_length (const xcb_xkb_get_compat_map_reply_t *R /**< */); - -xcb_xkb_mod_def_iterator_t -xcb_xkb_get_compat_map_group_rtrn_iterator (const xcb_xkb_get_compat_map_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_get_compat_map_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_get_compat_map_reply_t * -xcb_xkb_get_compat_map_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_compat_map_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xkb_set_compat_map_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_set_compat_map_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t recomputeActions /**< */, - uint8_t truncateSI /**< */, - uint8_t groups /**< */, - uint16_t firstSI /**< */, - uint16_t nSI /**< */, - const xcb_xkb_sym_interpret_t *si /**< */, - const xcb_xkb_mod_def_t *groupMaps /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_set_compat_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t recomputeActions /**< */, - uint8_t truncateSI /**< */, - uint8_t groups /**< */, - uint16_t firstSI /**< */, - uint16_t nSI /**< */, - const xcb_xkb_sym_interpret_t *si /**< */, - const xcb_xkb_mod_def_t *groupMaps /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_get_indicator_state_cookie_t -xcb_xkb_get_indicator_state (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_get_indicator_state_cookie_t -xcb_xkb_get_indicator_state_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_get_indicator_state_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_get_indicator_state_reply_t * -xcb_xkb_get_indicator_state_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_indicator_state_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xkb_get_indicator_map_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_get_indicator_map_cookie_t -xcb_xkb_get_indicator_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_get_indicator_map_cookie_t -xcb_xkb_get_indicator_map_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */); - -xcb_xkb_indicator_map_t * -xcb_xkb_get_indicator_map_maps (const xcb_xkb_get_indicator_map_reply_t *R /**< */); - -int -xcb_xkb_get_indicator_map_maps_length (const xcb_xkb_get_indicator_map_reply_t *R /**< */); - -xcb_xkb_indicator_map_iterator_t -xcb_xkb_get_indicator_map_maps_iterator (const xcb_xkb_get_indicator_map_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_get_indicator_map_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_get_indicator_map_reply_t * -xcb_xkb_get_indicator_map_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_indicator_map_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xkb_set_indicator_map_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_set_indicator_map_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */, - const xcb_xkb_indicator_map_t *maps /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_set_indicator_map (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */, - const xcb_xkb_indicator_map_t *maps /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_get_named_indicator_cookie_t -xcb_xkb_get_named_indicator (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */, - xcb_atom_t indicator /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_get_named_indicator_cookie_t -xcb_xkb_get_named_indicator_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */, - xcb_atom_t indicator /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_get_named_indicator_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_get_named_indicator_reply_t * -xcb_xkb_get_named_indicator_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_named_indicator_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_set_named_indicator_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */, - xcb_atom_t indicator /**< */, - uint8_t setState /**< */, - uint8_t on /**< */, - uint8_t setMap /**< */, - uint8_t createMap /**< */, - uint8_t map_flags /**< */, - uint8_t map_whichGroups /**< */, - uint8_t map_groups /**< */, - uint8_t map_whichMods /**< */, - uint8_t map_realMods /**< */, - uint16_t map_vmods /**< */, - uint32_t map_ctrls /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_set_named_indicator (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */, - xcb_atom_t indicator /**< */, - uint8_t setState /**< */, - uint8_t on /**< */, - uint8_t setMap /**< */, - uint8_t createMap /**< */, - uint8_t map_flags /**< */, - uint8_t map_whichGroups /**< */, - uint8_t map_groups /**< */, - uint8_t map_whichMods /**< */, - uint8_t map_realMods /**< */, - uint16_t map_vmods /**< */, - uint32_t map_ctrls /**< */); - -xcb_atom_t * -xcb_xkb_get_names_value_list_type_names (const xcb_xkb_get_names_value_list_t *S /**< */); - -int -xcb_xkb_get_names_value_list_type_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_type_names_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -uint8_t * -xcb_xkb_get_names_value_list_n_levels_per_type (const xcb_xkb_get_names_value_list_t *S /**< */); - -int -xcb_xkb_get_names_value_list_n_levels_per_type_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_n_levels_per_type_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -uint8_t * -xcb_xkb_get_names_value_list_alignment_pad (const xcb_xkb_get_names_value_list_t *S /**< */); - -int -xcb_xkb_get_names_value_list_alignment_pad_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_alignment_pad_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_atom_t * -xcb_xkb_get_names_value_list_kt_level_names (const xcb_xkb_get_names_value_list_t *S /**< */); - -int -xcb_xkb_get_names_value_list_kt_level_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_kt_level_names_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_atom_t * -xcb_xkb_get_names_value_list_indicator_names (const xcb_xkb_get_names_value_list_t *S /**< */); - -int -xcb_xkb_get_names_value_list_indicator_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_indicator_names_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_atom_t * -xcb_xkb_get_names_value_list_virtual_mod_names (const xcb_xkb_get_names_value_list_t *S /**< */); - -int -xcb_xkb_get_names_value_list_virtual_mod_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_virtual_mod_names_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_atom_t * -xcb_xkb_get_names_value_list_groups (const xcb_xkb_get_names_value_list_t *S /**< */); - -int -xcb_xkb_get_names_value_list_groups_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_groups_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_xkb_key_name_t * -xcb_xkb_get_names_value_list_key_names (const xcb_xkb_get_names_value_list_t *S /**< */); - -int -xcb_xkb_get_names_value_list_key_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_xkb_key_name_iterator_t -xcb_xkb_get_names_value_list_key_names_iterator (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_xkb_key_alias_t * -xcb_xkb_get_names_value_list_key_aliases (const xcb_xkb_get_names_value_list_t *S /**< */); - -int -xcb_xkb_get_names_value_list_key_aliases_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_xkb_key_alias_iterator_t -xcb_xkb_get_names_value_list_key_aliases_iterator (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_atom_t * -xcb_xkb_get_names_value_list_radio_group_names (const xcb_xkb_get_names_value_list_t *S /**< */); - -int -xcb_xkb_get_names_value_list_radio_group_names_length (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_names_value_list_radio_group_names_end (const xcb_xkb_get_names_reply_t *R /**< */, - const xcb_xkb_get_names_value_list_t *S /**< */); - -int -xcb_xkb_get_names_value_list_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */, - const xcb_xkb_get_names_value_list_t *_aux /**< */); - -int -xcb_xkb_get_names_value_list_unpack (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */, - xcb_xkb_get_names_value_list_t *_aux /**< */); - -int -xcb_xkb_get_names_value_list_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_get_names_cookie_t -xcb_xkb_get_names (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_get_names_cookie_t -xcb_xkb_get_names_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t which /**< */); - -void * -xcb_xkb_get_names_value_list (const xcb_xkb_get_names_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_get_names_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_get_names_reply_t * -xcb_xkb_get_names_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_names_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -xcb_atom_t * -xcb_xkb_set_names_values_type_names (const xcb_xkb_set_names_values_t *S /**< */); - -int -xcb_xkb_set_names_values_type_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_set_names_values_type_names_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -uint8_t * -xcb_xkb_set_names_values_n_levels_per_type (const xcb_xkb_set_names_values_t *S /**< */); - -int -xcb_xkb_set_names_values_n_levels_per_type_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_set_names_values_n_levels_per_type_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_atom_t * -xcb_xkb_set_names_values_kt_level_names (const xcb_xkb_set_names_values_t *S /**< */); - -int -xcb_xkb_set_names_values_kt_level_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_set_names_values_kt_level_names_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_atom_t * -xcb_xkb_set_names_values_indicator_names (const xcb_xkb_set_names_values_t *S /**< */); - -int -xcb_xkb_set_names_values_indicator_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_set_names_values_indicator_names_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_atom_t * -xcb_xkb_set_names_values_virtual_mod_names (const xcb_xkb_set_names_values_t *S /**< */); - -int -xcb_xkb_set_names_values_virtual_mod_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_set_names_values_virtual_mod_names_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_atom_t * -xcb_xkb_set_names_values_groups (const xcb_xkb_set_names_values_t *S /**< */); - -int -xcb_xkb_set_names_values_groups_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_set_names_values_groups_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_xkb_key_name_t * -xcb_xkb_set_names_values_key_names (const xcb_xkb_set_names_values_t *S /**< */); - -int -xcb_xkb_set_names_values_key_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_xkb_key_name_iterator_t -xcb_xkb_set_names_values_key_names_iterator (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_xkb_key_alias_t * -xcb_xkb_set_names_values_key_aliases (const xcb_xkb_set_names_values_t *S /**< */); - -int -xcb_xkb_set_names_values_key_aliases_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_xkb_key_alias_iterator_t -xcb_xkb_set_names_values_key_aliases_iterator (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_atom_t * -xcb_xkb_set_names_values_radio_group_names (const xcb_xkb_set_names_values_t *S /**< */); - -int -xcb_xkb_set_names_values_radio_group_names_length (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_set_names_values_radio_group_names_end (const xcb_xkb_set_names_request_t *R /**< */, - const xcb_xkb_set_names_values_t *S /**< */); - -int -xcb_xkb_set_names_values_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */, - const xcb_xkb_set_names_values_t *_aux /**< */); - -int -xcb_xkb_set_names_values_unpack (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */, - xcb_xkb_set_names_values_t *_aux /**< */); - -int -xcb_xkb_set_names_values_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_set_names_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t virtualMods /**< */, - uint32_t which /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - uint8_t firstKTLevelt /**< */, - uint8_t nKTLevels /**< */, - uint32_t indicators /**< */, - uint8_t groupNames /**< */, - uint8_t nRadioGroups /**< */, - xcb_keycode_t firstKey /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint16_t totalKTLevelNames /**< */, - const void *values /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_set_names (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t virtualMods /**< */, - uint32_t which /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - uint8_t firstKTLevelt /**< */, - uint8_t nKTLevels /**< */, - uint32_t indicators /**< */, - uint8_t groupNames /**< */, - uint8_t nRadioGroups /**< */, - xcb_keycode_t firstKey /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint16_t totalKTLevelNames /**< */, - const void *values /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_set_names_aux_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t virtualMods /**< */, - uint32_t which /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - uint8_t firstKTLevelt /**< */, - uint8_t nKTLevels /**< */, - uint32_t indicators /**< */, - uint8_t groupNames /**< */, - uint8_t nRadioGroups /**< */, - xcb_keycode_t firstKey /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint16_t totalKTLevelNames /**< */, - const xcb_xkb_set_names_values_t *values /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_set_names_aux (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t virtualMods /**< */, - uint32_t which /**< */, - uint8_t firstType /**< */, - uint8_t nTypes /**< */, - uint8_t firstKTLevelt /**< */, - uint8_t nKTLevels /**< */, - uint32_t indicators /**< */, - uint8_t groupNames /**< */, - uint8_t nRadioGroups /**< */, - xcb_keycode_t firstKey /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint16_t totalKTLevelNames /**< */, - const xcb_xkb_set_names_values_t *values /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_per_client_flags_cookie_t -xcb_xkb_per_client_flags (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t change /**< */, - uint32_t value /**< */, - uint32_t ctrlsToChange /**< */, - uint32_t autoCtrls /**< */, - uint32_t autoCtrlsValues /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_per_client_flags_cookie_t -xcb_xkb_per_client_flags_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint32_t change /**< */, - uint32_t value /**< */, - uint32_t ctrlsToChange /**< */, - uint32_t autoCtrls /**< */, - uint32_t autoCtrlsValues /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_per_client_flags_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_per_client_flags_reply_t * -xcb_xkb_per_client_flags_reply (xcb_connection_t *c /**< */, - xcb_xkb_per_client_flags_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xkb_list_components_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_list_components_cookie_t -xcb_xkb_list_components (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t maxNames /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_list_components_cookie_t -xcb_xkb_list_components_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t maxNames /**< */); - -int -xcb_xkb_list_components_keymaps_length (const xcb_xkb_list_components_reply_t *R /**< */); - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_keymaps_iterator (const xcb_xkb_list_components_reply_t *R /**< */); - -int -xcb_xkb_list_components_keycodes_length (const xcb_xkb_list_components_reply_t *R /**< */); - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_keycodes_iterator (const xcb_xkb_list_components_reply_t *R /**< */); - -int -xcb_xkb_list_components_types_length (const xcb_xkb_list_components_reply_t *R /**< */); - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_types_iterator (const xcb_xkb_list_components_reply_t *R /**< */); - -int -xcb_xkb_list_components_compat_maps_length (const xcb_xkb_list_components_reply_t *R /**< */); - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_compat_maps_iterator (const xcb_xkb_list_components_reply_t *R /**< */); - -int -xcb_xkb_list_components_symbols_length (const xcb_xkb_list_components_reply_t *R /**< */); - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_symbols_iterator (const xcb_xkb_list_components_reply_t *R /**< */); - -int -xcb_xkb_list_components_geometries_length (const xcb_xkb_list_components_reply_t *R /**< */); - -xcb_xkb_listing_iterator_t -xcb_xkb_list_components_geometries_iterator (const xcb_xkb_list_components_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_list_components_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_list_components_reply_t * -xcb_xkb_list_components_reply (xcb_connection_t *c /**< */, - xcb_xkb_list_components_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_types_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_key_type_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_types_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_syms_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_key_sym_map_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_syms_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -uint8_t * -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_count (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_count_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_count_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_action_t * -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_acts (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_acts_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_action_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_acts_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_set_behavior_t * -xcb_xkb_get_kbd_by_name_replies_types_map_behaviors_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_behaviors_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_set_behavior_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_behaviors_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -uint8_t * -xcb_xkb_get_kbd_by_name_replies_types_map_vmods_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_vmods_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_vmods_rtrn_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_set_explicit_t * -xcb_xkb_get_kbd_by_name_replies_types_map_explicit_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_explicit_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_set_explicit_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_explicit_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_key_mod_map_t * -xcb_xkb_get_kbd_by_name_replies_types_map_modmap_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_modmap_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_key_mod_map_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_modmap_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_key_v_mod_map_t * -xcb_xkb_get_kbd_by_name_replies_types_map_vmodmap_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_vmodmap_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_key_v_mod_map_iterator_t -xcb_xkb_get_kbd_by_name_replies_types_map_vmodmap_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */, - const xcb_xkb_get_kbd_by_name_replies_types_map_t *_aux /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_unpack (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */, - xcb_xkb_get_kbd_by_name_replies_types_map_t *_aux /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_types_map_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint8_t nKeySyms /**< */, - uint8_t nKeyActions /**< */, - uint16_t totalActions /**< */, - uint8_t totalKeyBehaviors /**< */, - uint16_t virtualMods /**< */, - uint8_t totalKeyExplicit /**< */, - uint8_t totalModMapKeys /**< */, - uint8_t totalVModMapKeys /**< */, - uint16_t present /**< */); - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_type_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_type_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_type_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -uint8_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_n_levels_per_type (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_n_levels_per_type_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_n_levels_per_type_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_kt_level_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_kt_level_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_kt_level_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_indicator_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_indicator_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_indicator_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_virtual_mod_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_virtual_mod_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_virtual_mod_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_groups (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_groups_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_groups_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_key_name_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_key_name_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_names_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_key_alias_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_aliases (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_aliases_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_key_alias_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_aliases_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_atom_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_radio_group_names (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_radio_group_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_radio_group_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_serialize (void **_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */, - const xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t *_aux /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_unpack (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */, - xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t *_aux /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_sizeof (const void *_buffer /**< */, - uint8_t nTypes /**< */, - uint32_t indicators /**< */, - uint16_t virtualMods /**< */, - uint8_t groupNames /**< */, - uint8_t nKeys /**< */, - uint8_t nKeyAliases /**< */, - uint8_t nRadioGroups /**< */, - uint32_t which /**< */); - -xcb_xkb_sym_interpret_t * -xcb_xkb_get_kbd_by_name_replies_compat_map_si_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_compat_map_si_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_sym_interpret_iterator_t -xcb_xkb_get_kbd_by_name_replies_compat_map_si_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_mod_def_t * -xcb_xkb_get_kbd_by_name_replies_compat_map_group_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_compat_map_group_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_mod_def_iterator_t -xcb_xkb_get_kbd_by_name_replies_compat_map_group_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_indicator_map_t * -xcb_xkb_get_kbd_by_name_replies_indicator_maps_maps (const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_indicator_maps_maps_length (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_indicator_map_iterator_t -xcb_xkb_get_kbd_by_name_replies_indicator_maps_maps_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *S /**< */); - -xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t * -xcb_xkb_get_kbd_by_name_replies_key_names_value_list (const xcb_xkb_get_kbd_by_name_replies_t *R /**< */); - -xcb_xkb_counted_string_16_t * -xcb_xkb_get_kbd_by_name_replies_geometry_label_font (const xcb_xkb_get_kbd_by_name_replies_t *R /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_serialize (void **_buffer /**< */, - uint16_t reported /**< */, - const xcb_xkb_get_kbd_by_name_replies_t *_aux /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_unpack (const void *_buffer /**< */, - uint16_t reported /**< */, - xcb_xkb_get_kbd_by_name_replies_t *_aux /**< */); - -int -xcb_xkb_get_kbd_by_name_replies_sizeof (const void *_buffer /**< */, - uint16_t reported /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_get_kbd_by_name_cookie_t -xcb_xkb_get_kbd_by_name (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t need /**< */, - uint16_t want /**< */, - uint8_t load /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_get_kbd_by_name_cookie_t -xcb_xkb_get_kbd_by_name_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t need /**< */, - uint16_t want /**< */, - uint8_t load /**< */); - -void * -xcb_xkb_get_kbd_by_name_replies (const xcb_xkb_get_kbd_by_name_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_get_kbd_by_name_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_get_kbd_by_name_reply_t * -xcb_xkb_get_kbd_by_name_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_kbd_by_name_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xkb_get_device_info_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_get_device_info_cookie_t -xcb_xkb_get_device_info (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t wanted /**< */, - uint8_t allButtons /**< */, - uint8_t firstButton /**< */, - uint8_t nButtons /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_get_device_info_cookie_t -xcb_xkb_get_device_info_unchecked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint16_t wanted /**< */, - uint8_t allButtons /**< */, - uint8_t firstButton /**< */, - uint8_t nButtons /**< */, - xcb_xkb_led_class_spec_t ledClass /**< */, - xcb_xkb_id_spec_t ledID /**< */); - -xcb_xkb_string8_t * -xcb_xkb_get_device_info_name (const xcb_xkb_get_device_info_reply_t *R /**< */); - -int -xcb_xkb_get_device_info_name_length (const xcb_xkb_get_device_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xkb_get_device_info_name_end (const xcb_xkb_get_device_info_reply_t *R /**< */); - -xcb_xkb_action_t * -xcb_xkb_get_device_info_btn_actions (const xcb_xkb_get_device_info_reply_t *R /**< */); - -int -xcb_xkb_get_device_info_btn_actions_length (const xcb_xkb_get_device_info_reply_t *R /**< */); - -xcb_xkb_action_iterator_t -xcb_xkb_get_device_info_btn_actions_iterator (const xcb_xkb_get_device_info_reply_t *R /**< */); - -int -xcb_xkb_get_device_info_leds_length (const xcb_xkb_get_device_info_reply_t *R /**< */); - -xcb_xkb_device_led_info_iterator_t -xcb_xkb_get_device_info_leds_iterator (const xcb_xkb_get_device_info_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_get_device_info_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_get_device_info_reply_t * -xcb_xkb_get_device_info_reply (xcb_connection_t *c /**< */, - xcb_xkb_get_device_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xkb_set_device_info_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xkb_set_device_info_checked (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t firstBtn /**< */, - uint8_t nBtns /**< */, - uint16_t change /**< */, - uint16_t nDeviceLedFBs /**< */, - const xcb_xkb_action_t *btnActions /**< */, - const xcb_xkb_device_led_info_t *leds /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xkb_set_device_info (xcb_connection_t *c /**< */, - xcb_xkb_device_spec_t deviceSpec /**< */, - uint8_t firstBtn /**< */, - uint8_t nBtns /**< */, - uint16_t change /**< */, - uint16_t nDeviceLedFBs /**< */, - const xcb_xkb_action_t *btnActions /**< */, - const xcb_xkb_device_led_info_t *leds /**< */); - -int -xcb_xkb_set_debugging_flags_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xkb_set_debugging_flags_cookie_t -xcb_xkb_set_debugging_flags (xcb_connection_t *c /**< */, - uint16_t msgLength /**< */, - uint32_t affectFlags /**< */, - uint32_t flags /**< */, - uint32_t affectCtrls /**< */, - uint32_t ctrls /**< */, - const xcb_xkb_string8_t *message /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xkb_set_debugging_flags_cookie_t -xcb_xkb_set_debugging_flags_unchecked (xcb_connection_t *c /**< */, - uint16_t msgLength /**< */, - uint32_t affectFlags /**< */, - uint32_t flags /**< */, - uint32_t affectCtrls /**< */, - uint32_t ctrls /**< */, - const xcb_xkb_string8_t *message /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xkb_set_debugging_flags_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xkb_set_debugging_flags_reply_t * -xcb_xkb_set_debugging_flags_reply (xcb_connection_t *c /**< */, - xcb_xkb_set_debugging_flags_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xprint.c b/external/mit/xorg/lib/libxcb/files/xprint.c deleted file mode 100644 index a20702045..000000000 --- a/external/mit/xorg/lib/libxcb/files/xprint.c +++ /dev/null @@ -1,2493 +0,0 @@ -/* - * This file generated automatically from xprint.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xprint.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_x_print_id = { "XpExtension", 0 }; - -void -xcb_x_print_string8_next (xcb_x_print_string8_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_x_print_string8_t); -} - -xcb_generic_iterator_t -xcb_x_print_string8_end (xcb_x_print_string8_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_x_print_printer_serialize (void **_buffer /**< */, - const xcb_x_print_printer_t *_aux /**< */, - const xcb_x_print_string8_t *name /**< */, - const xcb_x_print_string8_t *description /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[5]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - /* xcb_x_print_printer_t.nameLen */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->nameLen; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* name */ - xcb_parts[xcb_parts_idx].iov_base = (char *) name; - xcb_block_len += _aux->nameLen * sizeof(xcb_x_print_string8_t); - xcb_parts[xcb_parts_idx].iov_len = _aux->nameLen * sizeof(xcb_x_print_string8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_x_print_string8_t); - /* xcb_x_print_printer_t.descLen */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->descLen; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* description */ - xcb_parts[xcb_parts_idx].iov_base = (char *) description; - xcb_block_len += _aux->descLen * sizeof(xcb_x_print_string8_t); - xcb_parts[xcb_parts_idx].iov_len = _aux->descLen * sizeof(xcb_x_print_string8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(xcb_x_print_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; inameLen; -} - -xcb_generic_iterator_t -xcb_x_print_printer_name_end (const xcb_x_print_printer_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_x_print_string8_t *) (R + 1)) + (R->nameLen); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_x_print_string8_t * -xcb_x_print_printer_description (const xcb_x_print_printer_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_x_print_printer_name_end(R); - return (xcb_x_print_string8_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index) + 4); -} - -int -xcb_x_print_printer_description_length (const xcb_x_print_printer_t *R /**< */) -{ - return R->descLen; -} - -xcb_generic_iterator_t -xcb_x_print_printer_description_end (const xcb_x_print_printer_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_x_print_printer_name_end(R); - i.data = ((xcb_x_print_string8_t *) child.data) + (R->descLen); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_x_print_printer_next (xcb_x_print_printer_iterator_t *i /**< */) -{ - xcb_x_print_printer_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_x_print_printer_t *)(((char *)R) + xcb_x_print_printer_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_x_print_printer_t *) child.data; -} - -xcb_generic_iterator_t -xcb_x_print_printer_end (xcb_x_print_printer_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_x_print_printer_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_x_print_pcontext_next (xcb_x_print_pcontext_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_x_print_pcontext_t); -} - -xcb_generic_iterator_t -xcb_x_print_pcontext_end (xcb_x_print_pcontext_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_x_print_print_query_version_cookie_t -xcb_x_print_print_query_version (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_query_version_cookie_t xcb_ret; - xcb_x_print_print_query_version_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_query_version_cookie_t -xcb_x_print_print_query_version_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_query_version_cookie_t xcb_ret; - xcb_x_print_print_query_version_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_query_version_reply_t * -xcb_x_print_print_query_version_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_x_print_print_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_x_print_print_get_printer_list_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_x_print_print_get_printer_list_request_t *_aux = (xcb_x_print_print_get_printer_list_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_x_print_print_get_printer_list_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* printer_name */ - xcb_block_len += _aux->printerNameLen * sizeof(xcb_x_print_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_x_print_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* locale */ - xcb_block_len += _aux->localeLen * sizeof(xcb_x_print_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_x_print_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_x_print_print_get_printer_list_cookie_t -xcb_x_print_print_get_printer_list (xcb_connection_t *c /**< */, - uint32_t printerNameLen /**< */, - uint32_t localeLen /**< */, - const xcb_x_print_string8_t *printer_name /**< */, - const xcb_x_print_string8_t *locale /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_PRINTER_LIST, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[8]; - xcb_x_print_print_get_printer_list_cookie_t xcb_ret; - xcb_x_print_print_get_printer_list_request_t xcb_out; - - xcb_out.printerNameLen = printerNameLen; - xcb_out.localeLen = localeLen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_x_print_string8_t printer_name */ - xcb_parts[4].iov_base = (char *) printer_name; - xcb_parts[4].iov_len = printerNameLen * sizeof(xcb_x_print_string8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_x_print_string8_t locale */ - xcb_parts[6].iov_base = (char *) locale; - xcb_parts[6].iov_len = localeLen * sizeof(xcb_x_print_string8_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_printer_list_cookie_t -xcb_x_print_print_get_printer_list_unchecked (xcb_connection_t *c /**< */, - uint32_t printerNameLen /**< */, - uint32_t localeLen /**< */, - const xcb_x_print_string8_t *printer_name /**< */, - const xcb_x_print_string8_t *locale /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_PRINTER_LIST, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[8]; - xcb_x_print_print_get_printer_list_cookie_t xcb_ret; - xcb_x_print_print_get_printer_list_request_t xcb_out; - - xcb_out.printerNameLen = printerNameLen; - xcb_out.localeLen = localeLen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_x_print_string8_t printer_name */ - xcb_parts[4].iov_base = (char *) printer_name; - xcb_parts[4].iov_len = printerNameLen * sizeof(xcb_x_print_string8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_x_print_string8_t locale */ - xcb_parts[6].iov_base = (char *) locale; - xcb_parts[6].iov_len = localeLen * sizeof(xcb_x_print_string8_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_x_print_print_get_printer_list_printers_length (const xcb_x_print_print_get_printer_list_reply_t *R /**< */) -{ - return R->listCount; -} - -xcb_x_print_printer_iterator_t -xcb_x_print_print_get_printer_list_printers_iterator (const xcb_x_print_print_get_printer_list_reply_t *R /**< */) -{ - xcb_x_print_printer_iterator_t i; - i.data = (xcb_x_print_printer_t *) (R + 1); - i.rem = R->listCount; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_x_print_print_get_printer_list_reply_t * -xcb_x_print_print_get_printer_list_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_printer_list_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - xcb_x_print_print_get_printer_list_reply_t *reply = (xcb_x_print_print_get_printer_list_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); - int i; - xcb_x_print_printer_iterator_t printers_iter = xcb_x_print_print_get_printer_list_printers_iterator(reply); - int printers_len = xcb_x_print_print_get_printer_list_printers_length(reply); - xcb_x_print_printer_t *printers_data; - /* special cases: transform parts of the reply to match XCB data structures */ - for(i=0; iprinterNameLen * sizeof(xcb_x_print_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_x_print_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* locale */ - xcb_block_len += _aux->localeLen * sizeof(xcb_x_print_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_x_print_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_x_print_create_context_checked (xcb_connection_t *c /**< */, - uint32_t context_id /**< */, - uint32_t printerNameLen /**< */, - uint32_t localeLen /**< */, - const xcb_x_print_string8_t *printerName /**< */, - const xcb_x_print_string8_t *locale /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_create_context_request_t xcb_out; - - xcb_out.context_id = context_id; - xcb_out.printerNameLen = printerNameLen; - xcb_out.localeLen = localeLen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_x_print_string8_t printerName */ - xcb_parts[4].iov_base = (char *) printerName; - xcb_parts[4].iov_len = printerNameLen * sizeof(xcb_x_print_string8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_x_print_string8_t locale */ - xcb_parts[6].iov_base = (char *) locale; - xcb_parts[6].iov_len = localeLen * sizeof(xcb_x_print_string8_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_create_context (xcb_connection_t *c /**< */, - uint32_t context_id /**< */, - uint32_t printerNameLen /**< */, - uint32_t localeLen /**< */, - const xcb_x_print_string8_t *printerName /**< */, - const xcb_x_print_string8_t *locale /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 6, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[8]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_create_context_request_t xcb_out; - - xcb_out.context_id = context_id; - xcb_out.printerNameLen = printerNameLen; - xcb_out.localeLen = localeLen; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_x_print_string8_t printerName */ - xcb_parts[4].iov_base = (char *) printerName; - xcb_parts[4].iov_len = printerNameLen * sizeof(xcb_x_print_string8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_x_print_string8_t locale */ - xcb_parts[6].iov_base = (char *) locale; - xcb_parts[6].iov_len = localeLen * sizeof(xcb_x_print_string8_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_set_context_checked (xcb_connection_t *c /**< */, - uint32_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_SET_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_set_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_set_context (xcb_connection_t *c /**< */, - uint32_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_SET_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_set_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_context_cookie_t -xcb_x_print_print_get_context (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_context_cookie_t xcb_ret; - xcb_x_print_print_get_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_context_cookie_t -xcb_x_print_print_get_context_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_context_cookie_t xcb_ret; - xcb_x_print_print_get_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_context_reply_t * -xcb_x_print_print_get_context_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_x_print_print_get_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_x_print_print_destroy_context_checked (xcb_connection_t *c /**< */, - uint32_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_DESTROY_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_destroy_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_destroy_context (xcb_connection_t *c /**< */, - uint32_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_DESTROY_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_destroy_context_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_screen_of_context_cookie_t -xcb_x_print_print_get_screen_of_context (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_screen_of_context_cookie_t xcb_ret; - xcb_x_print_print_get_screen_of_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_screen_of_context_cookie_t -xcb_x_print_print_get_screen_of_context_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_screen_of_context_cookie_t xcb_ret; - xcb_x_print_print_get_screen_of_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_screen_of_context_reply_t * -xcb_x_print_print_get_screen_of_context_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_screen_of_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_x_print_print_get_screen_of_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_x_print_print_start_job_checked (xcb_connection_t *c /**< */, - uint8_t output_mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_START_JOB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_start_job_request_t xcb_out; - - xcb_out.output_mode = output_mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_start_job (xcb_connection_t *c /**< */, - uint8_t output_mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_START_JOB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_start_job_request_t xcb_out; - - xcb_out.output_mode = output_mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_end_job_checked (xcb_connection_t *c /**< */, - uint8_t cancel /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_END_JOB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_end_job_request_t xcb_out; - - xcb_out.cancel = cancel; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_end_job (xcb_connection_t *c /**< */, - uint8_t cancel /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_END_JOB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_end_job_request_t xcb_out; - - xcb_out.cancel = cancel; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_start_doc_checked (xcb_connection_t *c /**< */, - uint8_t driver_mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_START_DOC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_start_doc_request_t xcb_out; - - xcb_out.driver_mode = driver_mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_start_doc (xcb_connection_t *c /**< */, - uint8_t driver_mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_START_DOC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_start_doc_request_t xcb_out; - - xcb_out.driver_mode = driver_mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_end_doc_checked (xcb_connection_t *c /**< */, - uint8_t cancel /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_END_DOC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_end_doc_request_t xcb_out; - - xcb_out.cancel = cancel; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_end_doc (xcb_connection_t *c /**< */, - uint8_t cancel /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_END_DOC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_end_doc_request_t xcb_out; - - xcb_out.cancel = cancel; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_x_print_print_put_document_data_sizeof (const void *_buffer /**< */, - uint32_t doc_format_len /**< */, - uint32_t options_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_x_print_print_put_document_data_request_t *_aux = (xcb_x_print_print_put_document_data_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_x_print_print_put_document_data_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->len_data * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* doc_format */ - xcb_block_len += doc_format_len * sizeof(xcb_x_print_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_x_print_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* options */ - xcb_block_len += options_len * sizeof(xcb_x_print_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_x_print_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_x_print_print_put_document_data_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t len_data /**< */, - uint16_t len_fmt /**< */, - uint16_t len_options /**< */, - const uint8_t *data /**< */, - uint32_t doc_format_len /**< */, - const xcb_x_print_string8_t *doc_format /**< */, - uint32_t options_len /**< */, - const xcb_x_print_string8_t *options /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 8, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[10]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_put_document_data_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.len_data = len_data; - xcb_out.len_fmt = len_fmt; - xcb_out.len_options = len_options; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = len_data * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_x_print_string8_t doc_format */ - xcb_parts[6].iov_base = (char *) doc_format; - xcb_parts[6].iov_len = doc_format_len * sizeof(xcb_x_print_string8_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - /* xcb_x_print_string8_t options */ - xcb_parts[8].iov_base = (char *) options; - xcb_parts[8].iov_len = options_len * sizeof(xcb_x_print_string8_t); - xcb_parts[9].iov_base = 0; - xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_put_document_data (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t len_data /**< */, - uint16_t len_fmt /**< */, - uint16_t len_options /**< */, - const uint8_t *data /**< */, - uint32_t doc_format_len /**< */, - const xcb_x_print_string8_t *doc_format /**< */, - uint32_t options_len /**< */, - const xcb_x_print_string8_t *options /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 8, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[10]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_put_document_data_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.len_data = len_data; - xcb_out.len_fmt = len_fmt; - xcb_out.len_options = len_options; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = len_data * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - /* xcb_x_print_string8_t doc_format */ - xcb_parts[6].iov_base = (char *) doc_format; - xcb_parts[6].iov_len = doc_format_len * sizeof(xcb_x_print_string8_t); - xcb_parts[7].iov_base = 0; - xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; - /* xcb_x_print_string8_t options */ - xcb_parts[8].iov_base = (char *) options; - xcb_parts[8].iov_len = options_len * sizeof(xcb_x_print_string8_t); - xcb_parts[9].iov_base = 0; - xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_x_print_print_get_document_data_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_x_print_print_get_document_data_reply_t *_aux = (xcb_x_print_print_get_document_data_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_x_print_print_get_document_data_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->dataLen * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_x_print_print_get_document_data_cookie_t -xcb_x_print_print_get_document_data (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t max_bytes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_document_data_cookie_t xcb_ret; - xcb_x_print_print_get_document_data_request_t xcb_out; - - xcb_out.context = context; - xcb_out.max_bytes = max_bytes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_document_data_cookie_t -xcb_x_print_print_get_document_data_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t max_bytes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_document_data_cookie_t xcb_ret; - xcb_x_print_print_get_document_data_request_t xcb_out; - - xcb_out.context = context; - xcb_out.max_bytes = max_bytes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_x_print_print_get_document_data_data (const xcb_x_print_print_get_document_data_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_x_print_print_get_document_data_data_length (const xcb_x_print_print_get_document_data_reply_t *R /**< */) -{ - return R->dataLen; -} - -xcb_generic_iterator_t -xcb_x_print_print_get_document_data_data_end (const xcb_x_print_print_get_document_data_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + (R->dataLen); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_x_print_print_get_document_data_reply_t * -xcb_x_print_print_get_document_data_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_document_data_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_x_print_print_get_document_data_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_x_print_print_start_page_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_START_PAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_start_page_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_start_page (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_START_PAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_start_page_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_end_page_checked (xcb_connection_t *c /**< */, - uint8_t cancel /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_END_PAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_end_page_request_t xcb_out; - - xcb_out.cancel = cancel; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_end_page (xcb_connection_t *c /**< */, - uint8_t cancel /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_END_PAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_end_page_request_t xcb_out; - - xcb_out.cancel = cancel; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_x_print_print_select_input_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_x_print_print_select_input_request_t *_aux = (xcb_x_print_print_select_input_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_x_print_print_select_input_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* event_list */ - xcb_block_len += xcb_popcount(_aux->event_mask) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_x_print_print_select_input_checked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t event_mask /**< */, - const uint32_t *event_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_SELECT_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_select_input_request_t xcb_out; - - xcb_out.context = context; - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t event_list */ - xcb_parts[4].iov_base = (char *) event_list; - xcb_parts[4].iov_len = xcb_popcount(event_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_select_input (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t event_mask /**< */, - const uint32_t *event_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_SELECT_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_select_input_request_t xcb_out; - - xcb_out.context = context; - xcb_out.event_mask = event_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t event_list */ - xcb_parts[4].iov_base = (char *) event_list; - xcb_parts[4].iov_len = xcb_popcount(event_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_x_print_print_input_selected_serialize (void **_buffer /**< */, - const xcb_x_print_print_input_selected_reply_t *_aux /**< */, - const uint32_t *event_list /**< */, - const uint32_t *all_events_list /**< */) -{ - char *xcb_out = *_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_align_to = 0; - - unsigned int xcb_pad = 0; - char xcb_pad0[3] = {0, 0, 0}; - struct iovec xcb_parts[6]; - unsigned int xcb_parts_idx = 0; - unsigned int xcb_block_len = 0; - unsigned int i; - char *xcb_tmp; - - /* xcb_x_print_print_input_selected_reply_t.pad0 */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &xcb_pad; - xcb_block_len += sizeof(uint8_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint8_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint8_t); - /* xcb_x_print_print_input_selected_reply_t.event_mask */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->event_mask; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* event_list */ - xcb_parts[xcb_parts_idx].iov_base = (char *) event_list; - xcb_block_len += xcb_popcount(_aux->event_mask) * sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(_aux->event_mask) * sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* xcb_x_print_print_input_selected_reply_t.all_events_mask */ - xcb_parts[xcb_parts_idx].iov_base = (char *) &_aux->all_events_mask; - xcb_block_len += sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* all_events_list */ - xcb_parts[xcb_parts_idx].iov_base = (char *) all_events_list; - xcb_block_len += xcb_popcount(_aux->all_events_mask) * sizeof(uint32_t); - xcb_parts[xcb_parts_idx].iov_len = xcb_popcount(_aux->all_events_mask) * sizeof(uint32_t); - xcb_parts_idx++; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_parts[xcb_parts_idx].iov_base = xcb_pad0; - xcb_parts[xcb_parts_idx].iov_len = xcb_pad; - xcb_parts_idx++; - xcb_pad = 0; - } - xcb_block_len = 0; - - if (NULL == xcb_out) { - /* allocate memory */ - xcb_out = malloc(xcb_buffer_len); - *_buffer = xcb_out; - } - - xcb_tmp = xcb_out; - for(i=0; ievent_mask); -} - -xcb_generic_iterator_t -xcb_x_print_print_input_selected_event_list_end (const xcb_x_print_print_input_selected_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (xcb_popcount(R->event_mask)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint32_t * -xcb_x_print_print_input_selected_all_events_list (const xcb_x_print_print_input_selected_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_x_print_print_input_selected_event_list_end(R); - return (uint32_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index) + 4); -} - -int -xcb_x_print_print_input_selected_all_events_list_length (const xcb_x_print_print_input_selected_reply_t *R /**< */) -{ - return xcb_popcount(R->all_events_mask); -} - -xcb_generic_iterator_t -xcb_x_print_print_input_selected_all_events_list_end (const xcb_x_print_print_input_selected_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_x_print_print_input_selected_event_list_end(R); - i.data = ((uint32_t *) child.data) + (xcb_popcount(R->all_events_mask)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_x_print_print_input_selected_reply_t * -xcb_x_print_print_input_selected_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_input_selected_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_x_print_print_input_selected_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_x_print_print_get_attributes_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_x_print_print_get_attributes_reply_t *_aux = (xcb_x_print_print_get_attributes_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_x_print_print_get_attributes_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attributes */ - xcb_block_len += _aux->stringLen * sizeof(xcb_x_print_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_x_print_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_x_print_print_get_attributes_cookie_t -xcb_x_print_print_get_attributes (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint8_t pool /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_attributes_cookie_t xcb_ret; - xcb_x_print_print_get_attributes_request_t xcb_out; - - xcb_out.context = context; - xcb_out.pool = pool; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_attributes_cookie_t -xcb_x_print_print_get_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint8_t pool /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_attributes_cookie_t xcb_ret; - xcb_x_print_print_get_attributes_request_t xcb_out; - - xcb_out.context = context; - xcb_out.pool = pool; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_string8_t * -xcb_x_print_print_get_attributes_attributes (const xcb_x_print_print_get_attributes_reply_t *R /**< */) -{ - return (xcb_x_print_string8_t *) (R + 1); -} - -int -xcb_x_print_print_get_attributes_attributes_length (const xcb_x_print_print_get_attributes_reply_t *R /**< */) -{ - return R->stringLen; -} - -xcb_generic_iterator_t -xcb_x_print_print_get_attributes_attributes_end (const xcb_x_print_print_get_attributes_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_x_print_string8_t *) (R + 1)) + (R->stringLen); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_x_print_print_get_attributes_reply_t * -xcb_x_print_print_get_attributes_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_x_print_print_get_attributes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_x_print_print_get_one_attributes_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_x_print_print_get_one_attributes_request_t *_aux = (xcb_x_print_print_get_one_attributes_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_x_print_print_get_one_attributes_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->nameLen * sizeof(xcb_x_print_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_x_print_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_x_print_print_get_one_attributes_cookie_t -xcb_x_print_print_get_one_attributes (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t nameLen /**< */, - uint8_t pool /**< */, - const xcb_x_print_string8_t *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_x_print_print_get_one_attributes_cookie_t xcb_ret; - xcb_x_print_print_get_one_attributes_request_t xcb_out; - - xcb_out.context = context; - xcb_out.nameLen = nameLen; - xcb_out.pool = pool; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_x_print_string8_t name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = nameLen * sizeof(xcb_x_print_string8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_one_attributes_cookie_t -xcb_x_print_print_get_one_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t nameLen /**< */, - uint8_t pool /**< */, - const xcb_x_print_string8_t *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_x_print_print_get_one_attributes_cookie_t xcb_ret; - xcb_x_print_print_get_one_attributes_request_t xcb_out; - - xcb_out.context = context; - xcb_out.nameLen = nameLen; - xcb_out.pool = pool; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_x_print_string8_t name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = nameLen * sizeof(xcb_x_print_string8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_string8_t * -xcb_x_print_print_get_one_attributes_value (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */) -{ - return (xcb_x_print_string8_t *) (R + 1); -} - -int -xcb_x_print_print_get_one_attributes_value_length (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */) -{ - return R->valueLen; -} - -xcb_generic_iterator_t -xcb_x_print_print_get_one_attributes_value_end (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_x_print_string8_t *) (R + 1)) + (R->valueLen); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_x_print_print_get_one_attributes_reply_t * -xcb_x_print_print_get_one_attributes_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_one_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_x_print_print_get_one_attributes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_x_print_print_set_attributes_sizeof (const void *_buffer /**< */, - uint32_t attributes_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_x_print_print_set_attributes_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attributes */ - xcb_block_len += attributes_len * sizeof(xcb_x_print_string8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_x_print_string8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_x_print_print_set_attributes_checked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t stringLen /**< */, - uint8_t pool /**< */, - uint8_t rule /**< */, - uint32_t attributes_len /**< */, - const xcb_x_print_string8_t *attributes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_SET_ATTRIBUTES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_set_attributes_request_t xcb_out; - - xcb_out.context = context; - xcb_out.stringLen = stringLen; - xcb_out.pool = pool; - xcb_out.rule = rule; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_x_print_string8_t attributes */ - xcb_parts[4].iov_base = (char *) attributes; - xcb_parts[4].iov_len = attributes_len * sizeof(xcb_x_print_string8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_x_print_print_set_attributes (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t stringLen /**< */, - uint8_t pool /**< */, - uint8_t rule /**< */, - uint32_t attributes_len /**< */, - const xcb_x_print_string8_t *attributes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_SET_ATTRIBUTES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_x_print_print_set_attributes_request_t xcb_out; - - xcb_out.context = context; - xcb_out.stringLen = stringLen; - xcb_out.pool = pool; - xcb_out.rule = rule; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_x_print_string8_t attributes */ - xcb_parts[4].iov_base = (char *) attributes; - xcb_parts[4].iov_len = attributes_len * sizeof(xcb_x_print_string8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_page_dimensions_cookie_t -xcb_x_print_print_get_page_dimensions (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_page_dimensions_cookie_t xcb_ret; - xcb_x_print_print_get_page_dimensions_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_page_dimensions_cookie_t -xcb_x_print_print_get_page_dimensions_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_page_dimensions_cookie_t xcb_ret; - xcb_x_print_print_get_page_dimensions_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_page_dimensions_reply_t * -xcb_x_print_print_get_page_dimensions_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_page_dimensions_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_x_print_print_get_page_dimensions_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_x_print_print_query_screens_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_x_print_print_query_screens_reply_t *_aux = (xcb_x_print_print_query_screens_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_x_print_print_query_screens_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* roots */ - xcb_block_len += _aux->listCount * sizeof(xcb_window_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_window_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_x_print_print_query_screens_cookie_t -xcb_x_print_print_query_screens (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_QUERY_SCREENS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_query_screens_cookie_t xcb_ret; - xcb_x_print_print_query_screens_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_query_screens_cookie_t -xcb_x_print_print_query_screens_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_QUERY_SCREENS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_query_screens_cookie_t xcb_ret; - xcb_x_print_print_query_screens_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_window_t * -xcb_x_print_print_query_screens_roots (const xcb_x_print_print_query_screens_reply_t *R /**< */) -{ - return (xcb_window_t *) (R + 1); -} - -int -xcb_x_print_print_query_screens_roots_length (const xcb_x_print_print_query_screens_reply_t *R /**< */) -{ - return R->listCount; -} - -xcb_generic_iterator_t -xcb_x_print_print_query_screens_roots_end (const xcb_x_print_print_query_screens_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_window_t *) (R + 1)) + (R->listCount); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_x_print_print_query_screens_reply_t * -xcb_x_print_print_query_screens_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_query_screens_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_x_print_print_query_screens_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_x_print_print_set_image_resolution_cookie_t -xcb_x_print_print_set_image_resolution (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint16_t image_resolution /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_set_image_resolution_cookie_t xcb_ret; - xcb_x_print_print_set_image_resolution_request_t xcb_out; - - xcb_out.context = context; - xcb_out.image_resolution = image_resolution; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_set_image_resolution_cookie_t -xcb_x_print_print_set_image_resolution_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint16_t image_resolution /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_set_image_resolution_cookie_t xcb_ret; - xcb_x_print_print_set_image_resolution_request_t xcb_out; - - xcb_out.context = context; - xcb_out.image_resolution = image_resolution; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_set_image_resolution_reply_t * -xcb_x_print_print_set_image_resolution_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_set_image_resolution_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_x_print_print_set_image_resolution_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_x_print_print_get_image_resolution_cookie_t -xcb_x_print_print_get_image_resolution (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_image_resolution_cookie_t xcb_ret; - xcb_x_print_print_get_image_resolution_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_image_resolution_cookie_t -xcb_x_print_print_get_image_resolution_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_x_print_id, - /* opcode */ XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_x_print_print_get_image_resolution_cookie_t xcb_ret; - xcb_x_print_print_get_image_resolution_request_t xcb_out; - - xcb_out.context = context; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_x_print_print_get_image_resolution_reply_t * -xcb_x_print_print_get_image_resolution_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_image_resolution_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_x_print_print_get_image_resolution_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/xprint.h b/external/mit/xorg/lib/libxcb/files/xprint.h deleted file mode 100644 index 9bead9660..000000000 --- a/external/mit/xorg/lib/libxcb/files/xprint.h +++ /dev/null @@ -1,1877 +0,0 @@ -/* - * This file generated automatically from xprint.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_XPrint_API XCB XPrint API - * @brief XPrint XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XPRINT_H -#define __XPRINT_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_XPRINT_MAJOR_VERSION 1 -#define XCB_XPRINT_MINOR_VERSION 0 - -extern xcb_extension_t xcb_x_print_id; - -typedef char xcb_x_print_string8_t; - -/** - * @brief xcb_x_print_string8_iterator_t - **/ -typedef struct xcb_x_print_string8_iterator_t { - xcb_x_print_string8_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_x_print_string8_iterator_t; - -/** - * @brief xcb_x_print_printer_t - **/ -typedef struct xcb_x_print_printer_t { - uint32_t nameLen; /**< */ - uint32_t descLen; /**< */ -} xcb_x_print_printer_t; - -/** - * @brief xcb_x_print_printer_iterator_t - **/ -typedef struct xcb_x_print_printer_iterator_t { - xcb_x_print_printer_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_x_print_printer_iterator_t; - -typedef uint32_t xcb_x_print_pcontext_t; - -/** - * @brief xcb_x_print_pcontext_iterator_t - **/ -typedef struct xcb_x_print_pcontext_iterator_t { - xcb_x_print_pcontext_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_x_print_pcontext_iterator_t; - -typedef enum xcb_x_print_get_doc_t { - XCB_X_PRINT_GET_DOC_FINISHED = 0, - XCB_X_PRINT_GET_DOC_SECOND_CONSUMER = 1 -} xcb_x_print_get_doc_t; - -typedef enum xcb_x_print_ev_mask_t { - XCB_X_PRINT_EV_MASK_NO_EVENT_MASK = 0, - XCB_X_PRINT_EV_MASK_PRINT_MASK = 1, - XCB_X_PRINT_EV_MASK_ATTRIBUTE_MASK = 2 -} xcb_x_print_ev_mask_t; - -typedef enum xcb_x_print_detail_t { - XCB_X_PRINT_DETAIL_START_JOB_NOTIFY = 1, - XCB_X_PRINT_DETAIL_END_JOB_NOTIFY = 2, - XCB_X_PRINT_DETAIL_START_DOC_NOTIFY = 3, - XCB_X_PRINT_DETAIL_END_DOC_NOTIFY = 4, - XCB_X_PRINT_DETAIL_START_PAGE_NOTIFY = 5, - XCB_X_PRINT_DETAIL_END_PAGE_NOTIFY = 6 -} xcb_x_print_detail_t; - -typedef enum xcb_x_print_attr_t { - XCB_X_PRINT_ATTR_JOB_ATTR = 1, - XCB_X_PRINT_ATTR_DOC_ATTR = 2, - XCB_X_PRINT_ATTR_PAGE_ATTR = 3, - XCB_X_PRINT_ATTR_PRINTER_ATTR = 4, - XCB_X_PRINT_ATTR_SERVER_ATTR = 5, - XCB_X_PRINT_ATTR_MEDIUM_ATTR = 6, - XCB_X_PRINT_ATTR_SPOOLER_ATTR = 7 -} xcb_x_print_attr_t; - -/** - * @brief xcb_x_print_print_query_version_cookie_t - **/ -typedef struct xcb_x_print_print_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_query_version_cookie_t; - -/** Opcode for xcb_x_print_print_query_version. */ -#define XCB_X_PRINT_PRINT_QUERY_VERSION 0 - -/** - * @brief xcb_x_print_print_query_version_request_t - **/ -typedef struct xcb_x_print_print_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_x_print_print_query_version_request_t; - -/** - * @brief xcb_x_print_print_query_version_reply_t - **/ -typedef struct xcb_x_print_print_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t major_version; /**< */ - uint16_t minor_version; /**< */ -} xcb_x_print_print_query_version_reply_t; - -/** - * @brief xcb_x_print_print_get_printer_list_cookie_t - **/ -typedef struct xcb_x_print_print_get_printer_list_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_get_printer_list_cookie_t; - -/** Opcode for xcb_x_print_print_get_printer_list. */ -#define XCB_X_PRINT_PRINT_GET_PRINTER_LIST 1 - -/** - * @brief xcb_x_print_print_get_printer_list_request_t - **/ -typedef struct xcb_x_print_print_get_printer_list_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t printerNameLen; /**< */ - uint32_t localeLen; /**< */ -} xcb_x_print_print_get_printer_list_request_t; - -/** - * @brief xcb_x_print_print_get_printer_list_reply_t - **/ -typedef struct xcb_x_print_print_get_printer_list_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t listCount; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_x_print_print_get_printer_list_reply_t; - -/** Opcode for xcb_x_print_print_rehash_printer_list. */ -#define XCB_X_PRINT_PRINT_REHASH_PRINTER_LIST 20 - -/** - * @brief xcb_x_print_print_rehash_printer_list_request_t - **/ -typedef struct xcb_x_print_print_rehash_printer_list_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_x_print_print_rehash_printer_list_request_t; - -/** Opcode for xcb_x_print_create_context. */ -#define XCB_X_PRINT_CREATE_CONTEXT 2 - -/** - * @brief xcb_x_print_create_context_request_t - **/ -typedef struct xcb_x_print_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t context_id; /**< */ - uint32_t printerNameLen; /**< */ - uint32_t localeLen; /**< */ -} xcb_x_print_create_context_request_t; - -/** Opcode for xcb_x_print_print_set_context. */ -#define XCB_X_PRINT_PRINT_SET_CONTEXT 3 - -/** - * @brief xcb_x_print_print_set_context_request_t - **/ -typedef struct xcb_x_print_print_set_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t context; /**< */ -} xcb_x_print_print_set_context_request_t; - -/** - * @brief xcb_x_print_print_get_context_cookie_t - **/ -typedef struct xcb_x_print_print_get_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_get_context_cookie_t; - -/** Opcode for xcb_x_print_print_get_context. */ -#define XCB_X_PRINT_PRINT_GET_CONTEXT 4 - -/** - * @brief xcb_x_print_print_get_context_request_t - **/ -typedef struct xcb_x_print_print_get_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_x_print_print_get_context_request_t; - -/** - * @brief xcb_x_print_print_get_context_reply_t - **/ -typedef struct xcb_x_print_print_get_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context; /**< */ -} xcb_x_print_print_get_context_reply_t; - -/** Opcode for xcb_x_print_print_destroy_context. */ -#define XCB_X_PRINT_PRINT_DESTROY_CONTEXT 5 - -/** - * @brief xcb_x_print_print_destroy_context_request_t - **/ -typedef struct xcb_x_print_print_destroy_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t context; /**< */ -} xcb_x_print_print_destroy_context_request_t; - -/** - * @brief xcb_x_print_print_get_screen_of_context_cookie_t - **/ -typedef struct xcb_x_print_print_get_screen_of_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_get_screen_of_context_cookie_t; - -/** Opcode for xcb_x_print_print_get_screen_of_context. */ -#define XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT 6 - -/** - * @brief xcb_x_print_print_get_screen_of_context_request_t - **/ -typedef struct xcb_x_print_print_get_screen_of_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_x_print_print_get_screen_of_context_request_t; - -/** - * @brief xcb_x_print_print_get_screen_of_context_reply_t - **/ -typedef struct xcb_x_print_print_get_screen_of_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t root; /**< */ -} xcb_x_print_print_get_screen_of_context_reply_t; - -/** Opcode for xcb_x_print_print_start_job. */ -#define XCB_X_PRINT_PRINT_START_JOB 7 - -/** - * @brief xcb_x_print_print_start_job_request_t - **/ -typedef struct xcb_x_print_print_start_job_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t output_mode; /**< */ -} xcb_x_print_print_start_job_request_t; - -/** Opcode for xcb_x_print_print_end_job. */ -#define XCB_X_PRINT_PRINT_END_JOB 8 - -/** - * @brief xcb_x_print_print_end_job_request_t - **/ -typedef struct xcb_x_print_print_end_job_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t cancel; /**< */ -} xcb_x_print_print_end_job_request_t; - -/** Opcode for xcb_x_print_print_start_doc. */ -#define XCB_X_PRINT_PRINT_START_DOC 9 - -/** - * @brief xcb_x_print_print_start_doc_request_t - **/ -typedef struct xcb_x_print_print_start_doc_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t driver_mode; /**< */ -} xcb_x_print_print_start_doc_request_t; - -/** Opcode for xcb_x_print_print_end_doc. */ -#define XCB_X_PRINT_PRINT_END_DOC 10 - -/** - * @brief xcb_x_print_print_end_doc_request_t - **/ -typedef struct xcb_x_print_print_end_doc_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t cancel; /**< */ -} xcb_x_print_print_end_doc_request_t; - -/** Opcode for xcb_x_print_print_put_document_data. */ -#define XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA 11 - -/** - * @brief xcb_x_print_print_put_document_data_request_t - **/ -typedef struct xcb_x_print_print_put_document_data_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t len_data; /**< */ - uint16_t len_fmt; /**< */ - uint16_t len_options; /**< */ -} xcb_x_print_print_put_document_data_request_t; - -/** - * @brief xcb_x_print_print_get_document_data_cookie_t - **/ -typedef struct xcb_x_print_print_get_document_data_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_get_document_data_cookie_t; - -/** Opcode for xcb_x_print_print_get_document_data. */ -#define XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA 12 - -/** - * @brief xcb_x_print_print_get_document_data_request_t - **/ -typedef struct xcb_x_print_print_get_document_data_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_x_print_pcontext_t context; /**< */ - uint32_t max_bytes; /**< */ -} xcb_x_print_print_get_document_data_request_t; - -/** - * @brief xcb_x_print_print_get_document_data_reply_t - **/ -typedef struct xcb_x_print_print_get_document_data_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t status_code; /**< */ - uint32_t finished_flag; /**< */ - uint32_t dataLen; /**< */ - uint8_t pad1[12]; /**< */ -} xcb_x_print_print_get_document_data_reply_t; - -/** Opcode for xcb_x_print_print_start_page. */ -#define XCB_X_PRINT_PRINT_START_PAGE 13 - -/** - * @brief xcb_x_print_print_start_page_request_t - **/ -typedef struct xcb_x_print_print_start_page_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_x_print_print_start_page_request_t; - -/** Opcode for xcb_x_print_print_end_page. */ -#define XCB_X_PRINT_PRINT_END_PAGE 14 - -/** - * @brief xcb_x_print_print_end_page_request_t - **/ -typedef struct xcb_x_print_print_end_page_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t cancel; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_x_print_print_end_page_request_t; - -/** Opcode for xcb_x_print_print_select_input. */ -#define XCB_X_PRINT_PRINT_SELECT_INPUT 15 - -/** - * @brief xcb_x_print_print_select_input_request_t - **/ -typedef struct xcb_x_print_print_select_input_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_x_print_pcontext_t context; /**< */ - uint32_t event_mask; /**< */ -} xcb_x_print_print_select_input_request_t; - -/** - * @brief xcb_x_print_print_input_selected_cookie_t - **/ -typedef struct xcb_x_print_print_input_selected_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_input_selected_cookie_t; - -/** Opcode for xcb_x_print_print_input_selected. */ -#define XCB_X_PRINT_PRINT_INPUT_SELECTED 16 - -/** - * @brief xcb_x_print_print_input_selected_request_t - **/ -typedef struct xcb_x_print_print_input_selected_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_x_print_pcontext_t context; /**< */ -} xcb_x_print_print_input_selected_request_t; - -/** - * @brief xcb_x_print_print_input_selected_reply_t - **/ -typedef struct xcb_x_print_print_input_selected_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t event_mask; /**< */ - uint32_t all_events_mask; /**< */ -} xcb_x_print_print_input_selected_reply_t; - -/** - * @brief xcb_x_print_print_get_attributes_cookie_t - **/ -typedef struct xcb_x_print_print_get_attributes_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_get_attributes_cookie_t; - -/** Opcode for xcb_x_print_print_get_attributes. */ -#define XCB_X_PRINT_PRINT_GET_ATTRIBUTES 17 - -/** - * @brief xcb_x_print_print_get_attributes_request_t - **/ -typedef struct xcb_x_print_print_get_attributes_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_x_print_pcontext_t context; /**< */ - uint8_t pool; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_x_print_print_get_attributes_request_t; - -/** - * @brief xcb_x_print_print_get_attributes_reply_t - **/ -typedef struct xcb_x_print_print_get_attributes_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t stringLen; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_x_print_print_get_attributes_reply_t; - -/** - * @brief xcb_x_print_print_get_one_attributes_cookie_t - **/ -typedef struct xcb_x_print_print_get_one_attributes_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_get_one_attributes_cookie_t; - -/** Opcode for xcb_x_print_print_get_one_attributes. */ -#define XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES 19 - -/** - * @brief xcb_x_print_print_get_one_attributes_request_t - **/ -typedef struct xcb_x_print_print_get_one_attributes_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_x_print_pcontext_t context; /**< */ - uint32_t nameLen; /**< */ - uint8_t pool; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_x_print_print_get_one_attributes_request_t; - -/** - * @brief xcb_x_print_print_get_one_attributes_reply_t - **/ -typedef struct xcb_x_print_print_get_one_attributes_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t valueLen; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_x_print_print_get_one_attributes_reply_t; - -/** Opcode for xcb_x_print_print_set_attributes. */ -#define XCB_X_PRINT_PRINT_SET_ATTRIBUTES 18 - -/** - * @brief xcb_x_print_print_set_attributes_request_t - **/ -typedef struct xcb_x_print_print_set_attributes_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_x_print_pcontext_t context; /**< */ - uint32_t stringLen; /**< */ - uint8_t pool; /**< */ - uint8_t rule; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_x_print_print_set_attributes_request_t; - -/** - * @brief xcb_x_print_print_get_page_dimensions_cookie_t - **/ -typedef struct xcb_x_print_print_get_page_dimensions_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_get_page_dimensions_cookie_t; - -/** Opcode for xcb_x_print_print_get_page_dimensions. */ -#define XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS 21 - -/** - * @brief xcb_x_print_print_get_page_dimensions_request_t - **/ -typedef struct xcb_x_print_print_get_page_dimensions_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_x_print_pcontext_t context; /**< */ -} xcb_x_print_print_get_page_dimensions_request_t; - -/** - * @brief xcb_x_print_print_get_page_dimensions_reply_t - **/ -typedef struct xcb_x_print_print_get_page_dimensions_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t offset_x; /**< */ - uint16_t offset_y; /**< */ - uint16_t reproducible_width; /**< */ - uint16_t reproducible_height; /**< */ -} xcb_x_print_print_get_page_dimensions_reply_t; - -/** - * @brief xcb_x_print_print_query_screens_cookie_t - **/ -typedef struct xcb_x_print_print_query_screens_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_query_screens_cookie_t; - -/** Opcode for xcb_x_print_print_query_screens. */ -#define XCB_X_PRINT_PRINT_QUERY_SCREENS 22 - -/** - * @brief xcb_x_print_print_query_screens_request_t - **/ -typedef struct xcb_x_print_print_query_screens_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_x_print_print_query_screens_request_t; - -/** - * @brief xcb_x_print_print_query_screens_reply_t - **/ -typedef struct xcb_x_print_print_query_screens_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t listCount; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_x_print_print_query_screens_reply_t; - -/** - * @brief xcb_x_print_print_set_image_resolution_cookie_t - **/ -typedef struct xcb_x_print_print_set_image_resolution_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_set_image_resolution_cookie_t; - -/** Opcode for xcb_x_print_print_set_image_resolution. */ -#define XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION 23 - -/** - * @brief xcb_x_print_print_set_image_resolution_request_t - **/ -typedef struct xcb_x_print_print_set_image_resolution_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_x_print_pcontext_t context; /**< */ - uint16_t image_resolution; /**< */ -} xcb_x_print_print_set_image_resolution_request_t; - -/** - * @brief xcb_x_print_print_set_image_resolution_reply_t - **/ -typedef struct xcb_x_print_print_set_image_resolution_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t previous_resolutions; /**< */ -} xcb_x_print_print_set_image_resolution_reply_t; - -/** - * @brief xcb_x_print_print_get_image_resolution_cookie_t - **/ -typedef struct xcb_x_print_print_get_image_resolution_cookie_t { - unsigned int sequence; /**< */ -} xcb_x_print_print_get_image_resolution_cookie_t; - -/** Opcode for xcb_x_print_print_get_image_resolution. */ -#define XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION 24 - -/** - * @brief xcb_x_print_print_get_image_resolution_request_t - **/ -typedef struct xcb_x_print_print_get_image_resolution_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_x_print_pcontext_t context; /**< */ -} xcb_x_print_print_get_image_resolution_request_t; - -/** - * @brief xcb_x_print_print_get_image_resolution_reply_t - **/ -typedef struct xcb_x_print_print_get_image_resolution_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t image_resolution; /**< */ -} xcb_x_print_print_get_image_resolution_reply_t; - -/** Opcode for xcb_x_print_notify. */ -#define XCB_X_PRINT_NOTIFY 0 - -/** - * @brief xcb_x_print_notify_event_t - **/ -typedef struct xcb_x_print_notify_event_t { - uint8_t response_type; /**< */ - uint8_t detail; /**< */ - uint16_t sequence; /**< */ - xcb_x_print_pcontext_t context; /**< */ - uint8_t cancel; /**< */ -} xcb_x_print_notify_event_t; - -/** Opcode for xcb_x_print_attribut_notify. */ -#define XCB_X_PRINT_ATTRIBUT_NOTIFY 1 - -/** - * @brief xcb_x_print_attribut_notify_event_t - **/ -typedef struct xcb_x_print_attribut_notify_event_t { - uint8_t response_type; /**< */ - uint8_t detail; /**< */ - uint16_t sequence; /**< */ - xcb_x_print_pcontext_t context; /**< */ -} xcb_x_print_attribut_notify_event_t; - -/** Opcode for xcb_x_print_bad_context. */ -#define XCB_X_PRINT_BAD_CONTEXT 0 - -/** - * @brief xcb_x_print_bad_context_error_t - **/ -typedef struct xcb_x_print_bad_context_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_x_print_bad_context_error_t; - -/** Opcode for xcb_x_print_bad_sequence. */ -#define XCB_X_PRINT_BAD_SEQUENCE 1 - -/** - * @brief xcb_x_print_bad_sequence_error_t - **/ -typedef struct xcb_x_print_bad_sequence_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_x_print_bad_sequence_error_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_x_print_string8_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_x_print_string8_t) - */ -void -xcb_x_print_string8_next (xcb_x_print_string8_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_x_print_string8_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_x_print_string8_end (xcb_x_print_string8_iterator_t i /**< */); - -int -xcb_x_print_printer_serialize (void **_buffer /**< */, - const xcb_x_print_printer_t *_aux /**< */, - const xcb_x_print_string8_t *name /**< */, - const xcb_x_print_string8_t *description /**< */); - -int -xcb_x_print_printer_unserialize (const void *_buffer /**< */, - xcb_x_print_printer_t **_aux /**< */); - -int -xcb_x_print_printer_sizeof (const void *_buffer /**< */); - -xcb_x_print_string8_t * -xcb_x_print_printer_name (const xcb_x_print_printer_t *R /**< */); - -int -xcb_x_print_printer_name_length (const xcb_x_print_printer_t *R /**< */); - -xcb_generic_iterator_t -xcb_x_print_printer_name_end (const xcb_x_print_printer_t *R /**< */); - -xcb_x_print_string8_t * -xcb_x_print_printer_description (const xcb_x_print_printer_t *R /**< */); - -int -xcb_x_print_printer_description_length (const xcb_x_print_printer_t *R /**< */); - -xcb_generic_iterator_t -xcb_x_print_printer_description_end (const xcb_x_print_printer_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_x_print_printer_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_x_print_printer_t) - */ -void -xcb_x_print_printer_next (xcb_x_print_printer_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_x_print_printer_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_x_print_printer_end (xcb_x_print_printer_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_x_print_pcontext_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_x_print_pcontext_t) - */ -void -xcb_x_print_pcontext_next (xcb_x_print_pcontext_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_x_print_pcontext_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_x_print_pcontext_end (xcb_x_print_pcontext_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_query_version_cookie_t -xcb_x_print_print_query_version (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_query_version_cookie_t -xcb_x_print_print_query_version_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_query_version_reply_t * -xcb_x_print_print_query_version_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_x_print_print_get_printer_list_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_get_printer_list_cookie_t -xcb_x_print_print_get_printer_list (xcb_connection_t *c /**< */, - uint32_t printerNameLen /**< */, - uint32_t localeLen /**< */, - const xcb_x_print_string8_t *printer_name /**< */, - const xcb_x_print_string8_t *locale /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_get_printer_list_cookie_t -xcb_x_print_print_get_printer_list_unchecked (xcb_connection_t *c /**< */, - uint32_t printerNameLen /**< */, - uint32_t localeLen /**< */, - const xcb_x_print_string8_t *printer_name /**< */, - const xcb_x_print_string8_t *locale /**< */); - -int -xcb_x_print_print_get_printer_list_printers_length (const xcb_x_print_print_get_printer_list_reply_t *R /**< */); - -xcb_x_print_printer_iterator_t -xcb_x_print_print_get_printer_list_printers_iterator (const xcb_x_print_print_get_printer_list_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_get_printer_list_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_get_printer_list_reply_t * -xcb_x_print_print_get_printer_list_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_printer_list_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_rehash_printer_list_checked (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_rehash_printer_list (xcb_connection_t *c /**< */); - -int -xcb_x_print_create_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_create_context_checked (xcb_connection_t *c /**< */, - uint32_t context_id /**< */, - uint32_t printerNameLen /**< */, - uint32_t localeLen /**< */, - const xcb_x_print_string8_t *printerName /**< */, - const xcb_x_print_string8_t *locale /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_create_context (xcb_connection_t *c /**< */, - uint32_t context_id /**< */, - uint32_t printerNameLen /**< */, - uint32_t localeLen /**< */, - const xcb_x_print_string8_t *printerName /**< */, - const xcb_x_print_string8_t *locale /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_set_context_checked (xcb_connection_t *c /**< */, - uint32_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_set_context (xcb_connection_t *c /**< */, - uint32_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_get_context_cookie_t -xcb_x_print_print_get_context (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_get_context_cookie_t -xcb_x_print_print_get_context_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_get_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_get_context_reply_t * -xcb_x_print_print_get_context_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_destroy_context_checked (xcb_connection_t *c /**< */, - uint32_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_destroy_context (xcb_connection_t *c /**< */, - uint32_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_get_screen_of_context_cookie_t -xcb_x_print_print_get_screen_of_context (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_get_screen_of_context_cookie_t -xcb_x_print_print_get_screen_of_context_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_get_screen_of_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_get_screen_of_context_reply_t * -xcb_x_print_print_get_screen_of_context_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_screen_of_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_start_job_checked (xcb_connection_t *c /**< */, - uint8_t output_mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_start_job (xcb_connection_t *c /**< */, - uint8_t output_mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_end_job_checked (xcb_connection_t *c /**< */, - uint8_t cancel /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_end_job (xcb_connection_t *c /**< */, - uint8_t cancel /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_start_doc_checked (xcb_connection_t *c /**< */, - uint8_t driver_mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_start_doc (xcb_connection_t *c /**< */, - uint8_t driver_mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_end_doc_checked (xcb_connection_t *c /**< */, - uint8_t cancel /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_end_doc (xcb_connection_t *c /**< */, - uint8_t cancel /**< */); - -int -xcb_x_print_print_put_document_data_sizeof (const void *_buffer /**< */, - uint32_t doc_format_len /**< */, - uint32_t options_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_put_document_data_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t len_data /**< */, - uint16_t len_fmt /**< */, - uint16_t len_options /**< */, - const uint8_t *data /**< */, - uint32_t doc_format_len /**< */, - const xcb_x_print_string8_t *doc_format /**< */, - uint32_t options_len /**< */, - const xcb_x_print_string8_t *options /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_put_document_data (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint32_t len_data /**< */, - uint16_t len_fmt /**< */, - uint16_t len_options /**< */, - const uint8_t *data /**< */, - uint32_t doc_format_len /**< */, - const xcb_x_print_string8_t *doc_format /**< */, - uint32_t options_len /**< */, - const xcb_x_print_string8_t *options /**< */); - -int -xcb_x_print_print_get_document_data_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_get_document_data_cookie_t -xcb_x_print_print_get_document_data (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t max_bytes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_get_document_data_cookie_t -xcb_x_print_print_get_document_data_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t max_bytes /**< */); - -uint8_t * -xcb_x_print_print_get_document_data_data (const xcb_x_print_print_get_document_data_reply_t *R /**< */); - -int -xcb_x_print_print_get_document_data_data_length (const xcb_x_print_print_get_document_data_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_x_print_print_get_document_data_data_end (const xcb_x_print_print_get_document_data_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_get_document_data_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_get_document_data_reply_t * -xcb_x_print_print_get_document_data_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_document_data_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_start_page_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_start_page (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_end_page_checked (xcb_connection_t *c /**< */, - uint8_t cancel /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_end_page (xcb_connection_t *c /**< */, - uint8_t cancel /**< */); - -int -xcb_x_print_print_select_input_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_select_input_checked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t event_mask /**< */, - const uint32_t *event_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_select_input (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t event_mask /**< */, - const uint32_t *event_list /**< */); - -int -xcb_x_print_print_input_selected_serialize (void **_buffer /**< */, - const xcb_x_print_print_input_selected_reply_t *_aux /**< */, - const uint32_t *event_list /**< */, - const uint32_t *all_events_list /**< */); - -int -xcb_x_print_print_input_selected_unserialize (const void *_buffer /**< */, - xcb_x_print_print_input_selected_reply_t **_aux /**< */); - -int -xcb_x_print_print_input_selected_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_input_selected_cookie_t -xcb_x_print_print_input_selected (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_input_selected_cookie_t -xcb_x_print_print_input_selected_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */); - -uint32_t * -xcb_x_print_print_input_selected_event_list (const xcb_x_print_print_input_selected_reply_t *R /**< */); - -int -xcb_x_print_print_input_selected_event_list_length (const xcb_x_print_print_input_selected_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_x_print_print_input_selected_event_list_end (const xcb_x_print_print_input_selected_reply_t *R /**< */); - -uint32_t * -xcb_x_print_print_input_selected_all_events_list (const xcb_x_print_print_input_selected_reply_t *R /**< */); - -int -xcb_x_print_print_input_selected_all_events_list_length (const xcb_x_print_print_input_selected_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_x_print_print_input_selected_all_events_list_end (const xcb_x_print_print_input_selected_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_input_selected_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_input_selected_reply_t * -xcb_x_print_print_input_selected_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_input_selected_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_x_print_print_get_attributes_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_get_attributes_cookie_t -xcb_x_print_print_get_attributes (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint8_t pool /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_get_attributes_cookie_t -xcb_x_print_print_get_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint8_t pool /**< */); - -xcb_x_print_string8_t * -xcb_x_print_print_get_attributes_attributes (const xcb_x_print_print_get_attributes_reply_t *R /**< */); - -int -xcb_x_print_print_get_attributes_attributes_length (const xcb_x_print_print_get_attributes_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_x_print_print_get_attributes_attributes_end (const xcb_x_print_print_get_attributes_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_get_attributes_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_get_attributes_reply_t * -xcb_x_print_print_get_attributes_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_x_print_print_get_one_attributes_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_get_one_attributes_cookie_t -xcb_x_print_print_get_one_attributes (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t nameLen /**< */, - uint8_t pool /**< */, - const xcb_x_print_string8_t *name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_get_one_attributes_cookie_t -xcb_x_print_print_get_one_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t nameLen /**< */, - uint8_t pool /**< */, - const xcb_x_print_string8_t *name /**< */); - -xcb_x_print_string8_t * -xcb_x_print_print_get_one_attributes_value (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */); - -int -xcb_x_print_print_get_one_attributes_value_length (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_x_print_print_get_one_attributes_value_end (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_get_one_attributes_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_get_one_attributes_reply_t * -xcb_x_print_print_get_one_attributes_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_one_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_x_print_print_set_attributes_sizeof (const void *_buffer /**< */, - uint32_t attributes_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_x_print_print_set_attributes_checked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t stringLen /**< */, - uint8_t pool /**< */, - uint8_t rule /**< */, - uint32_t attributes_len /**< */, - const xcb_x_print_string8_t *attributes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_x_print_print_set_attributes (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint32_t stringLen /**< */, - uint8_t pool /**< */, - uint8_t rule /**< */, - uint32_t attributes_len /**< */, - const xcb_x_print_string8_t *attributes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_get_page_dimensions_cookie_t -xcb_x_print_print_get_page_dimensions (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_get_page_dimensions_cookie_t -xcb_x_print_print_get_page_dimensions_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_get_page_dimensions_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_get_page_dimensions_reply_t * -xcb_x_print_print_get_page_dimensions_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_page_dimensions_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_x_print_print_query_screens_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_query_screens_cookie_t -xcb_x_print_print_query_screens (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_query_screens_cookie_t -xcb_x_print_print_query_screens_unchecked (xcb_connection_t *c /**< */); - -xcb_window_t * -xcb_x_print_print_query_screens_roots (const xcb_x_print_print_query_screens_reply_t *R /**< */); - -int -xcb_x_print_print_query_screens_roots_length (const xcb_x_print_print_query_screens_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_x_print_print_query_screens_roots_end (const xcb_x_print_print_query_screens_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_query_screens_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_query_screens_reply_t * -xcb_x_print_print_query_screens_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_query_screens_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_set_image_resolution_cookie_t -xcb_x_print_print_set_image_resolution (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint16_t image_resolution /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_set_image_resolution_cookie_t -xcb_x_print_print_set_image_resolution_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */, - uint16_t image_resolution /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_set_image_resolution_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_set_image_resolution_reply_t * -xcb_x_print_print_set_image_resolution_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_set_image_resolution_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_x_print_print_get_image_resolution_cookie_t -xcb_x_print_print_get_image_resolution (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_x_print_print_get_image_resolution_cookie_t -xcb_x_print_print_get_image_resolution_unchecked (xcb_connection_t *c /**< */, - xcb_x_print_pcontext_t context /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_x_print_print_get_image_resolution_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_x_print_print_get_image_resolution_reply_t * -xcb_x_print_print_get_image_resolution_reply (xcb_connection_t *c /**< */, - xcb_x_print_print_get_image_resolution_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xproto.c b/external/mit/xorg/lib/libxcb/files/xproto.c deleted file mode 100644 index 4feb89d95..000000000 --- a/external/mit/xorg/lib/libxcb/files/xproto.c +++ /dev/null @@ -1,11610 +0,0 @@ -/* - * This file generated automatically from xproto.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xproto.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) - -void -xcb_char2b_next (xcb_char2b_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_char2b_t); -} - -xcb_generic_iterator_t -xcb_char2b_end (xcb_char2b_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_window_next (xcb_window_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_window_t); -} - -xcb_generic_iterator_t -xcb_window_end (xcb_window_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_pixmap_next (xcb_pixmap_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_pixmap_t); -} - -xcb_generic_iterator_t -xcb_pixmap_end (xcb_pixmap_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_cursor_next (xcb_cursor_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_cursor_t); -} - -xcb_generic_iterator_t -xcb_cursor_end (xcb_cursor_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_font_next (xcb_font_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_font_t); -} - -xcb_generic_iterator_t -xcb_font_end (xcb_font_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_gcontext_next (xcb_gcontext_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_gcontext_t); -} - -xcb_generic_iterator_t -xcb_gcontext_end (xcb_gcontext_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_colormap_next (xcb_colormap_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_colormap_t); -} - -xcb_generic_iterator_t -xcb_colormap_end (xcb_colormap_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_atom_next (xcb_atom_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_atom_t); -} - -xcb_generic_iterator_t -xcb_atom_end (xcb_atom_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_drawable_next (xcb_drawable_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_drawable_t); -} - -xcb_generic_iterator_t -xcb_drawable_end (xcb_drawable_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_fontable_next (xcb_fontable_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_fontable_t); -} - -xcb_generic_iterator_t -xcb_fontable_end (xcb_fontable_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_visualid_next (xcb_visualid_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_visualid_t); -} - -xcb_generic_iterator_t -xcb_visualid_end (xcb_visualid_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_timestamp_next (xcb_timestamp_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_timestamp_t); -} - -xcb_generic_iterator_t -xcb_timestamp_end (xcb_timestamp_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_keysym_next (xcb_keysym_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_keysym_t); -} - -xcb_generic_iterator_t -xcb_keysym_end (xcb_keysym_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_keycode_next (xcb_keycode_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_keycode_t); -} - -xcb_generic_iterator_t -xcb_keycode_end (xcb_keycode_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_button_next (xcb_button_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_button_t); -} - -xcb_generic_iterator_t -xcb_button_end (xcb_button_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_point_next (xcb_point_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_point_t); -} - -xcb_generic_iterator_t -xcb_point_end (xcb_point_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_rectangle_next (xcb_rectangle_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_rectangle_t); -} - -xcb_generic_iterator_t -xcb_rectangle_end (xcb_rectangle_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_arc_next (xcb_arc_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_arc_t); -} - -xcb_generic_iterator_t -xcb_arc_end (xcb_arc_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_format_next (xcb_format_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_format_t); -} - -xcb_generic_iterator_t -xcb_format_end (xcb_format_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_visualtype_next (xcb_visualtype_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_visualtype_t); -} - -xcb_generic_iterator_t -xcb_visualtype_end (xcb_visualtype_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_depth_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_depth_t *_aux = (xcb_depth_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_depth_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* visuals */ - xcb_block_len += _aux->visuals_len * sizeof(xcb_visualtype_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_visualtype_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_visualtype_t * -xcb_depth_visuals (const xcb_depth_t *R /**< */) -{ - return (xcb_visualtype_t *) (R + 1); -} - -int -xcb_depth_visuals_length (const xcb_depth_t *R /**< */) -{ - return R->visuals_len; -} - -xcb_visualtype_iterator_t -xcb_depth_visuals_iterator (const xcb_depth_t *R /**< */) -{ - xcb_visualtype_iterator_t i; - i.data = (xcb_visualtype_t *) (R + 1); - i.rem = R->visuals_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_depth_next (xcb_depth_iterator_t *i /**< */) -{ - xcb_depth_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_depth_t *)(((char *)R) + xcb_depth_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_depth_t *) child.data; -} - -xcb_generic_iterator_t -xcb_depth_end (xcb_depth_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_depth_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_screen_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_screen_t *_aux = (xcb_screen_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_screen_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* allowed_depths */ - for(i=0; i<_aux->allowed_depths_len; i++) { - xcb_tmp_len = xcb_depth_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_depth_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -int -xcb_screen_allowed_depths_length (const xcb_screen_t *R /**< */) -{ - return R->allowed_depths_len; -} - -xcb_depth_iterator_t -xcb_screen_allowed_depths_iterator (const xcb_screen_t *R /**< */) -{ - xcb_depth_iterator_t i; - i.data = (xcb_depth_t *) (R + 1); - i.rem = R->allowed_depths_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_screen_next (xcb_screen_iterator_t *i /**< */) -{ - xcb_screen_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_screen_t *)(((char *)R) + xcb_screen_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_screen_t *) child.data; -} - -xcb_generic_iterator_t -xcb_screen_end (xcb_screen_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_screen_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_setup_request_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_setup_request_t *_aux = (xcb_setup_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_setup_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* authorization_protocol_name */ - xcb_block_len += _aux->authorization_protocol_name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* authorization_protocol_data */ - xcb_block_len += _aux->authorization_protocol_data_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_setup_request_authorization_protocol_name (const xcb_setup_request_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_setup_request_authorization_protocol_name_length (const xcb_setup_request_t *R /**< */) -{ - return R->authorization_protocol_name_len; -} - -xcb_generic_iterator_t -xcb_setup_request_authorization_protocol_name_end (const xcb_setup_request_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->authorization_protocol_name_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -char * -xcb_setup_request_authorization_protocol_data (const xcb_setup_request_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_setup_request_authorization_protocol_name_end(R); - return (char *) ((char *) prev.data + XCB_TYPE_PAD(char, prev.index) + 0); -} - -int -xcb_setup_request_authorization_protocol_data_length (const xcb_setup_request_t *R /**< */) -{ - return R->authorization_protocol_data_len; -} - -xcb_generic_iterator_t -xcb_setup_request_authorization_protocol_data_end (const xcb_setup_request_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_setup_request_authorization_protocol_name_end(R); - i.data = ((char *) child.data) + (R->authorization_protocol_data_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_setup_request_next (xcb_setup_request_iterator_t *i /**< */) -{ - xcb_setup_request_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_setup_request_t *)(((char *)R) + xcb_setup_request_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_setup_request_t *) child.data; -} - -xcb_generic_iterator_t -xcb_setup_request_end (xcb_setup_request_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_setup_request_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_setup_failed_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_setup_failed_t *_aux = (xcb_setup_failed_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_setup_failed_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* reason */ - xcb_block_len += _aux->reason_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_setup_failed_reason (const xcb_setup_failed_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_setup_failed_reason_length (const xcb_setup_failed_t *R /**< */) -{ - return R->reason_len; -} - -xcb_generic_iterator_t -xcb_setup_failed_reason_end (const xcb_setup_failed_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->reason_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_setup_failed_next (xcb_setup_failed_iterator_t *i /**< */) -{ - xcb_setup_failed_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_setup_failed_t *)(((char *)R) + xcb_setup_failed_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_setup_failed_t *) child.data; -} - -xcb_generic_iterator_t -xcb_setup_failed_end (xcb_setup_failed_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_setup_failed_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_setup_authenticate_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_setup_authenticate_t *_aux = (xcb_setup_authenticate_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_setup_authenticate_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* reason */ - xcb_block_len += (_aux->length * 4) * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_setup_authenticate_reason (const xcb_setup_authenticate_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_setup_authenticate_reason_length (const xcb_setup_authenticate_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_setup_authenticate_reason_end (const xcb_setup_authenticate_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_setup_authenticate_next (xcb_setup_authenticate_iterator_t *i /**< */) -{ - xcb_setup_authenticate_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_setup_authenticate_t *)(((char *)R) + xcb_setup_authenticate_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_setup_authenticate_t *) child.data; -} - -xcb_generic_iterator_t -xcb_setup_authenticate_end (xcb_setup_authenticate_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_setup_authenticate_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_setup_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_setup_t *_aux = (xcb_setup_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_setup_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* vendor */ - xcb_block_len += _aux->vendor_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* pixmap_formats */ - xcb_block_len += _aux->pixmap_formats_len * sizeof(xcb_format_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_format_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* roots */ - for(i=0; i<_aux->roots_len; i++) { - xcb_tmp_len = xcb_screen_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_screen_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_setup_vendor (const xcb_setup_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_setup_vendor_length (const xcb_setup_t *R /**< */) -{ - return R->vendor_len; -} - -xcb_generic_iterator_t -xcb_setup_vendor_end (const xcb_setup_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->vendor_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_format_t * -xcb_setup_pixmap_formats (const xcb_setup_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_setup_vendor_end(R); - return (xcb_format_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_format_t, prev.index) + 0); -} - -int -xcb_setup_pixmap_formats_length (const xcb_setup_t *R /**< */) -{ - return R->pixmap_formats_len; -} - -xcb_format_iterator_t -xcb_setup_pixmap_formats_iterator (const xcb_setup_t *R /**< */) -{ - xcb_format_iterator_t i; - xcb_generic_iterator_t prev = xcb_setup_vendor_end(R); - i.data = (xcb_format_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_format_t, prev.index)); - i.rem = R->pixmap_formats_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -int -xcb_setup_roots_length (const xcb_setup_t *R /**< */) -{ - return R->roots_len; -} - -xcb_screen_iterator_t -xcb_setup_roots_iterator (const xcb_setup_t *R /**< */) -{ - xcb_screen_iterator_t i; - xcb_generic_iterator_t prev = xcb_format_end(xcb_setup_pixmap_formats_iterator(R)); - i.data = (xcb_screen_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_screen_t, prev.index)); - i.rem = R->roots_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_setup_next (xcb_setup_iterator_t *i /**< */) -{ - xcb_setup_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_setup_t *)(((char *)R) + xcb_setup_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_setup_t *) child.data; -} - -xcb_generic_iterator_t -xcb_setup_end (xcb_setup_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_setup_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_client_message_data_next (xcb_client_message_data_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_client_message_data_t); -} - -xcb_generic_iterator_t -xcb_client_message_data_end (xcb_client_message_data_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_create_window_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_create_window_request_t *_aux = (xcb_create_window_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_create_window_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* value_list */ - xcb_block_len += xcb_popcount(_aux->value_mask) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_create_window_checked (xcb_connection_t *c /**< */, - uint8_t depth /**< */, - xcb_window_t wid /**< */, - xcb_window_t parent /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t border_width /**< */, - uint16_t _class /**< */, - xcb_visualid_t visual /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CREATE_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_create_window_request_t xcb_out; - - xcb_out.depth = depth; - xcb_out.wid = wid; - xcb_out.parent = parent; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.border_width = border_width; - xcb_out._class = _class; - xcb_out.visual = visual; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_create_window (xcb_connection_t *c /**< */, - uint8_t depth /**< */, - xcb_window_t wid /**< */, - xcb_window_t parent /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t border_width /**< */, - uint16_t _class /**< */, - xcb_visualid_t visual /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CREATE_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_create_window_request_t xcb_out; - - xcb_out.depth = depth; - xcb_out.wid = wid; - xcb_out.parent = parent; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.border_width = border_width; - xcb_out._class = _class; - xcb_out.visual = visual; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_change_window_attributes_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_change_window_attributes_request_t *_aux = (xcb_change_window_attributes_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_change_window_attributes_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* value_list */ - xcb_block_len += xcb_popcount(_aux->value_mask) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_change_window_attributes_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_WINDOW_ATTRIBUTES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_window_attributes_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_window_attributes (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_WINDOW_ATTRIBUTES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_window_attributes_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_window_attributes_cookie_t -xcb_get_window_attributes (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_WINDOW_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_window_attributes_cookie_t xcb_ret; - xcb_get_window_attributes_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_window_attributes_cookie_t -xcb_get_window_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_WINDOW_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_window_attributes_cookie_t xcb_ret; - xcb_get_window_attributes_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_window_attributes_reply_t * -xcb_get_window_attributes_reply (xcb_connection_t *c /**< */, - xcb_get_window_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_window_attributes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_destroy_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_DESTROY_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_destroy_window_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_destroy_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_DESTROY_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_destroy_window_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_destroy_subwindows_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_DESTROY_SUBWINDOWS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_destroy_subwindows_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_destroy_subwindows (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_DESTROY_SUBWINDOWS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_destroy_subwindows_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_save_set_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CHANGE_SAVE_SET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_change_save_set_request_t xcb_out; - - xcb_out.mode = mode; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_save_set (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CHANGE_SAVE_SET, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_change_save_set_request_t xcb_out; - - xcb_out.mode = mode; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_reparent_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_window_t parent /**< */, - int16_t x /**< */, - int16_t y /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_REPARENT_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_reparent_window_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.parent = parent; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_reparent_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_window_t parent /**< */, - int16_t x /**< */, - int16_t y /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_REPARENT_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_reparent_window_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.parent = parent; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_map_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_MAP_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_map_window_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_map_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_MAP_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_map_window_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_map_subwindows_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_MAP_SUBWINDOWS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_map_subwindows_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_map_subwindows (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_MAP_SUBWINDOWS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_map_subwindows_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_unmap_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNMAP_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_unmap_window_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_unmap_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNMAP_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_unmap_window_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_unmap_subwindows_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNMAP_SUBWINDOWS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_unmap_subwindows_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_unmap_subwindows (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNMAP_SUBWINDOWS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_unmap_subwindows_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_configure_window_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_configure_window_request_t *_aux = (xcb_configure_window_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_configure_window_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* value_list */ - xcb_block_len += xcb_popcount(_aux->value_mask) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_configure_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CONFIGURE_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_configure_window_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.value_mask = value_mask; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_configure_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CONFIGURE_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_configure_window_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.value_mask = value_mask; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_circulate_window_checked (xcb_connection_t *c /**< */, - uint8_t direction /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CIRCULATE_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_circulate_window_request_t xcb_out; - - xcb_out.direction = direction; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_circulate_window (xcb_connection_t *c /**< */, - uint8_t direction /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CIRCULATE_WINDOW, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_circulate_window_request_t xcb_out; - - xcb_out.direction = direction; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_geometry_cookie_t -xcb_get_geometry (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_GEOMETRY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_geometry_cookie_t xcb_ret; - xcb_get_geometry_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_geometry_cookie_t -xcb_get_geometry_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_GEOMETRY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_geometry_cookie_t xcb_ret; - xcb_get_geometry_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_geometry_reply_t * -xcb_get_geometry_reply (xcb_connection_t *c /**< */, - xcb_get_geometry_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_geometry_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_query_tree_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_query_tree_reply_t *_aux = (xcb_query_tree_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_query_tree_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* children */ - xcb_block_len += _aux->children_len * sizeof(xcb_window_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_window_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_query_tree_cookie_t -xcb_query_tree (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_QUERY_TREE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_query_tree_cookie_t xcb_ret; - xcb_query_tree_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_tree_cookie_t -xcb_query_tree_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_QUERY_TREE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_query_tree_cookie_t xcb_ret; - xcb_query_tree_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_window_t * -xcb_query_tree_children (const xcb_query_tree_reply_t *R /**< */) -{ - return (xcb_window_t *) (R + 1); -} - -int -xcb_query_tree_children_length (const xcb_query_tree_reply_t *R /**< */) -{ - return R->children_len; -} - -xcb_generic_iterator_t -xcb_query_tree_children_end (const xcb_query_tree_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_window_t *) (R + 1)) + (R->children_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_query_tree_reply_t * -xcb_query_tree_reply (xcb_connection_t *c /**< */, - xcb_query_tree_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_query_tree_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_intern_atom_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_intern_atom_request_t *_aux = (xcb_intern_atom_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_intern_atom_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_intern_atom_cookie_t -xcb_intern_atom (xcb_connection_t *c /**< */, - uint8_t only_if_exists /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_INTERN_ATOM, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_intern_atom_cookie_t xcb_ret; - xcb_intern_atom_request_t xcb_out; - - xcb_out.only_if_exists = only_if_exists; - xcb_out.name_len = name_len; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_intern_atom_cookie_t -xcb_intern_atom_unchecked (xcb_connection_t *c /**< */, - uint8_t only_if_exists /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_INTERN_ATOM, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_intern_atom_cookie_t xcb_ret; - xcb_intern_atom_request_t xcb_out; - - xcb_out.only_if_exists = only_if_exists; - xcb_out.name_len = name_len; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_intern_atom_reply_t * -xcb_intern_atom_reply (xcb_connection_t *c /**< */, - xcb_intern_atom_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_intern_atom_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_get_atom_name_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_get_atom_name_reply_t *_aux = (xcb_get_atom_name_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_get_atom_name_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_get_atom_name_cookie_t -xcb_get_atom_name (xcb_connection_t *c /**< */, - xcb_atom_t atom /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_ATOM_NAME, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_atom_name_cookie_t xcb_ret; - xcb_get_atom_name_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.atom = atom; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_atom_name_cookie_t -xcb_get_atom_name_unchecked (xcb_connection_t *c /**< */, - xcb_atom_t atom /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_ATOM_NAME, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_atom_name_cookie_t xcb_ret; - xcb_get_atom_name_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.atom = atom; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_get_atom_name_name (const xcb_get_atom_name_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_get_atom_name_name_length (const xcb_get_atom_name_reply_t *R /**< */) -{ - return R->name_len; -} - -xcb_generic_iterator_t -xcb_get_atom_name_name_end (const xcb_get_atom_name_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->name_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_get_atom_name_reply_t * -xcb_get_atom_name_reply (xcb_connection_t *c /**< */, - xcb_get_atom_name_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_atom_name_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_change_property_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_change_property_request_t *_aux = (xcb_change_property_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_change_property_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += ((_aux->data_len * _aux->format) / 8) * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_change_property_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint32_t data_len /**< */, - const void *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_property_request_t xcb_out; - - xcb_out.mode = mode; - xcb_out.window = window; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.format = format; - memset(xcb_out.pad0, 0, 3); - xcb_out.data_len = data_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* void data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = ((data_len * format) / 8) * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_property (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint32_t data_len /**< */, - const void *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_property_request_t xcb_out; - - xcb_out.mode = mode; - xcb_out.window = window; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.format = format; - memset(xcb_out.pad0, 0, 3); - xcb_out.data_len = data_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* void data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = ((data_len * format) / 8) * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_delete_property_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_DELETE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_delete_property_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_delete_property (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_DELETE_PROPERTY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_delete_property_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_get_property_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_get_property_reply_t *_aux = (xcb_get_property_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_get_property_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* value */ - xcb_block_len += (_aux->value_len * (_aux->format / 8)) * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_get_property_cookie_t -xcb_get_property (xcb_connection_t *c /**< */, - uint8_t _delete /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_property_cookie_t xcb_ret; - xcb_get_property_request_t xcb_out; - - xcb_out._delete = _delete; - xcb_out.window = window; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.long_offset = long_offset; - xcb_out.long_length = long_length; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_property_cookie_t -xcb_get_property_unchecked (xcb_connection_t *c /**< */, - uint8_t _delete /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_PROPERTY, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_property_cookie_t xcb_ret; - xcb_get_property_request_t xcb_out; - - xcb_out._delete = _delete; - xcb_out.window = window; - xcb_out.property = property; - xcb_out.type = type; - xcb_out.long_offset = long_offset; - xcb_out.long_length = long_length; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void * -xcb_get_property_value (const xcb_get_property_reply_t *R /**< */) -{ - return (void *) (R + 1); -} - -int -xcb_get_property_value_length (const xcb_get_property_reply_t *R /**< */) -{ - return (R->value_len * (R->format / 8)); -} - -xcb_generic_iterator_t -xcb_get_property_value_end (const xcb_get_property_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + ((R->value_len * (R->format / 8))); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_get_property_reply_t * -xcb_get_property_reply (xcb_connection_t *c /**< */, - xcb_get_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_property_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_list_properties_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_list_properties_reply_t *_aux = (xcb_list_properties_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_list_properties_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* atoms */ - xcb_block_len += _aux->atoms_len * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_list_properties_cookie_t -xcb_list_properties (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_LIST_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_list_properties_cookie_t xcb_ret; - xcb_list_properties_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_list_properties_cookie_t -xcb_list_properties_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_LIST_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_list_properties_cookie_t xcb_ret; - xcb_list_properties_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_atom_t * -xcb_list_properties_atoms (const xcb_list_properties_reply_t *R /**< */) -{ - return (xcb_atom_t *) (R + 1); -} - -int -xcb_list_properties_atoms_length (const xcb_list_properties_reply_t *R /**< */) -{ - return R->atoms_len; -} - -xcb_generic_iterator_t -xcb_list_properties_atoms_end (const xcb_list_properties_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_atom_t *) (R + 1)) + (R->atoms_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_list_properties_reply_t * -xcb_list_properties_reply (xcb_connection_t *c /**< */, - xcb_list_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_list_properties_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_set_selection_owner_checked (xcb_connection_t *c /**< */, - xcb_window_t owner /**< */, - xcb_atom_t selection /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SET_SELECTION_OWNER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_set_selection_owner_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.owner = owner; - xcb_out.selection = selection; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_set_selection_owner (xcb_connection_t *c /**< */, - xcb_window_t owner /**< */, - xcb_atom_t selection /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SET_SELECTION_OWNER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_set_selection_owner_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.owner = owner; - xcb_out.selection = selection; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_selection_owner_cookie_t -xcb_get_selection_owner (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_SELECTION_OWNER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_selection_owner_cookie_t xcb_ret; - xcb_get_selection_owner_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.selection = selection; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_selection_owner_cookie_t -xcb_get_selection_owner_unchecked (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_SELECTION_OWNER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_selection_owner_cookie_t xcb_ret; - xcb_get_selection_owner_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.selection = selection; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_selection_owner_reply_t * -xcb_get_selection_owner_reply (xcb_connection_t *c /**< */, - xcb_get_selection_owner_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_selection_owner_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_convert_selection_checked (xcb_connection_t *c /**< */, - xcb_window_t requestor /**< */, - xcb_atom_t selection /**< */, - xcb_atom_t target /**< */, - xcb_atom_t property /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CONVERT_SELECTION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_convert_selection_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.requestor = requestor; - xcb_out.selection = selection; - xcb_out.target = target; - xcb_out.property = property; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_convert_selection (xcb_connection_t *c /**< */, - xcb_window_t requestor /**< */, - xcb_atom_t selection /**< */, - xcb_atom_t target /**< */, - xcb_atom_t property /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CONVERT_SELECTION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_convert_selection_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.requestor = requestor; - xcb_out.selection = selection; - xcb_out.target = target; - xcb_out.property = property; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_send_event_checked (xcb_connection_t *c /**< */, - uint8_t propagate /**< */, - xcb_window_t destination /**< */, - uint32_t event_mask /**< */, - const char *event /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SEND_EVENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_send_event_request_t xcb_out; - - xcb_out.propagate = propagate; - xcb_out.destination = destination; - xcb_out.event_mask = event_mask; - memcpy(xcb_out.event, event, 32); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_send_event (xcb_connection_t *c /**< */, - uint8_t propagate /**< */, - xcb_window_t destination /**< */, - uint32_t event_mask /**< */, - const char *event /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SEND_EVENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_send_event_request_t xcb_out; - - xcb_out.propagate = propagate; - xcb_out.destination = destination; - xcb_out.event_mask = event_mask; - memcpy(xcb_out.event, event, 32); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_grab_pointer_cookie_t -xcb_grab_pointer (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t event_mask /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */, - xcb_window_t confine_to /**< */, - xcb_cursor_t cursor /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GRAB_POINTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_grab_pointer_cookie_t xcb_ret; - xcb_grab_pointer_request_t xcb_out; - - xcb_out.owner_events = owner_events; - xcb_out.grab_window = grab_window; - xcb_out.event_mask = event_mask; - xcb_out.pointer_mode = pointer_mode; - xcb_out.keyboard_mode = keyboard_mode; - xcb_out.confine_to = confine_to; - xcb_out.cursor = cursor; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_grab_pointer_cookie_t -xcb_grab_pointer_unchecked (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t event_mask /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */, - xcb_window_t confine_to /**< */, - xcb_cursor_t cursor /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GRAB_POINTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_grab_pointer_cookie_t xcb_ret; - xcb_grab_pointer_request_t xcb_out; - - xcb_out.owner_events = owner_events; - xcb_out.grab_window = grab_window; - xcb_out.event_mask = event_mask; - xcb_out.pointer_mode = pointer_mode; - xcb_out.keyboard_mode = keyboard_mode; - xcb_out.confine_to = confine_to; - xcb_out.cursor = cursor; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_grab_pointer_reply_t * -xcb_grab_pointer_reply (xcb_connection_t *c /**< */, - xcb_grab_pointer_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_grab_pointer_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_ungrab_pointer_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNGRAB_POINTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_ungrab_pointer_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_ungrab_pointer (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNGRAB_POINTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_ungrab_pointer_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_grab_button_checked (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t event_mask /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */, - xcb_window_t confine_to /**< */, - xcb_cursor_t cursor /**< */, - uint8_t button /**< */, - uint16_t modifiers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GRAB_BUTTON, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_grab_button_request_t xcb_out; - - xcb_out.owner_events = owner_events; - xcb_out.grab_window = grab_window; - xcb_out.event_mask = event_mask; - xcb_out.pointer_mode = pointer_mode; - xcb_out.keyboard_mode = keyboard_mode; - xcb_out.confine_to = confine_to; - xcb_out.cursor = cursor; - xcb_out.button = button; - xcb_out.pad0 = 0; - xcb_out.modifiers = modifiers; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_grab_button (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t event_mask /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */, - xcb_window_t confine_to /**< */, - xcb_cursor_t cursor /**< */, - uint8_t button /**< */, - uint16_t modifiers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GRAB_BUTTON, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_grab_button_request_t xcb_out; - - xcb_out.owner_events = owner_events; - xcb_out.grab_window = grab_window; - xcb_out.event_mask = event_mask; - xcb_out.pointer_mode = pointer_mode; - xcb_out.keyboard_mode = keyboard_mode; - xcb_out.confine_to = confine_to; - xcb_out.cursor = cursor; - xcb_out.button = button; - xcb_out.pad0 = 0; - xcb_out.modifiers = modifiers; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_ungrab_button_checked (xcb_connection_t *c /**< */, - uint8_t button /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNGRAB_BUTTON, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_ungrab_button_request_t xcb_out; - - xcb_out.button = button; - xcb_out.grab_window = grab_window; - xcb_out.modifiers = modifiers; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_ungrab_button (xcb_connection_t *c /**< */, - uint8_t button /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNGRAB_BUTTON, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_ungrab_button_request_t xcb_out; - - xcb_out.button = button; - xcb_out.grab_window = grab_window; - xcb_out.modifiers = modifiers; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_active_pointer_grab_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - xcb_timestamp_t time /**< */, - uint16_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CHANGE_ACTIVE_POINTER_GRAB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_change_active_pointer_grab_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cursor = cursor; - xcb_out.time = time; - xcb_out.event_mask = event_mask; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_active_pointer_grab (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - xcb_timestamp_t time /**< */, - uint16_t event_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CHANGE_ACTIVE_POINTER_GRAB, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_change_active_pointer_grab_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cursor = cursor; - xcb_out.time = time; - xcb_out.event_mask = event_mask; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_grab_keyboard_cookie_t -xcb_grab_keyboard (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - xcb_timestamp_t time /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GRAB_KEYBOARD, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_grab_keyboard_cookie_t xcb_ret; - xcb_grab_keyboard_request_t xcb_out; - - xcb_out.owner_events = owner_events; - xcb_out.grab_window = grab_window; - xcb_out.time = time; - xcb_out.pointer_mode = pointer_mode; - xcb_out.keyboard_mode = keyboard_mode; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_grab_keyboard_cookie_t -xcb_grab_keyboard_unchecked (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - xcb_timestamp_t time /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GRAB_KEYBOARD, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_grab_keyboard_cookie_t xcb_ret; - xcb_grab_keyboard_request_t xcb_out; - - xcb_out.owner_events = owner_events; - xcb_out.grab_window = grab_window; - xcb_out.time = time; - xcb_out.pointer_mode = pointer_mode; - xcb_out.keyboard_mode = keyboard_mode; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_grab_keyboard_reply_t * -xcb_grab_keyboard_reply (xcb_connection_t *c /**< */, - xcb_grab_keyboard_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_grab_keyboard_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_ungrab_keyboard_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNGRAB_KEYBOARD, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_ungrab_keyboard_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_ungrab_keyboard (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNGRAB_KEYBOARD, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_ungrab_keyboard_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_grab_key_checked (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */, - xcb_keycode_t key /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GRAB_KEY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_grab_key_request_t xcb_out; - - xcb_out.owner_events = owner_events; - xcb_out.grab_window = grab_window; - xcb_out.modifiers = modifiers; - xcb_out.key = key; - xcb_out.pointer_mode = pointer_mode; - xcb_out.keyboard_mode = keyboard_mode; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_grab_key (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */, - xcb_keycode_t key /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GRAB_KEY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_grab_key_request_t xcb_out; - - xcb_out.owner_events = owner_events; - xcb_out.grab_window = grab_window; - xcb_out.modifiers = modifiers; - xcb_out.key = key; - xcb_out.pointer_mode = pointer_mode; - xcb_out.keyboard_mode = keyboard_mode; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_ungrab_key_checked (xcb_connection_t *c /**< */, - xcb_keycode_t key /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNGRAB_KEY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_ungrab_key_request_t xcb_out; - - xcb_out.key = key; - xcb_out.grab_window = grab_window; - xcb_out.modifiers = modifiers; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_ungrab_key (xcb_connection_t *c /**< */, - xcb_keycode_t key /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNGRAB_KEY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_ungrab_key_request_t xcb_out; - - xcb_out.key = key; - xcb_out.grab_window = grab_window; - xcb_out.modifiers = modifiers; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_allow_events_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_ALLOW_EVENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_allow_events_request_t xcb_out; - - xcb_out.mode = mode; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_allow_events (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_ALLOW_EVENTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_allow_events_request_t xcb_out; - - xcb_out.mode = mode; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_grab_server_checked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GRAB_SERVER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_grab_server_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_grab_server (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GRAB_SERVER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_grab_server_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_ungrab_server_checked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNGRAB_SERVER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_ungrab_server_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_ungrab_server (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNGRAB_SERVER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_ungrab_server_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_pointer_cookie_t -xcb_query_pointer (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_QUERY_POINTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_query_pointer_cookie_t xcb_ret; - xcb_query_pointer_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_pointer_cookie_t -xcb_query_pointer_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_QUERY_POINTER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_query_pointer_cookie_t xcb_ret; - xcb_query_pointer_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_pointer_reply_t * -xcb_query_pointer_reply (xcb_connection_t *c /**< */, - xcb_query_pointer_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_query_pointer_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -void -xcb_timecoord_next (xcb_timecoord_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_timecoord_t); -} - -xcb_generic_iterator_t -xcb_timecoord_end (xcb_timecoord_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_get_motion_events_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_get_motion_events_reply_t *_aux = (xcb_get_motion_events_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_get_motion_events_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* events */ - xcb_block_len += _aux->events_len * sizeof(xcb_timecoord_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_timecoord_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_get_motion_events_cookie_t -xcb_get_motion_events (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t start /**< */, - xcb_timestamp_t stop /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_MOTION_EVENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_motion_events_cookie_t xcb_ret; - xcb_get_motion_events_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.start = start; - xcb_out.stop = stop; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_motion_events_cookie_t -xcb_get_motion_events_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t start /**< */, - xcb_timestamp_t stop /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_MOTION_EVENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_motion_events_cookie_t xcb_ret; - xcb_get_motion_events_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.start = start; - xcb_out.stop = stop; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_timecoord_t * -xcb_get_motion_events_events (const xcb_get_motion_events_reply_t *R /**< */) -{ - return (xcb_timecoord_t *) (R + 1); -} - -int -xcb_get_motion_events_events_length (const xcb_get_motion_events_reply_t *R /**< */) -{ - return R->events_len; -} - -xcb_timecoord_iterator_t -xcb_get_motion_events_events_iterator (const xcb_get_motion_events_reply_t *R /**< */) -{ - xcb_timecoord_iterator_t i; - i.data = (xcb_timecoord_t *) (R + 1); - i.rem = R->events_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_get_motion_events_reply_t * -xcb_get_motion_events_reply (xcb_connection_t *c /**< */, - xcb_get_motion_events_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_motion_events_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_translate_coordinates_cookie_t -xcb_translate_coordinates (xcb_connection_t *c /**< */, - xcb_window_t src_window /**< */, - xcb_window_t dst_window /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_TRANSLATE_COORDINATES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_translate_coordinates_cookie_t xcb_ret; - xcb_translate_coordinates_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.src_window = src_window; - xcb_out.dst_window = dst_window; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_translate_coordinates_cookie_t -xcb_translate_coordinates_unchecked (xcb_connection_t *c /**< */, - xcb_window_t src_window /**< */, - xcb_window_t dst_window /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_TRANSLATE_COORDINATES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_translate_coordinates_cookie_t xcb_ret; - xcb_translate_coordinates_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.src_window = src_window; - xcb_out.dst_window = dst_window; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_translate_coordinates_reply_t * -xcb_translate_coordinates_reply (xcb_connection_t *c /**< */, - xcb_translate_coordinates_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_translate_coordinates_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_warp_pointer_checked (xcb_connection_t *c /**< */, - xcb_window_t src_window /**< */, - xcb_window_t dst_window /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_WARP_POINTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_warp_pointer_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.src_window = src_window; - xcb_out.dst_window = dst_window; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_width = src_width; - xcb_out.src_height = src_height; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_warp_pointer (xcb_connection_t *c /**< */, - xcb_window_t src_window /**< */, - xcb_window_t dst_window /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_WARP_POINTER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_warp_pointer_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.src_window = src_window; - xcb_out.dst_window = dst_window; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_width = src_width; - xcb_out.src_height = src_height; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_set_input_focus_checked (xcb_connection_t *c /**< */, - uint8_t revert_to /**< */, - xcb_window_t focus /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SET_INPUT_FOCUS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_set_input_focus_request_t xcb_out; - - xcb_out.revert_to = revert_to; - xcb_out.focus = focus; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_set_input_focus (xcb_connection_t *c /**< */, - uint8_t revert_to /**< */, - xcb_window_t focus /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SET_INPUT_FOCUS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_set_input_focus_request_t xcb_out; - - xcb_out.revert_to = revert_to; - xcb_out.focus = focus; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_input_focus_cookie_t -xcb_get_input_focus (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_INPUT_FOCUS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_input_focus_cookie_t xcb_ret; - xcb_get_input_focus_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_input_focus_cookie_t -xcb_get_input_focus_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_INPUT_FOCUS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_input_focus_cookie_t xcb_ret; - xcb_get_input_focus_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_input_focus_reply_t * -xcb_get_input_focus_reply (xcb_connection_t *c /**< */, - xcb_get_input_focus_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_input_focus_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_query_keymap_cookie_t -xcb_query_keymap (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_QUERY_KEYMAP, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_query_keymap_cookie_t xcb_ret; - xcb_query_keymap_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_keymap_cookie_t -xcb_query_keymap_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_QUERY_KEYMAP, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_query_keymap_cookie_t xcb_ret; - xcb_query_keymap_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_keymap_reply_t * -xcb_query_keymap_reply (xcb_connection_t *c /**< */, - xcb_query_keymap_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_query_keymap_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_open_font_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_open_font_request_t *_aux = (xcb_open_font_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_open_font_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_open_font_checked (xcb_connection_t *c /**< */, - xcb_font_t fid /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_OPEN_FONT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_open_font_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.fid = fid; - xcb_out.name_len = name_len; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_open_font (xcb_connection_t *c /**< */, - xcb_font_t fid /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_OPEN_FONT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_open_font_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.fid = fid; - xcb_out.name_len = name_len; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_close_font_checked (xcb_connection_t *c /**< */, - xcb_font_t font /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CLOSE_FONT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_close_font_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.font = font; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_close_font (xcb_connection_t *c /**< */, - xcb_font_t font /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CLOSE_FONT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_close_font_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.font = font; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_fontprop_next (xcb_fontprop_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_fontprop_t); -} - -xcb_generic_iterator_t -xcb_fontprop_end (xcb_fontprop_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_charinfo_next (xcb_charinfo_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_charinfo_t); -} - -xcb_generic_iterator_t -xcb_charinfo_end (xcb_charinfo_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_query_font_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_query_font_reply_t *_aux = (xcb_query_font_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_query_font_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* properties */ - xcb_block_len += _aux->properties_len * sizeof(xcb_fontprop_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_fontprop_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* char_infos */ - xcb_block_len += _aux->char_infos_len * sizeof(xcb_charinfo_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_charinfo_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_query_font_cookie_t -xcb_query_font (xcb_connection_t *c /**< */, - xcb_fontable_t font /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_QUERY_FONT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_query_font_cookie_t xcb_ret; - xcb_query_font_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.font = font; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_font_cookie_t -xcb_query_font_unchecked (xcb_connection_t *c /**< */, - xcb_fontable_t font /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_QUERY_FONT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_query_font_cookie_t xcb_ret; - xcb_query_font_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.font = font; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_fontprop_t * -xcb_query_font_properties (const xcb_query_font_reply_t *R /**< */) -{ - return (xcb_fontprop_t *) (R + 1); -} - -int -xcb_query_font_properties_length (const xcb_query_font_reply_t *R /**< */) -{ - return R->properties_len; -} - -xcb_fontprop_iterator_t -xcb_query_font_properties_iterator (const xcb_query_font_reply_t *R /**< */) -{ - xcb_fontprop_iterator_t i; - i.data = (xcb_fontprop_t *) (R + 1); - i.rem = R->properties_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_charinfo_t * -xcb_query_font_char_infos (const xcb_query_font_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_fontprop_end(xcb_query_font_properties_iterator(R)); - return (xcb_charinfo_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_charinfo_t, prev.index) + 0); -} - -int -xcb_query_font_char_infos_length (const xcb_query_font_reply_t *R /**< */) -{ - return R->char_infos_len; -} - -xcb_charinfo_iterator_t -xcb_query_font_char_infos_iterator (const xcb_query_font_reply_t *R /**< */) -{ - xcb_charinfo_iterator_t i; - xcb_generic_iterator_t prev = xcb_fontprop_end(xcb_query_font_properties_iterator(R)); - i.data = (xcb_charinfo_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_charinfo_t, prev.index)); - i.rem = R->char_infos_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_query_font_reply_t * -xcb_query_font_reply (xcb_connection_t *c /**< */, - xcb_query_font_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_query_font_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_query_text_extents_sizeof (const void *_buffer /**< */, - uint32_t string_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_query_text_extents_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* string */ - xcb_block_len += string_len * sizeof(xcb_char2b_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_char2b_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_query_text_extents_cookie_t -xcb_query_text_extents (xcb_connection_t *c /**< */, - xcb_fontable_t font /**< */, - uint32_t string_len /**< */, - const xcb_char2b_t *string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_QUERY_TEXT_EXTENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_query_text_extents_cookie_t xcb_ret; - xcb_query_text_extents_request_t xcb_out; - - xcb_out.odd_length = (string_len & 1); - xcb_out.font = font; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_char2b_t string */ - xcb_parts[4].iov_base = (char *) string; - xcb_parts[4].iov_len = string_len * sizeof(xcb_char2b_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_text_extents_cookie_t -xcb_query_text_extents_unchecked (xcb_connection_t *c /**< */, - xcb_fontable_t font /**< */, - uint32_t string_len /**< */, - const xcb_char2b_t *string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_QUERY_TEXT_EXTENTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_query_text_extents_cookie_t xcb_ret; - xcb_query_text_extents_request_t xcb_out; - - xcb_out.odd_length = (string_len & 1); - xcb_out.font = font; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_char2b_t string */ - xcb_parts[4].iov_base = (char *) string; - xcb_parts[4].iov_len = string_len * sizeof(xcb_char2b_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_text_extents_reply_t * -xcb_query_text_extents_reply (xcb_connection_t *c /**< */, - xcb_query_text_extents_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_query_text_extents_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_str_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_str_t *_aux = (xcb_str_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_str_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_str_name (const xcb_str_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_str_name_length (const xcb_str_t *R /**< */) -{ - return R->name_len; -} - -xcb_generic_iterator_t -xcb_str_name_end (const xcb_str_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->name_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_str_next (xcb_str_iterator_t *i /**< */) -{ - xcb_str_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_str_t *)(((char *)R) + xcb_str_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_str_t *) child.data; -} - -xcb_generic_iterator_t -xcb_str_end (xcb_str_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_str_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_list_fonts_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_list_fonts_request_t *_aux = (xcb_list_fonts_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_list_fonts_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* pattern */ - xcb_block_len += _aux->pattern_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_list_fonts_cookie_t -xcb_list_fonts (xcb_connection_t *c /**< */, - uint16_t max_names /**< */, - uint16_t pattern_len /**< */, - const char *pattern /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_LIST_FONTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_list_fonts_cookie_t xcb_ret; - xcb_list_fonts_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.max_names = max_names; - xcb_out.pattern_len = pattern_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char pattern */ - xcb_parts[4].iov_base = (char *) pattern; - xcb_parts[4].iov_len = pattern_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_list_fonts_cookie_t -xcb_list_fonts_unchecked (xcb_connection_t *c /**< */, - uint16_t max_names /**< */, - uint16_t pattern_len /**< */, - const char *pattern /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_LIST_FONTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_list_fonts_cookie_t xcb_ret; - xcb_list_fonts_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.max_names = max_names; - xcb_out.pattern_len = pattern_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char pattern */ - xcb_parts[4].iov_base = (char *) pattern; - xcb_parts[4].iov_len = pattern_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_list_fonts_names_length (const xcb_list_fonts_reply_t *R /**< */) -{ - return R->names_len; -} - -xcb_str_iterator_t -xcb_list_fonts_names_iterator (const xcb_list_fonts_reply_t *R /**< */) -{ - xcb_str_iterator_t i; - i.data = (xcb_str_t *) (R + 1); - i.rem = R->names_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_list_fonts_reply_t * -xcb_list_fonts_reply (xcb_connection_t *c /**< */, - xcb_list_fonts_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_list_fonts_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_list_fonts_with_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_list_fonts_with_info_request_t *_aux = (xcb_list_fonts_with_info_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_list_fonts_with_info_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* pattern */ - xcb_block_len += _aux->pattern_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_list_fonts_with_info_cookie_t -xcb_list_fonts_with_info (xcb_connection_t *c /**< */, - uint16_t max_names /**< */, - uint16_t pattern_len /**< */, - const char *pattern /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_LIST_FONTS_WITH_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_list_fonts_with_info_cookie_t xcb_ret; - xcb_list_fonts_with_info_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.max_names = max_names; - xcb_out.pattern_len = pattern_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char pattern */ - xcb_parts[4].iov_base = (char *) pattern; - xcb_parts[4].iov_len = pattern_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_list_fonts_with_info_cookie_t -xcb_list_fonts_with_info_unchecked (xcb_connection_t *c /**< */, - uint16_t max_names /**< */, - uint16_t pattern_len /**< */, - const char *pattern /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_LIST_FONTS_WITH_INFO, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_list_fonts_with_info_cookie_t xcb_ret; - xcb_list_fonts_with_info_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.max_names = max_names; - xcb_out.pattern_len = pattern_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char pattern */ - xcb_parts[4].iov_base = (char *) pattern; - xcb_parts[4].iov_len = pattern_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_fontprop_t * -xcb_list_fonts_with_info_properties (const xcb_list_fonts_with_info_reply_t *R /**< */) -{ - return (xcb_fontprop_t *) (R + 1); -} - -int -xcb_list_fonts_with_info_properties_length (const xcb_list_fonts_with_info_reply_t *R /**< */) -{ - return R->properties_len; -} - -xcb_fontprop_iterator_t -xcb_list_fonts_with_info_properties_iterator (const xcb_list_fonts_with_info_reply_t *R /**< */) -{ - xcb_fontprop_iterator_t i; - i.data = (xcb_fontprop_t *) (R + 1); - i.rem = R->properties_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -char * -xcb_list_fonts_with_info_name (const xcb_list_fonts_with_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_fontprop_end(xcb_list_fonts_with_info_properties_iterator(R)); - return (char *) ((char *) prev.data + XCB_TYPE_PAD(char, prev.index) + 0); -} - -int -xcb_list_fonts_with_info_name_length (const xcb_list_fonts_with_info_reply_t *R /**< */) -{ - return R->name_len; -} - -xcb_generic_iterator_t -xcb_list_fonts_with_info_name_end (const xcb_list_fonts_with_info_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_fontprop_end(xcb_list_fonts_with_info_properties_iterator(R)); - i.data = ((char *) child.data) + (R->name_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_list_fonts_with_info_reply_t * -xcb_list_fonts_with_info_reply (xcb_connection_t *c /**< */, - xcb_list_fonts_with_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_list_fonts_with_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_set_font_path_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_set_font_path_request_t *_aux = (xcb_set_font_path_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_set_font_path_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* font */ - for(i=0; i<_aux->font_qty; i++) { - xcb_tmp_len = xcb_str_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_str_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_set_font_path_checked (xcb_connection_t *c /**< */, - uint16_t font_qty /**< */, - const xcb_str_t *font /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_SET_FONT_PATH, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_set_font_path_request_t xcb_out; - unsigned int i; - unsigned int xcb_tmp_len; - char *xcb_tmp; - - xcb_out.pad0 = 0; - xcb_out.font_qty = font_qty; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_str_t font */ - xcb_parts[4].iov_base = (char *) font; - xcb_parts[4].iov_len = 0; - xcb_tmp = (char *)font; - for(i=0; ipath_len; i++) { - xcb_tmp_len = xcb_str_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_str_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_get_font_path_cookie_t -xcb_get_font_path (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_FONT_PATH, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_font_path_cookie_t xcb_ret; - xcb_get_font_path_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_font_path_cookie_t -xcb_get_font_path_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_FONT_PATH, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_font_path_cookie_t xcb_ret; - xcb_get_font_path_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_get_font_path_path_length (const xcb_get_font_path_reply_t *R /**< */) -{ - return R->path_len; -} - -xcb_str_iterator_t -xcb_get_font_path_path_iterator (const xcb_get_font_path_reply_t *R /**< */) -{ - xcb_str_iterator_t i; - i.data = (xcb_str_t *) (R + 1); - i.rem = R->path_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_get_font_path_reply_t * -xcb_get_font_path_reply (xcb_connection_t *c /**< */, - xcb_get_font_path_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_font_path_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_create_pixmap_checked (xcb_connection_t *c /**< */, - uint8_t depth /**< */, - xcb_pixmap_t pid /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CREATE_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_create_pixmap_request_t xcb_out; - - xcb_out.depth = depth; - xcb_out.pid = pid; - xcb_out.drawable = drawable; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_create_pixmap (xcb_connection_t *c /**< */, - uint8_t depth /**< */, - xcb_pixmap_t pid /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CREATE_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_create_pixmap_request_t xcb_out; - - xcb_out.depth = depth; - xcb_out.pid = pid; - xcb_out.drawable = drawable; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_free_pixmap_checked (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_FREE_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_free_pixmap_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.pixmap = pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_free_pixmap (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_FREE_PIXMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_free_pixmap_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.pixmap = pixmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_create_gc_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_create_gc_request_t *_aux = (xcb_create_gc_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_create_gc_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* value_list */ - xcb_block_len += xcb_popcount(_aux->value_mask) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_create_gc_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t cid /**< */, - xcb_drawable_t drawable /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CREATE_GC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_create_gc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cid = cid; - xcb_out.drawable = drawable; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_create_gc (xcb_connection_t *c /**< */, - xcb_gcontext_t cid /**< */, - xcb_drawable_t drawable /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CREATE_GC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_create_gc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cid = cid; - xcb_out.drawable = drawable; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_change_gc_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_change_gc_request_t *_aux = (xcb_change_gc_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_change_gc_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* value_list */ - xcb_block_len += xcb_popcount(_aux->value_mask) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_change_gc_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_GC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_gc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.gc = gc; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_gc (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_GC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_gc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.gc = gc; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_copy_gc_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t src_gc /**< */, - xcb_gcontext_t dst_gc /**< */, - uint32_t value_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_COPY_GC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_copy_gc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.src_gc = src_gc; - xcb_out.dst_gc = dst_gc; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_copy_gc (xcb_connection_t *c /**< */, - xcb_gcontext_t src_gc /**< */, - xcb_gcontext_t dst_gc /**< */, - uint32_t value_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_COPY_GC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_copy_gc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.src_gc = src_gc; - xcb_out.dst_gc = dst_gc; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_set_dashes_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_set_dashes_request_t *_aux = (xcb_set_dashes_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_set_dashes_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* dashes */ - xcb_block_len += _aux->dashes_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_set_dashes_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - uint16_t dash_offset /**< */, - uint16_t dashes_len /**< */, - const uint8_t *dashes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_SET_DASHES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_set_dashes_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.gc = gc; - xcb_out.dash_offset = dash_offset; - xcb_out.dashes_len = dashes_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t dashes */ - xcb_parts[4].iov_base = (char *) dashes; - xcb_parts[4].iov_len = dashes_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_set_dashes (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - uint16_t dash_offset /**< */, - uint16_t dashes_len /**< */, - const uint8_t *dashes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_SET_DASHES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_set_dashes_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.gc = gc; - xcb_out.dash_offset = dash_offset; - xcb_out.dashes_len = dashes_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t dashes */ - xcb_parts[4].iov_base = (char *) dashes; - xcb_parts[4].iov_len = dashes_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_set_clip_rectangles_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_set_clip_rectangles_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rectangles */ - xcb_block_len += rectangles_len * sizeof(xcb_rectangle_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_rectangle_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_set_clip_rectangles_checked (xcb_connection_t *c /**< */, - uint8_t ordering /**< */, - xcb_gcontext_t gc /**< */, - int16_t clip_x_origin /**< */, - int16_t clip_y_origin /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_SET_CLIP_RECTANGLES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_set_clip_rectangles_request_t xcb_out; - - xcb_out.ordering = ordering; - xcb_out.gc = gc; - xcb_out.clip_x_origin = clip_x_origin; - xcb_out.clip_y_origin = clip_y_origin; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_set_clip_rectangles (xcb_connection_t *c /**< */, - uint8_t ordering /**< */, - xcb_gcontext_t gc /**< */, - int16_t clip_x_origin /**< */, - int16_t clip_y_origin /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_SET_CLIP_RECTANGLES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_set_clip_rectangles_request_t xcb_out; - - xcb_out.ordering = ordering; - xcb_out.gc = gc; - xcb_out.clip_x_origin = clip_x_origin; - xcb_out.clip_y_origin = clip_y_origin; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_free_gc_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_FREE_GC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_free_gc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_free_gc (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_FREE_GC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_free_gc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_clear_area_checked (xcb_connection_t *c /**< */, - uint8_t exposures /**< */, - xcb_window_t window /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CLEAR_AREA, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_clear_area_request_t xcb_out; - - xcb_out.exposures = exposures; - xcb_out.window = window; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_clear_area (xcb_connection_t *c /**< */, - uint8_t exposures /**< */, - xcb_window_t window /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CLEAR_AREA, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_clear_area_request_t xcb_out; - - xcb_out.exposures = exposures; - xcb_out.window = window; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_copy_area_checked (xcb_connection_t *c /**< */, - xcb_drawable_t src_drawable /**< */, - xcb_drawable_t dst_drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_COPY_AREA, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_copy_area_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.src_drawable = src_drawable; - xcb_out.dst_drawable = dst_drawable; - xcb_out.gc = gc; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_copy_area (xcb_connection_t *c /**< */, - xcb_drawable_t src_drawable /**< */, - xcb_drawable_t dst_drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_COPY_AREA, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_copy_area_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.src_drawable = src_drawable; - xcb_out.dst_drawable = dst_drawable; - xcb_out.gc = gc; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_copy_plane_checked (xcb_connection_t *c /**< */, - xcb_drawable_t src_drawable /**< */, - xcb_drawable_t dst_drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t bit_plane /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_COPY_PLANE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_copy_plane_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.src_drawable = src_drawable; - xcb_out.dst_drawable = dst_drawable; - xcb_out.gc = gc; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.bit_plane = bit_plane; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_copy_plane (xcb_connection_t *c /**< */, - xcb_drawable_t src_drawable /**< */, - xcb_drawable_t dst_drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t bit_plane /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_COPY_PLANE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_copy_plane_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.src_drawable = src_drawable; - xcb_out.dst_drawable = dst_drawable; - xcb_out.gc = gc; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.bit_plane = bit_plane; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_poly_point_sizeof (const void *_buffer /**< */, - uint32_t points_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_poly_point_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* points */ - xcb_block_len += points_len * sizeof(xcb_point_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_point_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_poly_point_checked (xcb_connection_t *c /**< */, - uint8_t coordinate_mode /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_POINT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_point_request_t xcb_out; - - xcb_out.coordinate_mode = coordinate_mode; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_point_t points */ - xcb_parts[4].iov_base = (char *) points; - xcb_parts[4].iov_len = points_len * sizeof(xcb_point_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_poly_point (xcb_connection_t *c /**< */, - uint8_t coordinate_mode /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_POINT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_point_request_t xcb_out; - - xcb_out.coordinate_mode = coordinate_mode; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_point_t points */ - xcb_parts[4].iov_base = (char *) points; - xcb_parts[4].iov_len = points_len * sizeof(xcb_point_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_poly_line_sizeof (const void *_buffer /**< */, - uint32_t points_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_poly_line_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* points */ - xcb_block_len += points_len * sizeof(xcb_point_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_point_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_poly_line_checked (xcb_connection_t *c /**< */, - uint8_t coordinate_mode /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_LINE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_line_request_t xcb_out; - - xcb_out.coordinate_mode = coordinate_mode; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_point_t points */ - xcb_parts[4].iov_base = (char *) points; - xcb_parts[4].iov_len = points_len * sizeof(xcb_point_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_poly_line (xcb_connection_t *c /**< */, - uint8_t coordinate_mode /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_LINE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_line_request_t xcb_out; - - xcb_out.coordinate_mode = coordinate_mode; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_point_t points */ - xcb_parts[4].iov_base = (char *) points; - xcb_parts[4].iov_len = points_len * sizeof(xcb_point_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_segment_next (xcb_segment_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_segment_t); -} - -xcb_generic_iterator_t -xcb_segment_end (xcb_segment_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_poly_segment_sizeof (const void *_buffer /**< */, - uint32_t segments_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_poly_segment_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* segments */ - xcb_block_len += segments_len * sizeof(xcb_segment_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_segment_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_poly_segment_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t segments_len /**< */, - const xcb_segment_t *segments /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_SEGMENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_segment_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_segment_t segments */ - xcb_parts[4].iov_base = (char *) segments; - xcb_parts[4].iov_len = segments_len * sizeof(xcb_segment_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_poly_segment (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t segments_len /**< */, - const xcb_segment_t *segments /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_SEGMENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_segment_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_segment_t segments */ - xcb_parts[4].iov_base = (char *) segments; - xcb_parts[4].iov_len = segments_len * sizeof(xcb_segment_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_poly_rectangle_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_poly_rectangle_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rectangles */ - xcb_block_len += rectangles_len * sizeof(xcb_rectangle_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_rectangle_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_poly_rectangle_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_RECTANGLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_rectangle_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_poly_rectangle (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_RECTANGLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_rectangle_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_poly_arc_sizeof (const void *_buffer /**< */, - uint32_t arcs_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_poly_arc_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* arcs */ - xcb_block_len += arcs_len * sizeof(xcb_arc_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_arc_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_poly_arc_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t arcs_len /**< */, - const xcb_arc_t *arcs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_ARC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_arc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_arc_t arcs */ - xcb_parts[4].iov_base = (char *) arcs; - xcb_parts[4].iov_len = arcs_len * sizeof(xcb_arc_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_poly_arc (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t arcs_len /**< */, - const xcb_arc_t *arcs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_ARC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_arc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_arc_t arcs */ - xcb_parts[4].iov_base = (char *) arcs; - xcb_parts[4].iov_len = arcs_len * sizeof(xcb_arc_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_fill_poly_sizeof (const void *_buffer /**< */, - uint32_t points_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_fill_poly_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* points */ - xcb_block_len += points_len * sizeof(xcb_point_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_point_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_fill_poly_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint8_t shape /**< */, - uint8_t coordinate_mode /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_FILL_POLY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_fill_poly_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.shape = shape; - xcb_out.coordinate_mode = coordinate_mode; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_point_t points */ - xcb_parts[4].iov_base = (char *) points; - xcb_parts[4].iov_len = points_len * sizeof(xcb_point_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_fill_poly (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint8_t shape /**< */, - uint8_t coordinate_mode /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_FILL_POLY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_fill_poly_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.shape = shape; - xcb_out.coordinate_mode = coordinate_mode; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_point_t points */ - xcb_parts[4].iov_base = (char *) points; - xcb_parts[4].iov_len = points_len * sizeof(xcb_point_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_poly_fill_rectangle_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_poly_fill_rectangle_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* rectangles */ - xcb_block_len += rectangles_len * sizeof(xcb_rectangle_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_rectangle_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_poly_fill_rectangle_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_FILL_RECTANGLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_fill_rectangle_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_poly_fill_rectangle (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_FILL_RECTANGLE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_fill_rectangle_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_rectangle_t rectangles */ - xcb_parts[4].iov_base = (char *) rectangles; - xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_poly_fill_arc_sizeof (const void *_buffer /**< */, - uint32_t arcs_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_poly_fill_arc_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* arcs */ - xcb_block_len += arcs_len * sizeof(xcb_arc_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_arc_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_poly_fill_arc_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t arcs_len /**< */, - const xcb_arc_t *arcs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_FILL_ARC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_fill_arc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_arc_t arcs */ - xcb_parts[4].iov_base = (char *) arcs; - xcb_parts[4].iov_len = arcs_len * sizeof(xcb_arc_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_poly_fill_arc (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t arcs_len /**< */, - const xcb_arc_t *arcs /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_FILL_ARC, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_fill_arc_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_arc_t arcs */ - xcb_parts[4].iov_base = (char *) arcs; - xcb_parts[4].iov_len = arcs_len * sizeof(xcb_arc_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_put_image_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_put_image_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += data_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_put_image_checked (xcb_connection_t *c /**< */, - uint8_t format /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint8_t left_pad /**< */, - uint8_t depth /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_put_image_request_t xcb_out; - - xcb_out.format = format; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.left_pad = left_pad; - xcb_out.depth = depth; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_put_image (xcb_connection_t *c /**< */, - uint8_t format /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint8_t left_pad /**< */, - uint8_t depth /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_put_image_request_t xcb_out; - - xcb_out.format = format; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.dst_x = dst_x; - xcb_out.dst_y = dst_y; - xcb_out.left_pad = left_pad; - xcb_out.depth = depth; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_get_image_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_get_image_reply_t *_aux = (xcb_get_image_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_get_image_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += (_aux->length * 4) * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_get_image_cookie_t -xcb_get_image (xcb_connection_t *c /**< */, - uint8_t format /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t plane_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_IMAGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_image_cookie_t xcb_ret; - xcb_get_image_request_t xcb_out; - - xcb_out.format = format; - xcb_out.drawable = drawable; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.plane_mask = plane_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_image_cookie_t -xcb_get_image_unchecked (xcb_connection_t *c /**< */, - uint8_t format /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t plane_mask /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_IMAGE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_image_cookie_t xcb_ret; - xcb_get_image_request_t xcb_out; - - xcb_out.format = format; - xcb_out.drawable = drawable; - xcb_out.x = x; - xcb_out.y = y; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.plane_mask = plane_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_get_image_data (const xcb_get_image_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_get_image_data_length (const xcb_get_image_reply_t *R /**< */) -{ - return (R->length * 4); -} - -xcb_generic_iterator_t -xcb_get_image_data_end (const xcb_get_image_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + ((R->length * 4)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_get_image_reply_t * -xcb_get_image_reply (xcb_connection_t *c /**< */, - xcb_get_image_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_image_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_poly_text_8_sizeof (const void *_buffer /**< */, - uint32_t items_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_poly_text_8_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* items */ - xcb_block_len += items_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_poly_text_8_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint32_t items_len /**< */, - const uint8_t *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_TEXT_8, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_text_8_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t items */ - xcb_parts[4].iov_base = (char *) items; - xcb_parts[4].iov_len = items_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_poly_text_8 (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint32_t items_len /**< */, - const uint8_t *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_TEXT_8, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_text_8_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t items */ - xcb_parts[4].iov_base = (char *) items; - xcb_parts[4].iov_len = items_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_poly_text_16_sizeof (const void *_buffer /**< */, - uint32_t items_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_poly_text_16_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* items */ - xcb_block_len += items_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_poly_text_16_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint32_t items_len /**< */, - const uint8_t *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_TEXT_16, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_text_16_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t items */ - xcb_parts[4].iov_base = (char *) items; - xcb_parts[4].iov_len = items_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_poly_text_16 (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint32_t items_len /**< */, - const uint8_t *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_POLY_TEXT_16, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_poly_text_16_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t items */ - xcb_parts[4].iov_base = (char *) items; - xcb_parts[4].iov_len = items_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_image_text_8_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_image_text_8_request_t *_aux = (xcb_image_text_8_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_image_text_8_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* string */ - xcb_block_len += _aux->string_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_image_text_8_checked (xcb_connection_t *c /**< */, - uint8_t string_len /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - const char *string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_IMAGE_TEXT_8, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_image_text_8_request_t xcb_out; - - xcb_out.string_len = string_len; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char string */ - xcb_parts[4].iov_base = (char *) string; - xcb_parts[4].iov_len = string_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_image_text_8 (xcb_connection_t *c /**< */, - uint8_t string_len /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - const char *string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_IMAGE_TEXT_8, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_image_text_8_request_t xcb_out; - - xcb_out.string_len = string_len; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char string */ - xcb_parts[4].iov_base = (char *) string; - xcb_parts[4].iov_len = string_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_image_text_16_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_image_text_16_request_t *_aux = (xcb_image_text_16_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_image_text_16_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* string */ - xcb_block_len += _aux->string_len * sizeof(xcb_char2b_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_char2b_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_image_text_16_checked (xcb_connection_t *c /**< */, - uint8_t string_len /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - const xcb_char2b_t *string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_IMAGE_TEXT_16, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_image_text_16_request_t xcb_out; - - xcb_out.string_len = string_len; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_char2b_t string */ - xcb_parts[4].iov_base = (char *) string; - xcb_parts[4].iov_len = string_len * sizeof(xcb_char2b_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_image_text_16 (xcb_connection_t *c /**< */, - uint8_t string_len /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - const xcb_char2b_t *string /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_IMAGE_TEXT_16, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_image_text_16_request_t xcb_out; - - xcb_out.string_len = string_len; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_char2b_t string */ - xcb_parts[4].iov_base = (char *) string; - xcb_parts[4].iov_len = string_len * sizeof(xcb_char2b_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_create_colormap_checked (xcb_connection_t *c /**< */, - uint8_t alloc /**< */, - xcb_colormap_t mid /**< */, - xcb_window_t window /**< */, - xcb_visualid_t visual /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CREATE_COLORMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_create_colormap_request_t xcb_out; - - xcb_out.alloc = alloc; - xcb_out.mid = mid; - xcb_out.window = window; - xcb_out.visual = visual; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_create_colormap (xcb_connection_t *c /**< */, - uint8_t alloc /**< */, - xcb_colormap_t mid /**< */, - xcb_window_t window /**< */, - xcb_visualid_t visual /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CREATE_COLORMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_create_colormap_request_t xcb_out; - - xcb_out.alloc = alloc; - xcb_out.mid = mid; - xcb_out.window = window; - xcb_out.visual = visual; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_free_colormap_checked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_FREE_COLORMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_free_colormap_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_free_colormap (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_FREE_COLORMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_free_colormap_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_copy_colormap_and_free_checked (xcb_connection_t *c /**< */, - xcb_colormap_t mid /**< */, - xcb_colormap_t src_cmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_COPY_COLORMAP_AND_FREE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_copy_colormap_and_free_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.mid = mid; - xcb_out.src_cmap = src_cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_copy_colormap_and_free (xcb_connection_t *c /**< */, - xcb_colormap_t mid /**< */, - xcb_colormap_t src_cmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_COPY_COLORMAP_AND_FREE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_copy_colormap_and_free_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.mid = mid; - xcb_out.src_cmap = src_cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_install_colormap_checked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_INSTALL_COLORMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_install_colormap_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_install_colormap (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_INSTALL_COLORMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_install_colormap_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_uninstall_colormap_checked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNINSTALL_COLORMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_uninstall_colormap_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_uninstall_colormap (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_UNINSTALL_COLORMAP, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_uninstall_colormap_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_list_installed_colormaps_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_list_installed_colormaps_reply_t *_aux = (xcb_list_installed_colormaps_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_list_installed_colormaps_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* cmaps */ - xcb_block_len += _aux->cmaps_len * sizeof(xcb_colormap_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_colormap_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_list_installed_colormaps_cookie_t -xcb_list_installed_colormaps (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_LIST_INSTALLED_COLORMAPS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_list_installed_colormaps_cookie_t xcb_ret; - xcb_list_installed_colormaps_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_list_installed_colormaps_cookie_t -xcb_list_installed_colormaps_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_LIST_INSTALLED_COLORMAPS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_list_installed_colormaps_cookie_t xcb_ret; - xcb_list_installed_colormaps_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_colormap_t * -xcb_list_installed_colormaps_cmaps (const xcb_list_installed_colormaps_reply_t *R /**< */) -{ - return (xcb_colormap_t *) (R + 1); -} - -int -xcb_list_installed_colormaps_cmaps_length (const xcb_list_installed_colormaps_reply_t *R /**< */) -{ - return R->cmaps_len; -} - -xcb_generic_iterator_t -xcb_list_installed_colormaps_cmaps_end (const xcb_list_installed_colormaps_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_colormap_t *) (R + 1)) + (R->cmaps_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_list_installed_colormaps_reply_t * -xcb_list_installed_colormaps_reply (xcb_connection_t *c /**< */, - xcb_list_installed_colormaps_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_list_installed_colormaps_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_alloc_color_cookie_t -xcb_alloc_color (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t red /**< */, - uint16_t green /**< */, - uint16_t blue /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_ALLOC_COLOR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_alloc_color_cookie_t xcb_ret; - xcb_alloc_color_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - xcb_out.red = red; - xcb_out.green = green; - xcb_out.blue = blue; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_alloc_color_cookie_t -xcb_alloc_color_unchecked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t red /**< */, - uint16_t green /**< */, - uint16_t blue /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_ALLOC_COLOR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_alloc_color_cookie_t xcb_ret; - xcb_alloc_color_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - xcb_out.red = red; - xcb_out.green = green; - xcb_out.blue = blue; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_alloc_color_reply_t * -xcb_alloc_color_reply (xcb_connection_t *c /**< */, - xcb_alloc_color_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_alloc_color_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_alloc_named_color_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_alloc_named_color_request_t *_aux = (xcb_alloc_named_color_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_alloc_named_color_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_alloc_named_color_cookie_t -xcb_alloc_named_color (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_ALLOC_NAMED_COLOR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_alloc_named_color_cookie_t xcb_ret; - xcb_alloc_named_color_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - xcb_out.name_len = name_len; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_alloc_named_color_cookie_t -xcb_alloc_named_color_unchecked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_ALLOC_NAMED_COLOR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_alloc_named_color_cookie_t xcb_ret; - xcb_alloc_named_color_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - xcb_out.name_len = name_len; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_alloc_named_color_reply_t * -xcb_alloc_named_color_reply (xcb_connection_t *c /**< */, - xcb_alloc_named_color_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_alloc_named_color_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_alloc_color_cells_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_alloc_color_cells_reply_t *_aux = (xcb_alloc_color_cells_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_alloc_color_cells_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* pixels */ - xcb_block_len += _aux->pixels_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* masks */ - xcb_block_len += _aux->masks_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_alloc_color_cells_cookie_t -xcb_alloc_color_cells (xcb_connection_t *c /**< */, - uint8_t contiguous /**< */, - xcb_colormap_t cmap /**< */, - uint16_t colors /**< */, - uint16_t planes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_ALLOC_COLOR_CELLS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_alloc_color_cells_cookie_t xcb_ret; - xcb_alloc_color_cells_request_t xcb_out; - - xcb_out.contiguous = contiguous; - xcb_out.cmap = cmap; - xcb_out.colors = colors; - xcb_out.planes = planes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_alloc_color_cells_cookie_t -xcb_alloc_color_cells_unchecked (xcb_connection_t *c /**< */, - uint8_t contiguous /**< */, - xcb_colormap_t cmap /**< */, - uint16_t colors /**< */, - uint16_t planes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_ALLOC_COLOR_CELLS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_alloc_color_cells_cookie_t xcb_ret; - xcb_alloc_color_cells_request_t xcb_out; - - xcb_out.contiguous = contiguous; - xcb_out.cmap = cmap; - xcb_out.colors = colors; - xcb_out.planes = planes; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_alloc_color_cells_pixels (const xcb_alloc_color_cells_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_alloc_color_cells_pixels_length (const xcb_alloc_color_cells_reply_t *R /**< */) -{ - return R->pixels_len; -} - -xcb_generic_iterator_t -xcb_alloc_color_cells_pixels_end (const xcb_alloc_color_cells_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->pixels_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint32_t * -xcb_alloc_color_cells_masks (const xcb_alloc_color_cells_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_alloc_color_cells_pixels_end(R); - return (uint32_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index) + 0); -} - -int -xcb_alloc_color_cells_masks_length (const xcb_alloc_color_cells_reply_t *R /**< */) -{ - return R->masks_len; -} - -xcb_generic_iterator_t -xcb_alloc_color_cells_masks_end (const xcb_alloc_color_cells_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_alloc_color_cells_pixels_end(R); - i.data = ((uint32_t *) child.data) + (R->masks_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_alloc_color_cells_reply_t * -xcb_alloc_color_cells_reply (xcb_connection_t *c /**< */, - xcb_alloc_color_cells_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_alloc_color_cells_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_alloc_color_planes_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_alloc_color_planes_reply_t *_aux = (xcb_alloc_color_planes_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_alloc_color_planes_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* pixels */ - xcb_block_len += _aux->pixels_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_alloc_color_planes_cookie_t -xcb_alloc_color_planes (xcb_connection_t *c /**< */, - uint8_t contiguous /**< */, - xcb_colormap_t cmap /**< */, - uint16_t colors /**< */, - uint16_t reds /**< */, - uint16_t greens /**< */, - uint16_t blues /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_ALLOC_COLOR_PLANES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_alloc_color_planes_cookie_t xcb_ret; - xcb_alloc_color_planes_request_t xcb_out; - - xcb_out.contiguous = contiguous; - xcb_out.cmap = cmap; - xcb_out.colors = colors; - xcb_out.reds = reds; - xcb_out.greens = greens; - xcb_out.blues = blues; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_alloc_color_planes_cookie_t -xcb_alloc_color_planes_unchecked (xcb_connection_t *c /**< */, - uint8_t contiguous /**< */, - xcb_colormap_t cmap /**< */, - uint16_t colors /**< */, - uint16_t reds /**< */, - uint16_t greens /**< */, - uint16_t blues /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_ALLOC_COLOR_PLANES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_alloc_color_planes_cookie_t xcb_ret; - xcb_alloc_color_planes_request_t xcb_out; - - xcb_out.contiguous = contiguous; - xcb_out.cmap = cmap; - xcb_out.colors = colors; - xcb_out.reds = reds; - xcb_out.greens = greens; - xcb_out.blues = blues; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_alloc_color_planes_pixels (const xcb_alloc_color_planes_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_alloc_color_planes_pixels_length (const xcb_alloc_color_planes_reply_t *R /**< */) -{ - return R->pixels_len; -} - -xcb_generic_iterator_t -xcb_alloc_color_planes_pixels_end (const xcb_alloc_color_planes_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->pixels_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_alloc_color_planes_reply_t * -xcb_alloc_color_planes_reply (xcb_connection_t *c /**< */, - xcb_alloc_color_planes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_alloc_color_planes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_free_colors_sizeof (const void *_buffer /**< */, - uint32_t pixels_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_free_colors_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* pixels */ - xcb_block_len += pixels_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_free_colors_checked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t plane_mask /**< */, - uint32_t pixels_len /**< */, - const uint32_t *pixels /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_FREE_COLORS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_free_colors_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - xcb_out.plane_mask = plane_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t pixels */ - xcb_parts[4].iov_base = (char *) pixels; - xcb_parts[4].iov_len = pixels_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_free_colors (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t plane_mask /**< */, - uint32_t pixels_len /**< */, - const uint32_t *pixels /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_FREE_COLORS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_free_colors_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - xcb_out.plane_mask = plane_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t pixels */ - xcb_parts[4].iov_base = (char *) pixels; - xcb_parts[4].iov_len = pixels_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_coloritem_next (xcb_coloritem_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_coloritem_t); -} - -xcb_generic_iterator_t -xcb_coloritem_end (xcb_coloritem_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_store_colors_sizeof (const void *_buffer /**< */, - uint32_t items_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_store_colors_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* items */ - xcb_block_len += items_len * sizeof(xcb_coloritem_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_coloritem_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_store_colors_checked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t items_len /**< */, - const xcb_coloritem_t *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_STORE_COLORS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_store_colors_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_coloritem_t items */ - xcb_parts[4].iov_base = (char *) items; - xcb_parts[4].iov_len = items_len * sizeof(xcb_coloritem_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_store_colors (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t items_len /**< */, - const xcb_coloritem_t *items /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_STORE_COLORS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_store_colors_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_coloritem_t items */ - xcb_parts[4].iov_base = (char *) items; - xcb_parts[4].iov_len = items_len * sizeof(xcb_coloritem_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_store_named_color_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_store_named_color_request_t *_aux = (xcb_store_named_color_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_store_named_color_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_store_named_color_checked (xcb_connection_t *c /**< */, - uint8_t flags /**< */, - xcb_colormap_t cmap /**< */, - uint32_t pixel /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_STORE_NAMED_COLOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_store_named_color_request_t xcb_out; - - xcb_out.flags = flags; - xcb_out.cmap = cmap; - xcb_out.pixel = pixel; - xcb_out.name_len = name_len; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_store_named_color (xcb_connection_t *c /**< */, - uint8_t flags /**< */, - xcb_colormap_t cmap /**< */, - uint32_t pixel /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_STORE_NAMED_COLOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_store_named_color_request_t xcb_out; - - xcb_out.flags = flags; - xcb_out.cmap = cmap; - xcb_out.pixel = pixel; - xcb_out.name_len = name_len; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -void -xcb_rgb_next (xcb_rgb_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_rgb_t); -} - -xcb_generic_iterator_t -xcb_rgb_end (xcb_rgb_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_query_colors_sizeof (const void *_buffer /**< */, - uint32_t pixels_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_query_colors_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* pixels */ - xcb_block_len += pixels_len * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_query_colors_cookie_t -xcb_query_colors (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t pixels_len /**< */, - const uint32_t *pixels /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_QUERY_COLORS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_query_colors_cookie_t xcb_ret; - xcb_query_colors_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t pixels */ - xcb_parts[4].iov_base = (char *) pixels; - xcb_parts[4].iov_len = pixels_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_colors_cookie_t -xcb_query_colors_unchecked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t pixels_len /**< */, - const uint32_t *pixels /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_QUERY_COLORS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_query_colors_cookie_t xcb_ret; - xcb_query_colors_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t pixels */ - xcb_parts[4].iov_base = (char *) pixels; - xcb_parts[4].iov_len = pixels_len * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_rgb_t * -xcb_query_colors_colors (const xcb_query_colors_reply_t *R /**< */) -{ - return (xcb_rgb_t *) (R + 1); -} - -int -xcb_query_colors_colors_length (const xcb_query_colors_reply_t *R /**< */) -{ - return R->colors_len; -} - -xcb_rgb_iterator_t -xcb_query_colors_colors_iterator (const xcb_query_colors_reply_t *R /**< */) -{ - xcb_rgb_iterator_t i; - i.data = (xcb_rgb_t *) (R + 1); - i.rem = R->colors_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_query_colors_reply_t * -xcb_query_colors_reply (xcb_connection_t *c /**< */, - xcb_query_colors_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_query_colors_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_lookup_color_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_lookup_color_request_t *_aux = (xcb_lookup_color_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_lookup_color_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_lookup_color_cookie_t -xcb_lookup_color (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_LOOKUP_COLOR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_lookup_color_cookie_t xcb_ret; - xcb_lookup_color_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - xcb_out.name_len = name_len; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_lookup_color_cookie_t -xcb_lookup_color_unchecked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_LOOKUP_COLOR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_lookup_color_cookie_t xcb_ret; - xcb_lookup_color_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cmap = cmap; - xcb_out.name_len = name_len; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_lookup_color_reply_t * -xcb_lookup_color_reply (xcb_connection_t *c /**< */, - xcb_lookup_color_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_lookup_color_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_create_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_pixmap_t source /**< */, - xcb_pixmap_t mask /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */, - uint16_t x /**< */, - uint16_t y /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CREATE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_create_cursor_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cid = cid; - xcb_out.source = source; - xcb_out.mask = mask; - xcb_out.fore_red = fore_red; - xcb_out.fore_green = fore_green; - xcb_out.fore_blue = fore_blue; - xcb_out.back_red = back_red; - xcb_out.back_green = back_green; - xcb_out.back_blue = back_blue; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_create_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_pixmap_t source /**< */, - xcb_pixmap_t mask /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */, - uint16_t x /**< */, - uint16_t y /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CREATE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_create_cursor_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cid = cid; - xcb_out.source = source; - xcb_out.mask = mask; - xcb_out.fore_red = fore_red; - xcb_out.fore_green = fore_green; - xcb_out.fore_blue = fore_blue; - xcb_out.back_red = back_red; - xcb_out.back_green = back_green; - xcb_out.back_blue = back_blue; - xcb_out.x = x; - xcb_out.y = y; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_create_glyph_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_font_t source_font /**< */, - xcb_font_t mask_font /**< */, - uint16_t source_char /**< */, - uint16_t mask_char /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CREATE_GLYPH_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_create_glyph_cursor_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cid = cid; - xcb_out.source_font = source_font; - xcb_out.mask_font = mask_font; - xcb_out.source_char = source_char; - xcb_out.mask_char = mask_char; - xcb_out.fore_red = fore_red; - xcb_out.fore_green = fore_green; - xcb_out.fore_blue = fore_blue; - xcb_out.back_red = back_red; - xcb_out.back_green = back_green; - xcb_out.back_blue = back_blue; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_create_glyph_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_font_t source_font /**< */, - xcb_font_t mask_font /**< */, - uint16_t source_char /**< */, - uint16_t mask_char /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CREATE_GLYPH_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_create_glyph_cursor_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cid = cid; - xcb_out.source_font = source_font; - xcb_out.mask_font = mask_font; - xcb_out.source_char = source_char; - xcb_out.mask_char = mask_char; - xcb_out.fore_red = fore_red; - xcb_out.fore_green = fore_green; - xcb_out.fore_blue = fore_blue; - xcb_out.back_red = back_red; - xcb_out.back_green = back_green; - xcb_out.back_blue = back_blue; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_free_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_FREE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_free_cursor_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cursor = cursor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_free_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_FREE_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_free_cursor_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cursor = cursor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_recolor_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_RECOLOR_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_recolor_cursor_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cursor = cursor; - xcb_out.fore_red = fore_red; - xcb_out.fore_green = fore_green; - xcb_out.fore_blue = fore_blue; - xcb_out.back_red = back_red; - xcb_out.back_green = back_green; - xcb_out.back_blue = back_blue; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_recolor_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_RECOLOR_CURSOR, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_recolor_cursor_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.cursor = cursor; - xcb_out.fore_red = fore_red; - xcb_out.fore_green = fore_green; - xcb_out.fore_blue = fore_blue; - xcb_out.back_red = back_red; - xcb_out.back_green = back_green; - xcb_out.back_blue = back_blue; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_best_size_cookie_t -xcb_query_best_size (xcb_connection_t *c /**< */, - uint8_t _class /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_QUERY_BEST_SIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_query_best_size_cookie_t xcb_ret; - xcb_query_best_size_request_t xcb_out; - - xcb_out._class = _class; - xcb_out.drawable = drawable; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_best_size_cookie_t -xcb_query_best_size_unchecked (xcb_connection_t *c /**< */, - uint8_t _class /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_QUERY_BEST_SIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_query_best_size_cookie_t xcb_ret; - xcb_query_best_size_request_t xcb_out; - - xcb_out._class = _class; - xcb_out.drawable = drawable; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_best_size_reply_t * -xcb_query_best_size_reply (xcb_connection_t *c /**< */, - xcb_query_best_size_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_query_best_size_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_query_extension_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_query_extension_request_t *_aux = (xcb_query_extension_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_query_extension_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_query_extension_cookie_t -xcb_query_extension (xcb_connection_t *c /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_QUERY_EXTENSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_query_extension_cookie_t xcb_ret; - xcb_query_extension_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.name_len = name_len; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_extension_cookie_t -xcb_query_extension_unchecked (xcb_connection_t *c /**< */, - uint16_t name_len /**< */, - const char *name /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_QUERY_EXTENSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_query_extension_cookie_t xcb_ret; - xcb_query_extension_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.name_len = name_len; - memset(xcb_out.pad1, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char name */ - xcb_parts[4].iov_base = (char *) name; - xcb_parts[4].iov_len = name_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_query_extension_reply_t * -xcb_query_extension_reply (xcb_connection_t *c /**< */, - xcb_query_extension_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_query_extension_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_list_extensions_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_list_extensions_reply_t *_aux = (xcb_list_extensions_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_list_extensions_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* names */ - for(i=0; i<_aux->names_len; i++) { - xcb_tmp_len = xcb_str_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_str_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_list_extensions_cookie_t -xcb_list_extensions (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_LIST_EXTENSIONS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_list_extensions_cookie_t xcb_ret; - xcb_list_extensions_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_list_extensions_cookie_t -xcb_list_extensions_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_LIST_EXTENSIONS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_list_extensions_cookie_t xcb_ret; - xcb_list_extensions_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_list_extensions_names_length (const xcb_list_extensions_reply_t *R /**< */) -{ - return R->names_len; -} - -xcb_str_iterator_t -xcb_list_extensions_names_iterator (const xcb_list_extensions_reply_t *R /**< */) -{ - xcb_str_iterator_t i; - i.data = (xcb_str_t *) (R + 1); - i.rem = R->names_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_list_extensions_reply_t * -xcb_list_extensions_reply (xcb_connection_t *c /**< */, - xcb_list_extensions_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_list_extensions_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_change_keyboard_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_change_keyboard_mapping_request_t *_aux = (xcb_change_keyboard_mapping_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_change_keyboard_mapping_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keysyms */ - xcb_block_len += (_aux->keycode_count * _aux->keysyms_per_keycode) * sizeof(xcb_keysym_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_keysym_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_change_keyboard_mapping_checked (xcb_connection_t *c /**< */, - uint8_t keycode_count /**< */, - xcb_keycode_t first_keycode /**< */, - uint8_t keysyms_per_keycode /**< */, - const xcb_keysym_t *keysyms /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_KEYBOARD_MAPPING, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_keyboard_mapping_request_t xcb_out; - - xcb_out.keycode_count = keycode_count; - xcb_out.first_keycode = first_keycode; - xcb_out.keysyms_per_keycode = keysyms_per_keycode; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_keysym_t keysyms */ - xcb_parts[4].iov_base = (char *) keysyms; - xcb_parts[4].iov_len = (keycode_count * keysyms_per_keycode) * sizeof(xcb_keysym_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_keyboard_mapping (xcb_connection_t *c /**< */, - uint8_t keycode_count /**< */, - xcb_keycode_t first_keycode /**< */, - uint8_t keysyms_per_keycode /**< */, - const xcb_keysym_t *keysyms /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_KEYBOARD_MAPPING, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_keyboard_mapping_request_t xcb_out; - - xcb_out.keycode_count = keycode_count; - xcb_out.first_keycode = first_keycode; - xcb_out.keysyms_per_keycode = keysyms_per_keycode; - memset(xcb_out.pad0, 0, 2); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_keysym_t keysyms */ - xcb_parts[4].iov_base = (char *) keysyms; - xcb_parts[4].iov_len = (keycode_count * keysyms_per_keycode) * sizeof(xcb_keysym_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_get_keyboard_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_get_keyboard_mapping_reply_t *_aux = (xcb_get_keyboard_mapping_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_get_keyboard_mapping_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keysyms */ - xcb_block_len += _aux->length * sizeof(xcb_keysym_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_keysym_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_get_keyboard_mapping_cookie_t -xcb_get_keyboard_mapping (xcb_connection_t *c /**< */, - xcb_keycode_t first_keycode /**< */, - uint8_t count /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_KEYBOARD_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_keyboard_mapping_cookie_t xcb_ret; - xcb_get_keyboard_mapping_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.first_keycode = first_keycode; - xcb_out.count = count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_keyboard_mapping_cookie_t -xcb_get_keyboard_mapping_unchecked (xcb_connection_t *c /**< */, - xcb_keycode_t first_keycode /**< */, - uint8_t count /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_KEYBOARD_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_keyboard_mapping_cookie_t xcb_ret; - xcb_get_keyboard_mapping_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.first_keycode = first_keycode; - xcb_out.count = count; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_keysym_t * -xcb_get_keyboard_mapping_keysyms (const xcb_get_keyboard_mapping_reply_t *R /**< */) -{ - return (xcb_keysym_t *) (R + 1); -} - -int -xcb_get_keyboard_mapping_keysyms_length (const xcb_get_keyboard_mapping_reply_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_get_keyboard_mapping_keysyms_end (const xcb_get_keyboard_mapping_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_keysym_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_get_keyboard_mapping_reply_t * -xcb_get_keyboard_mapping_reply (xcb_connection_t *c /**< */, - xcb_get_keyboard_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_keyboard_mapping_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_change_keyboard_control_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_change_keyboard_control_request_t *_aux = (xcb_change_keyboard_control_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_change_keyboard_control_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* value_list */ - xcb_block_len += xcb_popcount(_aux->value_mask) * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_change_keyboard_control_checked (xcb_connection_t *c /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_KEYBOARD_CONTROL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_keyboard_control_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_keyboard_control (xcb_connection_t *c /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_KEYBOARD_CONTROL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_keyboard_control_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.value_mask = value_mask; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint32_t value_list */ - xcb_parts[4].iov_base = (char *) value_list; - xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_keyboard_control_cookie_t -xcb_get_keyboard_control (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_KEYBOARD_CONTROL, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_keyboard_control_cookie_t xcb_ret; - xcb_get_keyboard_control_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_keyboard_control_cookie_t -xcb_get_keyboard_control_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_KEYBOARD_CONTROL, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_keyboard_control_cookie_t xcb_ret; - xcb_get_keyboard_control_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_keyboard_control_reply_t * -xcb_get_keyboard_control_reply (xcb_connection_t *c /**< */, - xcb_get_keyboard_control_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_keyboard_control_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_bell_checked (xcb_connection_t *c /**< */, - int8_t percent /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_BELL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_bell_request_t xcb_out; - - xcb_out.percent = percent; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_bell (xcb_connection_t *c /**< */, - int8_t percent /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_BELL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_bell_request_t xcb_out; - - xcb_out.percent = percent; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_pointer_control_checked (xcb_connection_t *c /**< */, - int16_t acceleration_numerator /**< */, - int16_t acceleration_denominator /**< */, - int16_t threshold /**< */, - uint8_t do_acceleration /**< */, - uint8_t do_threshold /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CHANGE_POINTER_CONTROL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_change_pointer_control_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.acceleration_numerator = acceleration_numerator; - xcb_out.acceleration_denominator = acceleration_denominator; - xcb_out.threshold = threshold; - xcb_out.do_acceleration = do_acceleration; - xcb_out.do_threshold = do_threshold; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_pointer_control (xcb_connection_t *c /**< */, - int16_t acceleration_numerator /**< */, - int16_t acceleration_denominator /**< */, - int16_t threshold /**< */, - uint8_t do_acceleration /**< */, - uint8_t do_threshold /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_CHANGE_POINTER_CONTROL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_change_pointer_control_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.acceleration_numerator = acceleration_numerator; - xcb_out.acceleration_denominator = acceleration_denominator; - xcb_out.threshold = threshold; - xcb_out.do_acceleration = do_acceleration; - xcb_out.do_threshold = do_threshold; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_pointer_control_cookie_t -xcb_get_pointer_control (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_POINTER_CONTROL, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_pointer_control_cookie_t xcb_ret; - xcb_get_pointer_control_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_pointer_control_cookie_t -xcb_get_pointer_control_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_POINTER_CONTROL, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_pointer_control_cookie_t xcb_ret; - xcb_get_pointer_control_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_pointer_control_reply_t * -xcb_get_pointer_control_reply (xcb_connection_t *c /**< */, - xcb_get_pointer_control_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_pointer_control_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_set_screen_saver_checked (xcb_connection_t *c /**< */, - int16_t timeout /**< */, - int16_t interval /**< */, - uint8_t prefer_blanking /**< */, - uint8_t allow_exposures /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SET_SCREEN_SAVER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_set_screen_saver_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.timeout = timeout; - xcb_out.interval = interval; - xcb_out.prefer_blanking = prefer_blanking; - xcb_out.allow_exposures = allow_exposures; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_set_screen_saver (xcb_connection_t *c /**< */, - int16_t timeout /**< */, - int16_t interval /**< */, - uint8_t prefer_blanking /**< */, - uint8_t allow_exposures /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SET_SCREEN_SAVER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_set_screen_saver_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.timeout = timeout; - xcb_out.interval = interval; - xcb_out.prefer_blanking = prefer_blanking; - xcb_out.allow_exposures = allow_exposures; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_screen_saver_cookie_t -xcb_get_screen_saver (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_SCREEN_SAVER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_screen_saver_cookie_t xcb_ret; - xcb_get_screen_saver_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_screen_saver_cookie_t -xcb_get_screen_saver_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_SCREEN_SAVER, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_screen_saver_cookie_t xcb_ret; - xcb_get_screen_saver_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_screen_saver_reply_t * -xcb_get_screen_saver_reply (xcb_connection_t *c /**< */, - xcb_get_screen_saver_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_screen_saver_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_change_hosts_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_change_hosts_request_t *_aux = (xcb_change_hosts_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_change_hosts_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* address */ - xcb_block_len += _aux->address_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_change_hosts_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - uint8_t family /**< */, - uint16_t address_len /**< */, - const uint8_t *address /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_HOSTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_hosts_request_t xcb_out; - - xcb_out.mode = mode; - xcb_out.family = family; - xcb_out.pad0 = 0; - xcb_out.address_len = address_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t address */ - xcb_parts[4].iov_base = (char *) address; - xcb_parts[4].iov_len = address_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_change_hosts (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - uint8_t family /**< */, - uint16_t address_len /**< */, - const uint8_t *address /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_CHANGE_HOSTS, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_change_hosts_request_t xcb_out; - - xcb_out.mode = mode; - xcb_out.family = family; - xcb_out.pad0 = 0; - xcb_out.address_len = address_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t address */ - xcb_parts[4].iov_base = (char *) address; - xcb_parts[4].iov_len = address_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_host_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_host_t *_aux = (xcb_host_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_host_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* address */ - xcb_block_len += _aux->address_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint8_t * -xcb_host_address (const xcb_host_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_host_address_length (const xcb_host_t *R /**< */) -{ - return R->address_len; -} - -xcb_generic_iterator_t -xcb_host_address_end (const xcb_host_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + (R->address_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_host_next (xcb_host_iterator_t *i /**< */) -{ - xcb_host_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_host_t *)(((char *)R) + xcb_host_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_host_t *) child.data; -} - -xcb_generic_iterator_t -xcb_host_end (xcb_host_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_host_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_list_hosts_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_list_hosts_reply_t *_aux = (xcb_list_hosts_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_list_hosts_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* hosts */ - for(i=0; i<_aux->hosts_len; i++) { - xcb_tmp_len = xcb_host_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_host_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_list_hosts_cookie_t -xcb_list_hosts (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_LIST_HOSTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_list_hosts_cookie_t xcb_ret; - xcb_list_hosts_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_list_hosts_cookie_t -xcb_list_hosts_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_LIST_HOSTS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_list_hosts_cookie_t xcb_ret; - xcb_list_hosts_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_list_hosts_hosts_length (const xcb_list_hosts_reply_t *R /**< */) -{ - return R->hosts_len; -} - -xcb_host_iterator_t -xcb_list_hosts_hosts_iterator (const xcb_list_hosts_reply_t *R /**< */) -{ - xcb_host_iterator_t i; - i.data = (xcb_host_t *) (R + 1); - i.rem = R->hosts_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_list_hosts_reply_t * -xcb_list_hosts_reply (xcb_connection_t *c /**< */, - xcb_list_hosts_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_list_hosts_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_set_access_control_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SET_ACCESS_CONTROL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_set_access_control_request_t xcb_out; - - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_set_access_control (xcb_connection_t *c /**< */, - uint8_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SET_ACCESS_CONTROL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_set_access_control_request_t xcb_out; - - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_set_close_down_mode_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SET_CLOSE_DOWN_MODE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_set_close_down_mode_request_t xcb_out; - - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_set_close_down_mode (xcb_connection_t *c /**< */, - uint8_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_SET_CLOSE_DOWN_MODE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_set_close_down_mode_request_t xcb_out; - - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_kill_client_checked (xcb_connection_t *c /**< */, - uint32_t resource /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_KILL_CLIENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_kill_client_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.resource = resource; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_kill_client (xcb_connection_t *c /**< */, - uint32_t resource /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_KILL_CLIENT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_kill_client_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.resource = resource; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_rotate_properties_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_rotate_properties_request_t *_aux = (xcb_rotate_properties_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_rotate_properties_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* atoms */ - xcb_block_len += _aux->atoms_len * sizeof(xcb_atom_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_atom_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_rotate_properties_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t atoms_len /**< */, - int16_t delta /**< */, - const xcb_atom_t *atoms /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_ROTATE_PROPERTIES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_rotate_properties_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.atoms_len = atoms_len; - xcb_out.delta = delta; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_atom_t atoms */ - xcb_parts[4].iov_base = (char *) atoms; - xcb_parts[4].iov_len = atoms_len * sizeof(xcb_atom_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_rotate_properties (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t atoms_len /**< */, - int16_t delta /**< */, - const xcb_atom_t *atoms /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_ROTATE_PROPERTIES, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_rotate_properties_request_t xcb_out; - - xcb_out.pad0 = 0; - xcb_out.window = window; - xcb_out.atoms_len = atoms_len; - xcb_out.delta = delta; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_atom_t atoms */ - xcb_parts[4].iov_base = (char *) atoms; - xcb_parts[4].iov_len = atoms_len * sizeof(xcb_atom_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_force_screen_saver_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_FORCE_SCREEN_SAVER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_force_screen_saver_request_t xcb_out; - - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_force_screen_saver (xcb_connection_t *c /**< */, - uint8_t mode /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_FORCE_SCREEN_SAVER, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_force_screen_saver_request_t xcb_out; - - xcb_out.mode = mode; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_set_pointer_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_set_pointer_mapping_request_t *_aux = (xcb_set_pointer_mapping_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_set_pointer_mapping_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* map */ - xcb_block_len += _aux->map_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_set_pointer_mapping_cookie_t -xcb_set_pointer_mapping (xcb_connection_t *c /**< */, - uint8_t map_len /**< */, - const uint8_t *map /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_SET_POINTER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_set_pointer_mapping_cookie_t xcb_ret; - xcb_set_pointer_mapping_request_t xcb_out; - - xcb_out.map_len = map_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t map */ - xcb_parts[4].iov_base = (char *) map; - xcb_parts[4].iov_len = map_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_set_pointer_mapping_cookie_t -xcb_set_pointer_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t map_len /**< */, - const uint8_t *map /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_SET_POINTER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_set_pointer_mapping_cookie_t xcb_ret; - xcb_set_pointer_mapping_request_t xcb_out; - - xcb_out.map_len = map_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t map */ - xcb_parts[4].iov_base = (char *) map; - xcb_parts[4].iov_len = map_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_set_pointer_mapping_reply_t * -xcb_set_pointer_mapping_reply (xcb_connection_t *c /**< */, - xcb_set_pointer_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_set_pointer_mapping_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_get_pointer_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_get_pointer_mapping_reply_t *_aux = (xcb_get_pointer_mapping_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_get_pointer_mapping_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* map */ - xcb_block_len += _aux->map_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_get_pointer_mapping_cookie_t -xcb_get_pointer_mapping (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_POINTER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_pointer_mapping_cookie_t xcb_ret; - xcb_get_pointer_mapping_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_pointer_mapping_cookie_t -xcb_get_pointer_mapping_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_POINTER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_pointer_mapping_cookie_t xcb_ret; - xcb_get_pointer_mapping_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint8_t * -xcb_get_pointer_mapping_map (const xcb_get_pointer_mapping_reply_t *R /**< */) -{ - return (uint8_t *) (R + 1); -} - -int -xcb_get_pointer_mapping_map_length (const xcb_get_pointer_mapping_reply_t *R /**< */) -{ - return R->map_len; -} - -xcb_generic_iterator_t -xcb_get_pointer_mapping_map_end (const xcb_get_pointer_mapping_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint8_t *) (R + 1)) + (R->map_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_get_pointer_mapping_reply_t * -xcb_get_pointer_mapping_reply (xcb_connection_t *c /**< */, - xcb_get_pointer_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_pointer_mapping_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_set_modifier_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_set_modifier_mapping_request_t *_aux = (xcb_set_modifier_mapping_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_set_modifier_mapping_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keycodes */ - xcb_block_len += (_aux->keycodes_per_modifier * 8) * sizeof(xcb_keycode_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_set_modifier_mapping_cookie_t -xcb_set_modifier_mapping (xcb_connection_t *c /**< */, - uint8_t keycodes_per_modifier /**< */, - const xcb_keycode_t *keycodes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_SET_MODIFIER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_set_modifier_mapping_cookie_t xcb_ret; - xcb_set_modifier_mapping_request_t xcb_out; - - xcb_out.keycodes_per_modifier = keycodes_per_modifier; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_keycode_t keycodes */ - xcb_parts[4].iov_base = (char *) keycodes; - xcb_parts[4].iov_len = (keycodes_per_modifier * 8) * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_set_modifier_mapping_cookie_t -xcb_set_modifier_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t keycodes_per_modifier /**< */, - const xcb_keycode_t *keycodes /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ 0, - /* opcode */ XCB_SET_MODIFIER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[6]; - xcb_set_modifier_mapping_cookie_t xcb_ret; - xcb_set_modifier_mapping_request_t xcb_out; - - xcb_out.keycodes_per_modifier = keycodes_per_modifier; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* xcb_keycode_t keycodes */ - xcb_parts[4].iov_base = (char *) keycodes; - xcb_parts[4].iov_len = (keycodes_per_modifier * 8) * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_set_modifier_mapping_reply_t * -xcb_set_modifier_mapping_reply (xcb_connection_t *c /**< */, - xcb_set_modifier_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_set_modifier_mapping_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_get_modifier_mapping_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_get_modifier_mapping_reply_t *_aux = (xcb_get_modifier_mapping_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_get_modifier_mapping_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* keycodes */ - xcb_block_len += (_aux->keycodes_per_modifier * 8) * sizeof(xcb_keycode_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_keycode_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_get_modifier_mapping_cookie_t -xcb_get_modifier_mapping (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_MODIFIER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_modifier_mapping_cookie_t xcb_ret; - xcb_get_modifier_mapping_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_get_modifier_mapping_cookie_t -xcb_get_modifier_mapping_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_GET_MODIFIER_MAPPING, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_get_modifier_mapping_cookie_t xcb_ret; - xcb_get_modifier_mapping_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_keycode_t * -xcb_get_modifier_mapping_keycodes (const xcb_get_modifier_mapping_reply_t *R /**< */) -{ - return (xcb_keycode_t *) (R + 1); -} - -int -xcb_get_modifier_mapping_keycodes_length (const xcb_get_modifier_mapping_reply_t *R /**< */) -{ - return (R->keycodes_per_modifier * 8); -} - -xcb_generic_iterator_t -xcb_get_modifier_mapping_keycodes_end (const xcb_get_modifier_mapping_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((xcb_keycode_t *) (R + 1)) + ((R->keycodes_per_modifier * 8)); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_get_modifier_mapping_reply_t * -xcb_get_modifier_mapping_reply (xcb_connection_t *c /**< */, - xcb_get_modifier_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_get_modifier_mapping_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_no_operation_checked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_NO_OPERATION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_no_operation_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_no_operation (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ 0, - /* opcode */ XCB_NO_OPERATION, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_no_operation_request_t xcb_out; - - xcb_out.pad0 = 0; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - diff --git a/external/mit/xorg/lib/libxcb/files/xproto.h b/external/mit/xorg/lib/libxcb/files/xproto.h deleted file mode 100644 index d1643247c..000000000 --- a/external/mit/xorg/lib/libxcb/files/xproto.h +++ /dev/null @@ -1,11864 +0,0 @@ -/* - * This file generated automatically from xproto.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB__API XCB API - * @brief XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XPROTO_H -#define __XPROTO_H - -#include "xcb.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @brief xcb_char2b_t - **/ -typedef struct xcb_char2b_t { - uint8_t byte1; /**< */ - uint8_t byte2; /**< */ -} xcb_char2b_t; - -/** - * @brief xcb_char2b_iterator_t - **/ -typedef struct xcb_char2b_iterator_t { - xcb_char2b_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_char2b_iterator_t; - -typedef uint32_t xcb_window_t; - -/** - * @brief xcb_window_iterator_t - **/ -typedef struct xcb_window_iterator_t { - xcb_window_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_window_iterator_t; - -typedef uint32_t xcb_pixmap_t; - -/** - * @brief xcb_pixmap_iterator_t - **/ -typedef struct xcb_pixmap_iterator_t { - xcb_pixmap_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_pixmap_iterator_t; - -typedef uint32_t xcb_cursor_t; - -/** - * @brief xcb_cursor_iterator_t - **/ -typedef struct xcb_cursor_iterator_t { - xcb_cursor_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_cursor_iterator_t; - -typedef uint32_t xcb_font_t; - -/** - * @brief xcb_font_iterator_t - **/ -typedef struct xcb_font_iterator_t { - xcb_font_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_font_iterator_t; - -typedef uint32_t xcb_gcontext_t; - -/** - * @brief xcb_gcontext_iterator_t - **/ -typedef struct xcb_gcontext_iterator_t { - xcb_gcontext_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_gcontext_iterator_t; - -typedef uint32_t xcb_colormap_t; - -/** - * @brief xcb_colormap_iterator_t - **/ -typedef struct xcb_colormap_iterator_t { - xcb_colormap_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_colormap_iterator_t; - -typedef uint32_t xcb_atom_t; - -/** - * @brief xcb_atom_iterator_t - **/ -typedef struct xcb_atom_iterator_t { - xcb_atom_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_atom_iterator_t; - -typedef uint32_t xcb_drawable_t; - -/** - * @brief xcb_drawable_iterator_t - **/ -typedef struct xcb_drawable_iterator_t { - xcb_drawable_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_drawable_iterator_t; - -typedef uint32_t xcb_fontable_t; - -/** - * @brief xcb_fontable_iterator_t - **/ -typedef struct xcb_fontable_iterator_t { - xcb_fontable_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_fontable_iterator_t; - -typedef uint32_t xcb_visualid_t; - -/** - * @brief xcb_visualid_iterator_t - **/ -typedef struct xcb_visualid_iterator_t { - xcb_visualid_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_visualid_iterator_t; - -typedef uint32_t xcb_timestamp_t; - -/** - * @brief xcb_timestamp_iterator_t - **/ -typedef struct xcb_timestamp_iterator_t { - xcb_timestamp_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_timestamp_iterator_t; - -typedef uint32_t xcb_keysym_t; - -/** - * @brief xcb_keysym_iterator_t - **/ -typedef struct xcb_keysym_iterator_t { - xcb_keysym_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_keysym_iterator_t; - -typedef uint8_t xcb_keycode_t; - -/** - * @brief xcb_keycode_iterator_t - **/ -typedef struct xcb_keycode_iterator_t { - xcb_keycode_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_keycode_iterator_t; - -typedef uint8_t xcb_button_t; - -/** - * @brief xcb_button_iterator_t - **/ -typedef struct xcb_button_iterator_t { - xcb_button_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_button_iterator_t; - -/** - * @brief xcb_point_t - **/ -typedef struct xcb_point_t { - int16_t x; /**< */ - int16_t y; /**< */ -} xcb_point_t; - -/** - * @brief xcb_point_iterator_t - **/ -typedef struct xcb_point_iterator_t { - xcb_point_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_point_iterator_t; - -/** - * @brief xcb_rectangle_t - **/ -typedef struct xcb_rectangle_t { - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_rectangle_t; - -/** - * @brief xcb_rectangle_iterator_t - **/ -typedef struct xcb_rectangle_iterator_t { - xcb_rectangle_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_rectangle_iterator_t; - -/** - * @brief xcb_arc_t - **/ -typedef struct xcb_arc_t { - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - int16_t angle1; /**< */ - int16_t angle2; /**< */ -} xcb_arc_t; - -/** - * @brief xcb_arc_iterator_t - **/ -typedef struct xcb_arc_iterator_t { - xcb_arc_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_arc_iterator_t; - -/** - * @brief xcb_format_t - **/ -typedef struct xcb_format_t { - uint8_t depth; /**< */ - uint8_t bits_per_pixel; /**< */ - uint8_t scanline_pad; /**< */ - uint8_t pad0[5]; /**< */ -} xcb_format_t; - -/** - * @brief xcb_format_iterator_t - **/ -typedef struct xcb_format_iterator_t { - xcb_format_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_format_iterator_t; - -typedef enum xcb_visual_class_t { - XCB_VISUAL_CLASS_STATIC_GRAY = 0, - XCB_VISUAL_CLASS_GRAY_SCALE = 1, - XCB_VISUAL_CLASS_STATIC_COLOR = 2, - XCB_VISUAL_CLASS_PSEUDO_COLOR = 3, - XCB_VISUAL_CLASS_TRUE_COLOR = 4, - XCB_VISUAL_CLASS_DIRECT_COLOR = 5 -} xcb_visual_class_t; - -/** - * @brief xcb_visualtype_t - **/ -typedef struct xcb_visualtype_t { - xcb_visualid_t visual_id; /**< */ - uint8_t _class; /**< */ - uint8_t bits_per_rgb_value; /**< */ - uint16_t colormap_entries; /**< */ - uint32_t red_mask; /**< */ - uint32_t green_mask; /**< */ - uint32_t blue_mask; /**< */ - uint8_t pad0[4]; /**< */ -} xcb_visualtype_t; - -/** - * @brief xcb_visualtype_iterator_t - **/ -typedef struct xcb_visualtype_iterator_t { - xcb_visualtype_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_visualtype_iterator_t; - -/** - * @brief xcb_depth_t - **/ -typedef struct xcb_depth_t { - uint8_t depth; /**< */ - uint8_t pad0; /**< */ - uint16_t visuals_len; /**< */ - uint8_t pad1[4]; /**< */ -} xcb_depth_t; - -/** - * @brief xcb_depth_iterator_t - **/ -typedef struct xcb_depth_iterator_t { - xcb_depth_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_depth_iterator_t; - -typedef enum xcb_event_mask_t { - XCB_EVENT_MASK_NO_EVENT = 0, - XCB_EVENT_MASK_KEY_PRESS = 1, - XCB_EVENT_MASK_KEY_RELEASE = 2, - XCB_EVENT_MASK_BUTTON_PRESS = 4, - XCB_EVENT_MASK_BUTTON_RELEASE = 8, - XCB_EVENT_MASK_ENTER_WINDOW = 16, - XCB_EVENT_MASK_LEAVE_WINDOW = 32, - XCB_EVENT_MASK_POINTER_MOTION = 64, - XCB_EVENT_MASK_POINTER_MOTION_HINT = 128, - XCB_EVENT_MASK_BUTTON_1_MOTION = 256, - XCB_EVENT_MASK_BUTTON_2_MOTION = 512, - XCB_EVENT_MASK_BUTTON_3_MOTION = 1024, - XCB_EVENT_MASK_BUTTON_4_MOTION = 2048, - XCB_EVENT_MASK_BUTTON_5_MOTION = 4096, - XCB_EVENT_MASK_BUTTON_MOTION = 8192, - XCB_EVENT_MASK_KEYMAP_STATE = 16384, - XCB_EVENT_MASK_EXPOSURE = 32768, - XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536, - XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072, - XCB_EVENT_MASK_RESIZE_REDIRECT = 262144, - XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288, - XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576, - XCB_EVENT_MASK_FOCUS_CHANGE = 2097152, - XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304, - XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608, - XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216 -} xcb_event_mask_t; - -typedef enum xcb_backing_store_t { - XCB_BACKING_STORE_NOT_USEFUL = 0, - XCB_BACKING_STORE_WHEN_MAPPED = 1, - XCB_BACKING_STORE_ALWAYS = 2 -} xcb_backing_store_t; - -/** - * @brief xcb_screen_t - **/ -typedef struct xcb_screen_t { - xcb_window_t root; /**< */ - xcb_colormap_t default_colormap; /**< */ - uint32_t white_pixel; /**< */ - uint32_t black_pixel; /**< */ - uint32_t current_input_masks; /**< */ - uint16_t width_in_pixels; /**< */ - uint16_t height_in_pixels; /**< */ - uint16_t width_in_millimeters; /**< */ - uint16_t height_in_millimeters; /**< */ - uint16_t min_installed_maps; /**< */ - uint16_t max_installed_maps; /**< */ - xcb_visualid_t root_visual; /**< */ - uint8_t backing_stores; /**< */ - uint8_t save_unders; /**< */ - uint8_t root_depth; /**< */ - uint8_t allowed_depths_len; /**< */ -} xcb_screen_t; - -/** - * @brief xcb_screen_iterator_t - **/ -typedef struct xcb_screen_iterator_t { - xcb_screen_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_screen_iterator_t; - -/** - * @brief xcb_setup_request_t - **/ -typedef struct xcb_setup_request_t { - uint8_t byte_order; /**< */ - uint8_t pad0; /**< */ - uint16_t protocol_major_version; /**< */ - uint16_t protocol_minor_version; /**< */ - uint16_t authorization_protocol_name_len; /**< */ - uint16_t authorization_protocol_data_len; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_setup_request_t; - -/** - * @brief xcb_setup_request_iterator_t - **/ -typedef struct xcb_setup_request_iterator_t { - xcb_setup_request_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_setup_request_iterator_t; - -/** - * @brief xcb_setup_failed_t - **/ -typedef struct xcb_setup_failed_t { - uint8_t status; /**< */ - uint8_t reason_len; /**< */ - uint16_t protocol_major_version; /**< */ - uint16_t protocol_minor_version; /**< */ - uint16_t length; /**< */ -} xcb_setup_failed_t; - -/** - * @brief xcb_setup_failed_iterator_t - **/ -typedef struct xcb_setup_failed_iterator_t { - xcb_setup_failed_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_setup_failed_iterator_t; - -/** - * @brief xcb_setup_authenticate_t - **/ -typedef struct xcb_setup_authenticate_t { - uint8_t status; /**< */ - uint8_t pad0[5]; /**< */ - uint16_t length; /**< */ -} xcb_setup_authenticate_t; - -/** - * @brief xcb_setup_authenticate_iterator_t - **/ -typedef struct xcb_setup_authenticate_iterator_t { - xcb_setup_authenticate_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_setup_authenticate_iterator_t; - -typedef enum xcb_image_order_t { - XCB_IMAGE_ORDER_LSB_FIRST = 0, - XCB_IMAGE_ORDER_MSB_FIRST = 1 -} xcb_image_order_t; - -/** - * @brief xcb_setup_t - **/ -typedef struct xcb_setup_t { - uint8_t status; /**< */ - uint8_t pad0; /**< */ - uint16_t protocol_major_version; /**< */ - uint16_t protocol_minor_version; /**< */ - uint16_t length; /**< */ - uint32_t release_number; /**< */ - uint32_t resource_id_base; /**< */ - uint32_t resource_id_mask; /**< */ - uint32_t motion_buffer_size; /**< */ - uint16_t vendor_len; /**< */ - uint16_t maximum_request_length; /**< */ - uint8_t roots_len; /**< */ - uint8_t pixmap_formats_len; /**< */ - uint8_t image_byte_order; /**< */ - uint8_t bitmap_format_bit_order; /**< */ - uint8_t bitmap_format_scanline_unit; /**< */ - uint8_t bitmap_format_scanline_pad; /**< */ - xcb_keycode_t min_keycode; /**< */ - xcb_keycode_t max_keycode; /**< */ - uint8_t pad1[4]; /**< */ -} xcb_setup_t; - -/** - * @brief xcb_setup_iterator_t - **/ -typedef struct xcb_setup_iterator_t { - xcb_setup_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_setup_iterator_t; - -typedef enum xcb_mod_mask_t { - XCB_MOD_MASK_SHIFT = 1, - XCB_MOD_MASK_LOCK = 2, - XCB_MOD_MASK_CONTROL = 4, - XCB_MOD_MASK_1 = 8, - XCB_MOD_MASK_2 = 16, - XCB_MOD_MASK_3 = 32, - XCB_MOD_MASK_4 = 64, - XCB_MOD_MASK_5 = 128, - XCB_MOD_MASK_ANY = 32768 -} xcb_mod_mask_t; - -typedef enum xcb_key_but_mask_t { - XCB_KEY_BUT_MASK_SHIFT = 1, - XCB_KEY_BUT_MASK_LOCK = 2, - XCB_KEY_BUT_MASK_CONTROL = 4, - XCB_KEY_BUT_MASK_MOD_1 = 8, - XCB_KEY_BUT_MASK_MOD_2 = 16, - XCB_KEY_BUT_MASK_MOD_3 = 32, - XCB_KEY_BUT_MASK_MOD_4 = 64, - XCB_KEY_BUT_MASK_MOD_5 = 128, - XCB_KEY_BUT_MASK_BUTTON_1 = 256, - XCB_KEY_BUT_MASK_BUTTON_2 = 512, - XCB_KEY_BUT_MASK_BUTTON_3 = 1024, - XCB_KEY_BUT_MASK_BUTTON_4 = 2048, - XCB_KEY_BUT_MASK_BUTTON_5 = 4096 -} xcb_key_but_mask_t; - -typedef enum xcb_window_enum_t { - XCB_WINDOW_NONE = 0 -} xcb_window_enum_t; - -/** Opcode for xcb_key_press. */ -#define XCB_KEY_PRESS 2 - -/** - * @brief xcb_key_press_event_t - **/ -typedef struct xcb_key_press_event_t { - uint8_t response_type; /**< */ - xcb_keycode_t detail; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_window_t root; /**< */ - xcb_window_t event; /**< */ - xcb_window_t child; /**< */ - int16_t root_x; /**< */ - int16_t root_y; /**< */ - int16_t event_x; /**< */ - int16_t event_y; /**< */ - uint16_t state; /**< */ - uint8_t same_screen; /**< */ - uint8_t pad0; /**< */ -} xcb_key_press_event_t; - -/** Opcode for xcb_key_release. */ -#define XCB_KEY_RELEASE 3 - -typedef xcb_key_press_event_t xcb_key_release_event_t; - -typedef enum xcb_button_mask_t { - XCB_BUTTON_MASK_1 = 256, - XCB_BUTTON_MASK_2 = 512, - XCB_BUTTON_MASK_3 = 1024, - XCB_BUTTON_MASK_4 = 2048, - XCB_BUTTON_MASK_5 = 4096, - XCB_BUTTON_MASK_ANY = 32768 -} xcb_button_mask_t; - -/** Opcode for xcb_button_press. */ -#define XCB_BUTTON_PRESS 4 - -/** - * @brief xcb_button_press_event_t - **/ -typedef struct xcb_button_press_event_t { - uint8_t response_type; /**< */ - xcb_button_t detail; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_window_t root; /**< */ - xcb_window_t event; /**< */ - xcb_window_t child; /**< */ - int16_t root_x; /**< */ - int16_t root_y; /**< */ - int16_t event_x; /**< */ - int16_t event_y; /**< */ - uint16_t state; /**< */ - uint8_t same_screen; /**< */ - uint8_t pad0; /**< */ -} xcb_button_press_event_t; - -/** Opcode for xcb_button_release. */ -#define XCB_BUTTON_RELEASE 5 - -typedef xcb_button_press_event_t xcb_button_release_event_t; - -typedef enum xcb_motion_t { - XCB_MOTION_NORMAL = 0, - XCB_MOTION_HINT = 1 -} xcb_motion_t; - -/** Opcode for xcb_motion_notify. */ -#define XCB_MOTION_NOTIFY 6 - -/** - * @brief xcb_motion_notify_event_t - **/ -typedef struct xcb_motion_notify_event_t { - uint8_t response_type; /**< */ - uint8_t detail; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_window_t root; /**< */ - xcb_window_t event; /**< */ - xcb_window_t child; /**< */ - int16_t root_x; /**< */ - int16_t root_y; /**< */ - int16_t event_x; /**< */ - int16_t event_y; /**< */ - uint16_t state; /**< */ - uint8_t same_screen; /**< */ - uint8_t pad0; /**< */ -} xcb_motion_notify_event_t; - -typedef enum xcb_notify_detail_t { - XCB_NOTIFY_DETAIL_ANCESTOR = 0, - XCB_NOTIFY_DETAIL_VIRTUAL = 1, - XCB_NOTIFY_DETAIL_INFERIOR = 2, - XCB_NOTIFY_DETAIL_NONLINEAR = 3, - XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4, - XCB_NOTIFY_DETAIL_POINTER = 5, - XCB_NOTIFY_DETAIL_POINTER_ROOT = 6, - XCB_NOTIFY_DETAIL_NONE = 7 -} xcb_notify_detail_t; - -typedef enum xcb_notify_mode_t { - XCB_NOTIFY_MODE_NORMAL = 0, - XCB_NOTIFY_MODE_GRAB = 1, - XCB_NOTIFY_MODE_UNGRAB = 2, - XCB_NOTIFY_MODE_WHILE_GRABBED = 3 -} xcb_notify_mode_t; - -/** Opcode for xcb_enter_notify. */ -#define XCB_ENTER_NOTIFY 7 - -/** - * @brief xcb_enter_notify_event_t - **/ -typedef struct xcb_enter_notify_event_t { - uint8_t response_type; /**< */ - uint8_t detail; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_window_t root; /**< */ - xcb_window_t event; /**< */ - xcb_window_t child; /**< */ - int16_t root_x; /**< */ - int16_t root_y; /**< */ - int16_t event_x; /**< */ - int16_t event_y; /**< */ - uint16_t state; /**< */ - uint8_t mode; /**< */ - uint8_t same_screen_focus; /**< */ -} xcb_enter_notify_event_t; - -/** Opcode for xcb_leave_notify. */ -#define XCB_LEAVE_NOTIFY 8 - -typedef xcb_enter_notify_event_t xcb_leave_notify_event_t; - -/** Opcode for xcb_focus_in. */ -#define XCB_FOCUS_IN 9 - -/** - * @brief xcb_focus_in_event_t - **/ -typedef struct xcb_focus_in_event_t { - uint8_t response_type; /**< */ - uint8_t detail; /**< */ - uint16_t sequence; /**< */ - xcb_window_t event; /**< */ - uint8_t mode; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_focus_in_event_t; - -/** Opcode for xcb_focus_out. */ -#define XCB_FOCUS_OUT 10 - -typedef xcb_focus_in_event_t xcb_focus_out_event_t; - -/** Opcode for xcb_keymap_notify. */ -#define XCB_KEYMAP_NOTIFY 11 - -/** - * @brief xcb_keymap_notify_event_t - **/ -typedef struct xcb_keymap_notify_event_t { - uint8_t response_type; /**< */ - uint8_t keys[31]; /**< */ -} xcb_keymap_notify_event_t; - -/** Opcode for xcb_expose. */ -#define XCB_EXPOSE 12 - -/** - * @brief xcb_expose_event_t - **/ -typedef struct xcb_expose_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t window; /**< */ - uint16_t x; /**< */ - uint16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t count; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_expose_event_t; - -/** Opcode for xcb_graphics_exposure. */ -#define XCB_GRAPHICS_EXPOSURE 13 - -/** - * @brief xcb_graphics_exposure_event_t - **/ -typedef struct xcb_graphics_exposure_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_drawable_t drawable; /**< */ - uint16_t x; /**< */ - uint16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t minor_opcode; /**< */ - uint16_t count; /**< */ - uint8_t major_opcode; /**< */ - uint8_t pad1[3]; /**< */ -} xcb_graphics_exposure_event_t; - -/** Opcode for xcb_no_exposure. */ -#define XCB_NO_EXPOSURE 14 - -/** - * @brief xcb_no_exposure_event_t - **/ -typedef struct xcb_no_exposure_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_drawable_t drawable; /**< */ - uint16_t minor_opcode; /**< */ - uint8_t major_opcode; /**< */ - uint8_t pad1; /**< */ -} xcb_no_exposure_event_t; - -typedef enum xcb_visibility_t { - XCB_VISIBILITY_UNOBSCURED = 0, - XCB_VISIBILITY_PARTIALLY_OBSCURED = 1, - XCB_VISIBILITY_FULLY_OBSCURED = 2 -} xcb_visibility_t; - -/** Opcode for xcb_visibility_notify. */ -#define XCB_VISIBILITY_NOTIFY 15 - -/** - * @brief xcb_visibility_notify_event_t - **/ -typedef struct xcb_visibility_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t window; /**< */ - uint8_t state; /**< */ - uint8_t pad1[3]; /**< */ -} xcb_visibility_notify_event_t; - -/** Opcode for xcb_create_notify. */ -#define XCB_CREATE_NOTIFY 16 - -/** - * @brief xcb_create_notify_event_t - **/ -typedef struct xcb_create_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t parent; /**< */ - xcb_window_t window; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t border_width; /**< */ - uint8_t override_redirect; /**< */ - uint8_t pad1; /**< */ -} xcb_create_notify_event_t; - -/** Opcode for xcb_destroy_notify. */ -#define XCB_DESTROY_NOTIFY 17 - -/** - * @brief xcb_destroy_notify_event_t - **/ -typedef struct xcb_destroy_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t event; /**< */ - xcb_window_t window; /**< */ -} xcb_destroy_notify_event_t; - -/** Opcode for xcb_unmap_notify. */ -#define XCB_UNMAP_NOTIFY 18 - -/** - * @brief xcb_unmap_notify_event_t - **/ -typedef struct xcb_unmap_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t event; /**< */ - xcb_window_t window; /**< */ - uint8_t from_configure; /**< */ - uint8_t pad1[3]; /**< */ -} xcb_unmap_notify_event_t; - -/** Opcode for xcb_map_notify. */ -#define XCB_MAP_NOTIFY 19 - -/** - * @brief xcb_map_notify_event_t - **/ -typedef struct xcb_map_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t event; /**< */ - xcb_window_t window; /**< */ - uint8_t override_redirect; /**< */ - uint8_t pad1[3]; /**< */ -} xcb_map_notify_event_t; - -/** Opcode for xcb_map_request. */ -#define XCB_MAP_REQUEST 20 - -/** - * @brief xcb_map_request_event_t - **/ -typedef struct xcb_map_request_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t parent; /**< */ - xcb_window_t window; /**< */ -} xcb_map_request_event_t; - -/** Opcode for xcb_reparent_notify. */ -#define XCB_REPARENT_NOTIFY 21 - -/** - * @brief xcb_reparent_notify_event_t - **/ -typedef struct xcb_reparent_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t event; /**< */ - xcb_window_t window; /**< */ - xcb_window_t parent; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint8_t override_redirect; /**< */ - uint8_t pad1[3]; /**< */ -} xcb_reparent_notify_event_t; - -/** Opcode for xcb_configure_notify. */ -#define XCB_CONFIGURE_NOTIFY 22 - -/** - * @brief xcb_configure_notify_event_t - **/ -typedef struct xcb_configure_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t event; /**< */ - xcb_window_t window; /**< */ - xcb_window_t above_sibling; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t border_width; /**< */ - uint8_t override_redirect; /**< */ - uint8_t pad1; /**< */ -} xcb_configure_notify_event_t; - -/** Opcode for xcb_configure_request. */ -#define XCB_CONFIGURE_REQUEST 23 - -/** - * @brief xcb_configure_request_event_t - **/ -typedef struct xcb_configure_request_event_t { - uint8_t response_type; /**< */ - uint8_t stack_mode; /**< */ - uint16_t sequence; /**< */ - xcb_window_t parent; /**< */ - xcb_window_t window; /**< */ - xcb_window_t sibling; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t border_width; /**< */ - uint16_t value_mask; /**< */ -} xcb_configure_request_event_t; - -/** Opcode for xcb_gravity_notify. */ -#define XCB_GRAVITY_NOTIFY 24 - -/** - * @brief xcb_gravity_notify_event_t - **/ -typedef struct xcb_gravity_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t event; /**< */ - xcb_window_t window; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ -} xcb_gravity_notify_event_t; - -/** Opcode for xcb_resize_request. */ -#define XCB_RESIZE_REQUEST 25 - -/** - * @brief xcb_resize_request_event_t - **/ -typedef struct xcb_resize_request_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t window; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_resize_request_event_t; - -typedef enum xcb_place_t { - XCB_PLACE_ON_TOP = 0, -/**< The window is now on top of all siblings. */ - - XCB_PLACE_ON_BOTTOM = 1 -/**< The window is now below all siblings. */ - -} xcb_place_t; - -/** Opcode for xcb_circulate_notify. */ -#define XCB_CIRCULATE_NOTIFY 26 - -/** - * @brief xcb_circulate_notify_event_t - **/ -typedef struct xcb_circulate_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t event; /**< */ - xcb_window_t window; /**< */ - uint8_t pad1[4]; /**< */ - uint8_t place; /**< */ - uint8_t pad2[3]; /**< */ -} xcb_circulate_notify_event_t; - -/** Opcode for xcb_circulate_request. */ -#define XCB_CIRCULATE_REQUEST 27 - -typedef xcb_circulate_notify_event_t xcb_circulate_request_event_t; - -typedef enum xcb_property_t { - XCB_PROPERTY_NEW_VALUE = 0, - XCB_PROPERTY_DELETE = 1 -} xcb_property_t; - -/** Opcode for xcb_property_notify. */ -#define XCB_PROPERTY_NOTIFY 28 - -/** - * @brief xcb_property_notify_event_t - **/ -typedef struct xcb_property_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t window; /**< */ - xcb_atom_t atom; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t state; /**< */ - uint8_t pad1[3]; /**< */ -} xcb_property_notify_event_t; - -/** Opcode for xcb_selection_clear. */ -#define XCB_SELECTION_CLEAR 29 - -/** - * @brief xcb_selection_clear_event_t - **/ -typedef struct xcb_selection_clear_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_window_t owner; /**< */ - xcb_atom_t selection; /**< */ -} xcb_selection_clear_event_t; - -typedef enum xcb_time_t { - XCB_TIME_CURRENT_TIME = 0 -} xcb_time_t; - -typedef enum xcb_atom_enum_t { - XCB_ATOM_NONE = 0, - XCB_ATOM_ANY = 0, - XCB_ATOM_PRIMARY = 1, - XCB_ATOM_SECONDARY = 2, - XCB_ATOM_ARC = 3, - XCB_ATOM_ATOM = 4, - XCB_ATOM_BITMAP = 5, - XCB_ATOM_CARDINAL = 6, - XCB_ATOM_COLORMAP = 7, - XCB_ATOM_CURSOR = 8, - XCB_ATOM_CUT_BUFFER0 = 9, - XCB_ATOM_CUT_BUFFER1 = 10, - XCB_ATOM_CUT_BUFFER2 = 11, - XCB_ATOM_CUT_BUFFER3 = 12, - XCB_ATOM_CUT_BUFFER4 = 13, - XCB_ATOM_CUT_BUFFER5 = 14, - XCB_ATOM_CUT_BUFFER6 = 15, - XCB_ATOM_CUT_BUFFER7 = 16, - XCB_ATOM_DRAWABLE = 17, - XCB_ATOM_FONT = 18, - XCB_ATOM_INTEGER = 19, - XCB_ATOM_PIXMAP = 20, - XCB_ATOM_POINT = 21, - XCB_ATOM_RECTANGLE = 22, - XCB_ATOM_RESOURCE_MANAGER = 23, - XCB_ATOM_RGB_COLOR_MAP = 24, - XCB_ATOM_RGB_BEST_MAP = 25, - XCB_ATOM_RGB_BLUE_MAP = 26, - XCB_ATOM_RGB_DEFAULT_MAP = 27, - XCB_ATOM_RGB_GRAY_MAP = 28, - XCB_ATOM_RGB_GREEN_MAP = 29, - XCB_ATOM_RGB_RED_MAP = 30, - XCB_ATOM_STRING = 31, - XCB_ATOM_VISUALID = 32, - XCB_ATOM_WINDOW = 33, - XCB_ATOM_WM_COMMAND = 34, - XCB_ATOM_WM_HINTS = 35, - XCB_ATOM_WM_CLIENT_MACHINE = 36, - XCB_ATOM_WM_ICON_NAME = 37, - XCB_ATOM_WM_ICON_SIZE = 38, - XCB_ATOM_WM_NAME = 39, - XCB_ATOM_WM_NORMAL_HINTS = 40, - XCB_ATOM_WM_SIZE_HINTS = 41, - XCB_ATOM_WM_ZOOM_HINTS = 42, - XCB_ATOM_MIN_SPACE = 43, - XCB_ATOM_NORM_SPACE = 44, - XCB_ATOM_MAX_SPACE = 45, - XCB_ATOM_END_SPACE = 46, - XCB_ATOM_SUPERSCRIPT_X = 47, - XCB_ATOM_SUPERSCRIPT_Y = 48, - XCB_ATOM_SUBSCRIPT_X = 49, - XCB_ATOM_SUBSCRIPT_Y = 50, - XCB_ATOM_UNDERLINE_POSITION = 51, - XCB_ATOM_UNDERLINE_THICKNESS = 52, - XCB_ATOM_STRIKEOUT_ASCENT = 53, - XCB_ATOM_STRIKEOUT_DESCENT = 54, - XCB_ATOM_ITALIC_ANGLE = 55, - XCB_ATOM_X_HEIGHT = 56, - XCB_ATOM_QUAD_WIDTH = 57, - XCB_ATOM_WEIGHT = 58, - XCB_ATOM_POINT_SIZE = 59, - XCB_ATOM_RESOLUTION = 60, - XCB_ATOM_COPYRIGHT = 61, - XCB_ATOM_NOTICE = 62, - XCB_ATOM_FONT_NAME = 63, - XCB_ATOM_FAMILY_NAME = 64, - XCB_ATOM_FULL_NAME = 65, - XCB_ATOM_CAP_HEIGHT = 66, - XCB_ATOM_WM_CLASS = 67, - XCB_ATOM_WM_TRANSIENT_FOR = 68 -} xcb_atom_enum_t; - -/** Opcode for xcb_selection_request. */ -#define XCB_SELECTION_REQUEST 30 - -/** - * @brief xcb_selection_request_event_t - **/ -typedef struct xcb_selection_request_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_window_t owner; /**< */ - xcb_window_t requestor; /**< */ - xcb_atom_t selection; /**< */ - xcb_atom_t target; /**< */ - xcb_atom_t property; /**< */ -} xcb_selection_request_event_t; - -/** Opcode for xcb_selection_notify. */ -#define XCB_SELECTION_NOTIFY 31 - -/** - * @brief xcb_selection_notify_event_t - **/ -typedef struct xcb_selection_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_window_t requestor; /**< */ - xcb_atom_t selection; /**< */ - xcb_atom_t target; /**< */ - xcb_atom_t property; /**< */ -} xcb_selection_notify_event_t; - -typedef enum xcb_colormap_state_t { - XCB_COLORMAP_STATE_UNINSTALLED = 0, -/**< The colormap was uninstalled. */ - - XCB_COLORMAP_STATE_INSTALLED = 1 -/**< The colormap was installed. */ - -} xcb_colormap_state_t; - -typedef enum xcb_colormap_enum_t { - XCB_COLORMAP_NONE = 0 -} xcb_colormap_enum_t; - -/** Opcode for xcb_colormap_notify. */ -#define XCB_COLORMAP_NOTIFY 32 - -/** - * @brief xcb_colormap_notify_event_t - **/ -typedef struct xcb_colormap_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_window_t window; /**< */ - xcb_colormap_t colormap; /**< */ - uint8_t _new; /**< */ - uint8_t state; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_colormap_notify_event_t; - -/** - * @brief xcb_client_message_data_t - **/ -typedef union xcb_client_message_data_t { - uint8_t data8[20]; /**< */ - uint16_t data16[10]; /**< */ - uint32_t data32[5]; /**< */ -} xcb_client_message_data_t; - -/** - * @brief xcb_client_message_data_iterator_t - **/ -typedef struct xcb_client_message_data_iterator_t { - xcb_client_message_data_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_client_message_data_iterator_t; - -/** Opcode for xcb_client_message. */ -#define XCB_CLIENT_MESSAGE 33 - -/** - * @brief xcb_client_message_event_t - **/ -typedef struct xcb_client_message_event_t { - uint8_t response_type; /**< */ - uint8_t format; /**< */ - uint16_t sequence; /**< */ - xcb_window_t window; /**< */ - xcb_atom_t type; /**< */ - xcb_client_message_data_t data; /**< */ -} xcb_client_message_event_t; - -typedef enum xcb_mapping_t { - XCB_MAPPING_MODIFIER = 0, - XCB_MAPPING_KEYBOARD = 1, - XCB_MAPPING_POINTER = 2 -} xcb_mapping_t; - -/** Opcode for xcb_mapping_notify. */ -#define XCB_MAPPING_NOTIFY 34 - -/** - * @brief xcb_mapping_notify_event_t - **/ -typedef struct xcb_mapping_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint8_t request; /**< */ - xcb_keycode_t first_keycode; /**< */ - uint8_t count; /**< */ - uint8_t pad1; /**< */ -} xcb_mapping_notify_event_t; - -/** Opcode for xcb_ge_generic. */ -#define XCB_GE_GENERIC 35 - -/** - * @brief xcb_ge_generic_event_t - **/ -typedef struct xcb_ge_generic_event_t { - uint8_t response_type; /**< */ - uint8_t extension; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t event_type; /**< */ - uint8_t pad0[22]; /**< */ - uint32_t full_sequence; /**< */ -} xcb_ge_generic_event_t; - -/** Opcode for xcb_request. */ -#define XCB_REQUEST 1 - -/** - * @brief xcb_request_error_t - **/ -typedef struct xcb_request_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ - uint32_t bad_value; /**< */ - uint16_t minor_opcode; /**< */ - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ -} xcb_request_error_t; - -/** Opcode for xcb_value. */ -#define XCB_VALUE 2 - -/** - * @brief xcb_value_error_t - **/ -typedef struct xcb_value_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ - uint32_t bad_value; /**< */ - uint16_t minor_opcode; /**< */ - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ -} xcb_value_error_t; - -/** Opcode for xcb_window. */ -#define XCB_WINDOW 3 - -typedef xcb_value_error_t xcb_window_error_t; - -/** Opcode for xcb_pixmap. */ -#define XCB_PIXMAP 4 - -typedef xcb_value_error_t xcb_pixmap_error_t; - -/** Opcode for xcb_atom. */ -#define XCB_ATOM 5 - -typedef xcb_value_error_t xcb_atom_error_t; - -/** Opcode for xcb_cursor. */ -#define XCB_CURSOR 6 - -typedef xcb_value_error_t xcb_cursor_error_t; - -/** Opcode for xcb_font. */ -#define XCB_FONT 7 - -typedef xcb_value_error_t xcb_font_error_t; - -/** Opcode for xcb_match. */ -#define XCB_MATCH 8 - -typedef xcb_request_error_t xcb_match_error_t; - -/** Opcode for xcb_drawable. */ -#define XCB_DRAWABLE 9 - -typedef xcb_value_error_t xcb_drawable_error_t; - -/** Opcode for xcb_access. */ -#define XCB_ACCESS 10 - -typedef xcb_request_error_t xcb_access_error_t; - -/** Opcode for xcb_alloc. */ -#define XCB_ALLOC 11 - -typedef xcb_request_error_t xcb_alloc_error_t; - -/** Opcode for xcb_colormap. */ -#define XCB_COLORMAP 12 - -typedef xcb_value_error_t xcb_colormap_error_t; - -/** Opcode for xcb_g_context. */ -#define XCB_G_CONTEXT 13 - -typedef xcb_value_error_t xcb_g_context_error_t; - -/** Opcode for xcb_id_choice. */ -#define XCB_ID_CHOICE 14 - -typedef xcb_value_error_t xcb_id_choice_error_t; - -/** Opcode for xcb_name. */ -#define XCB_NAME 15 - -typedef xcb_request_error_t xcb_name_error_t; - -/** Opcode for xcb_length. */ -#define XCB_LENGTH 16 - -typedef xcb_request_error_t xcb_length_error_t; - -/** Opcode for xcb_implementation. */ -#define XCB_IMPLEMENTATION 17 - -typedef xcb_request_error_t xcb_implementation_error_t; - -typedef enum xcb_window_class_t { - XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0, - XCB_WINDOW_CLASS_INPUT_OUTPUT = 1, - XCB_WINDOW_CLASS_INPUT_ONLY = 2 -} xcb_window_class_t; - -typedef enum xcb_cw_t { - XCB_CW_BACK_PIXMAP = 1, -/**< Overrides the default background-pixmap. The background pixmap and window must -have the same root and same depth. Any size pixmap can be used, although some -sizes may be faster than others. - -If `XCB_BACK_PIXMAP_NONE` is specified, the window has no defined background. -The server may fill the contents with the previous screen contents or with -contents of its own choosing. - -If `XCB_BACK_PIXMAP_PARENT_RELATIVE` is specified, the parent's background is -used, but the window must have the same depth as the parent (or a Match error -results). The parent's background is tracked, and the current version is -used each time the window background is required. */ - - XCB_CW_BACK_PIXEL = 2, -/**< Overrides `BackPixmap`. A pixmap of undefined size filled with the specified -background pixel is used for the background. Range-checking is not performed, -the background pixel is truncated to the appropriate number of bits. */ - - XCB_CW_BORDER_PIXMAP = 4, -/**< Overrides the default border-pixmap. The border pixmap and window must have the -same root and the same depth. Any size pixmap can be used, although some sizes -may be faster than others. - -The special value `XCB_COPY_FROM_PARENT` means the parent's border pixmap is -copied (subsequent changes to the parent's border attribute do not affect the -child), but the window must have the same depth as the parent. */ - - XCB_CW_BORDER_PIXEL = 8, -/**< Overrides `BorderPixmap`. A pixmap of undefined size filled with the specified -border pixel is used for the border. Range checking is not performed on the -border-pixel value, it is truncated to the appropriate number of bits. */ - - XCB_CW_BIT_GRAVITY = 16, -/**< Defines which region of the window should be retained if the window is resized. */ - - XCB_CW_WIN_GRAVITY = 32, -/**< Defines how the window should be repositioned if the parent is resized (see -`ConfigureWindow`). */ - - XCB_CW_BACKING_STORE = 64, -/**< A backing-store of `WhenMapped` advises the server that maintaining contents of -obscured regions when the window is mapped would be beneficial. A backing-store -of `Always` advises the server that maintaining contents even when the window -is unmapped would be beneficial. In this case, the server may generate an -exposure event when the window is created. A value of `NotUseful` advises the -server that maintaining contents is unnecessary, although a server may still -choose to maintain contents while the window is mapped. Note that if the server -maintains contents, then the server should maintain complete contents not just -the region within the parent boundaries, even if the window is larger than its -parent. While the server maintains contents, exposure events will not normally -be generated, but the server may stop maintaining contents at any time. */ - - XCB_CW_BACKING_PLANES = 128, -/**< The backing-planes indicates (with bits set to 1) which bit planes of the -window hold dynamic data that must be preserved in backing-stores and during -save-unders. */ - - XCB_CW_BACKING_PIXEL = 256, -/**< The backing-pixel specifies what value to use in planes not covered by -backing-planes. The server is free to save only the specified bit planes in the -backing-store or save-under and regenerate the remaining planes with the -specified pixel value. Any bits beyond the specified depth of the window in -these values are simply ignored. */ - - XCB_CW_OVERRIDE_REDIRECT = 512, -/**< The override-redirect specifies whether map and configure requests on this -window should override a SubstructureRedirect on the parent, typically to -inform a window manager not to tamper with the window. */ - - XCB_CW_SAVE_UNDER = 1024, -/**< If 1, the server is advised that when this window is mapped, saving the -contents of windows it obscures would be beneficial. */ - - XCB_CW_EVENT_MASK = 2048, -/**< The event-mask defines which events the client is interested in for this window -(or for some event types, inferiors of the window). */ - - XCB_CW_DONT_PROPAGATE = 4096, -/**< The do-not-propagate-mask defines which events should not be propagated to -ancestor windows when no client has the event type selected in this window. */ - - XCB_CW_COLORMAP = 8192, -/**< The colormap specifies the colormap that best reflects the true colors of the window. Servers -capable of supporting multiple hardware colormaps may use this information, and window man- -agers may use it for InstallColormap requests. The colormap must have the same visual type -and root as the window (or a Match error results). If CopyFromParent is specified, the parent's -colormap is copied (subsequent changes to the parent's colormap attribute do not affect the child). -However, the window must have the same visual type as the parent (or a Match error results), -and the parent must not have a colormap of None (or a Match error results). For an explanation -of None, see FreeColormap request. The colormap is copied by sharing the colormap object -between the child and the parent, not by making a complete copy of the colormap contents. */ - - XCB_CW_CURSOR = 16384 -/**< If a cursor is specified, it will be used whenever the pointer is in the window. If None is speci- -fied, the parent's cursor will be used when the pointer is in the window, and any change in the -parent's cursor will cause an immediate change in the displayed cursor. */ - -} xcb_cw_t; - -typedef enum xcb_back_pixmap_t { - XCB_BACK_PIXMAP_NONE = 0, - XCB_BACK_PIXMAP_PARENT_RELATIVE = 1 -} xcb_back_pixmap_t; - -typedef enum xcb_gravity_t { - XCB_GRAVITY_BIT_FORGET = 0, - XCB_GRAVITY_WIN_UNMAP = 0, - XCB_GRAVITY_NORTH_WEST = 1, - XCB_GRAVITY_NORTH = 2, - XCB_GRAVITY_NORTH_EAST = 3, - XCB_GRAVITY_WEST = 4, - XCB_GRAVITY_CENTER = 5, - XCB_GRAVITY_EAST = 6, - XCB_GRAVITY_SOUTH_WEST = 7, - XCB_GRAVITY_SOUTH = 8, - XCB_GRAVITY_SOUTH_EAST = 9, - XCB_GRAVITY_STATIC = 10 -} xcb_gravity_t; - -/** Opcode for xcb_create_window. */ -#define XCB_CREATE_WINDOW 1 - -/** - * @brief xcb_create_window_request_t - **/ -typedef struct xcb_create_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t depth; /**< */ - uint16_t length; /**< */ - xcb_window_t wid; /**< */ - xcb_window_t parent; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t border_width; /**< */ - uint16_t _class; /**< */ - xcb_visualid_t visual; /**< */ - uint32_t value_mask; /**< */ -} xcb_create_window_request_t; - -/** Opcode for xcb_change_window_attributes. */ -#define XCB_CHANGE_WINDOW_ATTRIBUTES 2 - -/** - * @brief xcb_change_window_attributes_request_t - **/ -typedef struct xcb_change_window_attributes_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint32_t value_mask; /**< */ -} xcb_change_window_attributes_request_t; - -typedef enum xcb_map_state_t { - XCB_MAP_STATE_UNMAPPED = 0, - XCB_MAP_STATE_UNVIEWABLE = 1, - XCB_MAP_STATE_VIEWABLE = 2 -} xcb_map_state_t; - -/** - * @brief xcb_get_window_attributes_cookie_t - **/ -typedef struct xcb_get_window_attributes_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_window_attributes_cookie_t; - -/** Opcode for xcb_get_window_attributes. */ -#define XCB_GET_WINDOW_ATTRIBUTES 3 - -/** - * @brief xcb_get_window_attributes_request_t - **/ -typedef struct xcb_get_window_attributes_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_get_window_attributes_request_t; - -/** - * @brief xcb_get_window_attributes_reply_t - **/ -typedef struct xcb_get_window_attributes_reply_t { - uint8_t response_type; /**< */ - uint8_t backing_store; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_visualid_t visual; /**< */ - uint16_t _class; /**< */ - uint8_t bit_gravity; /**< */ - uint8_t win_gravity; /**< */ - uint32_t backing_planes; /**< */ - uint32_t backing_pixel; /**< */ - uint8_t save_under; /**< */ - uint8_t map_is_installed; /**< */ - uint8_t map_state; /**< */ - uint8_t override_redirect; /**< */ - xcb_colormap_t colormap; /**< */ - uint32_t all_event_masks; /**< */ - uint32_t your_event_mask; /**< */ - uint16_t do_not_propagate_mask; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_get_window_attributes_reply_t; - -/** Opcode for xcb_destroy_window. */ -#define XCB_DESTROY_WINDOW 4 - -/** - * @brief xcb_destroy_window_request_t - **/ -typedef struct xcb_destroy_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_destroy_window_request_t; - -/** Opcode for xcb_destroy_subwindows. */ -#define XCB_DESTROY_SUBWINDOWS 5 - -/** - * @brief xcb_destroy_subwindows_request_t - **/ -typedef struct xcb_destroy_subwindows_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_destroy_subwindows_request_t; - -typedef enum xcb_set_mode_t { - XCB_SET_MODE_INSERT = 0, - XCB_SET_MODE_DELETE = 1 -} xcb_set_mode_t; - -/** Opcode for xcb_change_save_set. */ -#define XCB_CHANGE_SAVE_SET 6 - -/** - * @brief xcb_change_save_set_request_t - **/ -typedef struct xcb_change_save_set_request_t { - uint8_t major_opcode; /**< */ - uint8_t mode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_change_save_set_request_t; - -/** Opcode for xcb_reparent_window. */ -#define XCB_REPARENT_WINDOW 7 - -/** - * @brief xcb_reparent_window_request_t - **/ -typedef struct xcb_reparent_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_window_t parent; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ -} xcb_reparent_window_request_t; - -/** Opcode for xcb_map_window. */ -#define XCB_MAP_WINDOW 8 - -/** - * @brief xcb_map_window_request_t - **/ -typedef struct xcb_map_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_map_window_request_t; - -/** Opcode for xcb_map_subwindows. */ -#define XCB_MAP_SUBWINDOWS 9 - -/** - * @brief xcb_map_subwindows_request_t - **/ -typedef struct xcb_map_subwindows_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_map_subwindows_request_t; - -/** Opcode for xcb_unmap_window. */ -#define XCB_UNMAP_WINDOW 10 - -/** - * @brief xcb_unmap_window_request_t - **/ -typedef struct xcb_unmap_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_unmap_window_request_t; - -/** Opcode for xcb_unmap_subwindows. */ -#define XCB_UNMAP_SUBWINDOWS 11 - -/** - * @brief xcb_unmap_subwindows_request_t - **/ -typedef struct xcb_unmap_subwindows_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_unmap_subwindows_request_t; - -typedef enum xcb_config_window_t { - XCB_CONFIG_WINDOW_X = 1, - XCB_CONFIG_WINDOW_Y = 2, - XCB_CONFIG_WINDOW_WIDTH = 4, - XCB_CONFIG_WINDOW_HEIGHT = 8, - XCB_CONFIG_WINDOW_BORDER_WIDTH = 16, - XCB_CONFIG_WINDOW_SIBLING = 32, - XCB_CONFIG_WINDOW_STACK_MODE = 64 -} xcb_config_window_t; - -typedef enum xcb_stack_mode_t { - XCB_STACK_MODE_ABOVE = 0, - XCB_STACK_MODE_BELOW = 1, - XCB_STACK_MODE_TOP_IF = 2, - XCB_STACK_MODE_BOTTOM_IF = 3, - XCB_STACK_MODE_OPPOSITE = 4 -} xcb_stack_mode_t; - -/** Opcode for xcb_configure_window. */ -#define XCB_CONFIGURE_WINDOW 12 - -/** - * @brief xcb_configure_window_request_t - **/ -typedef struct xcb_configure_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint16_t value_mask; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_configure_window_request_t; - -typedef enum xcb_circulate_t { - XCB_CIRCULATE_RAISE_LOWEST = 0, - XCB_CIRCULATE_LOWER_HIGHEST = 1 -} xcb_circulate_t; - -/** Opcode for xcb_circulate_window. */ -#define XCB_CIRCULATE_WINDOW 13 - -/** - * @brief xcb_circulate_window_request_t - **/ -typedef struct xcb_circulate_window_request_t { - uint8_t major_opcode; /**< */ - uint8_t direction; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_circulate_window_request_t; - -/** - * @brief xcb_get_geometry_cookie_t - **/ -typedef struct xcb_get_geometry_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_geometry_cookie_t; - -/** Opcode for xcb_get_geometry. */ -#define XCB_GET_GEOMETRY 14 - -/** - * @brief xcb_get_geometry_request_t - **/ -typedef struct xcb_get_geometry_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ -} xcb_get_geometry_request_t; - -/** - * @brief xcb_get_geometry_reply_t - **/ -typedef struct xcb_get_geometry_reply_t { - uint8_t response_type; /**< */ - uint8_t depth; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t root; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint16_t border_width; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_get_geometry_reply_t; - -/** - * @brief xcb_query_tree_cookie_t - **/ -typedef struct xcb_query_tree_cookie_t { - unsigned int sequence; /**< */ -} xcb_query_tree_cookie_t; - -/** Opcode for xcb_query_tree. */ -#define XCB_QUERY_TREE 15 - -/** - * @brief xcb_query_tree_request_t - **/ -typedef struct xcb_query_tree_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_query_tree_request_t; - -/** - * @brief xcb_query_tree_reply_t - **/ -typedef struct xcb_query_tree_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t root; /**< */ - xcb_window_t parent; /**< */ - uint16_t children_len; /**< */ - uint8_t pad1[14]; /**< */ -} xcb_query_tree_reply_t; - -/** - * @brief xcb_intern_atom_cookie_t - **/ -typedef struct xcb_intern_atom_cookie_t { - unsigned int sequence; /**< */ -} xcb_intern_atom_cookie_t; - -/** Opcode for xcb_intern_atom. */ -#define XCB_INTERN_ATOM 16 - -/** - * @brief xcb_intern_atom_request_t - **/ -typedef struct xcb_intern_atom_request_t { - uint8_t major_opcode; /**< */ - uint8_t only_if_exists; /**< */ - uint16_t length; /**< */ - uint16_t name_len; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_intern_atom_request_t; - -/** - * @brief xcb_intern_atom_reply_t - **/ -typedef struct xcb_intern_atom_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_atom_t atom; /**< */ -} xcb_intern_atom_reply_t; - -/** - * @brief xcb_get_atom_name_cookie_t - **/ -typedef struct xcb_get_atom_name_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_atom_name_cookie_t; - -/** Opcode for xcb_get_atom_name. */ -#define XCB_GET_ATOM_NAME 17 - -/** - * @brief xcb_get_atom_name_request_t - **/ -typedef struct xcb_get_atom_name_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_atom_t atom; /**< */ -} xcb_get_atom_name_request_t; - -/** - * @brief xcb_get_atom_name_reply_t - **/ -typedef struct xcb_get_atom_name_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t name_len; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_get_atom_name_reply_t; - -typedef enum xcb_prop_mode_t { - XCB_PROP_MODE_REPLACE = 0, -/**< Discard the previous property value and store the new data. */ - - XCB_PROP_MODE_PREPEND = 1, -/**< Insert the new data before the beginning of existing data. The `format` must -match existing property value. If the property is undefined, it is treated as -defined with the correct type and format with zero-length data. */ - - XCB_PROP_MODE_APPEND = 2 -/**< Insert the new data after the beginning of existing data. The `format` must -match existing property value. If the property is undefined, it is treated as -defined with the correct type and format with zero-length data. */ - -} xcb_prop_mode_t; - -/** Opcode for xcb_change_property. */ -#define XCB_CHANGE_PROPERTY 18 - -/** - * @brief xcb_change_property_request_t - **/ -typedef struct xcb_change_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t mode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_atom_t property; /**< */ - xcb_atom_t type; /**< */ - uint8_t format; /**< */ - uint8_t pad0[3]; /**< */ - uint32_t data_len; /**< */ -} xcb_change_property_request_t; - -/** Opcode for xcb_delete_property. */ -#define XCB_DELETE_PROPERTY 19 - -/** - * @brief xcb_delete_property_request_t - **/ -typedef struct xcb_delete_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_atom_t property; /**< */ -} xcb_delete_property_request_t; - -typedef enum xcb_get_property_type_t { - XCB_GET_PROPERTY_TYPE_ANY = 0 -} xcb_get_property_type_t; - -/** - * @brief xcb_get_property_cookie_t - **/ -typedef struct xcb_get_property_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_property_cookie_t; - -/** Opcode for xcb_get_property. */ -#define XCB_GET_PROPERTY 20 - -/** - * @brief xcb_get_property_request_t - **/ -typedef struct xcb_get_property_request_t { - uint8_t major_opcode; /**< */ - uint8_t _delete; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_atom_t property; /**< */ - xcb_atom_t type; /**< */ - uint32_t long_offset; /**< */ - uint32_t long_length; /**< */ -} xcb_get_property_request_t; - -/** - * @brief xcb_get_property_reply_t - **/ -typedef struct xcb_get_property_reply_t { - uint8_t response_type; /**< */ - uint8_t format; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_atom_t type; /**< */ - uint32_t bytes_after; /**< */ - uint32_t value_len; /**< */ - uint8_t pad0[12]; /**< */ -} xcb_get_property_reply_t; - -/** - * @brief xcb_list_properties_cookie_t - **/ -typedef struct xcb_list_properties_cookie_t { - unsigned int sequence; /**< */ -} xcb_list_properties_cookie_t; - -/** Opcode for xcb_list_properties. */ -#define XCB_LIST_PROPERTIES 21 - -/** - * @brief xcb_list_properties_request_t - **/ -typedef struct xcb_list_properties_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_list_properties_request_t; - -/** - * @brief xcb_list_properties_reply_t - **/ -typedef struct xcb_list_properties_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t atoms_len; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_list_properties_reply_t; - -/** Opcode for xcb_set_selection_owner. */ -#define XCB_SET_SELECTION_OWNER 22 - -/** - * @brief xcb_set_selection_owner_request_t - **/ -typedef struct xcb_set_selection_owner_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t owner; /**< */ - xcb_atom_t selection; /**< */ - xcb_timestamp_t time; /**< */ -} xcb_set_selection_owner_request_t; - -/** - * @brief xcb_get_selection_owner_cookie_t - **/ -typedef struct xcb_get_selection_owner_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_selection_owner_cookie_t; - -/** Opcode for xcb_get_selection_owner. */ -#define XCB_GET_SELECTION_OWNER 23 - -/** - * @brief xcb_get_selection_owner_request_t - **/ -typedef struct xcb_get_selection_owner_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_atom_t selection; /**< */ -} xcb_get_selection_owner_request_t; - -/** - * @brief xcb_get_selection_owner_reply_t - **/ -typedef struct xcb_get_selection_owner_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t owner; /**< */ -} xcb_get_selection_owner_reply_t; - -/** Opcode for xcb_convert_selection. */ -#define XCB_CONVERT_SELECTION 24 - -/** - * @brief xcb_convert_selection_request_t - **/ -typedef struct xcb_convert_selection_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t requestor; /**< */ - xcb_atom_t selection; /**< */ - xcb_atom_t target; /**< */ - xcb_atom_t property; /**< */ - xcb_timestamp_t time; /**< */ -} xcb_convert_selection_request_t; - -typedef enum xcb_send_event_dest_t { - XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0, - XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1 -} xcb_send_event_dest_t; - -/** Opcode for xcb_send_event. */ -#define XCB_SEND_EVENT 25 - -/** - * @brief xcb_send_event_request_t - **/ -typedef struct xcb_send_event_request_t { - uint8_t major_opcode; /**< */ - uint8_t propagate; /**< */ - uint16_t length; /**< */ - xcb_window_t destination; /**< */ - uint32_t event_mask; /**< */ - char event[32]; /**< */ -} xcb_send_event_request_t; - -typedef enum xcb_grab_mode_t { - XCB_GRAB_MODE_SYNC = 0, -/**< The state of the keyboard appears to freeze: No further keyboard events are -generated by the server until the grabbing client issues a releasing -`AllowEvents` request or until the keyboard grab is released. */ - - XCB_GRAB_MODE_ASYNC = 1 -/**< Keyboard event processing continues normally. */ - -} xcb_grab_mode_t; - -typedef enum xcb_grab_status_t { - XCB_GRAB_STATUS_SUCCESS = 0, - XCB_GRAB_STATUS_ALREADY_GRABBED = 1, - XCB_GRAB_STATUS_INVALID_TIME = 2, - XCB_GRAB_STATUS_NOT_VIEWABLE = 3, - XCB_GRAB_STATUS_FROZEN = 4 -} xcb_grab_status_t; - -typedef enum xcb_cursor_enum_t { - XCB_CURSOR_NONE = 0 -} xcb_cursor_enum_t; - -/** - * @brief xcb_grab_pointer_cookie_t - **/ -typedef struct xcb_grab_pointer_cookie_t { - unsigned int sequence; /**< */ -} xcb_grab_pointer_cookie_t; - -/** Opcode for xcb_grab_pointer. */ -#define XCB_GRAB_POINTER 26 - -/** - * @brief xcb_grab_pointer_request_t - **/ -typedef struct xcb_grab_pointer_request_t { - uint8_t major_opcode; /**< */ - uint8_t owner_events; /**< */ - uint16_t length; /**< */ - xcb_window_t grab_window; /**< */ - uint16_t event_mask; /**< */ - uint8_t pointer_mode; /**< */ - uint8_t keyboard_mode; /**< */ - xcb_window_t confine_to; /**< */ - xcb_cursor_t cursor; /**< */ - xcb_timestamp_t time; /**< */ -} xcb_grab_pointer_request_t; - -/** - * @brief xcb_grab_pointer_reply_t - **/ -typedef struct xcb_grab_pointer_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ -} xcb_grab_pointer_reply_t; - -/** Opcode for xcb_ungrab_pointer. */ -#define XCB_UNGRAB_POINTER 27 - -/** - * @brief xcb_ungrab_pointer_request_t - **/ -typedef struct xcb_ungrab_pointer_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_timestamp_t time; /**< */ -} xcb_ungrab_pointer_request_t; - -typedef enum xcb_button_index_t { - XCB_BUTTON_INDEX_ANY = 0, -/**< Any of the following (or none): */ - - XCB_BUTTON_INDEX_1 = 1, -/**< The left mouse button. */ - - XCB_BUTTON_INDEX_2 = 2, -/**< The right mouse button. */ - - XCB_BUTTON_INDEX_3 = 3, -/**< The middle mouse button. */ - - XCB_BUTTON_INDEX_4 = 4, -/**< Scroll wheel. TODO: direction? */ - - XCB_BUTTON_INDEX_5 = 5 -/**< Scroll wheel. TODO: direction? */ - -} xcb_button_index_t; - -/** Opcode for xcb_grab_button. */ -#define XCB_GRAB_BUTTON 28 - -/** - * @brief xcb_grab_button_request_t - **/ -typedef struct xcb_grab_button_request_t { - uint8_t major_opcode; /**< */ - uint8_t owner_events; /**< */ - uint16_t length; /**< */ - xcb_window_t grab_window; /**< */ - uint16_t event_mask; /**< */ - uint8_t pointer_mode; /**< */ - uint8_t keyboard_mode; /**< */ - xcb_window_t confine_to; /**< */ - xcb_cursor_t cursor; /**< */ - uint8_t button; /**< */ - uint8_t pad0; /**< */ - uint16_t modifiers; /**< */ -} xcb_grab_button_request_t; - -/** Opcode for xcb_ungrab_button. */ -#define XCB_UNGRAB_BUTTON 29 - -/** - * @brief xcb_ungrab_button_request_t - **/ -typedef struct xcb_ungrab_button_request_t { - uint8_t major_opcode; /**< */ - uint8_t button; /**< */ - uint16_t length; /**< */ - xcb_window_t grab_window; /**< */ - uint16_t modifiers; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_ungrab_button_request_t; - -/** Opcode for xcb_change_active_pointer_grab. */ -#define XCB_CHANGE_ACTIVE_POINTER_GRAB 30 - -/** - * @brief xcb_change_active_pointer_grab_request_t - **/ -typedef struct xcb_change_active_pointer_grab_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_cursor_t cursor; /**< */ - xcb_timestamp_t time; /**< */ - uint16_t event_mask; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_change_active_pointer_grab_request_t; - -/** - * @brief xcb_grab_keyboard_cookie_t - **/ -typedef struct xcb_grab_keyboard_cookie_t { - unsigned int sequence; /**< */ -} xcb_grab_keyboard_cookie_t; - -/** Opcode for xcb_grab_keyboard. */ -#define XCB_GRAB_KEYBOARD 31 - -/** - * @brief xcb_grab_keyboard_request_t - **/ -typedef struct xcb_grab_keyboard_request_t { - uint8_t major_opcode; /**< */ - uint8_t owner_events; /**< */ - uint16_t length; /**< */ - xcb_window_t grab_window; /**< */ - xcb_timestamp_t time; /**< */ - uint8_t pointer_mode; /**< */ - uint8_t keyboard_mode; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_grab_keyboard_request_t; - -/** - * @brief xcb_grab_keyboard_reply_t - **/ -typedef struct xcb_grab_keyboard_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ -} xcb_grab_keyboard_reply_t; - -/** Opcode for xcb_ungrab_keyboard. */ -#define XCB_UNGRAB_KEYBOARD 32 - -/** - * @brief xcb_ungrab_keyboard_request_t - **/ -typedef struct xcb_ungrab_keyboard_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_timestamp_t time; /**< */ -} xcb_ungrab_keyboard_request_t; - -typedef enum xcb_grab_t { - XCB_GRAB_ANY = 0 -} xcb_grab_t; - -/** Opcode for xcb_grab_key. */ -#define XCB_GRAB_KEY 33 - -/** - * @brief xcb_grab_key_request_t - **/ -typedef struct xcb_grab_key_request_t { - uint8_t major_opcode; /**< */ - uint8_t owner_events; /**< */ - uint16_t length; /**< */ - xcb_window_t grab_window; /**< */ - uint16_t modifiers; /**< */ - xcb_keycode_t key; /**< */ - uint8_t pointer_mode; /**< */ - uint8_t keyboard_mode; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_grab_key_request_t; - -/** Opcode for xcb_ungrab_key. */ -#define XCB_UNGRAB_KEY 34 - -/** - * @brief xcb_ungrab_key_request_t - **/ -typedef struct xcb_ungrab_key_request_t { - uint8_t major_opcode; /**< */ - xcb_keycode_t key; /**< */ - uint16_t length; /**< */ - xcb_window_t grab_window; /**< */ - uint16_t modifiers; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_ungrab_key_request_t; - -typedef enum xcb_allow_t { - XCB_ALLOW_ASYNC_POINTER = 0, -/**< For AsyncPointer, if the pointer is frozen by the client, pointer event -processing continues normally. If the pointer is frozen twice by the client on -behalf of two separate grabs, AsyncPointer thaws for both. AsyncPointer has no -effect if the pointer is not frozen by the client, but the pointer need not be -grabbed by the client. - -TODO: rewrite this in more understandable terms. */ - - XCB_ALLOW_SYNC_POINTER = 1, -/**< For SyncPointer, if the pointer is frozen and actively grabbed by the client, -pointer event processing continues normally until the next ButtonPress or -ButtonRelease event is reported to the client, at which time the pointer again -appears to freeze. However, if the reported event causes the pointer grab to be -released, then the pointer does not freeze. SyncPointer has no effect if the -pointer is not frozen by the client or if the pointer is not grabbed by the -client. */ - - XCB_ALLOW_REPLAY_POINTER = 2, -/**< For ReplayPointer, if the pointer is actively grabbed by the client and is -frozen as the result of an event having been sent to the client (either from -the activation of a GrabButton or from a previous AllowEvents with mode -SyncPointer but not from a GrabPointer), then the pointer grab is released and -that event is completely reprocessed, this time ignoring any passive grabs at -or above (towards the root) the grab-window of the grab just released. The -request has no effect if the pointer is not grabbed by the client or if the -pointer is not frozen as the result of an event. */ - - XCB_ALLOW_ASYNC_KEYBOARD = 3, -/**< For AsyncKeyboard, if the keyboard is frozen by the client, keyboard event -processing continues normally. If the keyboard is frozen twice by the client on -behalf of two separate grabs, AsyncKeyboard thaws for both. AsyncKeyboard has -no effect if the keyboard is not frozen by the client, but the keyboard need -not be grabbed by the client. */ - - XCB_ALLOW_SYNC_KEYBOARD = 4, -/**< For SyncKeyboard, if the keyboard is frozen and actively grabbed by the client, -keyboard event processing continues normally until the next KeyPress or -KeyRelease event is reported to the client, at which time the keyboard again -appears to freeze. However, if the reported event causes the keyboard grab to -be released, then the keyboard does not freeze. SyncKeyboard has no effect if -the keyboard is not frozen by the client or if the keyboard is not grabbed by -the client. */ - - XCB_ALLOW_REPLAY_KEYBOARD = 5, -/**< For ReplayKeyboard, if the keyboard is actively grabbed by the client and is -frozen as the result of an event having been sent to the client (either from -the activation of a GrabKey or from a previous AllowEvents with mode -SyncKeyboard but not from a GrabKeyboard), then the keyboard grab is released -and that event is completely reprocessed, this time ignoring any passive grabs -at or above (towards the root) the grab-window of the grab just released. The -request has no effect if the keyboard is not grabbed by the client or if the -keyboard is not frozen as the result of an event. */ - - XCB_ALLOW_ASYNC_BOTH = 6, -/**< For AsyncBoth, if the pointer and the keyboard are frozen by the client, event -processing for both devices continues normally. If a device is frozen twice by -the client on behalf of two separate grabs, AsyncBoth thaws for both. AsyncBoth -has no effect unless both pointer and keyboard are frozen by the client. */ - - XCB_ALLOW_SYNC_BOTH = 7 -/**< For SyncBoth, if both pointer and keyboard are frozen by the client, event -processing (for both devices) continues normally until the next ButtonPress, -ButtonRelease, KeyPress, or KeyRelease event is reported to the client for a -grabbed device (button event for the pointer, key event for the keyboard), at -which time the devices again appear to freeze. However, if the reported event -causes the grab to be released, then the devices do not freeze (but if the -other device is still grabbed, then a subsequent event for it will still cause -both devices to freeze). SyncBoth has no effect unless both pointer and -keyboard are frozen by the client. If the pointer or keyboard is frozen twice -by the client on behalf of two separate grabs, SyncBoth thaws for both (but a -subsequent freeze for SyncBoth will only freeze each device once). */ - -} xcb_allow_t; - -/** Opcode for xcb_allow_events. */ -#define XCB_ALLOW_EVENTS 35 - -/** - * @brief xcb_allow_events_request_t - **/ -typedef struct xcb_allow_events_request_t { - uint8_t major_opcode; /**< */ - uint8_t mode; /**< */ - uint16_t length; /**< */ - xcb_timestamp_t time; /**< */ -} xcb_allow_events_request_t; - -/** Opcode for xcb_grab_server. */ -#define XCB_GRAB_SERVER 36 - -/** - * @brief xcb_grab_server_request_t - **/ -typedef struct xcb_grab_server_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_grab_server_request_t; - -/** Opcode for xcb_ungrab_server. */ -#define XCB_UNGRAB_SERVER 37 - -/** - * @brief xcb_ungrab_server_request_t - **/ -typedef struct xcb_ungrab_server_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_ungrab_server_request_t; - -/** - * @brief xcb_query_pointer_cookie_t - **/ -typedef struct xcb_query_pointer_cookie_t { - unsigned int sequence; /**< */ -} xcb_query_pointer_cookie_t; - -/** Opcode for xcb_query_pointer. */ -#define XCB_QUERY_POINTER 38 - -/** - * @brief xcb_query_pointer_request_t - **/ -typedef struct xcb_query_pointer_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_query_pointer_request_t; - -/** - * @brief xcb_query_pointer_reply_t - **/ -typedef struct xcb_query_pointer_reply_t { - uint8_t response_type; /**< */ - uint8_t same_screen; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t root; /**< */ - xcb_window_t child; /**< */ - int16_t root_x; /**< */ - int16_t root_y; /**< */ - int16_t win_x; /**< */ - int16_t win_y; /**< */ - uint16_t mask; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_query_pointer_reply_t; - -/** - * @brief xcb_timecoord_t - **/ -typedef struct xcb_timecoord_t { - xcb_timestamp_t time; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ -} xcb_timecoord_t; - -/** - * @brief xcb_timecoord_iterator_t - **/ -typedef struct xcb_timecoord_iterator_t { - xcb_timecoord_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_timecoord_iterator_t; - -/** - * @brief xcb_get_motion_events_cookie_t - **/ -typedef struct xcb_get_motion_events_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_motion_events_cookie_t; - -/** Opcode for xcb_get_motion_events. */ -#define XCB_GET_MOTION_EVENTS 39 - -/** - * @brief xcb_get_motion_events_request_t - **/ -typedef struct xcb_get_motion_events_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_timestamp_t start; /**< */ - xcb_timestamp_t stop; /**< */ -} xcb_get_motion_events_request_t; - -/** - * @brief xcb_get_motion_events_reply_t - **/ -typedef struct xcb_get_motion_events_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t events_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_get_motion_events_reply_t; - -/** - * @brief xcb_translate_coordinates_cookie_t - **/ -typedef struct xcb_translate_coordinates_cookie_t { - unsigned int sequence; /**< */ -} xcb_translate_coordinates_cookie_t; - -/** Opcode for xcb_translate_coordinates. */ -#define XCB_TRANSLATE_COORDINATES 40 - -/** - * @brief xcb_translate_coordinates_request_t - **/ -typedef struct xcb_translate_coordinates_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t src_window; /**< */ - xcb_window_t dst_window; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ -} xcb_translate_coordinates_request_t; - -/** - * @brief xcb_translate_coordinates_reply_t - **/ -typedef struct xcb_translate_coordinates_reply_t { - uint8_t response_type; /**< */ - uint8_t same_screen; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t child; /**< */ - int16_t dst_x; /**< */ - int16_t dst_y; /**< */ -} xcb_translate_coordinates_reply_t; - -/** Opcode for xcb_warp_pointer. */ -#define XCB_WARP_POINTER 41 - -/** - * @brief xcb_warp_pointer_request_t - **/ -typedef struct xcb_warp_pointer_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t src_window; /**< */ - xcb_window_t dst_window; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ - uint16_t src_width; /**< */ - uint16_t src_height; /**< */ - int16_t dst_x; /**< */ - int16_t dst_y; /**< */ -} xcb_warp_pointer_request_t; - -typedef enum xcb_input_focus_t { - XCB_INPUT_FOCUS_NONE = 0, -/**< The focus reverts to `XCB_NONE`, so no window will have the input focus. */ - - XCB_INPUT_FOCUS_POINTER_ROOT = 1, -/**< The focus reverts to `XCB_POINTER_ROOT` respectively. When the focus reverts, -FocusIn and FocusOut events are generated, but the last-focus-change time is -not changed. */ - - XCB_INPUT_FOCUS_PARENT = 2, -/**< The focus reverts to the parent (or closest viewable ancestor) and the new -revert_to value is `XCB_INPUT_FOCUS_NONE`. */ - - XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3 -/**< NOT YET DOCUMENTED. Only relevant for the xinput extension. */ - -} xcb_input_focus_t; - -/** Opcode for xcb_set_input_focus. */ -#define XCB_SET_INPUT_FOCUS 42 - -/** - * @brief xcb_set_input_focus_request_t - **/ -typedef struct xcb_set_input_focus_request_t { - uint8_t major_opcode; /**< */ - uint8_t revert_to; /**< */ - uint16_t length; /**< */ - xcb_window_t focus; /**< */ - xcb_timestamp_t time; /**< */ -} xcb_set_input_focus_request_t; - -/** - * @brief xcb_get_input_focus_cookie_t - **/ -typedef struct xcb_get_input_focus_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_input_focus_cookie_t; - -/** Opcode for xcb_get_input_focus. */ -#define XCB_GET_INPUT_FOCUS 43 - -/** - * @brief xcb_get_input_focus_request_t - **/ -typedef struct xcb_get_input_focus_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_get_input_focus_request_t; - -/** - * @brief xcb_get_input_focus_reply_t - **/ -typedef struct xcb_get_input_focus_reply_t { - uint8_t response_type; /**< */ - uint8_t revert_to; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_window_t focus; /**< */ -} xcb_get_input_focus_reply_t; - -/** - * @brief xcb_query_keymap_cookie_t - **/ -typedef struct xcb_query_keymap_cookie_t { - unsigned int sequence; /**< */ -} xcb_query_keymap_cookie_t; - -/** Opcode for xcb_query_keymap. */ -#define XCB_QUERY_KEYMAP 44 - -/** - * @brief xcb_query_keymap_request_t - **/ -typedef struct xcb_query_keymap_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_query_keymap_request_t; - -/** - * @brief xcb_query_keymap_reply_t - **/ -typedef struct xcb_query_keymap_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t keys[32]; /**< */ -} xcb_query_keymap_reply_t; - -/** Opcode for xcb_open_font. */ -#define XCB_OPEN_FONT 45 - -/** - * @brief xcb_open_font_request_t - **/ -typedef struct xcb_open_font_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_font_t fid; /**< */ - uint16_t name_len; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_open_font_request_t; - -/** Opcode for xcb_close_font. */ -#define XCB_CLOSE_FONT 46 - -/** - * @brief xcb_close_font_request_t - **/ -typedef struct xcb_close_font_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_font_t font; /**< */ -} xcb_close_font_request_t; - -typedef enum xcb_font_draw_t { - XCB_FONT_DRAW_LEFT_TO_RIGHT = 0, - XCB_FONT_DRAW_RIGHT_TO_LEFT = 1 -} xcb_font_draw_t; - -/** - * @brief xcb_fontprop_t - **/ -typedef struct xcb_fontprop_t { - xcb_atom_t name; /**< */ - uint32_t value; /**< */ -} xcb_fontprop_t; - -/** - * @brief xcb_fontprop_iterator_t - **/ -typedef struct xcb_fontprop_iterator_t { - xcb_fontprop_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_fontprop_iterator_t; - -/** - * @brief xcb_charinfo_t - **/ -typedef struct xcb_charinfo_t { - int16_t left_side_bearing; /**< */ - int16_t right_side_bearing; /**< */ - int16_t character_width; /**< */ - int16_t ascent; /**< */ - int16_t descent; /**< */ - uint16_t attributes; /**< */ -} xcb_charinfo_t; - -/** - * @brief xcb_charinfo_iterator_t - **/ -typedef struct xcb_charinfo_iterator_t { - xcb_charinfo_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_charinfo_iterator_t; - -/** - * @brief xcb_query_font_cookie_t - **/ -typedef struct xcb_query_font_cookie_t { - unsigned int sequence; /**< */ -} xcb_query_font_cookie_t; - -/** Opcode for xcb_query_font. */ -#define XCB_QUERY_FONT 47 - -/** - * @brief xcb_query_font_request_t - **/ -typedef struct xcb_query_font_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_fontable_t font; /**< */ -} xcb_query_font_request_t; - -/** - * @brief xcb_query_font_reply_t - **/ -typedef struct xcb_query_font_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_charinfo_t min_bounds; /**< */ - uint8_t pad1[4]; /**< */ - xcb_charinfo_t max_bounds; /**< */ - uint8_t pad2[4]; /**< */ - uint16_t min_char_or_byte2; /**< */ - uint16_t max_char_or_byte2; /**< */ - uint16_t default_char; /**< */ - uint16_t properties_len; /**< */ - uint8_t draw_direction; /**< */ - uint8_t min_byte1; /**< */ - uint8_t max_byte1; /**< */ - uint8_t all_chars_exist; /**< */ - int16_t font_ascent; /**< */ - int16_t font_descent; /**< */ - uint32_t char_infos_len; /**< */ -} xcb_query_font_reply_t; - -/** - * @brief xcb_query_text_extents_cookie_t - **/ -typedef struct xcb_query_text_extents_cookie_t { - unsigned int sequence; /**< */ -} xcb_query_text_extents_cookie_t; - -/** Opcode for xcb_query_text_extents. */ -#define XCB_QUERY_TEXT_EXTENTS 48 - -/** - * @brief xcb_query_text_extents_request_t - **/ -typedef struct xcb_query_text_extents_request_t { - uint8_t major_opcode; /**< */ - uint8_t odd_length; /**< */ - uint16_t length; /**< */ - xcb_fontable_t font; /**< */ -} xcb_query_text_extents_request_t; - -/** - * @brief xcb_query_text_extents_reply_t - **/ -typedef struct xcb_query_text_extents_reply_t { - uint8_t response_type; /**< */ - uint8_t draw_direction; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - int16_t font_ascent; /**< */ - int16_t font_descent; /**< */ - int16_t overall_ascent; /**< */ - int16_t overall_descent; /**< */ - int32_t overall_width; /**< */ - int32_t overall_left; /**< */ - int32_t overall_right; /**< */ -} xcb_query_text_extents_reply_t; - -/** - * @brief xcb_str_t - **/ -typedef struct xcb_str_t { - uint8_t name_len; /**< */ -} xcb_str_t; - -/** - * @brief xcb_str_iterator_t - **/ -typedef struct xcb_str_iterator_t { - xcb_str_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_str_iterator_t; - -/** - * @brief xcb_list_fonts_cookie_t - **/ -typedef struct xcb_list_fonts_cookie_t { - unsigned int sequence; /**< */ -} xcb_list_fonts_cookie_t; - -/** Opcode for xcb_list_fonts. */ -#define XCB_LIST_FONTS 49 - -/** - * @brief xcb_list_fonts_request_t - **/ -typedef struct xcb_list_fonts_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - uint16_t max_names; /**< */ - uint16_t pattern_len; /**< */ -} xcb_list_fonts_request_t; - -/** - * @brief xcb_list_fonts_reply_t - **/ -typedef struct xcb_list_fonts_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t names_len; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_list_fonts_reply_t; - -/** - * @brief xcb_list_fonts_with_info_cookie_t - **/ -typedef struct xcb_list_fonts_with_info_cookie_t { - unsigned int sequence; /**< */ -} xcb_list_fonts_with_info_cookie_t; - -/** Opcode for xcb_list_fonts_with_info. */ -#define XCB_LIST_FONTS_WITH_INFO 50 - -/** - * @brief xcb_list_fonts_with_info_request_t - **/ -typedef struct xcb_list_fonts_with_info_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - uint16_t max_names; /**< */ - uint16_t pattern_len; /**< */ -} xcb_list_fonts_with_info_request_t; - -/** - * @brief xcb_list_fonts_with_info_reply_t - **/ -typedef struct xcb_list_fonts_with_info_reply_t { - uint8_t response_type; /**< */ - uint8_t name_len; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_charinfo_t min_bounds; /**< */ - uint8_t pad0[4]; /**< */ - xcb_charinfo_t max_bounds; /**< */ - uint8_t pad1[4]; /**< */ - uint16_t min_char_or_byte2; /**< */ - uint16_t max_char_or_byte2; /**< */ - uint16_t default_char; /**< */ - uint16_t properties_len; /**< */ - uint8_t draw_direction; /**< */ - uint8_t min_byte1; /**< */ - uint8_t max_byte1; /**< */ - uint8_t all_chars_exist; /**< */ - int16_t font_ascent; /**< */ - int16_t font_descent; /**< */ - uint32_t replies_hint; /**< */ -} xcb_list_fonts_with_info_reply_t; - -/** Opcode for xcb_set_font_path. */ -#define XCB_SET_FONT_PATH 51 - -/** - * @brief xcb_set_font_path_request_t - **/ -typedef struct xcb_set_font_path_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - uint16_t font_qty; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_set_font_path_request_t; - -/** - * @brief xcb_get_font_path_cookie_t - **/ -typedef struct xcb_get_font_path_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_font_path_cookie_t; - -/** Opcode for xcb_get_font_path. */ -#define XCB_GET_FONT_PATH 52 - -/** - * @brief xcb_get_font_path_request_t - **/ -typedef struct xcb_get_font_path_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_get_font_path_request_t; - -/** - * @brief xcb_get_font_path_reply_t - **/ -typedef struct xcb_get_font_path_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t path_len; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_get_font_path_reply_t; - -/** Opcode for xcb_create_pixmap. */ -#define XCB_CREATE_PIXMAP 53 - -/** - * @brief xcb_create_pixmap_request_t - **/ -typedef struct xcb_create_pixmap_request_t { - uint8_t major_opcode; /**< */ - uint8_t depth; /**< */ - uint16_t length; /**< */ - xcb_pixmap_t pid; /**< */ - xcb_drawable_t drawable; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_create_pixmap_request_t; - -/** Opcode for xcb_free_pixmap. */ -#define XCB_FREE_PIXMAP 54 - -/** - * @brief xcb_free_pixmap_request_t - **/ -typedef struct xcb_free_pixmap_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_pixmap_t pixmap; /**< */ -} xcb_free_pixmap_request_t; - -typedef enum xcb_gc_t { - XCB_GC_FUNCTION = 1, -/**< TODO: Refer to GX */ - - XCB_GC_PLANE_MASK = 2, -/**< In graphics operations, given a source and destination pixel, the result is -computed bitwise on corresponding bits of the pixels; that is, a Boolean -operation is performed in each bit plane. The plane-mask restricts the -operation to a subset of planes, so the result is: - - ((src FUNC dst) AND plane-mask) OR (dst AND (NOT plane-mask)) */ - - XCB_GC_FOREGROUND = 4, -/**< Foreground colorpixel. */ - - XCB_GC_BACKGROUND = 8, -/**< Background colorpixel. */ - - XCB_GC_LINE_WIDTH = 16, -/**< The line-width is measured in pixels and can be greater than or equal to one, a wide line, or the -special value zero, a thin line. */ - - XCB_GC_LINE_STYLE = 32, -/**< The line-style defines which sections of a line are drawn: -Solid The full path of the line is drawn. -DoubleDash The full path of the line is drawn, but the even dashes are filled differently - than the odd dashes (see fill-style), with Butt cap-style used where even and - odd dashes meet. -OnOffDash Only the even dashes are drawn, and cap-style applies to all internal ends of - the individual dashes (except NotLast is treated as Butt). */ - - XCB_GC_CAP_STYLE = 64, -/**< The cap-style defines how the endpoints of a path are drawn: -NotLast The result is equivalent to Butt, except that for a line-width of zero the final - endpoint is not drawn. -Butt The result is square at the endpoint (perpendicular to the slope of the line) - with no projection beyond. -Round The result is a circular arc with its diameter equal to the line-width, centered - on the endpoint; it is equivalent to Butt for line-width zero. -Projecting The result is square at the end, but the path continues beyond the endpoint for - a distance equal to half the line-width; it is equivalent to Butt for line-width - zero. */ - - XCB_GC_JOIN_STYLE = 128, -/**< The join-style defines how corners are drawn for wide lines: -Miter The outer edges of the two lines extend to meet at an angle. However, if the - angle is less than 11 degrees, a Bevel join-style is used instead. -Round The result is a circular arc with a diameter equal to the line-width, centered - on the joinpoint. -Bevel The result is Butt endpoint styles, and then the triangular notch is filled. */ - - XCB_GC_FILL_STYLE = 256, -/**< The fill-style defines the contents of the source for line, text, and fill requests. For all text and fill -requests (for example, PolyText8, PolyText16, PolyFillRectangle, FillPoly, and PolyFillArc) -as well as for line requests with line-style Solid, (for example, PolyLine, PolySegment, -PolyRectangle, PolyArc) and for the even dashes for line requests with line-style OnOffDash -or DoubleDash: -Solid Foreground -Tiled Tile -OpaqueStippled A tile with the same width and height as stipple but with background - everywhere stipple has a zero and with foreground everywhere stipple - has a one -Stippled Foreground masked by stipple -For the odd dashes for line requests with line-style DoubleDash: -Solid Background -Tiled Same as for even dashes -OpaqueStippled Same as for even dashes -Stippled Background masked by stipple */ - - XCB_GC_FILL_RULE = 512, -/**< */ - - XCB_GC_TILE = 1024, -/**< The tile/stipple represents an infinite two-dimensional plane with the tile/stipple replicated in all -dimensions. When that plane is superimposed on the drawable for use in a graphics operation, -the upper-left corner of some instance of the tile/stipple is at the coordinates within the drawable -specified by the tile/stipple origin. The tile/stipple and clip origins are interpreted relative to the -origin of whatever destination drawable is specified in a graphics request. -The tile pixmap must have the same root and depth as the gcontext (or a Match error results). -The stipple pixmap must have depth one and must have the same root as the gcontext (or a -Match error results). For fill-style Stippled (but not fill-style -OpaqueStippled), the stipple pattern is tiled in a single plane and acts as an -additional clip mask to be ANDed with the clip-mask. -Any size pixmap can be used for tiling or stippling, although some sizes may be faster to use than -others. */ - - XCB_GC_STIPPLE = 2048, -/**< The tile/stipple represents an infinite two-dimensional plane with the tile/stipple replicated in all -dimensions. When that plane is superimposed on the drawable for use in a graphics operation, -the upper-left corner of some instance of the tile/stipple is at the coordinates within the drawable -specified by the tile/stipple origin. The tile/stipple and clip origins are interpreted relative to the -origin of whatever destination drawable is specified in a graphics request. -The tile pixmap must have the same root and depth as the gcontext (or a Match error results). -The stipple pixmap must have depth one and must have the same root as the gcontext (or a -Match error results). For fill-style Stippled (but not fill-style -OpaqueStippled), the stipple pattern is tiled in a single plane and acts as an -additional clip mask to be ANDed with the clip-mask. -Any size pixmap can be used for tiling or stippling, although some sizes may be faster to use than -others. */ - - XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096, -/**< TODO */ - - XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192, -/**< TODO */ - - XCB_GC_FONT = 16384, -/**< Which font to use for the `ImageText8` and `ImageText16` requests. */ - - XCB_GC_SUBWINDOW_MODE = 32768, -/**< For ClipByChildren, both source and destination windows are additionally -clipped by all viewable InputOutput children. For IncludeInferiors, neither -source nor destination window is -clipped by inferiors. This will result in including subwindow contents in the source and drawing -through subwindow boundaries of the destination. The use of IncludeInferiors with a source or -destination window of one depth with mapped inferiors of differing depth is not illegal, but the -semantics is undefined by the core protocol. */ - - XCB_GC_GRAPHICS_EXPOSURES = 65536, -/**< Whether ExposureEvents should be generated (1) or not (0). - -The default is 1. */ - - XCB_GC_CLIP_ORIGIN_X = 131072, -/**< TODO */ - - XCB_GC_CLIP_ORIGIN_Y = 262144, -/**< TODO */ - - XCB_GC_CLIP_MASK = 524288, -/**< The clip-mask restricts writes to the destination drawable. Only pixels where the clip-mask has -bits set to 1 are drawn. Pixels are not drawn outside the area covered by the clip-mask or where -the clip-mask has bits set to 0. The clip-mask affects all graphics requests, but it does not clip -sources. The clip-mask origin is interpreted relative to the origin of whatever destination drawable is specified in a graphics request. If a pixmap is specified as the clip-mask, it must have -depth 1 and have the same root as the gcontext (or a Match error results). If clip-mask is None, -then pixels are always drawn, regardless of the clip origin. The clip-mask can also be set with the -SetClipRectangles request. */ - - XCB_GC_DASH_OFFSET = 1048576, -/**< TODO */ - - XCB_GC_DASH_LIST = 2097152, -/**< TODO */ - - XCB_GC_ARC_MODE = 4194304 -/**< TODO */ - -} xcb_gc_t; - -typedef enum xcb_gx_t { - XCB_GX_CLEAR = 0, - XCB_GX_AND = 1, - XCB_GX_AND_REVERSE = 2, - XCB_GX_COPY = 3, - XCB_GX_AND_INVERTED = 4, - XCB_GX_NOOP = 5, - XCB_GX_XOR = 6, - XCB_GX_OR = 7, - XCB_GX_NOR = 8, - XCB_GX_EQUIV = 9, - XCB_GX_INVERT = 10, - XCB_GX_OR_REVERSE = 11, - XCB_GX_COPY_INVERTED = 12, - XCB_GX_OR_INVERTED = 13, - XCB_GX_NAND = 14, - XCB_GX_SET = 15 -} xcb_gx_t; - -typedef enum xcb_line_style_t { - XCB_LINE_STYLE_SOLID = 0, - XCB_LINE_STYLE_ON_OFF_DASH = 1, - XCB_LINE_STYLE_DOUBLE_DASH = 2 -} xcb_line_style_t; - -typedef enum xcb_cap_style_t { - XCB_CAP_STYLE_NOT_LAST = 0, - XCB_CAP_STYLE_BUTT = 1, - XCB_CAP_STYLE_ROUND = 2, - XCB_CAP_STYLE_PROJECTING = 3 -} xcb_cap_style_t; - -typedef enum xcb_join_style_t { - XCB_JOIN_STYLE_MITER = 0, - XCB_JOIN_STYLE_ROUND = 1, - XCB_JOIN_STYLE_BEVEL = 2 -} xcb_join_style_t; - -typedef enum xcb_fill_style_t { - XCB_FILL_STYLE_SOLID = 0, - XCB_FILL_STYLE_TILED = 1, - XCB_FILL_STYLE_STIPPLED = 2, - XCB_FILL_STYLE_OPAQUE_STIPPLED = 3 -} xcb_fill_style_t; - -typedef enum xcb_fill_rule_t { - XCB_FILL_RULE_EVEN_ODD = 0, - XCB_FILL_RULE_WINDING = 1 -} xcb_fill_rule_t; - -typedef enum xcb_subwindow_mode_t { - XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0, - XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1 -} xcb_subwindow_mode_t; - -typedef enum xcb_arc_mode_t { - XCB_ARC_MODE_CHORD = 0, - XCB_ARC_MODE_PIE_SLICE = 1 -} xcb_arc_mode_t; - -/** Opcode for xcb_create_gc. */ -#define XCB_CREATE_GC 55 - -/** - * @brief xcb_create_gc_request_t - **/ -typedef struct xcb_create_gc_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_gcontext_t cid; /**< */ - xcb_drawable_t drawable; /**< */ - uint32_t value_mask; /**< */ -} xcb_create_gc_request_t; - -/** Opcode for xcb_change_gc. */ -#define XCB_CHANGE_GC 56 - -/** - * @brief xcb_change_gc_request_t - **/ -typedef struct xcb_change_gc_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_gcontext_t gc; /**< */ - uint32_t value_mask; /**< */ -} xcb_change_gc_request_t; - -/** Opcode for xcb_copy_gc. */ -#define XCB_COPY_GC 57 - -/** - * @brief xcb_copy_gc_request_t - **/ -typedef struct xcb_copy_gc_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_gcontext_t src_gc; /**< */ - xcb_gcontext_t dst_gc; /**< */ - uint32_t value_mask; /**< */ -} xcb_copy_gc_request_t; - -/** Opcode for xcb_set_dashes. */ -#define XCB_SET_DASHES 58 - -/** - * @brief xcb_set_dashes_request_t - **/ -typedef struct xcb_set_dashes_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_gcontext_t gc; /**< */ - uint16_t dash_offset; /**< */ - uint16_t dashes_len; /**< */ -} xcb_set_dashes_request_t; - -typedef enum xcb_clip_ordering_t { - XCB_CLIP_ORDERING_UNSORTED = 0, - XCB_CLIP_ORDERING_Y_SORTED = 1, - XCB_CLIP_ORDERING_YX_SORTED = 2, - XCB_CLIP_ORDERING_YX_BANDED = 3 -} xcb_clip_ordering_t; - -/** Opcode for xcb_set_clip_rectangles. */ -#define XCB_SET_CLIP_RECTANGLES 59 - -/** - * @brief xcb_set_clip_rectangles_request_t - **/ -typedef struct xcb_set_clip_rectangles_request_t { - uint8_t major_opcode; /**< */ - uint8_t ordering; /**< */ - uint16_t length; /**< */ - xcb_gcontext_t gc; /**< */ - int16_t clip_x_origin; /**< */ - int16_t clip_y_origin; /**< */ -} xcb_set_clip_rectangles_request_t; - -/** Opcode for xcb_free_gc. */ -#define XCB_FREE_GC 60 - -/** - * @brief xcb_free_gc_request_t - **/ -typedef struct xcb_free_gc_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_gcontext_t gc; /**< */ -} xcb_free_gc_request_t; - -/** Opcode for xcb_clear_area. */ -#define XCB_CLEAR_AREA 61 - -/** - * @brief xcb_clear_area_request_t - **/ -typedef struct xcb_clear_area_request_t { - uint8_t major_opcode; /**< */ - uint8_t exposures; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_clear_area_request_t; - -/** Opcode for xcb_copy_area. */ -#define XCB_COPY_AREA 62 - -/** - * @brief xcb_copy_area_request_t - **/ -typedef struct xcb_copy_area_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_drawable_t src_drawable; /**< */ - xcb_drawable_t dst_drawable; /**< */ - xcb_gcontext_t gc; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ - int16_t dst_x; /**< */ - int16_t dst_y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_copy_area_request_t; - -/** Opcode for xcb_copy_plane. */ -#define XCB_COPY_PLANE 63 - -/** - * @brief xcb_copy_plane_request_t - **/ -typedef struct xcb_copy_plane_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_drawable_t src_drawable; /**< */ - xcb_drawable_t dst_drawable; /**< */ - xcb_gcontext_t gc; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ - int16_t dst_x; /**< */ - int16_t dst_y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint32_t bit_plane; /**< */ -} xcb_copy_plane_request_t; - -typedef enum xcb_coord_mode_t { - XCB_COORD_MODE_ORIGIN = 0, -/**< Treats all coordinates as relative to the origin. */ - - XCB_COORD_MODE_PREVIOUS = 1 -/**< Treats all coordinates after the first as relative to the previous coordinate. */ - -} xcb_coord_mode_t; - -/** Opcode for xcb_poly_point. */ -#define XCB_POLY_POINT 64 - -/** - * @brief xcb_poly_point_request_t - **/ -typedef struct xcb_poly_point_request_t { - uint8_t major_opcode; /**< */ - uint8_t coordinate_mode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ -} xcb_poly_point_request_t; - -/** Opcode for xcb_poly_line. */ -#define XCB_POLY_LINE 65 - -/** - * @brief xcb_poly_line_request_t - **/ -typedef struct xcb_poly_line_request_t { - uint8_t major_opcode; /**< */ - uint8_t coordinate_mode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ -} xcb_poly_line_request_t; - -/** - * @brief xcb_segment_t - **/ -typedef struct xcb_segment_t { - int16_t x1; /**< */ - int16_t y1; /**< */ - int16_t x2; /**< */ - int16_t y2; /**< */ -} xcb_segment_t; - -/** - * @brief xcb_segment_iterator_t - **/ -typedef struct xcb_segment_iterator_t { - xcb_segment_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_segment_iterator_t; - -/** Opcode for xcb_poly_segment. */ -#define XCB_POLY_SEGMENT 66 - -/** - * @brief xcb_poly_segment_request_t - **/ -typedef struct xcb_poly_segment_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ -} xcb_poly_segment_request_t; - -/** Opcode for xcb_poly_rectangle. */ -#define XCB_POLY_RECTANGLE 67 - -/** - * @brief xcb_poly_rectangle_request_t - **/ -typedef struct xcb_poly_rectangle_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ -} xcb_poly_rectangle_request_t; - -/** Opcode for xcb_poly_arc. */ -#define XCB_POLY_ARC 68 - -/** - * @brief xcb_poly_arc_request_t - **/ -typedef struct xcb_poly_arc_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ -} xcb_poly_arc_request_t; - -typedef enum xcb_poly_shape_t { - XCB_POLY_SHAPE_COMPLEX = 0, - XCB_POLY_SHAPE_NONCONVEX = 1, - XCB_POLY_SHAPE_CONVEX = 2 -} xcb_poly_shape_t; - -/** Opcode for xcb_fill_poly. */ -#define XCB_FILL_POLY 69 - -/** - * @brief xcb_fill_poly_request_t - **/ -typedef struct xcb_fill_poly_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - uint8_t shape; /**< */ - uint8_t coordinate_mode; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_fill_poly_request_t; - -/** Opcode for xcb_poly_fill_rectangle. */ -#define XCB_POLY_FILL_RECTANGLE 70 - -/** - * @brief xcb_poly_fill_rectangle_request_t - **/ -typedef struct xcb_poly_fill_rectangle_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ -} xcb_poly_fill_rectangle_request_t; - -/** Opcode for xcb_poly_fill_arc. */ -#define XCB_POLY_FILL_ARC 71 - -/** - * @brief xcb_poly_fill_arc_request_t - **/ -typedef struct xcb_poly_fill_arc_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ -} xcb_poly_fill_arc_request_t; - -typedef enum xcb_image_format_t { - XCB_IMAGE_FORMAT_XY_BITMAP = 0, - XCB_IMAGE_FORMAT_XY_PIXMAP = 1, - XCB_IMAGE_FORMAT_Z_PIXMAP = 2 -} xcb_image_format_t; - -/** Opcode for xcb_put_image. */ -#define XCB_PUT_IMAGE 72 - -/** - * @brief xcb_put_image_request_t - **/ -typedef struct xcb_put_image_request_t { - uint8_t major_opcode; /**< */ - uint8_t format; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - int16_t dst_x; /**< */ - int16_t dst_y; /**< */ - uint8_t left_pad; /**< */ - uint8_t depth; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_put_image_request_t; - -/** - * @brief xcb_get_image_cookie_t - **/ -typedef struct xcb_get_image_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_image_cookie_t; - -/** Opcode for xcb_get_image. */ -#define XCB_GET_IMAGE 73 - -/** - * @brief xcb_get_image_request_t - **/ -typedef struct xcb_get_image_request_t { - uint8_t major_opcode; /**< */ - uint8_t format; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint32_t plane_mask; /**< */ -} xcb_get_image_request_t; - -/** - * @brief xcb_get_image_reply_t - **/ -typedef struct xcb_get_image_reply_t { - uint8_t response_type; /**< */ - uint8_t depth; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - xcb_visualid_t visual; /**< */ - uint8_t pad0[20]; /**< */ -} xcb_get_image_reply_t; - -/** Opcode for xcb_poly_text_8. */ -#define XCB_POLY_TEXT_8 74 - -/** - * @brief xcb_poly_text_8_request_t - **/ -typedef struct xcb_poly_text_8_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ -} xcb_poly_text_8_request_t; - -/** Opcode for xcb_poly_text_16. */ -#define XCB_POLY_TEXT_16 75 - -/** - * @brief xcb_poly_text_16_request_t - **/ -typedef struct xcb_poly_text_16_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ -} xcb_poly_text_16_request_t; - -/** Opcode for xcb_image_text_8. */ -#define XCB_IMAGE_TEXT_8 76 - -/** - * @brief xcb_image_text_8_request_t - **/ -typedef struct xcb_image_text_8_request_t { - uint8_t major_opcode; /**< */ - uint8_t string_len; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ -} xcb_image_text_8_request_t; - -/** Opcode for xcb_image_text_16. */ -#define XCB_IMAGE_TEXT_16 77 - -/** - * @brief xcb_image_text_16_request_t - **/ -typedef struct xcb_image_text_16_request_t { - uint8_t major_opcode; /**< */ - uint8_t string_len; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - int16_t x; /**< */ - int16_t y; /**< */ -} xcb_image_text_16_request_t; - -typedef enum xcb_colormap_alloc_t { - XCB_COLORMAP_ALLOC_NONE = 0, - XCB_COLORMAP_ALLOC_ALL = 1 -} xcb_colormap_alloc_t; - -/** Opcode for xcb_create_colormap. */ -#define XCB_CREATE_COLORMAP 78 - -/** - * @brief xcb_create_colormap_request_t - **/ -typedef struct xcb_create_colormap_request_t { - uint8_t major_opcode; /**< */ - uint8_t alloc; /**< */ - uint16_t length; /**< */ - xcb_colormap_t mid; /**< */ - xcb_window_t window; /**< */ - xcb_visualid_t visual; /**< */ -} xcb_create_colormap_request_t; - -/** Opcode for xcb_free_colormap. */ -#define XCB_FREE_COLORMAP 79 - -/** - * @brief xcb_free_colormap_request_t - **/ -typedef struct xcb_free_colormap_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ -} xcb_free_colormap_request_t; - -/** Opcode for xcb_copy_colormap_and_free. */ -#define XCB_COPY_COLORMAP_AND_FREE 80 - -/** - * @brief xcb_copy_colormap_and_free_request_t - **/ -typedef struct xcb_copy_colormap_and_free_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_colormap_t mid; /**< */ - xcb_colormap_t src_cmap; /**< */ -} xcb_copy_colormap_and_free_request_t; - -/** Opcode for xcb_install_colormap. */ -#define XCB_INSTALL_COLORMAP 81 - -/** - * @brief xcb_install_colormap_request_t - **/ -typedef struct xcb_install_colormap_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ -} xcb_install_colormap_request_t; - -/** Opcode for xcb_uninstall_colormap. */ -#define XCB_UNINSTALL_COLORMAP 82 - -/** - * @brief xcb_uninstall_colormap_request_t - **/ -typedef struct xcb_uninstall_colormap_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ -} xcb_uninstall_colormap_request_t; - -/** - * @brief xcb_list_installed_colormaps_cookie_t - **/ -typedef struct xcb_list_installed_colormaps_cookie_t { - unsigned int sequence; /**< */ -} xcb_list_installed_colormaps_cookie_t; - -/** Opcode for xcb_list_installed_colormaps. */ -#define XCB_LIST_INSTALLED_COLORMAPS 83 - -/** - * @brief xcb_list_installed_colormaps_request_t - **/ -typedef struct xcb_list_installed_colormaps_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_list_installed_colormaps_request_t; - -/** - * @brief xcb_list_installed_colormaps_reply_t - **/ -typedef struct xcb_list_installed_colormaps_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t cmaps_len; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_list_installed_colormaps_reply_t; - -/** - * @brief xcb_alloc_color_cookie_t - **/ -typedef struct xcb_alloc_color_cookie_t { - unsigned int sequence; /**< */ -} xcb_alloc_color_cookie_t; - -/** Opcode for xcb_alloc_color. */ -#define XCB_ALLOC_COLOR 84 - -/** - * @brief xcb_alloc_color_request_t - **/ -typedef struct xcb_alloc_color_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ - uint16_t red; /**< */ - uint16_t green; /**< */ - uint16_t blue; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_alloc_color_request_t; - -/** - * @brief xcb_alloc_color_reply_t - **/ -typedef struct xcb_alloc_color_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t red; /**< */ - uint16_t green; /**< */ - uint16_t blue; /**< */ - uint8_t pad1[2]; /**< */ - uint32_t pixel; /**< */ -} xcb_alloc_color_reply_t; - -/** - * @brief xcb_alloc_named_color_cookie_t - **/ -typedef struct xcb_alloc_named_color_cookie_t { - unsigned int sequence; /**< */ -} xcb_alloc_named_color_cookie_t; - -/** Opcode for xcb_alloc_named_color. */ -#define XCB_ALLOC_NAMED_COLOR 85 - -/** - * @brief xcb_alloc_named_color_request_t - **/ -typedef struct xcb_alloc_named_color_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ - uint16_t name_len; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_alloc_named_color_request_t; - -/** - * @brief xcb_alloc_named_color_reply_t - **/ -typedef struct xcb_alloc_named_color_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t pixel; /**< */ - uint16_t exact_red; /**< */ - uint16_t exact_green; /**< */ - uint16_t exact_blue; /**< */ - uint16_t visual_red; /**< */ - uint16_t visual_green; /**< */ - uint16_t visual_blue; /**< */ -} xcb_alloc_named_color_reply_t; - -/** - * @brief xcb_alloc_color_cells_cookie_t - **/ -typedef struct xcb_alloc_color_cells_cookie_t { - unsigned int sequence; /**< */ -} xcb_alloc_color_cells_cookie_t; - -/** Opcode for xcb_alloc_color_cells. */ -#define XCB_ALLOC_COLOR_CELLS 86 - -/** - * @brief xcb_alloc_color_cells_request_t - **/ -typedef struct xcb_alloc_color_cells_request_t { - uint8_t major_opcode; /**< */ - uint8_t contiguous; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ - uint16_t colors; /**< */ - uint16_t planes; /**< */ -} xcb_alloc_color_cells_request_t; - -/** - * @brief xcb_alloc_color_cells_reply_t - **/ -typedef struct xcb_alloc_color_cells_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t pixels_len; /**< */ - uint16_t masks_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_alloc_color_cells_reply_t; - -/** - * @brief xcb_alloc_color_planes_cookie_t - **/ -typedef struct xcb_alloc_color_planes_cookie_t { - unsigned int sequence; /**< */ -} xcb_alloc_color_planes_cookie_t; - -/** Opcode for xcb_alloc_color_planes. */ -#define XCB_ALLOC_COLOR_PLANES 87 - -/** - * @brief xcb_alloc_color_planes_request_t - **/ -typedef struct xcb_alloc_color_planes_request_t { - uint8_t major_opcode; /**< */ - uint8_t contiguous; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ - uint16_t colors; /**< */ - uint16_t reds; /**< */ - uint16_t greens; /**< */ - uint16_t blues; /**< */ -} xcb_alloc_color_planes_request_t; - -/** - * @brief xcb_alloc_color_planes_reply_t - **/ -typedef struct xcb_alloc_color_planes_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t pixels_len; /**< */ - uint8_t pad1[2]; /**< */ - uint32_t red_mask; /**< */ - uint32_t green_mask; /**< */ - uint32_t blue_mask; /**< */ - uint8_t pad2[8]; /**< */ -} xcb_alloc_color_planes_reply_t; - -/** Opcode for xcb_free_colors. */ -#define XCB_FREE_COLORS 88 - -/** - * @brief xcb_free_colors_request_t - **/ -typedef struct xcb_free_colors_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ - uint32_t plane_mask; /**< */ -} xcb_free_colors_request_t; - -typedef enum xcb_color_flag_t { - XCB_COLOR_FLAG_RED = 1, - XCB_COLOR_FLAG_GREEN = 2, - XCB_COLOR_FLAG_BLUE = 4 -} xcb_color_flag_t; - -/** - * @brief xcb_coloritem_t - **/ -typedef struct xcb_coloritem_t { - uint32_t pixel; /**< */ - uint16_t red; /**< */ - uint16_t green; /**< */ - uint16_t blue; /**< */ - uint8_t flags; /**< */ - uint8_t pad0; /**< */ -} xcb_coloritem_t; - -/** - * @brief xcb_coloritem_iterator_t - **/ -typedef struct xcb_coloritem_iterator_t { - xcb_coloritem_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_coloritem_iterator_t; - -/** Opcode for xcb_store_colors. */ -#define XCB_STORE_COLORS 89 - -/** - * @brief xcb_store_colors_request_t - **/ -typedef struct xcb_store_colors_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ -} xcb_store_colors_request_t; - -/** Opcode for xcb_store_named_color. */ -#define XCB_STORE_NAMED_COLOR 90 - -/** - * @brief xcb_store_named_color_request_t - **/ -typedef struct xcb_store_named_color_request_t { - uint8_t major_opcode; /**< */ - uint8_t flags; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ - uint32_t pixel; /**< */ - uint16_t name_len; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_store_named_color_request_t; - -/** - * @brief xcb_rgb_t - **/ -typedef struct xcb_rgb_t { - uint16_t red; /**< */ - uint16_t green; /**< */ - uint16_t blue; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_rgb_t; - -/** - * @brief xcb_rgb_iterator_t - **/ -typedef struct xcb_rgb_iterator_t { - xcb_rgb_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_rgb_iterator_t; - -/** - * @brief xcb_query_colors_cookie_t - **/ -typedef struct xcb_query_colors_cookie_t { - unsigned int sequence; /**< */ -} xcb_query_colors_cookie_t; - -/** Opcode for xcb_query_colors. */ -#define XCB_QUERY_COLORS 91 - -/** - * @brief xcb_query_colors_request_t - **/ -typedef struct xcb_query_colors_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ -} xcb_query_colors_request_t; - -/** - * @brief xcb_query_colors_reply_t - **/ -typedef struct xcb_query_colors_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t colors_len; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_query_colors_reply_t; - -/** - * @brief xcb_lookup_color_cookie_t - **/ -typedef struct xcb_lookup_color_cookie_t { - unsigned int sequence; /**< */ -} xcb_lookup_color_cookie_t; - -/** Opcode for xcb_lookup_color. */ -#define XCB_LOOKUP_COLOR 92 - -/** - * @brief xcb_lookup_color_request_t - **/ -typedef struct xcb_lookup_color_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_colormap_t cmap; /**< */ - uint16_t name_len; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_lookup_color_request_t; - -/** - * @brief xcb_lookup_color_reply_t - **/ -typedef struct xcb_lookup_color_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t exact_red; /**< */ - uint16_t exact_green; /**< */ - uint16_t exact_blue; /**< */ - uint16_t visual_red; /**< */ - uint16_t visual_green; /**< */ - uint16_t visual_blue; /**< */ -} xcb_lookup_color_reply_t; - -typedef enum xcb_pixmap_enum_t { - XCB_PIXMAP_NONE = 0 -} xcb_pixmap_enum_t; - -/** Opcode for xcb_create_cursor. */ -#define XCB_CREATE_CURSOR 93 - -/** - * @brief xcb_create_cursor_request_t - **/ -typedef struct xcb_create_cursor_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_cursor_t cid; /**< */ - xcb_pixmap_t source; /**< */ - xcb_pixmap_t mask; /**< */ - uint16_t fore_red; /**< */ - uint16_t fore_green; /**< */ - uint16_t fore_blue; /**< */ - uint16_t back_red; /**< */ - uint16_t back_green; /**< */ - uint16_t back_blue; /**< */ - uint16_t x; /**< */ - uint16_t y; /**< */ -} xcb_create_cursor_request_t; - -typedef enum xcb_font_enum_t { - XCB_FONT_NONE = 0 -} xcb_font_enum_t; - -/** Opcode for xcb_create_glyph_cursor. */ -#define XCB_CREATE_GLYPH_CURSOR 94 - -/** - * @brief xcb_create_glyph_cursor_request_t - **/ -typedef struct xcb_create_glyph_cursor_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_cursor_t cid; /**< */ - xcb_font_t source_font; /**< */ - xcb_font_t mask_font; /**< */ - uint16_t source_char; /**< */ - uint16_t mask_char; /**< */ - uint16_t fore_red; /**< */ - uint16_t fore_green; /**< */ - uint16_t fore_blue; /**< */ - uint16_t back_red; /**< */ - uint16_t back_green; /**< */ - uint16_t back_blue; /**< */ -} xcb_create_glyph_cursor_request_t; - -/** Opcode for xcb_free_cursor. */ -#define XCB_FREE_CURSOR 95 - -/** - * @brief xcb_free_cursor_request_t - **/ -typedef struct xcb_free_cursor_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_cursor_t cursor; /**< */ -} xcb_free_cursor_request_t; - -/** Opcode for xcb_recolor_cursor. */ -#define XCB_RECOLOR_CURSOR 96 - -/** - * @brief xcb_recolor_cursor_request_t - **/ -typedef struct xcb_recolor_cursor_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_cursor_t cursor; /**< */ - uint16_t fore_red; /**< */ - uint16_t fore_green; /**< */ - uint16_t fore_blue; /**< */ - uint16_t back_red; /**< */ - uint16_t back_green; /**< */ - uint16_t back_blue; /**< */ -} xcb_recolor_cursor_request_t; - -typedef enum xcb_query_shape_of_t { - XCB_QUERY_SHAPE_OF_LARGEST_CURSOR = 0, - XCB_QUERY_SHAPE_OF_FASTEST_TILE = 1, - XCB_QUERY_SHAPE_OF_FASTEST_STIPPLE = 2 -} xcb_query_shape_of_t; - -/** - * @brief xcb_query_best_size_cookie_t - **/ -typedef struct xcb_query_best_size_cookie_t { - unsigned int sequence; /**< */ -} xcb_query_best_size_cookie_t; - -/** Opcode for xcb_query_best_size. */ -#define XCB_QUERY_BEST_SIZE 97 - -/** - * @brief xcb_query_best_size_request_t - **/ -typedef struct xcb_query_best_size_request_t { - uint8_t major_opcode; /**< */ - uint8_t _class; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_query_best_size_request_t; - -/** - * @brief xcb_query_best_size_reply_t - **/ -typedef struct xcb_query_best_size_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_query_best_size_reply_t; - -/** - * @brief xcb_query_extension_cookie_t - **/ -typedef struct xcb_query_extension_cookie_t { - unsigned int sequence; /**< */ -} xcb_query_extension_cookie_t; - -/** Opcode for xcb_query_extension. */ -#define XCB_QUERY_EXTENSION 98 - -/** - * @brief xcb_query_extension_request_t - **/ -typedef struct xcb_query_extension_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - uint16_t name_len; /**< */ - uint8_t pad1[2]; /**< */ -} xcb_query_extension_request_t; - -/** - * @brief xcb_query_extension_reply_t - **/ -typedef struct xcb_query_extension_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t present; /**< */ - uint8_t major_opcode; /**< */ - uint8_t first_event; /**< */ - uint8_t first_error; /**< */ -} xcb_query_extension_reply_t; - -/** - * @brief xcb_list_extensions_cookie_t - **/ -typedef struct xcb_list_extensions_cookie_t { - unsigned int sequence; /**< */ -} xcb_list_extensions_cookie_t; - -/** Opcode for xcb_list_extensions. */ -#define XCB_LIST_EXTENSIONS 99 - -/** - * @brief xcb_list_extensions_request_t - **/ -typedef struct xcb_list_extensions_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_list_extensions_request_t; - -/** - * @brief xcb_list_extensions_reply_t - **/ -typedef struct xcb_list_extensions_reply_t { - uint8_t response_type; /**< */ - uint8_t names_len; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad0[24]; /**< */ -} xcb_list_extensions_reply_t; - -/** Opcode for xcb_change_keyboard_mapping. */ -#define XCB_CHANGE_KEYBOARD_MAPPING 100 - -/** - * @brief xcb_change_keyboard_mapping_request_t - **/ -typedef struct xcb_change_keyboard_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t keycode_count; /**< */ - uint16_t length; /**< */ - xcb_keycode_t first_keycode; /**< */ - uint8_t keysyms_per_keycode; /**< */ - uint8_t pad0[2]; /**< */ -} xcb_change_keyboard_mapping_request_t; - -/** - * @brief xcb_get_keyboard_mapping_cookie_t - **/ -typedef struct xcb_get_keyboard_mapping_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_keyboard_mapping_cookie_t; - -/** Opcode for xcb_get_keyboard_mapping. */ -#define XCB_GET_KEYBOARD_MAPPING 101 - -/** - * @brief xcb_get_keyboard_mapping_request_t - **/ -typedef struct xcb_get_keyboard_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_keycode_t first_keycode; /**< */ - uint8_t count; /**< */ -} xcb_get_keyboard_mapping_request_t; - -/** - * @brief xcb_get_keyboard_mapping_reply_t - **/ -typedef struct xcb_get_keyboard_mapping_reply_t { - uint8_t response_type; /**< */ - uint8_t keysyms_per_keycode; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad0[24]; /**< */ -} xcb_get_keyboard_mapping_reply_t; - -typedef enum xcb_kb_t { - XCB_KB_KEY_CLICK_PERCENT = 1, - XCB_KB_BELL_PERCENT = 2, - XCB_KB_BELL_PITCH = 4, - XCB_KB_BELL_DURATION = 8, - XCB_KB_LED = 16, - XCB_KB_LED_MODE = 32, - XCB_KB_KEY = 64, - XCB_KB_AUTO_REPEAT_MODE = 128 -} xcb_kb_t; - -typedef enum xcb_led_mode_t { - XCB_LED_MODE_OFF = 0, - XCB_LED_MODE_ON = 1 -} xcb_led_mode_t; - -typedef enum xcb_auto_repeat_mode_t { - XCB_AUTO_REPEAT_MODE_OFF = 0, - XCB_AUTO_REPEAT_MODE_ON = 1, - XCB_AUTO_REPEAT_MODE_DEFAULT = 2 -} xcb_auto_repeat_mode_t; - -/** Opcode for xcb_change_keyboard_control. */ -#define XCB_CHANGE_KEYBOARD_CONTROL 102 - -/** - * @brief xcb_change_keyboard_control_request_t - **/ -typedef struct xcb_change_keyboard_control_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - uint32_t value_mask; /**< */ -} xcb_change_keyboard_control_request_t; - -/** - * @brief xcb_get_keyboard_control_cookie_t - **/ -typedef struct xcb_get_keyboard_control_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_keyboard_control_cookie_t; - -/** Opcode for xcb_get_keyboard_control. */ -#define XCB_GET_KEYBOARD_CONTROL 103 - -/** - * @brief xcb_get_keyboard_control_request_t - **/ -typedef struct xcb_get_keyboard_control_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_get_keyboard_control_request_t; - -/** - * @brief xcb_get_keyboard_control_reply_t - **/ -typedef struct xcb_get_keyboard_control_reply_t { - uint8_t response_type; /**< */ - uint8_t global_auto_repeat; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t led_mask; /**< */ - uint8_t key_click_percent; /**< */ - uint8_t bell_percent; /**< */ - uint16_t bell_pitch; /**< */ - uint16_t bell_duration; /**< */ - uint8_t pad0[2]; /**< */ - uint8_t auto_repeats[32]; /**< */ -} xcb_get_keyboard_control_reply_t; - -/** Opcode for xcb_bell. */ -#define XCB_BELL 104 - -/** - * @brief xcb_bell_request_t - **/ -typedef struct xcb_bell_request_t { - uint8_t major_opcode; /**< */ - int8_t percent; /**< */ - uint16_t length; /**< */ -} xcb_bell_request_t; - -/** Opcode for xcb_change_pointer_control. */ -#define XCB_CHANGE_POINTER_CONTROL 105 - -/** - * @brief xcb_change_pointer_control_request_t - **/ -typedef struct xcb_change_pointer_control_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - int16_t acceleration_numerator; /**< */ - int16_t acceleration_denominator; /**< */ - int16_t threshold; /**< */ - uint8_t do_acceleration; /**< */ - uint8_t do_threshold; /**< */ -} xcb_change_pointer_control_request_t; - -/** - * @brief xcb_get_pointer_control_cookie_t - **/ -typedef struct xcb_get_pointer_control_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_pointer_control_cookie_t; - -/** Opcode for xcb_get_pointer_control. */ -#define XCB_GET_POINTER_CONTROL 106 - -/** - * @brief xcb_get_pointer_control_request_t - **/ -typedef struct xcb_get_pointer_control_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_get_pointer_control_request_t; - -/** - * @brief xcb_get_pointer_control_reply_t - **/ -typedef struct xcb_get_pointer_control_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t acceleration_numerator; /**< */ - uint16_t acceleration_denominator; /**< */ - uint16_t threshold; /**< */ - uint8_t pad1[18]; /**< */ -} xcb_get_pointer_control_reply_t; - -typedef enum xcb_blanking_t { - XCB_BLANKING_NOT_PREFERRED = 0, - XCB_BLANKING_PREFERRED = 1, - XCB_BLANKING_DEFAULT = 2 -} xcb_blanking_t; - -typedef enum xcb_exposures_t { - XCB_EXPOSURES_NOT_ALLOWED = 0, - XCB_EXPOSURES_ALLOWED = 1, - XCB_EXPOSURES_DEFAULT = 2 -} xcb_exposures_t; - -/** Opcode for xcb_set_screen_saver. */ -#define XCB_SET_SCREEN_SAVER 107 - -/** - * @brief xcb_set_screen_saver_request_t - **/ -typedef struct xcb_set_screen_saver_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - int16_t timeout; /**< */ - int16_t interval; /**< */ - uint8_t prefer_blanking; /**< */ - uint8_t allow_exposures; /**< */ -} xcb_set_screen_saver_request_t; - -/** - * @brief xcb_get_screen_saver_cookie_t - **/ -typedef struct xcb_get_screen_saver_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_screen_saver_cookie_t; - -/** Opcode for xcb_get_screen_saver. */ -#define XCB_GET_SCREEN_SAVER 108 - -/** - * @brief xcb_get_screen_saver_request_t - **/ -typedef struct xcb_get_screen_saver_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_get_screen_saver_request_t; - -/** - * @brief xcb_get_screen_saver_reply_t - **/ -typedef struct xcb_get_screen_saver_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t timeout; /**< */ - uint16_t interval; /**< */ - uint8_t prefer_blanking; /**< */ - uint8_t allow_exposures; /**< */ - uint8_t pad1[18]; /**< */ -} xcb_get_screen_saver_reply_t; - -typedef enum xcb_host_mode_t { - XCB_HOST_MODE_INSERT = 0, - XCB_HOST_MODE_DELETE = 1 -} xcb_host_mode_t; - -typedef enum xcb_family_t { - XCB_FAMILY_INTERNET = 0, - XCB_FAMILY_DECNET = 1, - XCB_FAMILY_CHAOS = 2, - XCB_FAMILY_SERVER_INTERPRETED = 5, - XCB_FAMILY_INTERNET_6 = 6 -} xcb_family_t; - -/** Opcode for xcb_change_hosts. */ -#define XCB_CHANGE_HOSTS 109 - -/** - * @brief xcb_change_hosts_request_t - **/ -typedef struct xcb_change_hosts_request_t { - uint8_t major_opcode; /**< */ - uint8_t mode; /**< */ - uint16_t length; /**< */ - uint8_t family; /**< */ - uint8_t pad0; /**< */ - uint16_t address_len; /**< */ -} xcb_change_hosts_request_t; - -/** - * @brief xcb_host_t - **/ -typedef struct xcb_host_t { - uint8_t family; /**< */ - uint8_t pad0; /**< */ - uint16_t address_len; /**< */ -} xcb_host_t; - -/** - * @brief xcb_host_iterator_t - **/ -typedef struct xcb_host_iterator_t { - xcb_host_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_host_iterator_t; - -/** - * @brief xcb_list_hosts_cookie_t - **/ -typedef struct xcb_list_hosts_cookie_t { - unsigned int sequence; /**< */ -} xcb_list_hosts_cookie_t; - -/** Opcode for xcb_list_hosts. */ -#define XCB_LIST_HOSTS 110 - -/** - * @brief xcb_list_hosts_request_t - **/ -typedef struct xcb_list_hosts_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_list_hosts_request_t; - -/** - * @brief xcb_list_hosts_reply_t - **/ -typedef struct xcb_list_hosts_reply_t { - uint8_t response_type; /**< */ - uint8_t mode; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t hosts_len; /**< */ - uint8_t pad0[22]; /**< */ -} xcb_list_hosts_reply_t; - -typedef enum xcb_access_control_t { - XCB_ACCESS_CONTROL_DISABLE = 0, - XCB_ACCESS_CONTROL_ENABLE = 1 -} xcb_access_control_t; - -/** Opcode for xcb_set_access_control. */ -#define XCB_SET_ACCESS_CONTROL 111 - -/** - * @brief xcb_set_access_control_request_t - **/ -typedef struct xcb_set_access_control_request_t { - uint8_t major_opcode; /**< */ - uint8_t mode; /**< */ - uint16_t length; /**< */ -} xcb_set_access_control_request_t; - -typedef enum xcb_close_down_t { - XCB_CLOSE_DOWN_DESTROY_ALL = 0, - XCB_CLOSE_DOWN_RETAIN_PERMANENT = 1, - XCB_CLOSE_DOWN_RETAIN_TEMPORARY = 2 -} xcb_close_down_t; - -/** Opcode for xcb_set_close_down_mode. */ -#define XCB_SET_CLOSE_DOWN_MODE 112 - -/** - * @brief xcb_set_close_down_mode_request_t - **/ -typedef struct xcb_set_close_down_mode_request_t { - uint8_t major_opcode; /**< */ - uint8_t mode; /**< */ - uint16_t length; /**< */ -} xcb_set_close_down_mode_request_t; - -typedef enum xcb_kill_t { - XCB_KILL_ALL_TEMPORARY = 0 -} xcb_kill_t; - -/** Opcode for xcb_kill_client. */ -#define XCB_KILL_CLIENT 113 - -/** - * @brief xcb_kill_client_request_t - **/ -typedef struct xcb_kill_client_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - uint32_t resource; /**< */ -} xcb_kill_client_request_t; - -/** Opcode for xcb_rotate_properties. */ -#define XCB_ROTATE_PROPERTIES 114 - -/** - * @brief xcb_rotate_properties_request_t - **/ -typedef struct xcb_rotate_properties_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - uint16_t atoms_len; /**< */ - int16_t delta; /**< */ -} xcb_rotate_properties_request_t; - -typedef enum xcb_screen_saver_t { - XCB_SCREEN_SAVER_RESET = 0, - XCB_SCREEN_SAVER_ACTIVE = 1 -} xcb_screen_saver_t; - -/** Opcode for xcb_force_screen_saver. */ -#define XCB_FORCE_SCREEN_SAVER 115 - -/** - * @brief xcb_force_screen_saver_request_t - **/ -typedef struct xcb_force_screen_saver_request_t { - uint8_t major_opcode; /**< */ - uint8_t mode; /**< */ - uint16_t length; /**< */ -} xcb_force_screen_saver_request_t; - -typedef enum xcb_mapping_status_t { - XCB_MAPPING_STATUS_SUCCESS = 0, - XCB_MAPPING_STATUS_BUSY = 1, - XCB_MAPPING_STATUS_FAILURE = 2 -} xcb_mapping_status_t; - -/** - * @brief xcb_set_pointer_mapping_cookie_t - **/ -typedef struct xcb_set_pointer_mapping_cookie_t { - unsigned int sequence; /**< */ -} xcb_set_pointer_mapping_cookie_t; - -/** Opcode for xcb_set_pointer_mapping. */ -#define XCB_SET_POINTER_MAPPING 116 - -/** - * @brief xcb_set_pointer_mapping_request_t - **/ -typedef struct xcb_set_pointer_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t map_len; /**< */ - uint16_t length; /**< */ -} xcb_set_pointer_mapping_request_t; - -/** - * @brief xcb_set_pointer_mapping_reply_t - **/ -typedef struct xcb_set_pointer_mapping_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ -} xcb_set_pointer_mapping_reply_t; - -/** - * @brief xcb_get_pointer_mapping_cookie_t - **/ -typedef struct xcb_get_pointer_mapping_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_pointer_mapping_cookie_t; - -/** Opcode for xcb_get_pointer_mapping. */ -#define XCB_GET_POINTER_MAPPING 117 - -/** - * @brief xcb_get_pointer_mapping_request_t - **/ -typedef struct xcb_get_pointer_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_get_pointer_mapping_request_t; - -/** - * @brief xcb_get_pointer_mapping_reply_t - **/ -typedef struct xcb_get_pointer_mapping_reply_t { - uint8_t response_type; /**< */ - uint8_t map_len; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad0[24]; /**< */ -} xcb_get_pointer_mapping_reply_t; - -typedef enum xcb_map_index_t { - XCB_MAP_INDEX_SHIFT = 0, - XCB_MAP_INDEX_LOCK = 1, - XCB_MAP_INDEX_CONTROL = 2, - XCB_MAP_INDEX_1 = 3, - XCB_MAP_INDEX_2 = 4, - XCB_MAP_INDEX_3 = 5, - XCB_MAP_INDEX_4 = 6, - XCB_MAP_INDEX_5 = 7 -} xcb_map_index_t; - -/** - * @brief xcb_set_modifier_mapping_cookie_t - **/ -typedef struct xcb_set_modifier_mapping_cookie_t { - unsigned int sequence; /**< */ -} xcb_set_modifier_mapping_cookie_t; - -/** Opcode for xcb_set_modifier_mapping. */ -#define XCB_SET_MODIFIER_MAPPING 118 - -/** - * @brief xcb_set_modifier_mapping_request_t - **/ -typedef struct xcb_set_modifier_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t keycodes_per_modifier; /**< */ - uint16_t length; /**< */ -} xcb_set_modifier_mapping_request_t; - -/** - * @brief xcb_set_modifier_mapping_reply_t - **/ -typedef struct xcb_set_modifier_mapping_reply_t { - uint8_t response_type; /**< */ - uint8_t status; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ -} xcb_set_modifier_mapping_reply_t; - -/** - * @brief xcb_get_modifier_mapping_cookie_t - **/ -typedef struct xcb_get_modifier_mapping_cookie_t { - unsigned int sequence; /**< */ -} xcb_get_modifier_mapping_cookie_t; - -/** Opcode for xcb_get_modifier_mapping. */ -#define XCB_GET_MODIFIER_MAPPING 119 - -/** - * @brief xcb_get_modifier_mapping_request_t - **/ -typedef struct xcb_get_modifier_mapping_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_get_modifier_mapping_request_t; - -/** - * @brief xcb_get_modifier_mapping_reply_t - **/ -typedef struct xcb_get_modifier_mapping_reply_t { - uint8_t response_type; /**< */ - uint8_t keycodes_per_modifier; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad0[24]; /**< */ -} xcb_get_modifier_mapping_reply_t; - -/** Opcode for xcb_no_operation. */ -#define XCB_NO_OPERATION 127 - -/** - * @brief xcb_no_operation_request_t - **/ -typedef struct xcb_no_operation_request_t { - uint8_t major_opcode; /**< */ - uint8_t pad0; /**< */ - uint16_t length; /**< */ -} xcb_no_operation_request_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_char2b_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_char2b_t) - */ -void -xcb_char2b_next (xcb_char2b_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_char2b_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_char2b_end (xcb_char2b_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_window_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_window_t) - */ -void -xcb_window_next (xcb_window_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_window_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_window_end (xcb_window_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_pixmap_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_pixmap_t) - */ -void -xcb_pixmap_next (xcb_pixmap_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_pixmap_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_pixmap_end (xcb_pixmap_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_cursor_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_cursor_t) - */ -void -xcb_cursor_next (xcb_cursor_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_cursor_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_cursor_end (xcb_cursor_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_font_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_font_t) - */ -void -xcb_font_next (xcb_font_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_font_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_font_end (xcb_font_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_gcontext_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_gcontext_t) - */ -void -xcb_gcontext_next (xcb_gcontext_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_gcontext_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_gcontext_end (xcb_gcontext_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_colormap_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_colormap_t) - */ -void -xcb_colormap_next (xcb_colormap_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_colormap_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_colormap_end (xcb_colormap_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_atom_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_atom_t) - */ -void -xcb_atom_next (xcb_atom_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_atom_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_atom_end (xcb_atom_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_drawable_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_drawable_t) - */ -void -xcb_drawable_next (xcb_drawable_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_drawable_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_drawable_end (xcb_drawable_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_fontable_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_fontable_t) - */ -void -xcb_fontable_next (xcb_fontable_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_fontable_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_fontable_end (xcb_fontable_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_visualid_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_visualid_t) - */ -void -xcb_visualid_next (xcb_visualid_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_visualid_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_visualid_end (xcb_visualid_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_timestamp_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_timestamp_t) - */ -void -xcb_timestamp_next (xcb_timestamp_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_timestamp_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_timestamp_end (xcb_timestamp_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_keysym_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_keysym_t) - */ -void -xcb_keysym_next (xcb_keysym_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_keysym_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_keysym_end (xcb_keysym_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_keycode_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_keycode_t) - */ -void -xcb_keycode_next (xcb_keycode_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_keycode_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_keycode_end (xcb_keycode_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_button_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_button_t) - */ -void -xcb_button_next (xcb_button_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_button_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_button_end (xcb_button_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_point_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_point_t) - */ -void -xcb_point_next (xcb_point_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_point_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_point_end (xcb_point_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_rectangle_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_rectangle_t) - */ -void -xcb_rectangle_next (xcb_rectangle_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_rectangle_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_rectangle_end (xcb_rectangle_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_arc_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_arc_t) - */ -void -xcb_arc_next (xcb_arc_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_arc_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_arc_end (xcb_arc_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_format_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_format_t) - */ -void -xcb_format_next (xcb_format_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_format_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_format_end (xcb_format_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_visualtype_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_visualtype_t) - */ -void -xcb_visualtype_next (xcb_visualtype_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_visualtype_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_visualtype_end (xcb_visualtype_iterator_t i /**< */); - -int -xcb_depth_sizeof (const void *_buffer /**< */); - -xcb_visualtype_t * -xcb_depth_visuals (const xcb_depth_t *R /**< */); - -int -xcb_depth_visuals_length (const xcb_depth_t *R /**< */); - -xcb_visualtype_iterator_t -xcb_depth_visuals_iterator (const xcb_depth_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_depth_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_depth_t) - */ -void -xcb_depth_next (xcb_depth_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_depth_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_depth_end (xcb_depth_iterator_t i /**< */); - -int -xcb_screen_sizeof (const void *_buffer /**< */); - -int -xcb_screen_allowed_depths_length (const xcb_screen_t *R /**< */); - -xcb_depth_iterator_t -xcb_screen_allowed_depths_iterator (const xcb_screen_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_screen_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_screen_t) - */ -void -xcb_screen_next (xcb_screen_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_screen_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_screen_end (xcb_screen_iterator_t i /**< */); - -int -xcb_setup_request_sizeof (const void *_buffer /**< */); - -char * -xcb_setup_request_authorization_protocol_name (const xcb_setup_request_t *R /**< */); - -int -xcb_setup_request_authorization_protocol_name_length (const xcb_setup_request_t *R /**< */); - -xcb_generic_iterator_t -xcb_setup_request_authorization_protocol_name_end (const xcb_setup_request_t *R /**< */); - -char * -xcb_setup_request_authorization_protocol_data (const xcb_setup_request_t *R /**< */); - -int -xcb_setup_request_authorization_protocol_data_length (const xcb_setup_request_t *R /**< */); - -xcb_generic_iterator_t -xcb_setup_request_authorization_protocol_data_end (const xcb_setup_request_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_setup_request_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_setup_request_t) - */ -void -xcb_setup_request_next (xcb_setup_request_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_setup_request_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_setup_request_end (xcb_setup_request_iterator_t i /**< */); - -int -xcb_setup_failed_sizeof (const void *_buffer /**< */); - -char * -xcb_setup_failed_reason (const xcb_setup_failed_t *R /**< */); - -int -xcb_setup_failed_reason_length (const xcb_setup_failed_t *R /**< */); - -xcb_generic_iterator_t -xcb_setup_failed_reason_end (const xcb_setup_failed_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_setup_failed_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_setup_failed_t) - */ -void -xcb_setup_failed_next (xcb_setup_failed_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_setup_failed_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_setup_failed_end (xcb_setup_failed_iterator_t i /**< */); - -int -xcb_setup_authenticate_sizeof (const void *_buffer /**< */); - -char * -xcb_setup_authenticate_reason (const xcb_setup_authenticate_t *R /**< */); - -int -xcb_setup_authenticate_reason_length (const xcb_setup_authenticate_t *R /**< */); - -xcb_generic_iterator_t -xcb_setup_authenticate_reason_end (const xcb_setup_authenticate_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_setup_authenticate_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_setup_authenticate_t) - */ -void -xcb_setup_authenticate_next (xcb_setup_authenticate_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_setup_authenticate_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_setup_authenticate_end (xcb_setup_authenticate_iterator_t i /**< */); - -int -xcb_setup_sizeof (const void *_buffer /**< */); - -char * -xcb_setup_vendor (const xcb_setup_t *R /**< */); - -int -xcb_setup_vendor_length (const xcb_setup_t *R /**< */); - -xcb_generic_iterator_t -xcb_setup_vendor_end (const xcb_setup_t *R /**< */); - -xcb_format_t * -xcb_setup_pixmap_formats (const xcb_setup_t *R /**< */); - -int -xcb_setup_pixmap_formats_length (const xcb_setup_t *R /**< */); - -xcb_format_iterator_t -xcb_setup_pixmap_formats_iterator (const xcb_setup_t *R /**< */); - -int -xcb_setup_roots_length (const xcb_setup_t *R /**< */); - -xcb_screen_iterator_t -xcb_setup_roots_iterator (const xcb_setup_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_setup_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_setup_t) - */ -void -xcb_setup_next (xcb_setup_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_setup_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_setup_end (xcb_setup_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_client_message_data_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_client_message_data_t) - */ -void -xcb_client_message_data_next (xcb_client_message_data_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_client_message_data_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_client_message_data_end (xcb_client_message_data_iterator_t i /**< */); - -int -xcb_create_window_sizeof (const void *_buffer /**< */); - -/** - * @brief Creates a window - * - * @param c The connection - * @param depth Specifies the new window's depth (TODO: what unit?). - * \n - * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the - * \a parent window. - * @param wid The ID with which you will refer to the new window, created by - * `xcb_generate_id`. - * @param parent The parent window of the new window. - * @param x The X coordinate of the new window. - * @param y The Y coordinate of the new window. - * @param width The width of the new window. - * @param height The height of the new window. - * @param border_width TODO: - * \n - * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs. - * @param _class A bitmask of #xcb_window_class_t values. - * @param _class \n - * @param visual Specifies the id for the new window's visual. - * \n - * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the - * \a parent window. - * @param value_mask A bitmask of #xcb_cw_t values. - * @return A cookie - * - * Creates an unmapped window as child of the specified \a parent window. A - * CreateNotify event will be generated. The new window is placed on top in the - * stacking order with respect to siblings. - * - * The coordinate system has the X axis horizontal and the Y axis vertical with - * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms - * of pixels, and coincide with pixel centers. Each window and pixmap has its own - * coordinate system. For a window, the origin is inside the border at the inside, - * upper-left corner. - * - * The created window is not yet displayed (mapped), call `xcb_map_window` to - * display it. - * - * The created window will initially use the same cursor as its parent. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_create_window_checked (xcb_connection_t *c /**< */, - uint8_t depth /**< */, - xcb_window_t wid /**< */, - xcb_window_t parent /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t border_width /**< */, - uint16_t _class /**< */, - xcb_visualid_t visual /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * @brief Creates a window - * - * @param c The connection - * @param depth Specifies the new window's depth (TODO: what unit?). - * \n - * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the - * \a parent window. - * @param wid The ID with which you will refer to the new window, created by - * `xcb_generate_id`. - * @param parent The parent window of the new window. - * @param x The X coordinate of the new window. - * @param y The Y coordinate of the new window. - * @param width The width of the new window. - * @param height The height of the new window. - * @param border_width TODO: - * \n - * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs. - * @param _class A bitmask of #xcb_window_class_t values. - * @param _class \n - * @param visual Specifies the id for the new window's visual. - * \n - * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the - * \a parent window. - * @param value_mask A bitmask of #xcb_cw_t values. - * @return A cookie - * - * Creates an unmapped window as child of the specified \a parent window. A - * CreateNotify event will be generated. The new window is placed on top in the - * stacking order with respect to siblings. - * - * The coordinate system has the X axis horizontal and the Y axis vertical with - * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms - * of pixels, and coincide with pixel centers. Each window and pixmap has its own - * coordinate system. For a window, the origin is inside the border at the inside, - * upper-left corner. - * - * The created window is not yet displayed (mapped), call `xcb_map_window` to - * display it. - * - * The created window will initially use the same cursor as its parent. - * - */ -xcb_void_cookie_t -xcb_create_window (xcb_connection_t *c /**< */, - uint8_t depth /**< */, - xcb_window_t wid /**< */, - xcb_window_t parent /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint16_t border_width /**< */, - uint16_t _class /**< */, - xcb_visualid_t visual /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -int -xcb_change_window_attributes_sizeof (const void *_buffer /**< */); - -/** - * @brief change window attributes - * - * @param c The connection - * @param window The window to change. - * @param value_mask A bitmask of #xcb_cw_t values. - * @param value_mask \n - * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The - * order has to correspond to the order of possible \a value_mask bits. See the - * example. - * @return A cookie - * - * Changes the attributes specified by \a value_mask for the specified \a window. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_change_window_attributes_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * @brief change window attributes - * - * @param c The connection - * @param window The window to change. - * @param value_mask A bitmask of #xcb_cw_t values. - * @param value_mask \n - * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The - * order has to correspond to the order of possible \a value_mask bits. See the - * example. - * @return A cookie - * - * Changes the attributes specified by \a value_mask for the specified \a window. - * - */ -xcb_void_cookie_t -xcb_change_window_attributes (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * @brief Gets window attributes - * - * @param c The connection - * @param window The window to get the attributes from. - * @return A cookie - * - * Gets the current attributes for the specified \a window. - * - */ -xcb_get_window_attributes_cookie_t -xcb_get_window_attributes (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * @brief Gets window attributes - * - * @param c The connection - * @param window The window to get the attributes from. - * @return A cookie - * - * Gets the current attributes for the specified \a window. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_window_attributes_cookie_t -xcb_get_window_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_window_attributes_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_window_attributes_reply_t * -xcb_get_window_attributes_reply (xcb_connection_t *c /**< */, - xcb_get_window_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * @brief Destroys a window - * - * @param c The connection - * @param window The window to destroy. - * @return A cookie - * - * Destroys the specified window and all of its subwindows. A DestroyNotify event - * is generated for each destroyed window (a DestroyNotify event is first generated - * for any given window's inferiors). If the window was mapped, it will be - * automatically unmapped before destroying. - * - * Calling DestroyWindow on the root window will do nothing. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_destroy_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * @brief Destroys a window - * - * @param c The connection - * @param window The window to destroy. - * @return A cookie - * - * Destroys the specified window and all of its subwindows. A DestroyNotify event - * is generated for each destroyed window (a DestroyNotify event is first generated - * for any given window's inferiors). If the window was mapped, it will be - * automatically unmapped before destroying. - * - * Calling DestroyWindow on the root window will do nothing. - * - */ -xcb_void_cookie_t -xcb_destroy_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_destroy_subwindows_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_destroy_subwindows (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * @brief Changes a client's save set - * - * @param c The connection - * @param mode A bitmask of #xcb_set_mode_t values. - * @param mode Insert to add the specified window to the save set or Delete to delete it from the save set. - * @param window The window to add or delete to/from your save set. - * @return A cookie - * - * TODO: explain what the save set is for. - * - * This function either adds or removes the specified window to the client's (your - * application's) save set. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_change_save_set_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_window_t window /**< */); - -/** - * @brief Changes a client's save set - * - * @param c The connection - * @param mode A bitmask of #xcb_set_mode_t values. - * @param mode Insert to add the specified window to the save set or Delete to delete it from the save set. - * @param window The window to add or delete to/from your save set. - * @return A cookie - * - * TODO: explain what the save set is for. - * - * This function either adds or removes the specified window to the client's (your - * application's) save set. - * - */ -xcb_void_cookie_t -xcb_change_save_set (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_window_t window /**< */); - -/** - * @brief Reparents a window - * - * @param c The connection - * @param window The window to reparent. - * @param parent The new parent of the window. - * @param x The X position of the window within its new parent. - * @param y The Y position of the window within its new parent. - * @return A cookie - * - * Makes the specified window a child of the specified parent window. If the - * window is mapped, it will automatically be unmapped before reparenting and - * re-mapped after reparenting. The window is placed in the stacking order on top - * with respect to sibling windows. - * - * After reparenting, a ReparentNotify event is generated. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_reparent_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_window_t parent /**< */, - int16_t x /**< */, - int16_t y /**< */); - -/** - * @brief Reparents a window - * - * @param c The connection - * @param window The window to reparent. - * @param parent The new parent of the window. - * @param x The X position of the window within its new parent. - * @param y The Y position of the window within its new parent. - * @return A cookie - * - * Makes the specified window a child of the specified parent window. If the - * window is mapped, it will automatically be unmapped before reparenting and - * re-mapped after reparenting. The window is placed in the stacking order on top - * with respect to sibling windows. - * - * After reparenting, a ReparentNotify event is generated. - * - */ -xcb_void_cookie_t -xcb_reparent_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_window_t parent /**< */, - int16_t x /**< */, - int16_t y /**< */); - -/** - * @brief Makes a window visible - * - * @param c The connection - * @param window The window to make visible. - * @return A cookie - * - * Maps the specified window. This means making the window visible (as long as its - * parent is visible). - * - * This MapWindow request will be translated to a MapRequest request if a window - * manager is running. The window manager then decides to either map the window or - * not. Set the override-redirect window attribute to true if you want to bypass - * this mechanism. - * - * If the window manager decides to map the window (or if no window manager is - * running), a MapNotify event is generated. - * - * If the window becomes viewable and no earlier contents for it are remembered, - * the X server tiles the window with its background. If the window's background - * is undefined, the existing screen contents are not altered, and the X server - * generates zero or more Expose events. - * - * If the window type is InputOutput, an Expose event will be generated when the - * window becomes visible. The normal response to an Expose event should be to - * repaint the window. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_map_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * @brief Makes a window visible - * - * @param c The connection - * @param window The window to make visible. - * @return A cookie - * - * Maps the specified window. This means making the window visible (as long as its - * parent is visible). - * - * This MapWindow request will be translated to a MapRequest request if a window - * manager is running. The window manager then decides to either map the window or - * not. Set the override-redirect window attribute to true if you want to bypass - * this mechanism. - * - * If the window manager decides to map the window (or if no window manager is - * running), a MapNotify event is generated. - * - * If the window becomes viewable and no earlier contents for it are remembered, - * the X server tiles the window with its background. If the window's background - * is undefined, the existing screen contents are not altered, and the X server - * generates zero or more Expose events. - * - * If the window type is InputOutput, an Expose event will be generated when the - * window becomes visible. The normal response to an Expose event should be to - * repaint the window. - * - */ -xcb_void_cookie_t -xcb_map_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_map_subwindows_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_map_subwindows (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * @brief Makes a window invisible - * - * @param c The connection - * @param window The window to make invisible. - * @return A cookie - * - * Unmaps the specified window. This means making the window invisible (and all - * its child windows). - * - * Unmapping a window leads to the `UnmapNotify` event being generated. Also, - * `Expose` events are generated for formerly obscured windows. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_unmap_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * @brief Makes a window invisible - * - * @param c The connection - * @param window The window to make invisible. - * @return A cookie - * - * Unmaps the specified window. This means making the window invisible (and all - * its child windows). - * - * Unmapping a window leads to the `UnmapNotify` event being generated. Also, - * `Expose` events are generated for formerly obscured windows. - * - */ -xcb_void_cookie_t -xcb_unmap_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_unmap_subwindows_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_unmap_subwindows (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -int -xcb_configure_window_sizeof (const void *_buffer /**< */); - -/** - * @brief Configures window attributes - * - * @param c The connection - * @param window The window to configure. - * @param value_mask Bitmask of attributes to change. - * @param value_list New values, corresponding to the attributes in value_mask. The order has to - * correspond to the order of possible \a value_mask bits. See the example. - * @return A cookie - * - * Configures a window's size, position, border width and stacking order. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_configure_window_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * @brief Configures window attributes - * - * @param c The connection - * @param window The window to configure. - * @param value_mask Bitmask of attributes to change. - * @param value_list New values, corresponding to the attributes in value_mask. The order has to - * correspond to the order of possible \a value_mask bits. See the example. - * @return A cookie - * - * Configures a window's size, position, border width and stacking order. - * - */ -xcb_void_cookie_t -xcb_configure_window (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * @brief Change window stacking order - * - * @param c The connection - * @param direction A bitmask of #xcb_circulate_t values. - * @param direction \n - * @param window The window to raise/lower (depending on \a direction). - * @return A cookie - * - * If \a direction is `XCB_CIRCULATE_RAISE_LOWEST`, the lowest mapped child (if - * any) will be raised to the top of the stack. - * - * If \a direction is `XCB_CIRCULATE_LOWER_HIGHEST`, the highest mapped child will - * be lowered to the bottom of the stack. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_circulate_window_checked (xcb_connection_t *c /**< */, - uint8_t direction /**< */, - xcb_window_t window /**< */); - -/** - * @brief Change window stacking order - * - * @param c The connection - * @param direction A bitmask of #xcb_circulate_t values. - * @param direction \n - * @param window The window to raise/lower (depending on \a direction). - * @return A cookie - * - * If \a direction is `XCB_CIRCULATE_RAISE_LOWEST`, the lowest mapped child (if - * any) will be raised to the top of the stack. - * - * If \a direction is `XCB_CIRCULATE_LOWER_HIGHEST`, the highest mapped child will - * be lowered to the bottom of the stack. - * - */ -xcb_void_cookie_t -xcb_circulate_window (xcb_connection_t *c /**< */, - uint8_t direction /**< */, - xcb_window_t window /**< */); - -/** - * @brief Get current window geometry - * - * @param c The connection - * @param drawable The drawable (`Window` or `Pixmap`) of which the geometry will be received. - * @return A cookie - * - * Gets the current geometry of the specified drawable (either `Window` or `Pixmap`). - * - */ -xcb_get_geometry_cookie_t -xcb_get_geometry (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * @brief Get current window geometry - * - * @param c The connection - * @param drawable The drawable (`Window` or `Pixmap`) of which the geometry will be received. - * @return A cookie - * - * Gets the current geometry of the specified drawable (either `Window` or `Pixmap`). - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_geometry_cookie_t -xcb_get_geometry_unchecked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_geometry_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_geometry_reply_t * -xcb_get_geometry_reply (xcb_connection_t *c /**< */, - xcb_get_geometry_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_query_tree_sizeof (const void *_buffer /**< */); - -/** - * @brief query the window tree - * - * @param c The connection - * @param window The \a window to query. - * @return A cookie - * - * Gets the root window ID, parent window ID and list of children windows for the - * specified \a window. The children are listed in bottom-to-top stacking order. - * - */ -xcb_query_tree_cookie_t -xcb_query_tree (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * @brief query the window tree - * - * @param c The connection - * @param window The \a window to query. - * @return A cookie - * - * Gets the root window ID, parent window ID and list of children windows for the - * specified \a window. The children are listed in bottom-to-top stacking order. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_query_tree_cookie_t -xcb_query_tree_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -xcb_window_t * -xcb_query_tree_children (const xcb_query_tree_reply_t *R /**< */); - -int -xcb_query_tree_children_length (const xcb_query_tree_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_query_tree_children_end (const xcb_query_tree_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_query_tree_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_query_tree_reply_t * -xcb_query_tree_reply (xcb_connection_t *c /**< */, - xcb_query_tree_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_intern_atom_sizeof (const void *_buffer /**< */); - -/** - * @brief Get atom identifier by name - * - * @param c The connection - * @param only_if_exists Return a valid atom id only if the atom already exists. - * @param name_len The length of the following \a name. - * @param name The name of the atom. - * @return A cookie - * - * Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified - * name. Atoms are used in protocols like EWMH, for example to store window titles - * (`_NET_WM_NAME` atom) as property of a window. - * - * If \a only_if_exists is 0, the atom will be created if it does not already exist. - * If \a only_if_exists is 1, `XCB_ATOM_NONE` will be returned if the atom does - * not yet exist. - * - */ -xcb_intern_atom_cookie_t -xcb_intern_atom (xcb_connection_t *c /**< */, - uint8_t only_if_exists /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * @brief Get atom identifier by name - * - * @param c The connection - * @param only_if_exists Return a valid atom id only if the atom already exists. - * @param name_len The length of the following \a name. - * @param name The name of the atom. - * @return A cookie - * - * Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified - * name. Atoms are used in protocols like EWMH, for example to store window titles - * (`_NET_WM_NAME` atom) as property of a window. - * - * If \a only_if_exists is 0, the atom will be created if it does not already exist. - * If \a only_if_exists is 1, `XCB_ATOM_NONE` will be returned if the atom does - * not yet exist. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_intern_atom_cookie_t -xcb_intern_atom_unchecked (xcb_connection_t *c /**< */, - uint8_t only_if_exists /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_intern_atom_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_intern_atom_reply_t * -xcb_intern_atom_reply (xcb_connection_t *c /**< */, - xcb_intern_atom_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_get_atom_name_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_get_atom_name_cookie_t -xcb_get_atom_name (xcb_connection_t *c /**< */, - xcb_atom_t atom /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_atom_name_cookie_t -xcb_get_atom_name_unchecked (xcb_connection_t *c /**< */, - xcb_atom_t atom /**< */); - -char * -xcb_get_atom_name_name (const xcb_get_atom_name_reply_t *R /**< */); - -int -xcb_get_atom_name_name_length (const xcb_get_atom_name_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_get_atom_name_name_end (const xcb_get_atom_name_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_atom_name_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_atom_name_reply_t * -xcb_get_atom_name_reply (xcb_connection_t *c /**< */, - xcb_get_atom_name_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_change_property_sizeof (const void *_buffer /**< */); - -/** - * @brief Changes a window property - * - * @param c The connection - * @param mode A bitmask of #xcb_prop_mode_t values. - * @param mode \n - * @param window The window whose property you want to change. - * @param property The property you want to change (an atom). - * @param type The type of the property you want to change (an atom). - * @param format Specifies whether the data should be viewed as a list of 8-bit, 16-bit or - * 32-bit quantities. Possible values are 8, 16 and 32. This information allows - * the X server to correctly perform byte-swap operations as necessary. - * @param data_len Specifies the number of elements (see \a format). - * @param data The property data. - * @return A cookie - * - * Sets or updates a property on the specified \a window. Properties are for - * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). - * Protocols such as EWMH also use properties - for example EWMH defines the - * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_change_property_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint32_t data_len /**< */, - const void *data /**< */); - -/** - * @brief Changes a window property - * - * @param c The connection - * @param mode A bitmask of #xcb_prop_mode_t values. - * @param mode \n - * @param window The window whose property you want to change. - * @param property The property you want to change (an atom). - * @param type The type of the property you want to change (an atom). - * @param format Specifies whether the data should be viewed as a list of 8-bit, 16-bit or - * 32-bit quantities. Possible values are 8, 16 and 32. This information allows - * the X server to correctly perform byte-swap operations as necessary. - * @param data_len Specifies the number of elements (see \a format). - * @param data The property data. - * @return A cookie - * - * Sets or updates a property on the specified \a window. Properties are for - * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). - * Protocols such as EWMH also use properties - for example EWMH defines the - * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property. - * - */ -xcb_void_cookie_t -xcb_change_property (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint8_t format /**< */, - uint32_t data_len /**< */, - const void *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_delete_property_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_delete_property (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */); - -int -xcb_get_property_sizeof (const void *_buffer /**< */); - -/** - * @brief Gets a window property - * - * @param c The connection - * @param _delete Whether the property should actually be deleted. For deleting a property, the - * specified \a type has to match the actual property type. - * @param window The window whose property you want to get. - * @param property The property you want to get (an atom). - * @param type The type of the property you want to get (an atom). - * @param long_offset Specifies the offset (in 32-bit multiples) in the specified property where the - * data is to be retrieved. - * @param long_length Specifies how many 32-bit multiples of data should be retrieved (e.g. if you - * set \a long_length to 4, you will receive 16 bytes of data). - * @return A cookie - * - * Gets the specified \a property from the specified \a window. Properties are for - * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). - * Protocols such as EWMH also use properties - for example EWMH defines the - * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property. - * - * TODO: talk about \a type - * - * TODO: talk about `delete` - * - * TODO: talk about the offset/length thing. what's a valid use case? - * - */ -xcb_get_property_cookie_t -xcb_get_property (xcb_connection_t *c /**< */, - uint8_t _delete /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */); - -/** - * @brief Gets a window property - * - * @param c The connection - * @param _delete Whether the property should actually be deleted. For deleting a property, the - * specified \a type has to match the actual property type. - * @param window The window whose property you want to get. - * @param property The property you want to get (an atom). - * @param type The type of the property you want to get (an atom). - * @param long_offset Specifies the offset (in 32-bit multiples) in the specified property where the - * data is to be retrieved. - * @param long_length Specifies how many 32-bit multiples of data should be retrieved (e.g. if you - * set \a long_length to 4, you will receive 16 bytes of data). - * @return A cookie - * - * Gets the specified \a property from the specified \a window. Properties are for - * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). - * Protocols such as EWMH also use properties - for example EWMH defines the - * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property. - * - * TODO: talk about \a type - * - * TODO: talk about `delete` - * - * TODO: talk about the offset/length thing. what's a valid use case? - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_property_cookie_t -xcb_get_property_unchecked (xcb_connection_t *c /**< */, - uint8_t _delete /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */, - xcb_atom_t type /**< */, - uint32_t long_offset /**< */, - uint32_t long_length /**< */); - -void * -xcb_get_property_value (const xcb_get_property_reply_t *R /**< */); - -int -xcb_get_property_value_length (const xcb_get_property_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_get_property_value_end (const xcb_get_property_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_property_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_property_reply_t * -xcb_get_property_reply (xcb_connection_t *c /**< */, - xcb_get_property_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_list_properties_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_list_properties_cookie_t -xcb_list_properties (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_list_properties_cookie_t -xcb_list_properties_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -xcb_atom_t * -xcb_list_properties_atoms (const xcb_list_properties_reply_t *R /**< */); - -int -xcb_list_properties_atoms_length (const xcb_list_properties_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_list_properties_atoms_end (const xcb_list_properties_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_list_properties_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_list_properties_reply_t * -xcb_list_properties_reply (xcb_connection_t *c /**< */, - xcb_list_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * @brief Sets the owner of a selection - * - * @param c The connection - * @param owner The new owner of the selection. - * \n - * The special value `XCB_NONE` means that the selection will have no owner. - * @param selection The selection. - * @param time Timestamp to avoid race conditions when running X over the network. - * \n - * The selection will not be changed if \a time is earlier than the current - * last-change time of the \a selection or is later than the current X server time. - * Otherwise, the last-change time is set to the specified time. - * \n - * The special value `XCB_CURRENT_TIME` will be replaced with the current server - * time. - * @return A cookie - * - * Makes `window` the owner of the selection \a selection and updates the - * last-change time of the specified selection. - * - * TODO: briefly explain what a selection is. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_set_selection_owner_checked (xcb_connection_t *c /**< */, - xcb_window_t owner /**< */, - xcb_atom_t selection /**< */, - xcb_timestamp_t time /**< */); - -/** - * @brief Sets the owner of a selection - * - * @param c The connection - * @param owner The new owner of the selection. - * \n - * The special value `XCB_NONE` means that the selection will have no owner. - * @param selection The selection. - * @param time Timestamp to avoid race conditions when running X over the network. - * \n - * The selection will not be changed if \a time is earlier than the current - * last-change time of the \a selection or is later than the current X server time. - * Otherwise, the last-change time is set to the specified time. - * \n - * The special value `XCB_CURRENT_TIME` will be replaced with the current server - * time. - * @return A cookie - * - * Makes `window` the owner of the selection \a selection and updates the - * last-change time of the specified selection. - * - * TODO: briefly explain what a selection is. - * - */ -xcb_void_cookie_t -xcb_set_selection_owner (xcb_connection_t *c /**< */, - xcb_window_t owner /**< */, - xcb_atom_t selection /**< */, - xcb_timestamp_t time /**< */); - -/** - * @brief Gets the owner of a selection - * - * @param c The connection - * @param selection The selection. - * @return A cookie - * - * Gets the owner of the specified selection. - * - * TODO: briefly explain what a selection is. - * - */ -xcb_get_selection_owner_cookie_t -xcb_get_selection_owner (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */); - -/** - * @brief Gets the owner of a selection - * - * @param c The connection - * @param selection The selection. - * @return A cookie - * - * Gets the owner of the specified selection. - * - * TODO: briefly explain what a selection is. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_selection_owner_cookie_t -xcb_get_selection_owner_unchecked (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_selection_owner_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_selection_owner_reply_t * -xcb_get_selection_owner_reply (xcb_connection_t *c /**< */, - xcb_get_selection_owner_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_convert_selection_checked (xcb_connection_t *c /**< */, - xcb_window_t requestor /**< */, - xcb_atom_t selection /**< */, - xcb_atom_t target /**< */, - xcb_atom_t property /**< */, - xcb_timestamp_t time /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_convert_selection (xcb_connection_t *c /**< */, - xcb_window_t requestor /**< */, - xcb_atom_t selection /**< */, - xcb_atom_t target /**< */, - xcb_atom_t property /**< */, - xcb_timestamp_t time /**< */); - -/** - * @brief send an event - * - * @param c The connection - * @param propagate If \a propagate is true and no clients have selected any event on \a destination, - * the destination is replaced with the closest ancestor of \a destination for - * which some client has selected a type in \a event_mask and for which no - * intervening window has that type in its do-not-propagate-mask. If no such - * window exists or if the window is an ancestor of the focus window and - * `InputFocus` was originally specified as the destination, the event is not sent - * to any clients. Otherwise, the event is reported to every client selecting on - * the final destination any of the types specified in \a event_mask. - * @param destination The window to send this event to. Every client which selects any event within - * \a event_mask on \a destination will get the event. - * \n - * The special value `XCB_SEND_EVENT_DEST_POINTER_WINDOW` refers to the window - * that contains the mouse pointer. - * \n - * The special value `XCB_SEND_EVENT_DEST_ITEM_FOCUS` refers to the window which - * has the keyboard focus. - * @param event_mask Event_mask for determining which clients should receive the specified event. - * See \a destination and \a propagate. - * @param event The event to send to the specified \a destination. - * @return A cookie - * - * Identifies the \a destination window, determines which clients should receive - * the specified event and ignores any active grabs. - * - * The \a event must be one of the core events or an event defined by an extension, - * so that the X server can correctly byte-swap the contents as necessary. The - * contents of \a event are otherwise unaltered and unchecked except for the - * `send_event` field which is forced to 'true'. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_send_event_checked (xcb_connection_t *c /**< */, - uint8_t propagate /**< */, - xcb_window_t destination /**< */, - uint32_t event_mask /**< */, - const char *event /**< */); - -/** - * @brief send an event - * - * @param c The connection - * @param propagate If \a propagate is true and no clients have selected any event on \a destination, - * the destination is replaced with the closest ancestor of \a destination for - * which some client has selected a type in \a event_mask and for which no - * intervening window has that type in its do-not-propagate-mask. If no such - * window exists or if the window is an ancestor of the focus window and - * `InputFocus` was originally specified as the destination, the event is not sent - * to any clients. Otherwise, the event is reported to every client selecting on - * the final destination any of the types specified in \a event_mask. - * @param destination The window to send this event to. Every client which selects any event within - * \a event_mask on \a destination will get the event. - * \n - * The special value `XCB_SEND_EVENT_DEST_POINTER_WINDOW` refers to the window - * that contains the mouse pointer. - * \n - * The special value `XCB_SEND_EVENT_DEST_ITEM_FOCUS` refers to the window which - * has the keyboard focus. - * @param event_mask Event_mask for determining which clients should receive the specified event. - * See \a destination and \a propagate. - * @param event The event to send to the specified \a destination. - * @return A cookie - * - * Identifies the \a destination window, determines which clients should receive - * the specified event and ignores any active grabs. - * - * The \a event must be one of the core events or an event defined by an extension, - * so that the X server can correctly byte-swap the contents as necessary. The - * contents of \a event are otherwise unaltered and unchecked except for the - * `send_event` field which is forced to 'true'. - * - */ -xcb_void_cookie_t -xcb_send_event (xcb_connection_t *c /**< */, - uint8_t propagate /**< */, - xcb_window_t destination /**< */, - uint32_t event_mask /**< */, - const char *event /**< */); - -/** - * @brief Grab the pointer - * - * @param c The connection - * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not - * reported to the \a grab_window. - * @param grab_window Specifies the window on which the pointer should be grabbed. - * @param event_mask Specifies which pointer events are reported to the client. - * \n - * TODO: which values? - * @param pointer_mode A bitmask of #xcb_grab_mode_t values. - * @param pointer_mode \n - * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. - * @param keyboard_mode \n - * @param confine_to Specifies the window to confine the pointer in (the user will not be able to - * move the pointer out of that window). - * \n - * The special value `XCB_NONE` means don't confine the pointer. - * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the - * cursor. - * @param time The time argument allows you to avoid certain circumstances that come up if - * applications take a long time to respond or if there are long network delays. - * Consider a situation where you have two applications, both of which normally - * grab the pointer when clicked on. If both applications specify the timestamp - * from the event, the second application may wake up faster and successfully grab - * the pointer before the first application. The first application then will get - * an indication that the other application grabbed the pointer before its request - * was processed. - * \n - * The special value `XCB_CURRENT_TIME` will be replaced with the current server - * time. - * @return A cookie - * - * Actively grabs control of the pointer. Further pointer events are reported only to the grabbing client. Overrides any active pointer grab by this client. - * - */ -xcb_grab_pointer_cookie_t -xcb_grab_pointer (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t event_mask /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */, - xcb_window_t confine_to /**< */, - xcb_cursor_t cursor /**< */, - xcb_timestamp_t time /**< */); - -/** - * @brief Grab the pointer - * - * @param c The connection - * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not - * reported to the \a grab_window. - * @param grab_window Specifies the window on which the pointer should be grabbed. - * @param event_mask Specifies which pointer events are reported to the client. - * \n - * TODO: which values? - * @param pointer_mode A bitmask of #xcb_grab_mode_t values. - * @param pointer_mode \n - * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. - * @param keyboard_mode \n - * @param confine_to Specifies the window to confine the pointer in (the user will not be able to - * move the pointer out of that window). - * \n - * The special value `XCB_NONE` means don't confine the pointer. - * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the - * cursor. - * @param time The time argument allows you to avoid certain circumstances that come up if - * applications take a long time to respond or if there are long network delays. - * Consider a situation where you have two applications, both of which normally - * grab the pointer when clicked on. If both applications specify the timestamp - * from the event, the second application may wake up faster and successfully grab - * the pointer before the first application. The first application then will get - * an indication that the other application grabbed the pointer before its request - * was processed. - * \n - * The special value `XCB_CURRENT_TIME` will be replaced with the current server - * time. - * @return A cookie - * - * Actively grabs control of the pointer. Further pointer events are reported only to the grabbing client. Overrides any active pointer grab by this client. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_grab_pointer_cookie_t -xcb_grab_pointer_unchecked (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t event_mask /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */, - xcb_window_t confine_to /**< */, - xcb_cursor_t cursor /**< */, - xcb_timestamp_t time /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_grab_pointer_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_grab_pointer_reply_t * -xcb_grab_pointer_reply (xcb_connection_t *c /**< */, - xcb_grab_pointer_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * @brief release the pointer - * - * @param c The connection - * @param time Timestamp to avoid race conditions when running X over the network. - * \n - * The pointer will not be released if \a time is earlier than the - * last-pointer-grab time or later than the current X server time. - * @return A cookie - * - * Releases the pointer and any queued events if you actively grabbed the pointer - * before using `xcb_grab_pointer`, `xcb_grab_button` or within a normal button - * press. - * - * EnterNotify and LeaveNotify events are generated. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_ungrab_pointer_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */); - -/** - * @brief release the pointer - * - * @param c The connection - * @param time Timestamp to avoid race conditions when running X over the network. - * \n - * The pointer will not be released if \a time is earlier than the - * last-pointer-grab time or later than the current X server time. - * @return A cookie - * - * Releases the pointer and any queued events if you actively grabbed the pointer - * before using `xcb_grab_pointer`, `xcb_grab_button` or within a normal button - * press. - * - * EnterNotify and LeaveNotify events are generated. - * - */ -xcb_void_cookie_t -xcb_ungrab_pointer (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */); - -/** - * @brief Grab pointer button(s) - * - * @param c The connection - * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not - * reported to the \a grab_window. - * @param grab_window Specifies the window on which the pointer should be grabbed. - * @param event_mask Specifies which pointer events are reported to the client. - * \n - * TODO: which values? - * @param pointer_mode A bitmask of #xcb_grab_mode_t values. - * @param pointer_mode \n - * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. - * @param keyboard_mode \n - * @param confine_to Specifies the window to confine the pointer in (the user will not be able to - * move the pointer out of that window). - * \n - * The special value `XCB_NONE` means don't confine the pointer. - * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the - * cursor. - * @param button A bitmask of #xcb_button_index_t values. - * @param button \n - * @param modifiers The modifiers to grab. - * \n - * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all - * possible modifier combinations. - * @return A cookie - * - * This request establishes a passive grab. The pointer is actively grabbed as - * described in GrabPointer, the last-pointer-grab time is set to the time at - * which the button was pressed (as transmitted in the ButtonPress event), and the - * ButtonPress event is reported if all of the following conditions are true: - * - * The pointer is not grabbed and the specified button is logically pressed when - * the specified modifier keys are logically down, and no other buttons or - * modifier keys are logically down. - * - * The grab-window contains the pointer. - * - * The confine-to window (if any) is viewable. - * - * A passive grab on the same button/key combination does not exist on any - * ancestor of grab-window. - * - * The interpretation of the remaining arguments is the same as for GrabPointer. - * The active grab is terminated automatically when the logical state of the - * pointer has all buttons released, independent of the logical state of modifier - * keys. Note that the logical state of a device (as seen by means of the - * protocol) may lag the physical state if device event processing is frozen. This - * request overrides all previous passive grabs by the same client on the same - * button/key combinations on the same window. A modifier of AnyModifier is - * equivalent to issuing the request for all possible modifier combinations - * (including the combination of no modifiers). It is not required that all - * specified modifiers have currently assigned keycodes. A button of AnyButton is - * equivalent to issuing the request for all possible buttons. Otherwise, it is - * not required that the button specified currently be assigned to a physical - * button. - * - * An Access error is generated if some other client has already issued a - * GrabButton request with the same button/key combination on the same window. - * When using AnyModifier or AnyButton, the request fails completely (no grabs are - * established), and an Access error is generated if there is a conflicting grab - * for any combination. The request has no effect on an active grab. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_grab_button_checked (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t event_mask /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */, - xcb_window_t confine_to /**< */, - xcb_cursor_t cursor /**< */, - uint8_t button /**< */, - uint16_t modifiers /**< */); - -/** - * @brief Grab pointer button(s) - * - * @param c The connection - * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not - * reported to the \a grab_window. - * @param grab_window Specifies the window on which the pointer should be grabbed. - * @param event_mask Specifies which pointer events are reported to the client. - * \n - * TODO: which values? - * @param pointer_mode A bitmask of #xcb_grab_mode_t values. - * @param pointer_mode \n - * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. - * @param keyboard_mode \n - * @param confine_to Specifies the window to confine the pointer in (the user will not be able to - * move the pointer out of that window). - * \n - * The special value `XCB_NONE` means don't confine the pointer. - * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the - * cursor. - * @param button A bitmask of #xcb_button_index_t values. - * @param button \n - * @param modifiers The modifiers to grab. - * \n - * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all - * possible modifier combinations. - * @return A cookie - * - * This request establishes a passive grab. The pointer is actively grabbed as - * described in GrabPointer, the last-pointer-grab time is set to the time at - * which the button was pressed (as transmitted in the ButtonPress event), and the - * ButtonPress event is reported if all of the following conditions are true: - * - * The pointer is not grabbed and the specified button is logically pressed when - * the specified modifier keys are logically down, and no other buttons or - * modifier keys are logically down. - * - * The grab-window contains the pointer. - * - * The confine-to window (if any) is viewable. - * - * A passive grab on the same button/key combination does not exist on any - * ancestor of grab-window. - * - * The interpretation of the remaining arguments is the same as for GrabPointer. - * The active grab is terminated automatically when the logical state of the - * pointer has all buttons released, independent of the logical state of modifier - * keys. Note that the logical state of a device (as seen by means of the - * protocol) may lag the physical state if device event processing is frozen. This - * request overrides all previous passive grabs by the same client on the same - * button/key combinations on the same window. A modifier of AnyModifier is - * equivalent to issuing the request for all possible modifier combinations - * (including the combination of no modifiers). It is not required that all - * specified modifiers have currently assigned keycodes. A button of AnyButton is - * equivalent to issuing the request for all possible buttons. Otherwise, it is - * not required that the button specified currently be assigned to a physical - * button. - * - * An Access error is generated if some other client has already issued a - * GrabButton request with the same button/key combination on the same window. - * When using AnyModifier or AnyButton, the request fails completely (no grabs are - * established), and an Access error is generated if there is a conflicting grab - * for any combination. The request has no effect on an active grab. - * - */ -xcb_void_cookie_t -xcb_grab_button (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t event_mask /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */, - xcb_window_t confine_to /**< */, - xcb_cursor_t cursor /**< */, - uint8_t button /**< */, - uint16_t modifiers /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_ungrab_button_checked (xcb_connection_t *c /**< */, - uint8_t button /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_ungrab_button (xcb_connection_t *c /**< */, - uint8_t button /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_change_active_pointer_grab_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - xcb_timestamp_t time /**< */, - uint16_t event_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_change_active_pointer_grab (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - xcb_timestamp_t time /**< */, - uint16_t event_mask /**< */); - -/** - * @brief Grab the keyboard - * - * @param c The connection - * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not - * reported to the \a grab_window. - * @param grab_window Specifies the window on which the pointer should be grabbed. - * @param time Timestamp to avoid race conditions when running X over the network. - * \n - * The special value `XCB_CURRENT_TIME` will be replaced with the current server - * time. - * @param pointer_mode A bitmask of #xcb_grab_mode_t values. - * @param pointer_mode \n - * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. - * @param keyboard_mode \n - * @return A cookie - * - * Actively grabs control of the keyboard and generates FocusIn and FocusOut - * events. Further key events are reported only to the grabbing client. - * - * Any active keyboard grab by this client is overridden. If the keyboard is - * actively grabbed by some other client, `AlreadyGrabbed` is returned. If - * \a grab_window is not viewable, `GrabNotViewable` is returned. If the keyboard - * is frozen by an active grab of another client, `GrabFrozen` is returned. If the - * specified \a time is earlier than the last-keyboard-grab time or later than the - * current X server time, `GrabInvalidTime` is returned. Otherwise, the - * last-keyboard-grab time is set to the specified time. - * - */ -xcb_grab_keyboard_cookie_t -xcb_grab_keyboard (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - xcb_timestamp_t time /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */); - -/** - * @brief Grab the keyboard - * - * @param c The connection - * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not - * reported to the \a grab_window. - * @param grab_window Specifies the window on which the pointer should be grabbed. - * @param time Timestamp to avoid race conditions when running X over the network. - * \n - * The special value `XCB_CURRENT_TIME` will be replaced with the current server - * time. - * @param pointer_mode A bitmask of #xcb_grab_mode_t values. - * @param pointer_mode \n - * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. - * @param keyboard_mode \n - * @return A cookie - * - * Actively grabs control of the keyboard and generates FocusIn and FocusOut - * events. Further key events are reported only to the grabbing client. - * - * Any active keyboard grab by this client is overridden. If the keyboard is - * actively grabbed by some other client, `AlreadyGrabbed` is returned. If - * \a grab_window is not viewable, `GrabNotViewable` is returned. If the keyboard - * is frozen by an active grab of another client, `GrabFrozen` is returned. If the - * specified \a time is earlier than the last-keyboard-grab time or later than the - * current X server time, `GrabInvalidTime` is returned. Otherwise, the - * last-keyboard-grab time is set to the specified time. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_grab_keyboard_cookie_t -xcb_grab_keyboard_unchecked (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - xcb_timestamp_t time /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_grab_keyboard_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_grab_keyboard_reply_t * -xcb_grab_keyboard_reply (xcb_connection_t *c /**< */, - xcb_grab_keyboard_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_ungrab_keyboard_checked (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_ungrab_keyboard (xcb_connection_t *c /**< */, - xcb_timestamp_t time /**< */); - -/** - * @brief Grab keyboard key(s) - * - * @param c The connection - * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not - * reported to the \a grab_window. - * @param grab_window Specifies the window on which the pointer should be grabbed. - * @param modifiers The modifiers to grab. - * \n - * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all - * possible modifier combinations. - * @param key The keycode of the key to grab. - * \n - * The special value `XCB_GRAB_ANY` means grab any key. - * @param pointer_mode A bitmask of #xcb_grab_mode_t values. - * @param pointer_mode \n - * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. - * @param keyboard_mode \n - * @return A cookie - * - * Establishes a passive grab on the keyboard. In the future, the keyboard is - * actively grabbed (as for `GrabKeyboard`), the last-keyboard-grab time is set to - * the time at which the key was pressed (as transmitted in the KeyPress event), - * and the KeyPress event is reported if all of the following conditions are true: - * - * The keyboard is not grabbed and the specified key (which can itself be a - * modifier key) is logically pressed when the specified modifier keys are - * logically down, and no other modifier keys are logically down. - * - * Either the grab_window is an ancestor of (or is) the focus window, or the - * grab_window is a descendant of the focus window and contains the pointer. - * - * A passive grab on the same key combination does not exist on any ancestor of - * grab_window. - * - * The interpretation of the remaining arguments is as for XGrabKeyboard. The active grab is terminated - * automatically when the logical state of the keyboard has the specified key released (independent of the - * logical state of the modifier keys), at which point a KeyRelease event is reported to the grabbing window. - * - * Note that the logical state of a device (as seen by client applications) may lag the physical state if - * device event processing is frozen. - * - * A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified - * have currently assigned KeyCodes. A keycode argument of AnyKey is equivalent to issuing the request for - * all possible KeyCodes. Otherwise, the specified keycode must be in the range specified by min_keycode - * and max_keycode in the connection setup, or a BadValue error results. - * - * If some other client has issued a XGrabKey with the same key combination on the same window, a BadAccess - * error results. When using AnyModifier or AnyKey, the request fails completely, and a BadAccess error - * results (no grabs are established) if there is a conflicting grab for any combination. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_grab_key_checked (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */, - xcb_keycode_t key /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */); - -/** - * @brief Grab keyboard key(s) - * - * @param c The connection - * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not - * reported to the \a grab_window. - * @param grab_window Specifies the window on which the pointer should be grabbed. - * @param modifiers The modifiers to grab. - * \n - * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all - * possible modifier combinations. - * @param key The keycode of the key to grab. - * \n - * The special value `XCB_GRAB_ANY` means grab any key. - * @param pointer_mode A bitmask of #xcb_grab_mode_t values. - * @param pointer_mode \n - * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. - * @param keyboard_mode \n - * @return A cookie - * - * Establishes a passive grab on the keyboard. In the future, the keyboard is - * actively grabbed (as for `GrabKeyboard`), the last-keyboard-grab time is set to - * the time at which the key was pressed (as transmitted in the KeyPress event), - * and the KeyPress event is reported if all of the following conditions are true: - * - * The keyboard is not grabbed and the specified key (which can itself be a - * modifier key) is logically pressed when the specified modifier keys are - * logically down, and no other modifier keys are logically down. - * - * Either the grab_window is an ancestor of (or is) the focus window, or the - * grab_window is a descendant of the focus window and contains the pointer. - * - * A passive grab on the same key combination does not exist on any ancestor of - * grab_window. - * - * The interpretation of the remaining arguments is as for XGrabKeyboard. The active grab is terminated - * automatically when the logical state of the keyboard has the specified key released (independent of the - * logical state of the modifier keys), at which point a KeyRelease event is reported to the grabbing window. - * - * Note that the logical state of a device (as seen by client applications) may lag the physical state if - * device event processing is frozen. - * - * A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified - * have currently assigned KeyCodes. A keycode argument of AnyKey is equivalent to issuing the request for - * all possible KeyCodes. Otherwise, the specified keycode must be in the range specified by min_keycode - * and max_keycode in the connection setup, or a BadValue error results. - * - * If some other client has issued a XGrabKey with the same key combination on the same window, a BadAccess - * error results. When using AnyModifier or AnyKey, the request fails completely, and a BadAccess error - * results (no grabs are established) if there is a conflicting grab for any combination. - * - */ -xcb_void_cookie_t -xcb_grab_key (xcb_connection_t *c /**< */, - uint8_t owner_events /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */, - xcb_keycode_t key /**< */, - uint8_t pointer_mode /**< */, - uint8_t keyboard_mode /**< */); - -/** - * @brief release a key combination - * - * @param c The connection - * @param key The keycode of the specified key combination. - * \n - * Using the special value `XCB_GRAB_ANY` means releasing all possible key codes. - * @param grab_window The window on which the grabbed key combination will be released. - * @param modifiers The modifiers of the specified key combination. - * \n - * Using the special value `XCB_MOD_MASK_ANY` means releasing the key combination - * with every possible modifier combination. - * @return A cookie - * - * Releases the key combination on \a grab_window if you grabbed it using - * `xcb_grab_key` before. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_ungrab_key_checked (xcb_connection_t *c /**< */, - xcb_keycode_t key /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */); - -/** - * @brief release a key combination - * - * @param c The connection - * @param key The keycode of the specified key combination. - * \n - * Using the special value `XCB_GRAB_ANY` means releasing all possible key codes. - * @param grab_window The window on which the grabbed key combination will be released. - * @param modifiers The modifiers of the specified key combination. - * \n - * Using the special value `XCB_MOD_MASK_ANY` means releasing the key combination - * with every possible modifier combination. - * @return A cookie - * - * Releases the key combination on \a grab_window if you grabbed it using - * `xcb_grab_key` before. - * - */ -xcb_void_cookie_t -xcb_ungrab_key (xcb_connection_t *c /**< */, - xcb_keycode_t key /**< */, - xcb_window_t grab_window /**< */, - uint16_t modifiers /**< */); - -/** - * @brief release queued events - * - * @param c The connection - * @param mode A bitmask of #xcb_allow_t values. - * @param mode \n - * @param time Timestamp to avoid race conditions when running X over the network. - * \n - * The special value `XCB_CURRENT_TIME` will be replaced with the current server - * time. - * @return A cookie - * - * Releases queued events if the client has caused a device (pointer/keyboard) to - * freeze due to grabbing it actively. This request has no effect if \a time is - * earlier than the last-grab time of the most recent active grab for this client - * or if \a time is later than the current X server time. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_allow_events_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_timestamp_t time /**< */); - -/** - * @brief release queued events - * - * @param c The connection - * @param mode A bitmask of #xcb_allow_t values. - * @param mode \n - * @param time Timestamp to avoid race conditions when running X over the network. - * \n - * The special value `XCB_CURRENT_TIME` will be replaced with the current server - * time. - * @return A cookie - * - * Releases queued events if the client has caused a device (pointer/keyboard) to - * freeze due to grabbing it actively. This request has no effect if \a time is - * earlier than the last-grab time of the most recent active grab for this client - * or if \a time is later than the current X server time. - * - */ -xcb_void_cookie_t -xcb_allow_events (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - xcb_timestamp_t time /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_grab_server_checked (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_grab_server (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_ungrab_server_checked (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_ungrab_server (xcb_connection_t *c /**< */); - -/** - * @brief get pointer coordinates - * - * @param c The connection - * @param window A window to check if the pointer is on the same screen as \a window (see the - * `same_screen` field in the reply). - * @return A cookie - * - * Gets the root window the pointer is logically on and the pointer coordinates - * relative to the root window's origin. - * - */ -xcb_query_pointer_cookie_t -xcb_query_pointer (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * @brief get pointer coordinates - * - * @param c The connection - * @param window A window to check if the pointer is on the same screen as \a window (see the - * `same_screen` field in the reply). - * @return A cookie - * - * Gets the root window the pointer is logically on and the pointer coordinates - * relative to the root window's origin. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_query_pointer_cookie_t -xcb_query_pointer_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_query_pointer_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_query_pointer_reply_t * -xcb_query_pointer_reply (xcb_connection_t *c /**< */, - xcb_query_pointer_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_timecoord_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_timecoord_t) - */ -void -xcb_timecoord_next (xcb_timecoord_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_timecoord_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_timecoord_end (xcb_timecoord_iterator_t i /**< */); - -int -xcb_get_motion_events_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_get_motion_events_cookie_t -xcb_get_motion_events (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t start /**< */, - xcb_timestamp_t stop /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_motion_events_cookie_t -xcb_get_motion_events_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_timestamp_t start /**< */, - xcb_timestamp_t stop /**< */); - -xcb_timecoord_t * -xcb_get_motion_events_events (const xcb_get_motion_events_reply_t *R /**< */); - -int -xcb_get_motion_events_events_length (const xcb_get_motion_events_reply_t *R /**< */); - -xcb_timecoord_iterator_t -xcb_get_motion_events_events_iterator (const xcb_get_motion_events_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_motion_events_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_motion_events_reply_t * -xcb_get_motion_events_reply (xcb_connection_t *c /**< */, - xcb_get_motion_events_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_translate_coordinates_cookie_t -xcb_translate_coordinates (xcb_connection_t *c /**< */, - xcb_window_t src_window /**< */, - xcb_window_t dst_window /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_translate_coordinates_cookie_t -xcb_translate_coordinates_unchecked (xcb_connection_t *c /**< */, - xcb_window_t src_window /**< */, - xcb_window_t dst_window /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_translate_coordinates_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_translate_coordinates_reply_t * -xcb_translate_coordinates_reply (xcb_connection_t *c /**< */, - xcb_translate_coordinates_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * @brief move mouse pointer - * - * @param c The connection - * @param src_window If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the - * pointer is inside \a src_window and within the rectangle specified by (\a src_x, - * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to - * \a src_window. - * @param dst_window If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the - * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is - * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y) - * relative to the current position of the pointer. - * @return A cookie - * - * Moves the mouse pointer to the specified position. - * - * If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the - * pointer is inside \a src_window and within the rectangle specified by (\a src_x, - * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to - * \a src_window. - * - * If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the - * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is - * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y) - * relative to the current position of the pointer. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_warp_pointer_checked (xcb_connection_t *c /**< */, - xcb_window_t src_window /**< */, - xcb_window_t dst_window /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */); - -/** - * @brief move mouse pointer - * - * @param c The connection - * @param src_window If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the - * pointer is inside \a src_window and within the rectangle specified by (\a src_x, - * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to - * \a src_window. - * @param dst_window If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the - * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is - * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y) - * relative to the current position of the pointer. - * @return A cookie - * - * Moves the mouse pointer to the specified position. - * - * If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the - * pointer is inside \a src_window and within the rectangle specified by (\a src_x, - * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to - * \a src_window. - * - * If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the - * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is - * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y) - * relative to the current position of the pointer. - * - */ -xcb_void_cookie_t -xcb_warp_pointer (xcb_connection_t *c /**< */, - xcb_window_t src_window /**< */, - xcb_window_t dst_window /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_width /**< */, - uint16_t src_height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */); - -/** - * @brief Sets input focus - * - * @param c The connection - * @param revert_to A bitmask of #xcb_input_focus_t values. - * @param revert_to Specifies what happens when the \a focus window becomes unviewable (if \a focus - * is neither `XCB_NONE` nor `XCB_POINTER_ROOT`). - * @param focus The window to focus. All keyboard events will be reported to this window. The - * window must be viewable (TODO), or a `xcb_match_error_t` occurs (TODO). - * \n - * If \a focus is `XCB_NONE` (TODO), all keyboard events are - * discarded until a new focus window is set. - * \n - * If \a focus is `XCB_POINTER_ROOT` (TODO), focus is on the root window of the - * screen on which the pointer is on currently. - * @param time Timestamp to avoid race conditions when running X over the network. - * \n - * The special value `XCB_CURRENT_TIME` will be replaced with the current server - * time. - * @return A cookie - * - * Changes the input focus and the last-focus-change time. If the specified \a time - * is earlier than the current last-focus-change time, the request is ignored (to - * avoid race conditions when running X over the network). - * - * A FocusIn and FocusOut event is generated when focus is changed. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_set_input_focus_checked (xcb_connection_t *c /**< */, - uint8_t revert_to /**< */, - xcb_window_t focus /**< */, - xcb_timestamp_t time /**< */); - -/** - * @brief Sets input focus - * - * @param c The connection - * @param revert_to A bitmask of #xcb_input_focus_t values. - * @param revert_to Specifies what happens when the \a focus window becomes unviewable (if \a focus - * is neither `XCB_NONE` nor `XCB_POINTER_ROOT`). - * @param focus The window to focus. All keyboard events will be reported to this window. The - * window must be viewable (TODO), or a `xcb_match_error_t` occurs (TODO). - * \n - * If \a focus is `XCB_NONE` (TODO), all keyboard events are - * discarded until a new focus window is set. - * \n - * If \a focus is `XCB_POINTER_ROOT` (TODO), focus is on the root window of the - * screen on which the pointer is on currently. - * @param time Timestamp to avoid race conditions when running X over the network. - * \n - * The special value `XCB_CURRENT_TIME` will be replaced with the current server - * time. - * @return A cookie - * - * Changes the input focus and the last-focus-change time. If the specified \a time - * is earlier than the current last-focus-change time, the request is ignored (to - * avoid race conditions when running X over the network). - * - * A FocusIn and FocusOut event is generated when focus is changed. - * - */ -xcb_void_cookie_t -xcb_set_input_focus (xcb_connection_t *c /**< */, - uint8_t revert_to /**< */, - xcb_window_t focus /**< */, - xcb_timestamp_t time /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_get_input_focus_cookie_t -xcb_get_input_focus (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_input_focus_cookie_t -xcb_get_input_focus_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_input_focus_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_input_focus_reply_t * -xcb_get_input_focus_reply (xcb_connection_t *c /**< */, - xcb_get_input_focus_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_query_keymap_cookie_t -xcb_query_keymap (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_query_keymap_cookie_t -xcb_query_keymap_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_query_keymap_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_query_keymap_reply_t * -xcb_query_keymap_reply (xcb_connection_t *c /**< */, - xcb_query_keymap_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_open_font_sizeof (const void *_buffer /**< */); - -/** - * @brief opens a font - * - * @param c The connection - * @param fid The ID with which you will refer to the font, created by `xcb_generate_id`. - * @param name_len Length (in bytes) of \a name. - * @param name A pattern describing an X core font. - * @return A cookie - * - * Opens any X core font matching the given \a name (for example "-misc-fixed-*"). - * - * Note that X core fonts are deprecated (but still supported) in favor of - * client-side rendering using Xft. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_open_font_checked (xcb_connection_t *c /**< */, - xcb_font_t fid /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * @brief opens a font - * - * @param c The connection - * @param fid The ID with which you will refer to the font, created by `xcb_generate_id`. - * @param name_len Length (in bytes) of \a name. - * @param name A pattern describing an X core font. - * @return A cookie - * - * Opens any X core font matching the given \a name (for example "-misc-fixed-*"). - * - * Note that X core fonts are deprecated (but still supported) in favor of - * client-side rendering using Xft. - * - */ -xcb_void_cookie_t -xcb_open_font (xcb_connection_t *c /**< */, - xcb_font_t fid /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_close_font_checked (xcb_connection_t *c /**< */, - xcb_font_t font /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_close_font (xcb_connection_t *c /**< */, - xcb_font_t font /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_fontprop_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_fontprop_t) - */ -void -xcb_fontprop_next (xcb_fontprop_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_fontprop_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_fontprop_end (xcb_fontprop_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_charinfo_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_charinfo_t) - */ -void -xcb_charinfo_next (xcb_charinfo_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_charinfo_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_charinfo_end (xcb_charinfo_iterator_t i /**< */); - -int -xcb_query_font_sizeof (const void *_buffer /**< */); - -/** - * @brief query font metrics - * - * @param c The connection - * @param font The fontable (Font or Graphics Context) to query. - * @return A cookie - * - * Queries information associated with the font. - * - */ -xcb_query_font_cookie_t -xcb_query_font (xcb_connection_t *c /**< */, - xcb_fontable_t font /**< */); - -/** - * @brief query font metrics - * - * @param c The connection - * @param font The fontable (Font or Graphics Context) to query. - * @return A cookie - * - * Queries information associated with the font. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_query_font_cookie_t -xcb_query_font_unchecked (xcb_connection_t *c /**< */, - xcb_fontable_t font /**< */); - -xcb_fontprop_t * -xcb_query_font_properties (const xcb_query_font_reply_t *R /**< */); - -int -xcb_query_font_properties_length (const xcb_query_font_reply_t *R /**< */); - -xcb_fontprop_iterator_t -xcb_query_font_properties_iterator (const xcb_query_font_reply_t *R /**< */); - -xcb_charinfo_t * -xcb_query_font_char_infos (const xcb_query_font_reply_t *R /**< */); - -int -xcb_query_font_char_infos_length (const xcb_query_font_reply_t *R /**< */); - -xcb_charinfo_iterator_t -xcb_query_font_char_infos_iterator (const xcb_query_font_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_query_font_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_query_font_reply_t * -xcb_query_font_reply (xcb_connection_t *c /**< */, - xcb_query_font_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_query_text_extents_sizeof (const void *_buffer /**< */, - uint32_t string_len /**< */); - -/** - * @brief get text extents - * - * @param c The connection - * @param font The \a font to calculate text extents in. You can also pass a graphics context. - * @param string_len The number of characters in \a string. - * @param string The text to get text extents for. - * @return A cookie - * - * Query text extents from the X11 server. This request returns the bounding box - * of the specified 16-bit character string in the specified \a font or the font - * contained in the specified graphics context. - * - * `font_ascent` is set to the maximum of the ascent metrics of all characters in - * the string. `font_descent` is set to the maximum of the descent metrics. - * `overall_width` is set to the sum of the character-width metrics of all - * characters in the string. For each character in the string, let W be the sum of - * the character-width metrics of all characters preceding it in the string. Let L - * be the left-side-bearing metric of the character plus W. Let R be the - * right-side-bearing metric of the character plus W. The lbearing member is set - * to the minimum L of all characters in the string. The rbearing member is set to - * the maximum R. - * - * For fonts defined with linear indexing rather than 2-byte matrix indexing, each - * `xcb_char2b_t` structure is interpreted as a 16-bit number with byte1 as the - * most significant byte. If the font has no defined default character, undefined - * characters in the string are taken to have all zero metrics. - * - * Characters with all zero metrics are ignored. If the font has no defined - * default_char, the undefined characters in the string are also ignored. - * - */ -xcb_query_text_extents_cookie_t -xcb_query_text_extents (xcb_connection_t *c /**< */, - xcb_fontable_t font /**< */, - uint32_t string_len /**< */, - const xcb_char2b_t *string /**< */); - -/** - * @brief get text extents - * - * @param c The connection - * @param font The \a font to calculate text extents in. You can also pass a graphics context. - * @param string_len The number of characters in \a string. - * @param string The text to get text extents for. - * @return A cookie - * - * Query text extents from the X11 server. This request returns the bounding box - * of the specified 16-bit character string in the specified \a font or the font - * contained in the specified graphics context. - * - * `font_ascent` is set to the maximum of the ascent metrics of all characters in - * the string. `font_descent` is set to the maximum of the descent metrics. - * `overall_width` is set to the sum of the character-width metrics of all - * characters in the string. For each character in the string, let W be the sum of - * the character-width metrics of all characters preceding it in the string. Let L - * be the left-side-bearing metric of the character plus W. Let R be the - * right-side-bearing metric of the character plus W. The lbearing member is set - * to the minimum L of all characters in the string. The rbearing member is set to - * the maximum R. - * - * For fonts defined with linear indexing rather than 2-byte matrix indexing, each - * `xcb_char2b_t` structure is interpreted as a 16-bit number with byte1 as the - * most significant byte. If the font has no defined default character, undefined - * characters in the string are taken to have all zero metrics. - * - * Characters with all zero metrics are ignored. If the font has no defined - * default_char, the undefined characters in the string are also ignored. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_query_text_extents_cookie_t -xcb_query_text_extents_unchecked (xcb_connection_t *c /**< */, - xcb_fontable_t font /**< */, - uint32_t string_len /**< */, - const xcb_char2b_t *string /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_query_text_extents_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_query_text_extents_reply_t * -xcb_query_text_extents_reply (xcb_connection_t *c /**< */, - xcb_query_text_extents_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_str_sizeof (const void *_buffer /**< */); - -char * -xcb_str_name (const xcb_str_t *R /**< */); - -int -xcb_str_name_length (const xcb_str_t *R /**< */); - -xcb_generic_iterator_t -xcb_str_name_end (const xcb_str_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_str_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_str_t) - */ -void -xcb_str_next (xcb_str_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_str_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_str_end (xcb_str_iterator_t i /**< */); - -int -xcb_list_fonts_sizeof (const void *_buffer /**< */); - -/** - * @brief get matching font names - * - * @param c The connection - * @param max_names The maximum number of fonts to be returned. - * @param pattern_len The length (in bytes) of \a pattern. - * @param pattern A font pattern, for example "-misc-fixed-*". - * \n - * The asterisk (*) is a wildcard for any number of characters. The question mark - * (?) is a wildcard for a single character. Use of uppercase or lowercase does - * not matter. - * @return A cookie - * - * Gets a list of available font names which match the given \a pattern. - * - */ -xcb_list_fonts_cookie_t -xcb_list_fonts (xcb_connection_t *c /**< */, - uint16_t max_names /**< */, - uint16_t pattern_len /**< */, - const char *pattern /**< */); - -/** - * @brief get matching font names - * - * @param c The connection - * @param max_names The maximum number of fonts to be returned. - * @param pattern_len The length (in bytes) of \a pattern. - * @param pattern A font pattern, for example "-misc-fixed-*". - * \n - * The asterisk (*) is a wildcard for any number of characters. The question mark - * (?) is a wildcard for a single character. Use of uppercase or lowercase does - * not matter. - * @return A cookie - * - * Gets a list of available font names which match the given \a pattern. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_list_fonts_cookie_t -xcb_list_fonts_unchecked (xcb_connection_t *c /**< */, - uint16_t max_names /**< */, - uint16_t pattern_len /**< */, - const char *pattern /**< */); - -int -xcb_list_fonts_names_length (const xcb_list_fonts_reply_t *R /**< */); - -xcb_str_iterator_t -xcb_list_fonts_names_iterator (const xcb_list_fonts_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_list_fonts_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_list_fonts_reply_t * -xcb_list_fonts_reply (xcb_connection_t *c /**< */, - xcb_list_fonts_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_list_fonts_with_info_sizeof (const void *_buffer /**< */); - -/** - * @brief get matching font names and information - * - * @param c The connection - * @param max_names The maximum number of fonts to be returned. - * @param pattern_len The length (in bytes) of \a pattern. - * @param pattern A font pattern, for example "-misc-fixed-*". - * \n - * The asterisk (*) is a wildcard for any number of characters. The question mark - * (?) is a wildcard for a single character. Use of uppercase or lowercase does - * not matter. - * @return A cookie - * - * Gets a list of available font names which match the given \a pattern. - * - */ -xcb_list_fonts_with_info_cookie_t -xcb_list_fonts_with_info (xcb_connection_t *c /**< */, - uint16_t max_names /**< */, - uint16_t pattern_len /**< */, - const char *pattern /**< */); - -/** - * @brief get matching font names and information - * - * @param c The connection - * @param max_names The maximum number of fonts to be returned. - * @param pattern_len The length (in bytes) of \a pattern. - * @param pattern A font pattern, for example "-misc-fixed-*". - * \n - * The asterisk (*) is a wildcard for any number of characters. The question mark - * (?) is a wildcard for a single character. Use of uppercase or lowercase does - * not matter. - * @return A cookie - * - * Gets a list of available font names which match the given \a pattern. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_list_fonts_with_info_cookie_t -xcb_list_fonts_with_info_unchecked (xcb_connection_t *c /**< */, - uint16_t max_names /**< */, - uint16_t pattern_len /**< */, - const char *pattern /**< */); - -xcb_fontprop_t * -xcb_list_fonts_with_info_properties (const xcb_list_fonts_with_info_reply_t *R /**< */); - -int -xcb_list_fonts_with_info_properties_length (const xcb_list_fonts_with_info_reply_t *R /**< */); - -xcb_fontprop_iterator_t -xcb_list_fonts_with_info_properties_iterator (const xcb_list_fonts_with_info_reply_t *R /**< */); - -char * -xcb_list_fonts_with_info_name (const xcb_list_fonts_with_info_reply_t *R /**< */); - -int -xcb_list_fonts_with_info_name_length (const xcb_list_fonts_with_info_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_list_fonts_with_info_name_end (const xcb_list_fonts_with_info_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_list_fonts_with_info_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_list_fonts_with_info_reply_t * -xcb_list_fonts_with_info_reply (xcb_connection_t *c /**< */, - xcb_list_fonts_with_info_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_set_font_path_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_set_font_path_checked (xcb_connection_t *c /**< */, - uint16_t font_qty /**< */, - const xcb_str_t *font /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_set_font_path (xcb_connection_t *c /**< */, - uint16_t font_qty /**< */, - const xcb_str_t *font /**< */); - -int -xcb_get_font_path_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_get_font_path_cookie_t -xcb_get_font_path (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_font_path_cookie_t -xcb_get_font_path_unchecked (xcb_connection_t *c /**< */); - -int -xcb_get_font_path_path_length (const xcb_get_font_path_reply_t *R /**< */); - -xcb_str_iterator_t -xcb_get_font_path_path_iterator (const xcb_get_font_path_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_font_path_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_font_path_reply_t * -xcb_get_font_path_reply (xcb_connection_t *c /**< */, - xcb_get_font_path_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * @brief Creates a pixmap - * - * @param c The connection - * @param depth TODO - * @param pid The ID with which you will refer to the new pixmap, created by - * `xcb_generate_id`. - * @param drawable Drawable to get the screen from. - * @param width The width of the new pixmap. - * @param height The height of the new pixmap. - * @return A cookie - * - * Creates a pixmap. The pixmap can only be used on the same screen as \a drawable - * is on and only with drawables of the same \a depth. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_create_pixmap_checked (xcb_connection_t *c /**< */, - uint8_t depth /**< */, - xcb_pixmap_t pid /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -/** - * @brief Creates a pixmap - * - * @param c The connection - * @param depth TODO - * @param pid The ID with which you will refer to the new pixmap, created by - * `xcb_generate_id`. - * @param drawable Drawable to get the screen from. - * @param width The width of the new pixmap. - * @param height The height of the new pixmap. - * @return A cookie - * - * Creates a pixmap. The pixmap can only be used on the same screen as \a drawable - * is on and only with drawables of the same \a depth. - * - */ -xcb_void_cookie_t -xcb_create_pixmap (xcb_connection_t *c /**< */, - uint8_t depth /**< */, - xcb_pixmap_t pid /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -/** - * @brief Destroys a pixmap - * - * @param c The connection - * @param pixmap The pixmap to destroy. - * @return A cookie - * - * Deletes the association between the pixmap ID and the pixmap. The pixmap - * storage will be freed when there are no more references to it. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_free_pixmap_checked (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */); - -/** - * @brief Destroys a pixmap - * - * @param c The connection - * @param pixmap The pixmap to destroy. - * @return A cookie - * - * Deletes the association between the pixmap ID and the pixmap. The pixmap - * storage will be freed when there are no more references to it. - * - */ -xcb_void_cookie_t -xcb_free_pixmap (xcb_connection_t *c /**< */, - xcb_pixmap_t pixmap /**< */); - -int -xcb_create_gc_sizeof (const void *_buffer /**< */); - -/** - * @brief Creates a graphics context - * - * @param c The connection - * @param cid The ID with which you will refer to the graphics context, created by - * `xcb_generate_id`. - * @param drawable Drawable to get the root/depth from. - * @return A cookie - * - * Creates a graphics context. The graphics context can be used with any drawable - * that has the same root and depth as the specified drawable. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_create_gc_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t cid /**< */, - xcb_drawable_t drawable /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * @brief Creates a graphics context - * - * @param c The connection - * @param cid The ID with which you will refer to the graphics context, created by - * `xcb_generate_id`. - * @param drawable Drawable to get the root/depth from. - * @return A cookie - * - * Creates a graphics context. The graphics context can be used with any drawable - * that has the same root and depth as the specified drawable. - * - */ -xcb_void_cookie_t -xcb_create_gc (xcb_connection_t *c /**< */, - xcb_gcontext_t cid /**< */, - xcb_drawable_t drawable /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -int -xcb_change_gc_sizeof (const void *_buffer /**< */); - -/** - * @brief change graphics context components - * - * @param c The connection - * @param gc The graphics context to change. - * @param value_mask A bitmask of #xcb_gc_t values. - * @param value_mask \n - * @param value_list Values for each of the components specified in the bitmask \a value_mask. The - * order has to correspond to the order of possible \a value_mask bits. See the - * example. - * @return A cookie - * - * Changes the components specified by \a value_mask for the specified graphics context. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_change_gc_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * @brief change graphics context components - * - * @param c The connection - * @param gc The graphics context to change. - * @param value_mask A bitmask of #xcb_gc_t values. - * @param value_mask \n - * @param value_list Values for each of the components specified in the bitmask \a value_mask. The - * order has to correspond to the order of possible \a value_mask bits. See the - * example. - * @return A cookie - * - * Changes the components specified by \a value_mask for the specified graphics context. - * - */ -xcb_void_cookie_t -xcb_change_gc (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_copy_gc_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t src_gc /**< */, - xcb_gcontext_t dst_gc /**< */, - uint32_t value_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_copy_gc (xcb_connection_t *c /**< */, - xcb_gcontext_t src_gc /**< */, - xcb_gcontext_t dst_gc /**< */, - uint32_t value_mask /**< */); - -int -xcb_set_dashes_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_set_dashes_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - uint16_t dash_offset /**< */, - uint16_t dashes_len /**< */, - const uint8_t *dashes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_set_dashes (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */, - uint16_t dash_offset /**< */, - uint16_t dashes_len /**< */, - const uint8_t *dashes /**< */); - -int -xcb_set_clip_rectangles_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_set_clip_rectangles_checked (xcb_connection_t *c /**< */, - uint8_t ordering /**< */, - xcb_gcontext_t gc /**< */, - int16_t clip_x_origin /**< */, - int16_t clip_y_origin /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_set_clip_rectangles (xcb_connection_t *c /**< */, - uint8_t ordering /**< */, - xcb_gcontext_t gc /**< */, - int16_t clip_x_origin /**< */, - int16_t clip_y_origin /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * @brief Destroys a graphics context - * - * @param c The connection - * @param gc The graphics context to destroy. - * @return A cookie - * - * Destroys the specified \a gc and all associated storage. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_free_gc_checked (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */); - -/** - * @brief Destroys a graphics context - * - * @param c The connection - * @param gc The graphics context to destroy. - * @return A cookie - * - * Destroys the specified \a gc and all associated storage. - * - */ -xcb_void_cookie_t -xcb_free_gc (xcb_connection_t *c /**< */, - xcb_gcontext_t gc /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_clear_area_checked (xcb_connection_t *c /**< */, - uint8_t exposures /**< */, - xcb_window_t window /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_clear_area (xcb_connection_t *c /**< */, - uint8_t exposures /**< */, - xcb_window_t window /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -/** - * @brief copy areas - * - * @param c The connection - * @param src_drawable The source drawable (Window or Pixmap). - * @param dst_drawable The destination drawable (Window or Pixmap). - * @param gc The graphics context to use. - * @param src_x The source X coordinate. - * @param src_y The source Y coordinate. - * @param dst_x The destination X coordinate. - * @param dst_y The destination Y coordinate. - * @param width The width of the area to copy (in pixels). - * @param height The height of the area to copy (in pixels). - * @return A cookie - * - * Copies the specified rectangle from \a src_drawable to \a dst_drawable. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_copy_area_checked (xcb_connection_t *c /**< */, - xcb_drawable_t src_drawable /**< */, - xcb_drawable_t dst_drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -/** - * @brief copy areas - * - * @param c The connection - * @param src_drawable The source drawable (Window or Pixmap). - * @param dst_drawable The destination drawable (Window or Pixmap). - * @param gc The graphics context to use. - * @param src_x The source X coordinate. - * @param src_y The source Y coordinate. - * @param dst_x The destination X coordinate. - * @param dst_y The destination Y coordinate. - * @param width The width of the area to copy (in pixels). - * @param height The height of the area to copy (in pixels). - * @return A cookie - * - * Copies the specified rectangle from \a src_drawable to \a dst_drawable. - * - */ -xcb_void_cookie_t -xcb_copy_area (xcb_connection_t *c /**< */, - xcb_drawable_t src_drawable /**< */, - xcb_drawable_t dst_drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_copy_plane_checked (xcb_connection_t *c /**< */, - xcb_drawable_t src_drawable /**< */, - xcb_drawable_t dst_drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t bit_plane /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_copy_plane (xcb_connection_t *c /**< */, - xcb_drawable_t src_drawable /**< */, - xcb_drawable_t dst_drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t bit_plane /**< */); - -int -xcb_poly_point_sizeof (const void *_buffer /**< */, - uint32_t points_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_poly_point_checked (xcb_connection_t *c /**< */, - uint8_t coordinate_mode /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_poly_point (xcb_connection_t *c /**< */, - uint8_t coordinate_mode /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */); - -int -xcb_poly_line_sizeof (const void *_buffer /**< */, - uint32_t points_len /**< */); - -/** - * @brief draw lines - * - * @param c The connection - * @param coordinate_mode A bitmask of #xcb_coord_mode_t values. - * @param coordinate_mode \n - * @param drawable The drawable to draw the line(s) on. - * @param gc The graphics context to use. - * @param points_len The number of `xcb_point_t` structures in \a points. - * @param points An array of points. - * @return A cookie - * - * Draws \a points_len-1 lines between each pair of points (point[i], point[i+1]) - * in the \a points array. The lines are drawn in the order listed in the array. - * They join correctly at all intermediate points, and if the first and last - * points coincide, the first and last lines also join correctly. For any given - * line, a pixel is not drawn more than once. If thin (zero line-width) lines - * intersect, the intersecting pixels are drawn multiple times. If wide lines - * intersect, the intersecting pixels are drawn only once, as though the entire - * request were a single, filled shape. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_poly_line_checked (xcb_connection_t *c /**< */, - uint8_t coordinate_mode /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */); - -/** - * @brief draw lines - * - * @param c The connection - * @param coordinate_mode A bitmask of #xcb_coord_mode_t values. - * @param coordinate_mode \n - * @param drawable The drawable to draw the line(s) on. - * @param gc The graphics context to use. - * @param points_len The number of `xcb_point_t` structures in \a points. - * @param points An array of points. - * @return A cookie - * - * Draws \a points_len-1 lines between each pair of points (point[i], point[i+1]) - * in the \a points array. The lines are drawn in the order listed in the array. - * They join correctly at all intermediate points, and if the first and last - * points coincide, the first and last lines also join correctly. For any given - * line, a pixel is not drawn more than once. If thin (zero line-width) lines - * intersect, the intersecting pixels are drawn multiple times. If wide lines - * intersect, the intersecting pixels are drawn only once, as though the entire - * request were a single, filled shape. - * - */ -xcb_void_cookie_t -xcb_poly_line (xcb_connection_t *c /**< */, - uint8_t coordinate_mode /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_segment_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_segment_t) - */ -void -xcb_segment_next (xcb_segment_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_segment_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_segment_end (xcb_segment_iterator_t i /**< */); - -int -xcb_poly_segment_sizeof (const void *_buffer /**< */, - uint32_t segments_len /**< */); - -/** - * @brief draw lines - * - * @param c The connection - * @param drawable A drawable (Window or Pixmap) to draw on. - * @param gc The graphics context to use. - * \n - * TODO: document which attributes of a gc are used - * @param segments_len The number of `xcb_segment_t` structures in \a segments. - * @param segments An array of `xcb_segment_t` structures. - * @return A cookie - * - * Draws multiple, unconnected lines. For each segment, a line is drawn between - * (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of - * `xcb_segment_t` structures and does not perform joining at coincident - * endpoints. For any given line, a pixel is not drawn more than once. If lines - * intersect, the intersecting pixels are drawn multiple times. - * - * TODO: include the xcb_segment_t data structure - * - * TODO: an example - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_poly_segment_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t segments_len /**< */, - const xcb_segment_t *segments /**< */); - -/** - * @brief draw lines - * - * @param c The connection - * @param drawable A drawable (Window or Pixmap) to draw on. - * @param gc The graphics context to use. - * \n - * TODO: document which attributes of a gc are used - * @param segments_len The number of `xcb_segment_t` structures in \a segments. - * @param segments An array of `xcb_segment_t` structures. - * @return A cookie - * - * Draws multiple, unconnected lines. For each segment, a line is drawn between - * (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of - * `xcb_segment_t` structures and does not perform joining at coincident - * endpoints. For any given line, a pixel is not drawn more than once. If lines - * intersect, the intersecting pixels are drawn multiple times. - * - * TODO: include the xcb_segment_t data structure - * - * TODO: an example - * - */ -xcb_void_cookie_t -xcb_poly_segment (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t segments_len /**< */, - const xcb_segment_t *segments /**< */); - -int -xcb_poly_rectangle_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_poly_rectangle_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_poly_rectangle (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -int -xcb_poly_arc_sizeof (const void *_buffer /**< */, - uint32_t arcs_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_poly_arc_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t arcs_len /**< */, - const xcb_arc_t *arcs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_poly_arc (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t arcs_len /**< */, - const xcb_arc_t *arcs /**< */); - -int -xcb_fill_poly_sizeof (const void *_buffer /**< */, - uint32_t points_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_fill_poly_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint8_t shape /**< */, - uint8_t coordinate_mode /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_fill_poly (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint8_t shape /**< */, - uint8_t coordinate_mode /**< */, - uint32_t points_len /**< */, - const xcb_point_t *points /**< */); - -int -xcb_poly_fill_rectangle_sizeof (const void *_buffer /**< */, - uint32_t rectangles_len /**< */); - -/** - * @brief Fills rectangles - * - * @param c The connection - * @param drawable The drawable (Window or Pixmap) to draw on. - * @param gc The graphics context to use. - * \n - * The following graphics context components are used: function, plane-mask, - * fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. - * \n - * The following graphics context mode-dependent components are used: - * foreground, background, tile, stipple, tile-stipple-x-origin, and - * tile-stipple-y-origin. - * @param rectangles_len The number of `xcb_rectangle_t` structures in \a rectangles. - * @param rectangles The rectangles to fill. - * @return A cookie - * - * Fills the specified rectangle(s) in the order listed in the array. For any - * given rectangle, each pixel is not drawn more than once. If rectangles - * intersect, the intersecting pixels are drawn multiple times. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_poly_fill_rectangle_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -/** - * @brief Fills rectangles - * - * @param c The connection - * @param drawable The drawable (Window or Pixmap) to draw on. - * @param gc The graphics context to use. - * \n - * The following graphics context components are used: function, plane-mask, - * fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. - * \n - * The following graphics context mode-dependent components are used: - * foreground, background, tile, stipple, tile-stipple-x-origin, and - * tile-stipple-y-origin. - * @param rectangles_len The number of `xcb_rectangle_t` structures in \a rectangles. - * @param rectangles The rectangles to fill. - * @return A cookie - * - * Fills the specified rectangle(s) in the order listed in the array. For any - * given rectangle, each pixel is not drawn more than once. If rectangles - * intersect, the intersecting pixels are drawn multiple times. - * - */ -xcb_void_cookie_t -xcb_poly_fill_rectangle (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t rectangles_len /**< */, - const xcb_rectangle_t *rectangles /**< */); - -int -xcb_poly_fill_arc_sizeof (const void *_buffer /**< */, - uint32_t arcs_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_poly_fill_arc_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t arcs_len /**< */, - const xcb_arc_t *arcs /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_poly_fill_arc (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t arcs_len /**< */, - const xcb_arc_t *arcs /**< */); - -int -xcb_put_image_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_put_image_checked (xcb_connection_t *c /**< */, - uint8_t format /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint8_t left_pad /**< */, - uint8_t depth /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_put_image (xcb_connection_t *c /**< */, - uint8_t format /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - int16_t dst_x /**< */, - int16_t dst_y /**< */, - uint8_t left_pad /**< */, - uint8_t depth /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -int -xcb_get_image_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_get_image_cookie_t -xcb_get_image (xcb_connection_t *c /**< */, - uint8_t format /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t plane_mask /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_image_cookie_t -xcb_get_image_unchecked (xcb_connection_t *c /**< */, - uint8_t format /**< */, - xcb_drawable_t drawable /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t plane_mask /**< */); - -uint8_t * -xcb_get_image_data (const xcb_get_image_reply_t *R /**< */); - -int -xcb_get_image_data_length (const xcb_get_image_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_get_image_data_end (const xcb_get_image_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_image_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_image_reply_t * -xcb_get_image_reply (xcb_connection_t *c /**< */, - xcb_get_image_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_poly_text_8_sizeof (const void *_buffer /**< */, - uint32_t items_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_poly_text_8_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint32_t items_len /**< */, - const uint8_t *items /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_poly_text_8 (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint32_t items_len /**< */, - const uint8_t *items /**< */); - -int -xcb_poly_text_16_sizeof (const void *_buffer /**< */, - uint32_t items_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_poly_text_16_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint32_t items_len /**< */, - const uint8_t *items /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_poly_text_16 (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - uint32_t items_len /**< */, - const uint8_t *items /**< */); - -int -xcb_image_text_8_sizeof (const void *_buffer /**< */); - -/** - * @brief Draws text - * - * @param c The connection - * @param string_len The length of the \a string. Note that this parameter limited by 255 due to - * using 8 bits! - * @param drawable The drawable (Window or Pixmap) to draw text on. - * @param gc The graphics context to use. - * \n - * The following graphics context components are used: plane-mask, foreground, - * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. - * @param x The x coordinate of the first character, relative to the origin of \a drawable. - * @param y The y coordinate of the first character, relative to the origin of \a drawable. - * @param string The string to draw. Only the first 255 characters are relevant due to the data - * type of \a string_len. - * @return A cookie - * - * Fills the destination rectangle with the background pixel from \a gc, then - * paints the text with the foreground pixel from \a gc. The upper-left corner of - * the filled rectangle is at [x, y - font-ascent]. The width is overall-width, - * the height is font-ascent + font-descent. The overall-width, font-ascent and - * font-descent are as returned by `xcb_query_text_extents` (TODO). - * - * Note that using X core fonts is deprecated (but still supported) in favor of - * client-side rendering using Xft. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_image_text_8_checked (xcb_connection_t *c /**< */, - uint8_t string_len /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - const char *string /**< */); - -/** - * @brief Draws text - * - * @param c The connection - * @param string_len The length of the \a string. Note that this parameter limited by 255 due to - * using 8 bits! - * @param drawable The drawable (Window or Pixmap) to draw text on. - * @param gc The graphics context to use. - * \n - * The following graphics context components are used: plane-mask, foreground, - * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. - * @param x The x coordinate of the first character, relative to the origin of \a drawable. - * @param y The y coordinate of the first character, relative to the origin of \a drawable. - * @param string The string to draw. Only the first 255 characters are relevant due to the data - * type of \a string_len. - * @return A cookie - * - * Fills the destination rectangle with the background pixel from \a gc, then - * paints the text with the foreground pixel from \a gc. The upper-left corner of - * the filled rectangle is at [x, y - font-ascent]. The width is overall-width, - * the height is font-ascent + font-descent. The overall-width, font-ascent and - * font-descent are as returned by `xcb_query_text_extents` (TODO). - * - * Note that using X core fonts is deprecated (but still supported) in favor of - * client-side rendering using Xft. - * - */ -xcb_void_cookie_t -xcb_image_text_8 (xcb_connection_t *c /**< */, - uint8_t string_len /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - const char *string /**< */); - -int -xcb_image_text_16_sizeof (const void *_buffer /**< */); - -/** - * @brief Draws text - * - * @param c The connection - * @param string_len The length of the \a string in characters. Note that this parameter limited by - * 255 due to using 8 bits! - * @param drawable The drawable (Window or Pixmap) to draw text on. - * @param gc The graphics context to use. - * \n - * The following graphics context components are used: plane-mask, foreground, - * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. - * @param x The x coordinate of the first character, relative to the origin of \a drawable. - * @param y The y coordinate of the first character, relative to the origin of \a drawable. - * @param string The string to draw. Only the first 255 characters are relevant due to the data - * type of \a string_len. Every character uses 2 bytes (hence the 16 in this - * request's name). - * @return A cookie - * - * Fills the destination rectangle with the background pixel from \a gc, then - * paints the text with the foreground pixel from \a gc. The upper-left corner of - * the filled rectangle is at [x, y - font-ascent]. The width is overall-width, - * the height is font-ascent + font-descent. The overall-width, font-ascent and - * font-descent are as returned by `xcb_query_text_extents` (TODO). - * - * Note that using X core fonts is deprecated (but still supported) in favor of - * client-side rendering using Xft. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_image_text_16_checked (xcb_connection_t *c /**< */, - uint8_t string_len /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - const xcb_char2b_t *string /**< */); - -/** - * @brief Draws text - * - * @param c The connection - * @param string_len The length of the \a string in characters. Note that this parameter limited by - * 255 due to using 8 bits! - * @param drawable The drawable (Window or Pixmap) to draw text on. - * @param gc The graphics context to use. - * \n - * The following graphics context components are used: plane-mask, foreground, - * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. - * @param x The x coordinate of the first character, relative to the origin of \a drawable. - * @param y The y coordinate of the first character, relative to the origin of \a drawable. - * @param string The string to draw. Only the first 255 characters are relevant due to the data - * type of \a string_len. Every character uses 2 bytes (hence the 16 in this - * request's name). - * @return A cookie - * - * Fills the destination rectangle with the background pixel from \a gc, then - * paints the text with the foreground pixel from \a gc. The upper-left corner of - * the filled rectangle is at [x, y - font-ascent]. The width is overall-width, - * the height is font-ascent + font-descent. The overall-width, font-ascent and - * font-descent are as returned by `xcb_query_text_extents` (TODO). - * - * Note that using X core fonts is deprecated (but still supported) in favor of - * client-side rendering using Xft. - * - */ -xcb_void_cookie_t -xcb_image_text_16 (xcb_connection_t *c /**< */, - uint8_t string_len /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t x /**< */, - int16_t y /**< */, - const xcb_char2b_t *string /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_create_colormap_checked (xcb_connection_t *c /**< */, - uint8_t alloc /**< */, - xcb_colormap_t mid /**< */, - xcb_window_t window /**< */, - xcb_visualid_t visual /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_create_colormap (xcb_connection_t *c /**< */, - uint8_t alloc /**< */, - xcb_colormap_t mid /**< */, - xcb_window_t window /**< */, - xcb_visualid_t visual /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_free_colormap_checked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_free_colormap (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_copy_colormap_and_free_checked (xcb_connection_t *c /**< */, - xcb_colormap_t mid /**< */, - xcb_colormap_t src_cmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_copy_colormap_and_free (xcb_connection_t *c /**< */, - xcb_colormap_t mid /**< */, - xcb_colormap_t src_cmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_install_colormap_checked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_install_colormap (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_uninstall_colormap_checked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_uninstall_colormap (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */); - -int -xcb_list_installed_colormaps_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_list_installed_colormaps_cookie_t -xcb_list_installed_colormaps (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_list_installed_colormaps_cookie_t -xcb_list_installed_colormaps_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -xcb_colormap_t * -xcb_list_installed_colormaps_cmaps (const xcb_list_installed_colormaps_reply_t *R /**< */); - -int -xcb_list_installed_colormaps_cmaps_length (const xcb_list_installed_colormaps_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_list_installed_colormaps_cmaps_end (const xcb_list_installed_colormaps_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_list_installed_colormaps_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_list_installed_colormaps_reply_t * -xcb_list_installed_colormaps_reply (xcb_connection_t *c /**< */, - xcb_list_installed_colormaps_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * @brief Allocate a color - * - * @param c The connection - * @param cmap TODO - * @param red The red value of your color. - * @param green The green value of your color. - * @param blue The blue value of your color. - * @return A cookie - * - * Allocates a read-only colormap entry corresponding to the closest RGB value - * supported by the hardware. If you are using TrueColor, you can take a shortcut - * and directly calculate the color pixel value to avoid the round trip. But, for - * example, on 16-bit color setups (VNC), you can easily get the closest supported - * RGB value to the RGB value you are specifying. - * - */ -xcb_alloc_color_cookie_t -xcb_alloc_color (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t red /**< */, - uint16_t green /**< */, - uint16_t blue /**< */); - -/** - * @brief Allocate a color - * - * @param c The connection - * @param cmap TODO - * @param red The red value of your color. - * @param green The green value of your color. - * @param blue The blue value of your color. - * @return A cookie - * - * Allocates a read-only colormap entry corresponding to the closest RGB value - * supported by the hardware. If you are using TrueColor, you can take a shortcut - * and directly calculate the color pixel value to avoid the round trip. But, for - * example, on 16-bit color setups (VNC), you can easily get the closest supported - * RGB value to the RGB value you are specifying. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_alloc_color_cookie_t -xcb_alloc_color_unchecked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t red /**< */, - uint16_t green /**< */, - uint16_t blue /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_alloc_color_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_alloc_color_reply_t * -xcb_alloc_color_reply (xcb_connection_t *c /**< */, - xcb_alloc_color_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_alloc_named_color_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_alloc_named_color_cookie_t -xcb_alloc_named_color (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_alloc_named_color_cookie_t -xcb_alloc_named_color_unchecked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_alloc_named_color_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_alloc_named_color_reply_t * -xcb_alloc_named_color_reply (xcb_connection_t *c /**< */, - xcb_alloc_named_color_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_alloc_color_cells_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_alloc_color_cells_cookie_t -xcb_alloc_color_cells (xcb_connection_t *c /**< */, - uint8_t contiguous /**< */, - xcb_colormap_t cmap /**< */, - uint16_t colors /**< */, - uint16_t planes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_alloc_color_cells_cookie_t -xcb_alloc_color_cells_unchecked (xcb_connection_t *c /**< */, - uint8_t contiguous /**< */, - xcb_colormap_t cmap /**< */, - uint16_t colors /**< */, - uint16_t planes /**< */); - -uint32_t * -xcb_alloc_color_cells_pixels (const xcb_alloc_color_cells_reply_t *R /**< */); - -int -xcb_alloc_color_cells_pixels_length (const xcb_alloc_color_cells_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_alloc_color_cells_pixels_end (const xcb_alloc_color_cells_reply_t *R /**< */); - -uint32_t * -xcb_alloc_color_cells_masks (const xcb_alloc_color_cells_reply_t *R /**< */); - -int -xcb_alloc_color_cells_masks_length (const xcb_alloc_color_cells_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_alloc_color_cells_masks_end (const xcb_alloc_color_cells_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_alloc_color_cells_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_alloc_color_cells_reply_t * -xcb_alloc_color_cells_reply (xcb_connection_t *c /**< */, - xcb_alloc_color_cells_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_alloc_color_planes_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_alloc_color_planes_cookie_t -xcb_alloc_color_planes (xcb_connection_t *c /**< */, - uint8_t contiguous /**< */, - xcb_colormap_t cmap /**< */, - uint16_t colors /**< */, - uint16_t reds /**< */, - uint16_t greens /**< */, - uint16_t blues /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_alloc_color_planes_cookie_t -xcb_alloc_color_planes_unchecked (xcb_connection_t *c /**< */, - uint8_t contiguous /**< */, - xcb_colormap_t cmap /**< */, - uint16_t colors /**< */, - uint16_t reds /**< */, - uint16_t greens /**< */, - uint16_t blues /**< */); - -uint32_t * -xcb_alloc_color_planes_pixels (const xcb_alloc_color_planes_reply_t *R /**< */); - -int -xcb_alloc_color_planes_pixels_length (const xcb_alloc_color_planes_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_alloc_color_planes_pixels_end (const xcb_alloc_color_planes_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_alloc_color_planes_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_alloc_color_planes_reply_t * -xcb_alloc_color_planes_reply (xcb_connection_t *c /**< */, - xcb_alloc_color_planes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_free_colors_sizeof (const void *_buffer /**< */, - uint32_t pixels_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_free_colors_checked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t plane_mask /**< */, - uint32_t pixels_len /**< */, - const uint32_t *pixels /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_free_colors (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t plane_mask /**< */, - uint32_t pixels_len /**< */, - const uint32_t *pixels /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_coloritem_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_coloritem_t) - */ -void -xcb_coloritem_next (xcb_coloritem_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_coloritem_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_coloritem_end (xcb_coloritem_iterator_t i /**< */); - -int -xcb_store_colors_sizeof (const void *_buffer /**< */, - uint32_t items_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_store_colors_checked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t items_len /**< */, - const xcb_coloritem_t *items /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_store_colors (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t items_len /**< */, - const xcb_coloritem_t *items /**< */); - -int -xcb_store_named_color_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_store_named_color_checked (xcb_connection_t *c /**< */, - uint8_t flags /**< */, - xcb_colormap_t cmap /**< */, - uint32_t pixel /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_store_named_color (xcb_connection_t *c /**< */, - uint8_t flags /**< */, - xcb_colormap_t cmap /**< */, - uint32_t pixel /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_rgb_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_rgb_t) - */ -void -xcb_rgb_next (xcb_rgb_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_rgb_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_rgb_end (xcb_rgb_iterator_t i /**< */); - -int -xcb_query_colors_sizeof (const void *_buffer /**< */, - uint32_t pixels_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_query_colors_cookie_t -xcb_query_colors (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t pixels_len /**< */, - const uint32_t *pixels /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_query_colors_cookie_t -xcb_query_colors_unchecked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint32_t pixels_len /**< */, - const uint32_t *pixels /**< */); - -xcb_rgb_t * -xcb_query_colors_colors (const xcb_query_colors_reply_t *R /**< */); - -int -xcb_query_colors_colors_length (const xcb_query_colors_reply_t *R /**< */); - -xcb_rgb_iterator_t -xcb_query_colors_colors_iterator (const xcb_query_colors_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_query_colors_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_query_colors_reply_t * -xcb_query_colors_reply (xcb_connection_t *c /**< */, - xcb_query_colors_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_lookup_color_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_lookup_color_cookie_t -xcb_lookup_color (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_lookup_color_cookie_t -xcb_lookup_color_unchecked (xcb_connection_t *c /**< */, - xcb_colormap_t cmap /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_lookup_color_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_lookup_color_reply_t * -xcb_lookup_color_reply (xcb_connection_t *c /**< */, - xcb_lookup_color_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_create_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_pixmap_t source /**< */, - xcb_pixmap_t mask /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */, - uint16_t x /**< */, - uint16_t y /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_create_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_pixmap_t source /**< */, - xcb_pixmap_t mask /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */, - uint16_t x /**< */, - uint16_t y /**< */); - -/** - * @brief create cursor - * - * @param c The connection - * @param cid The ID with which you will refer to the cursor, created by `xcb_generate_id`. - * @param source_font In which font to look for the cursor glyph. - * @param mask_font In which font to look for the mask glyph. - * @param source_char The glyph of \a source_font to use. - * @param mask_char The glyph of \a mask_font to use as a mask: Pixels which are set to 1 define - * which source pixels are displayed. All pixels which are set to 0 are not - * displayed. - * @param fore_red The red value of the foreground color. - * @param fore_green The green value of the foreground color. - * @param fore_blue The blue value of the foreground color. - * @param back_red The red value of the background color. - * @param back_green The green value of the background color. - * @param back_blue The blue value of the background color. - * @return A cookie - * - * Creates a cursor from a font glyph. X provides a set of standard cursor shapes - * in a special font named cursor. Applications are encouraged to use this - * interface for their cursors because the font can be customized for the - * individual display type. - * - * All pixels which are set to 1 in the source will use the foreground color (as - * specified by \a fore_red, \a fore_green and \a fore_blue). All pixels set to 0 - * will use the background color (as specified by \a back_red, \a back_green and - * \a back_blue). - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_create_glyph_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_font_t source_font /**< */, - xcb_font_t mask_font /**< */, - uint16_t source_char /**< */, - uint16_t mask_char /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */); - -/** - * @brief create cursor - * - * @param c The connection - * @param cid The ID with which you will refer to the cursor, created by `xcb_generate_id`. - * @param source_font In which font to look for the cursor glyph. - * @param mask_font In which font to look for the mask glyph. - * @param source_char The glyph of \a source_font to use. - * @param mask_char The glyph of \a mask_font to use as a mask: Pixels which are set to 1 define - * which source pixels are displayed. All pixels which are set to 0 are not - * displayed. - * @param fore_red The red value of the foreground color. - * @param fore_green The green value of the foreground color. - * @param fore_blue The blue value of the foreground color. - * @param back_red The red value of the background color. - * @param back_green The green value of the background color. - * @param back_blue The blue value of the background color. - * @return A cookie - * - * Creates a cursor from a font glyph. X provides a set of standard cursor shapes - * in a special font named cursor. Applications are encouraged to use this - * interface for their cursors because the font can be customized for the - * individual display type. - * - * All pixels which are set to 1 in the source will use the foreground color (as - * specified by \a fore_red, \a fore_green and \a fore_blue). All pixels set to 0 - * will use the background color (as specified by \a back_red, \a back_green and - * \a back_blue). - * - */ -xcb_void_cookie_t -xcb_create_glyph_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cid /**< */, - xcb_font_t source_font /**< */, - xcb_font_t mask_font /**< */, - uint16_t source_char /**< */, - uint16_t mask_char /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */); - -/** - * @brief Deletes a cursor - * - * @param c The connection - * @param cursor The cursor to destroy. - * @return A cookie - * - * Deletes the association between the cursor resource ID and the specified - * cursor. The cursor is freed when no other resource references it. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_free_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */); - -/** - * @brief Deletes a cursor - * - * @param c The connection - * @param cursor The cursor to destroy. - * @return A cookie - * - * Deletes the association between the cursor resource ID and the specified - * cursor. The cursor is freed when no other resource references it. - * - */ -xcb_void_cookie_t -xcb_free_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_recolor_cursor_checked (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_recolor_cursor (xcb_connection_t *c /**< */, - xcb_cursor_t cursor /**< */, - uint16_t fore_red /**< */, - uint16_t fore_green /**< */, - uint16_t fore_blue /**< */, - uint16_t back_red /**< */, - uint16_t back_green /**< */, - uint16_t back_blue /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_query_best_size_cookie_t -xcb_query_best_size (xcb_connection_t *c /**< */, - uint8_t _class /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_query_best_size_cookie_t -xcb_query_best_size_unchecked (xcb_connection_t *c /**< */, - uint8_t _class /**< */, - xcb_drawable_t drawable /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_query_best_size_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_query_best_size_reply_t * -xcb_query_best_size_reply (xcb_connection_t *c /**< */, - xcb_query_best_size_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_query_extension_sizeof (const void *_buffer /**< */); - -/** - * @brief check if extension is present - * - * @param c The connection - * @param name_len The length of \a name in bytes. - * @param name The name of the extension to query, for example "RANDR". This is case - * sensitive! - * @return A cookie - * - * Determines if the specified extension is present on this X11 server. - * - * Every extension has a unique `major_opcode` to identify requests, the minor - * opcodes and request formats are extension-specific. If the extension provides - * events and errors, the `first_event` and `first_error` fields in the reply are - * set accordingly. - * - * There should rarely be a need to use this request directly, XCB provides the - * `xcb_get_extension_data` function instead. - * - */ -xcb_query_extension_cookie_t -xcb_query_extension (xcb_connection_t *c /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * @brief check if extension is present - * - * @param c The connection - * @param name_len The length of \a name in bytes. - * @param name The name of the extension to query, for example "RANDR". This is case - * sensitive! - * @return A cookie - * - * Determines if the specified extension is present on this X11 server. - * - * Every extension has a unique `major_opcode` to identify requests, the minor - * opcodes and request formats are extension-specific. If the extension provides - * events and errors, the `first_event` and `first_error` fields in the reply are - * set accordingly. - * - * There should rarely be a need to use this request directly, XCB provides the - * `xcb_get_extension_data` function instead. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_query_extension_cookie_t -xcb_query_extension_unchecked (xcb_connection_t *c /**< */, - uint16_t name_len /**< */, - const char *name /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_query_extension_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_query_extension_reply_t * -xcb_query_extension_reply (xcb_connection_t *c /**< */, - xcb_query_extension_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_list_extensions_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_list_extensions_cookie_t -xcb_list_extensions (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_list_extensions_cookie_t -xcb_list_extensions_unchecked (xcb_connection_t *c /**< */); - -int -xcb_list_extensions_names_length (const xcb_list_extensions_reply_t *R /**< */); - -xcb_str_iterator_t -xcb_list_extensions_names_iterator (const xcb_list_extensions_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_list_extensions_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_list_extensions_reply_t * -xcb_list_extensions_reply (xcb_connection_t *c /**< */, - xcb_list_extensions_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_change_keyboard_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_change_keyboard_mapping_checked (xcb_connection_t *c /**< */, - uint8_t keycode_count /**< */, - xcb_keycode_t first_keycode /**< */, - uint8_t keysyms_per_keycode /**< */, - const xcb_keysym_t *keysyms /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_change_keyboard_mapping (xcb_connection_t *c /**< */, - uint8_t keycode_count /**< */, - xcb_keycode_t first_keycode /**< */, - uint8_t keysyms_per_keycode /**< */, - const xcb_keysym_t *keysyms /**< */); - -int -xcb_get_keyboard_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_get_keyboard_mapping_cookie_t -xcb_get_keyboard_mapping (xcb_connection_t *c /**< */, - xcb_keycode_t first_keycode /**< */, - uint8_t count /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_keyboard_mapping_cookie_t -xcb_get_keyboard_mapping_unchecked (xcb_connection_t *c /**< */, - xcb_keycode_t first_keycode /**< */, - uint8_t count /**< */); - -xcb_keysym_t * -xcb_get_keyboard_mapping_keysyms (const xcb_get_keyboard_mapping_reply_t *R /**< */); - -int -xcb_get_keyboard_mapping_keysyms_length (const xcb_get_keyboard_mapping_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_get_keyboard_mapping_keysyms_end (const xcb_get_keyboard_mapping_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_keyboard_mapping_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_keyboard_mapping_reply_t * -xcb_get_keyboard_mapping_reply (xcb_connection_t *c /**< */, - xcb_get_keyboard_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_change_keyboard_control_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_change_keyboard_control_checked (xcb_connection_t *c /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_change_keyboard_control (xcb_connection_t *c /**< */, - uint32_t value_mask /**< */, - const uint32_t *value_list /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_get_keyboard_control_cookie_t -xcb_get_keyboard_control (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_keyboard_control_cookie_t -xcb_get_keyboard_control_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_keyboard_control_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_keyboard_control_reply_t * -xcb_get_keyboard_control_reply (xcb_connection_t *c /**< */, - xcb_get_keyboard_control_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_bell_checked (xcb_connection_t *c /**< */, - int8_t percent /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_bell (xcb_connection_t *c /**< */, - int8_t percent /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_change_pointer_control_checked (xcb_connection_t *c /**< */, - int16_t acceleration_numerator /**< */, - int16_t acceleration_denominator /**< */, - int16_t threshold /**< */, - uint8_t do_acceleration /**< */, - uint8_t do_threshold /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_change_pointer_control (xcb_connection_t *c /**< */, - int16_t acceleration_numerator /**< */, - int16_t acceleration_denominator /**< */, - int16_t threshold /**< */, - uint8_t do_acceleration /**< */, - uint8_t do_threshold /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_get_pointer_control_cookie_t -xcb_get_pointer_control (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_pointer_control_cookie_t -xcb_get_pointer_control_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_pointer_control_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_pointer_control_reply_t * -xcb_get_pointer_control_reply (xcb_connection_t *c /**< */, - xcb_get_pointer_control_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_set_screen_saver_checked (xcb_connection_t *c /**< */, - int16_t timeout /**< */, - int16_t interval /**< */, - uint8_t prefer_blanking /**< */, - uint8_t allow_exposures /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_set_screen_saver (xcb_connection_t *c /**< */, - int16_t timeout /**< */, - int16_t interval /**< */, - uint8_t prefer_blanking /**< */, - uint8_t allow_exposures /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_get_screen_saver_cookie_t -xcb_get_screen_saver (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_screen_saver_cookie_t -xcb_get_screen_saver_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_screen_saver_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_screen_saver_reply_t * -xcb_get_screen_saver_reply (xcb_connection_t *c /**< */, - xcb_get_screen_saver_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_change_hosts_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_change_hosts_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - uint8_t family /**< */, - uint16_t address_len /**< */, - const uint8_t *address /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_change_hosts (xcb_connection_t *c /**< */, - uint8_t mode /**< */, - uint8_t family /**< */, - uint16_t address_len /**< */, - const uint8_t *address /**< */); - -int -xcb_host_sizeof (const void *_buffer /**< */); - -uint8_t * -xcb_host_address (const xcb_host_t *R /**< */); - -int -xcb_host_address_length (const xcb_host_t *R /**< */); - -xcb_generic_iterator_t -xcb_host_address_end (const xcb_host_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_host_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_host_t) - */ -void -xcb_host_next (xcb_host_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_host_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_host_end (xcb_host_iterator_t i /**< */); - -int -xcb_list_hosts_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_list_hosts_cookie_t -xcb_list_hosts (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_list_hosts_cookie_t -xcb_list_hosts_unchecked (xcb_connection_t *c /**< */); - -int -xcb_list_hosts_hosts_length (const xcb_list_hosts_reply_t *R /**< */); - -xcb_host_iterator_t -xcb_list_hosts_hosts_iterator (const xcb_list_hosts_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_list_hosts_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_list_hosts_reply_t * -xcb_list_hosts_reply (xcb_connection_t *c /**< */, - xcb_list_hosts_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_set_access_control_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_set_access_control (xcb_connection_t *c /**< */, - uint8_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_set_close_down_mode_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_set_close_down_mode (xcb_connection_t *c /**< */, - uint8_t mode /**< */); - -/** - * @brief kills a client - * - * @param c The connection - * @param resource Any resource belonging to the client (for example a Window), used to identify - * the client connection. - * \n - * The special value of `XCB_KILL_ALL_TEMPORARY`, the resources of all clients - * that have terminated in `RetainTemporary` (TODO) are destroyed. - * @return A cookie - * - * Forces a close down of the client that created the specified \a resource. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_kill_client_checked (xcb_connection_t *c /**< */, - uint32_t resource /**< */); - -/** - * @brief kills a client - * - * @param c The connection - * @param resource Any resource belonging to the client (for example a Window), used to identify - * the client connection. - * \n - * The special value of `XCB_KILL_ALL_TEMPORARY`, the resources of all clients - * that have terminated in `RetainTemporary` (TODO) are destroyed. - * @return A cookie - * - * Forces a close down of the client that created the specified \a resource. - * - */ -xcb_void_cookie_t -xcb_kill_client (xcb_connection_t *c /**< */, - uint32_t resource /**< */); - -int -xcb_rotate_properties_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_rotate_properties_checked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t atoms_len /**< */, - int16_t delta /**< */, - const xcb_atom_t *atoms /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_rotate_properties (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - uint16_t atoms_len /**< */, - int16_t delta /**< */, - const xcb_atom_t *atoms /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_force_screen_saver_checked (xcb_connection_t *c /**< */, - uint8_t mode /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_force_screen_saver (xcb_connection_t *c /**< */, - uint8_t mode /**< */); - -int -xcb_set_pointer_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_set_pointer_mapping_cookie_t -xcb_set_pointer_mapping (xcb_connection_t *c /**< */, - uint8_t map_len /**< */, - const uint8_t *map /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_set_pointer_mapping_cookie_t -xcb_set_pointer_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t map_len /**< */, - const uint8_t *map /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_set_pointer_mapping_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_set_pointer_mapping_reply_t * -xcb_set_pointer_mapping_reply (xcb_connection_t *c /**< */, - xcb_set_pointer_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_get_pointer_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_get_pointer_mapping_cookie_t -xcb_get_pointer_mapping (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_pointer_mapping_cookie_t -xcb_get_pointer_mapping_unchecked (xcb_connection_t *c /**< */); - -uint8_t * -xcb_get_pointer_mapping_map (const xcb_get_pointer_mapping_reply_t *R /**< */); - -int -xcb_get_pointer_mapping_map_length (const xcb_get_pointer_mapping_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_get_pointer_mapping_map_end (const xcb_get_pointer_mapping_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_pointer_mapping_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_pointer_mapping_reply_t * -xcb_get_pointer_mapping_reply (xcb_connection_t *c /**< */, - xcb_get_pointer_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_set_modifier_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_set_modifier_mapping_cookie_t -xcb_set_modifier_mapping (xcb_connection_t *c /**< */, - uint8_t keycodes_per_modifier /**< */, - const xcb_keycode_t *keycodes /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_set_modifier_mapping_cookie_t -xcb_set_modifier_mapping_unchecked (xcb_connection_t *c /**< */, - uint8_t keycodes_per_modifier /**< */, - const xcb_keycode_t *keycodes /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_set_modifier_mapping_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_set_modifier_mapping_reply_t * -xcb_set_modifier_mapping_reply (xcb_connection_t *c /**< */, - xcb_set_modifier_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_get_modifier_mapping_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_get_modifier_mapping_cookie_t -xcb_get_modifier_mapping (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_get_modifier_mapping_cookie_t -xcb_get_modifier_mapping_unchecked (xcb_connection_t *c /**< */); - -xcb_keycode_t * -xcb_get_modifier_mapping_keycodes (const xcb_get_modifier_mapping_reply_t *R /**< */); - -int -xcb_get_modifier_mapping_keycodes_length (const xcb_get_modifier_mapping_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_get_modifier_mapping_keycodes_end (const xcb_get_modifier_mapping_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_get_modifier_mapping_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_get_modifier_mapping_reply_t * -xcb_get_modifier_mapping_reply (xcb_connection_t *c /**< */, - xcb_get_modifier_mapping_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_no_operation_checked (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_no_operation (xcb_connection_t *c /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xselinux.c b/external/mit/xorg/lib/libxcb/files/xselinux.c deleted file mode 100644 index fc9e41b44..000000000 --- a/external/mit/xorg/lib/libxcb/files/xselinux.c +++ /dev/null @@ -1,2538 +0,0 @@ -/* - * This file generated automatically from xselinux.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xselinux.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_selinux_id = { "SELinux", 0 }; - -xcb_selinux_query_version_cookie_t -xcb_selinux_query_version (xcb_connection_t *c /**< */, - uint8_t client_major /**< */, - uint8_t client_minor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_query_version_cookie_t xcb_ret; - xcb_selinux_query_version_request_t xcb_out; - - xcb_out.client_major = client_major; - xcb_out.client_minor = client_minor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_query_version_cookie_t -xcb_selinux_query_version_unchecked (xcb_connection_t *c /**< */, - uint8_t client_major /**< */, - uint8_t client_minor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_query_version_cookie_t xcb_ret; - xcb_selinux_query_version_request_t xcb_out; - - xcb_out.client_major = client_major; - xcb_out.client_minor = client_minor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_query_version_reply_t * -xcb_selinux_query_version_reply (xcb_connection_t *c /**< */, - xcb_selinux_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_set_device_create_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_set_device_create_context_request_t *_aux = (xcb_selinux_set_device_create_context_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_set_device_create_context_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_selinux_set_device_create_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_DEVICE_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_device_create_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_selinux_set_device_create_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_DEVICE_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_device_create_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_selinux_get_device_create_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_device_create_context_reply_t *_aux = (xcb_selinux_get_device_create_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_device_create_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_device_create_context_cookie_t -xcb_selinux_get_device_create_context (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_DEVICE_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_device_create_context_cookie_t xcb_ret; - xcb_selinux_get_device_create_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_device_create_context_cookie_t -xcb_selinux_get_device_create_context_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_DEVICE_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_device_create_context_cookie_t xcb_ret; - xcb_selinux_get_device_create_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_device_create_context_context (const xcb_selinux_get_device_create_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_device_create_context_context_length (const xcb_selinux_get_device_create_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_device_create_context_context_end (const xcb_selinux_get_device_create_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_device_create_context_reply_t * -xcb_selinux_get_device_create_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_device_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_device_create_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_set_device_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_set_device_context_request_t *_aux = (xcb_selinux_set_device_context_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_set_device_context_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_selinux_set_device_context_checked (xcb_connection_t *c /**< */, - uint32_t device /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_DEVICE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_device_context_request_t xcb_out; - - xcb_out.device = device; - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_selinux_set_device_context (xcb_connection_t *c /**< */, - uint32_t device /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_DEVICE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_device_context_request_t xcb_out; - - xcb_out.device = device; - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_selinux_get_device_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_device_context_reply_t *_aux = (xcb_selinux_get_device_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_device_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_device_context_cookie_t -xcb_selinux_get_device_context (xcb_connection_t *c /**< */, - uint32_t device /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_DEVICE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_device_context_cookie_t xcb_ret; - xcb_selinux_get_device_context_request_t xcb_out; - - xcb_out.device = device; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_device_context_cookie_t -xcb_selinux_get_device_context_unchecked (xcb_connection_t *c /**< */, - uint32_t device /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_DEVICE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_device_context_cookie_t xcb_ret; - xcb_selinux_get_device_context_request_t xcb_out; - - xcb_out.device = device; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_device_context_context (const xcb_selinux_get_device_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_device_context_context_length (const xcb_selinux_get_device_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_device_context_context_end (const xcb_selinux_get_device_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_device_context_reply_t * -xcb_selinux_get_device_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_device_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_device_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_set_window_create_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_set_window_create_context_request_t *_aux = (xcb_selinux_set_window_create_context_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_set_window_create_context_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_selinux_set_window_create_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_WINDOW_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_window_create_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_selinux_set_window_create_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_WINDOW_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_window_create_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_selinux_get_window_create_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_window_create_context_reply_t *_aux = (xcb_selinux_get_window_create_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_window_create_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_window_create_context_cookie_t -xcb_selinux_get_window_create_context (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_WINDOW_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_window_create_context_cookie_t xcb_ret; - xcb_selinux_get_window_create_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_window_create_context_cookie_t -xcb_selinux_get_window_create_context_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_WINDOW_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_window_create_context_cookie_t xcb_ret; - xcb_selinux_get_window_create_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_window_create_context_context (const xcb_selinux_get_window_create_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_window_create_context_context_length (const xcb_selinux_get_window_create_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_window_create_context_context_end (const xcb_selinux_get_window_create_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_window_create_context_reply_t * -xcb_selinux_get_window_create_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_window_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_window_create_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_get_window_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_window_context_reply_t *_aux = (xcb_selinux_get_window_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_window_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_window_context_cookie_t -xcb_selinux_get_window_context (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_WINDOW_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_window_context_cookie_t xcb_ret; - xcb_selinux_get_window_context_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_window_context_cookie_t -xcb_selinux_get_window_context_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_WINDOW_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_window_context_cookie_t xcb_ret; - xcb_selinux_get_window_context_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_window_context_context (const xcb_selinux_get_window_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_window_context_context_length (const xcb_selinux_get_window_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_window_context_context_end (const xcb_selinux_get_window_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_window_context_reply_t * -xcb_selinux_get_window_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_window_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_window_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_list_item_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_list_item_t *_aux = (xcb_selinux_list_item_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_list_item_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* object_context */ - xcb_block_len += _aux->object_context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data_context */ - xcb_block_len += _aux->data_context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_selinux_list_item_object_context (const xcb_selinux_list_item_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_list_item_object_context_length (const xcb_selinux_list_item_t *R /**< */) -{ - return R->object_context_len; -} - -xcb_generic_iterator_t -xcb_selinux_list_item_object_context_end (const xcb_selinux_list_item_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->object_context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -char * -xcb_selinux_list_item_data_context (const xcb_selinux_list_item_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_selinux_list_item_object_context_end(R); - return (char *) ((char *) prev.data + XCB_TYPE_PAD(char, prev.index) + 0); -} - -int -xcb_selinux_list_item_data_context_length (const xcb_selinux_list_item_t *R /**< */) -{ - return R->data_context_len; -} - -xcb_generic_iterator_t -xcb_selinux_list_item_data_context_end (const xcb_selinux_list_item_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_selinux_list_item_object_context_end(R); - i.data = ((char *) child.data) + (R->data_context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_selinux_list_item_next (xcb_selinux_list_item_iterator_t *i /**< */) -{ - xcb_selinux_list_item_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_selinux_list_item_t *)(((char *)R) + xcb_selinux_list_item_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_selinux_list_item_t *) child.data; -} - -xcb_generic_iterator_t -xcb_selinux_list_item_end (xcb_selinux_list_item_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_selinux_list_item_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_selinux_set_property_create_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_set_property_create_context_request_t *_aux = (xcb_selinux_set_property_create_context_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_set_property_create_context_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_selinux_set_property_create_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_PROPERTY_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_property_create_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_selinux_set_property_create_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_PROPERTY_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_property_create_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_selinux_get_property_create_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_property_create_context_reply_t *_aux = (xcb_selinux_get_property_create_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_property_create_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_property_create_context_cookie_t -xcb_selinux_get_property_create_context (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_PROPERTY_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_property_create_context_cookie_t xcb_ret; - xcb_selinux_get_property_create_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_property_create_context_cookie_t -xcb_selinux_get_property_create_context_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_PROPERTY_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_property_create_context_cookie_t xcb_ret; - xcb_selinux_get_property_create_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_property_create_context_context (const xcb_selinux_get_property_create_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_property_create_context_context_length (const xcb_selinux_get_property_create_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_property_create_context_context_end (const xcb_selinux_get_property_create_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_property_create_context_reply_t * -xcb_selinux_get_property_create_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_property_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_property_create_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_set_property_use_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_set_property_use_context_request_t *_aux = (xcb_selinux_set_property_use_context_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_set_property_use_context_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_selinux_set_property_use_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_PROPERTY_USE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_property_use_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_selinux_set_property_use_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_PROPERTY_USE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_property_use_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_selinux_get_property_use_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_property_use_context_reply_t *_aux = (xcb_selinux_get_property_use_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_property_use_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_property_use_context_cookie_t -xcb_selinux_get_property_use_context (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_PROPERTY_USE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_property_use_context_cookie_t xcb_ret; - xcb_selinux_get_property_use_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_property_use_context_cookie_t -xcb_selinux_get_property_use_context_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_PROPERTY_USE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_property_use_context_cookie_t xcb_ret; - xcb_selinux_get_property_use_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_property_use_context_context (const xcb_selinux_get_property_use_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_property_use_context_context_length (const xcb_selinux_get_property_use_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_property_use_context_context_end (const xcb_selinux_get_property_use_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_property_use_context_reply_t * -xcb_selinux_get_property_use_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_property_use_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_property_use_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_get_property_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_property_context_reply_t *_aux = (xcb_selinux_get_property_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_property_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_property_context_cookie_t -xcb_selinux_get_property_context (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_PROPERTY_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_property_context_cookie_t xcb_ret; - xcb_selinux_get_property_context_request_t xcb_out; - - xcb_out.window = window; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_property_context_cookie_t -xcb_selinux_get_property_context_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_PROPERTY_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_property_context_cookie_t xcb_ret; - xcb_selinux_get_property_context_request_t xcb_out; - - xcb_out.window = window; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_property_context_context (const xcb_selinux_get_property_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_property_context_context_length (const xcb_selinux_get_property_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_property_context_context_end (const xcb_selinux_get_property_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_property_context_reply_t * -xcb_selinux_get_property_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_property_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_property_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_get_property_data_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_property_data_context_reply_t *_aux = (xcb_selinux_get_property_data_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_property_data_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_property_data_context_cookie_t -xcb_selinux_get_property_data_context (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_PROPERTY_DATA_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_property_data_context_cookie_t xcb_ret; - xcb_selinux_get_property_data_context_request_t xcb_out; - - xcb_out.window = window; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_property_data_context_cookie_t -xcb_selinux_get_property_data_context_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_PROPERTY_DATA_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_property_data_context_cookie_t xcb_ret; - xcb_selinux_get_property_data_context_request_t xcb_out; - - xcb_out.window = window; - xcb_out.property = property; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_property_data_context_context (const xcb_selinux_get_property_data_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_property_data_context_context_length (const xcb_selinux_get_property_data_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_property_data_context_context_end (const xcb_selinux_get_property_data_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_property_data_context_reply_t * -xcb_selinux_get_property_data_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_property_data_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_property_data_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_list_properties_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_list_properties_reply_t *_aux = (xcb_selinux_list_properties_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_selinux_list_properties_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* properties */ - for(i=0; i<_aux->properties_len; i++) { - xcb_tmp_len = xcb_selinux_list_item_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_selinux_list_item_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_list_properties_cookie_t -xcb_selinux_list_properties (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_LIST_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_list_properties_cookie_t xcb_ret; - xcb_selinux_list_properties_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_list_properties_cookie_t -xcb_selinux_list_properties_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_LIST_PROPERTIES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_list_properties_cookie_t xcb_ret; - xcb_selinux_list_properties_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_selinux_list_properties_properties_length (const xcb_selinux_list_properties_reply_t *R /**< */) -{ - return R->properties_len; -} - -xcb_selinux_list_item_iterator_t -xcb_selinux_list_properties_properties_iterator (const xcb_selinux_list_properties_reply_t *R /**< */) -{ - xcb_selinux_list_item_iterator_t i; - i.data = (xcb_selinux_list_item_t *) (R + 1); - i.rem = R->properties_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_list_properties_reply_t * -xcb_selinux_list_properties_reply (xcb_connection_t *c /**< */, - xcb_selinux_list_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_list_properties_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_set_selection_create_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_set_selection_create_context_request_t *_aux = (xcb_selinux_set_selection_create_context_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_set_selection_create_context_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_selinux_set_selection_create_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_SELECTION_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_selection_create_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_selinux_set_selection_create_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_SELECTION_CREATE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_selection_create_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_selinux_get_selection_create_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_selection_create_context_reply_t *_aux = (xcb_selinux_get_selection_create_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_selection_create_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_selection_create_context_cookie_t -xcb_selinux_get_selection_create_context (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_SELECTION_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_selection_create_context_cookie_t xcb_ret; - xcb_selinux_get_selection_create_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_selection_create_context_cookie_t -xcb_selinux_get_selection_create_context_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_SELECTION_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_selection_create_context_cookie_t xcb_ret; - xcb_selinux_get_selection_create_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_selection_create_context_context (const xcb_selinux_get_selection_create_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_selection_create_context_context_length (const xcb_selinux_get_selection_create_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_selection_create_context_context_end (const xcb_selinux_get_selection_create_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_selection_create_context_reply_t * -xcb_selinux_get_selection_create_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_selection_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_selection_create_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_set_selection_use_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_set_selection_use_context_request_t *_aux = (xcb_selinux_set_selection_use_context_request_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_set_selection_use_context_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_selinux_set_selection_use_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_SELECTION_USE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_selection_use_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_selinux_set_selection_use_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_SET_SELECTION_USE_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_selinux_set_selection_use_context_request_t xcb_out; - - xcb_out.context_len = context_len; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* char context */ - xcb_parts[4].iov_base = (char *) context; - xcb_parts[4].iov_len = context_len * sizeof(char); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_selinux_get_selection_use_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_selection_use_context_reply_t *_aux = (xcb_selinux_get_selection_use_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_selection_use_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_selection_use_context_cookie_t -xcb_selinux_get_selection_use_context (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_SELECTION_USE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_selection_use_context_cookie_t xcb_ret; - xcb_selinux_get_selection_use_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_selection_use_context_cookie_t -xcb_selinux_get_selection_use_context_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_SELECTION_USE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_selection_use_context_cookie_t xcb_ret; - xcb_selinux_get_selection_use_context_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_selection_use_context_context (const xcb_selinux_get_selection_use_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_selection_use_context_context_length (const xcb_selinux_get_selection_use_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_selection_use_context_context_end (const xcb_selinux_get_selection_use_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_selection_use_context_reply_t * -xcb_selinux_get_selection_use_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_selection_use_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_selection_use_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_get_selection_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_selection_context_reply_t *_aux = (xcb_selinux_get_selection_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_selection_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_selection_context_cookie_t -xcb_selinux_get_selection_context (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_SELECTION_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_selection_context_cookie_t xcb_ret; - xcb_selinux_get_selection_context_request_t xcb_out; - - xcb_out.selection = selection; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_selection_context_cookie_t -xcb_selinux_get_selection_context_unchecked (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_SELECTION_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_selection_context_cookie_t xcb_ret; - xcb_selinux_get_selection_context_request_t xcb_out; - - xcb_out.selection = selection; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_selection_context_context (const xcb_selinux_get_selection_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_selection_context_context_length (const xcb_selinux_get_selection_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_selection_context_context_end (const xcb_selinux_get_selection_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_selection_context_reply_t * -xcb_selinux_get_selection_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_selection_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_selection_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_get_selection_data_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_selection_data_context_reply_t *_aux = (xcb_selinux_get_selection_data_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_selection_data_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_selection_data_context_cookie_t -xcb_selinux_get_selection_data_context (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_SELECTION_DATA_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_selection_data_context_cookie_t xcb_ret; - xcb_selinux_get_selection_data_context_request_t xcb_out; - - xcb_out.selection = selection; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_selection_data_context_cookie_t -xcb_selinux_get_selection_data_context_unchecked (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_SELECTION_DATA_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_selection_data_context_cookie_t xcb_ret; - xcb_selinux_get_selection_data_context_request_t xcb_out; - - xcb_out.selection = selection; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_selection_data_context_context (const xcb_selinux_get_selection_data_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_selection_data_context_context_length (const xcb_selinux_get_selection_data_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_selection_data_context_context_end (const xcb_selinux_get_selection_data_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_selection_data_context_reply_t * -xcb_selinux_get_selection_data_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_selection_data_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_selection_data_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_list_selections_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_list_selections_reply_t *_aux = (xcb_selinux_list_selections_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_selinux_list_selections_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* selections */ - for(i=0; i<_aux->selections_len; i++) { - xcb_tmp_len = xcb_selinux_list_item_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_selinux_list_item_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_list_selections_cookie_t -xcb_selinux_list_selections (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_LIST_SELECTIONS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_list_selections_cookie_t xcb_ret; - xcb_selinux_list_selections_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_list_selections_cookie_t -xcb_selinux_list_selections_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_LIST_SELECTIONS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_list_selections_cookie_t xcb_ret; - xcb_selinux_list_selections_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_selinux_list_selections_selections_length (const xcb_selinux_list_selections_reply_t *R /**< */) -{ - return R->selections_len; -} - -xcb_selinux_list_item_iterator_t -xcb_selinux_list_selections_selections_iterator (const xcb_selinux_list_selections_reply_t *R /**< */) -{ - xcb_selinux_list_item_iterator_t i; - i.data = (xcb_selinux_list_item_t *) (R + 1); - i.rem = R->selections_len; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_list_selections_reply_t * -xcb_selinux_list_selections_reply (xcb_connection_t *c /**< */, - xcb_selinux_list_selections_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_list_selections_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_selinux_get_client_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_selinux_get_client_context_reply_t *_aux = (xcb_selinux_get_client_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_selinux_get_client_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* context */ - xcb_block_len += _aux->context_len * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_selinux_get_client_context_cookie_t -xcb_selinux_get_client_context (xcb_connection_t *c /**< */, - uint32_t resource /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_CLIENT_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_client_context_cookie_t xcb_ret; - xcb_selinux_get_client_context_request_t xcb_out; - - xcb_out.resource = resource; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_selinux_get_client_context_cookie_t -xcb_selinux_get_client_context_unchecked (xcb_connection_t *c /**< */, - uint32_t resource /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_selinux_id, - /* opcode */ XCB_SELINUX_GET_CLIENT_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_selinux_get_client_context_cookie_t xcb_ret; - xcb_selinux_get_client_context_request_t xcb_out; - - xcb_out.resource = resource; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -char * -xcb_selinux_get_client_context_context (const xcb_selinux_get_client_context_reply_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_selinux_get_client_context_context_length (const xcb_selinux_get_client_context_reply_t *R /**< */) -{ - return R->context_len; -} - -xcb_generic_iterator_t -xcb_selinux_get_client_context_context_end (const xcb_selinux_get_client_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->context_len); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_selinux_get_client_context_reply_t * -xcb_selinux_get_client_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_client_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_selinux_get_client_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/xselinux.h b/external/mit/xorg/lib/libxcb/files/xselinux.h deleted file mode 100644 index d5e79eaa3..000000000 --- a/external/mit/xorg/lib/libxcb/files/xselinux.h +++ /dev/null @@ -1,1826 +0,0 @@ -/* - * This file generated automatically from xselinux.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_SELinux_API XCB SELinux API - * @brief SELinux XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XSELINUX_H -#define __XSELINUX_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_SELINUX_MAJOR_VERSION 1 -#define XCB_SELINUX_MINOR_VERSION 0 - -extern xcb_extension_t xcb_selinux_id; - -/** - * @brief xcb_selinux_query_version_cookie_t - **/ -typedef struct xcb_selinux_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_query_version_cookie_t; - -/** Opcode for xcb_selinux_query_version. */ -#define XCB_SELINUX_QUERY_VERSION 0 - -/** - * @brief xcb_selinux_query_version_request_t - **/ -typedef struct xcb_selinux_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t client_major; /**< */ - uint8_t client_minor; /**< */ -} xcb_selinux_query_version_request_t; - -/** - * @brief xcb_selinux_query_version_reply_t - **/ -typedef struct xcb_selinux_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t server_major; /**< */ - uint16_t server_minor; /**< */ -} xcb_selinux_query_version_reply_t; - -/** Opcode for xcb_selinux_set_device_create_context. */ -#define XCB_SELINUX_SET_DEVICE_CREATE_CONTEXT 1 - -/** - * @brief xcb_selinux_set_device_create_context_request_t - **/ -typedef struct xcb_selinux_set_device_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t context_len; /**< */ -} xcb_selinux_set_device_create_context_request_t; - -/** - * @brief xcb_selinux_get_device_create_context_cookie_t - **/ -typedef struct xcb_selinux_get_device_create_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_device_create_context_cookie_t; - -/** Opcode for xcb_selinux_get_device_create_context. */ -#define XCB_SELINUX_GET_DEVICE_CREATE_CONTEXT 2 - -/** - * @brief xcb_selinux_get_device_create_context_request_t - **/ -typedef struct xcb_selinux_get_device_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_selinux_get_device_create_context_request_t; - -/** - * @brief xcb_selinux_get_device_create_context_reply_t - **/ -typedef struct xcb_selinux_get_device_create_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_device_create_context_reply_t; - -/** Opcode for xcb_selinux_set_device_context. */ -#define XCB_SELINUX_SET_DEVICE_CONTEXT 3 - -/** - * @brief xcb_selinux_set_device_context_request_t - **/ -typedef struct xcb_selinux_set_device_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t device; /**< */ - uint32_t context_len; /**< */ -} xcb_selinux_set_device_context_request_t; - -/** - * @brief xcb_selinux_get_device_context_cookie_t - **/ -typedef struct xcb_selinux_get_device_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_device_context_cookie_t; - -/** Opcode for xcb_selinux_get_device_context. */ -#define XCB_SELINUX_GET_DEVICE_CONTEXT 4 - -/** - * @brief xcb_selinux_get_device_context_request_t - **/ -typedef struct xcb_selinux_get_device_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t device; /**< */ -} xcb_selinux_get_device_context_request_t; - -/** - * @brief xcb_selinux_get_device_context_reply_t - **/ -typedef struct xcb_selinux_get_device_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_device_context_reply_t; - -/** Opcode for xcb_selinux_set_window_create_context. */ -#define XCB_SELINUX_SET_WINDOW_CREATE_CONTEXT 5 - -/** - * @brief xcb_selinux_set_window_create_context_request_t - **/ -typedef struct xcb_selinux_set_window_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t context_len; /**< */ -} xcb_selinux_set_window_create_context_request_t; - -/** - * @brief xcb_selinux_get_window_create_context_cookie_t - **/ -typedef struct xcb_selinux_get_window_create_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_window_create_context_cookie_t; - -/** Opcode for xcb_selinux_get_window_create_context. */ -#define XCB_SELINUX_GET_WINDOW_CREATE_CONTEXT 6 - -/** - * @brief xcb_selinux_get_window_create_context_request_t - **/ -typedef struct xcb_selinux_get_window_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_selinux_get_window_create_context_request_t; - -/** - * @brief xcb_selinux_get_window_create_context_reply_t - **/ -typedef struct xcb_selinux_get_window_create_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_window_create_context_reply_t; - -/** - * @brief xcb_selinux_get_window_context_cookie_t - **/ -typedef struct xcb_selinux_get_window_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_window_context_cookie_t; - -/** Opcode for xcb_selinux_get_window_context. */ -#define XCB_SELINUX_GET_WINDOW_CONTEXT 7 - -/** - * @brief xcb_selinux_get_window_context_request_t - **/ -typedef struct xcb_selinux_get_window_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_selinux_get_window_context_request_t; - -/** - * @brief xcb_selinux_get_window_context_reply_t - **/ -typedef struct xcb_selinux_get_window_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_window_context_reply_t; - -/** - * @brief xcb_selinux_list_item_t - **/ -typedef struct xcb_selinux_list_item_t { - xcb_atom_t name; /**< */ - uint32_t object_context_len; /**< */ - uint32_t data_context_len; /**< */ -} xcb_selinux_list_item_t; - -/** - * @brief xcb_selinux_list_item_iterator_t - **/ -typedef struct xcb_selinux_list_item_iterator_t { - xcb_selinux_list_item_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_selinux_list_item_iterator_t; - -/** Opcode for xcb_selinux_set_property_create_context. */ -#define XCB_SELINUX_SET_PROPERTY_CREATE_CONTEXT 8 - -/** - * @brief xcb_selinux_set_property_create_context_request_t - **/ -typedef struct xcb_selinux_set_property_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t context_len; /**< */ -} xcb_selinux_set_property_create_context_request_t; - -/** - * @brief xcb_selinux_get_property_create_context_cookie_t - **/ -typedef struct xcb_selinux_get_property_create_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_property_create_context_cookie_t; - -/** Opcode for xcb_selinux_get_property_create_context. */ -#define XCB_SELINUX_GET_PROPERTY_CREATE_CONTEXT 9 - -/** - * @brief xcb_selinux_get_property_create_context_request_t - **/ -typedef struct xcb_selinux_get_property_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_selinux_get_property_create_context_request_t; - -/** - * @brief xcb_selinux_get_property_create_context_reply_t - **/ -typedef struct xcb_selinux_get_property_create_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_property_create_context_reply_t; - -/** Opcode for xcb_selinux_set_property_use_context. */ -#define XCB_SELINUX_SET_PROPERTY_USE_CONTEXT 10 - -/** - * @brief xcb_selinux_set_property_use_context_request_t - **/ -typedef struct xcb_selinux_set_property_use_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t context_len; /**< */ -} xcb_selinux_set_property_use_context_request_t; - -/** - * @brief xcb_selinux_get_property_use_context_cookie_t - **/ -typedef struct xcb_selinux_get_property_use_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_property_use_context_cookie_t; - -/** Opcode for xcb_selinux_get_property_use_context. */ -#define XCB_SELINUX_GET_PROPERTY_USE_CONTEXT 11 - -/** - * @brief xcb_selinux_get_property_use_context_request_t - **/ -typedef struct xcb_selinux_get_property_use_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_selinux_get_property_use_context_request_t; - -/** - * @brief xcb_selinux_get_property_use_context_reply_t - **/ -typedef struct xcb_selinux_get_property_use_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_property_use_context_reply_t; - -/** - * @brief xcb_selinux_get_property_context_cookie_t - **/ -typedef struct xcb_selinux_get_property_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_property_context_cookie_t; - -/** Opcode for xcb_selinux_get_property_context. */ -#define XCB_SELINUX_GET_PROPERTY_CONTEXT 12 - -/** - * @brief xcb_selinux_get_property_context_request_t - **/ -typedef struct xcb_selinux_get_property_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_atom_t property; /**< */ -} xcb_selinux_get_property_context_request_t; - -/** - * @brief xcb_selinux_get_property_context_reply_t - **/ -typedef struct xcb_selinux_get_property_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_property_context_reply_t; - -/** - * @brief xcb_selinux_get_property_data_context_cookie_t - **/ -typedef struct xcb_selinux_get_property_data_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_property_data_context_cookie_t; - -/** Opcode for xcb_selinux_get_property_data_context. */ -#define XCB_SELINUX_GET_PROPERTY_DATA_CONTEXT 13 - -/** - * @brief xcb_selinux_get_property_data_context_request_t - **/ -typedef struct xcb_selinux_get_property_data_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_atom_t property; /**< */ -} xcb_selinux_get_property_data_context_request_t; - -/** - * @brief xcb_selinux_get_property_data_context_reply_t - **/ -typedef struct xcb_selinux_get_property_data_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_property_data_context_reply_t; - -/** - * @brief xcb_selinux_list_properties_cookie_t - **/ -typedef struct xcb_selinux_list_properties_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_list_properties_cookie_t; - -/** Opcode for xcb_selinux_list_properties. */ -#define XCB_SELINUX_LIST_PROPERTIES 14 - -/** - * @brief xcb_selinux_list_properties_request_t - **/ -typedef struct xcb_selinux_list_properties_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_selinux_list_properties_request_t; - -/** - * @brief xcb_selinux_list_properties_reply_t - **/ -typedef struct xcb_selinux_list_properties_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t properties_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_list_properties_reply_t; - -/** Opcode for xcb_selinux_set_selection_create_context. */ -#define XCB_SELINUX_SET_SELECTION_CREATE_CONTEXT 15 - -/** - * @brief xcb_selinux_set_selection_create_context_request_t - **/ -typedef struct xcb_selinux_set_selection_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t context_len; /**< */ -} xcb_selinux_set_selection_create_context_request_t; - -/** - * @brief xcb_selinux_get_selection_create_context_cookie_t - **/ -typedef struct xcb_selinux_get_selection_create_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_selection_create_context_cookie_t; - -/** Opcode for xcb_selinux_get_selection_create_context. */ -#define XCB_SELINUX_GET_SELECTION_CREATE_CONTEXT 16 - -/** - * @brief xcb_selinux_get_selection_create_context_request_t - **/ -typedef struct xcb_selinux_get_selection_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_selinux_get_selection_create_context_request_t; - -/** - * @brief xcb_selinux_get_selection_create_context_reply_t - **/ -typedef struct xcb_selinux_get_selection_create_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_selection_create_context_reply_t; - -/** Opcode for xcb_selinux_set_selection_use_context. */ -#define XCB_SELINUX_SET_SELECTION_USE_CONTEXT 17 - -/** - * @brief xcb_selinux_set_selection_use_context_request_t - **/ -typedef struct xcb_selinux_set_selection_use_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t context_len; /**< */ -} xcb_selinux_set_selection_use_context_request_t; - -/** - * @brief xcb_selinux_get_selection_use_context_cookie_t - **/ -typedef struct xcb_selinux_get_selection_use_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_selection_use_context_cookie_t; - -/** Opcode for xcb_selinux_get_selection_use_context. */ -#define XCB_SELINUX_GET_SELECTION_USE_CONTEXT 18 - -/** - * @brief xcb_selinux_get_selection_use_context_request_t - **/ -typedef struct xcb_selinux_get_selection_use_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_selinux_get_selection_use_context_request_t; - -/** - * @brief xcb_selinux_get_selection_use_context_reply_t - **/ -typedef struct xcb_selinux_get_selection_use_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_selection_use_context_reply_t; - -/** - * @brief xcb_selinux_get_selection_context_cookie_t - **/ -typedef struct xcb_selinux_get_selection_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_selection_context_cookie_t; - -/** Opcode for xcb_selinux_get_selection_context. */ -#define XCB_SELINUX_GET_SELECTION_CONTEXT 19 - -/** - * @brief xcb_selinux_get_selection_context_request_t - **/ -typedef struct xcb_selinux_get_selection_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_atom_t selection; /**< */ -} xcb_selinux_get_selection_context_request_t; - -/** - * @brief xcb_selinux_get_selection_context_reply_t - **/ -typedef struct xcb_selinux_get_selection_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_selection_context_reply_t; - -/** - * @brief xcb_selinux_get_selection_data_context_cookie_t - **/ -typedef struct xcb_selinux_get_selection_data_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_selection_data_context_cookie_t; - -/** Opcode for xcb_selinux_get_selection_data_context. */ -#define XCB_SELINUX_GET_SELECTION_DATA_CONTEXT 20 - -/** - * @brief xcb_selinux_get_selection_data_context_request_t - **/ -typedef struct xcb_selinux_get_selection_data_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_atom_t selection; /**< */ -} xcb_selinux_get_selection_data_context_request_t; - -/** - * @brief xcb_selinux_get_selection_data_context_reply_t - **/ -typedef struct xcb_selinux_get_selection_data_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_selection_data_context_reply_t; - -/** - * @brief xcb_selinux_list_selections_cookie_t - **/ -typedef struct xcb_selinux_list_selections_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_list_selections_cookie_t; - -/** Opcode for xcb_selinux_list_selections. */ -#define XCB_SELINUX_LIST_SELECTIONS 21 - -/** - * @brief xcb_selinux_list_selections_request_t - **/ -typedef struct xcb_selinux_list_selections_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_selinux_list_selections_request_t; - -/** - * @brief xcb_selinux_list_selections_reply_t - **/ -typedef struct xcb_selinux_list_selections_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t selections_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_list_selections_reply_t; - -/** - * @brief xcb_selinux_get_client_context_cookie_t - **/ -typedef struct xcb_selinux_get_client_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_selinux_get_client_context_cookie_t; - -/** Opcode for xcb_selinux_get_client_context. */ -#define XCB_SELINUX_GET_CLIENT_CONTEXT 22 - -/** - * @brief xcb_selinux_get_client_context_request_t - **/ -typedef struct xcb_selinux_get_client_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint32_t resource; /**< */ -} xcb_selinux_get_client_context_request_t; - -/** - * @brief xcb_selinux_get_client_context_reply_t - **/ -typedef struct xcb_selinux_get_client_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t context_len; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_selinux_get_client_context_reply_t; - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_query_version_cookie_t -xcb_selinux_query_version (xcb_connection_t *c /**< */, - uint8_t client_major /**< */, - uint8_t client_minor /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_query_version_cookie_t -xcb_selinux_query_version_unchecked (xcb_connection_t *c /**< */, - uint8_t client_major /**< */, - uint8_t client_minor /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_query_version_reply_t * -xcb_selinux_query_version_reply (xcb_connection_t *c /**< */, - xcb_selinux_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_set_device_create_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_selinux_set_device_create_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_selinux_set_device_create_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -int -xcb_selinux_get_device_create_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_device_create_context_cookie_t -xcb_selinux_get_device_create_context (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_device_create_context_cookie_t -xcb_selinux_get_device_create_context_unchecked (xcb_connection_t *c /**< */); - -char * -xcb_selinux_get_device_create_context_context (const xcb_selinux_get_device_create_context_reply_t *R /**< */); - -int -xcb_selinux_get_device_create_context_context_length (const xcb_selinux_get_device_create_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_device_create_context_context_end (const xcb_selinux_get_device_create_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_device_create_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_device_create_context_reply_t * -xcb_selinux_get_device_create_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_device_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_set_device_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_selinux_set_device_context_checked (xcb_connection_t *c /**< */, - uint32_t device /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_selinux_set_device_context (xcb_connection_t *c /**< */, - uint32_t device /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -int -xcb_selinux_get_device_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_device_context_cookie_t -xcb_selinux_get_device_context (xcb_connection_t *c /**< */, - uint32_t device /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_device_context_cookie_t -xcb_selinux_get_device_context_unchecked (xcb_connection_t *c /**< */, - uint32_t device /**< */); - -char * -xcb_selinux_get_device_context_context (const xcb_selinux_get_device_context_reply_t *R /**< */); - -int -xcb_selinux_get_device_context_context_length (const xcb_selinux_get_device_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_device_context_context_end (const xcb_selinux_get_device_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_device_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_device_context_reply_t * -xcb_selinux_get_device_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_device_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_set_window_create_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_selinux_set_window_create_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_selinux_set_window_create_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -int -xcb_selinux_get_window_create_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_window_create_context_cookie_t -xcb_selinux_get_window_create_context (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_window_create_context_cookie_t -xcb_selinux_get_window_create_context_unchecked (xcb_connection_t *c /**< */); - -char * -xcb_selinux_get_window_create_context_context (const xcb_selinux_get_window_create_context_reply_t *R /**< */); - -int -xcb_selinux_get_window_create_context_context_length (const xcb_selinux_get_window_create_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_window_create_context_context_end (const xcb_selinux_get_window_create_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_window_create_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_window_create_context_reply_t * -xcb_selinux_get_window_create_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_window_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_get_window_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_window_context_cookie_t -xcb_selinux_get_window_context (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_window_context_cookie_t -xcb_selinux_get_window_context_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -char * -xcb_selinux_get_window_context_context (const xcb_selinux_get_window_context_reply_t *R /**< */); - -int -xcb_selinux_get_window_context_context_length (const xcb_selinux_get_window_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_window_context_context_end (const xcb_selinux_get_window_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_window_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_window_context_reply_t * -xcb_selinux_get_window_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_window_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_list_item_sizeof (const void *_buffer /**< */); - -char * -xcb_selinux_list_item_object_context (const xcb_selinux_list_item_t *R /**< */); - -int -xcb_selinux_list_item_object_context_length (const xcb_selinux_list_item_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_list_item_object_context_end (const xcb_selinux_list_item_t *R /**< */); - -char * -xcb_selinux_list_item_data_context (const xcb_selinux_list_item_t *R /**< */); - -int -xcb_selinux_list_item_data_context_length (const xcb_selinux_list_item_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_list_item_data_context_end (const xcb_selinux_list_item_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_selinux_list_item_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_selinux_list_item_t) - */ -void -xcb_selinux_list_item_next (xcb_selinux_list_item_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_selinux_list_item_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_selinux_list_item_end (xcb_selinux_list_item_iterator_t i /**< */); - -int -xcb_selinux_set_property_create_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_selinux_set_property_create_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_selinux_set_property_create_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -int -xcb_selinux_get_property_create_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_property_create_context_cookie_t -xcb_selinux_get_property_create_context (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_property_create_context_cookie_t -xcb_selinux_get_property_create_context_unchecked (xcb_connection_t *c /**< */); - -char * -xcb_selinux_get_property_create_context_context (const xcb_selinux_get_property_create_context_reply_t *R /**< */); - -int -xcb_selinux_get_property_create_context_context_length (const xcb_selinux_get_property_create_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_property_create_context_context_end (const xcb_selinux_get_property_create_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_property_create_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_property_create_context_reply_t * -xcb_selinux_get_property_create_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_property_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_set_property_use_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_selinux_set_property_use_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_selinux_set_property_use_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -int -xcb_selinux_get_property_use_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_property_use_context_cookie_t -xcb_selinux_get_property_use_context (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_property_use_context_cookie_t -xcb_selinux_get_property_use_context_unchecked (xcb_connection_t *c /**< */); - -char * -xcb_selinux_get_property_use_context_context (const xcb_selinux_get_property_use_context_reply_t *R /**< */); - -int -xcb_selinux_get_property_use_context_context_length (const xcb_selinux_get_property_use_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_property_use_context_context_end (const xcb_selinux_get_property_use_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_property_use_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_property_use_context_reply_t * -xcb_selinux_get_property_use_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_property_use_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_get_property_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_property_context_cookie_t -xcb_selinux_get_property_context (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_property_context_cookie_t -xcb_selinux_get_property_context_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */); - -char * -xcb_selinux_get_property_context_context (const xcb_selinux_get_property_context_reply_t *R /**< */); - -int -xcb_selinux_get_property_context_context_length (const xcb_selinux_get_property_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_property_context_context_end (const xcb_selinux_get_property_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_property_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_property_context_reply_t * -xcb_selinux_get_property_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_property_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_get_property_data_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_property_data_context_cookie_t -xcb_selinux_get_property_data_context (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_property_data_context_cookie_t -xcb_selinux_get_property_data_context_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_atom_t property /**< */); - -char * -xcb_selinux_get_property_data_context_context (const xcb_selinux_get_property_data_context_reply_t *R /**< */); - -int -xcb_selinux_get_property_data_context_context_length (const xcb_selinux_get_property_data_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_property_data_context_context_end (const xcb_selinux_get_property_data_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_property_data_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_property_data_context_reply_t * -xcb_selinux_get_property_data_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_property_data_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_list_properties_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_list_properties_cookie_t -xcb_selinux_list_properties (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_list_properties_cookie_t -xcb_selinux_list_properties_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -int -xcb_selinux_list_properties_properties_length (const xcb_selinux_list_properties_reply_t *R /**< */); - -xcb_selinux_list_item_iterator_t -xcb_selinux_list_properties_properties_iterator (const xcb_selinux_list_properties_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_list_properties_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_list_properties_reply_t * -xcb_selinux_list_properties_reply (xcb_connection_t *c /**< */, - xcb_selinux_list_properties_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_set_selection_create_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_selinux_set_selection_create_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_selinux_set_selection_create_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -int -xcb_selinux_get_selection_create_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_selection_create_context_cookie_t -xcb_selinux_get_selection_create_context (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_selection_create_context_cookie_t -xcb_selinux_get_selection_create_context_unchecked (xcb_connection_t *c /**< */); - -char * -xcb_selinux_get_selection_create_context_context (const xcb_selinux_get_selection_create_context_reply_t *R /**< */); - -int -xcb_selinux_get_selection_create_context_context_length (const xcb_selinux_get_selection_create_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_selection_create_context_context_end (const xcb_selinux_get_selection_create_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_selection_create_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_selection_create_context_reply_t * -xcb_selinux_get_selection_create_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_selection_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_set_selection_use_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_selinux_set_selection_use_context_checked (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_selinux_set_selection_use_context (xcb_connection_t *c /**< */, - uint32_t context_len /**< */, - const char *context /**< */); - -int -xcb_selinux_get_selection_use_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_selection_use_context_cookie_t -xcb_selinux_get_selection_use_context (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_selection_use_context_cookie_t -xcb_selinux_get_selection_use_context_unchecked (xcb_connection_t *c /**< */); - -char * -xcb_selinux_get_selection_use_context_context (const xcb_selinux_get_selection_use_context_reply_t *R /**< */); - -int -xcb_selinux_get_selection_use_context_context_length (const xcb_selinux_get_selection_use_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_selection_use_context_context_end (const xcb_selinux_get_selection_use_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_selection_use_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_selection_use_context_reply_t * -xcb_selinux_get_selection_use_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_selection_use_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_get_selection_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_selection_context_cookie_t -xcb_selinux_get_selection_context (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_selection_context_cookie_t -xcb_selinux_get_selection_context_unchecked (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */); - -char * -xcb_selinux_get_selection_context_context (const xcb_selinux_get_selection_context_reply_t *R /**< */); - -int -xcb_selinux_get_selection_context_context_length (const xcb_selinux_get_selection_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_selection_context_context_end (const xcb_selinux_get_selection_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_selection_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_selection_context_reply_t * -xcb_selinux_get_selection_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_selection_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_get_selection_data_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_selection_data_context_cookie_t -xcb_selinux_get_selection_data_context (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_selection_data_context_cookie_t -xcb_selinux_get_selection_data_context_unchecked (xcb_connection_t *c /**< */, - xcb_atom_t selection /**< */); - -char * -xcb_selinux_get_selection_data_context_context (const xcb_selinux_get_selection_data_context_reply_t *R /**< */); - -int -xcb_selinux_get_selection_data_context_context_length (const xcb_selinux_get_selection_data_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_selection_data_context_context_end (const xcb_selinux_get_selection_data_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_selection_data_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_selection_data_context_reply_t * -xcb_selinux_get_selection_data_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_selection_data_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_list_selections_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_list_selections_cookie_t -xcb_selinux_list_selections (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_list_selections_cookie_t -xcb_selinux_list_selections_unchecked (xcb_connection_t *c /**< */); - -int -xcb_selinux_list_selections_selections_length (const xcb_selinux_list_selections_reply_t *R /**< */); - -xcb_selinux_list_item_iterator_t -xcb_selinux_list_selections_selections_iterator (const xcb_selinux_list_selections_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_list_selections_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_list_selections_reply_t * -xcb_selinux_list_selections_reply (xcb_connection_t *c /**< */, - xcb_selinux_list_selections_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_selinux_get_client_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_selinux_get_client_context_cookie_t -xcb_selinux_get_client_context (xcb_connection_t *c /**< */, - uint32_t resource /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_selinux_get_client_context_cookie_t -xcb_selinux_get_client_context_unchecked (xcb_connection_t *c /**< */, - uint32_t resource /**< */); - -char * -xcb_selinux_get_client_context_context (const xcb_selinux_get_client_context_reply_t *R /**< */); - -int -xcb_selinux_get_client_context_context_length (const xcb_selinux_get_client_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_selinux_get_client_context_context_end (const xcb_selinux_get_client_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_selinux_get_client_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_selinux_get_client_context_reply_t * -xcb_selinux_get_client_context_reply (xcb_connection_t *c /**< */, - xcb_selinux_get_client_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xtest.c b/external/mit/xorg/lib/libxcb/files/xtest.c deleted file mode 100644 index 215ae658f..000000000 --- a/external/mit/xorg/lib/libxcb/files/xtest.c +++ /dev/null @@ -1,286 +0,0 @@ -/* - * This file generated automatically from xtest.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xtest.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" - -xcb_extension_t xcb_test_id = { "XTEST", 0 }; - -xcb_test_get_version_cookie_t -xcb_test_get_version (xcb_connection_t *c /**< */, - uint8_t major_version /**< */, - uint16_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_test_id, - /* opcode */ XCB_TEST_GET_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_test_get_version_cookie_t xcb_ret; - xcb_test_get_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.pad0 = 0; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_test_get_version_cookie_t -xcb_test_get_version_unchecked (xcb_connection_t *c /**< */, - uint8_t major_version /**< */, - uint16_t minor_version /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_test_id, - /* opcode */ XCB_TEST_GET_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_test_get_version_cookie_t xcb_ret; - xcb_test_get_version_request_t xcb_out; - - xcb_out.major_version = major_version; - xcb_out.pad0 = 0; - xcb_out.minor_version = minor_version; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_test_get_version_reply_t * -xcb_test_get_version_reply (xcb_connection_t *c /**< */, - xcb_test_get_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_test_get_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_test_compare_cursor_cookie_t -xcb_test_compare_cursor (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_cursor_t cursor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_test_id, - /* opcode */ XCB_TEST_COMPARE_CURSOR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_test_compare_cursor_cookie_t xcb_ret; - xcb_test_compare_cursor_request_t xcb_out; - - xcb_out.window = window; - xcb_out.cursor = cursor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_test_compare_cursor_cookie_t -xcb_test_compare_cursor_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_cursor_t cursor /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_test_id, - /* opcode */ XCB_TEST_COMPARE_CURSOR, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_test_compare_cursor_cookie_t xcb_ret; - xcb_test_compare_cursor_request_t xcb_out; - - xcb_out.window = window; - xcb_out.cursor = cursor; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_test_compare_cursor_reply_t * -xcb_test_compare_cursor_reply (xcb_connection_t *c /**< */, - xcb_test_compare_cursor_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_test_compare_cursor_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_test_fake_input_checked (xcb_connection_t *c /**< */, - uint8_t type /**< */, - uint8_t detail /**< */, - uint32_t time /**< */, - xcb_window_t root /**< */, - int16_t rootX /**< */, - int16_t rootY /**< */, - uint8_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_test_id, - /* opcode */ XCB_TEST_FAKE_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_test_fake_input_request_t xcb_out; - - xcb_out.type = type; - xcb_out.detail = detail; - memset(xcb_out.pad0, 0, 2); - xcb_out.time = time; - xcb_out.root = root; - memset(xcb_out.pad1, 0, 8); - xcb_out.rootX = rootX; - xcb_out.rootY = rootY; - memset(xcb_out.pad2, 0, 7); - xcb_out.deviceid = deviceid; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_test_fake_input (xcb_connection_t *c /**< */, - uint8_t type /**< */, - uint8_t detail /**< */, - uint32_t time /**< */, - xcb_window_t root /**< */, - int16_t rootX /**< */, - int16_t rootY /**< */, - uint8_t deviceid /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_test_id, - /* opcode */ XCB_TEST_FAKE_INPUT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_test_fake_input_request_t xcb_out; - - xcb_out.type = type; - xcb_out.detail = detail; - memset(xcb_out.pad0, 0, 2); - xcb_out.time = time; - xcb_out.root = root; - memset(xcb_out.pad1, 0, 8); - xcb_out.rootX = rootX; - xcb_out.rootY = rootY; - memset(xcb_out.pad2, 0, 7); - xcb_out.deviceid = deviceid; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_test_grab_control_checked (xcb_connection_t *c /**< */, - uint8_t impervious /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_test_id, - /* opcode */ XCB_TEST_GRAB_CONTROL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_test_grab_control_request_t xcb_out; - - xcb_out.impervious = impervious; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_test_grab_control (xcb_connection_t *c /**< */, - uint8_t impervious /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_test_id, - /* opcode */ XCB_TEST_GRAB_CONTROL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_test_grab_control_request_t xcb_out; - - xcb_out.impervious = impervious; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - diff --git a/external/mit/xorg/lib/libxcb/files/xtest.h b/external/mit/xorg/lib/libxcb/files/xtest.h deleted file mode 100644 index d51e4ec49..000000000 --- a/external/mit/xorg/lib/libxcb/files/xtest.h +++ /dev/null @@ -1,303 +0,0 @@ -/* - * This file generated automatically from xtest.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Test_API XCB Test API - * @brief Test XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XTEST_H -#define __XTEST_H - -#include "xcb.h" -#include "xproto.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_TEST_MAJOR_VERSION 2 -#define XCB_TEST_MINOR_VERSION 2 - -extern xcb_extension_t xcb_test_id; - -/** - * @brief xcb_test_get_version_cookie_t - **/ -typedef struct xcb_test_get_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_test_get_version_cookie_t; - -/** Opcode for xcb_test_get_version. */ -#define XCB_TEST_GET_VERSION 0 - -/** - * @brief xcb_test_get_version_request_t - **/ -typedef struct xcb_test_get_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t major_version; /**< */ - uint8_t pad0; /**< */ - uint16_t minor_version; /**< */ -} xcb_test_get_version_request_t; - -/** - * @brief xcb_test_get_version_reply_t - **/ -typedef struct xcb_test_get_version_reply_t { - uint8_t response_type; /**< */ - uint8_t major_version; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t minor_version; /**< */ -} xcb_test_get_version_reply_t; - -typedef enum xcb_test_cursor_t { - XCB_TEST_CURSOR_NONE = 0, - XCB_TEST_CURSOR_CURRENT = 1 -} xcb_test_cursor_t; - -/** - * @brief xcb_test_compare_cursor_cookie_t - **/ -typedef struct xcb_test_compare_cursor_cookie_t { - unsigned int sequence; /**< */ -} xcb_test_compare_cursor_cookie_t; - -/** Opcode for xcb_test_compare_cursor. */ -#define XCB_TEST_COMPARE_CURSOR 1 - -/** - * @brief xcb_test_compare_cursor_request_t - **/ -typedef struct xcb_test_compare_cursor_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ - xcb_cursor_t cursor; /**< */ -} xcb_test_compare_cursor_request_t; - -/** - * @brief xcb_test_compare_cursor_reply_t - **/ -typedef struct xcb_test_compare_cursor_reply_t { - uint8_t response_type; /**< */ - uint8_t same; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ -} xcb_test_compare_cursor_reply_t; - -/** Opcode for xcb_test_fake_input. */ -#define XCB_TEST_FAKE_INPUT 2 - -/** - * @brief xcb_test_fake_input_request_t - **/ -typedef struct xcb_test_fake_input_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t type; /**< */ - uint8_t detail; /**< */ - uint8_t pad0[2]; /**< */ - uint32_t time; /**< */ - xcb_window_t root; /**< */ - uint8_t pad1[8]; /**< */ - int16_t rootX; /**< */ - int16_t rootY; /**< */ - uint8_t pad2[7]; /**< */ - uint8_t deviceid; /**< */ -} xcb_test_fake_input_request_t; - -/** Opcode for xcb_test_grab_control. */ -#define XCB_TEST_GRAB_CONTROL 3 - -/** - * @brief xcb_test_grab_control_request_t - **/ -typedef struct xcb_test_grab_control_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - uint8_t impervious; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_test_grab_control_request_t; - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_test_get_version_cookie_t -xcb_test_get_version (xcb_connection_t *c /**< */, - uint8_t major_version /**< */, - uint16_t minor_version /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_test_get_version_cookie_t -xcb_test_get_version_unchecked (xcb_connection_t *c /**< */, - uint8_t major_version /**< */, - uint16_t minor_version /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_test_get_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_test_get_version_reply_t * -xcb_test_get_version_reply (xcb_connection_t *c /**< */, - xcb_test_get_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_test_compare_cursor_cookie_t -xcb_test_compare_cursor (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_cursor_t cursor /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_test_compare_cursor_cookie_t -xcb_test_compare_cursor_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */, - xcb_cursor_t cursor /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_test_compare_cursor_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_test_compare_cursor_reply_t * -xcb_test_compare_cursor_reply (xcb_connection_t *c /**< */, - xcb_test_compare_cursor_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_test_fake_input_checked (xcb_connection_t *c /**< */, - uint8_t type /**< */, - uint8_t detail /**< */, - uint32_t time /**< */, - xcb_window_t root /**< */, - int16_t rootX /**< */, - int16_t rootY /**< */, - uint8_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_test_fake_input (xcb_connection_t *c /**< */, - uint8_t type /**< */, - uint8_t detail /**< */, - uint32_t time /**< */, - xcb_window_t root /**< */, - int16_t rootX /**< */, - int16_t rootY /**< */, - uint8_t deviceid /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_test_grab_control_checked (xcb_connection_t *c /**< */, - uint8_t impervious /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_test_grab_control (xcb_connection_t *c /**< */, - uint8_t impervious /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xv.c b/external/mit/xorg/lib/libxcb/files/xv.c deleted file mode 100644 index b8302fbd9..000000000 --- a/external/mit/xorg/lib/libxcb/files/xv.c +++ /dev/null @@ -1,2331 +0,0 @@ -/* - * This file generated automatically from xv.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xv.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xproto.h" -#include "shm.h" - -xcb_extension_t xcb_xv_id = { "XVideo", 0 }; - -void -xcb_xv_port_next (xcb_xv_port_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xv_port_t); -} - -xcb_generic_iterator_t -xcb_xv_port_end (xcb_xv_port_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xv_encoding_next (xcb_xv_encoding_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xv_encoding_t); -} - -xcb_generic_iterator_t -xcb_xv_encoding_end (xcb_xv_encoding_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xv_rational_next (xcb_xv_rational_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xv_rational_t); -} - -xcb_generic_iterator_t -xcb_xv_rational_end (xcb_xv_rational_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xv_format_next (xcb_xv_format_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xv_format_t); -} - -xcb_generic_iterator_t -xcb_xv_format_end (xcb_xv_format_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -int -xcb_xv_adaptor_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xv_adaptor_info_t *_aux = (xcb_xv_adaptor_info_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xv_adaptor_info_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_size * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - xcb_align_to = 4; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* formats */ - xcb_block_len += _aux->num_formats * sizeof(xcb_xv_format_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xv_format_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_xv_adaptor_info_name (const xcb_xv_adaptor_info_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_xv_adaptor_info_name_length (const xcb_xv_adaptor_info_t *R /**< */) -{ - return R->name_size; -} - -xcb_generic_iterator_t -xcb_xv_adaptor_info_name_end (const xcb_xv_adaptor_info_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->name_size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xv_format_t * -xcb_xv_adaptor_info_formats (const xcb_xv_adaptor_info_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xv_adaptor_info_name_end(R); - return (xcb_xv_format_t *) ((char *) prev.data + ((-prev.index) & (4 - 1)) + 0); -} - -int -xcb_xv_adaptor_info_formats_length (const xcb_xv_adaptor_info_t *R /**< */) -{ - return R->num_formats; -} - -xcb_xv_format_iterator_t -xcb_xv_adaptor_info_formats_iterator (const xcb_xv_adaptor_info_t *R /**< */) -{ - xcb_xv_format_iterator_t i; - xcb_generic_iterator_t prev = xcb_xv_adaptor_info_name_end(R); - i.data = (xcb_xv_format_t *) ((char *) prev.data + ((-prev.index) & (4 - 1))); - i.rem = R->num_formats; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xv_adaptor_info_next (xcb_xv_adaptor_info_iterator_t *i /**< */) -{ - xcb_xv_adaptor_info_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xv_adaptor_info_t *)(((char *)R) + xcb_xv_adaptor_info_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xv_adaptor_info_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xv_adaptor_info_end (xcb_xv_adaptor_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xv_adaptor_info_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_xv_encoding_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xv_encoding_info_t *_aux = (xcb_xv_encoding_info_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xv_encoding_info_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->name_size * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_xv_encoding_info_name (const xcb_xv_encoding_info_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_xv_encoding_info_name_length (const xcb_xv_encoding_info_t *R /**< */) -{ - return R->name_size; -} - -xcb_generic_iterator_t -xcb_xv_encoding_info_name_end (const xcb_xv_encoding_info_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->name_size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xv_encoding_info_next (xcb_xv_encoding_info_iterator_t *i /**< */) -{ - xcb_xv_encoding_info_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xv_encoding_info_t *)(((char *)R) + xcb_xv_encoding_info_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xv_encoding_info_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xv_encoding_info_end (xcb_xv_encoding_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xv_encoding_info_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_xv_image_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xv_image_t *_aux = (xcb_xv_image_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xv_image_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* pitches */ - xcb_block_len += _aux->num_planes * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* offsets */ - xcb_block_len += _aux->num_planes * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* data */ - xcb_block_len += _aux->data_size * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -uint32_t * -xcb_xv_image_pitches (const xcb_xv_image_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_xv_image_pitches_length (const xcb_xv_image_t *R /**< */) -{ - return R->num_planes; -} - -xcb_generic_iterator_t -xcb_xv_image_pitches_end (const xcb_xv_image_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->num_planes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint32_t * -xcb_xv_image_offsets (const xcb_xv_image_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xv_image_pitches_end(R); - return (uint32_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index) + 0); -} - -int -xcb_xv_image_offsets_length (const xcb_xv_image_t *R /**< */) -{ - return R->num_planes; -} - -xcb_generic_iterator_t -xcb_xv_image_offsets_end (const xcb_xv_image_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_xv_image_pitches_end(R); - i.data = ((uint32_t *) child.data) + (R->num_planes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint8_t * -xcb_xv_image_data (const xcb_xv_image_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xv_image_offsets_end(R); - return (uint8_t *) ((char *) prev.data + XCB_TYPE_PAD(uint8_t, prev.index) + 0); -} - -int -xcb_xv_image_data_length (const xcb_xv_image_t *R /**< */) -{ - return R->data_size; -} - -xcb_generic_iterator_t -xcb_xv_image_data_end (const xcb_xv_image_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_xv_image_offsets_end(R); - i.data = ((uint8_t *) child.data) + (R->data_size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xv_image_next (xcb_xv_image_iterator_t *i /**< */) -{ - xcb_xv_image_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xv_image_t *)(((char *)R) + xcb_xv_image_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xv_image_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xv_image_end (xcb_xv_image_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xv_image_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -int -xcb_xv_attribute_info_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xv_attribute_info_t *_aux = (xcb_xv_attribute_info_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xv_attribute_info_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* name */ - xcb_block_len += _aux->size * sizeof(char); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(char); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -char * -xcb_xv_attribute_info_name (const xcb_xv_attribute_info_t *R /**< */) -{ - return (char *) (R + 1); -} - -int -xcb_xv_attribute_info_name_length (const xcb_xv_attribute_info_t *R /**< */) -{ - return R->size; -} - -xcb_generic_iterator_t -xcb_xv_attribute_info_name_end (const xcb_xv_attribute_info_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -void -xcb_xv_attribute_info_next (xcb_xv_attribute_info_iterator_t *i /**< */) -{ - xcb_xv_attribute_info_t *R = i->data; - xcb_generic_iterator_t child; - child.data = (xcb_xv_attribute_info_t *)(((char *)R) + xcb_xv_attribute_info_sizeof(R)); - i->index = (char *) child.data - (char *) i->data; - --i->rem; - i->data = (xcb_xv_attribute_info_t *) child.data; -} - -xcb_generic_iterator_t -xcb_xv_attribute_info_end (xcb_xv_attribute_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xv_attribute_info_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - -void -xcb_xv_image_format_info_next (xcb_xv_image_format_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xv_image_format_info_t); -} - -xcb_generic_iterator_t -xcb_xv_image_format_info_end (xcb_xv_image_format_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_xv_query_extension_cookie_t -xcb_xv_query_extension (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_EXTENSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_extension_cookie_t xcb_ret; - xcb_xv_query_extension_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_query_extension_cookie_t -xcb_xv_query_extension_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_EXTENSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_extension_cookie_t xcb_ret; - xcb_xv_query_extension_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_query_extension_reply_t * -xcb_xv_query_extension_reply (xcb_connection_t *c /**< */, - xcb_xv_query_extension_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_extension_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xv_query_adaptors_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xv_query_adaptors_reply_t *_aux = (xcb_xv_query_adaptors_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_xv_query_adaptors_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* info */ - for(i=0; i<_aux->num_adaptors; i++) { - xcb_tmp_len = xcb_xv_adaptor_info_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xv_adaptor_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xv_query_adaptors_cookie_t -xcb_xv_query_adaptors (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_ADAPTORS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_adaptors_cookie_t xcb_ret; - xcb_xv_query_adaptors_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_query_adaptors_cookie_t -xcb_xv_query_adaptors_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_ADAPTORS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_adaptors_cookie_t xcb_ret; - xcb_xv_query_adaptors_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xv_query_adaptors_info_length (const xcb_xv_query_adaptors_reply_t *R /**< */) -{ - return R->num_adaptors; -} - -xcb_xv_adaptor_info_iterator_t -xcb_xv_query_adaptors_info_iterator (const xcb_xv_query_adaptors_reply_t *R /**< */) -{ - xcb_xv_adaptor_info_iterator_t i; - i.data = (xcb_xv_adaptor_info_t *) (R + 1); - i.rem = R->num_adaptors; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xv_query_adaptors_reply_t * -xcb_xv_query_adaptors_reply (xcb_connection_t *c /**< */, - xcb_xv_query_adaptors_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_adaptors_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xv_query_encodings_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xv_query_encodings_reply_t *_aux = (xcb_xv_query_encodings_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_xv_query_encodings_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* info */ - for(i=0; i<_aux->num_encodings; i++) { - xcb_tmp_len = xcb_xv_encoding_info_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xv_encoding_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xv_query_encodings_cookie_t -xcb_xv_query_encodings (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_ENCODINGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_encodings_cookie_t xcb_ret; - xcb_xv_query_encodings_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_query_encodings_cookie_t -xcb_xv_query_encodings_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_ENCODINGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_encodings_cookie_t xcb_ret; - xcb_xv_query_encodings_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xv_query_encodings_info_length (const xcb_xv_query_encodings_reply_t *R /**< */) -{ - return R->num_encodings; -} - -xcb_xv_encoding_info_iterator_t -xcb_xv_query_encodings_info_iterator (const xcb_xv_query_encodings_reply_t *R /**< */) -{ - xcb_xv_encoding_info_iterator_t i; - i.data = (xcb_xv_encoding_info_t *) (R + 1); - i.rem = R->num_encodings; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xv_query_encodings_reply_t * -xcb_xv_query_encodings_reply (xcb_connection_t *c /**< */, - xcb_xv_query_encodings_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_encodings_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_xv_grab_port_cookie_t -xcb_xv_grab_port (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GRAB_PORT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_grab_port_cookie_t xcb_ret; - xcb_xv_grab_port_request_t xcb_out; - - xcb_out.port = port; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_grab_port_cookie_t -xcb_xv_grab_port_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GRAB_PORT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_grab_port_cookie_t xcb_ret; - xcb_xv_grab_port_request_t xcb_out; - - xcb_out.port = port; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_grab_port_reply_t * -xcb_xv_grab_port_reply (xcb_connection_t *c /**< */, - xcb_xv_grab_port_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_grab_port_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xv_ungrab_port_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_UNGRAB_PORT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_ungrab_port_request_t xcb_out; - - xcb_out.port = port; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_ungrab_port (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_UNGRAB_PORT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_ungrab_port_request_t xcb_out; - - xcb_out.port = port; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_put_video_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_put_video (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_put_still_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_STILL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_still_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_put_still (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_STILL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_still_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_get_video_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_get_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_get_video (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_get_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_get_still_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_STILL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_get_still_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_get_still (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_STILL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_get_still_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_stop_video_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_STOP_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_stop_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_stop_video (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_STOP_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_stop_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_select_video_notify_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint8_t onoff /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SELECT_VIDEO_NOTIFY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_select_video_notify_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.onoff = onoff; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_select_video_notify (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint8_t onoff /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SELECT_VIDEO_NOTIFY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_select_video_notify_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.onoff = onoff; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_select_port_notify_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint8_t onoff /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SELECT_PORT_NOTIFY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_select_port_notify_request_t xcb_out; - - xcb_out.port = port; - xcb_out.onoff = onoff; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_select_port_notify (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint8_t onoff /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SELECT_PORT_NOTIFY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_select_port_notify_request_t xcb_out; - - xcb_out.port = port; - xcb_out.onoff = onoff; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_query_best_size_cookie_t -xcb_xv_query_best_size (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint8_t motion /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_BEST_SIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_best_size_cookie_t xcb_ret; - xcb_xv_query_best_size_request_t xcb_out; - - xcb_out.port = port; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.motion = motion; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_query_best_size_cookie_t -xcb_xv_query_best_size_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint8_t motion /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_BEST_SIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_best_size_cookie_t xcb_ret; - xcb_xv_query_best_size_request_t xcb_out; - - xcb_out.port = port; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.motion = motion; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_query_best_size_reply_t * -xcb_xv_query_best_size_reply (xcb_connection_t *c /**< */, - xcb_xv_query_best_size_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_best_size_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xv_set_port_attribute_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */, - int32_t value /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SET_PORT_ATTRIBUTE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_set_port_attribute_request_t xcb_out; - - xcb_out.port = port; - xcb_out.attribute = attribute; - xcb_out.value = value; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_set_port_attribute (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */, - int32_t value /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SET_PORT_ATTRIBUTE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_set_port_attribute_request_t xcb_out; - - xcb_out.port = port; - xcb_out.attribute = attribute; - xcb_out.value = value; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_get_port_attribute_cookie_t -xcb_xv_get_port_attribute (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_PORT_ATTRIBUTE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_get_port_attribute_cookie_t xcb_ret; - xcb_xv_get_port_attribute_request_t xcb_out; - - xcb_out.port = port; - xcb_out.attribute = attribute; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_get_port_attribute_cookie_t -xcb_xv_get_port_attribute_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_PORT_ATTRIBUTE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_get_port_attribute_cookie_t xcb_ret; - xcb_xv_get_port_attribute_request_t xcb_out; - - xcb_out.port = port; - xcb_out.attribute = attribute; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_get_port_attribute_reply_t * -xcb_xv_get_port_attribute_reply (xcb_connection_t *c /**< */, - xcb_xv_get_port_attribute_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_get_port_attribute_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xv_query_port_attributes_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xv_query_port_attributes_reply_t *_aux = (xcb_xv_query_port_attributes_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - unsigned int i; - unsigned int xcb_tmp_len; - - xcb_block_len += sizeof(xcb_xv_query_port_attributes_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* attributes */ - for(i=0; i<_aux->num_attributes; i++) { - xcb_tmp_len = xcb_xv_attribute_info_sizeof(xcb_tmp); - xcb_block_len += xcb_tmp_len; - xcb_tmp += xcb_tmp_len; - } - xcb_align_to = ALIGNOF(xcb_xv_attribute_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xv_query_port_attributes_cookie_t -xcb_xv_query_port_attributes (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_PORT_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_port_attributes_cookie_t xcb_ret; - xcb_xv_query_port_attributes_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_query_port_attributes_cookie_t -xcb_xv_query_port_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_PORT_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_port_attributes_cookie_t xcb_ret; - xcb_xv_query_port_attributes_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xv_query_port_attributes_attributes_length (const xcb_xv_query_port_attributes_reply_t *R /**< */) -{ - return R->num_attributes; -} - -xcb_xv_attribute_info_iterator_t -xcb_xv_query_port_attributes_attributes_iterator (const xcb_xv_query_port_attributes_reply_t *R /**< */) -{ - xcb_xv_attribute_info_iterator_t i; - i.data = (xcb_xv_attribute_info_t *) (R + 1); - i.rem = R->num_attributes; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xv_query_port_attributes_reply_t * -xcb_xv_query_port_attributes_reply (xcb_connection_t *c /**< */, - xcb_xv_query_port_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_port_attributes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xv_list_image_formats_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xv_list_image_formats_reply_t *_aux = (xcb_xv_list_image_formats_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xv_list_image_formats_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* format */ - xcb_block_len += _aux->num_formats * sizeof(xcb_xv_image_format_info_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xv_image_format_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xv_list_image_formats_cookie_t -xcb_xv_list_image_formats (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_LIST_IMAGE_FORMATS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_list_image_formats_cookie_t xcb_ret; - xcb_xv_list_image_formats_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_list_image_formats_cookie_t -xcb_xv_list_image_formats_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_LIST_IMAGE_FORMATS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_list_image_formats_cookie_t xcb_ret; - xcb_xv_list_image_formats_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_image_format_info_t * -xcb_xv_list_image_formats_format (const xcb_xv_list_image_formats_reply_t *R /**< */) -{ - return (xcb_xv_image_format_info_t *) (R + 1); -} - -int -xcb_xv_list_image_formats_format_length (const xcb_xv_list_image_formats_reply_t *R /**< */) -{ - return R->num_formats; -} - -xcb_xv_image_format_info_iterator_t -xcb_xv_list_image_formats_format_iterator (const xcb_xv_list_image_formats_reply_t *R /**< */) -{ - xcb_xv_image_format_info_iterator_t i; - i.data = (xcb_xv_image_format_info_t *) (R + 1); - i.rem = R->num_formats; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xv_list_image_formats_reply_t * -xcb_xv_list_image_formats_reply (xcb_connection_t *c /**< */, - xcb_xv_list_image_formats_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_list_image_formats_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xv_query_image_attributes_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xv_query_image_attributes_reply_t *_aux = (xcb_xv_query_image_attributes_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xv_query_image_attributes_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* pitches */ - xcb_block_len += _aux->num_planes * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - /* offsets */ - xcb_block_len += _aux->num_planes * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xv_query_image_attributes_cookie_t -xcb_xv_query_image_attributes (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint32_t id /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_IMAGE_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_image_attributes_cookie_t xcb_ret; - xcb_xv_query_image_attributes_request_t xcb_out; - - xcb_out.port = port; - xcb_out.id = id; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_query_image_attributes_cookie_t -xcb_xv_query_image_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint32_t id /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_IMAGE_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_image_attributes_cookie_t xcb_ret; - xcb_xv_query_image_attributes_request_t xcb_out; - - xcb_out.port = port; - xcb_out.id = id; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_xv_query_image_attributes_pitches (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_xv_query_image_attributes_pitches_length (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - return R->num_planes; -} - -xcb_generic_iterator_t -xcb_xv_query_image_attributes_pitches_end (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->num_planes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -uint32_t * -xcb_xv_query_image_attributes_offsets (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xv_query_image_attributes_pitches_end(R); - return (uint32_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index) + 0); -} - -int -xcb_xv_query_image_attributes_offsets_length (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - return R->num_planes; -} - -xcb_generic_iterator_t -xcb_xv_query_image_attributes_offsets_end (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_xv_query_image_attributes_pitches_end(R); - i.data = ((uint32_t *) child.data) + (R->num_planes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xv_query_image_attributes_reply_t * -xcb_xv_query_image_attributes_reply (xcb_connection_t *c /**< */, - xcb_xv_query_image_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_image_attributes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xv_put_image_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */) -{ - char *xcb_tmp = (char *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xv_put_image_request_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* data */ - xcb_block_len += data_len * sizeof(uint8_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint8_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_void_cookie_t -xcb_xv_put_image_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t id /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_image_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.id = id; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_w = src_w; - xcb_out.src_h = src_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_put_image (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t id /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_image_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.id = id; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_w = src_w; - xcb_out.src_h = src_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - /* uint8_t data */ - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_shm_put_image_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t id /**< */, - uint32_t offset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint8_t send_event /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SHM_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_shm_put_image_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.shmseg = shmseg; - xcb_out.id = id; - xcb_out.offset = offset; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_w = src_w; - xcb_out.src_h = src_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.send_event = send_event; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xv_shm_put_image (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t id /**< */, - uint32_t offset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint8_t send_event /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SHM_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_shm_put_image_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.shmseg = shmseg; - xcb_out.id = id; - xcb_out.offset = offset; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_w = src_w; - xcb_out.src_h = src_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.send_event = send_event; - memset(xcb_out.pad0, 0, 3); - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - diff --git a/external/mit/xorg/lib/libxcb/files/xv.h b/external/mit/xorg/lib/libxcb/files/xv.h deleted file mode 100644 index d8772df9f..000000000 --- a/external/mit/xorg/lib/libxcb/files/xv.h +++ /dev/null @@ -1,2078 +0,0 @@ -/* - * This file generated automatically from xv.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_Xv_API XCB Xv API - * @brief Xv XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XV_H -#define __XV_H - -#include "xcb.h" -#include "xproto.h" -#include "shm.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_XV_MAJOR_VERSION 2 -#define XCB_XV_MINOR_VERSION 2 - -extern xcb_extension_t xcb_xv_id; - -typedef uint32_t xcb_xv_port_t; - -/** - * @brief xcb_xv_port_iterator_t - **/ -typedef struct xcb_xv_port_iterator_t { - xcb_xv_port_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xv_port_iterator_t; - -typedef uint32_t xcb_xv_encoding_t; - -/** - * @brief xcb_xv_encoding_iterator_t - **/ -typedef struct xcb_xv_encoding_iterator_t { - xcb_xv_encoding_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xv_encoding_iterator_t; - -typedef enum xcb_xv_type_t { - XCB_XV_TYPE_INPUT_MASK = 1, - XCB_XV_TYPE_OUTPUT_MASK = 2, - XCB_XV_TYPE_VIDEO_MASK = 4, - XCB_XV_TYPE_STILL_MASK = 8, - XCB_XV_TYPE_IMAGE_MASK = 16 -} xcb_xv_type_t; - -typedef enum xcb_xv_image_format_info_type_t { - XCB_XV_IMAGE_FORMAT_INFO_TYPE_RGB = 0, - XCB_XV_IMAGE_FORMAT_INFO_TYPE_YUV = 1 -} xcb_xv_image_format_info_type_t; - -typedef enum xcb_xv_image_format_info_format_t { - XCB_XV_IMAGE_FORMAT_INFO_FORMAT_PACKED = 0, - XCB_XV_IMAGE_FORMAT_INFO_FORMAT_PLANAR = 1 -} xcb_xv_image_format_info_format_t; - -typedef enum xcb_xv_attribute_flag_t { - XCB_XV_ATTRIBUTE_FLAG_GETTABLE = 1, - XCB_XV_ATTRIBUTE_FLAG_SETTABLE = 2 -} xcb_xv_attribute_flag_t; - -typedef enum xcb_xv_video_notify_reason_t { - XCB_XV_VIDEO_NOTIFY_REASON_STARTED = 0, - XCB_XV_VIDEO_NOTIFY_REASON_STOPPED = 1, - XCB_XV_VIDEO_NOTIFY_REASON_BUSY = 2, - XCB_XV_VIDEO_NOTIFY_REASON_PREEMPTED = 3, - XCB_XV_VIDEO_NOTIFY_REASON_HARD_ERROR = 4 -} xcb_xv_video_notify_reason_t; - -typedef enum xcb_xv_scanline_order_t { - XCB_XV_SCANLINE_ORDER_TOP_TO_BOTTOM = 0, - XCB_XV_SCANLINE_ORDER_BOTTOM_TO_TOP = 1 -} xcb_xv_scanline_order_t; - -typedef enum xcb_xv_grab_port_status_t { - XCB_XV_GRAB_PORT_STATUS_SUCCESS = 0, - XCB_XV_GRAB_PORT_STATUS_BAD_EXTENSION = 1, - XCB_XV_GRAB_PORT_STATUS_ALREADY_GRABBED = 2, - XCB_XV_GRAB_PORT_STATUS_INVALID_TIME = 3, - XCB_XV_GRAB_PORT_STATUS_BAD_REPLY = 4, - XCB_XV_GRAB_PORT_STATUS_BAD_ALLOC = 5 -} xcb_xv_grab_port_status_t; - -/** - * @brief xcb_xv_rational_t - **/ -typedef struct xcb_xv_rational_t { - int32_t numerator; /**< */ - int32_t denominator; /**< */ -} xcb_xv_rational_t; - -/** - * @brief xcb_xv_rational_iterator_t - **/ -typedef struct xcb_xv_rational_iterator_t { - xcb_xv_rational_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xv_rational_iterator_t; - -/** - * @brief xcb_xv_format_t - **/ -typedef struct xcb_xv_format_t { - xcb_visualid_t visual; /**< */ - uint8_t depth; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_xv_format_t; - -/** - * @brief xcb_xv_format_iterator_t - **/ -typedef struct xcb_xv_format_iterator_t { - xcb_xv_format_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xv_format_iterator_t; - -/** - * @brief xcb_xv_adaptor_info_t - **/ -typedef struct xcb_xv_adaptor_info_t { - xcb_xv_port_t base_id; /**< */ - uint16_t name_size; /**< */ - uint16_t num_ports; /**< */ - uint16_t num_formats; /**< */ - uint8_t type; /**< */ - uint8_t pad0; /**< */ -} xcb_xv_adaptor_info_t; - -/** - * @brief xcb_xv_adaptor_info_iterator_t - **/ -typedef struct xcb_xv_adaptor_info_iterator_t { - xcb_xv_adaptor_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xv_adaptor_info_iterator_t; - -/** - * @brief xcb_xv_encoding_info_t - **/ -typedef struct xcb_xv_encoding_info_t { - xcb_xv_encoding_t encoding; /**< */ - uint16_t name_size; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint8_t pad0[2]; /**< */ - xcb_xv_rational_t rate; /**< */ -} xcb_xv_encoding_info_t; - -/** - * @brief xcb_xv_encoding_info_iterator_t - **/ -typedef struct xcb_xv_encoding_info_iterator_t { - xcb_xv_encoding_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xv_encoding_info_iterator_t; - -/** - * @brief xcb_xv_image_t - **/ -typedef struct xcb_xv_image_t { - uint32_t id; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint32_t data_size; /**< */ - uint32_t num_planes; /**< */ -} xcb_xv_image_t; - -/** - * @brief xcb_xv_image_iterator_t - **/ -typedef struct xcb_xv_image_iterator_t { - xcb_xv_image_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xv_image_iterator_t; - -/** - * @brief xcb_xv_attribute_info_t - **/ -typedef struct xcb_xv_attribute_info_t { - uint32_t flags; /**< */ - int32_t min; /**< */ - int32_t max; /**< */ - uint32_t size; /**< */ -} xcb_xv_attribute_info_t; - -/** - * @brief xcb_xv_attribute_info_iterator_t - **/ -typedef struct xcb_xv_attribute_info_iterator_t { - xcb_xv_attribute_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xv_attribute_info_iterator_t; - -/** - * @brief xcb_xv_image_format_info_t - **/ -typedef struct xcb_xv_image_format_info_t { - uint32_t id; /**< */ - uint8_t type; /**< */ - uint8_t byte_order; /**< */ - uint8_t pad0[2]; /**< */ - uint8_t guid[16]; /**< */ - uint8_t bpp; /**< */ - uint8_t num_planes; /**< */ - uint8_t pad1[2]; /**< */ - uint8_t depth; /**< */ - uint8_t pad2[3]; /**< */ - uint32_t red_mask; /**< */ - uint32_t green_mask; /**< */ - uint32_t blue_mask; /**< */ - uint8_t format; /**< */ - uint8_t pad3[3]; /**< */ - uint32_t y_sample_bits; /**< */ - uint32_t u_sample_bits; /**< */ - uint32_t v_sample_bits; /**< */ - uint32_t vhorz_y_period; /**< */ - uint32_t vhorz_u_period; /**< */ - uint32_t vhorz_v_period; /**< */ - uint32_t vvert_y_period; /**< */ - uint32_t vvert_u_period; /**< */ - uint32_t vvert_v_period; /**< */ - uint8_t vcomp_order[32]; /**< */ - uint8_t vscanline_order; /**< */ - uint8_t pad4[11]; /**< */ -} xcb_xv_image_format_info_t; - -/** - * @brief xcb_xv_image_format_info_iterator_t - **/ -typedef struct xcb_xv_image_format_info_iterator_t { - xcb_xv_image_format_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xv_image_format_info_iterator_t; - -/** Opcode for xcb_xv_bad_port. */ -#define XCB_XV_BAD_PORT 0 - -/** - * @brief xcb_xv_bad_port_error_t - **/ -typedef struct xcb_xv_bad_port_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_xv_bad_port_error_t; - -/** Opcode for xcb_xv_bad_encoding. */ -#define XCB_XV_BAD_ENCODING 1 - -/** - * @brief xcb_xv_bad_encoding_error_t - **/ -typedef struct xcb_xv_bad_encoding_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_xv_bad_encoding_error_t; - -/** Opcode for xcb_xv_bad_control. */ -#define XCB_XV_BAD_CONTROL 2 - -/** - * @brief xcb_xv_bad_control_error_t - **/ -typedef struct xcb_xv_bad_control_error_t { - uint8_t response_type; /**< */ - uint8_t error_code; /**< */ - uint16_t sequence; /**< */ -} xcb_xv_bad_control_error_t; - -/** Opcode for xcb_xv_video_notify. */ -#define XCB_XV_VIDEO_NOTIFY 0 - -/** - * @brief xcb_xv_video_notify_event_t - **/ -typedef struct xcb_xv_video_notify_event_t { - uint8_t response_type; /**< */ - uint8_t reason; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_xv_port_t port; /**< */ -} xcb_xv_video_notify_event_t; - -/** Opcode for xcb_xv_port_notify. */ -#define XCB_XV_PORT_NOTIFY 1 - -/** - * @brief xcb_xv_port_notify_event_t - **/ -typedef struct xcb_xv_port_notify_event_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - xcb_timestamp_t time; /**< */ - xcb_xv_port_t port; /**< */ - xcb_atom_t attribute; /**< */ - int32_t value; /**< */ -} xcb_xv_port_notify_event_t; - -/** - * @brief xcb_xv_query_extension_cookie_t - **/ -typedef struct xcb_xv_query_extension_cookie_t { - unsigned int sequence; /**< */ -} xcb_xv_query_extension_cookie_t; - -/** Opcode for xcb_xv_query_extension. */ -#define XCB_XV_QUERY_EXTENSION 0 - -/** - * @brief xcb_xv_query_extension_request_t - **/ -typedef struct xcb_xv_query_extension_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_xv_query_extension_request_t; - -/** - * @brief xcb_xv_query_extension_reply_t - **/ -typedef struct xcb_xv_query_extension_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t major; /**< */ - uint16_t minor; /**< */ -} xcb_xv_query_extension_reply_t; - -/** - * @brief xcb_xv_query_adaptors_cookie_t - **/ -typedef struct xcb_xv_query_adaptors_cookie_t { - unsigned int sequence; /**< */ -} xcb_xv_query_adaptors_cookie_t; - -/** Opcode for xcb_xv_query_adaptors. */ -#define XCB_XV_QUERY_ADAPTORS 1 - -/** - * @brief xcb_xv_query_adaptors_request_t - **/ -typedef struct xcb_xv_query_adaptors_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_window_t window; /**< */ -} xcb_xv_query_adaptors_request_t; - -/** - * @brief xcb_xv_query_adaptors_reply_t - **/ -typedef struct xcb_xv_query_adaptors_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_adaptors; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_xv_query_adaptors_reply_t; - -/** - * @brief xcb_xv_query_encodings_cookie_t - **/ -typedef struct xcb_xv_query_encodings_cookie_t { - unsigned int sequence; /**< */ -} xcb_xv_query_encodings_cookie_t; - -/** Opcode for xcb_xv_query_encodings. */ -#define XCB_XV_QUERY_ENCODINGS 2 - -/** - * @brief xcb_xv_query_encodings_request_t - **/ -typedef struct xcb_xv_query_encodings_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ -} xcb_xv_query_encodings_request_t; - -/** - * @brief xcb_xv_query_encodings_reply_t - **/ -typedef struct xcb_xv_query_encodings_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t num_encodings; /**< */ - uint8_t pad1[22]; /**< */ -} xcb_xv_query_encodings_reply_t; - -/** - * @brief xcb_xv_grab_port_cookie_t - **/ -typedef struct xcb_xv_grab_port_cookie_t { - unsigned int sequence; /**< */ -} xcb_xv_grab_port_cookie_t; - -/** Opcode for xcb_xv_grab_port. */ -#define XCB_XV_GRAB_PORT 3 - -/** - * @brief xcb_xv_grab_port_request_t - **/ -typedef struct xcb_xv_grab_port_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - xcb_timestamp_t time; /**< */ -} xcb_xv_grab_port_request_t; - -/** - * @brief xcb_xv_grab_port_reply_t - **/ -typedef struct xcb_xv_grab_port_reply_t { - uint8_t response_type; /**< */ - uint8_t result; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ -} xcb_xv_grab_port_reply_t; - -/** Opcode for xcb_xv_ungrab_port. */ -#define XCB_XV_UNGRAB_PORT 4 - -/** - * @brief xcb_xv_ungrab_port_request_t - **/ -typedef struct xcb_xv_ungrab_port_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - xcb_timestamp_t time; /**< */ -} xcb_xv_ungrab_port_request_t; - -/** Opcode for xcb_xv_put_video. */ -#define XCB_XV_PUT_VIDEO 5 - -/** - * @brief xcb_xv_put_video_request_t - **/ -typedef struct xcb_xv_put_video_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - int16_t vid_x; /**< */ - int16_t vid_y; /**< */ - uint16_t vid_w; /**< */ - uint16_t vid_h; /**< */ - int16_t drw_x; /**< */ - int16_t drw_y; /**< */ - uint16_t drw_w; /**< */ - uint16_t drw_h; /**< */ -} xcb_xv_put_video_request_t; - -/** Opcode for xcb_xv_put_still. */ -#define XCB_XV_PUT_STILL 6 - -/** - * @brief xcb_xv_put_still_request_t - **/ -typedef struct xcb_xv_put_still_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - int16_t vid_x; /**< */ - int16_t vid_y; /**< */ - uint16_t vid_w; /**< */ - uint16_t vid_h; /**< */ - int16_t drw_x; /**< */ - int16_t drw_y; /**< */ - uint16_t drw_w; /**< */ - uint16_t drw_h; /**< */ -} xcb_xv_put_still_request_t; - -/** Opcode for xcb_xv_get_video. */ -#define XCB_XV_GET_VIDEO 7 - -/** - * @brief xcb_xv_get_video_request_t - **/ -typedef struct xcb_xv_get_video_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - int16_t vid_x; /**< */ - int16_t vid_y; /**< */ - uint16_t vid_w; /**< */ - uint16_t vid_h; /**< */ - int16_t drw_x; /**< */ - int16_t drw_y; /**< */ - uint16_t drw_w; /**< */ - uint16_t drw_h; /**< */ -} xcb_xv_get_video_request_t; - -/** Opcode for xcb_xv_get_still. */ -#define XCB_XV_GET_STILL 8 - -/** - * @brief xcb_xv_get_still_request_t - **/ -typedef struct xcb_xv_get_still_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - int16_t vid_x; /**< */ - int16_t vid_y; /**< */ - uint16_t vid_w; /**< */ - uint16_t vid_h; /**< */ - int16_t drw_x; /**< */ - int16_t drw_y; /**< */ - uint16_t drw_w; /**< */ - uint16_t drw_h; /**< */ -} xcb_xv_get_still_request_t; - -/** Opcode for xcb_xv_stop_video. */ -#define XCB_XV_STOP_VIDEO 9 - -/** - * @brief xcb_xv_stop_video_request_t - **/ -typedef struct xcb_xv_stop_video_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - xcb_drawable_t drawable; /**< */ -} xcb_xv_stop_video_request_t; - -/** Opcode for xcb_xv_select_video_notify. */ -#define XCB_XV_SELECT_VIDEO_NOTIFY 10 - -/** - * @brief xcb_xv_select_video_notify_request_t - **/ -typedef struct xcb_xv_select_video_notify_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_drawable_t drawable; /**< */ - uint8_t onoff; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_xv_select_video_notify_request_t; - -/** Opcode for xcb_xv_select_port_notify. */ -#define XCB_XV_SELECT_PORT_NOTIFY 11 - -/** - * @brief xcb_xv_select_port_notify_request_t - **/ -typedef struct xcb_xv_select_port_notify_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - uint8_t onoff; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_xv_select_port_notify_request_t; - -/** - * @brief xcb_xv_query_best_size_cookie_t - **/ -typedef struct xcb_xv_query_best_size_cookie_t { - unsigned int sequence; /**< */ -} xcb_xv_query_best_size_cookie_t; - -/** Opcode for xcb_xv_query_best_size. */ -#define XCB_XV_QUERY_BEST_SIZE 12 - -/** - * @brief xcb_xv_query_best_size_request_t - **/ -typedef struct xcb_xv_query_best_size_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - uint16_t vid_w; /**< */ - uint16_t vid_h; /**< */ - uint16_t drw_w; /**< */ - uint16_t drw_h; /**< */ - uint8_t motion; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_xv_query_best_size_request_t; - -/** - * @brief xcb_xv_query_best_size_reply_t - **/ -typedef struct xcb_xv_query_best_size_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t actual_width; /**< */ - uint16_t actual_height; /**< */ -} xcb_xv_query_best_size_reply_t; - -/** Opcode for xcb_xv_set_port_attribute. */ -#define XCB_XV_SET_PORT_ATTRIBUTE 13 - -/** - * @brief xcb_xv_set_port_attribute_request_t - **/ -typedef struct xcb_xv_set_port_attribute_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - xcb_atom_t attribute; /**< */ - int32_t value; /**< */ -} xcb_xv_set_port_attribute_request_t; - -/** - * @brief xcb_xv_get_port_attribute_cookie_t - **/ -typedef struct xcb_xv_get_port_attribute_cookie_t { - unsigned int sequence; /**< */ -} xcb_xv_get_port_attribute_cookie_t; - -/** Opcode for xcb_xv_get_port_attribute. */ -#define XCB_XV_GET_PORT_ATTRIBUTE 14 - -/** - * @brief xcb_xv_get_port_attribute_request_t - **/ -typedef struct xcb_xv_get_port_attribute_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - xcb_atom_t attribute; /**< */ -} xcb_xv_get_port_attribute_request_t; - -/** - * @brief xcb_xv_get_port_attribute_reply_t - **/ -typedef struct xcb_xv_get_port_attribute_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - int32_t value; /**< */ -} xcb_xv_get_port_attribute_reply_t; - -/** - * @brief xcb_xv_query_port_attributes_cookie_t - **/ -typedef struct xcb_xv_query_port_attributes_cookie_t { - unsigned int sequence; /**< */ -} xcb_xv_query_port_attributes_cookie_t; - -/** Opcode for xcb_xv_query_port_attributes. */ -#define XCB_XV_QUERY_PORT_ATTRIBUTES 15 - -/** - * @brief xcb_xv_query_port_attributes_request_t - **/ -typedef struct xcb_xv_query_port_attributes_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ -} xcb_xv_query_port_attributes_request_t; - -/** - * @brief xcb_xv_query_port_attributes_reply_t - **/ -typedef struct xcb_xv_query_port_attributes_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_attributes; /**< */ - uint32_t text_size; /**< */ - uint8_t pad1[16]; /**< */ -} xcb_xv_query_port_attributes_reply_t; - -/** - * @brief xcb_xv_list_image_formats_cookie_t - **/ -typedef struct xcb_xv_list_image_formats_cookie_t { - unsigned int sequence; /**< */ -} xcb_xv_list_image_formats_cookie_t; - -/** Opcode for xcb_xv_list_image_formats. */ -#define XCB_XV_LIST_IMAGE_FORMATS 16 - -/** - * @brief xcb_xv_list_image_formats_request_t - **/ -typedef struct xcb_xv_list_image_formats_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ -} xcb_xv_list_image_formats_request_t; - -/** - * @brief xcb_xv_list_image_formats_reply_t - **/ -typedef struct xcb_xv_list_image_formats_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_formats; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_xv_list_image_formats_reply_t; - -/** - * @brief xcb_xv_query_image_attributes_cookie_t - **/ -typedef struct xcb_xv_query_image_attributes_cookie_t { - unsigned int sequence; /**< */ -} xcb_xv_query_image_attributes_cookie_t; - -/** Opcode for xcb_xv_query_image_attributes. */ -#define XCB_XV_QUERY_IMAGE_ATTRIBUTES 17 - -/** - * @brief xcb_xv_query_image_attributes_request_t - **/ -typedef struct xcb_xv_query_image_attributes_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - uint32_t id; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_xv_query_image_attributes_request_t; - -/** - * @brief xcb_xv_query_image_attributes_reply_t - **/ -typedef struct xcb_xv_query_image_attributes_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num_planes; /**< */ - uint32_t data_size; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint8_t pad1[12]; /**< */ -} xcb_xv_query_image_attributes_reply_t; - -/** Opcode for xcb_xv_put_image. */ -#define XCB_XV_PUT_IMAGE 18 - -/** - * @brief xcb_xv_put_image_request_t - **/ -typedef struct xcb_xv_put_image_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - uint32_t id; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ - uint16_t src_w; /**< */ - uint16_t src_h; /**< */ - int16_t drw_x; /**< */ - int16_t drw_y; /**< */ - uint16_t drw_w; /**< */ - uint16_t drw_h; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_xv_put_image_request_t; - -/** Opcode for xcb_xv_shm_put_image. */ -#define XCB_XV_SHM_PUT_IMAGE 19 - -/** - * @brief xcb_xv_shm_put_image_request_t - **/ -typedef struct xcb_xv_shm_put_image_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port; /**< */ - xcb_drawable_t drawable; /**< */ - xcb_gcontext_t gc; /**< */ - xcb_shm_seg_t shmseg; /**< */ - uint32_t id; /**< */ - uint32_t offset; /**< */ - int16_t src_x; /**< */ - int16_t src_y; /**< */ - uint16_t src_w; /**< */ - uint16_t src_h; /**< */ - int16_t drw_x; /**< */ - int16_t drw_y; /**< */ - uint16_t drw_w; /**< */ - uint16_t drw_h; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint8_t send_event; /**< */ - uint8_t pad0[3]; /**< */ -} xcb_xv_shm_put_image_request_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xv_port_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xv_port_t) - */ -void -xcb_xv_port_next (xcb_xv_port_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xv_port_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xv_port_end (xcb_xv_port_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xv_encoding_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xv_encoding_t) - */ -void -xcb_xv_encoding_next (xcb_xv_encoding_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xv_encoding_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xv_encoding_end (xcb_xv_encoding_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xv_rational_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xv_rational_t) - */ -void -xcb_xv_rational_next (xcb_xv_rational_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xv_rational_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xv_rational_end (xcb_xv_rational_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xv_format_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xv_format_t) - */ -void -xcb_xv_format_next (xcb_xv_format_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xv_format_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xv_format_end (xcb_xv_format_iterator_t i /**< */); - -int -xcb_xv_adaptor_info_sizeof (const void *_buffer /**< */); - -char * -xcb_xv_adaptor_info_name (const xcb_xv_adaptor_info_t *R /**< */); - -int -xcb_xv_adaptor_info_name_length (const xcb_xv_adaptor_info_t *R /**< */); - -xcb_generic_iterator_t -xcb_xv_adaptor_info_name_end (const xcb_xv_adaptor_info_t *R /**< */); - -xcb_xv_format_t * -xcb_xv_adaptor_info_formats (const xcb_xv_adaptor_info_t *R /**< */); - -int -xcb_xv_adaptor_info_formats_length (const xcb_xv_adaptor_info_t *R /**< */); - -xcb_xv_format_iterator_t -xcb_xv_adaptor_info_formats_iterator (const xcb_xv_adaptor_info_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xv_adaptor_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xv_adaptor_info_t) - */ -void -xcb_xv_adaptor_info_next (xcb_xv_adaptor_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xv_adaptor_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xv_adaptor_info_end (xcb_xv_adaptor_info_iterator_t i /**< */); - -int -xcb_xv_encoding_info_sizeof (const void *_buffer /**< */); - -char * -xcb_xv_encoding_info_name (const xcb_xv_encoding_info_t *R /**< */); - -int -xcb_xv_encoding_info_name_length (const xcb_xv_encoding_info_t *R /**< */); - -xcb_generic_iterator_t -xcb_xv_encoding_info_name_end (const xcb_xv_encoding_info_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xv_encoding_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xv_encoding_info_t) - */ -void -xcb_xv_encoding_info_next (xcb_xv_encoding_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xv_encoding_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xv_encoding_info_end (xcb_xv_encoding_info_iterator_t i /**< */); - -int -xcb_xv_image_sizeof (const void *_buffer /**< */); - -uint32_t * -xcb_xv_image_pitches (const xcb_xv_image_t *R /**< */); - -int -xcb_xv_image_pitches_length (const xcb_xv_image_t *R /**< */); - -xcb_generic_iterator_t -xcb_xv_image_pitches_end (const xcb_xv_image_t *R /**< */); - -uint32_t * -xcb_xv_image_offsets (const xcb_xv_image_t *R /**< */); - -int -xcb_xv_image_offsets_length (const xcb_xv_image_t *R /**< */); - -xcb_generic_iterator_t -xcb_xv_image_offsets_end (const xcb_xv_image_t *R /**< */); - -uint8_t * -xcb_xv_image_data (const xcb_xv_image_t *R /**< */); - -int -xcb_xv_image_data_length (const xcb_xv_image_t *R /**< */); - -xcb_generic_iterator_t -xcb_xv_image_data_end (const xcb_xv_image_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xv_image_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xv_image_t) - */ -void -xcb_xv_image_next (xcb_xv_image_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xv_image_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xv_image_end (xcb_xv_image_iterator_t i /**< */); - -int -xcb_xv_attribute_info_sizeof (const void *_buffer /**< */); - -char * -xcb_xv_attribute_info_name (const xcb_xv_attribute_info_t *R /**< */); - -int -xcb_xv_attribute_info_name_length (const xcb_xv_attribute_info_t *R /**< */); - -xcb_generic_iterator_t -xcb_xv_attribute_info_name_end (const xcb_xv_attribute_info_t *R /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xv_attribute_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xv_attribute_info_t) - */ -void -xcb_xv_attribute_info_next (xcb_xv_attribute_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xv_attribute_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xv_attribute_info_end (xcb_xv_attribute_info_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xv_image_format_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xv_image_format_info_t) - */ -void -xcb_xv_image_format_info_next (xcb_xv_image_format_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xv_image_format_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xv_image_format_info_end (xcb_xv_image_format_info_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xv_query_extension_cookie_t -xcb_xv_query_extension (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xv_query_extension_cookie_t -xcb_xv_query_extension_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xv_query_extension_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xv_query_extension_reply_t * -xcb_xv_query_extension_reply (xcb_connection_t *c /**< */, - xcb_xv_query_extension_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xv_query_adaptors_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xv_query_adaptors_cookie_t -xcb_xv_query_adaptors (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xv_query_adaptors_cookie_t -xcb_xv_query_adaptors_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */); - -int -xcb_xv_query_adaptors_info_length (const xcb_xv_query_adaptors_reply_t *R /**< */); - -xcb_xv_adaptor_info_iterator_t -xcb_xv_query_adaptors_info_iterator (const xcb_xv_query_adaptors_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xv_query_adaptors_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xv_query_adaptors_reply_t * -xcb_xv_query_adaptors_reply (xcb_connection_t *c /**< */, - xcb_xv_query_adaptors_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xv_query_encodings_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xv_query_encodings_cookie_t -xcb_xv_query_encodings (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xv_query_encodings_cookie_t -xcb_xv_query_encodings_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */); - -int -xcb_xv_query_encodings_info_length (const xcb_xv_query_encodings_reply_t *R /**< */); - -xcb_xv_encoding_info_iterator_t -xcb_xv_query_encodings_info_iterator (const xcb_xv_query_encodings_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xv_query_encodings_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xv_query_encodings_reply_t * -xcb_xv_query_encodings_reply (xcb_connection_t *c /**< */, - xcb_xv_query_encodings_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xv_grab_port_cookie_t -xcb_xv_grab_port (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xv_grab_port_cookie_t -xcb_xv_grab_port_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xv_grab_port_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xv_grab_port_reply_t * -xcb_xv_grab_port_reply (xcb_connection_t *c /**< */, - xcb_xv_grab_port_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xv_ungrab_port_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xv_ungrab_port (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xv_put_video_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xv_put_video (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xv_put_still_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xv_put_still (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xv_get_video_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xv_get_video (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xv_get_still_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xv_get_still (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xv_stop_video_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xv_stop_video (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xv_select_video_notify_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint8_t onoff /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xv_select_video_notify (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint8_t onoff /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xv_select_port_notify_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint8_t onoff /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xv_select_port_notify (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint8_t onoff /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xv_query_best_size_cookie_t -xcb_xv_query_best_size (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint8_t motion /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xv_query_best_size_cookie_t -xcb_xv_query_best_size_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint8_t motion /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xv_query_best_size_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xv_query_best_size_reply_t * -xcb_xv_query_best_size_reply (xcb_connection_t *c /**< */, - xcb_xv_query_best_size_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xv_set_port_attribute_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */, - int32_t value /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xv_set_port_attribute (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */, - int32_t value /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xv_get_port_attribute_cookie_t -xcb_xv_get_port_attribute (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xv_get_port_attribute_cookie_t -xcb_xv_get_port_attribute_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xv_get_port_attribute_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xv_get_port_attribute_reply_t * -xcb_xv_get_port_attribute_reply (xcb_connection_t *c /**< */, - xcb_xv_get_port_attribute_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xv_query_port_attributes_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xv_query_port_attributes_cookie_t -xcb_xv_query_port_attributes (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xv_query_port_attributes_cookie_t -xcb_xv_query_port_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */); - -int -xcb_xv_query_port_attributes_attributes_length (const xcb_xv_query_port_attributes_reply_t *R /**< */); - -xcb_xv_attribute_info_iterator_t -xcb_xv_query_port_attributes_attributes_iterator (const xcb_xv_query_port_attributes_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xv_query_port_attributes_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xv_query_port_attributes_reply_t * -xcb_xv_query_port_attributes_reply (xcb_connection_t *c /**< */, - xcb_xv_query_port_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xv_list_image_formats_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xv_list_image_formats_cookie_t -xcb_xv_list_image_formats (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xv_list_image_formats_cookie_t -xcb_xv_list_image_formats_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */); - -xcb_xv_image_format_info_t * -xcb_xv_list_image_formats_format (const xcb_xv_list_image_formats_reply_t *R /**< */); - -int -xcb_xv_list_image_formats_format_length (const xcb_xv_list_image_formats_reply_t *R /**< */); - -xcb_xv_image_format_info_iterator_t -xcb_xv_list_image_formats_format_iterator (const xcb_xv_list_image_formats_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xv_list_image_formats_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xv_list_image_formats_reply_t * -xcb_xv_list_image_formats_reply (xcb_connection_t *c /**< */, - xcb_xv_list_image_formats_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xv_query_image_attributes_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xv_query_image_attributes_cookie_t -xcb_xv_query_image_attributes (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint32_t id /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xv_query_image_attributes_cookie_t -xcb_xv_query_image_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint32_t id /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -uint32_t * -xcb_xv_query_image_attributes_pitches (const xcb_xv_query_image_attributes_reply_t *R /**< */); - -int -xcb_xv_query_image_attributes_pitches_length (const xcb_xv_query_image_attributes_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xv_query_image_attributes_pitches_end (const xcb_xv_query_image_attributes_reply_t *R /**< */); - -uint32_t * -xcb_xv_query_image_attributes_offsets (const xcb_xv_query_image_attributes_reply_t *R /**< */); - -int -xcb_xv_query_image_attributes_offsets_length (const xcb_xv_query_image_attributes_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xv_query_image_attributes_offsets_end (const xcb_xv_query_image_attributes_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xv_query_image_attributes_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xv_query_image_attributes_reply_t * -xcb_xv_query_image_attributes_reply (xcb_connection_t *c /**< */, - xcb_xv_query_image_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xv_put_image_sizeof (const void *_buffer /**< */, - uint32_t data_len /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xv_put_image_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t id /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xv_put_image (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t id /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xv_shm_put_image_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t id /**< */, - uint32_t offset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint8_t send_event /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xv_shm_put_image (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t id /**< */, - uint32_t offset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint8_t send_event /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/files/xvmc.c b/external/mit/xorg/lib/libxcb/files/xvmc.c deleted file mode 100644 index e309689c4..000000000 --- a/external/mit/xorg/lib/libxcb/files/xvmc.c +++ /dev/null @@ -1,913 +0,0 @@ -/* - * This file generated automatically from xvmc.xml by c_client.py. - * Edit at your peril. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include -#include /* for offsetof() */ -#include "xcbext.h" -#include "xvmc.h" - -#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member) -#include "xv.h" - -xcb_extension_t xcb_xvmc_id = { "XVideo-MotionCompensation", 0 }; - -void -xcb_xvmc_context_next (xcb_xvmc_context_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xvmc_context_t); -} - -xcb_generic_iterator_t -xcb_xvmc_context_end (xcb_xvmc_context_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xvmc_surface_next (xcb_xvmc_surface_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xvmc_surface_t); -} - -xcb_generic_iterator_t -xcb_xvmc_surface_end (xcb_xvmc_surface_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xvmc_subpicture_next (xcb_xvmc_subpicture_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xvmc_subpicture_t); -} - -xcb_generic_iterator_t -xcb_xvmc_subpicture_end (xcb_xvmc_subpicture_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -void -xcb_xvmc_surface_info_next (xcb_xvmc_surface_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xvmc_surface_info_t); -} - -xcb_generic_iterator_t -xcb_xvmc_surface_info_end (xcb_xvmc_surface_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - -xcb_xvmc_query_version_cookie_t -xcb_xvmc_query_version (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_query_version_cookie_t xcb_ret; - xcb_xvmc_query_version_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xvmc_query_version_cookie_t -xcb_xvmc_query_version_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_QUERY_VERSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_query_version_cookie_t xcb_ret; - xcb_xvmc_query_version_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xvmc_query_version_reply_t * -xcb_xvmc_query_version_reply (xcb_connection_t *c /**< */, - xcb_xvmc_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xvmc_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xvmc_list_surface_types_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xvmc_list_surface_types_reply_t *_aux = (xcb_xvmc_list_surface_types_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xvmc_list_surface_types_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* surfaces */ - xcb_block_len += _aux->num * sizeof(xcb_xvmc_surface_info_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xvmc_surface_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xvmc_list_surface_types_cookie_t -xcb_xvmc_list_surface_types (xcb_connection_t *c /**< */, - xcb_xv_port_t port_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_LIST_SURFACE_TYPES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_list_surface_types_cookie_t xcb_ret; - xcb_xvmc_list_surface_types_request_t xcb_out; - - xcb_out.port_id = port_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xvmc_list_surface_types_cookie_t -xcb_xvmc_list_surface_types_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_LIST_SURFACE_TYPES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_list_surface_types_cookie_t xcb_ret; - xcb_xvmc_list_surface_types_request_t xcb_out; - - xcb_out.port_id = port_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xvmc_surface_info_t * -xcb_xvmc_list_surface_types_surfaces (const xcb_xvmc_list_surface_types_reply_t *R /**< */) -{ - return (xcb_xvmc_surface_info_t *) (R + 1); -} - -int -xcb_xvmc_list_surface_types_surfaces_length (const xcb_xvmc_list_surface_types_reply_t *R /**< */) -{ - return R->num; -} - -xcb_xvmc_surface_info_iterator_t -xcb_xvmc_list_surface_types_surfaces_iterator (const xcb_xvmc_list_surface_types_reply_t *R /**< */) -{ - xcb_xvmc_surface_info_iterator_t i; - i.data = (xcb_xvmc_surface_info_t *) (R + 1); - i.rem = R->num; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xvmc_list_surface_types_reply_t * -xcb_xvmc_list_surface_types_reply (xcb_connection_t *c /**< */, - xcb_xvmc_list_surface_types_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xvmc_list_surface_types_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -int -xcb_xvmc_create_context_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xvmc_create_context_reply_t *_aux = (xcb_xvmc_create_context_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xvmc_create_context_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* priv_data */ - xcb_block_len += _aux->length * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xvmc_create_context_cookie_t -xcb_xvmc_create_context (xcb_connection_t *c /**< */, - xcb_xvmc_context_t context_id /**< */, - xcb_xv_port_t port_id /**< */, - xcb_xvmc_surface_t surface_id /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t flags /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_create_context_cookie_t xcb_ret; - xcb_xvmc_create_context_request_t xcb_out; - - xcb_out.context_id = context_id; - xcb_out.port_id = port_id; - xcb_out.surface_id = surface_id; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.flags = flags; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xvmc_create_context_cookie_t -xcb_xvmc_create_context_unchecked (xcb_connection_t *c /**< */, - xcb_xvmc_context_t context_id /**< */, - xcb_xv_port_t port_id /**< */, - xcb_xvmc_surface_t surface_id /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t flags /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_CREATE_CONTEXT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_create_context_cookie_t xcb_ret; - xcb_xvmc_create_context_request_t xcb_out; - - xcb_out.context_id = context_id; - xcb_out.port_id = port_id; - xcb_out.surface_id = surface_id; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.flags = flags; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_xvmc_create_context_priv_data (const xcb_xvmc_create_context_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_xvmc_create_context_priv_data_length (const xcb_xvmc_create_context_reply_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_xvmc_create_context_priv_data_end (const xcb_xvmc_create_context_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xvmc_create_context_reply_t * -xcb_xvmc_create_context_reply (xcb_connection_t *c /**< */, - xcb_xvmc_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xvmc_create_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xvmc_destroy_context_checked (xcb_connection_t *c /**< */, - xcb_xvmc_context_t context_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_DESTROY_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xvmc_destroy_context_request_t xcb_out; - - xcb_out.context_id = context_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xvmc_destroy_context (xcb_connection_t *c /**< */, - xcb_xvmc_context_t context_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_DESTROY_CONTEXT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xvmc_destroy_context_request_t xcb_out; - - xcb_out.context_id = context_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xvmc_create_surface_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xvmc_create_surface_reply_t *_aux = (xcb_xvmc_create_surface_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xvmc_create_surface_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* priv_data */ - xcb_block_len += _aux->length * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xvmc_create_surface_cookie_t -xcb_xvmc_create_surface (xcb_connection_t *c /**< */, - xcb_xvmc_surface_t surface_id /**< */, - xcb_xvmc_context_t context_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_CREATE_SURFACE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_create_surface_cookie_t xcb_ret; - xcb_xvmc_create_surface_request_t xcb_out; - - xcb_out.surface_id = surface_id; - xcb_out.context_id = context_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xvmc_create_surface_cookie_t -xcb_xvmc_create_surface_unchecked (xcb_connection_t *c /**< */, - xcb_xvmc_surface_t surface_id /**< */, - xcb_xvmc_context_t context_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_CREATE_SURFACE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_create_surface_cookie_t xcb_ret; - xcb_xvmc_create_surface_request_t xcb_out; - - xcb_out.surface_id = surface_id; - xcb_out.context_id = context_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_xvmc_create_surface_priv_data (const xcb_xvmc_create_surface_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_xvmc_create_surface_priv_data_length (const xcb_xvmc_create_surface_reply_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_xvmc_create_surface_priv_data_end (const xcb_xvmc_create_surface_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xvmc_create_surface_reply_t * -xcb_xvmc_create_surface_reply (xcb_connection_t *c /**< */, - xcb_xvmc_create_surface_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xvmc_create_surface_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xvmc_destroy_surface_checked (xcb_connection_t *c /**< */, - xcb_xvmc_surface_t surface_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_DESTROY_SURFACE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xvmc_destroy_surface_request_t xcb_out; - - xcb_out.surface_id = surface_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xvmc_destroy_surface (xcb_connection_t *c /**< */, - xcb_xvmc_surface_t surface_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_DESTROY_SURFACE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xvmc_destroy_surface_request_t xcb_out; - - xcb_out.surface_id = surface_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xvmc_create_subpicture_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xvmc_create_subpicture_reply_t *_aux = (xcb_xvmc_create_subpicture_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xvmc_create_subpicture_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* priv_data */ - xcb_block_len += _aux->length * sizeof(uint32_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(uint32_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xvmc_create_subpicture_cookie_t -xcb_xvmc_create_subpicture (xcb_connection_t *c /**< */, - xcb_xvmc_subpicture_t subpicture_id /**< */, - xcb_xvmc_context_t context /**< */, - uint32_t xvimage_id /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_CREATE_SUBPICTURE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_create_subpicture_cookie_t xcb_ret; - xcb_xvmc_create_subpicture_request_t xcb_out; - - xcb_out.subpicture_id = subpicture_id; - xcb_out.context = context; - xcb_out.xvimage_id = xvimage_id; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xvmc_create_subpicture_cookie_t -xcb_xvmc_create_subpicture_unchecked (xcb_connection_t *c /**< */, - xcb_xvmc_subpicture_t subpicture_id /**< */, - xcb_xvmc_context_t context /**< */, - uint32_t xvimage_id /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_CREATE_SUBPICTURE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_create_subpicture_cookie_t xcb_ret; - xcb_xvmc_create_subpicture_request_t xcb_out; - - xcb_out.subpicture_id = subpicture_id; - xcb_out.context = context; - xcb_out.xvimage_id = xvimage_id; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -uint32_t * -xcb_xvmc_create_subpicture_priv_data (const xcb_xvmc_create_subpicture_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - -int -xcb_xvmc_create_subpicture_priv_data_length (const xcb_xvmc_create_subpicture_reply_t *R /**< */) -{ - return R->length; -} - -xcb_generic_iterator_t -xcb_xvmc_create_subpicture_priv_data_end (const xcb_xvmc_create_subpicture_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->length); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xvmc_create_subpicture_reply_t * -xcb_xvmc_create_subpicture_reply (xcb_connection_t *c /**< */, - xcb_xvmc_create_subpicture_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xvmc_create_subpicture_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - -xcb_void_cookie_t -xcb_xvmc_destroy_subpicture_checked (xcb_connection_t *c /**< */, - xcb_xvmc_subpicture_t subpicture_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_DESTROY_SUBPICTURE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xvmc_destroy_subpicture_request_t xcb_out; - - xcb_out.subpicture_id = subpicture_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_void_cookie_t -xcb_xvmc_destroy_subpicture (xcb_connection_t *c /**< */, - xcb_xvmc_subpicture_t subpicture_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_DESTROY_SUBPICTURE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xvmc_destroy_subpicture_request_t xcb_out; - - xcb_out.subpicture_id = subpicture_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -int -xcb_xvmc_list_subpicture_types_sizeof (const void *_buffer /**< */) -{ - char *xcb_tmp = (char *)_buffer; - const xcb_xvmc_list_subpicture_types_reply_t *_aux = (xcb_xvmc_list_subpicture_types_reply_t *)_buffer; - unsigned int xcb_buffer_len = 0; - unsigned int xcb_block_len = 0; - unsigned int xcb_pad = 0; - unsigned int xcb_align_to = 0; - - - xcb_block_len += sizeof(xcb_xvmc_list_subpicture_types_reply_t); - xcb_tmp += xcb_block_len; - xcb_buffer_len += xcb_block_len; - xcb_block_len = 0; - /* types */ - xcb_block_len += _aux->num * sizeof(xcb_xv_image_format_info_t); - xcb_tmp += xcb_block_len; - xcb_align_to = ALIGNOF(xcb_xv_image_format_info_t); - /* insert padding */ - xcb_pad = -xcb_block_len & (xcb_align_to - 1); - xcb_buffer_len += xcb_block_len + xcb_pad; - if (0 != xcb_pad) { - xcb_tmp += xcb_pad; - xcb_pad = 0; - } - xcb_block_len = 0; - - return xcb_buffer_len; -} - -xcb_xvmc_list_subpicture_types_cookie_t -xcb_xvmc_list_subpicture_types (xcb_connection_t *c /**< */, - xcb_xv_port_t port_id /**< */, - xcb_xvmc_surface_t surface_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_LIST_SUBPICTURE_TYPES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_list_subpicture_types_cookie_t xcb_ret; - xcb_xvmc_list_subpicture_types_request_t xcb_out; - - xcb_out.port_id = port_id; - xcb_out.surface_id = surface_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xvmc_list_subpicture_types_cookie_t -xcb_xvmc_list_subpicture_types_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port_id /**< */, - xcb_xvmc_surface_t surface_id /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xvmc_id, - /* opcode */ XCB_XVMC_LIST_SUBPICTURE_TYPES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xvmc_list_subpicture_types_cookie_t xcb_ret; - xcb_xvmc_list_subpicture_types_request_t xcb_out; - - xcb_out.port_id = port_id; - xcb_out.surface_id = surface_id; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - -xcb_xv_image_format_info_t * -xcb_xvmc_list_subpicture_types_types (const xcb_xvmc_list_subpicture_types_reply_t *R /**< */) -{ - return (xcb_xv_image_format_info_t *) (R + 1); -} - -int -xcb_xvmc_list_subpicture_types_types_length (const xcb_xvmc_list_subpicture_types_reply_t *R /**< */) -{ - return R->num; -} - -xcb_xv_image_format_info_iterator_t -xcb_xvmc_list_subpicture_types_types_iterator (const xcb_xvmc_list_subpicture_types_reply_t *R /**< */) -{ - xcb_xv_image_format_info_iterator_t i; - i.data = (xcb_xv_image_format_info_t *) (R + 1); - i.rem = R->num; - i.index = (char *) i.data - (char *) R; - return i; -} - -xcb_xvmc_list_subpicture_types_reply_t * -xcb_xvmc_list_subpicture_types_reply (xcb_connection_t *c /**< */, - xcb_xvmc_list_subpicture_types_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xvmc_list_subpicture_types_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - diff --git a/external/mit/xorg/lib/libxcb/files/xvmc.h b/external/mit/xorg/lib/libxcb/files/xvmc.h deleted file mode 100644 index c276c7d09..000000000 --- a/external/mit/xorg/lib/libxcb/files/xvmc.h +++ /dev/null @@ -1,868 +0,0 @@ -/* - * This file generated automatically from xvmc.xml by c_client.py. - * Edit at your peril. - */ - -/** - * @defgroup XCB_XvMC_API XCB XvMC API - * @brief XvMC XCB Protocol Implementation. - * @{ - **/ - -#ifndef __XVMC_H -#define __XVMC_H - -#include "xcb.h" -#include "xv.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define XCB_XVMC_MAJOR_VERSION 1 -#define XCB_XVMC_MINOR_VERSION 1 - -extern xcb_extension_t xcb_xvmc_id; - -typedef uint32_t xcb_xvmc_context_t; - -/** - * @brief xcb_xvmc_context_iterator_t - **/ -typedef struct xcb_xvmc_context_iterator_t { - xcb_xvmc_context_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xvmc_context_iterator_t; - -typedef uint32_t xcb_xvmc_surface_t; - -/** - * @brief xcb_xvmc_surface_iterator_t - **/ -typedef struct xcb_xvmc_surface_iterator_t { - xcb_xvmc_surface_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xvmc_surface_iterator_t; - -typedef uint32_t xcb_xvmc_subpicture_t; - -/** - * @brief xcb_xvmc_subpicture_iterator_t - **/ -typedef struct xcb_xvmc_subpicture_iterator_t { - xcb_xvmc_subpicture_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xvmc_subpicture_iterator_t; - -/** - * @brief xcb_xvmc_surface_info_t - **/ -typedef struct xcb_xvmc_surface_info_t { - xcb_xvmc_surface_t id; /**< */ - uint16_t chroma_format; /**< */ - uint16_t pad0; /**< */ - uint16_t max_width; /**< */ - uint16_t max_height; /**< */ - uint16_t subpicture_max_width; /**< */ - uint16_t subpicture_max_height; /**< */ - uint32_t mc_type; /**< */ - uint32_t flags; /**< */ -} xcb_xvmc_surface_info_t; - -/** - * @brief xcb_xvmc_surface_info_iterator_t - **/ -typedef struct xcb_xvmc_surface_info_iterator_t { - xcb_xvmc_surface_info_t *data; /**< */ - int rem; /**< */ - int index; /**< */ -} xcb_xvmc_surface_info_iterator_t; - -/** - * @brief xcb_xvmc_query_version_cookie_t - **/ -typedef struct xcb_xvmc_query_version_cookie_t { - unsigned int sequence; /**< */ -} xcb_xvmc_query_version_cookie_t; - -/** Opcode for xcb_xvmc_query_version. */ -#define XCB_XVMC_QUERY_VERSION 0 - -/** - * @brief xcb_xvmc_query_version_request_t - **/ -typedef struct xcb_xvmc_query_version_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ -} xcb_xvmc_query_version_request_t; - -/** - * @brief xcb_xvmc_query_version_reply_t - **/ -typedef struct xcb_xvmc_query_version_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t major; /**< */ - uint32_t minor; /**< */ -} xcb_xvmc_query_version_reply_t; - -/** - * @brief xcb_xvmc_list_surface_types_cookie_t - **/ -typedef struct xcb_xvmc_list_surface_types_cookie_t { - unsigned int sequence; /**< */ -} xcb_xvmc_list_surface_types_cookie_t; - -/** Opcode for xcb_xvmc_list_surface_types. */ -#define XCB_XVMC_LIST_SURFACE_TYPES 1 - -/** - * @brief xcb_xvmc_list_surface_types_request_t - **/ -typedef struct xcb_xvmc_list_surface_types_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port_id; /**< */ -} xcb_xvmc_list_surface_types_request_t; - -/** - * @brief xcb_xvmc_list_surface_types_reply_t - **/ -typedef struct xcb_xvmc_list_surface_types_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_xvmc_list_surface_types_reply_t; - -/** - * @brief xcb_xvmc_create_context_cookie_t - **/ -typedef struct xcb_xvmc_create_context_cookie_t { - unsigned int sequence; /**< */ -} xcb_xvmc_create_context_cookie_t; - -/** Opcode for xcb_xvmc_create_context. */ -#define XCB_XVMC_CREATE_CONTEXT 2 - -/** - * @brief xcb_xvmc_create_context_request_t - **/ -typedef struct xcb_xvmc_create_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xvmc_context_t context_id; /**< */ - xcb_xv_port_t port_id; /**< */ - xcb_xvmc_surface_t surface_id; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ - uint32_t flags; /**< */ -} xcb_xvmc_create_context_request_t; - -/** - * @brief xcb_xvmc_create_context_reply_t - **/ -typedef struct xcb_xvmc_create_context_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t width_actual; /**< */ - uint16_t height_actual; /**< */ - uint32_t flags_return; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_xvmc_create_context_reply_t; - -/** Opcode for xcb_xvmc_destroy_context. */ -#define XCB_XVMC_DESTROY_CONTEXT 3 - -/** - * @brief xcb_xvmc_destroy_context_request_t - **/ -typedef struct xcb_xvmc_destroy_context_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xvmc_context_t context_id; /**< */ -} xcb_xvmc_destroy_context_request_t; - -/** - * @brief xcb_xvmc_create_surface_cookie_t - **/ -typedef struct xcb_xvmc_create_surface_cookie_t { - unsigned int sequence; /**< */ -} xcb_xvmc_create_surface_cookie_t; - -/** Opcode for xcb_xvmc_create_surface. */ -#define XCB_XVMC_CREATE_SURFACE 4 - -/** - * @brief xcb_xvmc_create_surface_request_t - **/ -typedef struct xcb_xvmc_create_surface_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xvmc_surface_t surface_id; /**< */ - xcb_xvmc_context_t context_id; /**< */ -} xcb_xvmc_create_surface_request_t; - -/** - * @brief xcb_xvmc_create_surface_reply_t - **/ -typedef struct xcb_xvmc_create_surface_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint8_t pad1[24]; /**< */ -} xcb_xvmc_create_surface_reply_t; - -/** Opcode for xcb_xvmc_destroy_surface. */ -#define XCB_XVMC_DESTROY_SURFACE 5 - -/** - * @brief xcb_xvmc_destroy_surface_request_t - **/ -typedef struct xcb_xvmc_destroy_surface_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xvmc_surface_t surface_id; /**< */ -} xcb_xvmc_destroy_surface_request_t; - -/** - * @brief xcb_xvmc_create_subpicture_cookie_t - **/ -typedef struct xcb_xvmc_create_subpicture_cookie_t { - unsigned int sequence; /**< */ -} xcb_xvmc_create_subpicture_cookie_t; - -/** Opcode for xcb_xvmc_create_subpicture. */ -#define XCB_XVMC_CREATE_SUBPICTURE 6 - -/** - * @brief xcb_xvmc_create_subpicture_request_t - **/ -typedef struct xcb_xvmc_create_subpicture_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xvmc_subpicture_t subpicture_id; /**< */ - xcb_xvmc_context_t context; /**< */ - uint32_t xvimage_id; /**< */ - uint16_t width; /**< */ - uint16_t height; /**< */ -} xcb_xvmc_create_subpicture_request_t; - -/** - * @brief xcb_xvmc_create_subpicture_reply_t - **/ -typedef struct xcb_xvmc_create_subpicture_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint16_t width_actual; /**< */ - uint16_t height_actual; /**< */ - uint16_t num_palette_entries; /**< */ - uint16_t entry_bytes; /**< */ - uint8_t component_order[4]; /**< */ - uint8_t pad1[12]; /**< */ -} xcb_xvmc_create_subpicture_reply_t; - -/** Opcode for xcb_xvmc_destroy_subpicture. */ -#define XCB_XVMC_DESTROY_SUBPICTURE 7 - -/** - * @brief xcb_xvmc_destroy_subpicture_request_t - **/ -typedef struct xcb_xvmc_destroy_subpicture_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xvmc_subpicture_t subpicture_id; /**< */ -} xcb_xvmc_destroy_subpicture_request_t; - -/** - * @brief xcb_xvmc_list_subpicture_types_cookie_t - **/ -typedef struct xcb_xvmc_list_subpicture_types_cookie_t { - unsigned int sequence; /**< */ -} xcb_xvmc_list_subpicture_types_cookie_t; - -/** Opcode for xcb_xvmc_list_subpicture_types. */ -#define XCB_XVMC_LIST_SUBPICTURE_TYPES 8 - -/** - * @brief xcb_xvmc_list_subpicture_types_request_t - **/ -typedef struct xcb_xvmc_list_subpicture_types_request_t { - uint8_t major_opcode; /**< */ - uint8_t minor_opcode; /**< */ - uint16_t length; /**< */ - xcb_xv_port_t port_id; /**< */ - xcb_xvmc_surface_t surface_id; /**< */ -} xcb_xvmc_list_subpicture_types_request_t; - -/** - * @brief xcb_xvmc_list_subpicture_types_reply_t - **/ -typedef struct xcb_xvmc_list_subpicture_types_reply_t { - uint8_t response_type; /**< */ - uint8_t pad0; /**< */ - uint16_t sequence; /**< */ - uint32_t length; /**< */ - uint32_t num; /**< */ - uint8_t pad1[20]; /**< */ -} xcb_xvmc_list_subpicture_types_reply_t; - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xvmc_context_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xvmc_context_t) - */ -void -xcb_xvmc_context_next (xcb_xvmc_context_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xvmc_context_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xvmc_context_end (xcb_xvmc_context_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xvmc_surface_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xvmc_surface_t) - */ -void -xcb_xvmc_surface_next (xcb_xvmc_surface_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xvmc_surface_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xvmc_surface_end (xcb_xvmc_surface_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xvmc_subpicture_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xvmc_subpicture_t) - */ -void -xcb_xvmc_subpicture_next (xcb_xvmc_subpicture_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xvmc_subpicture_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xvmc_subpicture_end (xcb_xvmc_subpicture_iterator_t i /**< */); - -/** - * Get the next element of the iterator - * @param i Pointer to a xcb_xvmc_surface_info_iterator_t - * - * Get the next element in the iterator. The member rem is - * decreased by one. The member data points to the next - * element. The member index is increased by sizeof(xcb_xvmc_surface_info_t) - */ -void -xcb_xvmc_surface_info_next (xcb_xvmc_surface_info_iterator_t *i /**< */); - -/** - * Return the iterator pointing to the last element - * @param i An xcb_xvmc_surface_info_iterator_t - * @return The iterator pointing to the last element - * - * Set the current element in the iterator to the last element. - * The member rem is set to 0. The member data points to the - * last element. - */ -xcb_generic_iterator_t -xcb_xvmc_surface_info_end (xcb_xvmc_surface_info_iterator_t i /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xvmc_query_version_cookie_t -xcb_xvmc_query_version (xcb_connection_t *c /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xvmc_query_version_cookie_t -xcb_xvmc_query_version_unchecked (xcb_connection_t *c /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xvmc_query_version_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xvmc_query_version_reply_t * -xcb_xvmc_query_version_reply (xcb_connection_t *c /**< */, - xcb_xvmc_query_version_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xvmc_list_surface_types_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xvmc_list_surface_types_cookie_t -xcb_xvmc_list_surface_types (xcb_connection_t *c /**< */, - xcb_xv_port_t port_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xvmc_list_surface_types_cookie_t -xcb_xvmc_list_surface_types_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port_id /**< */); - -xcb_xvmc_surface_info_t * -xcb_xvmc_list_surface_types_surfaces (const xcb_xvmc_list_surface_types_reply_t *R /**< */); - -int -xcb_xvmc_list_surface_types_surfaces_length (const xcb_xvmc_list_surface_types_reply_t *R /**< */); - -xcb_xvmc_surface_info_iterator_t -xcb_xvmc_list_surface_types_surfaces_iterator (const xcb_xvmc_list_surface_types_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xvmc_list_surface_types_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xvmc_list_surface_types_reply_t * -xcb_xvmc_list_surface_types_reply (xcb_connection_t *c /**< */, - xcb_xvmc_list_surface_types_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -int -xcb_xvmc_create_context_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xvmc_create_context_cookie_t -xcb_xvmc_create_context (xcb_connection_t *c /**< */, - xcb_xvmc_context_t context_id /**< */, - xcb_xv_port_t port_id /**< */, - xcb_xvmc_surface_t surface_id /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t flags /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xvmc_create_context_cookie_t -xcb_xvmc_create_context_unchecked (xcb_connection_t *c /**< */, - xcb_xvmc_context_t context_id /**< */, - xcb_xv_port_t port_id /**< */, - xcb_xvmc_surface_t surface_id /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t flags /**< */); - -uint32_t * -xcb_xvmc_create_context_priv_data (const xcb_xvmc_create_context_reply_t *R /**< */); - -int -xcb_xvmc_create_context_priv_data_length (const xcb_xvmc_create_context_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xvmc_create_context_priv_data_end (const xcb_xvmc_create_context_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xvmc_create_context_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xvmc_create_context_reply_t * -xcb_xvmc_create_context_reply (xcb_connection_t *c /**< */, - xcb_xvmc_create_context_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xvmc_destroy_context_checked (xcb_connection_t *c /**< */, - xcb_xvmc_context_t context_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xvmc_destroy_context (xcb_connection_t *c /**< */, - xcb_xvmc_context_t context_id /**< */); - -int -xcb_xvmc_create_surface_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xvmc_create_surface_cookie_t -xcb_xvmc_create_surface (xcb_connection_t *c /**< */, - xcb_xvmc_surface_t surface_id /**< */, - xcb_xvmc_context_t context_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xvmc_create_surface_cookie_t -xcb_xvmc_create_surface_unchecked (xcb_connection_t *c /**< */, - xcb_xvmc_surface_t surface_id /**< */, - xcb_xvmc_context_t context_id /**< */); - -uint32_t * -xcb_xvmc_create_surface_priv_data (const xcb_xvmc_create_surface_reply_t *R /**< */); - -int -xcb_xvmc_create_surface_priv_data_length (const xcb_xvmc_create_surface_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xvmc_create_surface_priv_data_end (const xcb_xvmc_create_surface_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xvmc_create_surface_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xvmc_create_surface_reply_t * -xcb_xvmc_create_surface_reply (xcb_connection_t *c /**< */, - xcb_xvmc_create_surface_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xvmc_destroy_surface_checked (xcb_connection_t *c /**< */, - xcb_xvmc_surface_t surface_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xvmc_destroy_surface (xcb_connection_t *c /**< */, - xcb_xvmc_surface_t surface_id /**< */); - -int -xcb_xvmc_create_subpicture_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xvmc_create_subpicture_cookie_t -xcb_xvmc_create_subpicture (xcb_connection_t *c /**< */, - xcb_xvmc_subpicture_t subpicture_id /**< */, - xcb_xvmc_context_t context /**< */, - uint32_t xvimage_id /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xvmc_create_subpicture_cookie_t -xcb_xvmc_create_subpicture_unchecked (xcb_connection_t *c /**< */, - xcb_xvmc_subpicture_t subpicture_id /**< */, - xcb_xvmc_context_t context /**< */, - uint32_t xvimage_id /**< */, - uint16_t width /**< */, - uint16_t height /**< */); - -uint32_t * -xcb_xvmc_create_subpicture_priv_data (const xcb_xvmc_create_subpicture_reply_t *R /**< */); - -int -xcb_xvmc_create_subpicture_priv_data_length (const xcb_xvmc_create_subpicture_reply_t *R /**< */); - -xcb_generic_iterator_t -xcb_xvmc_create_subpicture_priv_data_end (const xcb_xvmc_create_subpicture_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xvmc_create_subpicture_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xvmc_create_subpicture_reply_t * -xcb_xvmc_create_subpicture_reply (xcb_connection_t *c /**< */, - xcb_xvmc_create_subpicture_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will not cause - * a reply to be generated. Any returned error will be - * saved for handling by xcb_request_check(). - */ -xcb_void_cookie_t -xcb_xvmc_destroy_subpicture_checked (xcb_connection_t *c /**< */, - xcb_xvmc_subpicture_t subpicture_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_void_cookie_t -xcb_xvmc_destroy_subpicture (xcb_connection_t *c /**< */, - xcb_xvmc_subpicture_t subpicture_id /**< */); - -int -xcb_xvmc_list_subpicture_types_sizeof (const void *_buffer /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - */ -xcb_xvmc_list_subpicture_types_cookie_t -xcb_xvmc_list_subpicture_types (xcb_connection_t *c /**< */, - xcb_xv_port_t port_id /**< */, - xcb_xvmc_surface_t surface_id /**< */); - -/** - * - * @param c The connection - * @return A cookie - * - * Delivers a request to the X server. - * - * This form can be used only if the request will cause - * a reply to be generated. Any returned error will be - * placed in the event queue. - */ -xcb_xvmc_list_subpicture_types_cookie_t -xcb_xvmc_list_subpicture_types_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port_id /**< */, - xcb_xvmc_surface_t surface_id /**< */); - -xcb_xv_image_format_info_t * -xcb_xvmc_list_subpicture_types_types (const xcb_xvmc_list_subpicture_types_reply_t *R /**< */); - -int -xcb_xvmc_list_subpicture_types_types_length (const xcb_xvmc_list_subpicture_types_reply_t *R /**< */); - -xcb_xv_image_format_info_iterator_t -xcb_xvmc_list_subpicture_types_types_iterator (const xcb_xvmc_list_subpicture_types_reply_t *R /**< */); - -/** - * Return the reply - * @param c The connection - * @param cookie The cookie - * @param e The xcb_generic_error_t supplied - * - * Returns the reply of the request asked by - * - * The parameter @p e supplied to this function must be NULL if - * xcb_xvmc_list_subpicture_types_unchecked(). is used. - * Otherwise, it stores the error if any. - * - * The returned value must be freed by the caller using free(). - */ -xcb_xvmc_list_subpicture_types_reply_t * -xcb_xvmc_list_subpicture_types_reply (xcb_connection_t *c /**< */, - xcb_xvmc_list_subpicture_types_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */); - - -#ifdef __cplusplus -} -#endif - -#endif - -/** - * @} - */ diff --git a/external/mit/xorg/lib/libxcb/glx/Makefile b/external/mit/xorg/lib/libxcb/glx/Makefile deleted file mode 100644 index b72ffda66..000000000 --- a/external/mit/xorg/lib/libxcb/glx/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:29 mrg Exp $ - -XCBEXT= glx - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/libxcb/Makefile b/external/mit/xorg/lib/libxcb/libxcb/Makefile deleted file mode 100644 index cba7268e6..000000000 --- a/external/mit/xorg/lib/libxcb/libxcb/Makefile +++ /dev/null @@ -1,72 +0,0 @@ -# $NetBSD: Makefile,v 1.8 2015/07/23 01:06:33 mrg Exp $ - -.include - -LIB= xcb -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/man -.PATH: ${X11SRCDIR.${LIB}} -.PATH: ${.CURDIR}/../files - -SHLIB_MAJOR= 2 -SHLIB_MINOR= 0 - -SRCS= xcb_auth.c \ - xcb_conn.c \ - xcb_ext.c \ - xcb_in.c \ - xcb_list.c \ - xcb_out.c \ - xcb_util.c \ - xcb_xid.c - -SRCS+= xproto.c \ - bigreq.c \ - xc_misc.c - -CPPFLAGS+= -DHAVE_CONFIG_H -CPPFLAGS+= -I${X11SRCDIR.${LIB}}/../include -#CPPFLAGS+= -I${.CURDIR}/../files -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/xcb - -LIBDPLIBS=\ - Xau ${.CURDIR}/../../libXau \ - Xdmcp ${.CURDIR}/../../libXdmcp - -NOMAN= # defined - -PKGDIST= xcb - -INCSDIR=${X11INCDIR}/xcb -INCS= \ - bigreq.h \ - composite.h \ - damage.h \ - dpms.h \ - dri2.h \ - glx.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 \ - xproto.h \ - xselinux.h \ - xtest.h \ - xv.h \ - xvmc.h - -.include -.include diff --git a/external/mit/xorg/lib/libxcb/libxcb/shlib_version b/external/mit/xorg/lib/libxcb/libxcb/shlib_version deleted file mode 100644 index 52123ec49..000000000 --- a/external/mit/xorg/lib/libxcb/libxcb/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.1 2010/07/17 23:43:29 mrg Exp $ -# -major=1 -minor=1 diff --git a/external/mit/xorg/lib/libxcb/present/Makefile b/external/mit/xorg/lib/libxcb/present/Makefile deleted file mode 100644 index 51597cc36..000000000 --- a/external/mit/xorg/lib/libxcb/present/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/03/17 07:25:35 mrg Exp $ - -XCBEXT= present - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/randr/Makefile b/external/mit/xorg/lib/libxcb/randr/Makefile deleted file mode 100644 index 66933f029..000000000 --- a/external/mit/xorg/lib/libxcb/randr/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2014/10/01 09:30:58 skrll Exp $ - -XCBEXT= randr - -SHLIB_MAJOR= 1 -SHLIB_MINOR= 0 - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/record/Makefile b/external/mit/xorg/lib/libxcb/record/Makefile deleted file mode 100644 index e8ac3d3f4..000000000 --- a/external/mit/xorg/lib/libxcb/record/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $ - -XCBEXT= record - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/render/Makefile b/external/mit/xorg/lib/libxcb/render/Makefile deleted file mode 100644 index e7e979c5e..000000000 --- a/external/mit/xorg/lib/libxcb/render/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $ - -XCBEXT= render - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/res/Makefile b/external/mit/xorg/lib/libxcb/res/Makefile deleted file mode 100644 index a5a6d3d58..000000000 --- a/external/mit/xorg/lib/libxcb/res/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $ - -XCBEXT= res - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/screensaver/Makefile b/external/mit/xorg/lib/libxcb/screensaver/Makefile deleted file mode 100644 index 9da01cad6..000000000 --- a/external/mit/xorg/lib/libxcb/screensaver/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $ - -XCBEXT= screensaver - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/shape/Makefile b/external/mit/xorg/lib/libxcb/shape/Makefile deleted file mode 100644 index 3d67ae8ad..000000000 --- a/external/mit/xorg/lib/libxcb/shape/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $ - -XCBEXT= shape - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/shm/Makefile b/external/mit/xorg/lib/libxcb/shm/Makefile deleted file mode 100644 index ad5789448..000000000 --- a/external/mit/xorg/lib/libxcb/shm/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $ - -XCBEXT= shm - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/sync/Makefile b/external/mit/xorg/lib/libxcb/sync/Makefile deleted file mode 100644 index 46f81c115..000000000 --- a/external/mit/xorg/lib/libxcb/sync/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2014/10/01 09:30:58 skrll Exp $ - -XCBEXT= sync - -SHLIB_MAJOR= 1 -SHLIB_MINOR= 0 - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/xc_misc/Makefile b/external/mit/xorg/lib/libxcb/xc_misc/Makefile deleted file mode 100644 index 7303b536a..000000000 --- a/external/mit/xorg/lib/libxcb/xc_misc/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $ - -XCBEXT= xc_misc - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/xcb.mk b/external/mit/xorg/lib/libxcb/xcb.mk deleted file mode 100644 index 982f91279..000000000 --- a/external/mit/xorg/lib/libxcb/xcb.mk +++ /dev/null @@ -1,26 +0,0 @@ -# $NetBSD: xcb.mk,v 1.4 2015/02/03 21:31:31 jmcneill Exp $ - -# define XCBEXT to something before including this - -LIB= xcb-${XCBEXT} - -SRCS= ${XCBEXT}.c - -CPPFLAGS+= -I${X11SRCDIR.xcb}/src -CPPFLAGS+= -I${.CURDIR}/../files - -LIBDPLIBS=\ - xcb ${.CURDIR}/../libxcb \ - Xau ${.CURDIR}/../../libXau \ - Xdmcp ${.CURDIR}/../../libXdmcp - -SHLIB_MAJOR?= 0 -SHLIB_MINOR?= 1 - -PKGCONFIG= xcb-${XCBEXT} -PKGCONFIG_VERSION.${PKGCONFIG}= 1.10 - -.include -.include - -.PATH: ${.CURDIR}/../files ${X11SRCDIR.xcb} diff --git a/external/mit/xorg/lib/libxcb/xevie/Makefile b/external/mit/xorg/lib/libxcb/xevie/Makefile deleted file mode 100644 index cb550c7f8..000000000 --- a/external/mit/xorg/lib/libxcb/xevie/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $ - -XCBEXT= xevie - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/xf86dri/Makefile b/external/mit/xorg/lib/libxcb/xf86dri/Makefile deleted file mode 100644 index ad4864423..000000000 --- a/external/mit/xorg/lib/libxcb/xf86dri/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $ - -XCBEXT= xf86dri - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/xfixes/Makefile b/external/mit/xorg/lib/libxcb/xfixes/Makefile deleted file mode 100644 index ee79ab72b..000000000 --- a/external/mit/xorg/lib/libxcb/xfixes/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $ - -XCBEXT= xfixes - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/xinerama/Makefile b/external/mit/xorg/lib/libxcb/xinerama/Makefile deleted file mode 100644 index d760a0f33..000000000 --- a/external/mit/xorg/lib/libxcb/xinerama/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $ - -XCBEXT= xinerama - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/xkb/Makefile b/external/mit/xorg/lib/libxcb/xkb/Makefile deleted file mode 100644 index d3345500c..000000000 --- a/external/mit/xorg/lib/libxcb/xkb/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2015/05/04 23:51:25 mrg Exp $ - -XCBEXT= xkb - -SHLIB_MAJOR= 1 -SHLIB_MINOR= 0 - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/xproto/Makefile b/external/mit/xorg/lib/libxcb/xproto/Makefile deleted file mode 100644 index 4974472e7..000000000 --- a/external/mit/xorg/lib/libxcb/xproto/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:32 mrg Exp $ - -XCBEXT= xproto - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/xtest/Makefile b/external/mit/xorg/lib/libxcb/xtest/Makefile deleted file mode 100644 index 24c6d31cb..000000000 --- a/external/mit/xorg/lib/libxcb/xtest/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:32 mrg Exp $ - -XCBEXT= xtest - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/xv/Makefile b/external/mit/xorg/lib/libxcb/xv/Makefile deleted file mode 100644 index 185776aa2..000000000 --- a/external/mit/xorg/lib/libxcb/xv/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:32 mrg Exp $ - -XCBEXT= xv - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxcb/xvmc/Makefile b/external/mit/xorg/lib/libxcb/xvmc/Makefile deleted file mode 100644 index 8e5c4d77d..000000000 --- a/external/mit/xorg/lib/libxcb/xvmc/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:32 mrg Exp $ - -XCBEXT= xvmc - -.include "../xcb.mk" diff --git a/external/mit/xorg/lib/libxkbfile/Makefile b/external/mit/xorg/lib/libxkbfile/Makefile deleted file mode 100644 index 120c4eadb..000000000 --- a/external/mit/xorg/lib/libxkbfile/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2008/11/06 22:28:26 veego Exp $ - -.include - -LIB= xkbfile -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions - -SRCS= cout.c maprules.c srvmisc.c xkbatom.c xkbbells.c xkbconfig.c \ - xkbdraw.c xkberrs.c xkbmisc.c xkbout.c xkbtext.c xkmout.c \ - xkmread.c - -CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/extensions - -INCSDIR=${X11INCDIR}/X11/extensions - -INCS= XKBbells.h XKBconfig.h XKBfile.h XKBrules.h XKM.h XKMformat.h -INCSDIR=${X11INCDIR}/X11/extensions - -LIBDPLIBS= X11 ${.CURDIR}/../libX11/dynamic - -PKGCONFIG= xkbfile - -.include -.include diff --git a/external/mit/xorg/lib/libxkbfile/shlib_version b/external/mit/xorg/lib/libxkbfile/shlib_version deleted file mode 100644 index e06fc0e9f..000000000 --- a/external/mit/xorg/lib/libxkbfile/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:13 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/libxkbui/Makefile b/external/mit/xorg/lib/libxkbui/Makefile deleted file mode 100644 index 5b83cb775..000000000 --- a/external/mit/xorg/lib/libxkbui/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2008/11/06 22:28:26 veego Exp $ - -.include - -LIB= xkbui -.PATH: ${X11SRCDIR.${LIB}}/src -.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions - -SRCS= XKBui.c - -INCS= XKBui.h -INCSDIR=${X11INCDIR}/X11/extensions - -CPPFLAGS+=-I${DESTDIR}${X11INCDIR}/X11/extensions - -LIBDPLIBS= X11 ${.CURDIR}/../libX11/dynamic \ - xkbfile ${.CURDIR}/../libxkbfile \ - m ${.CURDIR}/../../../../../lib/libm - -PKGCONFIG= xkbui - -.if defined(__MINIX) -.if ${MKDEBUGLIB:Uno} == "yes" -CWARNFLAGS+=-Wno-format -.endif -.endif # defined(__MINIX) -.include -.include diff --git a/external/mit/xorg/lib/libxkbui/shlib_version b/external/mit/xorg/lib/libxkbui/shlib_version deleted file mode 100644 index e06fc0e9f..000000000 --- a/external/mit/xorg/lib/libxkbui/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.2 2009/01/11 03:10:13 christos Exp $ -# -major=2 -minor=0 diff --git a/external/mit/xorg/lib/pixman/Makefile b/external/mit/xorg/lib/pixman/Makefile deleted file mode 100644 index 63bf1127b..000000000 --- a/external/mit/xorg/lib/pixman/Makefile +++ /dev/null @@ -1,130 +0,0 @@ -# $NetBSD: Makefile,v 1.32 2015/05/02 14:54:18 macallan Exp $ - -NOLINT= 1 # defined - -.include - -LIB= pixman-1 - -DIST= ${X11SRCDIR.pixman}/pixman -.PATH: ${DIST} - -SRCS= \ - pixman.c \ - pixman-access.c \ - pixman-access-accessors.c \ - pixman-bits-image.c \ - pixman-combine32.c \ - pixman-combine-float.c \ - pixman-conical-gradient.c \ - pixman-edge.c \ - pixman-edge-accessors.c \ - pixman-fast-path.c \ - pixman-filter.c \ - pixman-glyph.c \ - pixman-general.c \ - pixman-gradient-walker.c \ - pixman-image.c \ - pixman-implementation.c \ - pixman-linear-gradient.c \ - pixman-matrix.c \ - pixman-noop.c \ - pixman-radial-gradient.c \ - pixman-region16.c \ - pixman-region32.c \ - pixman-solid-fill.c \ - pixman-timer.c \ - pixman-trap.c \ - pixman-utils.c - -SRCS+= \ - pixman-x86.c \ - pixman-mips.c \ - pixman-arm.c \ - pixman-ppc.c \ - -# XXX - -# missing: HAVE_GCC_VECTOR_EXTENSIONS - -.if !defined(__MINIX) -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" -. if ${MACHINE_ARCH} == "i386" -SRCS+= pixman-mmx.c -COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden -. if defined(HAVE_LLVM) -COPTS.pixman-mmx.c+= -Wno-error=attributes -. endif -CPPFLAGS+= -DUSE_X86_MMX -MKDEPFLAGS+= -mmmx -. endif -SRCS+= pixman-sse2.c pixman-ssse3.c -COPTS.pixman-sse2.c= -msse2 -fvisibility=hidden -COPTS.pixman-ssse3.c= -msse3 -mssse3 -fvisibility=hidden -CPPFLAGS+= -DUSE_SSE2 -DUSE_SSSE3 -MKDEPFLAGS+= -msse2 -mssse3 -mssse3 -fvisibility=hidden -.endif -.endif # !defined(__MINIX) - -.if ${MACHINE_ARCH} == "powerpc" -SRCS+= pixman-vmx.c -COPTS.pixman-vmx.c= -maltivec -CPPFLAGS+= -DUSE_VMX -MKDEPFLAGS+= -maltivec -.endif - -.if !empty(MACHINE_ARCH:Mearm*) -# ARM SIMD -SRCS+= pixman-arm-simd.c \ - pixman-arm-simd-asm.S \ - pixman-arm-simd-asm-scaled.S -CPPFLAGS+= -DUSE_ARM_SIMD -# ARM NEON -SRCS+= pixman-arm-neon.c \ - pixman-arm-neon-asm.S \ - pixman-arm-neon-asm-bilinear.S -CPPFLAGS+= -DUSE_ARM_NEON - -AFLAGS+= ${${ACTIVE_CC} == "clang" :? -fno-integrated-as :} -# ARM iwMMX -#SRCS+= pixman-mmx.c -#COPTS.pixman-mmx.c= -mcpu=iwmmxt -#CPPFLAGS+= -DUSE_ARM_IWMMXT -.endif - -.if ${MACHINE_ARCH} == "mips64el" -# Loongson MMI -SRCS+= pixman-mmx.c -CPPFLAGS+= -DUSE_LOONGSON_MMI -# SIMD instructions use floatpoint registers so we need to enable their use -COPTS.pixman-mmx.c= -march=loongson2f -mhard-float -.endif - -INCS= pixman.h pixman-version.h -INCSDIR=${X11INCDIR}/pixman-1 - -CPPFLAGS+= -DHAVE_CONFIG_H \ - -I${X11SRCDIR.pixman}/../include \ - -I${X11SRCDIR.pixman}/../combine \ - -I${X11SRCDIR.pixman}/pixman - -# With pixman 0.28.3, HAVE_PTHREAD_SETSPECIFIC is much faster than TLS -.if !defined(__MINIX) -CPPFLAGS+= -DHAVE_PTHREAD_SETSPECIFIC -#CPPFLAGS+= -DTLS=__thread -.else -# LSC: No thread support on minix -CPPFLAGS+= -DPIXMAN_NO_TLS - -.if ${ACTIVE_CC} == "gcc" -CPPFLAGS+= -I${DESTDIR}/usr/include/gcc-4.5 -.endif # ${ACTIVE_CC} == "gcc" -.endif # !defined(__MINIX) - -LIBDPLIBS= m ${.CURDIR}/../../../../../lib/libm - -PKGCONFIG= pixman-1 -PKGDIST= pixman - -.include -.include diff --git a/external/mit/xorg/lib/pixman/shlib_version b/external/mit/xorg/lib/pixman/shlib_version deleted file mode 100644 index 8c98a3bda..000000000 --- a/external/mit/xorg/lib/pixman/shlib_version +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: shlib_version,v 1.6 2013/06/05 09:04:16 mrg Exp $ -# -major=2 -minor=2 diff --git a/external/mit/xorg/lib/xcb-util/Makefile b/external/mit/xorg/lib/xcb-util/Makefile deleted file mode 100644 index e4d1d5513..000000000 --- a/external/mit/xorg/lib/xcb-util/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2012/01/07 02:07:58 mrg Exp $ - -#__MINIX: reply, render-util requires pthreads -SUBDIR= keysyms \ - atom event aux .WAIT property .WAIT \ - image icccm - -.include - -INCSDIR=${X11INCDIR}/xcb -INCS= xcb_atom.h xcb_aux.h xcb_bitops.h xcb_event.h xcb_icccm.h \ - xcb_image.h xcb_keysyms.h xcb_pixel.h xcb_property.h \ - xcb_renderutil.h xcb_reply.h - -.include - -.PATH: ${X11SRCDIR.xcb-util}/atom -.PATH: ${X11SRCDIR.xcb-util}/aux -.PATH: ${X11SRCDIR.xcb-util}/event -.PATH: ${X11SRCDIR.xcb-util}/icccm -.PATH: ${X11SRCDIR.xcb-util}/image -.PATH: ${X11SRCDIR.xcb-util}/keysyms -.PATH: ${X11SRCDIR.xcb-util}/property -.PATH: ${X11SRCDIR.xcb-util}/renderutil -.PATH: ${X11SRCDIR.xcb-util}/reply diff --git a/external/mit/xorg/lib/xcb-util/atom/Makefile b/external/mit/xorg/lib/xcb-util/atom/Makefile deleted file mode 100644 index 401dc90a9..000000000 --- a/external/mit/xorg/lib/xcb-util/atom/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/18 07:01:38 mrg Exp $ - -XCBUTIL= atom - -SRCS= atoms.c - -SHLIB_MAJOR= 1 - -.include "../xcb-util.mk" diff --git a/external/mit/xorg/lib/xcb-util/atom/atoms.c b/external/mit/xorg/lib/xcb-util/atom/atoms.c deleted file mode 100644 index 85d08cad4..000000000 --- a/external/mit/xorg/lib/xcb-util/atom/atoms.c +++ /dev/null @@ -1,837 +0,0 @@ -/* C code produced by gperf version 3.0.4 */ -/* Command-line: gperf --output-file atoms.c atoms.gperf */ -/* Computed positions: -k'3,6,9,$' */ - -#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ - && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ - && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ - && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ - && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ - && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ - && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ - && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ - && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ - && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ - && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ - && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ - && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ - && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ - && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ - && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ - && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ - && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ - && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ - && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ - && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ - && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ - && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) -/* The character set is not based on ISO-646. */ -error "gperf generated tables don't work with this execution character set. Please report a bug to ." -#endif - -#line 1 "atoms.gperf" - - -/* Rely on vasprintf (GNU extension) instead of vsnprintf if - possible... */ -#ifdef HAVE_VASPRINTF -#define _GNU_SOURCE -#include -#endif - -#include -#include -#include -#include "xcb_atom.h" - -const xcb_atom_t PRIMARY = 1; -const xcb_atom_t SECONDARY = 2; -const xcb_atom_t ARC = 3; -const xcb_atom_t ATOM = 4; -const xcb_atom_t BITMAP = 5; -const xcb_atom_t CARDINAL = 6; -const xcb_atom_t COLORMAP = 7; -const xcb_atom_t CURSOR = 8; -const xcb_atom_t CUT_BUFFER0 = 9; -const xcb_atom_t CUT_BUFFER1 = 10; -const xcb_atom_t CUT_BUFFER2 = 11; -const xcb_atom_t CUT_BUFFER3 = 12; -const xcb_atom_t CUT_BUFFER4 = 13; -const xcb_atom_t CUT_BUFFER5 = 14; -const xcb_atom_t CUT_BUFFER6 = 15; -const xcb_atom_t CUT_BUFFER7 = 16; -const xcb_atom_t DRAWABLE = 17; -const xcb_atom_t FONT = 18; -const xcb_atom_t INTEGER = 19; -const xcb_atom_t PIXMAP = 20; -const xcb_atom_t POINT = 21; -const xcb_atom_t RECTANGLE = 22; -const xcb_atom_t RESOURCE_MANAGER = 23; -const xcb_atom_t RGB_COLOR_MAP = 24; -const xcb_atom_t RGB_BEST_MAP = 25; -const xcb_atom_t RGB_BLUE_MAP = 26; -const xcb_atom_t RGB_DEFAULT_MAP = 27; -const xcb_atom_t RGB_GRAY_MAP = 28; -const xcb_atom_t RGB_GREEN_MAP = 29; -const xcb_atom_t RGB_RED_MAP = 30; -const xcb_atom_t STRING = 31; -const xcb_atom_t VISUALID = 32; -const xcb_atom_t WINDOW = 33; -const xcb_atom_t WM_COMMAND = 34; -const xcb_atom_t WM_HINTS = 35; -const xcb_atom_t WM_CLIENT_MACHINE = 36; -const xcb_atom_t WM_ICON_NAME = 37; -const xcb_atom_t WM_ICON_SIZE = 38; -const xcb_atom_t WM_NAME = 39; -const xcb_atom_t WM_NORMAL_HINTS = 40; -const xcb_atom_t WM_SIZE_HINTS = 41; -const xcb_atom_t WM_ZOOM_HINTS = 42; -const xcb_atom_t MIN_SPACE = 43; -const xcb_atom_t NORM_SPACE = 44; -const xcb_atom_t MAX_SPACE = 45; -const xcb_atom_t END_SPACE = 46; -const xcb_atom_t SUPERSCRIPT_X = 47; -const xcb_atom_t SUPERSCRIPT_Y = 48; -const xcb_atom_t SUBSCRIPT_X = 49; -const xcb_atom_t SUBSCRIPT_Y = 50; -const xcb_atom_t UNDERLINE_POSITION = 51; -const xcb_atom_t UNDERLINE_THICKNESS = 52; -const xcb_atom_t STRIKEOUT_ASCENT = 53; -const xcb_atom_t STRIKEOUT_DESCENT = 54; -const xcb_atom_t ITALIC_ANGLE = 55; -const xcb_atom_t X_HEIGHT = 56; -const xcb_atom_t QUAD_WIDTH = 57; -const xcb_atom_t WEIGHT = 58; -const xcb_atom_t POINT_SIZE = 59; -const xcb_atom_t RESOLUTION = 60; -const xcb_atom_t COPYRIGHT = 61; -const xcb_atom_t NOTICE = 62; -const xcb_atom_t FONT_NAME = 63; -const xcb_atom_t FAMILY_NAME = 64; -const xcb_atom_t FULL_NAME = 65; -const xcb_atom_t CAP_HEIGHT = 66; -const xcb_atom_t WM_CLASS = 67; -const xcb_atom_t WM_TRANSIENT_FOR = 68; -#line 93 "atoms.gperf" -struct atom_map { int name; xcb_atom_t value; }; -#include -/* maximum key range = 146, duplicates = 0 */ - -#ifdef __GNUC__ -__inline -#else -#ifdef __cplusplus -inline -#endif -#endif -static unsigned int -hash (str, len) - register const char *str; - register unsigned int len; -{ - static const unsigned char asso_values[] = - { - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 75, 70, - 65, 60, 40, 35, 20, 5, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 35, 0, 45, 15, 0, - 150, 50, 0, 5, 150, 150, 15, 35, 0, 40, - 5, 150, 10, 15, 0, 25, 150, 20, 70, 40, - 55, 150, 150, 150, 150, 15, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150 - }; - register int hval = len; - - switch (hval) - { - default: - hval += asso_values[(unsigned char)str[8]]; - /*FALLTHROUGH*/ - case 8: - case 7: - case 6: - hval += asso_values[(unsigned char)str[5]]; - /*FALLTHROUGH*/ - case 5: - case 4: - case 3: - hval += asso_values[(unsigned char)str[2]]; - break; - } - return hval + asso_values[(unsigned char)str[len - 1]]; -} - -struct stringpool_t - { - char stringpool_str4[sizeof("FONT")]; - char stringpool_str6[sizeof("NOTICE")]; - char stringpool_str9[sizeof("FONT_NAME")]; - char stringpool_str10[sizeof("POINT")]; - char stringpool_str11[sizeof("WEIGHT")]; - char stringpool_str14[sizeof("MIN_SPACE")]; - char stringpool_str15[sizeof("CAP_HEIGHT")]; - char stringpool_str16[sizeof("BITMAP")]; - char stringpool_str17[sizeof("INTEGER")]; - char stringpool_str19[sizeof("COPYRIGHT")]; - char stringpool_str24[sizeof("FULL_NAME")]; - char stringpool_str26[sizeof("STRIKEOUT_ASCENT")]; - char stringpool_str27[sizeof("STRIKEOUT_DESCENT")]; - char stringpool_str28[sizeof("RGB_GREEN_MAP")]; - char stringpool_str29[sizeof("END_SPACE")]; - char stringpool_str32[sizeof("RGB_BEST_MAP")]; - char stringpool_str33[sizeof("CARDINAL")]; - char stringpool_str36[sizeof("CURSOR")]; - char stringpool_str37[sizeof("WM_CLIENT_MACHINE")]; - char stringpool_str38[sizeof("WM_HINTS")]; - char stringpool_str41[sizeof("CUT_BUFFER7")]; - char stringpool_str42[sizeof("RGB_GRAY_MAP")]; - char stringpool_str43[sizeof("DRAWABLE")]; - char stringpool_str45[sizeof("RGB_DEFAULT_MAP")]; - char stringpool_str46[sizeof("WINDOW")]; - char stringpool_str47[sizeof("RGB_BLUE_MAP")]; - char stringpool_str48[sizeof("UNDERLINE_POSITION")]; - char stringpool_str51[sizeof("RGB_RED_MAP")]; - char stringpool_str53[sizeof("VISUALID")]; - char stringpool_str54[sizeof("RECTANGLE")]; - char stringpool_str56[sizeof("CUT_BUFFER6")]; - char stringpool_str57[sizeof("WM_NAME")]; - char stringpool_str58[sizeof("X_HEIGHT")]; - char stringpool_str61[sizeof("SUBSCRIPT_Y")]; - char stringpool_str62[sizeof("PRIMARY")]; - char stringpool_str63[sizeof("COLORMAP")]; - char stringpool_str64[sizeof("UNDERLINE_THICKNESS")]; - char stringpool_str65[sizeof("QUAD_WIDTH")]; - char stringpool_str66[sizeof("RESOURCE_MANAGER")]; - char stringpool_str67[sizeof("WM_ICON_NAME")]; - char stringpool_str68[sizeof("RGB_COLOR_MAP")]; - char stringpool_str70[sizeof("WM_NORMAL_HINTS")]; - char stringpool_str71[sizeof("CUT_BUFFER5")]; - char stringpool_str73[sizeof("WM_CLASS")]; - char stringpool_str75[sizeof("WM_COMMAND")]; - char stringpool_str76[sizeof("CUT_BUFFER4")]; - char stringpool_str78[sizeof("SUPERSCRIPT_Y")]; - char stringpool_str79[sizeof("ATOM")]; - char stringpool_str80[sizeof("NORM_SPACE")]; - char stringpool_str81[sizeof("WM_TRANSIENT_FOR")]; - char stringpool_str82[sizeof("WM_ICON_SIZE")]; - char stringpool_str83[sizeof("WM_ZOOM_HINTS")]; - char stringpool_str84[sizeof("MAX_SPACE")]; - char stringpool_str85[sizeof("POINT_SIZE")]; - char stringpool_str86[sizeof("PIXMAP")]; - char stringpool_str90[sizeof("RESOLUTION")]; - char stringpool_str91[sizeof("SUBSCRIPT_X")]; - char stringpool_str92[sizeof("ITALIC_ANGLE")]; - char stringpool_str93[sizeof("ARC")]; - char stringpool_str96[sizeof("CUT_BUFFER3")]; - char stringpool_str98[sizeof("WM_SIZE_HINTS")]; - char stringpool_str101[sizeof("CUT_BUFFER2")]; - char stringpool_str106[sizeof("CUT_BUFFER1")]; - char stringpool_str108[sizeof("SUPERSCRIPT_X")]; - char stringpool_str111[sizeof("CUT_BUFFER0")]; - char stringpool_str116[sizeof("STRING")]; - char stringpool_str121[sizeof("FAMILY_NAME")]; - char stringpool_str149[sizeof("SECONDARY")]; - }; -static const struct stringpool_t stringpool_contents = - { - "FONT", - "NOTICE", - "FONT_NAME", - "POINT", - "WEIGHT", - "MIN_SPACE", - "CAP_HEIGHT", - "BITMAP", - "INTEGER", - "COPYRIGHT", - "FULL_NAME", - "STRIKEOUT_ASCENT", - "STRIKEOUT_DESCENT", - "RGB_GREEN_MAP", - "END_SPACE", - "RGB_BEST_MAP", - "CARDINAL", - "CURSOR", - "WM_CLIENT_MACHINE", - "WM_HINTS", - "CUT_BUFFER7", - "RGB_GRAY_MAP", - "DRAWABLE", - "RGB_DEFAULT_MAP", - "WINDOW", - "RGB_BLUE_MAP", - "UNDERLINE_POSITION", - "RGB_RED_MAP", - "VISUALID", - "RECTANGLE", - "CUT_BUFFER6", - "WM_NAME", - "X_HEIGHT", - "SUBSCRIPT_Y", - "PRIMARY", - "COLORMAP", - "UNDERLINE_THICKNESS", - "QUAD_WIDTH", - "RESOURCE_MANAGER", - "WM_ICON_NAME", - "RGB_COLOR_MAP", - "WM_NORMAL_HINTS", - "CUT_BUFFER5", - "WM_CLASS", - "WM_COMMAND", - "CUT_BUFFER4", - "SUPERSCRIPT_Y", - "ATOM", - "NORM_SPACE", - "WM_TRANSIENT_FOR", - "WM_ICON_SIZE", - "WM_ZOOM_HINTS", - "MAX_SPACE", - "POINT_SIZE", - "PIXMAP", - "RESOLUTION", - "SUBSCRIPT_X", - "ITALIC_ANGLE", - "ARC", - "CUT_BUFFER3", - "WM_SIZE_HINTS", - "CUT_BUFFER2", - "CUT_BUFFER1", - "SUPERSCRIPT_X", - "CUT_BUFFER0", - "STRING", - "FAMILY_NAME", - "SECONDARY" - }; -#define stringpool ((const char *) &stringpool_contents) -static -#ifdef __GNUC__ -__inline -#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ -__attribute__ ((__gnu_inline__)) -#endif -#endif -const struct atom_map * -in_word_set (str, len) - register const char *str; - register unsigned int len; -{ - enum - { - TOTAL_KEYWORDS = 68, - MIN_WORD_LENGTH = 3, - MAX_WORD_LENGTH = 19, - MIN_HASH_VALUE = 4, - MAX_HASH_VALUE = 149 - }; - - static const struct atom_map wordlist[] = - { - {-1}, {-1}, {-1}, {-1}, -#line 112 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str4,18}, - {-1}, -#line 156 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str6,62}, - {-1}, {-1}, -#line 157 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str9,63}, -#line 115 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str10,21}, -#line 152 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str11,58}, - {-1}, {-1}, -#line 137 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str14,43}, -#line 160 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str15,66}, -#line 99 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str16,5}, -#line 113 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str17,19}, - {-1}, -#line 155 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str19,61}, - {-1}, {-1}, {-1}, {-1}, -#line 159 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str24,65}, - {-1}, -#line 147 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str26,53}, -#line 148 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str27,54}, -#line 123 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str28,29}, -#line 140 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str29,46}, - {-1}, {-1}, -#line 119 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str32,25}, -#line 100 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str33,6}, - {-1}, {-1}, -#line 102 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str36,8}, -#line 130 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str37,36}, -#line 129 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str38,35}, - {-1}, {-1}, -#line 110 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str41,16}, -#line 122 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str42,28}, -#line 111 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str43,17}, - {-1}, -#line 121 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str45,27}, -#line 127 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str46,33}, -#line 120 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str47,26}, -#line 145 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str48,51}, - {-1}, {-1}, -#line 124 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str51,30}, - {-1}, -#line 126 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str53,32}, -#line 116 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str54,22}, - {-1}, -#line 109 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str56,15}, -#line 133 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str57,39}, -#line 150 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str58,56}, - {-1}, {-1}, -#line 144 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str61,50}, -#line 95 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str62,1}, -#line 101 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str63,7}, -#line 146 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str64,52}, -#line 151 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str65,57}, -#line 117 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str66,23}, -#line 131 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str67,37}, -#line 118 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str68,24}, - {-1}, -#line 134 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str70,40}, -#line 108 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str71,14}, - {-1}, -#line 161 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str73,67}, - {-1}, -#line 128 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str75,34}, -#line 107 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str76,13}, - {-1}, -#line 142 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str78,48}, -#line 98 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str79,4}, -#line 138 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str80,44}, -#line 162 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str81,68}, -#line 132 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str82,38}, -#line 136 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str83,42}, -#line 139 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str84,45}, -#line 153 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str85,59}, -#line 114 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str86,20}, - {-1}, {-1}, {-1}, -#line 154 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str90,60}, -#line 143 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str91,49}, -#line 149 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str92,55}, -#line 97 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str93,3}, - {-1}, {-1}, -#line 106 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str96,12}, - {-1}, -#line 135 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str98,41}, - {-1}, {-1}, -#line 105 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str101,11}, - {-1}, {-1}, {-1}, {-1}, -#line 104 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str106,10}, - {-1}, -#line 141 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str108,47}, - {-1}, {-1}, -#line 103 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str111,9}, - {-1}, {-1}, {-1}, {-1}, -#line 125 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str116,31}, - {-1}, {-1}, {-1}, {-1}, -#line 158 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str121,64}, - {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, - {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, - {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, -#line 96 "atoms.gperf" - {(int)(long)&((struct stringpool_t *)0)->stringpool_str149,2} - }; - - if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) - { - register int key = hash (str, len); - - if (key <= MAX_HASH_VALUE && key >= 0) - { - register int o = wordlist[key].name; - if (o >= 0) - { - register const char *s = o + stringpool; - - if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') - return &wordlist[key]; - } - } - } - return 0; -} -#line 163 "atoms.gperf" - - -static const char atom_names[] = - "PRIMARY\0" - "SECONDARY\0" - "ARC\0" - "ATOM\0" - "BITMAP\0" - "CARDINAL\0" - "COLORMAP\0" - "CURSOR\0" - "CUT_BUFFER0\0" - "CUT_BUFFER1\0" - "CUT_BUFFER2\0" - "CUT_BUFFER3\0" - "CUT_BUFFER4\0" - "CUT_BUFFER5\0" - "CUT_BUFFER6\0" - "CUT_BUFFER7\0" - "DRAWABLE\0" - "FONT\0" - "INTEGER\0" - "PIXMAP\0" - "POINT\0" - "RECTANGLE\0" - "RESOURCE_MANAGER\0" - "RGB_COLOR_MAP\0" - "RGB_BEST_MAP\0" - "RGB_BLUE_MAP\0" - "RGB_DEFAULT_MAP\0" - "RGB_GRAY_MAP\0" - "RGB_GREEN_MAP\0" - "RGB_RED_MAP\0" - "STRING\0" - "VISUALID\0" - "WINDOW\0" - "WM_COMMAND\0" - "WM_HINTS\0" - "WM_CLIENT_MACHINE\0" - "WM_ICON_NAME\0" - "WM_ICON_SIZE\0" - "WM_NAME\0" - "WM_NORMAL_HINTS\0" - "WM_SIZE_HINTS\0" - "WM_ZOOM_HINTS\0" - "MIN_SPACE\0" - "NORM_SPACE\0" - "MAX_SPACE\0" - "END_SPACE\0" - "SUPERSCRIPT_X\0" - "SUPERSCRIPT_Y\0" - "SUBSCRIPT_X\0" - "SUBSCRIPT_Y\0" - "UNDERLINE_POSITION\0" - "UNDERLINE_THICKNESS\0" - "STRIKEOUT_ASCENT\0" - "STRIKEOUT_DESCENT\0" - "ITALIC_ANGLE\0" - "X_HEIGHT\0" - "QUAD_WIDTH\0" - "WEIGHT\0" - "POINT_SIZE\0" - "RESOLUTION\0" - "COPYRIGHT\0" - "NOTICE\0" - "FONT_NAME\0" - "FAMILY_NAME\0" - "FULL_NAME\0" - "CAP_HEIGHT\0" - "WM_CLASS\0" - "WM_TRANSIENT_FOR\0" -; - -static const uint16_t atom_name_offsets[] = { - 0, - 8, - 18, - 22, - 27, - 34, - 43, - 52, - 59, - 71, - 83, - 95, - 107, - 119, - 131, - 143, - 155, - 164, - 169, - 177, - 184, - 190, - 200, - 217, - 231, - 244, - 257, - 273, - 286, - 300, - 312, - 319, - 328, - 335, - 346, - 355, - 373, - 386, - 399, - 407, - 423, - 437, - 451, - 461, - 472, - 482, - 492, - 506, - 520, - 532, - 544, - 563, - 583, - 600, - 618, - 631, - 640, - 651, - 658, - 669, - 680, - 690, - 697, - 707, - 719, - 729, - 740, - 749, -}; - -xcb_atom_t xcb_atom_get(xcb_connection_t *connection, const char *atom_name) -{ - if(atom_name == NULL) - return XCB_NONE; - xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply(connection, - xcb_intern_atom(connection, 0, strlen(atom_name), atom_name), NULL); - if(!reply) - return XCB_NONE; - xcb_atom_t atom = reply->atom; - free(reply); - return atom; -} - -xcb_atom_t xcb_atom_get_predefined(uint16_t name_len, const char *name) -{ - const struct atom_map *value = in_word_set(name, name_len); - xcb_atom_t ret = XCB_NONE; - if(value) - ret = value->value; - return ret; -} - -xcb_atom_fast_cookie_t xcb_atom_get_fast(xcb_connection_t *c, uint8_t only_if_exists, uint16_t name_len, const char *name) -{ - xcb_atom_fast_cookie_t cookie; - - if((cookie.u.atom = xcb_atom_get_predefined(name_len, name)) != XCB_NONE) - { - cookie.tag = TAG_VALUE; - return cookie; - } - - cookie.tag = TAG_COOKIE; - cookie.u.cookie = xcb_intern_atom(c, only_if_exists, name_len, name); - return cookie; -} - -xcb_atom_t xcb_atom_get_fast_reply(xcb_connection_t *c, xcb_atom_fast_cookie_t cookie, xcb_generic_error_t **e) -{ - switch(cookie.tag) - { - xcb_intern_atom_reply_t *reply; - case TAG_VALUE: - if(e) - *e = 0; - break; - case TAG_COOKIE: - reply = xcb_intern_atom_reply(c, cookie.u.cookie, e); - if(reply) - { - cookie.u.atom = reply->atom; - free(reply); - } - else - cookie.u.atom = XCB_NONE; - break; - } - return cookie.u.atom; -} - -const char *xcb_atom_get_name_predefined(xcb_atom_t atom) -{ - if(atom <= 0 || atom > (sizeof(atom_name_offsets) / sizeof(*atom_name_offsets))) - return 0; - return atom_names + atom_name_offsets[atom - 1]; -} - -int xcb_atom_get_name(xcb_connection_t *c, xcb_atom_t atom, const char **namep, int *lengthp) -{ - static char buf[100]; - const char *name = xcb_atom_get_name_predefined(atom); - int namelen; - xcb_get_atom_name_cookie_t atomc; - xcb_get_atom_name_reply_t *atomr; - if(name) - { - *namep = name; - *lengthp = strlen(name); - return 1; - } - atomc = xcb_get_atom_name(c, atom); - atomr = xcb_get_atom_name_reply(c, atomc, 0); - if(!atomr) - return 0; - namelen = xcb_get_atom_name_name_length(atomr); - if(namelen > sizeof(buf)) - namelen = sizeof(buf); - *lengthp = namelen; - memcpy(buf, xcb_get_atom_name_name(atomr), namelen); - *namep = buf; - free(atomr); - return 1; -} - -static char *makename(const char *fmt, ...) -{ - char *ret; - int n; - va_list ap; - -#ifndef HAVE_VASPRINTF - char *np; - int size = 64; - - /* First allocate 'size' bytes, should be enough usually */ - if((ret = malloc(size)) == NULL) - return NULL; - - while(1) - { - va_start(ap, fmt); - n = vsnprintf(ret, size, fmt, ap); - va_end(ap); - - if(n < 0) - return NULL; - - if(n < size) - return ret; - - size = n + 1; - if((np = realloc(ret, size)) == NULL) - { - free(ret); - return NULL; - } - - ret = np; - } -#else - va_start(ap, fmt); - n = vasprintf(&ret, fmt, ap); - va_end(ap); - - if(n < 0) - return NULL; - - return ret; -#endif -} - -char *xcb_atom_name_by_screen(const char *base, uint8_t screen) -{ - return makename("%s_S%u", base, screen); -} - -char *xcb_atom_name_by_resource(const char *base, uint32_t resource) -{ - return makename("%s_R%08X", base, resource); -} - -char *xcb_atom_name_unique(const char *base, uint32_t id) -{ - if(base) - return makename("%s_U%lu", base, id); - else - return makename("U%lu", id); -} diff --git a/external/mit/xorg/lib/xcb-util/aux/Makefile b/external/mit/xorg/lib/xcb-util/aux/Makefile deleted file mode 100644 index eded75995..000000000 --- a/external/mit/xorg/lib/xcb-util/aux/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/18 07:01:38 mrg Exp $ - -XCBUTIL= aux - -SRCS= xcb_aux.c - -.include "../xcb-util.mk" diff --git a/external/mit/xorg/lib/xcb-util/event/Makefile b/external/mit/xorg/lib/xcb-util/event/Makefile deleted file mode 100644 index 25bfce5fa..000000000 --- a/external/mit/xorg/lib/xcb-util/event/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/18 07:01:38 mrg Exp $ - -XCBUTIL= event - -SRCS= event.c - -SHLIB_MAJOR= 1 - -.include "../xcb-util.mk" diff --git a/external/mit/xorg/lib/xcb-util/icccm/Makefile b/external/mit/xorg/lib/xcb-util/icccm/Makefile deleted file mode 100644 index d8f6dab71..000000000 --- a/external/mit/xorg/lib/xcb-util/icccm/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2012/01/07 02:07:58 mrg Exp $ - -XCBUTIL= icccm - -SRCS= icccm.c - -SHLIB_MAJOR= 1 - -XCBUTIL_EXTRA_DPLIBS+=\ - xcb-atom ${.CURDIR}/../atom \ - xcb-property ${.CURDIR}/../property \ - xcb-event ${.CURDIR}/../event - -.include "../xcb-util.mk" - -CPPFLAGS+= -I${X11SRCDIR.xcb-util}/atom -CPPFLAGS+= -I${X11SRCDIR.xcb-util}/property -CPPFLAGS+= -I${X11SRCDIR.xcb-util}/event diff --git a/external/mit/xorg/lib/xcb-util/image/Makefile b/external/mit/xorg/lib/xcb-util/image/Makefile deleted file mode 100644 index 6f11f5fb2..000000000 --- a/external/mit/xorg/lib/xcb-util/image/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2012/01/07 02:07:58 mrg Exp $ - -XCBUTIL= image - -SRCS= \ - xcb_image.c - -XCBUTIL_EXTRA_DPLIBS+=\ - xcb-shm ${.CURDIR}/../../libxcb/shm \ - xcb-aux ${.CURDIR}/../aux - -.include "../xcb-util.mk" - -CPPFLAGS+= -I${X11SRCDIR.xcb-util}/aux - -CWARNFLAGS.clang+= -Wno-return-type diff --git a/external/mit/xorg/lib/xcb-util/keysyms/Makefile b/external/mit/xorg/lib/xcb-util/keysyms/Makefile deleted file mode 100644 index f21d4f60b..000000000 --- a/external/mit/xorg/lib/xcb-util/keysyms/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/18 07:01:39 mrg Exp $ - -XCBUTIL= keysyms - -SRCS= keysyms.c - -SHLIB_MAJOR= 1 - -.include "../xcb-util.mk" diff --git a/external/mit/xorg/lib/xcb-util/property/Makefile b/external/mit/xorg/lib/xcb-util/property/Makefile deleted file mode 100644 index 00e9a2df9..000000000 --- a/external/mit/xorg/lib/xcb-util/property/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2012/01/07 02:07:58 mrg Exp $ - -XCBUTIL= property - -SRCS= property.c - -SHLIB_MAJOR= 1 - -XCBUTIL_EXTRA_DPLIBS+=\ - xcb-event ${.CURDIR}/../event - -.include "../xcb-util.mk" - -CPPFLAGS+= -I${X11SRCDIR.xcb-util}/event diff --git a/external/mit/xorg/lib/xcb-util/render-util/Makefile b/external/mit/xorg/lib/xcb-util/render-util/Makefile deleted file mode 100644 index 6e976c35a..000000000 --- a/external/mit/xorg/lib/xcb-util/render-util/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2012/01/07 02:07:59 mrg Exp $ - -XCBUTIL= render-util - -SRCS= cache.c glyph.c util.c - -XCBUTIL_EXTRA_DPLIBS+=\ - xcb-render ${.CURDIR}/../../libxcb/render - -# xxx render-util vs renderutil -PKGCONFIG= xcb-renderutil -.include "../xcb-util.mk" - -# xxx render-util vs renderutil -CPPFLAGS+= -I${X11SRCDIR.xcb-util}/renderutil -.PATH: ${X11SRCDIR.xcb-util}/renderutil - -CWARNFLAGS.clang+= -Wno-tautological-compare diff --git a/external/mit/xorg/lib/xcb-util/reply/Makefile b/external/mit/xorg/lib/xcb-util/reply/Makefile deleted file mode 100644 index 1d56b11b5..000000000 --- a/external/mit/xorg/lib/xcb-util/reply/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/07/18 07:01:39 mrg Exp $ - -XCBUTIL= reply - -SRCS= reply.c test_reply.c - -SHLIB_MAJOR= 1 - -COPTS+= -pthread - -.include "../xcb-util.mk" diff --git a/external/mit/xorg/lib/xcb-util/xcb-util.mk b/external/mit/xorg/lib/xcb-util/xcb-util.mk deleted file mode 100644 index 27bf023ab..000000000 --- a/external/mit/xorg/lib/xcb-util/xcb-util.mk +++ /dev/null @@ -1,28 +0,0 @@ -# $NetBSD: xcb-util.mk,v 1.3 2012/01/07 02:07:58 mrg Exp $ - -# define XCBUTIL to something before including this - -LIB= xcb-${XCBUTIL} - -CPPFLAGS+= -I${X11SRCDIR.xcb-util}/${XCBUTIL} -CPPFLAGS+= -DHAVE_VASPRINTF - -LIBDPLIBS=\ - xcb ${.CURDIR}/../../libxcb/libxcb \ - Xau ${.CURDIR}/../../libXau \ - Xdmcp ${.CURDIR}/../../libXdmcp \ - ${XCBUTIL_EXTRA_DPLIBS} - -SHLIB_MAJOR?= 0 -SHLIB_MINOR?= 0 - -PKGCONFIG?= xcb-${XCBUTIL} -PKGCONFIG_VERSION.${PKGCONFIG}= 0.3.6 - -# XXX totally fails -NOLINT= # defined - -.include -.include - -.PATH: ${X11SRCDIR.xcb-util}/${XCBUTIL} diff --git a/external/mit/xorg/lib/xkeyboard-config/Makefile b/external/mit/xorg/lib/xkeyboard-config/Makefile deleted file mode 100644 index 8aebb663c..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.9 2013/05/31 23:50:51 mrg Exp $ - -.include - -SUBDIR= compat geometry keycodes rules symbols types - -NOOBJ= # defined - -PKGCONFIG= xkeyboard-config - -.include -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/Makefile.xkbdata b/external/mit/xorg/lib/xkeyboard-config/Makefile.xkbdata deleted file mode 100644 index c86c4d735..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/Makefile.xkbdata +++ /dev/null @@ -1,24 +0,0 @@ -# $NetBSD: Makefile.xkbdata,v 1.1 2009/06/11 01:49:20 mrg Exp $ - -XKBDISTDIR= ${X11SRCDIR.xkeyboard-config}/${XKBNAME} - -.PATH: ${XKBDISTDIR} - -FILESDIR= ${X11LIBDIR}/xkb/${XKBNAME} - - -.if defined(XKBDIR) # { -FILES+= ${XKBNAME}.dir -FILESDIR_${XKBNAME}.dir=${X11LIBDIR}/xkb -CLEANFILES+= ${XKBNAME}.dir - -.include "${NETBSDSRCDIR}/external/mit/xorg/tools/xkbcomp/Makefile.xkbcomp" - -${XKBNAME}.dir: - ${_MKTARGET_CREATE} - rm -f ${.TARGET} - (cd ${XKBDISTDIR} && ${XKBCOMP} -lfhlpR -o ${.OBJDIR}/${.TARGET} '*') - -realall: ${FILES} - -.endif # } diff --git a/external/mit/xorg/lib/xkeyboard-config/compat/Makefile b/external/mit/xorg/lib/xkeyboard-config/compat/Makefile deleted file mode 100644 index 3a17454b5..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/compat/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 23:28:25 mrg Exp $ - -.include - -XKBNAME= compat -FILES= README accessx basic caps complete iso9995 japan \ - ledcaps lednum ledscroll level5 misc mousekeys \ - olpc pc pc98 xfree86 xtest - -XKBDIR= 1 - -.include "../Makefile.xkbdata" - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/geometry/Makefile b/external/mit/xorg/lib/xkeyboard-config/geometry/Makefile deleted file mode 100644 index 46b9ffe5d..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/geometry/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2011/02/21 05:10:27 mrg Exp $ - -.include - -XKBNAME= geometry -FILES= README amiga ataritt chicony dell everex fujitsu hhk hp \ - keytronic kinesis macintosh microsoft nec nokia northgate \ - pc sanwa sony sun thinkpad typematrix winbook - -SUBDIR= digital_vndr sgi_vndr - -XKBDIR= 1 - -.include "../Makefile.xkbdata" - -.include -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/geometry/digital_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/geometry/digital_vndr/Makefile deleted file mode 100644 index c2f698e49..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/geometry/digital_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:21 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/geometry/digital_vndr -FILES= lk pc unix - -.PATH: ${X11SRCDIR.xkeyboard-config}/geometry/digital_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/geometry/sgi_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/geometry/sgi_vndr/Makefile deleted file mode 100644 index d6d67b2a7..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/geometry/sgi_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:21 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/geometry/sgi_vndr -FILES= indy indigo O2 - -.PATH: ${X11SRCDIR.xkeyboard-config}/geometry/sgi_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/keycodes/Makefile b/external/mit/xorg/lib/xkeyboard-config/keycodes/Makefile deleted file mode 100644 index cc1befdff..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/keycodes/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 23:28:25 mrg Exp $ - -.include - -XKBNAME= keycodes -FILES= README aliases amiga ataritt empty evdev fujitsu hp ibm \ - macintosh olpc sony sun xfree86 xfree98 - -SUBDIR= digital_vndr sgi_vndr - -XKBDIR= 1 - -.include "../Makefile.xkbdata" - -.include -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/keycodes/digital_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/keycodes/digital_vndr/Makefile deleted file mode 100644 index 6ecd4fa96..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/keycodes/digital_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:21 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/keycodes/digital_vndr -FILES= lk pc - -.PATH: ${X11SRCDIR.xkeyboard-config}/keycodes/digital_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/keycodes/sgi_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/keycodes/sgi_vndr/Makefile deleted file mode 100644 index c873de526..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/keycodes/sgi_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:21 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/keycodes/sgi_vndr -FILES= indy indigo iris - -.PATH: ${X11SRCDIR.xkeyboard-config}/keycodes/sgi_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/rules/Makefile b/external/mit/xorg/lib/xkeyboard-config/rules/Makefile deleted file mode 100644 index 3df3f010c..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/rules/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/29 07:58:24 ghen Exp $ -# -# When upgrading, re-assemble the files base, base.lst, evdev and -# evdev.lst by running ./configure && make in the dist directory, -# and copy the resulting files back here. - -.include - -XKBNAME= rules -FILES= README base base.lst base.extras.xml.in base.xml.in \ - evdev evdev.lst evdev.extras.xml.in evdev.xml.in \ - xfree98 xkb.dtd - -FILESNAME_base.xml.in= base.xml -FILESNAME_base.extras.xml.in= base.extras.xml -FILESNAME_evdev.xml.in= evdev.xml -FILESNAME_evdev.extras.xml.in= evdev.extras.xml - -SYMLINKS= base ${FILESDIR}/xorg \ - base.lst ${FILESDIR}/xorg.lst \ - base.xml ${FILESDIR}/xorg.xml - -.include "../Makefile.xkbdata" - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/rules/base b/external/mit/xorg/lib/xkeyboard-config/rules/base deleted file mode 100644 index 7d0817076..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/rules/base +++ /dev/null @@ -1,1228 +0,0 @@ -// DO NOT EDIT THIS FILE - IT WAS AUTOGENERATED BY merge.sh FROM rules/*.part -// -// Rules for resolving XKB components for use with XFree86 -// Copyright 1996 by Joseph Moss -// -// 2002 Modifier: Ivan Pascal The XFree86 Project -// - -// If you want non-latin layouts implicitly include the en_US layout -// uncomment lines below -//! $nonlatin = am ara ben bd bg bt by cs deva ge gh gr guj guru il \ -// in ir iku jp kan kh kr la lao lk mk mm mn mv mal ori pk \ -// ru scc sy syr tel th tj tam ua uz - -// PC models -! $pcmodels = pc101 pc102 pc104 pc105 - -// Microsoft models (using MS geometry) -! $msmodels = microsoft microsoft4000 microsoft7000 microsoftpro microsoftprousb microsoftprose - -// Nokia devices and keyboards -! $nokiamodels = nokiasu8w nokiarx44 nokiarx51 - -// PC geometries - they have special geometry but symbols are mostly pc105 -! $pcgeometries = latitude - -// TypeMatrix geometries -! $tmgeometries = tm2020 tm2030PS2 tm2030USB tm2030USB-102 tm2030USB-106 - -// Layouts that provide further specializations for the OLPC -! $olpclayouts = af am ara br ca es et fr it kh kz in mn np ru th tr us - -! $macbooks = macbook78 macbook79 -! $maclaptop = ibook powerbook macbook78 macbook79 -! $applealu = applealu_ansi applealu_iso applealu_jis -! $macs = macintosh macintosh_old ibook powerbook macbook78 macbook79 - -! $macvendorlayouts = ch de dk fi fr gb is it latam nl no pt se us - -! $azerty = be fr -! $qwertz = al cz de hr hu ro si sk - - -// all layouts with 3rd and 4th groups -! $threelevellayouts = al az \ - be br bt \ - ca ch cs cz \ - de dk \ - ee es \ - fi fo fr \ - gb gr \ - hu \ - ie ir is it \ - latam \ - lk lt \ - mn mt \ - nl no \ - pl pt \ - ro \ - se sk \ - tr \ - us \ - vn \ - za - -! $thinkpads = thinkpad thinkpad60 thinkpadz60 - -! $sun = sun_type6_jp sun_type6_usb sun_type6_euro_usb \ - sun_type6_jp_usb sun_type6_unix_usb sun_type7_jp_usb \ - sun_type7_usb sun_type7_euro_usb sun_type7_unix_usb - -! $sun_jp = sun_type6_jp sun_type6_jp_usb sun_type7_jp_usb - -// Sun Type_6_7 keyboards with custom layouts -! $sun_custom = ara be br ca ch cz de dk \ - ee es fi fr gb gr it jp \ - kr lt lv nl no pl pt ro \ - ru se sk tr tw ua us - -! $sun_var = sun_type6 sun_type6_suncompat sun_type6_de sun_type6_fr \ - sun_type7 sun_type7_suncompat suncompat - -! $sun_compat = sun_type6 sun_type6_suncompat sun_type7_suncompat suncompat - -! $htcdreamlayouts = us it de - -! $inetkbds = acer_c300 acer_ferrari4k acer_laptop \ - airkey \ - apple armada azonaRF2300 \ - benqx brother \ - btc5113rf btc9000 btc9000a btc9001ah btc5090 btc9019u \ - cherryblue cherrybluea cherryblueb \ - cherrycyboard cherrycmexpert \ - chicony chicony0108 chicony0420 chicony9885 \ - compalfl90 \ - compaqeak8 compaqik7 compaqik13 compaqik18 \ - creativedw7000 \ - cymotionlinux \ - dell dellm65 inspiron dellusbmm \ - emachines ennyah_dkb1008 evdev \ - genius geniuscomfy2 \ - gyration honeywell_euroboard \ - hp250x hp5xx hp500fa hpdv5 \ - hpi6 hpxe3gc hpxe3gf hpxe4xxx hpxt1000 hpzt11xx htcdream \ - ibm_spacesaver ipaq inspiron intel \ - logiaccess logicda logicink \ - logiex110 logiclx300 \ - logiinkse logiinkseusb logiitc logiik \ - logitech_base itouch logiultrax \ - logitech_g15 \ - logidinovo logidinovoedge \ - microsoft4000 microsoft7000 microsoftinet microsoftprousb microsoftprooem microsoftprose \ - microsoftoffice microsoftmult \ - mx1998 mx2500 mx2750 \ - oretec \ - pc105 \ - presario propeller \ - qtronix \ - rapidaccess rapidaccess2 thinkpad60 \ - samsung4500 samsung4510 \ - silvercrest \ - sk1300 sk2500 sk6200 sk7100 \ - sven sven303 symplon \ - toshiba_s3000 trust trustda \ - unitekkb1925 yahoo - -! $inetmediakbds = acer_ferrari4k acer_laptop btc5090 btc9019u cherryblueb \ - cherrybluea herrycyboard chicony042 compaqik13 compaqik18 \ - armada presario dellm65 inspiron dellusbmm diamond \ - ennyah_dkb1008 genius geniuscomfy2 hpi6 hpxe3gc hpxe3gf \ - hpxt1000 hpzt11xx hpdv5 hpxe4xxx hp5xx thinkpad60 ogitech_base \ - logidinovo logidinovoedge logitech_g15 mx1998 mx2500 mx2750 \ - microsoft4000 microsoft7000 microsoftprooem microsoftmult \ - propeller samsung4500 samsung4510 sk1300 sk2500 sk7100 \ - toshiba_s3000 trust trustda cymotionlinux silvercrest \ - emachines benqx unitekkb1925 creativedw7000 compalfl90 \ - pc105 a4techKB21 a4techKBS8 a4_rfkb23 asus_laptop btc6301urf \ - dexxa dtk2000 fscaa1667g geniuskb19e geniuscomfy latitude \ - microsoftpro precision_m scorpius sp_inet targa_v811 thinkpad \ - tm2030USB-102 tm2030USB-106 trust_slimline - -! $dvoraklayouts = br ca de ee es fr gb no pl se us - -! model = keycodes - amiga = amiga(de) - ataritt = ataritt(de) - empty = empty - $sun_jp = sun(type6_jp_usb) - $sun = sun(type6_usb) - pc98 = xfree98(pc98) - $applealu = macintosh(alukbd) - macintosh_hhk = macintosh(hhk) - macintosh_old = macintosh(old) - $macs = macintosh - thinkpadz60 = xfree86(thinkpadz60) - * = xfree86 - -! layout[1] = keycodes - $azerty = +aliases(azerty) - $qwertz = +aliases(qwertz) - * = +aliases(qwerty) - -! layout = keycodes - $azerty = +aliases(azerty) - $qwertz = +aliases(qwertz) - * = +aliases(qwerty) - -! option = keycodes - -! model layout = geometry - thinkpad us = thinkpad(us) - -! model = geometry - microsoftelite = microsoft(elite) - $msmodels = microsoft(natural) - dell101 = dell(dell101) - dellm65 = dell(dellm65) - latitude = dell(latitude) - flexpro = keytronic(FlexPro) - hp6000 = hp(omnibook) - hpmini110 = hp(mini110) - hpdv5 = hp(dv5) - omnikey101 = northgate(omnikey101) - sanwaskbkg3 = sanwa(sanwaskbkg3) - $pcmodels = pc(%m) - $pcgeometries = pc(%m) - everex = everex(STEPnote) - thinkpad = thinkpad(intl) - thinkpad60 = thinkpad(60) - thinkpadz60 = thinkpad(60) - $tmgeometries = typematrix(%m) - winbook = winbook(XP5) - pc98 = nec(pc98) - $applealu = macintosh(%m) - $macbooks = macintosh(%m) - $macs = macintosh(macintosh) - hhk = hhk(basic) - kinesis = kinesis(model100) - $nokiamodels = nokia(%m) - sun_type6_jp = sun(type6jp) - sun_type6_usb = sun(type6) - sun_type6_euro_usb = sun(type6tuv) - sun_type6_jp_usb = sun(type6jp) - sun_type6_unix_usb = sun(type6unix) - sun_type7_jp_usb = sun(type6jp) - sun_type7_usb = sun(type7) - sun_type7_euro_usb = sun(type7tuv) - sun_type7_unix_usb = sun(type7unix) - * = pc(pc104) - -! model layout variant = symbols - * ben basic = pc+in(ben) - * ben probhat = pc+in(ben_probhat) - * dev basic = pc+in(deva) - * dvorak $dvoraklayouts = pc+%v(dvorak) - * dvorak basic = pc+us(dvorak) - * dvorak pl_basic = pc+pl(dvorak) - * dvorak pl = pc+pl(dvorak_quotes) - * dvorak pl_altquotes = pc+pl(dvorak_altquotes) - * dzdwi basic = pc+bt(basic) - * fi basic = pc+fi(classic) - * ge azerty_tskapo = pc+fr(geo) - * guj basic = pc+in(guj) - * gur basic = pc+in(guru) - * ie laptop = pc+ie(basic) - * ie CloGaelachLaptop = pc+ie(CloGaelach) - * in urd = pc+in(urd-phonetic) - * iu basic = pc+ca(ike) - * lo basic = pc+la(basic) - * kan basic = pc+in(kan) - * mal basic = pc+in(mal) - * mal mlplusnum = pc+in(mal) - * ogham basic = pc+ie(ogam) - * ogham laptop = pc+ie(ogam) - * ogham is434 = pc+ie(ogam_is434) - * ogham is434laptop = pc+ie(ogam_is434) - * ori basic = pc+in(ori) - * ro de = pc+ro(winkeys) - * ro us = pc+ro(std) - * ro academic = pc+ro(std) - * ro std_comma = pc+ro(std) - * ro comma = pc+ro(basic) - * ru os = pc+ru(os_legacy) - * pk urd = pc+pk(urd-phonetic) - * sapmi basic = pc+no(smi) - * sapmi nodeadkeys = pc+no(smi_nodeadkeys) - * sapmi sefi = pc+fi(smi) - * sin phonetic-static = pc+in(sin_phonetic) - * syr basic = pc+sy(syc) - * syr phonetic = pc+sy(syc_phonetic) - * tam INSCRIPT = pc+in(tam) - * tam UNI = pc+in(tam_unicode) - * tam NUMERAL-KEYBOARD = pc+in(tam_keyboard_with_numerals) - * tam TAB = pc+in(tam_TAB) - * tam TSCII = pc+in(tam_TSCII) - * tel basic = pc+in(tel) - * yu basic = pc+srp(latin) - * yu unicode = pc+srp(latinunicode) - * yu yz = pc+srp(latinyz) - * yu unicodeyz = pc+srp(latinunicodeyz) - classmate us intl = pc+us(classmate-intl) - classmate us alt-intl = pc+us(classmate-alt-intl) - classmate us altgr-intl = pc+us(classmate-altgr-intl) - nokiarx51 cz qwerty = nokia_vndr/rx-51(cz_qwerty) - * $sun_custom $sun_var = pc+sun_vndr/%l%(v) - -! model layout = symbols - * ar = pc+ara - * ben = pc+in(ben) - * bs = pc+ba - * cs = pc+rs - * cz_qwerty = pc+cz(qwerty) - * dev = pc+in(deva) - * dvorak = pc+us(dvorak) - * dzdwi = pc+bt - * el = pc+gr - * en_US = pc+latin - * guj = pc+in(guj) - * gur = pc+in(guru) - * iu = pc+ca(ike) - * lo = pc+la - * kan = pc+in(kan) - * mi = pc+mao - * ogham = pc+ie(ogam) - * ori = pc+ie(ori) - * sapmi = pc+no(smi) - * sr = pc+srp - * syr = pc+sy(syc) - * tel = pc+in(tel) - * tml = pc+in(tam) - * yu = pc+srp - * fr-latin9 = pc+fr(latin9) - * us_intl = pc+us(alt-intl) - * ben(basic) = pc+in(ben) - * ben(probhat) = pc+in(ben_probhat) - * dev(basic) = pc+in(deva) - * dvorak($dvoraklayouts) = pc+%v(dvorak) - * dvorak(basic) = pc+us(dvorak) - * dvorak(pl_basic) = pc+pl(dvorak) - * dvorak(pl) = pc+pl(dvorak_quotes) - * dvorak(pl_altquotes) = pc+pl(dvorak_altquotes) - * dzdwi(basic) = pc+bt(basic) - * fi(basic) = pc+fi(classic) - * ge(azerty_tskapo) = pc+fr(geo) - * guj(basic) = pc+in(guj) - * gur(basic) = pc+in(guru) - * ie(laptop) = pc+ie(basic) - * ie(CloGaelachLaptop) = pc+ie(CloGaelach) - * in(urd) = pc+in(urd-phonetic) - * iu(basic) = pc+ca(ike) - * lo(basic) = pc+la(basic) - * kan(basic) = pc+in(kan) - * mal(basic) = pc+in(mal) - * mal(mlplusnum) = pc+in(mal) - * ogham(basic) = pc+ie(ogam) - * ogham(laptop) = pc+ie(ogam) - * ogham(is434) = pc+ie(ogam_is434) - * ogham(is434laptop) = pc+ie(ogam_is434) - * ori(basic) = pc+in(ori) - * ro(de) = pc+ro(winkeys) - * ro(us) = pc+ro(std) - * ro(academic) = pc+ro(std) - * ro(std_comma) = pc+ro(std) - * ro(comma) = pc+ro(basic) - * ru(os) = pc+ru(os_legacy) - * pk(urd) = pc+pk(urd-phonetic) - * sapmi(basic) = pc+no(smi) - * sapmi(nodeadkeys) = pc+no(smi_nodeadkeys) - * sapmi(sefi) = pc+fi(smi) - * sin(phonetic-static) = pc+in(sin_phonetic) - * syr(basic) = pc+sy(syc) - * syr(phonetic) = pc+sy(syc_phonetic) - * tam(INSCRIPT) = pc+in(tam) - * tam(UNI) = pc+in(tam_unicode) - * tam(NUMERAL-KEYBOARD) = pc+in(tam_keyboard_with_numerals) - * tam(TAB) = pc+in(tam_TAB) - * tam(TSCII) = pc+in(tam_TSCII) - * tel(basic) = pc+in(tel) - * yu(basic) = pc+srp(latin) - * yu(unicode) = pc+srp(latinunicode) - * yu(yz) = pc+srp(latinyz) - * yu(unicodeyz) = pc+srp(latinunicodeyz) - ataritt $nonlatin = xfree68_vndr/ataritt(us)+%l%(v):2 - ataritt * = xfree68_vndr/ataritt(us)+%l%(v) - amiga $nonlatin = xfree68_vndr/amiga(usa1)+%l%(v):2 - amiga * = xfree68_vndr/amiga(usa1)+%l%(v) - classmate us = pc+%l(classmate) - empty * = empty(basic) - * empty = empty(basic) - $sun $sun_custom = pc+sun_vndr/%l%(v) - pc98 nec_vndr/jp = nec_vndr/jp(pc98) - macintosh_old us = macintosh_vndr/us(oldmac) - macintosh_old en_US = macintosh_vndr/us(oldmac) - macintosh_old $macvendorlayouts = macintosh_vndr/us(oldmac)+macintosh_vndr/%l%(v) - macintosh_old $nonlatin = macintosh_vndr/us(oldmac)+%l%(v):2 - macintosh_old * = macintosh_vndr/us(oldmac)+%l%(v) - applealu_jis jp = macintosh_vndr/apple(alukbd)+macintosh_vndr/jp(usmac)+macintosh_vndr/jp(mac):2 - applealu_jis * = macintosh_vndr/apple(alukbd)+%l%(v)+macintosh_vndr/jp(mac):2 - $applealu $macvendorlayouts = macintosh_vndr/apple(alukbd)+macintosh_vndr/%l%(v) - $applealu * = macintosh_vndr/apple(alukbd)+%l%(v) - $macs en_US = pc+macintosh_vndr/us(extended) - $macs $macvendorlayouts = pc+macintosh_vndr/%l%(v) - nokiarx44 * = nokia_vndr/rx-44(%l) - nokiarx51 cz(qwerty) = nokia_vndr/rx-51(common)+nokia_vndr/rx-51(cz_qwerty) - nokiarx51 * = nokia_vndr/rx-51(common)+nokia_vndr/rx-51(%l%_v) - nokiasu8w * = nokia_vndr/su-8w(%l) - olpc $olpclayouts = olpc+%l%(m) - olpc * = olpc+%l%(v) - olpcm $olpclayouts = olpc+%l%(m) - olpcm * = olpc+%l%(v) - $thinkpads br = pc+br(thinkpad) - sl-c3x00 * = pc+sharp_vndr/sl-c3x00(basic) - ws003sh * = pc+sharp_vndr/ws003sh(basic) - ws007sh * = pc+sharp_vndr/ws007sh(basic) - ws011sh * = pc+sharp_vndr/ws011sh(basic) - ws020sh * = pc+sharp_vndr/ws020sh(basic) - htcdream $htcdreamlayouts = %l(htcdream) - * $nonlatin = pc+us+%l%(v):2 - * * = pc+%l%(v) - -! model layout[1] = symbols - * ar = pc+ara%(v[1]) - * ben = pc+in(ben) - * bs = pc+ba%(v[1]) - * cs = pc+rs%(v[1]) - * cz_qwerty = pc+cz(qwerty) - * dev = pc+in(deva) - * dvorak = pc+us(dvorak) - * dzdwi = pc+bt%(v[1]) - * el = pc+gr%(v[1]) - * en_US = pc+latin%(v[1]) - * guj = pc+in(guj) - * gur = pc+in(guru) - * iu = pc+ca(ike) - * lo = pc+la%(v[1]) - * kan = pc+in(kan) - * mi = pc+mao%(v[1]) - * ogham = pc+ie(ogam) - * ori = pc+ie(ori) - * sapmi = pc+no(smi) - * sr = pc+srp%(v[1]) - * syr = pc+sy(syc) - * tel = pc+in(tel) - * tml = pc+in(tam) - * yu = pc+srp%(v[1]) - * fr-latin9 = pc+fr(latin9) - * us_intl = pc+us(alt-intl) - * ben(basic) = pc+in(ben) - * ben(probhat) = pc+in(ben_probhat) - * dev(basic) = pc+in(deva) - * dvorak($dvoraklayouts) = pc+%v(dvorak) - * dvorak(basic) = pc+us(dvorak) - * dvorak(pl_basic) = pc+pl(dvorak) - * dvorak(pl) = pc+pl(dvorak_quotes) - * dvorak(pl_altquotes) = pc+pl(dvorak_altquotes) - * dzdwi(basic) = pc+bt(basic) - * fi(basic) = pc+fi(classic) - * ge(azerty_tskapo) = pc+fr(geo) - * guj(basic) = pc+in(guj) - * gur(basic) = pc+in(guru) - * ie(laptop) = pc+ie(basic) - * ie(CloGaelachLaptop) = pc+ie(CloGaelach) - * in(urd) = pc+in(urd-phonetic) - * iu(basic) = pc+ca(ike) - * lo(basic) = pc+la(basic) - * kan(basic) = pc+in(kan) - * mal(basic) = pc+in(mal) - * mal(mlplusnum) = pc+in(mal) - * ogham(basic) = pc+ie(ogam) - * ogham(laptop) = pc+ie(ogam) - * ogham(is434) = pc+ie(ogam_is434) - * ogham(is434laptop) = pc+ie(ogam_is434) - * ori(basic) = pc+in(ori) - * ro(de) = pc+ro(winkeys) - * ro(us) = pc+ro(std) - * ro(academic) = pc+ro(std) - * ro(std_comma) = pc+ro(std) - * ro(comma) = pc+ro(basic) - * ru(os) = pc+ru(os_legacy) - * pk(urd) = pc+pk(urd-phonetic) - * sapmi(basic) = pc+no(smi) - * sapmi(nodeadkeys) = pc+no(smi_nodeadkeys) - * sapmi(sefi) = pc+fi(smi) - * sin(phonetic-static) = pc+in(sin_phonetic) - * syr(basic) = pc+sy(syc) - * syr(phonetic) = pc+sy(syc_phonetic) - * tam(INSCRIPT) = pc+in(tam) - * tam(UNI) = pc+in(tam_unicode) - * tam(NUMERAL-KEYBOARD) = pc+in(tam_keyboard_with_numerals) - * tam(TAB) = pc+in(tam_TAB) - * tam(TSCII) = pc+in(tam_TSCII) - * tel(basic) = pc+in(tel) - * yu(basic) = pc+srp(latin) - * yu(unicode) = pc+srp(latinunicode) - * yu(yz) = pc+srp(latinyz) - * yu(unicodeyz) = pc+srp(latinunicodeyz) - ataritt * = xfree68_vndr/ataritt(us)+%l[1]%(v[1]) - amiga * = xfree68_vndr/amiga(usa1)+%l[1]%(v[1]) - $sun $sun_custom = pc+sun_vndr/%l[1]%(v[1]) - macintosh_old us = macintosh_vndr/us(oldmac) - macintosh_old $macvendorlayouts = macintosh_vndr/us(oldmac)+macintosh_vndr/%l[1]%(v[1]) - macintosh_old * = macintosh_vndr/us(oldmac)+%l[1]%(v[1]) - applealu_jis us = macintosh_vndr/apple(alukbd)+macintosh_vndr/jp(usmac) - $applealu $macvendorlayouts = macintosh_vndr/apple(alukbd)+macintosh_vndr/%l[1]%(v[1]) - $applealu * = macintosh_vndr/apple(alukbd)+%l[1]%(v[1]) - $macs $macvendorlayouts = pc+macintosh_vndr/%l[1]%(v[1]) - nokiarx51 cz(qwerty) = nokia_vndr/rx-51(common)+nokia_vndr/rx-51(cz_qwerty) - nokiarx51 * = nokia_vndr/rx-51(common)+nokia_vndr/rx-51(%l[1]%_v[1]) - $thinkpads br = pc+%l[1](thinkpad) - * * = pc+%l[1]%(v[1]) - -! model layout[1] variant[1] = symbols - * ben basic = pc+in(ben) - * ben probhat = pc+in(ben_probhat) - * dev basic = pc+in(deva) - * dvorak $dvoraklayouts = pc+%v(dvorak) - * dvorak basic = pc+us(dvorak) - * dvorak pl_basic = pc+pl(dvorak) - * dvorak pl = pc+pl(dvorak_quotes) - * dvorak pl_altquotes = pc+pl(dvorak_altquotes) - * dzdwi basic = pc+bt(basic) - * fi basic = pc+fi(classic) - * ge azerty_tskapo = pc+fr(geo) - * guj basic = pc+in(guj) - * gur basic = pc+in(guru) - * ie laptop = pc+ie(basic) - * ie CloGaelachLaptop = pc+ie(CloGaelach) - * in urd = pc+in(urd-phonetic) - * iu basic = pc+ca(ike) - * lo basic = pc+la(basic) - * kan basic = pc+in(kan) - * mal basic = pc+in(mal) - * mal mlplusnum = pc+in(mal) - * ogham basic = pc+ie(ogam) - * ogham laptop = pc+ie(ogam) - * ogham is434 = pc+ie(ogam_is434) - * ogham is434laptop = pc+ie(ogam_is434) - * ori basic = pc+in(ori) - * ro de = pc+ro(winkeys) - * ro us = pc+ro(std) - * ro academic = pc+ro(std) - * ro std_comma = pc+ro(std) - * ro comma = pc+ro(basic) - * ru os = pc+ru(os_legacy) - * pk urd = pc+pk(urd-phonetic) - * sapmi basic = pc+no(smi) - * sapmi nodeadkeys = pc+no(smi_nodeadkeys) - * sapmi sefi = pc+fi(smi) - * sin phonetic-static = pc+in(sin_phonetic) - * syr basic = pc+sy(syc) - * syr phonetic = pc+sy(syc_phonetic) - * tam INSCRIPT = pc+in(tam) - * tam UNI = pc+in(tam_unicode) - * tam NUMERAL-KEYBOARD = pc+in(tam_keyboard_with_numerals) - * tam TAB = pc+in(tam_TAB) - * tam TSCII = pc+in(tam_TSCII) - * tel basic = pc+in(tel) - * yu basic = pc+srp(latin) - * yu unicode = pc+srp(latinunicode) - * yu yz = pc+srp(latinyz) - * yu unicodeyz = pc+srp(latinunicodeyz) - -! model layout[2] = symbols - * ar = +ara%(v[2]):2 - * ben = +in(ben):2 - * bs = +ba%(v[2]):2 - * cs = +rs%(v[2]):2 - * cz_qwerty = +cz(qwerty):2 - * dev = +in(deva):2 - * dvorak = +us(dvorak):2 - * dzdwi = +bt%(v[2]):2 - * el = +gr%(v[2]):2 - * en_US = +latin%(v[2]):2 - * guj = +in(guj):2 - * gur = +in(guru):2 - * iu = +ca(ike):2 - * lo = +la%(v[2]):2 - * kan = +in(kan):2 - * mi = +mao%(v[2]):2 - * ogham = +ie(ogam):2 - * ori = +ie(ori):2 - * sapmi = +no(smi):2 - * sr = +srp%(v[2]):2 - * syr = +sy(syc):2 - * tel = +in(tel):2 - * tml = +in(tam):2 - * yu = +srp%(v[2]):2 - * fr-latin9 = +fr(latin9):2 - * us_intl = +us(alt-intl):2 - * ben(basic) = +in(ben):2 - * ben(probhat) = +in(ben_probhat):2 - * dev(basic) = +in(deva):2 - * dvorak($dvoraklayouts) = +%v(dvorak):2 - * dvorak(basic) = +us(dvorak):2 - * dvorak(pl_basic) = +pl(dvorak):2 - * dvorak(pl) = +pl(dvorak_quotes):2 - * dvorak(pl_altquotes) = +pl(dvorak_altquotes):2 - * dzdwi(basic) = +bt(basic):2 - * fi(basic) = +fi(classic):2 - * ge(azerty_tskapo) = +fr(geo):2 - * guj(basic) = +in(guj):2 - * gur(basic) = +in(guru):2 - * ie(laptop) = +ie(basic):2 - * ie(CloGaelachLaptop) = +ie(CloGaelach):2 - * in(urd) = +in(urd-phonetic):2 - * iu(basic) = +ca(ike):2 - * lo(basic) = +la(basic):2 - * kan(basic) = +in(kan):2 - * mal(basic) = +in(mal):2 - * mal(mlplusnum) = +in(mal):2 - * ogham(basic) = +ie(ogam):2 - * ogham(laptop) = +ie(ogam):2 - * ogham(is434) = +ie(ogam_is434):2 - * ogham(is434laptop) = +ie(ogam_is434):2 - * ori(basic) = +in(ori):2 - * ro(de) = +ro(winkeys):2 - * ro(us) = +ro(std):2 - * ro(academic) = +ro(std):2 - * ro(std_comma) = +ro(std):2 - * ro(comma) = +ro(basic):2 - * ru(os) = +ru(os_legacy):2 - * pk(urd) = +pk(urd-phonetic):2 - * sapmi(basic) = +no(smi):2 - * sapmi(nodeadkeys) = +no(smi_nodeadkeys):2 - * sapmi(sefi) = +fi(smi):2 - * sin(phonetic-static) = +in(sin_phonetic):2 - * syr(basic) = +sy(syc):2 - * syr(phonetic) = +sy(syc_phonetic):2 - * tam(INSCRIPT) = +in(tam):2 - * tam(UNI) = +in(tam_unicode):2 - * tam(NUMERAL-KEYBOARD) = +in(tam_keyboard_with_numerals):2 - * tam(TAB) = +in(tam_TAB):2 - * tam(TSCII) = +in(tam_TSCII):2 - * tel(basic) = +in(tel):2 - * yu(basic) = +srp(latin):2 - * yu(unicode) = +srp(latinunicode):2 - * yu(yz) = +srp(latinyz):2 - * yu(unicodeyz) = +srp(latinunicodeyz):2 - nokiarx51 cz(qwerty) = +nokia_vndr/rx-51(cz_qwerty):2 - nokiarx51 * = +nokia_vndr/rx-51(%l[2]%_v[2]):2 - $sun $sun_custom = +sun_vndr/%l[2]%(v[2]):2 - * * = +%l[2]%(v[2]):2 - -! model layout[3] = symbols - * ar = +ara%(v[3]):3 - * ben = +in(ben):3 - * bs = +ba%(v[3]):3 - * cs = +rs%(v[3]):3 - * cz_qwerty = +cz(qwerty):3 - * dev = +in(deva):3 - * dvorak = +us(dvorak):3 - * dzdwi = +bt%(v[3]):3 - * el = +gr%(v[3]):3 - * en_US = +latin%(v[3]):3 - * guj = +in(guj):3 - * gur = +in(guru):3 - * iu = +ca(ike):3 - * lo = +la%(v[3]):3 - * kan = +in(kan):3 - * mi = +mao%(v[3]):3 - * ogham = +ie(ogam):3 - * ori = +ie(ori):3 - * sapmi = +no(smi):3 - * sr = +srp%(v[3]):3 - * syr = +sy(syc):3 - * tel = +in(tel):3 - * tml = +in(tam):3 - * yu = +srp%(v[3]):3 - * fr-latin9 = +fr(latin9):3 - * us_intl = +us(alt-intl):3 - * ben(basic) = +in(ben):3 - * ben(probhat) = +in(ben_probhat):3 - * dev(basic) = +in(deva):3 - * dvorak($dvoraklayouts) = +%v(dvorak):3 - * dvorak(basic) = +us(dvorak):3 - * dvorak(pl_basic) = +pl(dvorak):3 - * dvorak(pl) = +pl(dvorak_quotes):3 - * dvorak(pl_altquotes) = +pl(dvorak_altquotes):3 - * dzdwi(basic) = +bt(basic):3 - * fi(basic) = +fi(classic):3 - * ge(azerty_tskapo) = +fr(geo):3 - * guj(basic) = +in(guj):3 - * gur(basic) = +in(guru):3 - * ie(laptop) = +ie(basic):3 - * ie(CloGaelachLaptop) = +ie(CloGaelach):3 - * in(urd) = +in(urd-phonetic):3 - * iu(basic) = +ca(ike):3 - * lo(basic) = +la(basic):3 - * kan(basic) = +in(kan):3 - * mal(basic) = +in(mal):3 - * mal(mlplusnum) = +in(mal):3 - * ogham(basic) = +ie(ogam):3 - * ogham(laptop) = +ie(ogam):3 - * ogham(is434) = +ie(ogam_is434):3 - * ogham(is434laptop) = +ie(ogam_is434):3 - * ori(basic) = +in(ori):3 - * ro(de) = +ro(winkeys):3 - * ro(us) = +ro(std):3 - * ro(academic) = +ro(std):3 - * ro(std_comma) = +ro(std):3 - * ro(comma) = +ro(basic):3 - * ru(os) = +ru(os_legacy):3 - * pk(urd) = +pk(urd-phonetic):3 - * sapmi(basic) = +no(smi):3 - * sapmi(nodeadkeys) = +no(smi_nodeadkeys):3 - * sapmi(sefi) = +fi(smi):3 - * sin(phonetic-static) = +in(sin_phonetic):3 - * syr(basic) = +sy(syc):3 - * syr(phonetic) = +sy(syc_phonetic):3 - * tam(INSCRIPT) = +in(tam):3 - * tam(UNI) = +in(tam_unicode):3 - * tam(NUMERAL-KEYBOARD) = +in(tam_keyboard_with_numerals):3 - * tam(TAB) = +in(tam_TAB):3 - * tam(TSCII) = +in(tam_TSCII):3 - * tel(basic) = +in(tel):3 - * yu(basic) = +srp(latin):3 - * yu(unicode) = +srp(latinunicode):3 - * yu(yz) = +srp(latinyz):3 - * yu(unicodeyz) = +srp(latinunicodeyz):3 - nokiarx51 cz(qwerty) = +nokia_vndr/rx-51(cz_qwerty):3 - nokiarx51 * = +nokia_vndr/rx-51(%l[3]%_v[3]):3 - $sun $sun_custom = +sun_vndr/%l[3]%(v[3]):3 - * * = +%l[3]%(v[3]):3 - -! model layout[4] = symbols - * ar = +ara%(v[4]):4 - * ben = +in(ben):4 - * bs = +ba%(v[4]):4 - * cs = +rs%(v[4]):4 - * cz_qwerty = +cz(qwerty):4 - * dev = +in(deva):4 - * dvorak = +us(dvorak):4 - * dzdwi = +bt%(v[4]):4 - * el = +gr%(v[4]):4 - * en_US = +latin%(v[4]):4 - * guj = +in(guj):4 - * gur = +in(guru):4 - * iu = +ca(ike):4 - * lo = +la%(v[4]):4 - * kan = +in(kan):4 - * mi = +mao%(v[4]):4 - * ogham = +ie(ogam):4 - * ori = +ie(ori):4 - * sapmi = +no(smi):4 - * sr = +srp%(v[4]):4 - * syr = +sy(syc):4 - * tel = +in(tel):4 - * tml = +in(tam):4 - * yu = +srp%(v[4]):4 - * fr-latin9 = +fr(latin9):4 - * us_intl = +us(alt-intl):4 - * ben(basic) = +in(ben):4 - * ben(probhat) = +in(ben_probhat):4 - * dev(basic) = +in(deva):4 - * dvorak($dvoraklayouts) = +%v(dvorak):4 - * dvorak(basic) = +us(dvorak):4 - * dvorak(pl_basic) = +pl(dvorak):4 - * dvorak(pl) = +pl(dvorak_quotes):4 - * dvorak(pl_altquotes) = +pl(dvorak_altquotes):4 - * dzdwi(basic) = +bt(basic):4 - * fi(basic) = +fi(classic):4 - * ge(azerty_tskapo) = +fr(geo):4 - * guj(basic) = +in(guj):4 - * gur(basic) = +in(guru):4 - * ie(laptop) = +ie(basic):4 - * ie(CloGaelachLaptop) = +ie(CloGaelach):4 - * in(urd) = +in(urd-phonetic):4 - * iu(basic) = +ca(ike):4 - * lo(basic) = +la(basic):4 - * kan(basic) = +in(kan):4 - * mal(basic) = +in(mal):4 - * mal(mlplusnum) = +in(mal):4 - * ogham(basic) = +ie(ogam):4 - * ogham(laptop) = +ie(ogam):4 - * ogham(is434) = +ie(ogam_is434):4 - * ogham(is434laptop) = +ie(ogam_is434):4 - * ori(basic) = +in(ori):4 - * ro(de) = +ro(winkeys):4 - * ro(us) = +ro(std):4 - * ro(academic) = +ro(std):4 - * ro(std_comma) = +ro(std):4 - * ro(comma) = +ro(basic):4 - * ru(os) = +ru(os_legacy):4 - * pk(urd) = +pk(urd-phonetic):4 - * sapmi(basic) = +no(smi):4 - * sapmi(nodeadkeys) = +no(smi_nodeadkeys):4 - * sapmi(sefi) = +fi(smi):4 - * sin(phonetic-static) = +in(sin_phonetic):4 - * syr(basic) = +sy(syc):4 - * syr(phonetic) = +sy(syc_phonetic):4 - * tam(INSCRIPT) = +in(tam):4 - * tam(UNI) = +in(tam_unicode):4 - * tam(NUMERAL-KEYBOARD) = +in(tam_keyboard_with_numerals):4 - * tam(TAB) = +in(tam_TAB):4 - * tam(TSCII) = +in(tam_TSCII):4 - * tel(basic) = +in(tel):4 - * yu(basic) = +srp(latin):4 - * yu(unicode) = +srp(latinunicode):4 - * yu(yz) = +srp(latinyz):4 - * yu(unicodeyz) = +srp(latinunicodeyz):4 - nokiarx51 cz(qwerty) = +nokia_vndr/rx-51(cz_qwerty):4 - nokiarx51 * = +nokia_vndr/rx-51(%l[4]%_v[4]):4 - $sun $sun_custom = +sun_vndr/%l[4]%(v[4]):4 - * * = +%l[4]%(v[4]):4 - -! model layout[2] variant[2] = symbols - * ben basic = +in(ben):2 - * ben probhat = +in(ben_probhat):2 - * dev basic = +in(deva):2 - * dvorak $dvoraklayouts = +%v(dvorak):2 - * dvorak basic = +us(dvorak):2 - * dvorak pl_basic = +pl(dvorak):2 - * dvorak pl = +pl(dvorak_quotes):2 - * dvorak pl_altquotes = +pl(dvorak_altquotes):2 - * dzdwi basic = +bt(basic):2 - * fi basic = +fi(classic):2 - * ge azerty_tskapo = +fr(geo):2 - * guj basic = +in(guj):2 - * gur basic = +in(guru):2 - * ie laptop = +ie(basic):2 - * ie CloGaelachLaptop = +ie(CloGaelach):2 - * in urd = +in(urd-phonetic):2 - * iu basic = +ca(ike):2 - * lo basic = +la(basic):2 - * kan basic = +in(kan):2 - * mal basic = +in(mal):2 - * mal mlplusnum = +in(mal):2 - * ogham basic = +ie(ogam):2 - * ogham laptop = +ie(ogam):2 - * ogham is434 = +ie(ogam_is434):2 - * ogham is434laptop = +ie(ogam_is434):2 - * ori basic = +in(ori):2 - * ro de = +ro(winkeys):2 - * ro us = +ro(std):2 - * ro academic = +ro(std):2 - * ro std_comma = +ro(std):2 - * ro comma = +ro(basic):2 - * ru os = +ru(os_legacy):2 - * pk urd = +pk(urd-phonetic):2 - * sapmi basic = +no(smi):2 - * sapmi nodeadkeys = +no(smi_nodeadkeys):2 - * sapmi sefi = +fi(smi):2 - * sin phonetic-static = +in(sin_phonetic):2 - * syr basic = +sy(syc):2 - * syr phonetic = +sy(syc_phonetic):2 - * tam INSCRIPT = +in(tam):2 - * tam UNI = +in(tam_unicode):2 - * tam NUMERAL-KEYBOARD = +in(tam_keyboard_with_numerals):2 - * tam TAB = +in(tam_TAB):2 - * tam TSCII = +in(tam_TSCII):2 - * tel basic = +in(tel):2 - * yu basic = +srp(latin):2 - * yu unicode = +srp(latinunicode):2 - * yu yz = +srp(latinyz):2 - * yu unicodeyz = +srp(latinunicodeyz):2 - -! model layout[3] variant[3] = symbols - * ben basic = +in(ben):3 - * ben probhat = +in(ben_probhat):3 - * dev basic = +in(deva):3 - * dvorak $dvoraklayouts = +%v(dvorak):3 - * dvorak basic = +us(dvorak):3 - * dvorak pl_basic = +pl(dvorak):3 - * dvorak pl = +pl(dvorak_quotes):3 - * dvorak pl_altquotes = +pl(dvorak_altquotes):3 - * dzdwi basic = +bt(basic):3 - * fi basic = +fi(classic):3 - * ge azerty_tskapo = +fr(geo):3 - * guj basic = +in(guj):3 - * gur basic = +in(guru):3 - * ie laptop = +ie(basic):3 - * ie CloGaelachLaptop = +ie(CloGaelach):3 - * in urd = +in(urd-phonetic):3 - * iu basic = +ca(ike):3 - * lo basic = +la(basic):3 - * kan basic = +in(kan):3 - * mal basic = +in(mal):3 - * mal mlplusnum = +in(mal):3 - * ogham basic = +ie(ogam):3 - * ogham laptop = +ie(ogam):3 - * ogham is434 = +ie(ogam_is434):3 - * ogham is434laptop = +ie(ogam_is434):3 - * ori basic = +in(ori):3 - * ro de = +ro(winkeys):3 - * ro us = +ro(std):3 - * ro academic = +ro(std):3 - * ro std_comma = +ro(std):3 - * ro comma = +ro(basic):3 - * ru os = +ru(os_legacy):3 - * pk urd = +pk(urd-phonetic):3 - * sapmi basic = +no(smi):3 - * sapmi nodeadkeys = +no(smi_nodeadkeys):3 - * sapmi sefi = +fi(smi):3 - * sin phonetic-static = +in(sin_phonetic):3 - * syr basic = +sy(syc):3 - * syr phonetic = +sy(syc_phonetic):3 - * tam INSCRIPT = +in(tam):3 - * tam UNI = +in(tam_unicode):3 - * tam NUMERAL-KEYBOARD = +in(tam_keyboard_with_numerals):3 - * tam TAB = +in(tam_TAB):3 - * tam TSCII = +in(tam_TSCII):3 - * tel basic = +in(tel):3 - * yu basic = +srp(latin):3 - * yu unicode = +srp(latinunicode):3 - * yu yz = +srp(latinyz):3 - * yu unicodeyz = +srp(latinunicodeyz):3 - -! model layout[4] variant[4] = symbols - * ben basic = +in(ben):4 - * ben probhat = +in(ben_probhat):4 - * dev basic = +in(deva):4 - * dvorak $dvoraklayouts = +%v(dvorak):4 - * dvorak basic = +us(dvorak):4 - * dvorak pl_basic = +pl(dvorak):4 - * dvorak pl = +pl(dvorak_quotes):4 - * dvorak pl_altquotes = +pl(dvorak_altquotes):4 - * dzdwi basic = +bt(basic):4 - * fi basic = +fi(classic):4 - * ge azerty_tskapo = +fr(geo):4 - * guj basic = +in(guj):4 - * gur basic = +in(guru):4 - * ie laptop = +ie(basic):4 - * ie CloGaelachLaptop = +ie(CloGaelach):4 - * in urd = +in(urd-phonetic):4 - * iu basic = +ca(ike):4 - * lo basic = +la(basic):4 - * kan basic = +in(kan):4 - * mal basic = +in(mal):4 - * mal mlplusnum = +in(mal):4 - * ogham basic = +ie(ogam):4 - * ogham laptop = +ie(ogam):4 - * ogham is434 = +ie(ogam_is434):4 - * ogham is434laptop = +ie(ogam_is434):4 - * ori basic = +in(ori):4 - * ro de = +ro(winkeys):4 - * ro us = +ro(std):4 - * ro academic = +ro(std):4 - * ro std_comma = +ro(std):4 - * ro comma = +ro(basic):4 - * ru os = +ru(os_legacy):4 - * pk urd = +pk(urd-phonetic):4 - * sapmi basic = +no(smi):4 - * sapmi nodeadkeys = +no(smi_nodeadkeys):4 - * sapmi sefi = +fi(smi):4 - * sin phonetic-static = +in(sin_phonetic):4 - * syr basic = +sy(syc):4 - * syr phonetic = +sy(syc_phonetic):4 - * tam INSCRIPT = +in(tam):4 - * tam UNI = +in(tam_unicode):4 - * tam NUMERAL-KEYBOARD = +in(tam_keyboard_with_numerals):4 - * tam TAB = +in(tam_TAB):4 - * tam TSCII = +in(tam_TSCII):4 - * tel basic = +in(tel):4 - * yu basic = +srp(latin):4 - * yu unicode = +srp(latinunicode):4 - * yu yz = +srp(latinyz):4 - * yu unicodeyz = +srp(latinunicodeyz):4 - -! model = symbols - a4techKB21 = +inet(media_nav_common) - a4techKBS8 = +inet(media_nav_acpi_common) - a4_rfkb23 = +inet(media_nav_acpi_common) - asus_laptop = +inet(media_common) - acer_tm_800 = +inet(acer_laptop) - benqx730 = +inet(benqx) - benqx800 = +inet(benqx) - btc5126t = +inet(nav_acpi_common) - btc9116u = +inet(btc9019u) - btc6301urf = +inet(media_nav_acpi_common) - dellsk8125 = +inet(dell) - dellsk8135 = +inet(dell) - cherrybunlim = +inet(nav_common) - dexxa = +inet(media_nav_common) - dtk2000 = +inet(media_nav_acpi_common) - fscaa1667g = +inet(media_nav_common) - geniuskb19e = +inet(media_nav_acpi_common) - geniuscomfy = +inet(media_nav_acpi_common) - geniuskkb2050hs = +inet(dellusbmm) - hpnx9020 = +inet(hpi6) - latitude = +inet(media_common) - logicd = +inet(logitech_base) - logicd_it = +inet(logitech_base) - logicd_nav = +inet(logitech_base) - logicd_opt = +inet(logitech_base) - logiultrax = +inet(logitech_base) - logiclx300 = +inet(logiex110) - logii350 = +inet(logiex110) - logimel = +inet(logiex110) - logicdit = +inet(logicd) - logicdo = +inet(logicd) - logicdp = +inet(logicd) - logicdpa = +inet(logicda) - logiciink = +inet(logicink) - ltcd = +inet(logicda) - microsoftccurve2k = +inet(microsoftprooem) - microsoftpro = +inet(media_nav_acpi_common) - precision_m = +inet(media_nav_common) - scorpius = +inet(media_nav_acpi_common) - sp_inet = +inet(media_nav_acpi_common) - targa_v811 = +inet(media_nav_acpi_common) - thinkpad = +inet(media_nav_common) - thinkpadz60 = +inet(thinkpad60) - tm2030USB-102 = +inet(media_nav_acpi_common) - tm2030USB-106 = +inet(media_nav_acpi_common) - trust_slimline = +inet(media_nav_acpi_common) - vsonku306 = +inet(microsoftprooem) - $inetkbds = +inet(%m) - $maclaptop = +inet(apple)+level3(enter_switch) - $applealu = +inet(apple) - $macs = +inet(apple) - sun_type7_jp_usb = +sun_vndr/solaris(defaults_type7jp) - $sun = +sun_vndr/solaris(defaults) - -! model layout = symbols - $inetmediakbds jp = +jp(henkan) - -! layout variant = compat - de neo = +caps(caps_lock)+misc(assign_shift_left_action)+level5(level5_lock) - de adnw = +caps(caps_lock)+misc(assign_shift_left_action)+level5(level5_lock) - jp $sun_compat = complete+japan(kana_lock) - -! layout[1] variant[1] = compat - de neo = +caps(caps_lock)+misc(assign_shift_left_action)+level5(level5_lock) - de adnw = +caps(caps_lock)+misc(assign_shift_left_action)+level5(level5_lock) - jp $sun_compat = complete+japan(kana_lock) - -! layout[2] variant[2] = compat - de neo = +caps(caps_lock):2+misc(assign_shift_left_action):2+level5(level5_lock):2 - de adnw = +caps(caps_lock):2+misc(assign_shift_left_action):2+level5(level5_lock):2 - jp $sun_compat = +complete+japan(kana_lock):2 - -! layout[3] variant[3] = compat - de neo = +caps(caps_lock):3+misc(assign_shift_left_action):3+level5(level5_lock):3 - de adnw = +caps(caps_lock):3+misc(assign_shift_left_action):3+level5(level5_lock):3 - jp $sun_compat = +complete+japan(kana_lock):3 - -! layout[4] variant[4] = compat - de neo = +caps(caps_lock):4+misc(assign_shift_left_action):4+level5(level5_lock):4 - de adnw = +caps(caps_lock):4+misc(assign_shift_left_action):4+level5(level5_lock):4 - jp $sun_compat = +complete+japan(kana_lock):4 - -! model layout = compat - pc98 nec_vndr/jp = pc98(basic) - * jp = complete+japan - olpc * = olpc - olpcm * = olpc - * * = complete - -! model layout[1] = compat - * * = complete - -! model = types - $macs = complete+numpad(mac) - $applealu = complete+numpad(mac) - $nokiamodels = complete+nokia - * = complete - -! layout option = symbols - $threelevellayouts grp:alts_toggle = +level3(ralt_switch_for_alts_toggle) - * misc:typo = +typo(base) - -! layout[1] option = symbols - $threelevellayouts grp:alts_toggle = +level3(ralt_switch_for_alts_toggle):1 - * misc:typo = +typo(base):1 - -! layout[2] option = symbols - $threelevellayouts grp:alts_toggle = +level3(ralt_switch_for_alts_toggle):2 - * misc:typo = +typo(base):2 - -! layout[3] option = symbols - $threelevellayouts grp:alts_toggle = +level3(ralt_switch_for_alts_toggle):3 - * misc:typo = +typo(base):3 - -! layout[4] option = symbols - $threelevellayouts grp:alts_toggle = +level3(ralt_switch_for_alts_toggle):4 - * misc:typo = +typo(base):4 - -! option = symbols - grp:shift_toggle = +group(shifts_toggle) - altwin:menu = +altwin(menu) - altwin:meta_alt = +altwin(meta_alt) - altwin:alt_win = +altwin(alt_win) - altwin:ctrl_win = +altwin(ctrl_win) - altwin:ctrl_alt_win = +altwin(ctrl_alt_win) - altwin:meta_win = +altwin(meta_win) - altwin:left_meta_win = +altwin(left_meta_win) - altwin:hyper_win = +altwin(hyper_win) - altwin:alt_super_win = +altwin(alt_super_win) - altwin:swap_alt_win = +altwin(swap_alt_win) - grab:debug = +srvr_ctrl(grab_debug) - grp:switch = +group(switch) - grp:lswitch = +group(lswitch) - grp:win_switch = +group(win_switch) - grp:lwin_switch = +group(lwin_switch) - grp:rwin_switch = +group(rwin_switch) - grp:toggle = +group(toggle) - grp:shifts_toggle = +group(shifts_toggle) - grp:ctrls_toggle = +group(ctrls_toggle) - grp:alts_toggle = +group(alts_toggle) - grp:caps_toggle = +capslock(grouplock) - grp:caps_switch = +capslock(groupshift) - grp:shift_caps_toggle = +group(shift_caps_toggle) - grp:shift_caps_switch = +group(shift_caps_switch) - grp:win_space_toggle = +group(win_space_toggle) - grp:win_menu_switch = +group(win_menu_switch) - grp:alt_caps_toggle = +group(alt_caps_toggle) - grp:alt_space_toggle = +group(alt_space_toggle) - grp:menu_toggle = +group(menu_toggle) - grp:lwin_toggle = +group(lwin_toggle) - grp:rwin_toggle = +group(rwin_toggle) - grp:lshift_toggle = +group(lshift_toggle) - grp:rshift_toggle = +group(rshift_toggle) - grp:rctrl_switch = +group(rctrl_switch) - grp:lctrl_toggle = +group(lctrl_toggle) - grp:rctrl_toggle = +group(rctrl_toggle) - grp:lalt_toggle = +group(lalt_toggle) - grp:sclk_toggle = +group(sclk_toggle) - grp:lctrl_rctrl_switch = +group(lctrl_rctrl_switch) - grp:lctrl_lwin_rctrl_menu = +group(lctrl_lwin_rctrl_menu) - grp:lctrl_lalt_toggle = +group(lctrl_lalt_toggle) - grp:rctrl_ralt_toggle = +group(rctrl_ralt_toggle) - grp:ctrl_alt_toggle = +group(ctrl_alt_toggle) - grp:ctrl_alt_toggle_bidir = +group(ctrl_alt_toggle_bidir) - grp:lctrl_lshift_toggle = +group(lctrl_lshift_toggle) - grp:rctrl_rshift_toggle = +group(rctrl_rshift_toggle) - grp:ctrl_shift_toggle = +group(ctrl_shift_toggle) - grp:ctrl_shift_toggle_bidir = +group(ctrl_shift_toggle_bidir) - grp:lalt_lshift_toggle = +group(lalt_lshift_toggle) - grp:ralt_rshift_toggle = +group(ralt_rshift_toggle) - grp:alt_shift_toggle = +group(alt_shift_toggle) - grp:alt_shift_toggle_bidir = +group(alt_shift_toggle_bidir) - lv3:switch = +level3(switch) - lv3:ralt_switch = +level3(ralt_switch) - lv3:ralt_switch_multikey = +level3(ralt_switch_multikey) - lv3:ralt_alt = +level3(ralt_alt) - lv3:lalt_switch = +level3(lalt_switch) - lv3:alt_switch = +level3(alt_switch) - lv3:menu_switch = +level3(menu_switch) - lv3:win_switch = +level3(win_switch) - lv3:lwin_switch = +level3(lwin_switch) - lv3:rwin_switch = +level3(rwin_switch) - lv3:enter_switch = +level3(enter_switch) - caps:capslock = +capslock(capslock) - caps:numlock = +capslock(numlock) - caps:shiftlock = +capslock(shiftlock) - caps:swapescape = +capslock(swapescape) - caps:escape = +capslock(escape) - caps:backspace = +capslock(backspace) - caps:super = +capslock(super) - caps:hyper = +capslock(hyper) - caps:none = +capslock(none) - caps:ctrl_modifier = +capslock(ctrl_modifier) - ctrl:nocaps = +ctrl(nocaps) - ctrl:lctrl_meta = +ctrl(lctrl_meta) - ctrl:swapcaps = +ctrl(swapcaps) - ctrl:ac_ctrl = +ctrl(ac_ctrl) - ctrl:aa_ctrl = +ctrl(aa_ctrl) - ctrl:rctrl_ralt = +ctrl(rctrl_ralt) - ctrl:menu_rctrl = +ctrl(menu_rctrl) - ctrl:ralt_rctrl = +ctrl(ralt_rctrl) - ctrl:swap_lalt_lctl = +ctrl(swap_lalt_lctl) - ctrl:swap_lwin_lctl = +ctrl(swap_lwin_lctl) - ctrl:swap_rwin_rctl = +ctrl(swap_rwin_rctl) - ctrl:swap_lalt_lctl_lwin = +ctrl(swap_lalt_lctl_lwin) - compose:ralt = +compose(ralt) - compose:lwin = +compose(lwin) - compose:lwin-altgr = +compose(lwin-altgr) - compose:rwin = +compose(rwin) - compose:rwin-altgr = +compose(rwin-altgr) - compose:menu = +compose(menu) - compose:menu-altgr = +compose(menu-altgr) - compose:lctrl = +compose(lctrl) - compose:lctrl-altgr = +compose(lctrl-altgr) - compose:rctrl = +compose(rctrl) - compose:rctrl-altgr = +compose(rctrl-altgr) - compose:caps = +compose(caps) - compose:caps-altgr = +compose(caps-altgr) - compose:102 = +compose(102) - compose:102-altgr = +compose(102-altgr) - compose:paus = +compose(paus) - compose:prsc = +compose(prsc) - compose:sclk = +compose(sclk) - srvrkeys:none = +srvr_ctrl(no_srvr_keys) - eurosign:e = +eurosign(e) - eurosign:2 = +eurosign(2) - eurosign:4 = +eurosign(4) - eurosign:5 = +eurosign(5) - rupeesign:4 = +rupeesign(4) - keypad:oss = +keypad(oss) - keypad:legacy = +keypad(legacy) - keypad:legacy_wang = +keypad(legacy_wang) - keypad:oss_wang = +keypad(oss_wang) - keypad:future = +keypad(future) - keypad:future_wang = +keypad(future_wang) - keypad:hex = +keypad(ops)+keypad(hex) - keypad:atm = +keypad(ops)+keypad(hex)+keypad(atm) - nbsp:none = +nbsp(none) - nbsp:level2 = +nbsp(level2) - nbsp:level3 = +nbsp(level3) - nbsp:level3s = +nbsp(level3s) - nbsp:level3n = +nbsp(level3n) - nbsp:level4 = +nbsp(level4) - nbsp:level4n = +nbsp(level4n) - nbsp:level4nl = +nbsp(level4nl) - japan:nicola_f_bs = +jp(nicola_f_bs) - japan:hztg_escape = +jp(hztg_escape) - korean:ralt_rctrl = +kr(ralt_hangul)+kr(rctrl_hanja) - korean:rctrl_ralt = +kr(rctrl_hangul)+kr(ralt_hanja) - kpdl:dot = +kpdl(dot) - kpdl:comma = +kpdl(comma) - kpdl:dotoss = +kpdl(dotoss) - kpdl:dotoss_latin9 = +kpdl(dotoss_latin9) - kpdl:commaoss = +kpdl(commaoss) - kpdl:momayyezoss = +kpdl(momayyezoss) - kpdl:kposs = +kpdl(kposs) - kpdl:semi = +kpdl(semi) - shift:breaks_caps = +shift(breaks_caps) - esperanto:qwerty = +epo(qwerty) - esperanto:dvorak = +epo(dvorak) - esperanto:colemak = +epo(colemak) - terminate:ctrl_alt_bksp = +terminate(ctrl_alt_bksp) - keypad:pointerkeys = +keypad(pointerkeys) - apple:alupckeys = +macintosh_vndr/apple(alupckeys) - shift:both_capslock = +shift(both_capslock) - shift:lshift_both_capslock = +shift(lshift_both_capslock) - shift:rshift_both_capslock = +shift(rshift_both_capslock) - shift:both_capslock_cancel = +shift(both_capslock_cancel) - shift:lshift_both_capslock_cancel = +shift(lshift_both_capslock_cancel) - shift:rshift_both_capslock_cancel = +shift(rshift_both_capslock_cancel) - shift:both_shiftlock = +shift(both_shiftlock) - shift:lshift_both_shiftlock = +shift(lshift_both_shiftlock) - shift:rshift_both_shiftlock = +shift(rshift_both_shiftlock) - solaris:sun_compat = +sun_vndr/solaris(sun_compat) - lv3:caps_switch = +level3(caps_switch) - lv3:bksl_switch = +level3(bksl_switch) - lv3:lsgt_switch = +level3(lsgt_switch) - lv3:caps_switch_latch = +level3(caps_switch_latch) - lv3:bksl_switch_latch = +level3(bksl_switch_latch) - lv3:lsgt_switch_latch = +level3(lsgt_switch_latch) - lv5:lsgt_switch_lock = +level5(lsgt_switch_lock) - lv5:ralt_switch_lock = +level5(ralt_switch_lock) - lv5:lwin_switch_lock = +level5(lwin_switch_lock) - lv5:rwin_switch_lock = +level5(rwin_switch_lock) - lv5:lsgt_switch_lock_cancel = +level5(lsgt_switch_lock_cancel) - lv5:ralt_switch_lock_cancel = +level5(ralt_switch_lock_cancel) - lv5:lwin_switch_lock_cancel = +level5(lwin_switch_lock_cancel) - lv5:rwin_switch_lock_cancel = +level5(rwin_switch_lock_cancel) - - - -! option = compat - grp_led:num = +lednum(group_lock) - grp_led:caps = +ledcaps(group_lock) - grp_led:scroll = +ledscroll(group_lock) - japan:kana_lock = +japan(kana_lock) - caps:shiftlock = +ledcaps(shift_lock) - grab:break_actions = +xfree86(grab_break) - - -! option = types - caps:internal = +caps(internal) - caps:internal_nocancel = +caps(internal_nocancel) - caps:shift = +caps(shift) - caps:shift_nocancel = +caps(shift_nocancel) - numpad:pc = +numpad(pc) - numpad:mac = +numpad(mac) - numpad:microsoft = +numpad(microsoft) - numpad:shift3 = +numpad(shift3) diff --git a/external/mit/xorg/lib/xkeyboard-config/rules/base.lst b/external/mit/xorg/lib/xkeyboard-config/rules/base.lst deleted file mode 100644 index d81f37565..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/rules/base.lst +++ /dev/null @@ -1,898 +0,0 @@ -! model - pc101 Generic 101-key PC - pc102 Generic 102-key (Intl) PC - pc104 Generic 104-key PC - pc105 Generic 105-key (Intl) PC - dell101 Dell 101-key PC - latitude Dell Latitude series laptop - dellm65 Dell Precision M65 - everex Everex STEPnote - flexpro Keytronic FlexPro - microsoft Microsoft Natural - omnikey101 Northgate OmniKey 101 - winbook Winbook Model XP5 - pc98 PC-98xx Series - a4techKB21 A4Tech KB-21 - a4techKBS8 A4Tech KBS-8 - a4_rfkb23 A4Tech Wireless Desktop RFKB-23 - airkey Acer AirKey V - azonaRF2300 Azona RF2300 wireless Internet Keyboard - scorpius Advance Scorpius KI - brother Brother Internet Keyboard - btc5113rf BTC 5113RF Multimedia - btc5126t BTC 5126T - btc6301urf BTC 6301URF - btc9000 BTC 9000 - btc9000a BTC 9000A - btc9001ah BTC 9001AH - btc5090 BTC 5090 - btc9019u BTC 9019U - btc9116u BTC 9116U Mini Wireless Internet and Gaming - cherryblue Cherry Blue Line CyBo@rd - cherryblueb Cherry CyMotion Master XPress - cherrybluea Cherry Blue Line CyBo@rd (alternate option) - cherrycyboard Cherry CyBo@rd USB-Hub - cherrycmexpert Cherry CyMotion Expert - cherrybunlim Cherry B.UNLIMITED - chicony Chicony Internet Keyboard - chicony0108 Chicony KU-0108 - chicony0420 Chicony KU-0420 - chicony9885 Chicony KB-9885 - compaqeak8 Compaq Easy Access Keyboard - compaqik7 Compaq Internet Keyboard (7 keys) - compaqik13 Compaq Internet Keyboard (13 keys) - compaqik18 Compaq Internet Keyboard (18 keys) - cymotionlinux Cherry CyMotion Master Linux - armada Laptop/notebook Compaq (eg. Armada) Laptop Keyboard - presario Laptop/notebook Compaq (eg. Presario) Internet Keyboard - ipaq Compaq iPaq Keyboard - dell Dell - dellsk8125 Dell SK-8125 - dellsk8135 Dell SK-8135 - dellusbmm Dell USB Multimedia Keyboard - inspiron Dell Laptop/notebook Inspiron 6xxx/8xxx - precision_m Dell Laptop/notebook Precision M series - dexxa Dexxa Wireless Desktop Keyboard - diamond Diamond 9801 / 9802 series - dtk2000 DTK2000 - ennyah_dkb1008 Ennyah DKB-1008 - fscaa1667g Fujitsu-Siemens Computers AMILO laptop - genius Genius Comfy KB-16M / Genius MM Keyboard KWD-910 - geniuscomfy Genius Comfy KB-12e - geniuscomfy2 Genius Comfy KB-21e-Scroll - geniuskb19e Genius KB-19e NB - geniuskkb2050hs Genius KKB-2050HS - gyration Gyration - htcdream HTC Dream - kinesis Kinesis - logitech_base Logitech Generic Keyboard - logitech_g15 Logitech G15 extra keys via G15daemon - hpi6 Hewlett-Packard Internet Keyboard - hp250x Hewlett-Packard SK-250x Multimedia Keyboard - hpxe3gc Hewlett-Packard Omnibook XE3 GC - hpxe3gf Hewlett-Packard Omnibook XE3 GF - hpxt1000 Hewlett-Packard Omnibook XT1000 - hpdv5 Hewlett-Packard Pavilion dv5 - hpzt11xx Hewlett-Packard Pavilion ZT11xx - hp500fa Hewlett-Packard Omnibook 500 FA - hp5xx Hewlett-Packard Omnibook 5xx - hpnx9020 Hewlett-Packard nx9020 - hp6000 Hewlett-Packard Omnibook 6000/6100 - honeywell_euroboard Honeywell Euroboard - hpmini110 Hewlett-Packard Mini 110 Notebook - rapidaccess IBM Rapid Access - rapidaccess2 IBM Rapid Access II - thinkpad IBM ThinkPad 560Z/600/600E/A22E - thinkpad60 IBM ThinkPad R60/T60/R61/T61 - thinkpadz60 IBM ThinkPad Z60m/Z60t/Z61m/Z61t - ibm_spacesaver IBM Space Saver - logiaccess Logitech Access Keyboard - logiclx300 Logitech Cordless Desktop LX-300 - logii350 Logitech Internet 350 Keyboard - logimel Logitech Media Elite Keyboard - logicd Logitech Cordless Desktop - logicd_it Logitech Cordless Desktop iTouch - logicd_nav Logitech Cordless Desktop Navigator - logicd_opt Logitech Cordless Desktop Optical - logicda Logitech Cordless Desktop (alternate option) - logicdpa2 Logitech Cordless Desktop Pro (alternate option 2) - logicfn Logitech Cordless Freedom/Desktop Navigator - logicdn Logitech Cordless Desktop Navigator - logiitc Logitech iTouch Cordless Keyboard (model Y-RB6) - logiik Logitech Internet Keyboard - itouch Logitech iTouch - logicink Logitech Internet Navigator Keyboard - logiex110 Logitech Cordless Desktop EX110 - logiinkse Logitech iTouch Internet Navigator Keyboard SE - logiinkseusb Logitech iTouch Internet Navigator Keyboard SE (USB) - logiultrax Logitech Ultra-X Keyboard - logiultraxc Logitech Ultra-X Cordless Media Desktop Keyboard - logidinovo Logitech diNovo Keyboard - logidinovoedge Logitech diNovo Edge Keyboard - mx1998 Memorex MX1998 - mx2500 Memorex MX2500 EZ-Access Keyboard - mx2750 Memorex MX2750 - microsoft4000 Microsoft Natural Ergonomic Keyboard 4000 - microsoft7000 Microsoft Natural Wireless Ergonomic Keyboard 7000 - microsoftinet Microsoft Internet Keyboard - microsoftpro Microsoft Natural Keyboard Pro / Microsoft Internet Keyboard Pro - microsoftprousb Microsoft Natural Keyboard Pro USB / Microsoft Internet Keyboard Pro - microsoftprooem Microsoft Natural Keyboard Pro OEM - vsonku306 ViewSonic KU-306 Internet Keyboard - microsoftprose Microsoft Internet Keyboard Pro, Swedish - microsoftoffice Microsoft Office Keyboard - microsoftmult Microsoft Wireless Multimedia Keyboard 1.0A - microsoftelite Microsoft Natural Keyboard Elite - microsoftccurve2k Microsoft Comfort Curve Keyboard 2000 - oretec Ortek MCK-800 MM/Internet keyboard - propeller Propeller Voyager (KTEZ-1000) - qtronix QTronix Scorpius 98N+ - samsung4500 Samsung SDM 4500P - samsung4510 Samsung SDM 4510P - sanwaskbkg3 Sanwa Supply SKB-KG3 - sk1300 SK-1300 - sk2500 SK-2500 - sk6200 SK-6200 - sk7100 SK-7100 - sp_inet Super Power Multimedia Keyboard - sven SVEN Ergonomic 2500 - sven303 SVEN Slim 303 - symplon Symplon PaceBook (tablet PC) - toshiba_s3000 Toshiba Satellite S3000 - trust Trust Wireless Keyboard Classic - trustda Trust Direct Access Keyboard - trust_slimline Trust Slimline - tm2020 TypeMatrix EZ-Reach 2020 - tm2030PS2 TypeMatrix EZ-Reach 2030 PS2 - tm2030USB TypeMatrix EZ-Reach 2030 USB - tm2030USB-102 TypeMatrix EZ-Reach 2030 USB (102/105:EU mode) - tm2030USB-106 TypeMatrix EZ-Reach 2030 USB (106:JP mode) - yahoo Yahoo! Internet Keyboard - macbook78 MacBook/MacBook Pro - macbook79 MacBook/MacBook Pro (Intl) - macintosh Macintosh - macintosh_old Macintosh Old - macintosh_hhk Happy Hacking Keyboard for Mac - acer_c300 Acer C300 - acer_ferrari4k Acer Ferrari 4000 - acer_laptop Acer Laptop - asus_laptop Asus Laptop - apple Apple - apple_laptop Apple Laptop - applealu_ansi Apple Aluminium Keyboard (ANSI) - applealu_iso Apple Aluminium Keyboard (ISO) - applealu_jis Apple Aluminium Keyboard (JIS) - silvercrest SILVERCREST Multimedia Wireless Keyboard - emachines Laptop/notebook eMachines m68xx - benqx BenQ X-Touch - benqx730 BenQ X-Touch 730 - benqx800 BenQ X-Touch 800 - hhk Happy Hacking Keyboard - classmate Classmate PC - olpc OLPC - sun_type7_usb Sun Type 7 USB - sun_type7_euro_usb Sun Type 7 USB (European layout) - sun_type7_unix_usb Sun Type 7 USB (Unix layout) - sun_type7_jp_usb Sun Type 7 USB (Japanese layout) / Japanese 106-key - sun_type6_usb Sun Type 6/7 USB - sun_type6_euro_usb Sun Type 6/7 USB (European layout) - sun_type6_unix_usb Sun Type 6 USB (Unix layout) - sun_type6_jp_usb Sun Type 6 USB (Japanese layout) - sun_type6_jp Sun Type 6 (Japanese layout) - targa_v811 Targa Visionary 811 - unitekkb1925 Unitek KB-1925 - compalfl90 FL90 - creativedw7000 Creative Desktop Wireless 7000 - htcdream Htc Dream phone - -! layout - us English (US) - af Afghani - ara Arabic - al Albanian - am Armenian - at German (Austria) - az Azerbaijani - by Belarusian - be Belgian - bd Bangla - in Indian - ba Bosnian - br Portuguese (Brazil) - bg Bulgarian - ma Arabic (Morocco) - cm English (Cameroon) - mm Burmese - ca French (Canada) - cd French (Democratic Republic of the Congo) - cn Chinese - hr Croatian - cz Czech - dk Danish - nl Dutch - bt Dzongkha - ee Estonian - ir Persian - iq Iraqi - fo Faroese - fi Finnish - fr French - gh English (Ghana) - gn French (Guinea) - ge Georgian - de German - gr Greek - hu Hungarian - is Icelandic - il Hebrew - it Italian - jp Japanese - kg Kyrgyz - kh Khmer (Cambodia) - kz Kazakh - la Lao - latam Spanish (Latin American) - lt Lithuanian - lv Latvian - mao Maori - me Montenegrin - mk Macedonian - mt Maltese - mn Mongolian - no Norwegian - pl Polish - pt Portuguese - ro Romanian - ru Russian - rs Serbian - si Slovenian - sk Slovak - es Spanish - se Swedish - ch German (Switzerland) - sy Arabic (Syria) - tj Tajik - lk Sinhala (phonetic) - th Thai - tr Turkish - tw Taiwanese - ua Ukrainian - gb English (UK) - uz Uzbek - vn Vietnamese - kr Korean - nec_vndr/jp Japanese (PC-98xx Series) - ie Irish - pk Urdu (Pakistan) - mv Dhivehi - za English (South Africa) - epo Esperanto - np Nepali - ng English (Nigeria) - et Amharic - sn Wolof - brai Braille - tm Turkmen - ml Bambara - tz Swahili (Tanzania) - ke Swahili (Kenya) - bw Tswana - ph Filipino - md Moldavian - -! variant - chr us: Cherokee - euro us: English (US, with euro on 5) - intl us: English (US, international with dead keys) - alt-intl us: English (US, alternative international) - colemak us: English (Colemak) - dvorak us: English (Dvorak) - dvorak-intl us: English (Dvorak, international with dead keys) - dvorak-alt-intl us: English (Dvorak alternative international no dead keys) - dvorak-l us: English (left handed Dvorak) - dvorak-r us: English (right handed Dvorak) - dvorak-classic us: English (classic Dvorak) - dvp us: English (programmer Dvorak) - rus us: Russian (US, phonetic) - mac us: English (Macintosh) - altgr-intl us: English (international AltGr dead keys) - olpc2 us: English (the divide/multiply keys toggle the layout) - hbs us: Serbo-Croatian (US) - workman us: English (Workman) - workman-intl us: English (Workman, international with dead keys) - ps af: Pashto - uz af: Uzbek (Afghanistan) - olpc-ps af: Pashto (Afghanistan, OLPC) - fa-olpc af: Persian (Afghanistan, Dari OLPC) - uz-olpc af: Uzbek (Afghanistan, OLPC) - azerty ara: Arabic (azerty) - azerty_digits ara: Arabic (azerty/digits) - digits ara: Arabic (digits) - qwerty ara: Arabic (qwerty) - qwerty_digits ara: Arabic (qwerty/digits) - buckwalter ara: Arabic (Buckwalter) - mac ara: Arabic (Macintosh) - plisi-d1 al: Albanian (Plisi D1) - phonetic am: Armenian (phonetic) - phonetic-alt am: Armenian (alternative phonetic) - eastern am: Armenian (eastern) - western am: Armenian (western) - eastern-alt am: Armenian (alternative eastern) - nodeadkeys at: German (Austria, eliminate dead keys) - sundeadkeys at: German (Austria, Sun dead keys) - mac at: German (Austria, Macintosh) - cyrillic az: Azerbaijani (Cyrillic) - legacy by: Belarusian (legacy) - latin by: Belarusian (Latin) - oss be: Belgian (alternative) - oss_latin9 be: Belgian (alternative, Latin-9 only) - oss_sundeadkeys be: Belgian (alternative, Sun dead keys) - iso-alternate be: Belgian (ISO alternate) - nodeadkeys be: Belgian (eliminate dead keys) - sundeadkeys be: Belgian (Sun dead keys) - wang be: Belgian (Wang model 724 azerty) - probhat bd: Bangla (Probhat) - ben in: Bangla (India) - ben_probhat in: Bangla (India, Probhat) - ben_baishakhi in: Bangla (India, Baishakhi) - ben_bornona in: Bangla (India, Bornona) - ben_gitanjali in: Bangla (India, Uni Gitanjali) - ben_inscript in: Bangla (India, Baishakhi Inscript) - eeyek in: Manipuri (Eeyek) - guj in: Gujarati - guru in: Punjabi (Gurmukhi) - jhelum in: Punjabi (Gurmukhi Jhelum) - kan in: Kannada - kan-kagapa in: Kannada (KaGaPa phonetic) - mal in: Malayalam - mal_lalitha in: Malayalam (Lalitha) - mal_enhanced in: Malayalam (enhanced Inscript, with rupee sign) - ori in: Oriya - tam_unicode in: Tamil (Unicode) - tam_keyboard_with_numerals in: Tamil (keyboard with numerals) - tam_TAB in: Tamil (TAB typewriter) - tam_TSCII in: Tamil (TSCII typewriter) - tam in: Tamil - tel in: Telugu - tel-kagapa in: Telugu (KaGaPa phonetic) - urd-phonetic in: Urdu (phonetic) - urd-phonetic3 in: Urdu (alternative phonetic) - urd-winkeys in: Urdu (WinKeys) - bolnagri in: Hindi (Bolnagri) - hin-wx in: Hindi (Wx) - hin-kagapa in: Hindi (KaGaPa phonetic) - san-kagapa in: Sanskrit (KaGaPa phonetic) - mar-kagapa in: Marathi (KaGaPa phonetic) - eng in: English (India, with rupee sign) - alternatequotes ba: Bosnian (with guillemets for quotes) - unicode ba: Bosnian (with Bosnian digraphs) - unicodeus ba: Bosnian (US keyboard with Bosnian digraphs) - us ba: Bosnian (US keyboard with Bosnian letters) - nodeadkeys br: Portuguese (Brazil, eliminate dead keys) - dvorak br: Portuguese (Brazil, Dvorak) - nativo br: Portuguese (Brazil, Nativo) - nativo-us br: Portuguese (Brazil, Nativo for US keyboards) - nativo-epo br: Esperanto (Brazil, Nativo) - phonetic bg: Bulgarian (traditional phonetic) - bas_phonetic bg: Bulgarian (new phonetic) - french ma: French (Morocco) - tifinagh ma: Berber (Morocco, Tifinagh) - tifinagh-alt ma: Berber (Morocco, Tifinagh alternative) - tifinagh-alt-phonetic ma: Berber (Morocco, Tifinagh alternative phonetic) - tifinagh-extended ma: Berber (Morocco, Tifinagh extended) - tifinagh-phonetic ma: Berber (Morocco, Tifinagh phonetic) - tifinagh-extended-phonetic ma: Berber (Morocco, Tifinagh extended phonetic) - french cm: French (Cameroon) - qwerty cm: Cameroon Multilingual (qwerty) - azerty cm: Cameroon Multilingual (azerty) - dvorak cm: Cameroon Multilingual (Dvorak) - fr-dvorak ca: French (Canada, Dvorak) - fr-legacy ca: French (Canada, legacy) - multix ca: Canadian Multilingual - multi ca: Canadian Multilingual (first part) - multi-2gr ca: Canadian Multilingual (second part) - ike ca: Inuktitut - eng ca: English (Canada) - tib cn: Tibetan - tib_asciinum cn: Tibetan (with ASCII numerals) - ug cn: Uyghur - alternatequotes hr: Croatian (with guillemets for quotes) - unicode hr: Croatian (with Croatian digraphs) - unicodeus hr: Croatian (US keyboard with Croatian digraphs) - us hr: Croatian (US keyboard with Croatian letters) - bksl cz: Czech (with <\|> key) - qwerty cz: Czech (qwerty) - qwerty_bksl cz: Czech (qwerty, extended Backslash) - ucw cz: Czech (UCW layout, accented letters only) - dvorak-ucw cz: Czech (US Dvorak with CZ UCW support) - nodeadkeys dk: Danish (eliminate dead keys) - winkeys dk: Danish (Winkeys) - mac dk: Danish (Macintosh) - mac_nodeadkeys dk: Danish (Macintosh, eliminate dead keys) - dvorak dk: Danish (Dvorak) - sundeadkeys nl: Dutch (Sun dead keys) - mac nl: Dutch (Macintosh) - std nl: Dutch (standard) - nodeadkeys ee: Estonian (eliminate dead keys) - dvorak ee: Estonian (Dvorak) - us ee: Estonian (US keyboard with Estonian letters) - pes_keypad ir: Persian (with Persian keypad) - ku ir: Kurdish (Iran, Latin Q) - ku_f ir: Kurdish (Iran, F) - ku_alt ir: Kurdish (Iran, Latin Alt-Q) - ku_ara ir: Kurdish (Iran, Arabic-Latin) - ku iq: Kurdish (Iraq, Latin Q) - ku_f iq: Kurdish (Iraq, F) - ku_alt iq: Kurdish (Iraq, Latin Alt-Q) - ku_ara iq: Kurdish (Iraq, Arabic-Latin) - nodeadkeys fo: Faroese (eliminate dead keys) - classic fi: Finnish (classic) - nodeadkeys fi: Finnish (classic, eliminate dead keys) - winkeys fi: Finnish (Winkeys) - smi fi: Northern Saami (Finland) - mac fi: Finnish (Macintosh) - nodeadkeys fr: French (eliminate dead keys) - sundeadkeys fr: French (Sun dead keys) - oss fr: French (alternative) - oss_latin9 fr: French (alternative, Latin-9 only) - oss_nodeadkeys fr: French (alternative, eliminate dead keys) - oss_sundeadkeys fr: French (alternative, Sun dead keys) - latin9 fr: French (legacy, alternative) - latin9_nodeadkeys fr: French (legacy, alternative, eliminate dead keys) - latin9_sundeadkeys fr: French (legacy, alternative, Sun dead keys) - bepo fr: French (Bepo, ergonomic, Dvorak way) - bepo_latin9 fr: French (Bepo, ergonomic, Dvorak way, Latin-9 only) - dvorak fr: French (Dvorak) - mac fr: French (Macintosh) - bre fr: French (Breton) - oci fr: Occitan - geo fr: Georgian (France, AZERTY Tskapo) - generic gh: English (Ghana, multilingual) - akan gh: Akan - ewe gh: Ewe - fula gh: Fula - ga gh: Ga - hausa gh: Hausa - avn gh: Avatime - gillbt gh: English (Ghana, GILLBT) - ergonomic ge: Georgian (ergonomic) - mess ge: Georgian (MESS) - ru ge: Russian (Georgia) - os ge: Ossetian (Georgia) - deadacute de: German (dead acute) - deadgraveacute de: German (dead grave acute) - nodeadkeys de: German (eliminate dead keys) - T3 de: German (T3) - ro de: Romanian (Germany) - ro_nodeadkeys de: Romanian (Germany, eliminate dead keys) - dvorak de: German (Dvorak) - sundeadkeys de: German (Sun dead keys) - neo de: German (Neo 2) - mac de: German (Macintosh) - mac_nodeadkeys de: German (Macintosh, eliminate dead keys) - dsb de: Lower Sorbian - dsb_qwertz de: Lower Sorbian (qwertz) - qwerty de: German (qwerty) - tr de: Turkish (Germany) - ru de: Russian (Germany, phonetic) - legacy de: German (legacy) - simple gr: Greek (simple) - extended gr: Greek (extended) - nodeadkeys gr: Greek (eliminate dead keys) - polytonic gr: Greek (polytonic) - standard hu: Hungarian (standard) - nodeadkeys hu: Hungarian (eliminate dead keys) - qwerty hu: Hungarian (qwerty) - 101_qwertz_comma_dead hu: Hungarian (101/qwertz/comma/dead keys) - 101_qwertz_comma_nodead hu: Hungarian (101/qwertz/comma/eliminate dead keys) - 101_qwertz_dot_dead hu: Hungarian (101/qwertz/dot/dead keys) - 101_qwertz_dot_nodead hu: Hungarian (101/qwertz/dot/eliminate dead keys) - 101_qwerty_comma_dead hu: Hungarian (101/qwerty/comma/dead keys) - 101_qwerty_comma_nodead hu: Hungarian (101/qwerty/comma/eliminate dead keys) - 101_qwerty_dot_dead hu: Hungarian (101/qwerty/dot/dead keys) - 101_qwerty_dot_nodead hu: Hungarian (101/qwerty/dot/eliminate dead keys) - 102_qwertz_comma_dead hu: Hungarian (102/qwertz/comma/dead keys) - 102_qwertz_comma_nodead hu: Hungarian (102/qwertz/comma/eliminate dead keys) - 102_qwertz_dot_dead hu: Hungarian (102/qwertz/dot/dead keys) - 102_qwertz_dot_nodead hu: Hungarian (102/qwertz/dot/eliminate dead keys) - 102_qwerty_comma_dead hu: Hungarian (102/qwerty/comma/dead keys) - 102_qwerty_comma_nodead hu: Hungarian (102/qwerty/comma/eliminate dead keys) - 102_qwerty_dot_dead hu: Hungarian (102/qwerty/dot/dead keys) - 102_qwerty_dot_nodead hu: Hungarian (102/qwerty/dot/eliminate dead keys) - Sundeadkeys is: Icelandic (Sun dead keys) - nodeadkeys is: Icelandic (eliminate dead keys) - mac_legacy is: Icelandic (Macintosh, legacy) - mac is: Icelandic (Macintosh) - dvorak is: Icelandic (Dvorak) - lyx il: Hebrew (lyx) - phonetic il: Hebrew (phonetic) - biblical il: Hebrew (Biblical, Tiro) - nodeadkeys it: Italian (eliminate dead keys) - winkeys it: Italian (Winkeys) - mac it: Italian (Macintosh) - us it: Italian (US keyboard with Italian letters) - geo it: Georgian (Italy) - ibm it: Italian (IBM 142) - kana jp: Japanese (Kana) - kana86 jp: Japanese (Kana 86) - OADG109A jp: Japanese (OADG 109A) - mac jp: Japanese (Macintosh) - dvorak jp: Japanese (Dvorak) - phonetic kg: Kyrgyz (phonetic) - ruskaz kz: Russian (Kazakhstan, with Kazakh) - kazrus kz: Kazakh (with Russian) - stea la: Lao (STEA proposed standard layout) - nodeadkeys latam: Spanish (Latin American, eliminate dead keys) - deadtilde latam: Spanish (Latin American, include dead tilde) - sundeadkeys latam: Spanish (Latin American, Sun dead keys) - dvorak latam: Spanish (Latin American, Dvorak) - std lt: Lithuanian (standard) - us lt: Lithuanian (US keyboard with Lithuanian letters) - ibm lt: Lithuanian (IBM LST 1205-92) - lekp lt: Lithuanian (LEKP) - lekpa lt: Lithuanian (LEKPa) - apostrophe lv: Latvian (apostrophe variant) - tilde lv: Latvian (tilde variant) - fkey lv: Latvian (F variant) - modern lv: Latvian (modern) - ergonomic lv: Latvian (ergonomic, ŪGJRMV) - adapted lv: Latvian (adapted) - cyrillic me: Montenegrin (Cyrillic) - cyrillicyz me: Montenegrin (Cyrillic, ZE and ZHE swapped) - latinunicode me: Montenegrin (Latin Unicode) - latinyz me: Montenegrin (Latin qwerty) - latinunicodeyz me: Montenegrin (Latin Unicode qwerty) - cyrillicalternatequotes me: Montenegrin (Cyrillic with guillemets) - latinalternatequotes me: Montenegrin (Latin with guillemets) - nodeadkeys mk: Macedonian (eliminate dead keys) - us mt: Maltese (with US layout) - nodeadkeys no: Norwegian (eliminate dead keys) - winkeys no: Norwegian (Winkeys) - dvorak no: Norwegian (Dvorak) - smi no: Northern Saami (Norway) - smi_nodeadkeys no: Northern Saami (Norway, eliminate dead keys) - mac no: Norwegian (Macintosh) - mac_nodeadkeys no: Norwegian (Macintosh, eliminate dead keys) - colemak no: Norwegian (Colemak) - legacy pl: Polish (legacy) - qwertz pl: Polish (qwertz) - dvorak pl: Polish (Dvorak) - dvorak_quotes pl: Polish (Dvorak, Polish quotes on quotemark key) - dvorak_altquotes pl: Polish (Dvorak, Polish quotes on key 1) - csb pl: Kashubian - szl pl: Silesian - ru_phonetic_dvorak pl: Russian (Poland, phonetic Dvorak) - dvp pl: Polish (programmer Dvorak) - nodeadkeys pt: Portuguese (eliminate dead keys) - sundeadkeys pt: Portuguese (Sun dead keys) - mac pt: Portuguese (Macintosh) - mac_nodeadkeys pt: Portuguese (Macintosh, eliminate dead keys) - mac_sundeadkeys pt: Portuguese (Macintosh, Sun dead keys) - nativo pt: Portuguese (Nativo) - nativo-us pt: Portuguese (Nativo for US keyboards) - nativo-epo pt: Esperanto (Portugal, Nativo) - cedilla ro: Romanian (cedilla) - std ro: Romanian (standard) - std_cedilla ro: Romanian (standard cedilla) - winkeys ro: Romanian (WinKeys) - phonetic ru: Russian (phonetic) - phonetic_winkeys ru: Russian (phonetic WinKeys) - typewriter ru: Russian (typewriter) - legacy ru: Russian (legacy) - typewriter-legacy ru: Russian (typewriter, legacy) - tt ru: Tatar - os_legacy ru: Ossetian (legacy) - os_winkeys ru: Ossetian (WinKeys) - cv ru: Chuvash - cv_latin ru: Chuvash (Latin) - udm ru: Udmurt - kom ru: Komi - sah ru: Yakut - xal ru: Kalmyk - dos ru: Russian (DOS) - mac ru: Russian (Macintosh) - srp ru: Serbian (Russia) - bak ru: Bashkirian - chm ru: Mari - phonetic_azerty ru: Russian (phonetic azerty) - phonetic_fr ru: Russian (phonetic French) - yz rs: Serbian (Cyrillic, ZE and ZHE swapped) - latin rs: Serbian (Latin) - latinunicode rs: Serbian (Latin Unicode) - latinyz rs: Serbian (Latin qwerty) - latinunicodeyz rs: Serbian (Latin Unicode qwerty) - alternatequotes rs: Serbian (Cyrillic with guillemets) - latinalternatequotes rs: Serbian (Latin with guillemets) - rue rs: Pannonian Rusyn - alternatequotes si: Slovenian (with guillemets for quotes) - us si: Slovenian (US keyboard with Slovenian letters) - bksl sk: Slovak (extended Backslash) - qwerty sk: Slovak (qwerty) - qwerty_bksl sk: Slovak (qwerty, extended Backslash) - nodeadkeys es: Spanish (eliminate dead keys) - winkeys es: Spanish (Winkeys) - deadtilde es: Spanish (include dead tilde) - sundeadkeys es: Spanish (Sun dead keys) - dvorak es: Spanish (Dvorak) - ast es: Asturian (Spain, with bottom-dot H and bottom-dot L) - cat es: Catalan (Spain, with middle-dot L) - mac es: Spanish (Macintosh) - nodeadkeys se: Swedish (eliminate dead keys) - dvorak se: Swedish (Dvorak) - rus se: Russian (Sweden, phonetic) - rus_nodeadkeys se: Russian (Sweden, phonetic, eliminate dead keys) - smi se: Northern Saami (Sweden) - mac se: Swedish (Macintosh) - svdvorak se: Swedish (Svdvorak) - swl se: Swedish Sign Language - legacy ch: German (Switzerland, legacy) - de_nodeadkeys ch: German (Switzerland, eliminate dead keys) - de_sundeadkeys ch: German (Switzerland, Sun dead keys) - fr ch: French (Switzerland) - fr_nodeadkeys ch: French (Switzerland, eliminate dead keys) - fr_sundeadkeys ch: French (Switzerland, Sun dead keys) - fr_mac ch: French (Switzerland, Macintosh) - de_mac ch: German (Switzerland, Macintosh) - syc sy: Syriac - syc_phonetic sy: Syriac (phonetic) - ku sy: Kurdish (Syria, Latin Q) - ku_f sy: Kurdish (Syria, F) - ku_alt sy: Kurdish (Syria, Latin Alt-Q) - legacy tj: Tajik (legacy) - tam_unicode lk: Tamil (Sri Lanka, Unicode) - tam_TAB lk: Tamil (Sri Lanka, TAB Typewriter) - us lk: Sinhala (US keyboard with Sinhala letters) - tis th: Thai (TIS-820.2538) - pat th: Thai (Pattachote) - f tr: Turkish (F) - alt tr: Turkish (Alt-Q) - sundeadkeys tr: Turkish (Sun dead keys) - ku tr: Kurdish (Turkey, Latin Q) - ku_f tr: Kurdish (Turkey, F) - ku_alt tr: Kurdish (Turkey, Latin Alt-Q) - intl tr: Turkish (international with dead keys) - crh tr: Crimean Tatar (Turkish Q) - crh_f tr: Crimean Tatar (Turkish F) - crh_alt tr: Crimean Tatar (Turkish Alt-Q) - indigenous tw: Taiwanese (indigenous) - saisiyat tw: Saisiyat (Taiwan) - phonetic ua: Ukrainian (phonetic) - typewriter ua: Ukrainian (typewriter) - winkeys ua: Ukrainian (WinKeys) - legacy ua: Ukrainian (legacy) - rstu ua: Ukrainian (standard RSTU) - rstu_ru ua: Russian (Ukraine, standard RSTU) - homophonic ua: Ukrainian (homophonic) - extd gb: English (UK, extended WinKeys) - intl gb: English (UK, international with dead keys) - dvorak gb: English (UK, Dvorak) - dvorakukp gb: English (UK, Dvorak with UK punctuation) - mac gb: English (UK, Macintosh) - mac_intl gb: English (UK, Macintosh international) - colemak gb: English (UK, Colemak) - latin uz: Uzbek (Latin) - kr104 kr: Korean (101/104 key compatible) - CloGaelach ie: CloGaelach - UnicodeExpert ie: Irish (UnicodeExpert) - ogam ie: Ogham - ogam_is434 ie: Ogham (IS434) - urd-crulp pk: Urdu (Pakistan, CRULP) - urd-nla pk: Urdu (Pakistan, NLA) - ara pk: Arabic (Pakistan) - snd pk: Sindhi - legacy epo: Esperanto (displaced semicolon and quote, obsolete) - igbo ng: Igbo - yoruba ng: Yoruba - hausa ng: Hausa - left_hand brai: Braille (left hand) - right_hand brai: Braille (right hand) - alt tm: Turkmen (Alt-Q) - fr-oss ml: French (Mali, alternative) - us-mac ml: English (Mali, US Macintosh) - us-intl ml: English (Mali, US international) - kik ke: Kikuyu - qwerty-bay ph: Filipino (QWERTY Baybayin) - capewell-dvorak ph: Filipino (Capewell-Dvorak Latin) - capewell-dvorak-bay ph: Filipino (Capewell-Dvorak Baybayin) - capewell-qwerf2k6 ph: Filipino (Capewell-QWERF 2006 Latin) - capewell-qwerf2k6-bay ph: Filipino (Capewell-QWERF 2006 Baybayin) - colemak ph: Filipino (Colemak Latin) - colemak-bay ph: Filipino (Colemak Baybayin) - dvorak ph: Filipino (Dvorak Latin) - dvorak-bay ph: Filipino (Dvorak Baybayin) - gag md: Moldavian (Gagauz) - -! option - grp Switching to another layout - grp:switch Right Alt (while pressed) - grp:lswitch Left Alt (while pressed) - grp:lwin_switch Left Win (while pressed) - grp:rwin_switch Right Win (while pressed) - grp:win_switch Any Win key (while pressed) - grp:caps_switch Caps Lock (while pressed), Alt+Caps Lock does the original capslock action - grp:rctrl_switch Right Ctrl (while pressed) - grp:toggle Right Alt - grp:lalt_toggle Left Alt - grp:caps_toggle Caps Lock - grp:shift_caps_toggle Shift+Caps Lock - grp:shift_caps_switch Caps Lock (to first layout), Shift+Caps Lock (to last layout) - grp:win_menu_switch Left Win (to first layout), Right Win/Menu (to last layout) - grp:lctrl_rctrl_switch Left Ctrl (to first layout), Right Ctrl (to last layout) - grp:alt_caps_toggle Alt+Caps Lock - grp:shifts_toggle Both Shift keys together - grp:alts_toggle Both Alt keys together - grp:ctrls_toggle Both Ctrl keys together - grp:ctrl_shift_toggle Ctrl+Shift - grp:lctrl_lshift_toggle Left Ctrl+Left Shift - grp:rctrl_rshift_toggle Right Ctrl+Right Shift - grp:ctrl_alt_toggle Alt+Ctrl - grp:alt_shift_toggle Alt+Shift - grp:lalt_lshift_toggle Left Alt+Left Shift - grp:alt_space_toggle Alt+Space - grp:menu_toggle Menu - grp:lwin_toggle Left Win - grp:win_space_toggle Win Key+Space - grp:rwin_toggle Right Win - grp:lshift_toggle Left Shift - grp:rshift_toggle Right Shift - grp:lctrl_toggle Left Ctrl - grp:rctrl_toggle Right Ctrl - grp:sclk_toggle Scroll Lock - grp:lctrl_lwin_rctrl_menu LeftCtrl+LeftWin (to first layout), RightCtrl+Menu (to second layout) - lv3 Key to choose 3rd level - lv3:switch Right Ctrl - lv3:menu_switch Menu - lv3:win_switch Any Win key - lv3:lwin_switch Left Win - lv3:rwin_switch Right Win - lv3:alt_switch Any Alt key - lv3:lalt_switch Left Alt - lv3:ralt_switch Right Alt - lv3:ralt_switch_multikey Right Alt, Shift+Right Alt key is Compose - lv3:ralt_alt Right Alt key never chooses 3rd level - lv3:enter_switch Enter on keypad - lv3:caps_switch Caps Lock - lv3:bksl_switch Backslash - lv3:lsgt_switch <Less/Greater> - lv3:caps_switch_latch Caps Lock chooses 3rd level, acts as onetime lock when pressed together with another 3rd-level-chooser - lv3:bksl_switch_latch Backslash chooses 3rd level, acts as onetime lock when pressed together with another 3rd-level-chooser - lv3:lsgt_switch_latch <Less/Greater> chooses 3rd level, acts as onetime lock when pressed together with another 3rd-level-chooser - ctrl Ctrl key position - ctrl:nocaps Caps Lock as Ctrl - ctrl:lctrl_meta Left Ctrl as Meta - ctrl:swapcaps Swap Ctrl and Caps Lock - ctrl:ac_ctrl At left of 'A' - ctrl:aa_ctrl At bottom left - ctrl:rctrl_ralt Right Ctrl as Right Alt - ctrl:menu_rctrl Menu as Right Ctrl - ctrl:ctrl_ralt Right Alt as Right Ctrl - ctrl:swap_lalt_lctl Swap Left Alt key with Left Ctrl key - ctrl:swap_lwin_lctl Swap Left Win key with Left Ctrl key - ctrl:swap_rwin_rctl Swap Right Win key with Right Ctrl key - ctrl:swap_lalt_lctl_lwin Left Alt as Ctrl, Left Ctrl as Win, Left Win as Alt - grp_led Use keyboard LED to show alternative layout - grp_led:num Num Lock - grp_led:caps Caps Lock - grp_led:scroll Scroll Lock - keypad Layout of numeric keypad - keypad:legacy Legacy - keypad:oss Unicode additions (arrows and math operators) - keypad:future Unicode additions (arrows and math operators; math operators on default level) - keypad:legacy_wang Legacy Wang 724 - keypad:oss_wang Wang 724 keypad with Unicode additions (arrows and math operators) - keypad:future_wang Wang 724 keypad with Unicode additions (arrows and math operators; math operators on default level) - keypad:hex Hexadecimal - keypad:atm ATM/phone-style - kpdl Numeric keypad delete key behaviour - kpdl:dot Legacy key with dot - kpdl:comma Legacy key with comma - kpdl:dotoss Four-level key with dot - kpdl:dotoss_latin9 Four-level key with dot, Latin-9 only - kpdl:commaoss Four-level key with comma - kpdl:momayyezoss Four-level key with momayyez - kpdl:kposs Four-level key with abstract separators - kpdl:semi Semicolon on third level - caps Caps Lock key behavior - caps:internal Caps Lock uses internal capitalization; Shift "pauses" Caps Lock - caps:internal_nocancel Caps Lock uses internal capitalization; Shift doesn't affect Caps Lock - caps:shift Caps Lock acts as Shift with locking; Shift "pauses" Caps Lock - caps:shift_nocancel Caps Lock acts as Shift with locking; Shift doesn't affect Caps Lock - caps:capslock Caps Lock toggles normal capitalization of alphabetic characters - caps:numlock Make Caps Lock an additional Num Lock - caps:swapescape Swap ESC and Caps Lock - caps:escape Make Caps Lock an additional ESC - caps:backspace Make Caps Lock an additional Backspace - caps:super Make Caps Lock an additional Super - caps:hyper Make Caps Lock an additional Hyper - caps:shiftlock Caps Lock toggles ShiftLock (affects all keys) - caps:none Caps Lock is disabled - caps:ctrl_modifier Make Caps Lock an additional Ctrl - altwin Alt/Win key behavior - altwin:menu Add the standard behavior to Menu key - altwin:meta_alt Alt and Meta are on Alt keys - altwin:alt_win Alt is mapped to Win keys (and the usual Alt keys) - altwin:ctrl_win Ctrl is mapped to Win keys (and the usual Ctrl keys) - altwin:ctrl_alt_win Ctrl is mapped to Alt keys, Alt is mapped to Win keys - altwin:meta_win Meta is mapped to Win keys - altwin:left_meta_win Meta is mapped to Left Win - altwin:hyper_win Hyper is mapped to Win keys - altwin:alt_super_win Alt is mapped to Right Win, Super to Menu - altwin:swap_alt_win Alt is swapped with Win - Compose key Position of Compose key - compose:ralt Right Alt - compose:lwin Left Win - compose:lwin-altgr 3rd level of Left Win - compose:rwin Right Win - compose:rwin-altgr 3rd level of Right Win - compose:menu Menu - compose:menu-altgr 3rd level of Menu - compose:lctrl Left Ctrl - compose:lctrl-altgr 3rd level of Left Ctrl - compose:rctrl Right Ctrl - compose:rctrl-altgr 3rd level of Right Ctrl - compose:caps Caps Lock - compose:caps-altgr 3rd level of Caps Lock - compose:102 <Less/Greater> - compose:102-altgr 3rd level of <Less/Greater> - compose:paus Pause - compose:prsc PrtSc - compose:sclk Scroll Lock - compat Miscellaneous compatibility options - numpad:pc Default numeric keypad keys - numpad:mac Numeric keypad keys always enter digits (as in Mac OS) - numpad:microsoft NumLock on: digits, Shift switches to arrow keys, Numlock off: always arrow keys (as in MS Windows) - numpad:shift3 Shift does not cancel Num Lock, chooses 3rd level instead - srvrkeys:none Special keys (Ctrl+Alt+<key>) handled in a server - apple:alupckeys Apple Aluminium Keyboard: emulate PC keys (Print, Scroll Lock, Pause, Num Lock) - shift:breaks_caps Shift cancels Caps Lock - misc:typo Enable extra typographic characters - shift:both_capslock Both Shift keys together toggle Caps Lock - shift:both_capslock_cancel Both Shift keys together activate Caps Lock, one Shift key deactivates - shift:both_shiftlock Both Shift keys together toggle ShiftLock - keypad:pointerkeys Shift + NumLock toggles PointerKeys - grab:break_actions Allow breaking grabs with keyboard actions (warning: security risk) - grab:debug Allow grab and window tree logging - currencysign Adding currency signs to certain keys - eurosign:e Euro on E - eurosign:2 Euro on 2 - eurosign:4 Euro on 4 - eurosign:5 Euro on 5 - rupeesign:4 Rupee on 4 - lv5 Key to choose 5th level - lv5:lsgt_switch_lock <Less/Greater> chooses 5th level, locks when pressed together with another 5th-level-chooser - lv5:ralt_switch_lock Right Alt chooses 5th level, locks when pressed together with another 5th-level-chooser - lv5:lwin_switch_lock Left Win chooses 5th level, locks when pressed together with another 5th-level-chooser - lv5:rwin_switch_lock Right Win chooses 5th level, locks when pressed together with another 5th-level-chooser - nbsp Using space key to input non-breakable space character - nbsp:none Usual space at any level - nbsp:level2 Non-breakable space character at second level - nbsp:level3 Non-breakable space character at third level - nbsp:level3s Non-breakable space character at third level, nothing at fourth level - nbsp:level3n Non-breakable space character at third level, thin non-breakable space character at fourth level - nbsp:level4 Non-breakable space character at fourth level - nbsp:level4n Non-breakable space character at fourth level, thin non-breakable space character at sixth level - nbsp:level4nl Non-breakable space character at fourth level, thin non-breakable space character at sixth level (via Ctrl+Shift) - nbsp:zwnj2 Zero-width non-joiner character at second level - nbsp:zwnj2zwj3 Zero-width non-joiner character at second level, zero-width joiner character at third level - nbsp:zwnj2zwj3nb4 Zero-width non-joiner character at second level, zero-width joiner character at third level, non-breakable space character at fourth level - nbsp:zwnj2nb3 Zero-width non-joiner character at second level, non-breakable space character at third level - nbsp:zwnj2nb3s Zero-width non-joiner character at second level, non-breakable space character at third level, nothing at fourth level - nbsp:zwnj2nb3zwj4 Zero-width non-joiner character at second level, non-breakable space character at third level, zero-width joiner at fourth level - nbsp:zwnj2nb3nnb4 Zero-width non-joiner character at second level, non-breakable space character at third level, thin non-breakable space at fourth level - nbsp:zwnj3zwj4 Zero-width non-joiner character at third level, zero-width joiner at fourth level - japan Japanese keyboard options - japan:kana_lock Kana Lock key is locking - japan:nicola_f_bs NICOLA-F style Backspace - japan:hztg_escape Make Zenkaku Hankaku an additional ESC - korean Korean Hangul/Hanja keys - korean:hw_keys Hardware Hangul/Hanja keys - korean:ralt_rctrl Right Alt as Hangul, right Ctrl as Hanja - korean:rctrl_ralt Right Ctrl as Hangul, right Alt as Hanja - esperanto Adding Esperanto supersigned letters - esperanto:qwerty To the corresponding key in a Qwerty layout - esperanto:dvorak To the corresponding key in a Dvorak layout - esperanto:colemak To the corresponding key in a Colemak layout - solaris Maintain key compatibility with old Solaris keycodes - solaris:sun_compat Sun Key compatibility - terminate Key sequence to kill the X server - terminate:ctrl_alt_bksp Ctrl + Alt + Backspace diff --git a/external/mit/xorg/lib/xkeyboard-config/rules/evdev b/external/mit/xorg/lib/xkeyboard-config/rules/evdev deleted file mode 100644 index 6679cbcc8..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/rules/evdev +++ /dev/null @@ -1,1117 +0,0 @@ -// DO NOT EDIT THIS FILE - IT WAS AUTOGENERATED BY merge.sh FROM rules/*.part -// -// Rules for resolving XKB components for use with XFree86 -// Copyright 1996 by Joseph Moss -// -// 2002 Modifier: Ivan Pascal The XFree86 Project -// - -// If you want non-latin layouts implicitly include the en_US layout -// uncomment lines below -//! $nonlatin = am ara ben bd bg bt by cs deva ge gh gr guj guru il \ -// in ir iku jp kan kh kr la lao lk mk mm mn mv mal ori pk \ -// ru scc sy syr tel th tj tam ua uz - -// PC models -! $pcmodels = pc101 pc102 pc104 pc105 - -// Microsoft models (using MS geometry) -! $msmodels = microsoft microsoft4000 microsoft7000 microsoftpro microsoftprousb microsoftprose - -// Nokia devices and keyboards -! $nokiamodels = nokiasu8w nokiarx44 nokiarx51 - -// PC geometries - they have special geometry but symbols are mostly pc105 -! $pcgeometries = latitude - -// TypeMatrix geometries -! $tmgeometries = tm2020 tm2030PS2 tm2030USB tm2030USB-102 tm2030USB-106 - -// Layouts that provide further specializations for the OLPC -! $olpclayouts = af am ara br ca es et fr it kh kz in mn np ru th tr us - -! $macbooks = macbook78 macbook79 -! $maclaptop = ibook powerbook macbook78 macbook79 -! $applealu = applealu_ansi applealu_iso applealu_jis -! $macs = macintosh macintosh_old ibook powerbook macbook78 macbook79 - -! $macvendorlayouts = ch de dk fi fr gb is it latam nl no pt se us - -! $azerty = be fr -! $qwertz = al cz de hr hu ro si sk - - -// all layouts with 3rd and 4th groups -! $threelevellayouts = al az \ - be br bt \ - ca ch cs cz \ - de dk \ - ee es \ - fi fo fr \ - gb gr \ - hu \ - ie ir is it \ - latam \ - lk lt \ - mn mt \ - nl no \ - pl pt \ - ro \ - se sk \ - tr \ - us \ - vn \ - za - -! $thinkpads = thinkpad thinkpad60 thinkpadz60 - -! $sun = sun_type6_jp sun_type6_usb sun_type6_euro_usb \ - sun_type6_jp_usb sun_type6_unix_usb sun_type7_jp_usb \ - sun_type7_usb sun_type7_euro_usb sun_type7_unix_usb - -! $sun_jp = sun_type6_jp sun_type6_jp_usb sun_type7_jp_usb - -// Sun Type_6_7 keyboards with custom layouts -! $sun_custom = ara be br ca ch cz de dk \ - ee es fi fr gb gr it jp \ - kr lt lv nl no pl pt ro \ - ru se sk tr tw ua us - -! $sun_var = sun_type6 sun_type6_suncompat sun_type6_de sun_type6_fr \ - sun_type7 sun_type7_suncompat suncompat - -! $sun_compat = sun_type6 sun_type6_suncompat sun_type7_suncompat suncompat - -! $htcdreamlayouts = us it de - -! $evdevkbds = ibm_spacesaver - -! $dvoraklayouts = br ca de ee es fr gb no pl se us - -! model = keycodes - pc98 = evdev(pc98) - applealu_jis = evdev+macintosh(jisevdev) - olpc = evdev+olpc(olpc) - olpcm = evdev+olpc(olpcm) - * = evdev - -! layout[1] = keycodes - $azerty = +aliases(azerty) - $qwertz = +aliases(qwertz) - * = +aliases(qwerty) - -! layout = keycodes - $azerty = +aliases(azerty) - $qwertz = +aliases(qwertz) - * = +aliases(qwerty) - -! option = keycodes - -! model layout = geometry - thinkpad us = thinkpad(us) - -! model = geometry - microsoftelite = microsoft(elite) - $msmodels = microsoft(natural) - dell101 = dell(dell101) - dellm65 = dell(dellm65) - latitude = dell(latitude) - flexpro = keytronic(FlexPro) - hp6000 = hp(omnibook) - hpmini110 = hp(mini110) - hpdv5 = hp(dv5) - omnikey101 = northgate(omnikey101) - sanwaskbkg3 = sanwa(sanwaskbkg3) - $pcmodels = pc(%m) - $pcgeometries = pc(%m) - everex = everex(STEPnote) - thinkpad = thinkpad(intl) - thinkpad60 = thinkpad(60) - thinkpadz60 = thinkpad(60) - $tmgeometries = typematrix(%m) - winbook = winbook(XP5) - pc98 = nec(pc98) - $applealu = macintosh(%m) - $macbooks = macintosh(%m) - $macs = macintosh(macintosh) - hhk = hhk(basic) - kinesis = kinesis(model100) - $nokiamodels = nokia(%m) - sun_type6_jp = sun(type6jp) - sun_type6_usb = sun(type6) - sun_type6_euro_usb = sun(type6tuv) - sun_type6_jp_usb = sun(type6jp) - sun_type6_unix_usb = sun(type6unix) - sun_type7_jp_usb = sun(type6jp) - sun_type7_usb = sun(type7) - sun_type7_euro_usb = sun(type7tuv) - sun_type7_unix_usb = sun(type7unix) - * = pc(pc104) - -! model layout variant = symbols - * ben basic = pc+in(ben) - * ben probhat = pc+in(ben_probhat) - * dev basic = pc+in(deva) - * dvorak $dvoraklayouts = pc+%v(dvorak) - * dvorak basic = pc+us(dvorak) - * dvorak pl_basic = pc+pl(dvorak) - * dvorak pl = pc+pl(dvorak_quotes) - * dvorak pl_altquotes = pc+pl(dvorak_altquotes) - * dzdwi basic = pc+bt(basic) - * fi basic = pc+fi(classic) - * ge azerty_tskapo = pc+fr(geo) - * guj basic = pc+in(guj) - * gur basic = pc+in(guru) - * ie laptop = pc+ie(basic) - * ie CloGaelachLaptop = pc+ie(CloGaelach) - * in urd = pc+in(urd-phonetic) - * iu basic = pc+ca(ike) - * lo basic = pc+la(basic) - * kan basic = pc+in(kan) - * mal basic = pc+in(mal) - * mal mlplusnum = pc+in(mal) - * ogham basic = pc+ie(ogam) - * ogham laptop = pc+ie(ogam) - * ogham is434 = pc+ie(ogam_is434) - * ogham is434laptop = pc+ie(ogam_is434) - * ori basic = pc+in(ori) - * ro de = pc+ro(winkeys) - * ro us = pc+ro(std) - * ro academic = pc+ro(std) - * ro std_comma = pc+ro(std) - * ro comma = pc+ro(basic) - * ru os = pc+ru(os_legacy) - * pk urd = pc+pk(urd-phonetic) - * sapmi basic = pc+no(smi) - * sapmi nodeadkeys = pc+no(smi_nodeadkeys) - * sapmi sefi = pc+fi(smi) - * sin phonetic-static = pc+in(sin_phonetic) - * syr basic = pc+sy(syc) - * syr phonetic = pc+sy(syc_phonetic) - * tam INSCRIPT = pc+in(tam) - * tam UNI = pc+in(tam_unicode) - * tam NUMERAL-KEYBOARD = pc+in(tam_keyboard_with_numerals) - * tam TAB = pc+in(tam_TAB) - * tam TSCII = pc+in(tam_TSCII) - * tel basic = pc+in(tel) - * yu basic = pc+srp(latin) - * yu unicode = pc+srp(latinunicode) - * yu yz = pc+srp(latinyz) - * yu unicodeyz = pc+srp(latinunicodeyz) - classmate us intl = pc+us(classmate-intl) - classmate us alt-intl = pc+us(classmate-alt-intl) - classmate us altgr-intl = pc+us(classmate-altgr-intl) - nokiarx51 cz qwerty = nokia_vndr/rx-51(cz_qwerty) - * $sun_custom $sun_var = pc+sun_vndr/%l%(v) - -! model layout = symbols - * ar = pc+ara - * ben = pc+in(ben) - * bs = pc+ba - * cs = pc+rs - * cz_qwerty = pc+cz(qwerty) - * dev = pc+in(deva) - * dvorak = pc+us(dvorak) - * dzdwi = pc+bt - * el = pc+gr - * en_US = pc+latin - * guj = pc+in(guj) - * gur = pc+in(guru) - * iu = pc+ca(ike) - * lo = pc+la - * kan = pc+in(kan) - * mi = pc+mao - * ogham = pc+ie(ogam) - * ori = pc+ie(ori) - * sapmi = pc+no(smi) - * sr = pc+srp - * syr = pc+sy(syc) - * tel = pc+in(tel) - * tml = pc+in(tam) - * yu = pc+srp - * fr-latin9 = pc+fr(latin9) - * us_intl = pc+us(alt-intl) - * ben(basic) = pc+in(ben) - * ben(probhat) = pc+in(ben_probhat) - * dev(basic) = pc+in(deva) - * dvorak($dvoraklayouts) = pc+%v(dvorak) - * dvorak(basic) = pc+us(dvorak) - * dvorak(pl_basic) = pc+pl(dvorak) - * dvorak(pl) = pc+pl(dvorak_quotes) - * dvorak(pl_altquotes) = pc+pl(dvorak_altquotes) - * dzdwi(basic) = pc+bt(basic) - * fi(basic) = pc+fi(classic) - * ge(azerty_tskapo) = pc+fr(geo) - * guj(basic) = pc+in(guj) - * gur(basic) = pc+in(guru) - * ie(laptop) = pc+ie(basic) - * ie(CloGaelachLaptop) = pc+ie(CloGaelach) - * in(urd) = pc+in(urd-phonetic) - * iu(basic) = pc+ca(ike) - * lo(basic) = pc+la(basic) - * kan(basic) = pc+in(kan) - * mal(basic) = pc+in(mal) - * mal(mlplusnum) = pc+in(mal) - * ogham(basic) = pc+ie(ogam) - * ogham(laptop) = pc+ie(ogam) - * ogham(is434) = pc+ie(ogam_is434) - * ogham(is434laptop) = pc+ie(ogam_is434) - * ori(basic) = pc+in(ori) - * ro(de) = pc+ro(winkeys) - * ro(us) = pc+ro(std) - * ro(academic) = pc+ro(std) - * ro(std_comma) = pc+ro(std) - * ro(comma) = pc+ro(basic) - * ru(os) = pc+ru(os_legacy) - * pk(urd) = pc+pk(urd-phonetic) - * sapmi(basic) = pc+no(smi) - * sapmi(nodeadkeys) = pc+no(smi_nodeadkeys) - * sapmi(sefi) = pc+fi(smi) - * sin(phonetic-static) = pc+in(sin_phonetic) - * syr(basic) = pc+sy(syc) - * syr(phonetic) = pc+sy(syc_phonetic) - * tam(INSCRIPT) = pc+in(tam) - * tam(UNI) = pc+in(tam_unicode) - * tam(NUMERAL-KEYBOARD) = pc+in(tam_keyboard_with_numerals) - * tam(TAB) = pc+in(tam_TAB) - * tam(TSCII) = pc+in(tam_TSCII) - * tel(basic) = pc+in(tel) - * yu(basic) = pc+srp(latin) - * yu(unicode) = pc+srp(latinunicode) - * yu(yz) = pc+srp(latinyz) - * yu(unicodeyz) = pc+srp(latinunicodeyz) - ataritt $nonlatin = xfree68_vndr/ataritt(us)+%l%(v):2 - ataritt * = xfree68_vndr/ataritt(us)+%l%(v) - amiga $nonlatin = xfree68_vndr/amiga(usa1)+%l%(v):2 - amiga * = xfree68_vndr/amiga(usa1)+%l%(v) - classmate us = pc+%l(classmate) - empty * = empty(basic) - * empty = empty(basic) - $sun $sun_custom = pc+sun_vndr/%l%(v) - pc98 nec_vndr/jp = nec_vndr/jp(pc98) - macintosh_old us = macintosh_vndr/us(oldmac) - macintosh_old en_US = macintosh_vndr/us(oldmac) - macintosh_old $macvendorlayouts = macintosh_vndr/us(oldmac)+macintosh_vndr/%l%(v) - macintosh_old $nonlatin = macintosh_vndr/us(oldmac)+%l%(v):2 - macintosh_old * = macintosh_vndr/us(oldmac)+%l%(v) - applealu_jis jp = macintosh_vndr/apple(alukbd)+macintosh_vndr/jp(usmac)+macintosh_vndr/jp(mac):2 - applealu_jis * = macintosh_vndr/apple(alukbd)+%l%(v)+macintosh_vndr/jp(mac):2 - $applealu $macvendorlayouts = macintosh_vndr/apple(alukbd)+macintosh_vndr/%l%(v) - $applealu * = macintosh_vndr/apple(alukbd)+%l%(v) - $macs en_US = pc+macintosh_vndr/us(extended) - $macs $macvendorlayouts = pc+macintosh_vndr/%l%(v) - nokiarx44 * = nokia_vndr/rx-44(%l) - nokiarx51 cz(qwerty) = nokia_vndr/rx-51(common)+nokia_vndr/rx-51(cz_qwerty) - nokiarx51 * = nokia_vndr/rx-51(common)+nokia_vndr/rx-51(%l%_v) - nokiasu8w * = nokia_vndr/su-8w(%l) - olpc $olpclayouts = olpc+%l%(m) - olpc * = olpc+%l%(v) - olpcm $olpclayouts = olpc+%l%(m) - olpcm * = olpc+%l%(v) - $thinkpads br = pc+br(thinkpad) - sl-c3x00 * = pc+sharp_vndr/sl-c3x00(basic) - ws003sh * = pc+sharp_vndr/ws003sh(basic) - ws007sh * = pc+sharp_vndr/ws007sh(basic) - ws011sh * = pc+sharp_vndr/ws011sh(basic) - ws020sh * = pc+sharp_vndr/ws020sh(basic) - htcdream $htcdreamlayouts = %l(htcdream) - * $nonlatin = pc+us+%l%(v):2 - * * = pc+%l%(v) - -! model layout[1] = symbols - * ar = pc+ara%(v[1]) - * ben = pc+in(ben) - * bs = pc+ba%(v[1]) - * cs = pc+rs%(v[1]) - * cz_qwerty = pc+cz(qwerty) - * dev = pc+in(deva) - * dvorak = pc+us(dvorak) - * dzdwi = pc+bt%(v[1]) - * el = pc+gr%(v[1]) - * en_US = pc+latin%(v[1]) - * guj = pc+in(guj) - * gur = pc+in(guru) - * iu = pc+ca(ike) - * lo = pc+la%(v[1]) - * kan = pc+in(kan) - * mi = pc+mao%(v[1]) - * ogham = pc+ie(ogam) - * ori = pc+ie(ori) - * sapmi = pc+no(smi) - * sr = pc+srp%(v[1]) - * syr = pc+sy(syc) - * tel = pc+in(tel) - * tml = pc+in(tam) - * yu = pc+srp%(v[1]) - * fr-latin9 = pc+fr(latin9) - * us_intl = pc+us(alt-intl) - * ben(basic) = pc+in(ben) - * ben(probhat) = pc+in(ben_probhat) - * dev(basic) = pc+in(deva) - * dvorak($dvoraklayouts) = pc+%v(dvorak) - * dvorak(basic) = pc+us(dvorak) - * dvorak(pl_basic) = pc+pl(dvorak) - * dvorak(pl) = pc+pl(dvorak_quotes) - * dvorak(pl_altquotes) = pc+pl(dvorak_altquotes) - * dzdwi(basic) = pc+bt(basic) - * fi(basic) = pc+fi(classic) - * ge(azerty_tskapo) = pc+fr(geo) - * guj(basic) = pc+in(guj) - * gur(basic) = pc+in(guru) - * ie(laptop) = pc+ie(basic) - * ie(CloGaelachLaptop) = pc+ie(CloGaelach) - * in(urd) = pc+in(urd-phonetic) - * iu(basic) = pc+ca(ike) - * lo(basic) = pc+la(basic) - * kan(basic) = pc+in(kan) - * mal(basic) = pc+in(mal) - * mal(mlplusnum) = pc+in(mal) - * ogham(basic) = pc+ie(ogam) - * ogham(laptop) = pc+ie(ogam) - * ogham(is434) = pc+ie(ogam_is434) - * ogham(is434laptop) = pc+ie(ogam_is434) - * ori(basic) = pc+in(ori) - * ro(de) = pc+ro(winkeys) - * ro(us) = pc+ro(std) - * ro(academic) = pc+ro(std) - * ro(std_comma) = pc+ro(std) - * ro(comma) = pc+ro(basic) - * ru(os) = pc+ru(os_legacy) - * pk(urd) = pc+pk(urd-phonetic) - * sapmi(basic) = pc+no(smi) - * sapmi(nodeadkeys) = pc+no(smi_nodeadkeys) - * sapmi(sefi) = pc+fi(smi) - * sin(phonetic-static) = pc+in(sin_phonetic) - * syr(basic) = pc+sy(syc) - * syr(phonetic) = pc+sy(syc_phonetic) - * tam(INSCRIPT) = pc+in(tam) - * tam(UNI) = pc+in(tam_unicode) - * tam(NUMERAL-KEYBOARD) = pc+in(tam_keyboard_with_numerals) - * tam(TAB) = pc+in(tam_TAB) - * tam(TSCII) = pc+in(tam_TSCII) - * tel(basic) = pc+in(tel) - * yu(basic) = pc+srp(latin) - * yu(unicode) = pc+srp(latinunicode) - * yu(yz) = pc+srp(latinyz) - * yu(unicodeyz) = pc+srp(latinunicodeyz) - ataritt * = xfree68_vndr/ataritt(us)+%l[1]%(v[1]) - amiga * = xfree68_vndr/amiga(usa1)+%l[1]%(v[1]) - $sun $sun_custom = pc+sun_vndr/%l[1]%(v[1]) - macintosh_old us = macintosh_vndr/us(oldmac) - macintosh_old $macvendorlayouts = macintosh_vndr/us(oldmac)+macintosh_vndr/%l[1]%(v[1]) - macintosh_old * = macintosh_vndr/us(oldmac)+%l[1]%(v[1]) - applealu_jis us = macintosh_vndr/apple(alukbd)+macintosh_vndr/jp(usmac) - $applealu $macvendorlayouts = macintosh_vndr/apple(alukbd)+macintosh_vndr/%l[1]%(v[1]) - $applealu * = macintosh_vndr/apple(alukbd)+%l[1]%(v[1]) - $macs $macvendorlayouts = pc+macintosh_vndr/%l[1]%(v[1]) - nokiarx51 cz(qwerty) = nokia_vndr/rx-51(common)+nokia_vndr/rx-51(cz_qwerty) - nokiarx51 * = nokia_vndr/rx-51(common)+nokia_vndr/rx-51(%l[1]%_v[1]) - $thinkpads br = pc+%l[1](thinkpad) - * * = pc+%l[1]%(v[1]) - -! model layout[1] variant[1] = symbols - * ben basic = pc+in(ben) - * ben probhat = pc+in(ben_probhat) - * dev basic = pc+in(deva) - * dvorak $dvoraklayouts = pc+%v(dvorak) - * dvorak basic = pc+us(dvorak) - * dvorak pl_basic = pc+pl(dvorak) - * dvorak pl = pc+pl(dvorak_quotes) - * dvorak pl_altquotes = pc+pl(dvorak_altquotes) - * dzdwi basic = pc+bt(basic) - * fi basic = pc+fi(classic) - * ge azerty_tskapo = pc+fr(geo) - * guj basic = pc+in(guj) - * gur basic = pc+in(guru) - * ie laptop = pc+ie(basic) - * ie CloGaelachLaptop = pc+ie(CloGaelach) - * in urd = pc+in(urd-phonetic) - * iu basic = pc+ca(ike) - * lo basic = pc+la(basic) - * kan basic = pc+in(kan) - * mal basic = pc+in(mal) - * mal mlplusnum = pc+in(mal) - * ogham basic = pc+ie(ogam) - * ogham laptop = pc+ie(ogam) - * ogham is434 = pc+ie(ogam_is434) - * ogham is434laptop = pc+ie(ogam_is434) - * ori basic = pc+in(ori) - * ro de = pc+ro(winkeys) - * ro us = pc+ro(std) - * ro academic = pc+ro(std) - * ro std_comma = pc+ro(std) - * ro comma = pc+ro(basic) - * ru os = pc+ru(os_legacy) - * pk urd = pc+pk(urd-phonetic) - * sapmi basic = pc+no(smi) - * sapmi nodeadkeys = pc+no(smi_nodeadkeys) - * sapmi sefi = pc+fi(smi) - * sin phonetic-static = pc+in(sin_phonetic) - * syr basic = pc+sy(syc) - * syr phonetic = pc+sy(syc_phonetic) - * tam INSCRIPT = pc+in(tam) - * tam UNI = pc+in(tam_unicode) - * tam NUMERAL-KEYBOARD = pc+in(tam_keyboard_with_numerals) - * tam TAB = pc+in(tam_TAB) - * tam TSCII = pc+in(tam_TSCII) - * tel basic = pc+in(tel) - * yu basic = pc+srp(latin) - * yu unicode = pc+srp(latinunicode) - * yu yz = pc+srp(latinyz) - * yu unicodeyz = pc+srp(latinunicodeyz) - -! model layout[2] = symbols - * ar = +ara%(v[2]):2 - * ben = +in(ben):2 - * bs = +ba%(v[2]):2 - * cs = +rs%(v[2]):2 - * cz_qwerty = +cz(qwerty):2 - * dev = +in(deva):2 - * dvorak = +us(dvorak):2 - * dzdwi = +bt%(v[2]):2 - * el = +gr%(v[2]):2 - * en_US = +latin%(v[2]):2 - * guj = +in(guj):2 - * gur = +in(guru):2 - * iu = +ca(ike):2 - * lo = +la%(v[2]):2 - * kan = +in(kan):2 - * mi = +mao%(v[2]):2 - * ogham = +ie(ogam):2 - * ori = +ie(ori):2 - * sapmi = +no(smi):2 - * sr = +srp%(v[2]):2 - * syr = +sy(syc):2 - * tel = +in(tel):2 - * tml = +in(tam):2 - * yu = +srp%(v[2]):2 - * fr-latin9 = +fr(latin9):2 - * us_intl = +us(alt-intl):2 - * ben(basic) = +in(ben):2 - * ben(probhat) = +in(ben_probhat):2 - * dev(basic) = +in(deva):2 - * dvorak($dvoraklayouts) = +%v(dvorak):2 - * dvorak(basic) = +us(dvorak):2 - * dvorak(pl_basic) = +pl(dvorak):2 - * dvorak(pl) = +pl(dvorak_quotes):2 - * dvorak(pl_altquotes) = +pl(dvorak_altquotes):2 - * dzdwi(basic) = +bt(basic):2 - * fi(basic) = +fi(classic):2 - * ge(azerty_tskapo) = +fr(geo):2 - * guj(basic) = +in(guj):2 - * gur(basic) = +in(guru):2 - * ie(laptop) = +ie(basic):2 - * ie(CloGaelachLaptop) = +ie(CloGaelach):2 - * in(urd) = +in(urd-phonetic):2 - * iu(basic) = +ca(ike):2 - * lo(basic) = +la(basic):2 - * kan(basic) = +in(kan):2 - * mal(basic) = +in(mal):2 - * mal(mlplusnum) = +in(mal):2 - * ogham(basic) = +ie(ogam):2 - * ogham(laptop) = +ie(ogam):2 - * ogham(is434) = +ie(ogam_is434):2 - * ogham(is434laptop) = +ie(ogam_is434):2 - * ori(basic) = +in(ori):2 - * ro(de) = +ro(winkeys):2 - * ro(us) = +ro(std):2 - * ro(academic) = +ro(std):2 - * ro(std_comma) = +ro(std):2 - * ro(comma) = +ro(basic):2 - * ru(os) = +ru(os_legacy):2 - * pk(urd) = +pk(urd-phonetic):2 - * sapmi(basic) = +no(smi):2 - * sapmi(nodeadkeys) = +no(smi_nodeadkeys):2 - * sapmi(sefi) = +fi(smi):2 - * sin(phonetic-static) = +in(sin_phonetic):2 - * syr(basic) = +sy(syc):2 - * syr(phonetic) = +sy(syc_phonetic):2 - * tam(INSCRIPT) = +in(tam):2 - * tam(UNI) = +in(tam_unicode):2 - * tam(NUMERAL-KEYBOARD) = +in(tam_keyboard_with_numerals):2 - * tam(TAB) = +in(tam_TAB):2 - * tam(TSCII) = +in(tam_TSCII):2 - * tel(basic) = +in(tel):2 - * yu(basic) = +srp(latin):2 - * yu(unicode) = +srp(latinunicode):2 - * yu(yz) = +srp(latinyz):2 - * yu(unicodeyz) = +srp(latinunicodeyz):2 - nokiarx51 cz(qwerty) = +nokia_vndr/rx-51(cz_qwerty):2 - nokiarx51 * = +nokia_vndr/rx-51(%l[2]%_v[2]):2 - $sun $sun_custom = +sun_vndr/%l[2]%(v[2]):2 - * * = +%l[2]%(v[2]):2 - -! model layout[3] = symbols - * ar = +ara%(v[3]):3 - * ben = +in(ben):3 - * bs = +ba%(v[3]):3 - * cs = +rs%(v[3]):3 - * cz_qwerty = +cz(qwerty):3 - * dev = +in(deva):3 - * dvorak = +us(dvorak):3 - * dzdwi = +bt%(v[3]):3 - * el = +gr%(v[3]):3 - * en_US = +latin%(v[3]):3 - * guj = +in(guj):3 - * gur = +in(guru):3 - * iu = +ca(ike):3 - * lo = +la%(v[3]):3 - * kan = +in(kan):3 - * mi = +mao%(v[3]):3 - * ogham = +ie(ogam):3 - * ori = +ie(ori):3 - * sapmi = +no(smi):3 - * sr = +srp%(v[3]):3 - * syr = +sy(syc):3 - * tel = +in(tel):3 - * tml = +in(tam):3 - * yu = +srp%(v[3]):3 - * fr-latin9 = +fr(latin9):3 - * us_intl = +us(alt-intl):3 - * ben(basic) = +in(ben):3 - * ben(probhat) = +in(ben_probhat):3 - * dev(basic) = +in(deva):3 - * dvorak($dvoraklayouts) = +%v(dvorak):3 - * dvorak(basic) = +us(dvorak):3 - * dvorak(pl_basic) = +pl(dvorak):3 - * dvorak(pl) = +pl(dvorak_quotes):3 - * dvorak(pl_altquotes) = +pl(dvorak_altquotes):3 - * dzdwi(basic) = +bt(basic):3 - * fi(basic) = +fi(classic):3 - * ge(azerty_tskapo) = +fr(geo):3 - * guj(basic) = +in(guj):3 - * gur(basic) = +in(guru):3 - * ie(laptop) = +ie(basic):3 - * ie(CloGaelachLaptop) = +ie(CloGaelach):3 - * in(urd) = +in(urd-phonetic):3 - * iu(basic) = +ca(ike):3 - * lo(basic) = +la(basic):3 - * kan(basic) = +in(kan):3 - * mal(basic) = +in(mal):3 - * mal(mlplusnum) = +in(mal):3 - * ogham(basic) = +ie(ogam):3 - * ogham(laptop) = +ie(ogam):3 - * ogham(is434) = +ie(ogam_is434):3 - * ogham(is434laptop) = +ie(ogam_is434):3 - * ori(basic) = +in(ori):3 - * ro(de) = +ro(winkeys):3 - * ro(us) = +ro(std):3 - * ro(academic) = +ro(std):3 - * ro(std_comma) = +ro(std):3 - * ro(comma) = +ro(basic):3 - * ru(os) = +ru(os_legacy):3 - * pk(urd) = +pk(urd-phonetic):3 - * sapmi(basic) = +no(smi):3 - * sapmi(nodeadkeys) = +no(smi_nodeadkeys):3 - * sapmi(sefi) = +fi(smi):3 - * sin(phonetic-static) = +in(sin_phonetic):3 - * syr(basic) = +sy(syc):3 - * syr(phonetic) = +sy(syc_phonetic):3 - * tam(INSCRIPT) = +in(tam):3 - * tam(UNI) = +in(tam_unicode):3 - * tam(NUMERAL-KEYBOARD) = +in(tam_keyboard_with_numerals):3 - * tam(TAB) = +in(tam_TAB):3 - * tam(TSCII) = +in(tam_TSCII):3 - * tel(basic) = +in(tel):3 - * yu(basic) = +srp(latin):3 - * yu(unicode) = +srp(latinunicode):3 - * yu(yz) = +srp(latinyz):3 - * yu(unicodeyz) = +srp(latinunicodeyz):3 - nokiarx51 cz(qwerty) = +nokia_vndr/rx-51(cz_qwerty):3 - nokiarx51 * = +nokia_vndr/rx-51(%l[3]%_v[3]):3 - $sun $sun_custom = +sun_vndr/%l[3]%(v[3]):3 - * * = +%l[3]%(v[3]):3 - -! model layout[4] = symbols - * ar = +ara%(v[4]):4 - * ben = +in(ben):4 - * bs = +ba%(v[4]):4 - * cs = +rs%(v[4]):4 - * cz_qwerty = +cz(qwerty):4 - * dev = +in(deva):4 - * dvorak = +us(dvorak):4 - * dzdwi = +bt%(v[4]):4 - * el = +gr%(v[4]):4 - * en_US = +latin%(v[4]):4 - * guj = +in(guj):4 - * gur = +in(guru):4 - * iu = +ca(ike):4 - * lo = +la%(v[4]):4 - * kan = +in(kan):4 - * mi = +mao%(v[4]):4 - * ogham = +ie(ogam):4 - * ori = +ie(ori):4 - * sapmi = +no(smi):4 - * sr = +srp%(v[4]):4 - * syr = +sy(syc):4 - * tel = +in(tel):4 - * tml = +in(tam):4 - * yu = +srp%(v[4]):4 - * fr-latin9 = +fr(latin9):4 - * us_intl = +us(alt-intl):4 - * ben(basic) = +in(ben):4 - * ben(probhat) = +in(ben_probhat):4 - * dev(basic) = +in(deva):4 - * dvorak($dvoraklayouts) = +%v(dvorak):4 - * dvorak(basic) = +us(dvorak):4 - * dvorak(pl_basic) = +pl(dvorak):4 - * dvorak(pl) = +pl(dvorak_quotes):4 - * dvorak(pl_altquotes) = +pl(dvorak_altquotes):4 - * dzdwi(basic) = +bt(basic):4 - * fi(basic) = +fi(classic):4 - * ge(azerty_tskapo) = +fr(geo):4 - * guj(basic) = +in(guj):4 - * gur(basic) = +in(guru):4 - * ie(laptop) = +ie(basic):4 - * ie(CloGaelachLaptop) = +ie(CloGaelach):4 - * in(urd) = +in(urd-phonetic):4 - * iu(basic) = +ca(ike):4 - * lo(basic) = +la(basic):4 - * kan(basic) = +in(kan):4 - * mal(basic) = +in(mal):4 - * mal(mlplusnum) = +in(mal):4 - * ogham(basic) = +ie(ogam):4 - * ogham(laptop) = +ie(ogam):4 - * ogham(is434) = +ie(ogam_is434):4 - * ogham(is434laptop) = +ie(ogam_is434):4 - * ori(basic) = +in(ori):4 - * ro(de) = +ro(winkeys):4 - * ro(us) = +ro(std):4 - * ro(academic) = +ro(std):4 - * ro(std_comma) = +ro(std):4 - * ro(comma) = +ro(basic):4 - * ru(os) = +ru(os_legacy):4 - * pk(urd) = +pk(urd-phonetic):4 - * sapmi(basic) = +no(smi):4 - * sapmi(nodeadkeys) = +no(smi_nodeadkeys):4 - * sapmi(sefi) = +fi(smi):4 - * sin(phonetic-static) = +in(sin_phonetic):4 - * syr(basic) = +sy(syc):4 - * syr(phonetic) = +sy(syc_phonetic):4 - * tam(INSCRIPT) = +in(tam):4 - * tam(UNI) = +in(tam_unicode):4 - * tam(NUMERAL-KEYBOARD) = +in(tam_keyboard_with_numerals):4 - * tam(TAB) = +in(tam_TAB):4 - * tam(TSCII) = +in(tam_TSCII):4 - * tel(basic) = +in(tel):4 - * yu(basic) = +srp(latin):4 - * yu(unicode) = +srp(latinunicode):4 - * yu(yz) = +srp(latinyz):4 - * yu(unicodeyz) = +srp(latinunicodeyz):4 - nokiarx51 cz(qwerty) = +nokia_vndr/rx-51(cz_qwerty):4 - nokiarx51 * = +nokia_vndr/rx-51(%l[4]%_v[4]):4 - $sun $sun_custom = +sun_vndr/%l[4]%(v[4]):4 - * * = +%l[4]%(v[4]):4 - -! model layout[2] variant[2] = symbols - * ben basic = +in(ben):2 - * ben probhat = +in(ben_probhat):2 - * dev basic = +in(deva):2 - * dvorak $dvoraklayouts = +%v(dvorak):2 - * dvorak basic = +us(dvorak):2 - * dvorak pl_basic = +pl(dvorak):2 - * dvorak pl = +pl(dvorak_quotes):2 - * dvorak pl_altquotes = +pl(dvorak_altquotes):2 - * dzdwi basic = +bt(basic):2 - * fi basic = +fi(classic):2 - * ge azerty_tskapo = +fr(geo):2 - * guj basic = +in(guj):2 - * gur basic = +in(guru):2 - * ie laptop = +ie(basic):2 - * ie CloGaelachLaptop = +ie(CloGaelach):2 - * in urd = +in(urd-phonetic):2 - * iu basic = +ca(ike):2 - * lo basic = +la(basic):2 - * kan basic = +in(kan):2 - * mal basic = +in(mal):2 - * mal mlplusnum = +in(mal):2 - * ogham basic = +ie(ogam):2 - * ogham laptop = +ie(ogam):2 - * ogham is434 = +ie(ogam_is434):2 - * ogham is434laptop = +ie(ogam_is434):2 - * ori basic = +in(ori):2 - * ro de = +ro(winkeys):2 - * ro us = +ro(std):2 - * ro academic = +ro(std):2 - * ro std_comma = +ro(std):2 - * ro comma = +ro(basic):2 - * ru os = +ru(os_legacy):2 - * pk urd = +pk(urd-phonetic):2 - * sapmi basic = +no(smi):2 - * sapmi nodeadkeys = +no(smi_nodeadkeys):2 - * sapmi sefi = +fi(smi):2 - * sin phonetic-static = +in(sin_phonetic):2 - * syr basic = +sy(syc):2 - * syr phonetic = +sy(syc_phonetic):2 - * tam INSCRIPT = +in(tam):2 - * tam UNI = +in(tam_unicode):2 - * tam NUMERAL-KEYBOARD = +in(tam_keyboard_with_numerals):2 - * tam TAB = +in(tam_TAB):2 - * tam TSCII = +in(tam_TSCII):2 - * tel basic = +in(tel):2 - * yu basic = +srp(latin):2 - * yu unicode = +srp(latinunicode):2 - * yu yz = +srp(latinyz):2 - * yu unicodeyz = +srp(latinunicodeyz):2 - -! model layout[3] variant[3] = symbols - * ben basic = +in(ben):3 - * ben probhat = +in(ben_probhat):3 - * dev basic = +in(deva):3 - * dvorak $dvoraklayouts = +%v(dvorak):3 - * dvorak basic = +us(dvorak):3 - * dvorak pl_basic = +pl(dvorak):3 - * dvorak pl = +pl(dvorak_quotes):3 - * dvorak pl_altquotes = +pl(dvorak_altquotes):3 - * dzdwi basic = +bt(basic):3 - * fi basic = +fi(classic):3 - * ge azerty_tskapo = +fr(geo):3 - * guj basic = +in(guj):3 - * gur basic = +in(guru):3 - * ie laptop = +ie(basic):3 - * ie CloGaelachLaptop = +ie(CloGaelach):3 - * in urd = +in(urd-phonetic):3 - * iu basic = +ca(ike):3 - * lo basic = +la(basic):3 - * kan basic = +in(kan):3 - * mal basic = +in(mal):3 - * mal mlplusnum = +in(mal):3 - * ogham basic = +ie(ogam):3 - * ogham laptop = +ie(ogam):3 - * ogham is434 = +ie(ogam_is434):3 - * ogham is434laptop = +ie(ogam_is434):3 - * ori basic = +in(ori):3 - * ro de = +ro(winkeys):3 - * ro us = +ro(std):3 - * ro academic = +ro(std):3 - * ro std_comma = +ro(std):3 - * ro comma = +ro(basic):3 - * ru os = +ru(os_legacy):3 - * pk urd = +pk(urd-phonetic):3 - * sapmi basic = +no(smi):3 - * sapmi nodeadkeys = +no(smi_nodeadkeys):3 - * sapmi sefi = +fi(smi):3 - * sin phonetic-static = +in(sin_phonetic):3 - * syr basic = +sy(syc):3 - * syr phonetic = +sy(syc_phonetic):3 - * tam INSCRIPT = +in(tam):3 - * tam UNI = +in(tam_unicode):3 - * tam NUMERAL-KEYBOARD = +in(tam_keyboard_with_numerals):3 - * tam TAB = +in(tam_TAB):3 - * tam TSCII = +in(tam_TSCII):3 - * tel basic = +in(tel):3 - * yu basic = +srp(latin):3 - * yu unicode = +srp(latinunicode):3 - * yu yz = +srp(latinyz):3 - * yu unicodeyz = +srp(latinunicodeyz):3 - -! model layout[4] variant[4] = symbols - * ben basic = +in(ben):4 - * ben probhat = +in(ben_probhat):4 - * dev basic = +in(deva):4 - * dvorak $dvoraklayouts = +%v(dvorak):4 - * dvorak basic = +us(dvorak):4 - * dvorak pl_basic = +pl(dvorak):4 - * dvorak pl = +pl(dvorak_quotes):4 - * dvorak pl_altquotes = +pl(dvorak_altquotes):4 - * dzdwi basic = +bt(basic):4 - * fi basic = +fi(classic):4 - * ge azerty_tskapo = +fr(geo):4 - * guj basic = +in(guj):4 - * gur basic = +in(guru):4 - * ie laptop = +ie(basic):4 - * ie CloGaelachLaptop = +ie(CloGaelach):4 - * in urd = +in(urd-phonetic):4 - * iu basic = +ca(ike):4 - * lo basic = +la(basic):4 - * kan basic = +in(kan):4 - * mal basic = +in(mal):4 - * mal mlplusnum = +in(mal):4 - * ogham basic = +ie(ogam):4 - * ogham laptop = +ie(ogam):4 - * ogham is434 = +ie(ogam_is434):4 - * ogham is434laptop = +ie(ogam_is434):4 - * ori basic = +in(ori):4 - * ro de = +ro(winkeys):4 - * ro us = +ro(std):4 - * ro academic = +ro(std):4 - * ro std_comma = +ro(std):4 - * ro comma = +ro(basic):4 - * ru os = +ru(os_legacy):4 - * pk urd = +pk(urd-phonetic):4 - * sapmi basic = +no(smi):4 - * sapmi nodeadkeys = +no(smi_nodeadkeys):4 - * sapmi sefi = +fi(smi):4 - * sin phonetic-static = +in(sin_phonetic):4 - * syr basic = +sy(syc):4 - * syr phonetic = +sy(syc_phonetic):4 - * tam INSCRIPT = +in(tam):4 - * tam UNI = +in(tam_unicode):4 - * tam NUMERAL-KEYBOARD = +in(tam_keyboard_with_numerals):4 - * tam TAB = +in(tam_TAB):4 - * tam TSCII = +in(tam_TSCII):4 - * tel basic = +in(tel):4 - * yu basic = +srp(latin):4 - * yu unicode = +srp(latinunicode):4 - * yu yz = +srp(latinyz):4 - * yu unicodeyz = +srp(latinunicodeyz):4 - -! model = symbols - $evdevkbds = +inet(evdev)+inet(%m) - applealu_jis = +inet(evdev)+macintosh_vndr/jp(alujiskeys) - * = +inet(evdev) - -! model layout = symbols - -! layout variant = compat - de neo = +caps(caps_lock)+misc(assign_shift_left_action)+level5(level5_lock) - de adnw = +caps(caps_lock)+misc(assign_shift_left_action)+level5(level5_lock) - jp $sun_compat = complete+japan(kana_lock) - -! layout[1] variant[1] = compat - de neo = +caps(caps_lock)+misc(assign_shift_left_action)+level5(level5_lock) - de adnw = +caps(caps_lock)+misc(assign_shift_left_action)+level5(level5_lock) - jp $sun_compat = complete+japan(kana_lock) - -! layout[2] variant[2] = compat - de neo = +caps(caps_lock):2+misc(assign_shift_left_action):2+level5(level5_lock):2 - de adnw = +caps(caps_lock):2+misc(assign_shift_left_action):2+level5(level5_lock):2 - jp $sun_compat = +complete+japan(kana_lock):2 - -! layout[3] variant[3] = compat - de neo = +caps(caps_lock):3+misc(assign_shift_left_action):3+level5(level5_lock):3 - de adnw = +caps(caps_lock):3+misc(assign_shift_left_action):3+level5(level5_lock):3 - jp $sun_compat = +complete+japan(kana_lock):3 - -! layout[4] variant[4] = compat - de neo = +caps(caps_lock):4+misc(assign_shift_left_action):4+level5(level5_lock):4 - de adnw = +caps(caps_lock):4+misc(assign_shift_left_action):4+level5(level5_lock):4 - jp $sun_compat = +complete+japan(kana_lock):4 - -! model layout = compat - pc98 nec_vndr/jp = pc98(basic) - * jp = complete+japan - olpc * = olpc - olpcm * = olpc - * * = complete - -! model layout[1] = compat - * * = complete - -! model = types - $macs = complete+numpad(mac) - $applealu = complete+numpad(mac) - $nokiamodels = complete+nokia - * = complete - -! layout option = symbols - $threelevellayouts grp:alts_toggle = +level3(ralt_switch_for_alts_toggle) - * misc:typo = +typo(base) - -! layout[1] option = symbols - $threelevellayouts grp:alts_toggle = +level3(ralt_switch_for_alts_toggle):1 - * misc:typo = +typo(base):1 - -! layout[2] option = symbols - $threelevellayouts grp:alts_toggle = +level3(ralt_switch_for_alts_toggle):2 - * misc:typo = +typo(base):2 - -! layout[3] option = symbols - $threelevellayouts grp:alts_toggle = +level3(ralt_switch_for_alts_toggle):3 - * misc:typo = +typo(base):3 - -! layout[4] option = symbols - $threelevellayouts grp:alts_toggle = +level3(ralt_switch_for_alts_toggle):4 - * misc:typo = +typo(base):4 - -! option = symbols - grp:shift_toggle = +group(shifts_toggle) - altwin:menu = +altwin(menu) - altwin:meta_alt = +altwin(meta_alt) - altwin:alt_win = +altwin(alt_win) - altwin:ctrl_win = +altwin(ctrl_win) - altwin:ctrl_alt_win = +altwin(ctrl_alt_win) - altwin:meta_win = +altwin(meta_win) - altwin:left_meta_win = +altwin(left_meta_win) - altwin:hyper_win = +altwin(hyper_win) - altwin:alt_super_win = +altwin(alt_super_win) - altwin:swap_alt_win = +altwin(swap_alt_win) - grab:debug = +srvr_ctrl(grab_debug) - grp:switch = +group(switch) - grp:lswitch = +group(lswitch) - grp:win_switch = +group(win_switch) - grp:lwin_switch = +group(lwin_switch) - grp:rwin_switch = +group(rwin_switch) - grp:toggle = +group(toggle) - grp:shifts_toggle = +group(shifts_toggle) - grp:ctrls_toggle = +group(ctrls_toggle) - grp:alts_toggle = +group(alts_toggle) - grp:caps_toggle = +capslock(grouplock) - grp:caps_switch = +capslock(groupshift) - grp:shift_caps_toggle = +group(shift_caps_toggle) - grp:shift_caps_switch = +group(shift_caps_switch) - grp:win_space_toggle = +group(win_space_toggle) - grp:win_menu_switch = +group(win_menu_switch) - grp:alt_caps_toggle = +group(alt_caps_toggle) - grp:alt_space_toggle = +group(alt_space_toggle) - grp:menu_toggle = +group(menu_toggle) - grp:lwin_toggle = +group(lwin_toggle) - grp:rwin_toggle = +group(rwin_toggle) - grp:lshift_toggle = +group(lshift_toggle) - grp:rshift_toggle = +group(rshift_toggle) - grp:rctrl_switch = +group(rctrl_switch) - grp:lctrl_toggle = +group(lctrl_toggle) - grp:rctrl_toggle = +group(rctrl_toggle) - grp:lalt_toggle = +group(lalt_toggle) - grp:sclk_toggle = +group(sclk_toggle) - grp:lctrl_rctrl_switch = +group(lctrl_rctrl_switch) - grp:lctrl_lwin_rctrl_menu = +group(lctrl_lwin_rctrl_menu) - grp:lctrl_lalt_toggle = +group(lctrl_lalt_toggle) - grp:rctrl_ralt_toggle = +group(rctrl_ralt_toggle) - grp:ctrl_alt_toggle = +group(ctrl_alt_toggle) - grp:ctrl_alt_toggle_bidir = +group(ctrl_alt_toggle_bidir) - grp:lctrl_lshift_toggle = +group(lctrl_lshift_toggle) - grp:rctrl_rshift_toggle = +group(rctrl_rshift_toggle) - grp:ctrl_shift_toggle = +group(ctrl_shift_toggle) - grp:ctrl_shift_toggle_bidir = +group(ctrl_shift_toggle_bidir) - grp:lalt_lshift_toggle = +group(lalt_lshift_toggle) - grp:ralt_rshift_toggle = +group(ralt_rshift_toggle) - grp:alt_shift_toggle = +group(alt_shift_toggle) - grp:alt_shift_toggle_bidir = +group(alt_shift_toggle_bidir) - lv3:switch = +level3(switch) - lv3:ralt_switch = +level3(ralt_switch) - lv3:ralt_switch_multikey = +level3(ralt_switch_multikey) - lv3:ralt_alt = +level3(ralt_alt) - lv3:lalt_switch = +level3(lalt_switch) - lv3:alt_switch = +level3(alt_switch) - lv3:menu_switch = +level3(menu_switch) - lv3:win_switch = +level3(win_switch) - lv3:lwin_switch = +level3(lwin_switch) - lv3:rwin_switch = +level3(rwin_switch) - lv3:enter_switch = +level3(enter_switch) - caps:capslock = +capslock(capslock) - caps:numlock = +capslock(numlock) - caps:shiftlock = +capslock(shiftlock) - caps:swapescape = +capslock(swapescape) - caps:escape = +capslock(escape) - caps:backspace = +capslock(backspace) - caps:super = +capslock(super) - caps:hyper = +capslock(hyper) - caps:none = +capslock(none) - caps:ctrl_modifier = +capslock(ctrl_modifier) - ctrl:nocaps = +ctrl(nocaps) - ctrl:lctrl_meta = +ctrl(lctrl_meta) - ctrl:swapcaps = +ctrl(swapcaps) - ctrl:ac_ctrl = +ctrl(ac_ctrl) - ctrl:aa_ctrl = +ctrl(aa_ctrl) - ctrl:rctrl_ralt = +ctrl(rctrl_ralt) - ctrl:menu_rctrl = +ctrl(menu_rctrl) - ctrl:ralt_rctrl = +ctrl(ralt_rctrl) - ctrl:swap_lalt_lctl = +ctrl(swap_lalt_lctl) - ctrl:swap_lwin_lctl = +ctrl(swap_lwin_lctl) - ctrl:swap_rwin_rctl = +ctrl(swap_rwin_rctl) - ctrl:swap_lalt_lctl_lwin = +ctrl(swap_lalt_lctl_lwin) - compose:ralt = +compose(ralt) - compose:lwin = +compose(lwin) - compose:lwin-altgr = +compose(lwin-altgr) - compose:rwin = +compose(rwin) - compose:rwin-altgr = +compose(rwin-altgr) - compose:menu = +compose(menu) - compose:menu-altgr = +compose(menu-altgr) - compose:lctrl = +compose(lctrl) - compose:lctrl-altgr = +compose(lctrl-altgr) - compose:rctrl = +compose(rctrl) - compose:rctrl-altgr = +compose(rctrl-altgr) - compose:caps = +compose(caps) - compose:caps-altgr = +compose(caps-altgr) - compose:102 = +compose(102) - compose:102-altgr = +compose(102-altgr) - compose:paus = +compose(paus) - compose:prsc = +compose(prsc) - compose:sclk = +compose(sclk) - srvrkeys:none = +srvr_ctrl(no_srvr_keys) - eurosign:e = +eurosign(e) - eurosign:2 = +eurosign(2) - eurosign:4 = +eurosign(4) - eurosign:5 = +eurosign(5) - rupeesign:4 = +rupeesign(4) - keypad:oss = +keypad(oss) - keypad:legacy = +keypad(legacy) - keypad:legacy_wang = +keypad(legacy_wang) - keypad:oss_wang = +keypad(oss_wang) - keypad:future = +keypad(future) - keypad:future_wang = +keypad(future_wang) - keypad:hex = +keypad(ops)+keypad(hex) - keypad:atm = +keypad(ops)+keypad(hex)+keypad(atm) - nbsp:none = +nbsp(none) - nbsp:level2 = +nbsp(level2) - nbsp:level3 = +nbsp(level3) - nbsp:level3s = +nbsp(level3s) - nbsp:level3n = +nbsp(level3n) - nbsp:level4 = +nbsp(level4) - nbsp:level4n = +nbsp(level4n) - nbsp:level4nl = +nbsp(level4nl) - japan:nicola_f_bs = +jp(nicola_f_bs) - japan:hztg_escape = +jp(hztg_escape) - korean:ralt_rctrl = +kr(ralt_hangul)+kr(rctrl_hanja) - korean:rctrl_ralt = +kr(rctrl_hangul)+kr(ralt_hanja) - kpdl:dot = +kpdl(dot) - kpdl:comma = +kpdl(comma) - kpdl:dotoss = +kpdl(dotoss) - kpdl:dotoss_latin9 = +kpdl(dotoss_latin9) - kpdl:commaoss = +kpdl(commaoss) - kpdl:momayyezoss = +kpdl(momayyezoss) - kpdl:kposs = +kpdl(kposs) - kpdl:semi = +kpdl(semi) - shift:breaks_caps = +shift(breaks_caps) - esperanto:qwerty = +epo(qwerty) - esperanto:dvorak = +epo(dvorak) - esperanto:colemak = +epo(colemak) - terminate:ctrl_alt_bksp = +terminate(ctrl_alt_bksp) - keypad:pointerkeys = +keypad(pointerkeys) - apple:alupckeys = +macintosh_vndr/apple(alupckeys) - shift:both_capslock = +shift(both_capslock) - shift:lshift_both_capslock = +shift(lshift_both_capslock) - shift:rshift_both_capslock = +shift(rshift_both_capslock) - shift:both_capslock_cancel = +shift(both_capslock_cancel) - shift:lshift_both_capslock_cancel = +shift(lshift_both_capslock_cancel) - shift:rshift_both_capslock_cancel = +shift(rshift_both_capslock_cancel) - shift:both_shiftlock = +shift(both_shiftlock) - shift:lshift_both_shiftlock = +shift(lshift_both_shiftlock) - shift:rshift_both_shiftlock = +shift(rshift_both_shiftlock) - solaris:sun_compat = +sun_vndr/solaris(sun_compat) - lv3:caps_switch = +level3(caps_switch) - lv3:bksl_switch = +level3(bksl_switch) - lv3:lsgt_switch = +level3(lsgt_switch) - lv3:caps_switch_latch = +level3(caps_switch_latch) - lv3:bksl_switch_latch = +level3(bksl_switch_latch) - lv3:lsgt_switch_latch = +level3(lsgt_switch_latch) - lv5:lsgt_switch_lock = +level5(lsgt_switch_lock) - lv5:ralt_switch_lock = +level5(ralt_switch_lock) - lv5:lwin_switch_lock = +level5(lwin_switch_lock) - lv5:rwin_switch_lock = +level5(rwin_switch_lock) - lv5:lsgt_switch_lock_cancel = +level5(lsgt_switch_lock_cancel) - lv5:ralt_switch_lock_cancel = +level5(ralt_switch_lock_cancel) - lv5:lwin_switch_lock_cancel = +level5(lwin_switch_lock_cancel) - lv5:rwin_switch_lock_cancel = +level5(rwin_switch_lock_cancel) - - - -! option = compat - grp_led:num = +lednum(group_lock) - grp_led:caps = +ledcaps(group_lock) - grp_led:scroll = +ledscroll(group_lock) - japan:kana_lock = +japan(kana_lock) - caps:shiftlock = +ledcaps(shift_lock) - grab:break_actions = +xfree86(grab_break) - - -! option = types - caps:internal = +caps(internal) - caps:internal_nocancel = +caps(internal_nocancel) - caps:shift = +caps(shift) - caps:shift_nocancel = +caps(shift_nocancel) - numpad:pc = +numpad(pc) - numpad:mac = +numpad(mac) - numpad:microsoft = +numpad(microsoft) - numpad:shift3 = +numpad(shift3) diff --git a/external/mit/xorg/lib/xkeyboard-config/rules/evdev.lst b/external/mit/xorg/lib/xkeyboard-config/rules/evdev.lst deleted file mode 100644 index d81f37565..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/rules/evdev.lst +++ /dev/null @@ -1,898 +0,0 @@ -! model - pc101 Generic 101-key PC - pc102 Generic 102-key (Intl) PC - pc104 Generic 104-key PC - pc105 Generic 105-key (Intl) PC - dell101 Dell 101-key PC - latitude Dell Latitude series laptop - dellm65 Dell Precision M65 - everex Everex STEPnote - flexpro Keytronic FlexPro - microsoft Microsoft Natural - omnikey101 Northgate OmniKey 101 - winbook Winbook Model XP5 - pc98 PC-98xx Series - a4techKB21 A4Tech KB-21 - a4techKBS8 A4Tech KBS-8 - a4_rfkb23 A4Tech Wireless Desktop RFKB-23 - airkey Acer AirKey V - azonaRF2300 Azona RF2300 wireless Internet Keyboard - scorpius Advance Scorpius KI - brother Brother Internet Keyboard - btc5113rf BTC 5113RF Multimedia - btc5126t BTC 5126T - btc6301urf BTC 6301URF - btc9000 BTC 9000 - btc9000a BTC 9000A - btc9001ah BTC 9001AH - btc5090 BTC 5090 - btc9019u BTC 9019U - btc9116u BTC 9116U Mini Wireless Internet and Gaming - cherryblue Cherry Blue Line CyBo@rd - cherryblueb Cherry CyMotion Master XPress - cherrybluea Cherry Blue Line CyBo@rd (alternate option) - cherrycyboard Cherry CyBo@rd USB-Hub - cherrycmexpert Cherry CyMotion Expert - cherrybunlim Cherry B.UNLIMITED - chicony Chicony Internet Keyboard - chicony0108 Chicony KU-0108 - chicony0420 Chicony KU-0420 - chicony9885 Chicony KB-9885 - compaqeak8 Compaq Easy Access Keyboard - compaqik7 Compaq Internet Keyboard (7 keys) - compaqik13 Compaq Internet Keyboard (13 keys) - compaqik18 Compaq Internet Keyboard (18 keys) - cymotionlinux Cherry CyMotion Master Linux - armada Laptop/notebook Compaq (eg. Armada) Laptop Keyboard - presario Laptop/notebook Compaq (eg. Presario) Internet Keyboard - ipaq Compaq iPaq Keyboard - dell Dell - dellsk8125 Dell SK-8125 - dellsk8135 Dell SK-8135 - dellusbmm Dell USB Multimedia Keyboard - inspiron Dell Laptop/notebook Inspiron 6xxx/8xxx - precision_m Dell Laptop/notebook Precision M series - dexxa Dexxa Wireless Desktop Keyboard - diamond Diamond 9801 / 9802 series - dtk2000 DTK2000 - ennyah_dkb1008 Ennyah DKB-1008 - fscaa1667g Fujitsu-Siemens Computers AMILO laptop - genius Genius Comfy KB-16M / Genius MM Keyboard KWD-910 - geniuscomfy Genius Comfy KB-12e - geniuscomfy2 Genius Comfy KB-21e-Scroll - geniuskb19e Genius KB-19e NB - geniuskkb2050hs Genius KKB-2050HS - gyration Gyration - htcdream HTC Dream - kinesis Kinesis - logitech_base Logitech Generic Keyboard - logitech_g15 Logitech G15 extra keys via G15daemon - hpi6 Hewlett-Packard Internet Keyboard - hp250x Hewlett-Packard SK-250x Multimedia Keyboard - hpxe3gc Hewlett-Packard Omnibook XE3 GC - hpxe3gf Hewlett-Packard Omnibook XE3 GF - hpxt1000 Hewlett-Packard Omnibook XT1000 - hpdv5 Hewlett-Packard Pavilion dv5 - hpzt11xx Hewlett-Packard Pavilion ZT11xx - hp500fa Hewlett-Packard Omnibook 500 FA - hp5xx Hewlett-Packard Omnibook 5xx - hpnx9020 Hewlett-Packard nx9020 - hp6000 Hewlett-Packard Omnibook 6000/6100 - honeywell_euroboard Honeywell Euroboard - hpmini110 Hewlett-Packard Mini 110 Notebook - rapidaccess IBM Rapid Access - rapidaccess2 IBM Rapid Access II - thinkpad IBM ThinkPad 560Z/600/600E/A22E - thinkpad60 IBM ThinkPad R60/T60/R61/T61 - thinkpadz60 IBM ThinkPad Z60m/Z60t/Z61m/Z61t - ibm_spacesaver IBM Space Saver - logiaccess Logitech Access Keyboard - logiclx300 Logitech Cordless Desktop LX-300 - logii350 Logitech Internet 350 Keyboard - logimel Logitech Media Elite Keyboard - logicd Logitech Cordless Desktop - logicd_it Logitech Cordless Desktop iTouch - logicd_nav Logitech Cordless Desktop Navigator - logicd_opt Logitech Cordless Desktop Optical - logicda Logitech Cordless Desktop (alternate option) - logicdpa2 Logitech Cordless Desktop Pro (alternate option 2) - logicfn Logitech Cordless Freedom/Desktop Navigator - logicdn Logitech Cordless Desktop Navigator - logiitc Logitech iTouch Cordless Keyboard (model Y-RB6) - logiik Logitech Internet Keyboard - itouch Logitech iTouch - logicink Logitech Internet Navigator Keyboard - logiex110 Logitech Cordless Desktop EX110 - logiinkse Logitech iTouch Internet Navigator Keyboard SE - logiinkseusb Logitech iTouch Internet Navigator Keyboard SE (USB) - logiultrax Logitech Ultra-X Keyboard - logiultraxc Logitech Ultra-X Cordless Media Desktop Keyboard - logidinovo Logitech diNovo Keyboard - logidinovoedge Logitech diNovo Edge Keyboard - mx1998 Memorex MX1998 - mx2500 Memorex MX2500 EZ-Access Keyboard - mx2750 Memorex MX2750 - microsoft4000 Microsoft Natural Ergonomic Keyboard 4000 - microsoft7000 Microsoft Natural Wireless Ergonomic Keyboard 7000 - microsoftinet Microsoft Internet Keyboard - microsoftpro Microsoft Natural Keyboard Pro / Microsoft Internet Keyboard Pro - microsoftprousb Microsoft Natural Keyboard Pro USB / Microsoft Internet Keyboard Pro - microsoftprooem Microsoft Natural Keyboard Pro OEM - vsonku306 ViewSonic KU-306 Internet Keyboard - microsoftprose Microsoft Internet Keyboard Pro, Swedish - microsoftoffice Microsoft Office Keyboard - microsoftmult Microsoft Wireless Multimedia Keyboard 1.0A - microsoftelite Microsoft Natural Keyboard Elite - microsoftccurve2k Microsoft Comfort Curve Keyboard 2000 - oretec Ortek MCK-800 MM/Internet keyboard - propeller Propeller Voyager (KTEZ-1000) - qtronix QTronix Scorpius 98N+ - samsung4500 Samsung SDM 4500P - samsung4510 Samsung SDM 4510P - sanwaskbkg3 Sanwa Supply SKB-KG3 - sk1300 SK-1300 - sk2500 SK-2500 - sk6200 SK-6200 - sk7100 SK-7100 - sp_inet Super Power Multimedia Keyboard - sven SVEN Ergonomic 2500 - sven303 SVEN Slim 303 - symplon Symplon PaceBook (tablet PC) - toshiba_s3000 Toshiba Satellite S3000 - trust Trust Wireless Keyboard Classic - trustda Trust Direct Access Keyboard - trust_slimline Trust Slimline - tm2020 TypeMatrix EZ-Reach 2020 - tm2030PS2 TypeMatrix EZ-Reach 2030 PS2 - tm2030USB TypeMatrix EZ-Reach 2030 USB - tm2030USB-102 TypeMatrix EZ-Reach 2030 USB (102/105:EU mode) - tm2030USB-106 TypeMatrix EZ-Reach 2030 USB (106:JP mode) - yahoo Yahoo! Internet Keyboard - macbook78 MacBook/MacBook Pro - macbook79 MacBook/MacBook Pro (Intl) - macintosh Macintosh - macintosh_old Macintosh Old - macintosh_hhk Happy Hacking Keyboard for Mac - acer_c300 Acer C300 - acer_ferrari4k Acer Ferrari 4000 - acer_laptop Acer Laptop - asus_laptop Asus Laptop - apple Apple - apple_laptop Apple Laptop - applealu_ansi Apple Aluminium Keyboard (ANSI) - applealu_iso Apple Aluminium Keyboard (ISO) - applealu_jis Apple Aluminium Keyboard (JIS) - silvercrest SILVERCREST Multimedia Wireless Keyboard - emachines Laptop/notebook eMachines m68xx - benqx BenQ X-Touch - benqx730 BenQ X-Touch 730 - benqx800 BenQ X-Touch 800 - hhk Happy Hacking Keyboard - classmate Classmate PC - olpc OLPC - sun_type7_usb Sun Type 7 USB - sun_type7_euro_usb Sun Type 7 USB (European layout) - sun_type7_unix_usb Sun Type 7 USB (Unix layout) - sun_type7_jp_usb Sun Type 7 USB (Japanese layout) / Japanese 106-key - sun_type6_usb Sun Type 6/7 USB - sun_type6_euro_usb Sun Type 6/7 USB (European layout) - sun_type6_unix_usb Sun Type 6 USB (Unix layout) - sun_type6_jp_usb Sun Type 6 USB (Japanese layout) - sun_type6_jp Sun Type 6 (Japanese layout) - targa_v811 Targa Visionary 811 - unitekkb1925 Unitek KB-1925 - compalfl90 FL90 - creativedw7000 Creative Desktop Wireless 7000 - htcdream Htc Dream phone - -! layout - us English (US) - af Afghani - ara Arabic - al Albanian - am Armenian - at German (Austria) - az Azerbaijani - by Belarusian - be Belgian - bd Bangla - in Indian - ba Bosnian - br Portuguese (Brazil) - bg Bulgarian - ma Arabic (Morocco) - cm English (Cameroon) - mm Burmese - ca French (Canada) - cd French (Democratic Republic of the Congo) - cn Chinese - hr Croatian - cz Czech - dk Danish - nl Dutch - bt Dzongkha - ee Estonian - ir Persian - iq Iraqi - fo Faroese - fi Finnish - fr French - gh English (Ghana) - gn French (Guinea) - ge Georgian - de German - gr Greek - hu Hungarian - is Icelandic - il Hebrew - it Italian - jp Japanese - kg Kyrgyz - kh Khmer (Cambodia) - kz Kazakh - la Lao - latam Spanish (Latin American) - lt Lithuanian - lv Latvian - mao Maori - me Montenegrin - mk Macedonian - mt Maltese - mn Mongolian - no Norwegian - pl Polish - pt Portuguese - ro Romanian - ru Russian - rs Serbian - si Slovenian - sk Slovak - es Spanish - se Swedish - ch German (Switzerland) - sy Arabic (Syria) - tj Tajik - lk Sinhala (phonetic) - th Thai - tr Turkish - tw Taiwanese - ua Ukrainian - gb English (UK) - uz Uzbek - vn Vietnamese - kr Korean - nec_vndr/jp Japanese (PC-98xx Series) - ie Irish - pk Urdu (Pakistan) - mv Dhivehi - za English (South Africa) - epo Esperanto - np Nepali - ng English (Nigeria) - et Amharic - sn Wolof - brai Braille - tm Turkmen - ml Bambara - tz Swahili (Tanzania) - ke Swahili (Kenya) - bw Tswana - ph Filipino - md Moldavian - -! variant - chr us: Cherokee - euro us: English (US, with euro on 5) - intl us: English (US, international with dead keys) - alt-intl us: English (US, alternative international) - colemak us: English (Colemak) - dvorak us: English (Dvorak) - dvorak-intl us: English (Dvorak, international with dead keys) - dvorak-alt-intl us: English (Dvorak alternative international no dead keys) - dvorak-l us: English (left handed Dvorak) - dvorak-r us: English (right handed Dvorak) - dvorak-classic us: English (classic Dvorak) - dvp us: English (programmer Dvorak) - rus us: Russian (US, phonetic) - mac us: English (Macintosh) - altgr-intl us: English (international AltGr dead keys) - olpc2 us: English (the divide/multiply keys toggle the layout) - hbs us: Serbo-Croatian (US) - workman us: English (Workman) - workman-intl us: English (Workman, international with dead keys) - ps af: Pashto - uz af: Uzbek (Afghanistan) - olpc-ps af: Pashto (Afghanistan, OLPC) - fa-olpc af: Persian (Afghanistan, Dari OLPC) - uz-olpc af: Uzbek (Afghanistan, OLPC) - azerty ara: Arabic (azerty) - azerty_digits ara: Arabic (azerty/digits) - digits ara: Arabic (digits) - qwerty ara: Arabic (qwerty) - qwerty_digits ara: Arabic (qwerty/digits) - buckwalter ara: Arabic (Buckwalter) - mac ara: Arabic (Macintosh) - plisi-d1 al: Albanian (Plisi D1) - phonetic am: Armenian (phonetic) - phonetic-alt am: Armenian (alternative phonetic) - eastern am: Armenian (eastern) - western am: Armenian (western) - eastern-alt am: Armenian (alternative eastern) - nodeadkeys at: German (Austria, eliminate dead keys) - sundeadkeys at: German (Austria, Sun dead keys) - mac at: German (Austria, Macintosh) - cyrillic az: Azerbaijani (Cyrillic) - legacy by: Belarusian (legacy) - latin by: Belarusian (Latin) - oss be: Belgian (alternative) - oss_latin9 be: Belgian (alternative, Latin-9 only) - oss_sundeadkeys be: Belgian (alternative, Sun dead keys) - iso-alternate be: Belgian (ISO alternate) - nodeadkeys be: Belgian (eliminate dead keys) - sundeadkeys be: Belgian (Sun dead keys) - wang be: Belgian (Wang model 724 azerty) - probhat bd: Bangla (Probhat) - ben in: Bangla (India) - ben_probhat in: Bangla (India, Probhat) - ben_baishakhi in: Bangla (India, Baishakhi) - ben_bornona in: Bangla (India, Bornona) - ben_gitanjali in: Bangla (India, Uni Gitanjali) - ben_inscript in: Bangla (India, Baishakhi Inscript) - eeyek in: Manipuri (Eeyek) - guj in: Gujarati - guru in: Punjabi (Gurmukhi) - jhelum in: Punjabi (Gurmukhi Jhelum) - kan in: Kannada - kan-kagapa in: Kannada (KaGaPa phonetic) - mal in: Malayalam - mal_lalitha in: Malayalam (Lalitha) - mal_enhanced in: Malayalam (enhanced Inscript, with rupee sign) - ori in: Oriya - tam_unicode in: Tamil (Unicode) - tam_keyboard_with_numerals in: Tamil (keyboard with numerals) - tam_TAB in: Tamil (TAB typewriter) - tam_TSCII in: Tamil (TSCII typewriter) - tam in: Tamil - tel in: Telugu - tel-kagapa in: Telugu (KaGaPa phonetic) - urd-phonetic in: Urdu (phonetic) - urd-phonetic3 in: Urdu (alternative phonetic) - urd-winkeys in: Urdu (WinKeys) - bolnagri in: Hindi (Bolnagri) - hin-wx in: Hindi (Wx) - hin-kagapa in: Hindi (KaGaPa phonetic) - san-kagapa in: Sanskrit (KaGaPa phonetic) - mar-kagapa in: Marathi (KaGaPa phonetic) - eng in: English (India, with rupee sign) - alternatequotes ba: Bosnian (with guillemets for quotes) - unicode ba: Bosnian (with Bosnian digraphs) - unicodeus ba: Bosnian (US keyboard with Bosnian digraphs) - us ba: Bosnian (US keyboard with Bosnian letters) - nodeadkeys br: Portuguese (Brazil, eliminate dead keys) - dvorak br: Portuguese (Brazil, Dvorak) - nativo br: Portuguese (Brazil, Nativo) - nativo-us br: Portuguese (Brazil, Nativo for US keyboards) - nativo-epo br: Esperanto (Brazil, Nativo) - phonetic bg: Bulgarian (traditional phonetic) - bas_phonetic bg: Bulgarian (new phonetic) - french ma: French (Morocco) - tifinagh ma: Berber (Morocco, Tifinagh) - tifinagh-alt ma: Berber (Morocco, Tifinagh alternative) - tifinagh-alt-phonetic ma: Berber (Morocco, Tifinagh alternative phonetic) - tifinagh-extended ma: Berber (Morocco, Tifinagh extended) - tifinagh-phonetic ma: Berber (Morocco, Tifinagh phonetic) - tifinagh-extended-phonetic ma: Berber (Morocco, Tifinagh extended phonetic) - french cm: French (Cameroon) - qwerty cm: Cameroon Multilingual (qwerty) - azerty cm: Cameroon Multilingual (azerty) - dvorak cm: Cameroon Multilingual (Dvorak) - fr-dvorak ca: French (Canada, Dvorak) - fr-legacy ca: French (Canada, legacy) - multix ca: Canadian Multilingual - multi ca: Canadian Multilingual (first part) - multi-2gr ca: Canadian Multilingual (second part) - ike ca: Inuktitut - eng ca: English (Canada) - tib cn: Tibetan - tib_asciinum cn: Tibetan (with ASCII numerals) - ug cn: Uyghur - alternatequotes hr: Croatian (with guillemets for quotes) - unicode hr: Croatian (with Croatian digraphs) - unicodeus hr: Croatian (US keyboard with Croatian digraphs) - us hr: Croatian (US keyboard with Croatian letters) - bksl cz: Czech (with <\|> key) - qwerty cz: Czech (qwerty) - qwerty_bksl cz: Czech (qwerty, extended Backslash) - ucw cz: Czech (UCW layout, accented letters only) - dvorak-ucw cz: Czech (US Dvorak with CZ UCW support) - nodeadkeys dk: Danish (eliminate dead keys) - winkeys dk: Danish (Winkeys) - mac dk: Danish (Macintosh) - mac_nodeadkeys dk: Danish (Macintosh, eliminate dead keys) - dvorak dk: Danish (Dvorak) - sundeadkeys nl: Dutch (Sun dead keys) - mac nl: Dutch (Macintosh) - std nl: Dutch (standard) - nodeadkeys ee: Estonian (eliminate dead keys) - dvorak ee: Estonian (Dvorak) - us ee: Estonian (US keyboard with Estonian letters) - pes_keypad ir: Persian (with Persian keypad) - ku ir: Kurdish (Iran, Latin Q) - ku_f ir: Kurdish (Iran, F) - ku_alt ir: Kurdish (Iran, Latin Alt-Q) - ku_ara ir: Kurdish (Iran, Arabic-Latin) - ku iq: Kurdish (Iraq, Latin Q) - ku_f iq: Kurdish (Iraq, F) - ku_alt iq: Kurdish (Iraq, Latin Alt-Q) - ku_ara iq: Kurdish (Iraq, Arabic-Latin) - nodeadkeys fo: Faroese (eliminate dead keys) - classic fi: Finnish (classic) - nodeadkeys fi: Finnish (classic, eliminate dead keys) - winkeys fi: Finnish (Winkeys) - smi fi: Northern Saami (Finland) - mac fi: Finnish (Macintosh) - nodeadkeys fr: French (eliminate dead keys) - sundeadkeys fr: French (Sun dead keys) - oss fr: French (alternative) - oss_latin9 fr: French (alternative, Latin-9 only) - oss_nodeadkeys fr: French (alternative, eliminate dead keys) - oss_sundeadkeys fr: French (alternative, Sun dead keys) - latin9 fr: French (legacy, alternative) - latin9_nodeadkeys fr: French (legacy, alternative, eliminate dead keys) - latin9_sundeadkeys fr: French (legacy, alternative, Sun dead keys) - bepo fr: French (Bepo, ergonomic, Dvorak way) - bepo_latin9 fr: French (Bepo, ergonomic, Dvorak way, Latin-9 only) - dvorak fr: French (Dvorak) - mac fr: French (Macintosh) - bre fr: French (Breton) - oci fr: Occitan - geo fr: Georgian (France, AZERTY Tskapo) - generic gh: English (Ghana, multilingual) - akan gh: Akan - ewe gh: Ewe - fula gh: Fula - ga gh: Ga - hausa gh: Hausa - avn gh: Avatime - gillbt gh: English (Ghana, GILLBT) - ergonomic ge: Georgian (ergonomic) - mess ge: Georgian (MESS) - ru ge: Russian (Georgia) - os ge: Ossetian (Georgia) - deadacute de: German (dead acute) - deadgraveacute de: German (dead grave acute) - nodeadkeys de: German (eliminate dead keys) - T3 de: German (T3) - ro de: Romanian (Germany) - ro_nodeadkeys de: Romanian (Germany, eliminate dead keys) - dvorak de: German (Dvorak) - sundeadkeys de: German (Sun dead keys) - neo de: German (Neo 2) - mac de: German (Macintosh) - mac_nodeadkeys de: German (Macintosh, eliminate dead keys) - dsb de: Lower Sorbian - dsb_qwertz de: Lower Sorbian (qwertz) - qwerty de: German (qwerty) - tr de: Turkish (Germany) - ru de: Russian (Germany, phonetic) - legacy de: German (legacy) - simple gr: Greek (simple) - extended gr: Greek (extended) - nodeadkeys gr: Greek (eliminate dead keys) - polytonic gr: Greek (polytonic) - standard hu: Hungarian (standard) - nodeadkeys hu: Hungarian (eliminate dead keys) - qwerty hu: Hungarian (qwerty) - 101_qwertz_comma_dead hu: Hungarian (101/qwertz/comma/dead keys) - 101_qwertz_comma_nodead hu: Hungarian (101/qwertz/comma/eliminate dead keys) - 101_qwertz_dot_dead hu: Hungarian (101/qwertz/dot/dead keys) - 101_qwertz_dot_nodead hu: Hungarian (101/qwertz/dot/eliminate dead keys) - 101_qwerty_comma_dead hu: Hungarian (101/qwerty/comma/dead keys) - 101_qwerty_comma_nodead hu: Hungarian (101/qwerty/comma/eliminate dead keys) - 101_qwerty_dot_dead hu: Hungarian (101/qwerty/dot/dead keys) - 101_qwerty_dot_nodead hu: Hungarian (101/qwerty/dot/eliminate dead keys) - 102_qwertz_comma_dead hu: Hungarian (102/qwertz/comma/dead keys) - 102_qwertz_comma_nodead hu: Hungarian (102/qwertz/comma/eliminate dead keys) - 102_qwertz_dot_dead hu: Hungarian (102/qwertz/dot/dead keys) - 102_qwertz_dot_nodead hu: Hungarian (102/qwertz/dot/eliminate dead keys) - 102_qwerty_comma_dead hu: Hungarian (102/qwerty/comma/dead keys) - 102_qwerty_comma_nodead hu: Hungarian (102/qwerty/comma/eliminate dead keys) - 102_qwerty_dot_dead hu: Hungarian (102/qwerty/dot/dead keys) - 102_qwerty_dot_nodead hu: Hungarian (102/qwerty/dot/eliminate dead keys) - Sundeadkeys is: Icelandic (Sun dead keys) - nodeadkeys is: Icelandic (eliminate dead keys) - mac_legacy is: Icelandic (Macintosh, legacy) - mac is: Icelandic (Macintosh) - dvorak is: Icelandic (Dvorak) - lyx il: Hebrew (lyx) - phonetic il: Hebrew (phonetic) - biblical il: Hebrew (Biblical, Tiro) - nodeadkeys it: Italian (eliminate dead keys) - winkeys it: Italian (Winkeys) - mac it: Italian (Macintosh) - us it: Italian (US keyboard with Italian letters) - geo it: Georgian (Italy) - ibm it: Italian (IBM 142) - kana jp: Japanese (Kana) - kana86 jp: Japanese (Kana 86) - OADG109A jp: Japanese (OADG 109A) - mac jp: Japanese (Macintosh) - dvorak jp: Japanese (Dvorak) - phonetic kg: Kyrgyz (phonetic) - ruskaz kz: Russian (Kazakhstan, with Kazakh) - kazrus kz: Kazakh (with Russian) - stea la: Lao (STEA proposed standard layout) - nodeadkeys latam: Spanish (Latin American, eliminate dead keys) - deadtilde latam: Spanish (Latin American, include dead tilde) - sundeadkeys latam: Spanish (Latin American, Sun dead keys) - dvorak latam: Spanish (Latin American, Dvorak) - std lt: Lithuanian (standard) - us lt: Lithuanian (US keyboard with Lithuanian letters) - ibm lt: Lithuanian (IBM LST 1205-92) - lekp lt: Lithuanian (LEKP) - lekpa lt: Lithuanian (LEKPa) - apostrophe lv: Latvian (apostrophe variant) - tilde lv: Latvian (tilde variant) - fkey lv: Latvian (F variant) - modern lv: Latvian (modern) - ergonomic lv: Latvian (ergonomic, ŪGJRMV) - adapted lv: Latvian (adapted) - cyrillic me: Montenegrin (Cyrillic) - cyrillicyz me: Montenegrin (Cyrillic, ZE and ZHE swapped) - latinunicode me: Montenegrin (Latin Unicode) - latinyz me: Montenegrin (Latin qwerty) - latinunicodeyz me: Montenegrin (Latin Unicode qwerty) - cyrillicalternatequotes me: Montenegrin (Cyrillic with guillemets) - latinalternatequotes me: Montenegrin (Latin with guillemets) - nodeadkeys mk: Macedonian (eliminate dead keys) - us mt: Maltese (with US layout) - nodeadkeys no: Norwegian (eliminate dead keys) - winkeys no: Norwegian (Winkeys) - dvorak no: Norwegian (Dvorak) - smi no: Northern Saami (Norway) - smi_nodeadkeys no: Northern Saami (Norway, eliminate dead keys) - mac no: Norwegian (Macintosh) - mac_nodeadkeys no: Norwegian (Macintosh, eliminate dead keys) - colemak no: Norwegian (Colemak) - legacy pl: Polish (legacy) - qwertz pl: Polish (qwertz) - dvorak pl: Polish (Dvorak) - dvorak_quotes pl: Polish (Dvorak, Polish quotes on quotemark key) - dvorak_altquotes pl: Polish (Dvorak, Polish quotes on key 1) - csb pl: Kashubian - szl pl: Silesian - ru_phonetic_dvorak pl: Russian (Poland, phonetic Dvorak) - dvp pl: Polish (programmer Dvorak) - nodeadkeys pt: Portuguese (eliminate dead keys) - sundeadkeys pt: Portuguese (Sun dead keys) - mac pt: Portuguese (Macintosh) - mac_nodeadkeys pt: Portuguese (Macintosh, eliminate dead keys) - mac_sundeadkeys pt: Portuguese (Macintosh, Sun dead keys) - nativo pt: Portuguese (Nativo) - nativo-us pt: Portuguese (Nativo for US keyboards) - nativo-epo pt: Esperanto (Portugal, Nativo) - cedilla ro: Romanian (cedilla) - std ro: Romanian (standard) - std_cedilla ro: Romanian (standard cedilla) - winkeys ro: Romanian (WinKeys) - phonetic ru: Russian (phonetic) - phonetic_winkeys ru: Russian (phonetic WinKeys) - typewriter ru: Russian (typewriter) - legacy ru: Russian (legacy) - typewriter-legacy ru: Russian (typewriter, legacy) - tt ru: Tatar - os_legacy ru: Ossetian (legacy) - os_winkeys ru: Ossetian (WinKeys) - cv ru: Chuvash - cv_latin ru: Chuvash (Latin) - udm ru: Udmurt - kom ru: Komi - sah ru: Yakut - xal ru: Kalmyk - dos ru: Russian (DOS) - mac ru: Russian (Macintosh) - srp ru: Serbian (Russia) - bak ru: Bashkirian - chm ru: Mari - phonetic_azerty ru: Russian (phonetic azerty) - phonetic_fr ru: Russian (phonetic French) - yz rs: Serbian (Cyrillic, ZE and ZHE swapped) - latin rs: Serbian (Latin) - latinunicode rs: Serbian (Latin Unicode) - latinyz rs: Serbian (Latin qwerty) - latinunicodeyz rs: Serbian (Latin Unicode qwerty) - alternatequotes rs: Serbian (Cyrillic with guillemets) - latinalternatequotes rs: Serbian (Latin with guillemets) - rue rs: Pannonian Rusyn - alternatequotes si: Slovenian (with guillemets for quotes) - us si: Slovenian (US keyboard with Slovenian letters) - bksl sk: Slovak (extended Backslash) - qwerty sk: Slovak (qwerty) - qwerty_bksl sk: Slovak (qwerty, extended Backslash) - nodeadkeys es: Spanish (eliminate dead keys) - winkeys es: Spanish (Winkeys) - deadtilde es: Spanish (include dead tilde) - sundeadkeys es: Spanish (Sun dead keys) - dvorak es: Spanish (Dvorak) - ast es: Asturian (Spain, with bottom-dot H and bottom-dot L) - cat es: Catalan (Spain, with middle-dot L) - mac es: Spanish (Macintosh) - nodeadkeys se: Swedish (eliminate dead keys) - dvorak se: Swedish (Dvorak) - rus se: Russian (Sweden, phonetic) - rus_nodeadkeys se: Russian (Sweden, phonetic, eliminate dead keys) - smi se: Northern Saami (Sweden) - mac se: Swedish (Macintosh) - svdvorak se: Swedish (Svdvorak) - swl se: Swedish Sign Language - legacy ch: German (Switzerland, legacy) - de_nodeadkeys ch: German (Switzerland, eliminate dead keys) - de_sundeadkeys ch: German (Switzerland, Sun dead keys) - fr ch: French (Switzerland) - fr_nodeadkeys ch: French (Switzerland, eliminate dead keys) - fr_sundeadkeys ch: French (Switzerland, Sun dead keys) - fr_mac ch: French (Switzerland, Macintosh) - de_mac ch: German (Switzerland, Macintosh) - syc sy: Syriac - syc_phonetic sy: Syriac (phonetic) - ku sy: Kurdish (Syria, Latin Q) - ku_f sy: Kurdish (Syria, F) - ku_alt sy: Kurdish (Syria, Latin Alt-Q) - legacy tj: Tajik (legacy) - tam_unicode lk: Tamil (Sri Lanka, Unicode) - tam_TAB lk: Tamil (Sri Lanka, TAB Typewriter) - us lk: Sinhala (US keyboard with Sinhala letters) - tis th: Thai (TIS-820.2538) - pat th: Thai (Pattachote) - f tr: Turkish (F) - alt tr: Turkish (Alt-Q) - sundeadkeys tr: Turkish (Sun dead keys) - ku tr: Kurdish (Turkey, Latin Q) - ku_f tr: Kurdish (Turkey, F) - ku_alt tr: Kurdish (Turkey, Latin Alt-Q) - intl tr: Turkish (international with dead keys) - crh tr: Crimean Tatar (Turkish Q) - crh_f tr: Crimean Tatar (Turkish F) - crh_alt tr: Crimean Tatar (Turkish Alt-Q) - indigenous tw: Taiwanese (indigenous) - saisiyat tw: Saisiyat (Taiwan) - phonetic ua: Ukrainian (phonetic) - typewriter ua: Ukrainian (typewriter) - winkeys ua: Ukrainian (WinKeys) - legacy ua: Ukrainian (legacy) - rstu ua: Ukrainian (standard RSTU) - rstu_ru ua: Russian (Ukraine, standard RSTU) - homophonic ua: Ukrainian (homophonic) - extd gb: English (UK, extended WinKeys) - intl gb: English (UK, international with dead keys) - dvorak gb: English (UK, Dvorak) - dvorakukp gb: English (UK, Dvorak with UK punctuation) - mac gb: English (UK, Macintosh) - mac_intl gb: English (UK, Macintosh international) - colemak gb: English (UK, Colemak) - latin uz: Uzbek (Latin) - kr104 kr: Korean (101/104 key compatible) - CloGaelach ie: CloGaelach - UnicodeExpert ie: Irish (UnicodeExpert) - ogam ie: Ogham - ogam_is434 ie: Ogham (IS434) - urd-crulp pk: Urdu (Pakistan, CRULP) - urd-nla pk: Urdu (Pakistan, NLA) - ara pk: Arabic (Pakistan) - snd pk: Sindhi - legacy epo: Esperanto (displaced semicolon and quote, obsolete) - igbo ng: Igbo - yoruba ng: Yoruba - hausa ng: Hausa - left_hand brai: Braille (left hand) - right_hand brai: Braille (right hand) - alt tm: Turkmen (Alt-Q) - fr-oss ml: French (Mali, alternative) - us-mac ml: English (Mali, US Macintosh) - us-intl ml: English (Mali, US international) - kik ke: Kikuyu - qwerty-bay ph: Filipino (QWERTY Baybayin) - capewell-dvorak ph: Filipino (Capewell-Dvorak Latin) - capewell-dvorak-bay ph: Filipino (Capewell-Dvorak Baybayin) - capewell-qwerf2k6 ph: Filipino (Capewell-QWERF 2006 Latin) - capewell-qwerf2k6-bay ph: Filipino (Capewell-QWERF 2006 Baybayin) - colemak ph: Filipino (Colemak Latin) - colemak-bay ph: Filipino (Colemak Baybayin) - dvorak ph: Filipino (Dvorak Latin) - dvorak-bay ph: Filipino (Dvorak Baybayin) - gag md: Moldavian (Gagauz) - -! option - grp Switching to another layout - grp:switch Right Alt (while pressed) - grp:lswitch Left Alt (while pressed) - grp:lwin_switch Left Win (while pressed) - grp:rwin_switch Right Win (while pressed) - grp:win_switch Any Win key (while pressed) - grp:caps_switch Caps Lock (while pressed), Alt+Caps Lock does the original capslock action - grp:rctrl_switch Right Ctrl (while pressed) - grp:toggle Right Alt - grp:lalt_toggle Left Alt - grp:caps_toggle Caps Lock - grp:shift_caps_toggle Shift+Caps Lock - grp:shift_caps_switch Caps Lock (to first layout), Shift+Caps Lock (to last layout) - grp:win_menu_switch Left Win (to first layout), Right Win/Menu (to last layout) - grp:lctrl_rctrl_switch Left Ctrl (to first layout), Right Ctrl (to last layout) - grp:alt_caps_toggle Alt+Caps Lock - grp:shifts_toggle Both Shift keys together - grp:alts_toggle Both Alt keys together - grp:ctrls_toggle Both Ctrl keys together - grp:ctrl_shift_toggle Ctrl+Shift - grp:lctrl_lshift_toggle Left Ctrl+Left Shift - grp:rctrl_rshift_toggle Right Ctrl+Right Shift - grp:ctrl_alt_toggle Alt+Ctrl - grp:alt_shift_toggle Alt+Shift - grp:lalt_lshift_toggle Left Alt+Left Shift - grp:alt_space_toggle Alt+Space - grp:menu_toggle Menu - grp:lwin_toggle Left Win - grp:win_space_toggle Win Key+Space - grp:rwin_toggle Right Win - grp:lshift_toggle Left Shift - grp:rshift_toggle Right Shift - grp:lctrl_toggle Left Ctrl - grp:rctrl_toggle Right Ctrl - grp:sclk_toggle Scroll Lock - grp:lctrl_lwin_rctrl_menu LeftCtrl+LeftWin (to first layout), RightCtrl+Menu (to second layout) - lv3 Key to choose 3rd level - lv3:switch Right Ctrl - lv3:menu_switch Menu - lv3:win_switch Any Win key - lv3:lwin_switch Left Win - lv3:rwin_switch Right Win - lv3:alt_switch Any Alt key - lv3:lalt_switch Left Alt - lv3:ralt_switch Right Alt - lv3:ralt_switch_multikey Right Alt, Shift+Right Alt key is Compose - lv3:ralt_alt Right Alt key never chooses 3rd level - lv3:enter_switch Enter on keypad - lv3:caps_switch Caps Lock - lv3:bksl_switch Backslash - lv3:lsgt_switch <Less/Greater> - lv3:caps_switch_latch Caps Lock chooses 3rd level, acts as onetime lock when pressed together with another 3rd-level-chooser - lv3:bksl_switch_latch Backslash chooses 3rd level, acts as onetime lock when pressed together with another 3rd-level-chooser - lv3:lsgt_switch_latch <Less/Greater> chooses 3rd level, acts as onetime lock when pressed together with another 3rd-level-chooser - ctrl Ctrl key position - ctrl:nocaps Caps Lock as Ctrl - ctrl:lctrl_meta Left Ctrl as Meta - ctrl:swapcaps Swap Ctrl and Caps Lock - ctrl:ac_ctrl At left of 'A' - ctrl:aa_ctrl At bottom left - ctrl:rctrl_ralt Right Ctrl as Right Alt - ctrl:menu_rctrl Menu as Right Ctrl - ctrl:ctrl_ralt Right Alt as Right Ctrl - ctrl:swap_lalt_lctl Swap Left Alt key with Left Ctrl key - ctrl:swap_lwin_lctl Swap Left Win key with Left Ctrl key - ctrl:swap_rwin_rctl Swap Right Win key with Right Ctrl key - ctrl:swap_lalt_lctl_lwin Left Alt as Ctrl, Left Ctrl as Win, Left Win as Alt - grp_led Use keyboard LED to show alternative layout - grp_led:num Num Lock - grp_led:caps Caps Lock - grp_led:scroll Scroll Lock - keypad Layout of numeric keypad - keypad:legacy Legacy - keypad:oss Unicode additions (arrows and math operators) - keypad:future Unicode additions (arrows and math operators; math operators on default level) - keypad:legacy_wang Legacy Wang 724 - keypad:oss_wang Wang 724 keypad with Unicode additions (arrows and math operators) - keypad:future_wang Wang 724 keypad with Unicode additions (arrows and math operators; math operators on default level) - keypad:hex Hexadecimal - keypad:atm ATM/phone-style - kpdl Numeric keypad delete key behaviour - kpdl:dot Legacy key with dot - kpdl:comma Legacy key with comma - kpdl:dotoss Four-level key with dot - kpdl:dotoss_latin9 Four-level key with dot, Latin-9 only - kpdl:commaoss Four-level key with comma - kpdl:momayyezoss Four-level key with momayyez - kpdl:kposs Four-level key with abstract separators - kpdl:semi Semicolon on third level - caps Caps Lock key behavior - caps:internal Caps Lock uses internal capitalization; Shift "pauses" Caps Lock - caps:internal_nocancel Caps Lock uses internal capitalization; Shift doesn't affect Caps Lock - caps:shift Caps Lock acts as Shift with locking; Shift "pauses" Caps Lock - caps:shift_nocancel Caps Lock acts as Shift with locking; Shift doesn't affect Caps Lock - caps:capslock Caps Lock toggles normal capitalization of alphabetic characters - caps:numlock Make Caps Lock an additional Num Lock - caps:swapescape Swap ESC and Caps Lock - caps:escape Make Caps Lock an additional ESC - caps:backspace Make Caps Lock an additional Backspace - caps:super Make Caps Lock an additional Super - caps:hyper Make Caps Lock an additional Hyper - caps:shiftlock Caps Lock toggles ShiftLock (affects all keys) - caps:none Caps Lock is disabled - caps:ctrl_modifier Make Caps Lock an additional Ctrl - altwin Alt/Win key behavior - altwin:menu Add the standard behavior to Menu key - altwin:meta_alt Alt and Meta are on Alt keys - altwin:alt_win Alt is mapped to Win keys (and the usual Alt keys) - altwin:ctrl_win Ctrl is mapped to Win keys (and the usual Ctrl keys) - altwin:ctrl_alt_win Ctrl is mapped to Alt keys, Alt is mapped to Win keys - altwin:meta_win Meta is mapped to Win keys - altwin:left_meta_win Meta is mapped to Left Win - altwin:hyper_win Hyper is mapped to Win keys - altwin:alt_super_win Alt is mapped to Right Win, Super to Menu - altwin:swap_alt_win Alt is swapped with Win - Compose key Position of Compose key - compose:ralt Right Alt - compose:lwin Left Win - compose:lwin-altgr 3rd level of Left Win - compose:rwin Right Win - compose:rwin-altgr 3rd level of Right Win - compose:menu Menu - compose:menu-altgr 3rd level of Menu - compose:lctrl Left Ctrl - compose:lctrl-altgr 3rd level of Left Ctrl - compose:rctrl Right Ctrl - compose:rctrl-altgr 3rd level of Right Ctrl - compose:caps Caps Lock - compose:caps-altgr 3rd level of Caps Lock - compose:102 <Less/Greater> - compose:102-altgr 3rd level of <Less/Greater> - compose:paus Pause - compose:prsc PrtSc - compose:sclk Scroll Lock - compat Miscellaneous compatibility options - numpad:pc Default numeric keypad keys - numpad:mac Numeric keypad keys always enter digits (as in Mac OS) - numpad:microsoft NumLock on: digits, Shift switches to arrow keys, Numlock off: always arrow keys (as in MS Windows) - numpad:shift3 Shift does not cancel Num Lock, chooses 3rd level instead - srvrkeys:none Special keys (Ctrl+Alt+<key>) handled in a server - apple:alupckeys Apple Aluminium Keyboard: emulate PC keys (Print, Scroll Lock, Pause, Num Lock) - shift:breaks_caps Shift cancels Caps Lock - misc:typo Enable extra typographic characters - shift:both_capslock Both Shift keys together toggle Caps Lock - shift:both_capslock_cancel Both Shift keys together activate Caps Lock, one Shift key deactivates - shift:both_shiftlock Both Shift keys together toggle ShiftLock - keypad:pointerkeys Shift + NumLock toggles PointerKeys - grab:break_actions Allow breaking grabs with keyboard actions (warning: security risk) - grab:debug Allow grab and window tree logging - currencysign Adding currency signs to certain keys - eurosign:e Euro on E - eurosign:2 Euro on 2 - eurosign:4 Euro on 4 - eurosign:5 Euro on 5 - rupeesign:4 Rupee on 4 - lv5 Key to choose 5th level - lv5:lsgt_switch_lock <Less/Greater> chooses 5th level, locks when pressed together with another 5th-level-chooser - lv5:ralt_switch_lock Right Alt chooses 5th level, locks when pressed together with another 5th-level-chooser - lv5:lwin_switch_lock Left Win chooses 5th level, locks when pressed together with another 5th-level-chooser - lv5:rwin_switch_lock Right Win chooses 5th level, locks when pressed together with another 5th-level-chooser - nbsp Using space key to input non-breakable space character - nbsp:none Usual space at any level - nbsp:level2 Non-breakable space character at second level - nbsp:level3 Non-breakable space character at third level - nbsp:level3s Non-breakable space character at third level, nothing at fourth level - nbsp:level3n Non-breakable space character at third level, thin non-breakable space character at fourth level - nbsp:level4 Non-breakable space character at fourth level - nbsp:level4n Non-breakable space character at fourth level, thin non-breakable space character at sixth level - nbsp:level4nl Non-breakable space character at fourth level, thin non-breakable space character at sixth level (via Ctrl+Shift) - nbsp:zwnj2 Zero-width non-joiner character at second level - nbsp:zwnj2zwj3 Zero-width non-joiner character at second level, zero-width joiner character at third level - nbsp:zwnj2zwj3nb4 Zero-width non-joiner character at second level, zero-width joiner character at third level, non-breakable space character at fourth level - nbsp:zwnj2nb3 Zero-width non-joiner character at second level, non-breakable space character at third level - nbsp:zwnj2nb3s Zero-width non-joiner character at second level, non-breakable space character at third level, nothing at fourth level - nbsp:zwnj2nb3zwj4 Zero-width non-joiner character at second level, non-breakable space character at third level, zero-width joiner at fourth level - nbsp:zwnj2nb3nnb4 Zero-width non-joiner character at second level, non-breakable space character at third level, thin non-breakable space at fourth level - nbsp:zwnj3zwj4 Zero-width non-joiner character at third level, zero-width joiner at fourth level - japan Japanese keyboard options - japan:kana_lock Kana Lock key is locking - japan:nicola_f_bs NICOLA-F style Backspace - japan:hztg_escape Make Zenkaku Hankaku an additional ESC - korean Korean Hangul/Hanja keys - korean:hw_keys Hardware Hangul/Hanja keys - korean:ralt_rctrl Right Alt as Hangul, right Ctrl as Hanja - korean:rctrl_ralt Right Ctrl as Hangul, right Alt as Hanja - esperanto Adding Esperanto supersigned letters - esperanto:qwerty To the corresponding key in a Qwerty layout - esperanto:dvorak To the corresponding key in a Dvorak layout - esperanto:colemak To the corresponding key in a Colemak layout - solaris Maintain key compatibility with old Solaris keycodes - solaris:sun_compat Sun Key compatibility - terminate Key sequence to kill the X server - terminate:ctrl_alt_bksp Ctrl + Alt + Backspace diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/Makefile deleted file mode 100644 index e6706b6ce..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# $NetBSD: Makefile,v 1.10 2014/07/11 19:19:16 mrg Exp $ - -.include - -XKBNAME= symbols - -FILES= af al altwin am apl ara at az \ - ba bd be bg br brai bt bw by \ - ca capslock cd ch cm cn compose ctrl cz \ - de dk \ - ee empty epo es et eu eurosign \ - fi fo fr \ - gb ge gh gn gr group \ - hr hu \ - ie il in inet iq ir is it \ - jp \ - ke keypad kg kh kpdl kr kz \ - la latam latin level3 level5 lk lt lv \ - ma mao md me mk ml mm mn mt mv \ - nbsp ng nl no np \ - olpc \ - pc ph pk pl pt \ - ro rs ru rupeesign \ - se shift si sk sn srvr_ctrl sy \ - terminate th tj tm tr tw typo tz \ - ua us uz \ - vn \ - za - -SUBDIR= digital_vndr fujitsu_vndr hp_vndr macintosh_vndr \ - nec_vndr nokia_vndr sgi_vndr sharp_vndr sony_vndr sun_vndr \ - xfree68_vndr - -XKBDIR= 1 - -.include "../Makefile.xkbdata" - -.include -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/digital_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/digital_vndr/Makefile deleted file mode 100644 index 0fa10269f..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/digital_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:22 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/symbols/digital_vndr -FILES= lk pc us vt - -.PATH: ${X11SRCDIR.xkeyboard-config}/symbols/digital_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/fujitsu_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/fujitsu_vndr/Makefile deleted file mode 100644 index c616765a7..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/fujitsu_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:22 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/symbols/fujitsu_vndr -FILES= jp us - -.PATH: ${X11SRCDIR.xkeyboard-config}/symbols/fujitsu_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/hp_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/hp_vndr/Makefile deleted file mode 100644 index 7a08b3d76..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/hp_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:22 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/symbols/hp_vndr -FILES= us - -.PATH: ${X11SRCDIR.xkeyboard-config}/symbols/hp_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/macintosh_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/macintosh_vndr/Makefile deleted file mode 100644 index c3dea1a64..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/macintosh_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2010/05/28 12:38:35 ghen Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/symbols/macintosh_vndr -FILES= apple ch de dk fi fr gb it jp nl no pt se us - -.PATH: ${X11SRCDIR.xkeyboard-config}/symbols/macintosh_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/nec_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/nec_vndr/Makefile deleted file mode 100644 index 6a68c7d2c..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/nec_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:22 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/symbols/nec_vndr -FILES= jp - -.PATH: ${X11SRCDIR.xkeyboard-config}/symbols/nec_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/nokia_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/nokia_vndr/Makefile deleted file mode 100644 index 56ce666a4..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/nokia_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/05/28 12:38:35 ghen Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/symbols/nokia_vndr -FILES= rx-44 rx-51 su-8w - -.PATH: ${X11SRCDIR.xkeyboard-config}/symbols/nokia_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/sgi_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/sgi_vndr/Makefile deleted file mode 100644 index 4feaa568d..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/sgi_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:23 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/symbols/sgi_vndr -FILES= jp - -.PATH: ${X11SRCDIR.xkeyboard-config}/symbols/sgi_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/sharp_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/sharp_vndr/Makefile deleted file mode 100644 index 72d0b1761..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/sharp_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/05/25 13:13:55 nonaka Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/symbols/sharp_vndr -FILES= sl-c3x00 ws003sh ws007sh ws011sh ws020sh - -.PATH: ${X11SRCDIR.xkeyboard-config}/symbols/sharp_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/sony_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/sony_vndr/Makefile deleted file mode 100644 index 0630a5181..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/sony_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:23 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/symbols/sony_vndr -FILES= us - -.PATH: ${X11SRCDIR.xkeyboard-config}/symbols/sony_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/sun_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/sun_vndr/Makefile deleted file mode 100644 index 7dc304161..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/sun_vndr/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 23:28:26 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/symbols/sun_vndr -FILES= ara be br ca ch cz de dk ee es fi fr gb gr it jp kr \ - lt lv nl no pl pt ro ru se sk solaris tr tw ua us - -.PATH: ${X11SRCDIR.xkeyboard-config}/symbols/sun_vndr - -.include -.include - diff --git a/external/mit/xorg/lib/xkeyboard-config/symbols/xfree68_vndr/Makefile b/external/mit/xorg/lib/xkeyboard-config/symbols/xfree68_vndr/Makefile deleted file mode 100644 index 1c87c8672..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/symbols/xfree68_vndr/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:23 mrg Exp $ - -.include - -FILESDIR= ${X11LIBDIR}/xkb/symbols/xfree68_vndr -FILES= amiga ataritt - -.PATH: ${X11SRCDIR.xkeyboard-config}/symbols/xfree68_vndr - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/torture/Makefile b/external/mit/xorg/lib/xkeyboard-config/torture/Makefile deleted file mode 100644 index ef6712fe3..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/torture/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/06/11 01:49:23 mrg Exp $ - -.include - -XKBNAME= torture -FILES= indicator indicator1 indicator2 indicator3 mod_compat \ - mod_compat1 mod_compat2 mod_compat3 mod_compat4 \ - sym_interp sym_interp1 sym_interp2 sym_interp3 \ - sym_interp4 types - -.include "../Makefile.xkbdata" - -.include -.include diff --git a/external/mit/xorg/lib/xkeyboard-config/types/Makefile b/external/mit/xorg/lib/xkeyboard-config/types/Makefile deleted file mode 100644 index 05d18bc38..000000000 --- a/external/mit/xorg/lib/xkeyboard-config/types/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2010/05/28 12:38:35 ghen Exp $ - -.include - -XKBNAME= types -FILES= README basic cancel caps complete default extra \ - iso9995 level5 mousekeys nokia numpad pc - -XKBDIR= 1 - -.include "../Makefile.xkbdata" - -.include -.include diff --git a/external/mit/xorg/share/Makefile b/external/mit/xorg/share/Makefile deleted file mode 100644 index a79fbbf8d..000000000 --- a/external/mit/xorg/share/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2010/11/18 18:47:35 tron Exp $ - -.include - -SUBDIR= cf -.if ${MKSHARE} != "no" || \ - make(clean) || make(cleandir) || make(distclean) || make(obj) -SUBDIR+=fonts man nls -.endif - -.include diff --git a/external/mit/xorg/share/cf/Makefile b/external/mit/xorg/share/cf/Makefile deleted file mode 100644 index 40a79abca..000000000 --- a/external/mit/xorg/share/cf/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -# $NetBSD: Makefile,v 1.9 2011/09/29 09:44:08 dholland Exp $ - -.include - -.PATH: ${X11SRCDIR.xorg-cf-files} - -FILESDIR=${X11LIBDIR}/config - -FILES= Amoeba.cf DGUX.cf FreeBSD.cf Imake.cf Imake.rules Imake.tmpl \ - Library.tmpl Mips.cf Motif.rules Motif.tmpl NetBSD.cf Oki.cf \ - OpenBSD.cf QNX4.cf QNX4.rules Server.tmpl ServerLib.tmpl \ - Threads.tmpl Win32.cf Win32.rules WinLib.tmpl X11.rules \ - X11.tmpl apollo.cf bsd.cf bsdLib.rules bsdLib.tmpl bsdi.cf \ - cde.rules cde.tmpl convex.cf cray.cf cygwin.cf cygwin.rules \ - cygwin.tmpl darwin.cf darwinLib.rules darwinLib.tmpl \ - fujitsu.cf generic.cf gnu.cf gnuLib.rules gnuLib.tmpl hp.cf \ - hpLib.rules hpLib.tmpl ibm.cf ibmLib.rules ibmLib.tmpl \ - isc.cf linux.cf lnxLib.rules lnxLib.tmpl lnxdoc.rules \ - lnxdoc.tmpl luna.cf lynx.cf macII.cf mach.cf minix.cf \ - moto.cf ncr.cf nec.cf necLib.rules necLib.tmpl noop.rules \ - nto.cf nto.rules oldlib.rules os2.cf os2.rules os2Lib.rules \ - os2Lib.tmpl osf1.cf osfLib.rules osfLib.tmpl pegasus.cf \ - sco.cf sco5.cf scoLib.rules sequent.cf sgi.cf sgiLib.rules \ - sgiLib.tmpl sony.cf sun.cf sunLib.rules sunLib.tmpl \ - sv3Lib.rules sv3Lib.tmpl sv4Lib.rules sv4Lib.tmpl svr3.cf \ - svr4.cf ultrix.cf usl.cf x386.cf xf86.rules \ - xf86.tmpl xf86site.def xfree86.cf xorg.cf xorgversion.def - -# Note: acts as '#define InstallEmptyHostDef' -# -FILES+= date.def host.def xorgsite.def - -# Handle site.def specificly because it is provided in dist -# -FILES+= netbsd.site.def -FILESNAME_netbsd.site.def= site.def -CLEANFILES+= netbsd.site.def - -netbsd.site.def: site.def.in - ${_MKTARGET_CREATE} - ${TOOL_SED} -e 's,@prefix@,${X11ROOTDIR},' <${.ALLSRC} |\ - ${TOOL_SED} -e 's,@FONTROOTDIR@,${X11ROOTDIR}/share/fonts/X11,' |\ - ${TOOL_SED} -e 's,@ENCODINGSDIR@,\$${FONTROOTDIR}/encodings,' \ - >${.TARGET} -realall: netbsd.site.def - -.include diff --git a/external/mit/xorg/share/cf/date.def b/external/mit/xorg/share/cf/date.def deleted file mode 100644 index e69de29bb..000000000 diff --git a/external/mit/xorg/share/cf/host.def b/external/mit/xorg/share/cf/host.def deleted file mode 100644 index e69de29bb..000000000 diff --git a/external/mit/xorg/share/cf/xorgsite.def b/external/mit/xorg/share/cf/xorgsite.def deleted file mode 100644 index 13ca4aad9..000000000 --- a/external/mit/xorg/share/cf/xorgsite.def +++ /dev/null @@ -1,9 +0,0 @@ -/* $NetBSD: xorgsite.def,v 1.2 2011/12/13 04:32:32 dholland Exp $ */ - -#define HasSecureRPC NO -#define InstallXdmConfig YES -#define InstallXinitConfig YES -#define UseGccMakeDepend NO - -#define BuildExpatLibrary YES -#define BuildFreetype2Library YES diff --git a/external/mit/xorg/share/fonts/100dpi/Makefile b/external/mit/xorg/share/fonts/100dpi/Makefile deleted file mode 100644 index 1e2605bab..000000000 --- a/external/mit/xorg/share/fonts/100dpi/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2010/04/11 02:41:39 jakllsch Exp $ - -SUBDIR= font-adobe-100dpi font-adobe-symbol-100dpi font-adobe-utopia-100dpi \ - font-bh-100dpi font-bh-lucidatypewriter-100dpi font-bitstream-100dpi - -FONTSUBDIR= 100dpi - -.include "../Makefile.fontdir" - -.include diff --git a/external/mit/xorg/share/fonts/100dpi/font-adobe-100dpi/Makefile b/external/mit/xorg/share/fonts/100dpi/font-adobe-100dpi/Makefile deleted file mode 100644 index d8b6a328f..000000000 --- a/external/mit/xorg/share/fonts/100dpi/font-adobe-100dpi/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= 100dpi -FONTSRCPKG= font-adobe-100dpi - -.include "../../Makefile.dpi" -FILES= ${ADOBE_FILES} -UCSFILES= ${ADOBE_UCSFILES} - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/100dpi/font-adobe-symbol-100dpi/Makefile b/external/mit/xorg/share/fonts/100dpi/font-adobe-symbol-100dpi/Makefile deleted file mode 100644 index 48f61c54e..000000000 --- a/external/mit/xorg/share/fonts/100dpi/font-adobe-symbol-100dpi/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/04/11 02:41:39 jakllsch Exp $ - -.include - -FONTSUBDIR= 100dpi -FONTSRCPKG= font-adobe-100dpi - -.include "../../Makefile.dpi" -FILES= ${ADOBE_SYMBOL_FILES} - -.include "../../Makefile.font" - -.include -.include diff --git a/external/mit/xorg/share/fonts/100dpi/font-adobe-utopia-100dpi/Makefile b/external/mit/xorg/share/fonts/100dpi/font-adobe-utopia-100dpi/Makefile deleted file mode 100644 index ef64625b4..000000000 --- a/external/mit/xorg/share/fonts/100dpi/font-adobe-utopia-100dpi/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= 100dpi -FONTSRCPKG= font-adobe-utopia-100dpi - -.include "../../Makefile.dpi" -FILES= ${ADOBE_UTOPIA_FILES} -UCSFILES= ${ADOBE_UTOPIA_UCSFILES} - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/100dpi/font-bh-100dpi/Makefile b/external/mit/xorg/share/fonts/100dpi/font-bh-100dpi/Makefile deleted file mode 100644 index e85437637..000000000 --- a/external/mit/xorg/share/fonts/100dpi/font-bh-100dpi/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= 100dpi -FONTSRCPKG= font-bh-100dpi - -.include "../../Makefile.dpi" -FILES= ${BH_FILES} -UCSFILES= ${BH_UCSFILES} - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/100dpi/font-bh-lucidatypewriter-100dpi/Makefile b/external/mit/xorg/share/fonts/100dpi/font-bh-lucidatypewriter-100dpi/Makefile deleted file mode 100644 index 2cd3f9304..000000000 --- a/external/mit/xorg/share/fonts/100dpi/font-bh-lucidatypewriter-100dpi/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= 100dpi -FONTSRCPKG= font-bh-lucidatypewriter-100dpi - -.include "../../Makefile.dpi" -FILES= ${BH_LUCIDATYPEWRITER_FILES} -UCSFILES= ${BH_LUCIDATYPEWRITER_UCSFILES} - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/100dpi/font-bitstream-100dpi/Makefile b/external/mit/xorg/share/fonts/100dpi/font-bitstream-100dpi/Makefile deleted file mode 100644 index f8b48f79a..000000000 --- a/external/mit/xorg/share/fonts/100dpi/font-bitstream-100dpi/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= 100dpi -FONTSRCPKG= font-bitstream-100dpi - -.include "../../Makefile.dpi" -FILES= ${BITSTREAM_FILES} - -.include "../../Makefile.font" - -.include -.include diff --git a/external/mit/xorg/share/fonts/75dpi/Makefile b/external/mit/xorg/share/fonts/75dpi/Makefile deleted file mode 100644 index d2c50411d..000000000 --- a/external/mit/xorg/share/fonts/75dpi/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2010/04/11 02:41:39 jakllsch Exp $ - -SUBDIR= font-adobe-75dpi font-adobe-symbol-75dpi font-adobe-utopia-75dpi \ - font-bh-75dpi font-bh-lucidatypewriter-75dpi font-bitstream-75dpi - -FONTSUBDIR= 75dpi - -.include "../Makefile.fontdir" - -.include diff --git a/external/mit/xorg/share/fonts/75dpi/font-adobe-75dpi/Makefile b/external/mit/xorg/share/fonts/75dpi/font-adobe-75dpi/Makefile deleted file mode 100644 index e9f654b42..000000000 --- a/external/mit/xorg/share/fonts/75dpi/font-adobe-75dpi/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= 75dpi -FONTSRCPKG= font-adobe-75dpi - -.include "../../Makefile.dpi" -FILES= ${ADOBE_FILES} -UCSFILES= ${ADOBE_UCSFILES} - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/75dpi/font-adobe-symbol-75dpi/Makefile b/external/mit/xorg/share/fonts/75dpi/font-adobe-symbol-75dpi/Makefile deleted file mode 100644 index cdc46316d..000000000 --- a/external/mit/xorg/share/fonts/75dpi/font-adobe-symbol-75dpi/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/04/11 02:41:39 jakllsch Exp $ - -.include - -FONTSUBDIR= 75dpi -FONTSRCPKG= font-adobe-75dpi - -.include "../../Makefile.dpi" -FILES= ${ADOBE_SYMBOL_FILES} - -.include "../../Makefile.font" - -.include -.include diff --git a/external/mit/xorg/share/fonts/75dpi/font-adobe-utopia-75dpi/Makefile b/external/mit/xorg/share/fonts/75dpi/font-adobe-utopia-75dpi/Makefile deleted file mode 100644 index e742c347f..000000000 --- a/external/mit/xorg/share/fonts/75dpi/font-adobe-utopia-75dpi/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= 75dpi -FONTSRCPKG= font-adobe-utopia-75dpi - -.include "../../Makefile.dpi" -FILES= ${ADOBE_UTOPIA_FILES} -UCSFILES= ${ADOBE_UTOPIA_UCSFILES} - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/75dpi/font-bh-75dpi/Makefile b/external/mit/xorg/share/fonts/75dpi/font-bh-75dpi/Makefile deleted file mode 100644 index 47d08ec12..000000000 --- a/external/mit/xorg/share/fonts/75dpi/font-bh-75dpi/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= 75dpi -FONTSRCPKG= font-bh-75dpi - -.include "../../Makefile.dpi" -FILES= ${BH_FILES} -UCSFILES= ${BH_UCSFILES} - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/75dpi/font-bh-lucidatypewriter-75dpi/Makefile b/external/mit/xorg/share/fonts/75dpi/font-bh-lucidatypewriter-75dpi/Makefile deleted file mode 100644 index cace8586d..000000000 --- a/external/mit/xorg/share/fonts/75dpi/font-bh-lucidatypewriter-75dpi/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= 75dpi -FONTSRCPKG= font-bh-lucidatypewriter-75dpi - -.include "../../Makefile.dpi" -FILES= ${BH_LUCIDATYPEWRITER_FILES} -UCSFILES= ${BH_LUCIDATYPEWRITER_UCSFILES} - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/75dpi/font-bitstream-75dpi/Makefile b/external/mit/xorg/share/fonts/75dpi/font-bitstream-75dpi/Makefile deleted file mode 100644 index d4d64c02c..000000000 --- a/external/mit/xorg/share/fonts/75dpi/font-bitstream-75dpi/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= 75dpi -FONTSRCPKG= font-bitstream-75dpi - -.include "../../Makefile.dpi" -FILES= ${BITSTREAM_FILES} - -.include "../../Makefile.font" - -.include -.include diff --git a/external/mit/xorg/share/fonts/Makefile b/external/mit/xorg/share/fonts/Makefile deleted file mode 100644 index 0b6dde822..000000000 --- a/external/mit/xorg/share/fonts/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2009/06/18 06:36:59 mrg Exp $ - -.include - -.if ${MKX11FONTS} != "no" - -SUBDIR= encodings .WAIT \ - font-alias font-util \ - 100dpi 75dpi Type1 TTF misc - -.include "${NETBSDSRCDIR}/external/mit/xorg/tools/fc-cache/Makefile.fc-cache" - -.endif - -.include diff --git a/external/mit/xorg/share/fonts/Makefile.bdf b/external/mit/xorg/share/fonts/Makefile.bdf deleted file mode 100644 index 1b47fad01..000000000 --- a/external/mit/xorg/share/fonts/Makefile.bdf +++ /dev/null @@ -1,57 +0,0 @@ -# $NetBSD: Makefile.bdf,v 1.4 2014/08/05 15:40:59 apb Exp $ - -# Font files built using this makefile are cleaned in two ways: -# -# * temporary build files are cleaned by 'make clean' (via CLEANFILES). -# -# * Actual finished BDF and PCF files (BDFFILES and PCFFILES, -# respectively) are removed only by "cleandir" because they -# take a long time to build. (See the 'cleanfonts' target.) -# -# Also, we *must* split these operations into multiple 'rm' commands -# because of the number of files being removed. Trying to 'rm' all of -# these files with one command will cause some host systems to fail -# (rm arg list too long). - -FILESDIR= ${X11FONTDIR}/${FONTSUBDIR} -.PATH: ${X11SRCDIR.${FONTSRCPKG}} - -FONTSUFFIX= .gz -FONTGZIP= | ${TOOL_GZIP_N} ${GZIPLEVEL:U-9} -cf - -.include "${NETBSDSRCDIR}/external/mit/xorg/tools/bdftopcf/Makefile.bdftopcf" -.include "${NETBSDSRCDIR}/external/mit/xorg/tools/ucs2any/Makefile.ucs2any" - -.for _F _M in ${UCSFILES} # { -${_F}-${_M}.bdf: ${_F}.bdf - ${_MKTARGET_CREATE} - ${UCS2ANY} ${.ALLSRC} ${DESTDIR}${X11FONTDIR}/util/map-${_M} ${_M} - -BDFFILES+= ${_F}-${_M}.bdf -.endfor # } - -.SUFFIXES: .bdf .pcf${FONTSUFFIX} - -.bdf.pcf${FONTSUFFIX}: - ${_MKTARGET_CREATE} - rm -f ${.TARGET} - ${BDFTOPCF} -t ${.IMPSRC} ${FONTGZIP} > ${.TARGET}.tmp \ - && mv ${.TARGET}.tmp ${.TARGET} - -PCFFILES+= ${BDFFILES:S/.bdf$/.pcf${FONTSUFFIX}/} -CLEANFILES+= ${BDFFILES:S/.bdf$/.pcf${FONTSUFFIX}.tmp/} - -FILES+= ${PCFFILES} -.if exists(fonts.alias) -FILES+= fonts.alias -.endif - -realall: ${PCFFILES} - -cleandir: cleanfonts - -cleanfonts: .PHONY .NOTMAIN - rm -f ${BDFFILES} - rm -f ${PCFFILES} - -.include "../../Makefile.font" diff --git a/external/mit/xorg/share/fonts/Makefile.dpi b/external/mit/xorg/share/fonts/Makefile.dpi deleted file mode 100644 index 56c695d5c..000000000 --- a/external/mit/xorg/share/fonts/Makefile.dpi +++ /dev/null @@ -1,82 +0,0 @@ -# $NetBSD: Makefile.dpi,v 1.2 2010/04/11 02:41:38 jakllsch Exp $ - -# Files installed by both 75dpi and 100dpi packages. - - -DPI_ISO= ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-9 \ - ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 - -ADOBE_SRCS= courB08 courB10 courB12 courB14 courB18 courB24 \ - courBO08 courBO10 courBO12 courBO14 courBO18 courBO24 \ - courO08 courO10 courO12 courO14 courO18 courO24 \ - courR08 courR10 courR12 courR14 courR18 courR24 \ - helvB08 helvB10 helvB12 helvB14 helvB18 helvB24 \ - helvBO08 helvBO10 helvBO12 helvBO14 helvBO18 helvBO24 \ - helvO08 helvO10 helvO12 helvO14 helvO18 helvO24 \ - helvR08 helvR10 helvR12 helvR14 helvR18 helvR24 \ - ncenB08 ncenB10 ncenB12 ncenB14 ncenB18 ncenB24 \ - ncenBI08 ncenBI10 ncenBI12 ncenBI14 ncenBI18 ncenBI24 \ - ncenI08 ncenI10 ncenI12 ncenI14 ncenI18 ncenI24 \ - ncenR08 ncenR10 ncenR12 ncenR14 ncenR18 ncenR24 \ - timB08 timB10 timB12 timB14 timB18 timB24 \ - timBI08 timBI10 timBI12 timBI14 timBI18 timBI24 \ - timI08 timI10 timI12 timI14 timI18 timI24 \ - timR08 timR10 timR12 timR14 timR18 timR24 -.for _s in ${ADOBE_SRCS} -ADOBE_FILES+= ${_s}.bdf -.for _i in ${DPI_ISO} -ADOBE_UCSFILES+= ${_s} ${_i} -.endfor -.endfor - - -ADOBE_UTOPIA_SRCS= UTBI__10 UTBI__12 UTBI__14 UTBI__18 UTBI__24 \ - UTB___10 UTB___12 UTB___14 UTB___18 UTB___24 \ - UTI___10 UTI___12 UTI___14 UTI___18 UTI___24 \ - UTRG__10 UTRG__12 UTRG__14 UTRG__18 UTRG__24 -.for _s in ${ADOBE_UTOPIA_SRCS} -ADOBE_UTOPIA_FILES+= ${_s}.bdf -.for _i in ${DPI_ISO} -ADOBE_UTOPIA_UCSFILES+= ${_s} ${_i} -.endfor -.endfor - -ADOBE_SYMBOL_SRCS= symb08 symb10 symb12 symb14 symb18 symb24 -.for _s in ${ADOBE_SYMBOL_SRCS} -ADOBE_SYMBOL_FILES+= ${_s}.bdf -.endfor - -BH_SRCS= luBIS08 luBIS10 luBIS12 luBIS14 luBIS18 luBIS19 luBIS24 \ - luBS08 luBS10 luBS12 luBS14 luBS18 luBS19 luBS24 \ - luIS08 luIS10 luIS12 luIS14 luIS18 luIS19 luIS24 \ - luRS08 luRS10 luRS12 luRS14 luRS18 luRS19 luRS24 \ - lubB08 lubB10 lubB12 lubB14 lubB18 lubB19 lubB24 \ - lubBI08 lubBI10 lubBI12 lubBI14 lubBI18 lubBI19 lubBI24 \ - lubI08 lubI10 lubI12 lubI14 lubI18 lubI19 lubI24 \ - lubR08 lubR10 lubR12 lubR14 lubR18 lubR19 lubR24 -.for _s in ${BH_SRCS} -BH_FILES+= ${_s}.bdf -.for _i in ${DPI_ISO} -BH_UCSFILES+= ${_s} ${_i} -.endfor -.endfor - - -BH_LUCIDATYPEWRITER_SRCS= \ - lutBS08 lutBS10 lutBS12 lutBS14 lutBS18 lutBS19 lutBS24 \ - lutRS08 lutRS10 lutRS12 lutRS14 lutRS18 lutRS19 lutRS24 -.for _s in ${BH_LUCIDATYPEWRITER_SRCS} -BH_LUCIDATYPEWRITER_FILES+= ${_s}.bdf -.for _i in ${DPI_ISO} -BH_LUCIDATYPEWRITER_UCSFILES+= ${_s} ${_i} -.endfor -.endfor - - -BITSTREAM_FILES=charB08.bdf charB10.bdf charB12.bdf charB14.bdf \ - charB18.bdf charB24.bdf charBI08.bdf charBI10.bdf \ - charBI12.bdf charBI14.bdf charBI18.bdf charBI24.bdf \ - charI08.bdf charI10.bdf charI12.bdf charI14.bdf \ - charI18.bdf charI24.bdf charR08.bdf charR10.bdf \ - charR12.bdf charR14.bdf charR18.bdf charR24.bdf \ - tech14.bdf techB14.bdf term14.bdf termB14.bdf diff --git a/external/mit/xorg/share/fonts/Makefile.fccache b/external/mit/xorg/share/fonts/Makefile.fccache deleted file mode 100644 index 603636691..000000000 --- a/external/mit/xorg/share/fonts/Makefile.fccache +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile.fccache,v 1.3 2011/09/12 13:38:43 apb Exp $ - -.ifndef _MAKEFILE_FCCACHE_ -_MAKEFILE_FCCACHE_=1 - -.include - -.include "${NETBSDSRCDIR}/external/mit/xorg/tools/fc-cache/Makefile.fc-cache" - -afterinstall: - ${_MKMSG_CREATE} ${DESTDIR}${X11FONTDIR}/fonts.cache-1 - ${FCCACHE} -fv ${DESTDIR}${X11FONTDIR} -.if ${MKUNPRIVED} != "no" - cd ${DESTDIR} \ - && find .${X11FONTDIR} -name fonts.cache-1 \ - | ${TOOL_SED} -e \ - 's/$$/ type=file mode=0444 uname=${BINOWN} gname=${BINGRP}/' \ - | ${METALOG.add} -.endif - -.endif # _MAKEFILE_FCCACHE_ diff --git a/external/mit/xorg/share/fonts/Makefile.font b/external/mit/xorg/share/fonts/Makefile.font deleted file mode 100644 index c3f5d6689..000000000 --- a/external/mit/xorg/share/fonts/Makefile.font +++ /dev/null @@ -1,4 +0,0 @@ -# $NetBSD: Makefile.font,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -FILESDIR= ${X11FONTDIR}/${FONTSUBDIR} -.PATH: ${X11SRCDIR.${FONTSRCPKG}} diff --git a/external/mit/xorg/share/fonts/Makefile.fontdir b/external/mit/xorg/share/fonts/Makefile.fontdir deleted file mode 100644 index 15a687102..000000000 --- a/external/mit/xorg/share/fonts/Makefile.fontdir +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile.fontdir,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -FILESDIR= ${X11FONTDIR}/${FONTSUBDIR} -.PATH: ${X11SRCDIR.${FONTSRCPKG}} - -.include "../Makefile.mkfontscale" diff --git a/external/mit/xorg/share/fonts/Makefile.mkfontscale b/external/mit/xorg/share/fonts/Makefile.mkfontscale deleted file mode 100644 index 7b9109a70..000000000 --- a/external/mit/xorg/share/fonts/Makefile.mkfontscale +++ /dev/null @@ -1,43 +0,0 @@ -# $NetBSD: Makefile.mkfontscale,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -# Note: needs "install" run in ./encodings first -# It depends upon FILESDIR being set. -# - -.ifndef _MAKEFILE_MKFONTSCALE_ -_MAKEFILE_MKFONTSCALE_=1 - -.include - -.include "${NETBSDSRCDIR}/external/mit/xorg/tools/fc-cache/Makefile.fc-cache" - -MKFONTSCALEDIR!= cd ${NETBSDSRCDIR}/external/mit/xorg/tools/mkfontscale && ${PRINTOBJDIR} -MKFONTSCALE= ${MKFONTSCALEDIR}/mkfontscale - -afterinstall: create.fonts.dir create.fonts.scale -.if ${MKUNPRIVED} != "no" - echo ".${FILESDIR}/fonts.dir type=file mode=0444 uname=root gname=wheel" \ - | ${METALOG.add} - echo ".${FILESDIR}/fonts.scale type=file mode=0444 uname=root gname=wheel" \ - | ${METALOG.add} -.endif - ${_MKMSG_INSTALL} ${DESTDIR}${FILESDIR}/encodings.dir - ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \ - ${DESTDIR}${X11FONTDIR}/encodings/encodings.dir \ - ${DESTDIR}${FILESDIR}/encodings.dir - -create.fonts.dir: create.fonts.scale - ${_MKMSG_CREATE} ${DESTDIR}${FILESDIR}/fonts.dir - rm -f ${DESTDIR}${FILESDIR}/fonts.dir - ${MKFONTSCALE} -b -s -l ${DESTDIR}${FILESDIR} - -.if !target(create.fonts.scale) -create.fonts.scale: - ${_MKMSG_CREATE} ${DESTDIR}${FILESDIR}/fonts.scale - rm -f ${DESTDIR}${FILESDIR}/fonts.scale - ${MKFONTSCALE} ${DESTDIR}${FILESDIR} -.endif - -.PHONY: create.fonts.dir create.fonts.scale - -.endif # _MAKEFILE_MKFONTSCALE_ diff --git a/external/mit/xorg/share/fonts/TTF/Makefile b/external/mit/xorg/share/fonts/TTF/Makefile deleted file mode 100644 index 933145714..000000000 --- a/external/mit/xorg/share/fonts/TTF/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -SUBDIR= font-bh-ttf ttf-bitstream-vera - -FONTSUBDIR= TTF - -.include "../Makefile.fontdir" - -.include diff --git a/external/mit/xorg/share/fonts/TTF/font-bh-ttf/Makefile b/external/mit/xorg/share/fonts/TTF/font-bh-ttf/Makefile deleted file mode 100644 index f4b4aefaa..000000000 --- a/external/mit/xorg/share/fonts/TTF/font-bh-ttf/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= TTF -FONTSRCPKG= font-bh-ttf - -FILES= luximb.ttf luximbi.ttf luximr.ttf luximri.ttf \ - luxirb.ttf luxirbi.ttf luxirr.ttf luxirri.ttf \ - luxisb.ttf luxisbi.ttf luxisr.ttf luxisri.ttf - -.include "../../Makefile.font" - -.include -.include diff --git a/external/mit/xorg/share/fonts/TTF/ttf-bitstream-vera/Makefile b/external/mit/xorg/share/fonts/TTF/ttf-bitstream-vera/Makefile deleted file mode 100644 index f6603ac6c..000000000 --- a/external/mit/xorg/share/fonts/TTF/ttf-bitstream-vera/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= TTF -FONTSRCPKG= ttf-bitstream-vera - -FILES= Vera.ttf VeraBI.ttf VeraBd.ttf VeraIt.ttf \ - VeraMoBI.ttf VeraMoBd.ttf VeraMoIt.ttf VeraMono.ttf \ - VeraSe.ttf VeraSeBd.ttf - -.include "../../Makefile.font" - -.include -.include diff --git a/external/mit/xorg/share/fonts/Type1/Makefile b/external/mit/xorg/share/fonts/Type1/Makefile deleted file mode 100644 index a56459c37..000000000 --- a/external/mit/xorg/share/fonts/Type1/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -SUBDIR= font-adobe-utopia-type1 font-bh-type1 \ - font-bitstream-type1 font-ibm-type1 - -FONTSUBDIR= Type1 - -.include "../Makefile.fontdir" - -.include diff --git a/external/mit/xorg/share/fonts/Type1/font-adobe-utopia-type1/Makefile b/external/mit/xorg/share/fonts/Type1/font-adobe-utopia-type1/Makefile deleted file mode 100644 index 266a497d0..000000000 --- a/external/mit/xorg/share/fonts/Type1/font-adobe-utopia-type1/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= Type1 -FONTSRCPKG= font-adobe-utopia-type1 - -FILES= UTBI____.afm UTBI____.pfa UTB_____.afm UTB_____.pfa \ - UTI_____.afm UTI_____.pfa UTRG____.afm UTRG____.pfa - -.include "../../Makefile.font" - -.include -.include diff --git a/external/mit/xorg/share/fonts/Type1/font-bh-type1/Makefile b/external/mit/xorg/share/fonts/Type1/font-bh-type1/Makefile deleted file mode 100644 index 0365026e8..000000000 --- a/external/mit/xorg/share/fonts/Type1/font-bh-type1/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= Type1 -FONTSRCPKG= font-bh-type1 - -FILES= l047013t.afm l047013t.pfa l047016t.afm l047016t.pfa \ - l047033t.afm l047033t.pfa l047036t.afm l047036t.pfa \ - l048013t.afm l048013t.pfa l048016t.afm l048016t.pfa \ - l048033t.afm l048033t.pfa l048036t.afm l048036t.pfa \ - l049013t.afm l049013t.pfa l049016t.afm l049016t.pfa \ - l049033t.afm l049033t.pfa l049036t.afm l049036t.pfa - -.include "../../Makefile.font" - -.include -.include diff --git a/external/mit/xorg/share/fonts/Type1/font-bitstream-type1/Makefile b/external/mit/xorg/share/fonts/Type1/font-bitstream-type1/Makefile deleted file mode 100644 index 613c8f693..000000000 --- a/external/mit/xorg/share/fonts/Type1/font-bitstream-type1/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= Type1 -FONTSRCPKG= font-bitstream-type1 - -FILES= c0419bt_.afm c0419bt_.pfb c0582bt_.afm c0582bt_.pfb \ - c0583bt_.afm c0583bt_.pfb c0611bt_.afm c0611bt_.pfb \ - c0632bt_.afm c0632bt_.pfb c0633bt_.afm c0633bt_.pfb \ - c0648bt_.afm c0648bt_.pfb c0649bt_.afm c0649bt_.pfb - -.include "../../Makefile.font" - -.include -.include diff --git a/external/mit/xorg/share/fonts/Type1/font-ibm-type1/Makefile b/external/mit/xorg/share/fonts/Type1/font-ibm-type1/Makefile deleted file mode 100644 index 33e9b7955..000000000 --- a/external/mit/xorg/share/fonts/Type1/font-ibm-type1/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= Type1 -FONTSRCPKG= font-ibm-type1 - -FILES= cour.afm cour.pfa courb.afm courb.pfa \ - courbi.afm courbi.pfa couri.afm couri.pfa - -.include "../../Makefile.font" - -.include -.include diff --git a/external/mit/xorg/share/fonts/encodings/Makefile b/external/mit/xorg/share/fonts/encodings/Makefile deleted file mode 100644 index 35174ffa9..000000000 --- a/external/mit/xorg/share/fonts/encodings/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -ENCDIR= encodings -ENCARGS=-e large - -GZFILES=adobe-dingbats.enc.gz adobe-standard.enc.gz adobe-symbol.enc.gz \ - armscii-8.enc.gz ascii-0.enc.gz dec-special.enc.gz \ - ibm-cp437.enc.gz ibm-cp850.enc.gz ibm-cp852.enc.gz ibm-cp866.enc.gz \ - iso8859-11.enc.gz iso8859-13.enc.gz iso8859-16.enc.gz iso8859-6.16.enc.gz \ - iso8859-6.8x.enc.gz \ - microsoft-cp1250.enc.gz microsoft-cp1251.enc.gz microsoft-cp1252.enc.gz \ - microsoft-cp1253.enc.gz microsoft-cp1254.enc.gz microsoft-cp1255.enc.gz \ - microsoft-cp1256.enc.gz microsoft-cp1257.enc.gz microsoft-cp1258.enc.gz \ - microsoft-win3.1.enc.gz \ - mulearabic-0.enc.gz mulearabic-1.enc.gz mulearabic-2.enc.gz \ - mulelao-1.enc.gz suneu-greek.enc.gz tcvn-0.enc.gz tis620-2.enc.gz \ - viscii1.1-1.enc.gz - -SUBDIR= large - -.include "Makefile.enc" - -.PATH: ${X11SRCDIR.encodings} - -.include -.include -.include diff --git a/external/mit/xorg/share/fonts/encodings/Makefile.enc b/external/mit/xorg/share/fonts/encodings/Makefile.enc deleted file mode 100644 index dc6eb4ad3..000000000 --- a/external/mit/xorg/share/fonts/encodings/Makefile.enc +++ /dev/null @@ -1,30 +0,0 @@ -# $NetBSD: Makefile.enc,v 1.4 2014/08/05 15:40:59 apb Exp $ - -FILESDIR= ${X11FONTDIR}/${ENCDIR} - -FILES+= ${GZFILES} -CLEANFILES+= ${GZFILES} -CLEANFILES+= ${GZFILES:S/.gz$/.gz.tmp/} - -.SUFFIXES: .enc .enc.gz -.enc.enc.gz: - ${_MKTARGET_CREATE} - ${TOOL_GZIP_N} -9fc ${.IMPSRC} > ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET} - - -realall: ${FILES} - -MKFONTSCALEDIR!= cd ${NETBSDSRCDIR}/external/mit/xorg/tools/mkfontscale && ${PRINTOBJDIR} -MKFONTSCALE= ${MKFONTSCALEDIR}/mkfontscale - -afterinstall: - ${_MKMSG_CREATE} ${DESTDIR}${FILESDIR}/encodings.dir - (cd ${DESTDIR}${FILESDIR} && \ - rm -f encodings.dir ; \ - ${MKFONTSCALE} -b -s -l -n -r -p ${X11FONTDIR}/${ENCDIR}/ -e . ${ENCARGS} . ; \ - ) -.if ${MKUNPRIVED} != "no" - echo ".${FILESDIR}/encodings.dir type=file mode=0644 uname=${BINOWN} gname=${BINGRP}" \ - | ${METALOG.add} -.endif - diff --git a/external/mit/xorg/share/fonts/encodings/large/Makefile b/external/mit/xorg/share/fonts/encodings/large/Makefile deleted file mode 100644 index aad467365..000000000 --- a/external/mit/xorg/share/fonts/encodings/large/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -ENCDIR= encodings/large - -GZFILES= big5.eten-0.enc.gz big5hkscs-0.enc.gz \ - cns11643-1.enc.gz cns11643-2.enc.gz cns11643-3.enc.gz \ - gb18030-0.enc.gz gb18030.2000-0.enc.gz gb18030.2000-1.enc.gz gb2312.1980-0.enc.gz \ - gbk-0.enc.gz \ - jisx0201.1976-0.enc.gz jisx0208.1990-0.enc.gz jisx0212.1990-0.enc.gz \ - ksc5601.1987-0.enc.gz ksc5601.1992-3.enc.gz \ - sun.unicode.india-0.enc.gz - -.PATH: ${X11SRCDIR.encodings}/large - -.include "../Makefile.enc" - -.include -.include diff --git a/external/mit/xorg/share/fonts/font-alias/100dpi/Makefile b/external/mit/xorg/share/fonts/font-alias/100dpi/Makefile deleted file mode 100644 index 753a17e5a..000000000 --- a/external/mit/xorg/share/fonts/font-alias/100dpi/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -ALIASSUBDIR= 100dpi - -.include "../Makefile.alias" diff --git a/external/mit/xorg/share/fonts/font-alias/75dpi/Makefile b/external/mit/xorg/share/fonts/font-alias/75dpi/Makefile deleted file mode 100644 index dd6918226..000000000 --- a/external/mit/xorg/share/fonts/font-alias/75dpi/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -ALIASSUBDIR= 75dpi - -.include "../Makefile.alias" diff --git a/external/mit/xorg/share/fonts/font-alias/Makefile b/external/mit/xorg/share/fonts/font-alias/Makefile deleted file mode 100644 index 0b3798923..000000000 --- a/external/mit/xorg/share/fonts/font-alias/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -SUBDIR= 100dpi 75dpi cyrillic misc - -.include diff --git a/external/mit/xorg/share/fonts/font-alias/Makefile.alias b/external/mit/xorg/share/fonts/font-alias/Makefile.alias deleted file mode 100644 index 7e1b932cd..000000000 --- a/external/mit/xorg/share/fonts/font-alias/Makefile.alias +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile.alias,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -FILES= fonts.alias -FILESDIR= ${X11FONTDIR}/${ALIASSUBDIR} - -.include -.include - -.PATH: ${X11SRCDIR.font-alias}/${ALIASSUBDIR} diff --git a/external/mit/xorg/share/fonts/font-alias/cyrillic/Makefile b/external/mit/xorg/share/fonts/font-alias/cyrillic/Makefile deleted file mode 100644 index 41b7965d9..000000000 --- a/external/mit/xorg/share/fonts/font-alias/cyrillic/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -ALIASSUBDIR= cyrillic - -.include "../Makefile.alias" diff --git a/external/mit/xorg/share/fonts/font-alias/misc/Makefile b/external/mit/xorg/share/fonts/font-alias/misc/Makefile deleted file mode 100644 index 2127bbab3..000000000 --- a/external/mit/xorg/share/fonts/font-alias/misc/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -ALIASSUBDIR= misc - -.include "../Makefile.alias" diff --git a/external/mit/xorg/share/fonts/font-util/Makefile b/external/mit/xorg/share/fonts/font-util/Makefile deleted file mode 100644 index 1933fddb2..000000000 --- a/external/mit/xorg/share/fonts/font-util/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/11/21 01:25:33 mrg Exp $ - -.include - -INCSDIR=${X11FONTDIR}/util -INCS= map-ISO8859-1 map-ISO8859-2 map-ISO8859-3 map-ISO8859-4 \ - map-ISO8859-5 map-ISO8859-6 map-ISO8859-7 map-ISO8859-8 \ - map-ISO8859-9 map-ISO8859-10 map-ISO8859-11 map-ISO8859-13 \ - map-ISO8859-14 map-ISO8859-15 map-ISO8859-16 map-JISX0201.1976-0 \ - map-KOI8-R - -.include "../Makefile.font" - -PKGCONFIG= fontutil -PKGDIST= font-util - -.include -.include - -.PATH: ${X11SRCDIR.font-util} ${X11SRCDIR.font-util}/man diff --git a/external/mit/xorg/share/fonts/misc/Makefile b/external/mit/xorg/share/fonts/misc/Makefile deleted file mode 100644 index cbe23392d..000000000 --- a/external/mit/xorg/share/fonts/misc/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2009/01/25 23:11:16 tron Exp $ - -SUBDIR= font-cursor-misc font-daewoo-misc font-dec-misc font-isas-misc \ - font-jis-misc font-misc-misc font-mutt-misc font-sony-misc - -FONTSUBDIR= misc - -.include "../Makefile.fontdir" - -.include diff --git a/external/mit/xorg/share/fonts/misc/font-cursor-misc/Makefile b/external/mit/xorg/share/fonts/misc/font-cursor-misc/Makefile deleted file mode 100644 index 0922fe6ee..000000000 --- a/external/mit/xorg/share/fonts/misc/font-cursor-misc/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= misc -FONTSRCPKG= font-cursor-misc - -.PATH: ${X11SRCDIR.${FONTSRCPKG}} -BDFFILES+= cursor.bdf - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/misc/font-daewoo-misc/Makefile b/external/mit/xorg/share/fonts/misc/font-daewoo-misc/Makefile deleted file mode 100644 index 71d17278c..000000000 --- a/external/mit/xorg/share/fonts/misc/font-daewoo-misc/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= misc -FONTSRCPKG= font-daewoo-misc - -.PATH: ${X11SRCDIR.${FONTSRCPKG}} -BDFFILES+= hanglg16.bdf hanglm16.bdf hanglm24.bdf - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/misc/font-dec-misc/Makefile b/external/mit/xorg/share/fonts/misc/font-dec-misc/Makefile deleted file mode 100644 index 7a5380bca..000000000 --- a/external/mit/xorg/share/fonts/misc/font-dec-misc/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= misc -FONTSRCPKG= font-dec-misc - -.PATH: ${X11SRCDIR.${FONTSRCPKG}} -BDFFILES+= deccurs.bdf decsess.bdf - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/misc/font-isas-misc/Makefile b/external/mit/xorg/share/fonts/misc/font-isas-misc/Makefile deleted file mode 100644 index 9df64be50..000000000 --- a/external/mit/xorg/share/fonts/misc/font-isas-misc/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= misc -FONTSRCPKG= font-isas-misc - -.PATH: ${X11SRCDIR.${FONTSRCPKG}} -BDFFILES+= gb16fs.bdf gb16st.bdf gb24st.bdf - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/misc/font-jis-misc/Makefile b/external/mit/xorg/share/fonts/misc/font-jis-misc/Makefile deleted file mode 100644 index 892b713ad..000000000 --- a/external/mit/xorg/share/fonts/misc/font-jis-misc/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= misc -FONTSRCPKG= font-jis-misc - -.PATH: ${X11SRCDIR.${FONTSRCPKG}} -BDFFILES+= jiskan16.bdf jiskan24.bdf - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/misc/font-misc-misc/Makefile b/external/mit/xorg/share/fonts/misc/font-misc-misc/Makefile deleted file mode 100644 index 334050d6f..000000000 --- a/external/mit/xorg/share/fonts/misc/font-misc-misc/Makefile +++ /dev/null @@ -1,62 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2012/08/20 15:38:58 tron Exp $ - -.include - -FONTSUBDIR= misc -FONTSRCPKG= font-misc-misc - -.PATH: ${X11SRCDIR.${FONTSRCPKG}} - -BDFFILES+= 12x13ja.bdf 18x18ja.bdf -BDFFILES+= 18x18ko.bdf - -BDFFILES+= k14.bdf nil2.bdf - -BDFFILES+= 4x6.bdf 5x7.bdf 5x8.bdf 6x10.bdf 6x12.bdf 6x13.bdf \ - 6x13B.bdf 6x13O.bdf 6x9.bdf 7x13.bdf 7x13B.bdf 7x13O.bdf \ - 7x14.bdf 7x14B.bdf 8x13.bdf 8x13B.bdf 8x13O.bdf 9x15.bdf \ - 9x15B.bdf 9x18.bdf 9x18B.bdf 10x20.bdf - -# Most fonts have 22 output types, but ISO8859-8 and ISO8859-11 are -# missing a few. -NO_ISO8859-8= 6x13O 7x13O 8x13O -.for _s in ${NO_ISO8859-8} -NO_UCSFILES+= ${_s}-ISO8859-8 -.endfor - -NO_ISO8859-11= 4x6 5x7 5x8 6x9 6x10 6x12 6x13B 6x13O 8x13 8x13B 8x13O 9x18B -.for _s in ${NO_ISO8859-11} -NO_UCSFILES+= ${_s}-ISO8859-11 -.endfor - -NO_KOI8-R= 6x13B 6x13O 7x13B 7x13O 7x14B 8x13B 8x13O 9x15B 9x18B -.for _s in ${NO_KOI8-R} -NO_UCSFILES+= ${_s}-KOI8-R -.endfor - -ISOLOCSTD= ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 \ - ISO8859-8 ISO8859-9 ISO8859-10 ISO8859-11 ISO8859-13 \ - ISO8859-14 ISO8859-15 ISO8859-16 KOI8-R -# .. and those 22 outputs -ISOSIZESTD= 4x6 \ - 5x7 5x8 \ - 6x9 6x10 6x12 6x13 6x13B 6x13O \ - 7x13 7x13B 7x13O 7x14 7x14B \ - 8x13 8x13B 8x13O \ - 9x15 9x15B 9x18 9x18B \ - 10x20 - -.for _l in ${ISOLOCSTD} -.for _s in ${ISOSIZESTD} -.if empty(NO_UCSFILES:M${_s}-${_l}) -UCSFILES+= ${_s} ${_l} -.endif -.endfor -.endfor - -UCSFILES+= 7x14 JISX0201.1976-0 - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/misc/font-mutt-misc/Makefile b/external/mit/xorg/share/fonts/misc/font-mutt-misc/Makefile deleted file mode 100644 index 4ba82e182..000000000 --- a/external/mit/xorg/share/fonts/misc/font-mutt-misc/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -.include - -FONTSUBDIR= misc -FONTSRCPKG= font-mutt-misc - -.PATH: ${X11SRCDIR.${FONTSRCPKG}} -BDFFILES+= cu-alt12.bdf cu-arabic12.bdf cu-devnag12.bdf cu-lig12.bdf \ - cu-pua12.bdf cu12.bdf cuarabic12.bdf cudevnag12.bdf - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/fonts/misc/font-sony-misc/Makefile b/external/mit/xorg/share/fonts/misc/font-sony-misc/Makefile deleted file mode 100644 index f99aa9ece..000000000 --- a/external/mit/xorg/share/fonts/misc/font-sony-misc/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/01/25 23:11:16 tron Exp $ - -.include - -FONTSUBDIR= misc -FONTSRCPKG= font-sony-misc - -.PATH: ${X11SRCDIR.${FONTSRCPKG}} -BDFFILES+= 12x24.bdf 12x24rk.bdf 8x16.bdf 8x16rk.bdf - -.include "../../Makefile.bdf" - -.include -.include diff --git a/external/mit/xorg/share/man/Makefile b/external/mit/xorg/share/man/Makefile deleted file mode 100644 index 9c9a370ad..000000000 --- a/external/mit/xorg/share/man/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2010/11/18 18:47:36 tron Exp $ - -.include - -SUBDIR= man7 - -.include diff --git a/external/mit/xorg/share/man/man7/Makefile b/external/mit/xorg/share/man/man7/Makefile deleted file mode 100644 index 2fe15b3fd..000000000 --- a/external/mit/xorg/share/man/man7/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/06/05 07:42:54 mrg Exp $ - -.include - -MAN= Consortium.7 Standards.7 X.7 XOrgFoundation.7 XProjectTeam.7 \ - Xsecurity.7 - -.PATH: ${X11SRCDIR.xorg-docs}/man - -.include -.include diff --git a/external/mit/xorg/share/nls/C/Makefile b/external/mit/xorg/share/nls/C/Makefile deleted file mode 100644 index 2ac08633e..000000000 --- a/external/mit/xorg/share/nls/C/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= C - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/Makefile b/external/mit/xorg/share/nls/Makefile deleted file mode 100644 index 506ede55e..000000000 --- a/external/mit/xorg/share/nls/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2014/03/16 23:25:15 mrg Exp $ - -.include - -SUBDIR= \ - C \ - am_ET.UTF-8 armscii-8 \ - el_GR.UTF-8 \ - en_US.UTF-8 \ - georgian-academy georgian-ps \ - ibm-cp1133 iscii-dev isiri-3342 \ - iso8859-1 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 \ - iso8859-7 iso8859-8 iso8859-9 iso8859-9e iso8859-10 iso8859-11 \ - iso8859-13 iso8859-14 iso8859-15 \ - ja ja.JIS ja.SJIS ja_JP.UTF-8 \ - km_KH.UTF-8 ko ko_KR.UTF-8 koi8-c koi8-r koi8-u \ - microsoft-cp1251 microsoft-cp1255 microsoft-cp1256 mulelao-1 \ - nokhchi-1 \ - pt_BR.UTF-8 \ - ru_RU.UTF-8 \ - sr_CS.UTF-8 \ - tatar-cyr th_TH th_TH.UTF-8 tscii-0 \ - vi_VN.tcvn vi_VN.viscii \ - zh_CN zh_CN.UTF-8 zh_CN.gb18030 zh_CN.gbk zh_HK.UTF-8 \ - zh_HK.big5 zh_HK.big5hkscs zh_TW zh_TW.UTF-8 zh_TW.big5 - - -LTFILES=compose.dir locale.alias locale.dir - -FILESDIR= ${X11LIBDIR}/locale - -.for _F in ${LTFILES} -${_F}.lt: ${_F}.pre - ${_MKTARGET_CREATE} - rm -f ${.TARGET} - ( \ - ${CPP} -undef -traditional \ - < ${.ALLSRC} | ${X11TOOL_UNXCOMM} \ - | ${TOOL_SED} -e \ - '/^[^#][^ ]*:/s/://' -e '/^[^#].*[ ].*:/d'; \ - ${CPP} -undef -traditional \ - < ${.ALLSRC} | ${X11TOOL_UNXCOMM} ; \ - ) > ${.TARGET} - -FILES+= ${_F}.lt -FILESNAME_${_F}.lt= ${_F} -CLEANFILES+= ${_F}.lt -.endfor - -realall: ${FILES} - -.PATH: ${X11SRCDIR.X11}/nls - -.include -.include -.include - -# -# build all the silly subdirs -# -build_subdirs: -.for _dir in ${SUBDIR} - mkdir ${.CURDIR}/${_dir} - printf '# $$NetBSD: Makefile,v 1.4 2014/03/16 23:25:15 mrg Exp $$\n\nNLS_SUBDIR= ${_dir}\n\n.include "../Makefile.nls"\n' > ${.CURDIR}/${_dir}/Makefile - -.endfor diff --git a/external/mit/xorg/share/nls/Makefile.nls b/external/mit/xorg/share/nls/Makefile.nls deleted file mode 100644 index b37943108..000000000 --- a/external/mit/xorg/share/nls/Makefile.nls +++ /dev/null @@ -1,30 +0,0 @@ -# $NetBSD: Makefile.nls,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -# install Compose XI18N_OBJS XLC_LOCALE for this subdir - -.include - -FILES= XI18N_OBJS -FILESDIR= ${X11LIBDIR}/locale/${NLS_SUBDIR} - -CTFILES= Compose XLC_LOCALE - -.PATH: ${X11SRCDIR.X11}/nls/${NLS_SUBDIR} - -.for _F in ${CTFILES} -${_F}.ct: ${_F}.pre - ${_MKTARGET_CREATE} - rm -f ${.TARGET} - ${CPP} -undef -traditional \ - < ${.ALLSRC} | ${X11TOOL_UNXCOMM} > ${.TARGET} - -FILES+= ${_F}.ct -FILESDIR_${_F}.ct= ${X11LIBDIR}/locale/${NLS_SUBDIR} -FILESNAME_${_F}.ct= ${_F:S/.pre$//} -CLEANFILES+= ${_F}.ct -.endfor - -realall: ${FILES} - -.include -.include diff --git a/external/mit/xorg/share/nls/am_ET.UTF-8/Makefile b/external/mit/xorg/share/nls/am_ET.UTF-8/Makefile deleted file mode 100644 index 7fa603358..000000000 --- a/external/mit/xorg/share/nls/am_ET.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= am_ET.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/armscii-8/Makefile b/external/mit/xorg/share/nls/armscii-8/Makefile deleted file mode 100644 index 4e57b872e..000000000 --- a/external/mit/xorg/share/nls/armscii-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= armscii-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/el_GR.UTF-8/Makefile b/external/mit/xorg/share/nls/el_GR.UTF-8/Makefile deleted file mode 100644 index ee4a08907..000000000 --- a/external/mit/xorg/share/nls/el_GR.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= el_GR.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/en_US.UTF-8/Makefile b/external/mit/xorg/share/nls/en_US.UTF-8/Makefile deleted file mode 100644 index fff467782..000000000 --- a/external/mit/xorg/share/nls/en_US.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= en_US.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/georgian-academy/Makefile b/external/mit/xorg/share/nls/georgian-academy/Makefile deleted file mode 100644 index c7a4eded1..000000000 --- a/external/mit/xorg/share/nls/georgian-academy/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= georgian-academy - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/georgian-ps/Makefile b/external/mit/xorg/share/nls/georgian-ps/Makefile deleted file mode 100644 index e4570d232..000000000 --- a/external/mit/xorg/share/nls/georgian-ps/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= georgian-ps - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/ibm-cp1133/Makefile b/external/mit/xorg/share/nls/ibm-cp1133/Makefile deleted file mode 100644 index 859377820..000000000 --- a/external/mit/xorg/share/nls/ibm-cp1133/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= ibm-cp1133 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iscii-dev/Makefile b/external/mit/xorg/share/nls/iscii-dev/Makefile deleted file mode 100644 index da651abb0..000000000 --- a/external/mit/xorg/share/nls/iscii-dev/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iscii-dev - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/isiri-3342/Makefile b/external/mit/xorg/share/nls/isiri-3342/Makefile deleted file mode 100644 index ba16b81da..000000000 --- a/external/mit/xorg/share/nls/isiri-3342/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= isiri-3342 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-1/Makefile b/external/mit/xorg/share/nls/iso8859-1/Makefile deleted file mode 100644 index d895ac350..000000000 --- a/external/mit/xorg/share/nls/iso8859-1/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-1 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-10/Makefile b/external/mit/xorg/share/nls/iso8859-10/Makefile deleted file mode 100644 index b92690dca..000000000 --- a/external/mit/xorg/share/nls/iso8859-10/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-10 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-11/Makefile b/external/mit/xorg/share/nls/iso8859-11/Makefile deleted file mode 100644 index 7aaba095b..000000000 --- a/external/mit/xorg/share/nls/iso8859-11/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-11 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-13/Makefile b/external/mit/xorg/share/nls/iso8859-13/Makefile deleted file mode 100644 index 30e481ae3..000000000 --- a/external/mit/xorg/share/nls/iso8859-13/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-13 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-14/Makefile b/external/mit/xorg/share/nls/iso8859-14/Makefile deleted file mode 100644 index 81defd844..000000000 --- a/external/mit/xorg/share/nls/iso8859-14/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-14 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-15/Makefile b/external/mit/xorg/share/nls/iso8859-15/Makefile deleted file mode 100644 index 49f1d93dc..000000000 --- a/external/mit/xorg/share/nls/iso8859-15/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-15 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-2/Makefile b/external/mit/xorg/share/nls/iso8859-2/Makefile deleted file mode 100644 index d6c45bf11..000000000 --- a/external/mit/xorg/share/nls/iso8859-2/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-2 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-3/Makefile b/external/mit/xorg/share/nls/iso8859-3/Makefile deleted file mode 100644 index ac78b9af6..000000000 --- a/external/mit/xorg/share/nls/iso8859-3/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-3 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-4/Makefile b/external/mit/xorg/share/nls/iso8859-4/Makefile deleted file mode 100644 index 3dcc1c8ce..000000000 --- a/external/mit/xorg/share/nls/iso8859-4/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-4 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-5/Makefile b/external/mit/xorg/share/nls/iso8859-5/Makefile deleted file mode 100644 index a8914e64b..000000000 --- a/external/mit/xorg/share/nls/iso8859-5/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-5 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-6/Makefile b/external/mit/xorg/share/nls/iso8859-6/Makefile deleted file mode 100644 index 8e473e2d9..000000000 --- a/external/mit/xorg/share/nls/iso8859-6/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-6 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-7/Makefile b/external/mit/xorg/share/nls/iso8859-7/Makefile deleted file mode 100644 index b249c495f..000000000 --- a/external/mit/xorg/share/nls/iso8859-7/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-7 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-8/Makefile b/external/mit/xorg/share/nls/iso8859-8/Makefile deleted file mode 100644 index 07714cd1f..000000000 --- a/external/mit/xorg/share/nls/iso8859-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-9/Makefile b/external/mit/xorg/share/nls/iso8859-9/Makefile deleted file mode 100644 index 6c1b0b970..000000000 --- a/external/mit/xorg/share/nls/iso8859-9/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-9 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/iso8859-9e/Makefile b/external/mit/xorg/share/nls/iso8859-9e/Makefile deleted file mode 100644 index f5dc60277..000000000 --- a/external/mit/xorg/share/nls/iso8859-9e/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= iso8859-9e - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/ja.JIS/Makefile b/external/mit/xorg/share/nls/ja.JIS/Makefile deleted file mode 100644 index df7b2cc53..000000000 --- a/external/mit/xorg/share/nls/ja.JIS/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= ja.JIS - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/ja.SJIS/Makefile b/external/mit/xorg/share/nls/ja.SJIS/Makefile deleted file mode 100644 index c563a3137..000000000 --- a/external/mit/xorg/share/nls/ja.SJIS/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= ja.SJIS - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/ja/Makefile b/external/mit/xorg/share/nls/ja/Makefile deleted file mode 100644 index 53c9e0196..000000000 --- a/external/mit/xorg/share/nls/ja/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= ja - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/ja_JP.UTF-8/Makefile b/external/mit/xorg/share/nls/ja_JP.UTF-8/Makefile deleted file mode 100644 index 9d360d94f..000000000 --- a/external/mit/xorg/share/nls/ja_JP.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= ja_JP.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/km_KH.UTF-8/Makefile b/external/mit/xorg/share/nls/km_KH.UTF-8/Makefile deleted file mode 100644 index 2d9cffef9..000000000 --- a/external/mit/xorg/share/nls/km_KH.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/03/16 23:25:15 mrg Exp $ - -NLS_SUBDIR= km_KH.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/ko/Makefile b/external/mit/xorg/share/nls/ko/Makefile deleted file mode 100644 index 3eebb8102..000000000 --- a/external/mit/xorg/share/nls/ko/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= ko - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/ko_KR.UTF-8/Makefile b/external/mit/xorg/share/nls/ko_KR.UTF-8/Makefile deleted file mode 100644 index d5bfa619a..000000000 --- a/external/mit/xorg/share/nls/ko_KR.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= ko_KR.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/koi8-c/Makefile b/external/mit/xorg/share/nls/koi8-c/Makefile deleted file mode 100644 index 299294b9e..000000000 --- a/external/mit/xorg/share/nls/koi8-c/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= koi8-c - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/koi8-r/Makefile b/external/mit/xorg/share/nls/koi8-r/Makefile deleted file mode 100644 index ae51f7407..000000000 --- a/external/mit/xorg/share/nls/koi8-r/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= koi8-r - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/koi8-u/Makefile b/external/mit/xorg/share/nls/koi8-u/Makefile deleted file mode 100644 index e577d651a..000000000 --- a/external/mit/xorg/share/nls/koi8-u/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= koi8-u - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/microsoft-cp1251/Makefile b/external/mit/xorg/share/nls/microsoft-cp1251/Makefile deleted file mode 100644 index a4b56d8cc..000000000 --- a/external/mit/xorg/share/nls/microsoft-cp1251/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= microsoft-cp1251 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/microsoft-cp1255/Makefile b/external/mit/xorg/share/nls/microsoft-cp1255/Makefile deleted file mode 100644 index e9e6e618c..000000000 --- a/external/mit/xorg/share/nls/microsoft-cp1255/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= microsoft-cp1255 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/microsoft-cp1256/Makefile b/external/mit/xorg/share/nls/microsoft-cp1256/Makefile deleted file mode 100644 index 7687b8d56..000000000 --- a/external/mit/xorg/share/nls/microsoft-cp1256/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= microsoft-cp1256 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/mulelao-1/Makefile b/external/mit/xorg/share/nls/mulelao-1/Makefile deleted file mode 100644 index b2cb9f6dd..000000000 --- a/external/mit/xorg/share/nls/mulelao-1/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= mulelao-1 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/nokhchi-1/Makefile b/external/mit/xorg/share/nls/nokhchi-1/Makefile deleted file mode 100644 index e515416f0..000000000 --- a/external/mit/xorg/share/nls/nokhchi-1/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= nokhchi-1 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/pt_BR.UTF-8/Makefile b/external/mit/xorg/share/nls/pt_BR.UTF-8/Makefile deleted file mode 100644 index fef6e7080..000000000 --- a/external/mit/xorg/share/nls/pt_BR.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= pt_BR.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/ru_RU.UTF-8/Makefile b/external/mit/xorg/share/nls/ru_RU.UTF-8/Makefile deleted file mode 100644 index 147b9cdb0..000000000 --- a/external/mit/xorg/share/nls/ru_RU.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/03/16 23:25:15 mrg Exp $ - -NLS_SUBDIR= ru_RU.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/sr_CS.UTF-8/Makefile b/external/mit/xorg/share/nls/sr_CS.UTF-8/Makefile deleted file mode 100644 index fbfb19307..000000000 --- a/external/mit/xorg/share/nls/sr_CS.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/03/16 23:25:15 mrg Exp $ - -NLS_SUBDIR= sr_CS.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/tatar-cyr/Makefile b/external/mit/xorg/share/nls/tatar-cyr/Makefile deleted file mode 100644 index 93186efac..000000000 --- a/external/mit/xorg/share/nls/tatar-cyr/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= tatar-cyr - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/th_TH.UTF-8/Makefile b/external/mit/xorg/share/nls/th_TH.UTF-8/Makefile deleted file mode 100644 index f68361f58..000000000 --- a/external/mit/xorg/share/nls/th_TH.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= th_TH.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/th_TH/Makefile b/external/mit/xorg/share/nls/th_TH/Makefile deleted file mode 100644 index 9d1474b38..000000000 --- a/external/mit/xorg/share/nls/th_TH/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= th_TH - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/tscii-0/Makefile b/external/mit/xorg/share/nls/tscii-0/Makefile deleted file mode 100644 index 96b9affff..000000000 --- a/external/mit/xorg/share/nls/tscii-0/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= tscii-0 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/vi_VN.tcvn/Makefile b/external/mit/xorg/share/nls/vi_VN.tcvn/Makefile deleted file mode 100644 index f99309e58..000000000 --- a/external/mit/xorg/share/nls/vi_VN.tcvn/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= vi_VN.tcvn - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/vi_VN.viscii/Makefile b/external/mit/xorg/share/nls/vi_VN.viscii/Makefile deleted file mode 100644 index b98a3cf10..000000000 --- a/external/mit/xorg/share/nls/vi_VN.viscii/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= vi_VN.viscii - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/zh_CN.UTF-8/Makefile b/external/mit/xorg/share/nls/zh_CN.UTF-8/Makefile deleted file mode 100644 index f9de74796..000000000 --- a/external/mit/xorg/share/nls/zh_CN.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= zh_CN.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/zh_CN.gb18030/Makefile b/external/mit/xorg/share/nls/zh_CN.gb18030/Makefile deleted file mode 100644 index 436bd4044..000000000 --- a/external/mit/xorg/share/nls/zh_CN.gb18030/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= zh_CN.gb18030 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/zh_CN.gbk/Makefile b/external/mit/xorg/share/nls/zh_CN.gbk/Makefile deleted file mode 100644 index e0f1f2c56..000000000 --- a/external/mit/xorg/share/nls/zh_CN.gbk/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= zh_CN.gbk - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/zh_CN/Makefile b/external/mit/xorg/share/nls/zh_CN/Makefile deleted file mode 100644 index 46df7e0ef..000000000 --- a/external/mit/xorg/share/nls/zh_CN/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= zh_CN - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/zh_HK.UTF-8/Makefile b/external/mit/xorg/share/nls/zh_HK.UTF-8/Makefile deleted file mode 100644 index c8d5ed471..000000000 --- a/external/mit/xorg/share/nls/zh_HK.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= zh_HK.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/zh_HK.big5/Makefile b/external/mit/xorg/share/nls/zh_HK.big5/Makefile deleted file mode 100644 index 65ebbe475..000000000 --- a/external/mit/xorg/share/nls/zh_HK.big5/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= zh_HK.big5 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/zh_HK.big5hkscs/Makefile b/external/mit/xorg/share/nls/zh_HK.big5hkscs/Makefile deleted file mode 100644 index 95351cbe6..000000000 --- a/external/mit/xorg/share/nls/zh_HK.big5hkscs/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= zh_HK.big5hkscs - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/zh_TW.UTF-8/Makefile b/external/mit/xorg/share/nls/zh_TW.UTF-8/Makefile deleted file mode 100644 index e7c272276..000000000 --- a/external/mit/xorg/share/nls/zh_TW.UTF-8/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= zh_TW.UTF-8 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/zh_TW.big5/Makefile b/external/mit/xorg/share/nls/zh_TW.big5/Makefile deleted file mode 100644 index bf20ba474..000000000 --- a/external/mit/xorg/share/nls/zh_TW.big5/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= zh_TW.big5 - -.include "../Makefile.nls" diff --git a/external/mit/xorg/share/nls/zh_TW/Makefile b/external/mit/xorg/share/nls/zh_TW/Makefile deleted file mode 100644 index 34c8f9b09..000000000 --- a/external/mit/xorg/share/nls/zh_TW/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -NLS_SUBDIR= zh_TW - -.include "../Makefile.nls" diff --git a/external/mit/xorg/tools/Makefile b/external/mit/xorg/tools/Makefile deleted file mode 100644 index 83c5e6fd6..000000000 --- a/external/mit/xorg/tools/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2015/07/23 07:36:54 mrg Exp $ - -.include - -# These are used by the 'includes' phase, -# and can't assume that ${DESTDIR}${X11INCDIR} has been populated. - -#SUBDIR+= makestrs .WAIT - -# The rest of the tools can rely upon 'includes' - -# makekeys is now done src/tools -SUBDIR+=bdftopcf fc-cache ucs2any -SUBDIR+=mkfontscale .WAIT xkbcomp - -.if defined(__MINIX) -SUBDIR+=makekeys -.endif # defined(__MINIX) - -.include -.include diff --git a/external/mit/xorg/tools/bdftopcf/Makefile b/external/mit/xorg/tools/bdftopcf/Makefile deleted file mode 100644 index f2a12854c..000000000 --- a/external/mit/xorg/tools/bdftopcf/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2013/05/31 05:24:50 mrg Exp $ - -NOMAN= 1 - -.include - -HOSTPROG= bdftopcf -.PATH: ${X11SRCDIR.bdftopcf} - -FREETYPE= ${X11SRCDIR.freetype} - -SRCS= bdftopcf.c - -HOST_CPPFLAGS+= -I${DESTDIR}${X11INCDIR} \ - -I${DESTDIR}${X11INCDIR} \ - -I${DESTDIR}${X11INCDIR}/X11/fonts \ - -I${DESTDIR}${X11INCDIR}/freetype2 \ - -I${X11SRCDIR.Xfont}/src/stubs \ - -DBDFFORMAT -DPCFFORMAT -DSNFFORMAT -DX_GZIP_FONT_COMPRESSION \ - -DFONT_ENCODINGS_DIRECTORY=\"${X11FONTDIR}/encodings/encodings.dir\" \ - -DPACKAGE_STRING="\"NetBSD tool bdftopcf 1.0.4\"" - -.PATH: ${X11SRCDIR.Xfont}/src/bitmap -SRCS+= bdfread.c bdfutils.c bitmap.c bitmaputil.c fontink.c \ - pcfread.c pcfwrite.c - -.PATH: ${X11SRCDIR.Xfont}/src/fontfile -SRCS+= bufio.c decompress.c defaults.c fileio.c filewr.c gunzip.c - -.PATH: ${X11SRCDIR.Xfont}/src/util -SRCS+= atom.c fontaccel.c private.c utilbitmap.c - -LDADD+= -lz - -.include -.include diff --git a/external/mit/xorg/tools/bdftopcf/Makefile.bdftopcf b/external/mit/xorg/tools/bdftopcf/Makefile.bdftopcf deleted file mode 100644 index 2d7a5293f..000000000 --- a/external/mit/xorg/tools/bdftopcf/Makefile.bdftopcf +++ /dev/null @@ -1,7 +0,0 @@ -# $NetBSD: Makefile.bdftopcf,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ - -BDFTOPCFDIR!= cd ${NETBSDSRCDIR}/external/mit/xorg/tools/bdftopcf && ${PRINTOBJDIR} -BDFTOPCF= ${BDFTOPCFDIR}/bdftopcf - -${BDFTOPCF}: - (cd ${NETBSDSRCDIR}/external/mit/xorg/tools/bdftopcf && ${MAKE}) diff --git a/external/mit/xorg/tools/getlibvers b/external/mit/xorg/tools/getlibvers deleted file mode 100755 index c022083ed..000000000 --- a/external/mit/xorg/tools/getlibvers +++ /dev/null @@ -1,29 +0,0 @@ -#! /bin/sh - -list='expat fontconfig freetype libFS libICE libSM libX11 libXScrnSaver libXTrap libXau libXcomposite libXcursor libXdamage libXdmcp libXevie libXext libXfixes libXfont libXft libXi libXinerama libXmu libXp libXpm libXrandr libXrender libXres libXt libXtst libXv libXvMC libXxf86dga libXxf86misc libXxf86vm libdrm libfontenc libxkbfile libxkbui' - -DISTFILES=${DISTFILES-/usr/pkgsrc/distfiles} - -for dist in $list; do - updist=$(echo $dist | tr a-z A-Z) - tarball=$(cd ${DISTFILES}; echo ${dist}-*tar*) - tarver=${tarball#${dist}-} - ext=bz2 - case $tarball in - *.tar.bz2) - ver=${tarver%.tar.bz2} - ;; - *.tar.gz) - ext=gz - ver=${tarver%.tar.gz} - ;; - *) - ver=x - echo "dunno what $dist is -- $tarball" 1>&2 - ;; - esac - if [ "$ver" != x ]; then - echo "${updist}_VERSION = ${ver}" - echo "${updist}_EXT = ${ext}" - fi -done diff --git a/external/mit/xorg/tools/makekeys/Makefile b/external/mit/xorg/tools/makekeys/Makefile deleted file mode 100644 index a7f086ce7..000000000 --- a/external/mit/xorg/tools/makekeys/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2015/06/26 02:43:26 matt Exp $ - -NOMAN= 1 - -.include - -.PATH: ${X11SRCDIR.X11}/src/util - -PROG?= makekeys -SRCS= makekeys.c -.if !make(obj) && !exists(${DESTDIR}${X11INCDIR}/X.h) -CLEANFILES+= X11 -CPPFLAGS+= -I. -XPINCS= X.h Xarch.h Xos.h Xosdefs.h keysymdef.h -X11INCS= Xlib.h Xresource.h -CLEANFILES+= ${XPINCS} ${X11INCS} Xfuncproto.h -.if !make(clean) && !make(cleandir) -.BEGIN: - @rm -f ${.OBJDIR}/X11 && ln -s . X11 -.for i in ${XPINCS} - @rm -f $i && ln -s ${X11SRCDIR.xproto}/$i . -.endfor -.for i in ${X11INCS} - @rm -f $i && ln -s ${X11SRCDIR.X11}/include/X11/$i . -.endfor -.endif - -Xfuncproto.h: ${X11SRCDIR.xproto}/Xfuncproto.h.in - ${TOOL_SED} -e 's/#undef NARROWPROTO/#define NARROWPROTO/' \ - -e 's/#undef FUNCPROTO/#define FUNCPROTO 15/' \ - < ${.ALLSRC} > ${.TARGET} - -makekeys.lo makekeys.o makekeys.d: Xfuncproto.h - -.else -CPPFLAGS+= -I${DESTDIR}${X11INCDIR} -.endif - -.include -.include diff --git a/external/mit/xorg/tools/makekeys/Makefile.makekeys b/external/mit/xorg/tools/makekeys/Makefile.makekeys deleted file mode 100644 index 9345431c6..000000000 --- a/external/mit/xorg/tools/makekeys/Makefile.makekeys +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile.makekeys,v 1.3 2015/06/24 22:20:25 matt Exp $ - -DPSRCS+= ks_tables.h -CLEANFILES+= ks_tables.h - -KSDEF= ${DESTDIR}${X11INCDIR}/X11/keysymdef.h - -ks_tables.h: ${KSDEF} - ${_MKTARGET_CREATE} - rm -f ${.TARGET} - ${TOOL_MAKEKEYS} ${KSDEF} > ${.TARGET} diff --git a/external/mit/xorg/tools/makestrs/Makefile.makestrs b/external/mit/xorg/tools/makestrs/Makefile.makestrs deleted file mode 100644 index 2b225461b..000000000 --- a/external/mit/xorg/tools/makestrs/Makefile.makestrs +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile.makestrs,v 1.2 2015/06/24 22:20:26 matt Exp $ - -MAKESTRS= ${TOOL_MAKESTRS} diff --git a/external/mit/xorg/tools/ucs2any/Makefile b/external/mit/xorg/tools/ucs2any/Makefile deleted file mode 100644 index c974f4bea..000000000 --- a/external/mit/xorg/tools/ucs2any/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2008/09/13 21:37:07 hubertf Exp $ - -NOMAN= 1 - -.include - -HOSTPROG= ucs2any -.PATH: ${X11SRCDIR.font-util} - -HOST_CPPFLAGS= -DDARWIN_NO_CARBON - -.include -.include diff --git a/external/mit/xorg/tools/ucs2any/Makefile.ucs2any b/external/mit/xorg/tools/ucs2any/Makefile.ucs2any deleted file mode 100644 index 5eebd0327..000000000 --- a/external/mit/xorg/tools/ucs2any/Makefile.ucs2any +++ /dev/null @@ -1,7 +0,0 @@ -# $NetBSD: Makefile.ucs2any,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -UCS2ANYDIR!= cd ${NETBSDSRCDIR}/external/mit/xorg/tools/ucs2any && ${PRINTOBJDIR} -UCS2ANY= ${UCS2ANYDIR}/ucs2any - -${UCS2ANY}: - (cd ${NETBSDSRCDIR}/external/mit/xorg/tools/ucs2any && ${MAKE}) diff --git a/external/mit/xorg/tools/xkbcomp/Makefile b/external/mit/xorg/tools/xkbcomp/Makefile deleted file mode 100644 index fcd2a3839..000000000 --- a/external/mit/xorg/tools/xkbcomp/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2013/05/31 23:43:05 mrg Exp $ - -NOMAN= 1 - -.include - -HOSTPROG= xkbcomp -.PATH: ${X11SRCDIR.xkbcomp} -.PATH: ${X11SRCDIR.X11}/src - -SRCS= xkbcomp.c xkbscan.c expr.c vmod.c indicators.c misc.c \ - keymap.c keycodes.c keytypes.c compat.c action.c alias.c \ - symbols.c geometry.c xkbpath.c listing.c \ - xkbparse.y parseutils.c utils.c - -SRCS+= xkbcomp-stubs.c xkbcomp-KeyBind.c - -.PATH: ${X11SRCDIR.xkbfile}/src -SRCS+= xkbatom.c xkberrs.c xkbout.c xkmread.c xkbtext.c \ - cout.c xkmout.c - -SRCS+= xkbfile-xkbmisc.c - -.PATH: ${X11SRCDIR.X11}/src/xkb -SRCS+= KeysymStr.c StrKeysym.c Quarks.c Xrm.c -SRCS+= XKB.c XKBAlloc.c XKBGAlloc.c XKBMAlloc.c XKBMisc.c \ - XKBGeom.c XKBRdBuf.c - -HOST_CPPFLAGS+= -I${DESTDIR}${X11INCDIR} \ - -I${DESTDIR}${X11INCDIR}/X11 \ - -I. \ - -I${X11SRCDIR.X11}/src \ - -I${X11SRCDIR.X11}/src/xkb \ - -I${X11SRCDIR.xkbfile}/include/X11/extensions \ - -I${X11SRCDIR.${HOSTPROG}} \ - -DDFLT_XKB_CONFIG_ROOT=\"${X11LIBDIR}/xkb\" -DXKB \ - -DHAVE_STRCASECMP -DHAVE_STRDUP \ - -DPACKAGE_STRING="\"NetBSD tool xkbcomp 1.2.4\"" \ - -DPACKAGE_VERSION="\"1.2.4\"" - - -.include "${NETBSDSRCDIR}/external/mit/xorg/tools/makekeys/Makefile.makekeys" - -.include -.include diff --git a/external/mit/xorg/tools/xkbcomp/Makefile.xkbcomp b/external/mit/xorg/tools/xkbcomp/Makefile.xkbcomp deleted file mode 100644 index 806db94db..000000000 --- a/external/mit/xorg/tools/xkbcomp/Makefile.xkbcomp +++ /dev/null @@ -1,7 +0,0 @@ -# $NetBSD: Makefile.xkbcomp,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ - -XKBCOMPDIR!= cd ${NETBSDSRCDIR}/external/mit/xorg/tools/xkbcomp && ${PRINTOBJDIR} -XKBCOMP= ${XKBCOMPDIR}/xkbcomp - -${XKBCOMP}: - (cd ${NETBSDSRCDIR}/external/mit/xorg/tools/xkbcomp && ${MAKE}) diff --git a/external/mit/xorg/tools/xkbcomp/xkbcomp-KeyBind.c b/external/mit/xorg/tools/xkbcomp/xkbcomp-KeyBind.c deleted file mode 100644 index bb4d28277..000000000 --- a/external/mit/xorg/tools/xkbcomp/xkbcomp-KeyBind.c +++ /dev/null @@ -1,756 +0,0 @@ -/* $NetBSD: xkbcomp-KeyBind.c,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $ */ - -/* $Xorg: KeyBind.c,v 1.4 2001/02/09 02:03:34 xorgcvs Exp $ */ -/* - -Copyright 1985, 1987, 1998 The Open Group - -Permission to use, copy, modify, distribute, and sell this software and its -documentation for any purpose is hereby granted without fee, provided that -the above copyright notice appear in all copies and that both that -copyright notice and this permission notice appear in supporting -documentation. - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of The Open Group shall not be -used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization from The Open Group. - -*/ -/* $XFree86: xc/lib/X11/KeyBind.c,v 1.5 2001/12/14 19:54:02 dawes Exp $ */ - -/* Beware, here be monsters (still under construction... - JG */ - -#define NEED_EVENTS -#include -#include -#define XK_MISCELLANY -#define XK_LATIN1 -#define XK_LATIN2 -#define XK_LATIN3 -#define XK_LATIN4 -#define XK_CYRILLIC -#define XK_GREEK -#define XK_ARMENIAN -#define XK_XKB_KEYS -#include -#include - -#include "XKBlib.h" - -#ifdef USE_OWN_COMPOSE -#include "imComp.h" - -#endif - -#ifdef XKB -#define XKeycodeToKeysym _XKeycodeToKeysym -#define XKeysymToKeycode _XKeysymToKeycode -#define XLookupKeysym _XLookupKeysym -#define XRefreshKeyboardMapping _XRefreshKeyboardMapping -#define XLookupString _XLookupString -/* XKBBind.c */ -#else -#define XkbKeysymToModifiers _XKeysymToModifiers -#endif - -#define AllMods (ShiftMask|LockMask|ControlMask| \ - Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask) - -#if 0 /* { */ - -static void ComputeMaskFromKeytrans(); -int _XKeyInitialize(); - -struct _XKeytrans { - struct _XKeytrans *next;/* next on list */ - char *string; /* string to return when the time comes */ - int len; /* length of string (since NULL is legit)*/ - KeySym key; /* keysym rebound */ - unsigned int state; /* modifier state */ - KeySym *modifiers; /* modifier keysyms you want */ - int mlen; /* length of modifier list */ -}; - -static KeySym -#if NeedFunctionPrototypes -KeyCodetoKeySym(register Display *dpy, KeyCode keycode, int col) -#else -KeyCodetoKeySym(dpy, keycode, col) - register Display *dpy; - KeyCode keycode; - int col; -#endif -{ - register int per = dpy->keysyms_per_keycode; - register KeySym *syms; - KeySym lsym, usym; - - if ((col < 0) || ((col >= per) && (col > 3)) || - ((int)keycode < dpy->min_keycode) || ((int)keycode > dpy->max_keycode)) - return NoSymbol; - - syms = &dpy->keysyms[(keycode - dpy->min_keycode) * per]; - if (col < 4) { - if (col > 1) { - while ((per > 2) && (syms[per - 1] == NoSymbol)) - per--; - if (per < 3) - col -= 2; - } - if ((per <= (col|1)) || (syms[col|1] == NoSymbol)) { - XConvertCase(syms[col&~1], &lsym, &usym); - if (!(col & 1)) - return lsym; - else if (usym == lsym) - return NoSymbol; - else - return usym; - } - } - return syms[col]; -} - -#if NeedFunctionPrototypes -KeySym -XKeycodeToKeysym(Display *dpy, -#if NeedWidePrototypes - unsigned int kc, -#else - KeyCode kc, -#endif - int col) -#else -KeySym -XKeycodeToKeysym(dpy, kc, col) - Display *dpy; - KeyCode kc; - int col; -#endif -{ - if ((! dpy->keysyms) && (! _XKeyInitialize(dpy))) - return NoSymbol; - return KeyCodetoKeySym(dpy, kc, col); -} - -KeyCode -XKeysymToKeycode(dpy, ks) - Display *dpy; - KeySym ks; -{ - register int i, j; - - if ((! dpy->keysyms) && (! _XKeyInitialize(dpy))) - return (KeyCode) 0; - for (j = 0; j < dpy->keysyms_per_keycode; j++) { - for (i = dpy->min_keycode; i <= dpy->max_keycode; i++) { - if (KeyCodetoKeySym(dpy, (KeyCode) i, j) == ks) - return i; - } - } - return 0; -} - -KeySym -XLookupKeysym(event, col) - register XKeyEvent *event; - int col; -{ - if ((! event->display->keysyms) && (! _XKeyInitialize(event->display))) - return NoSymbol; - return KeyCodetoKeySym(event->display, event->keycode, col); -} - -static void -ResetModMap(dpy) - Display *dpy; -{ - register XModifierKeymap *map; - register int i, j, n; - KeySym sym; - register struct _XKeytrans *p; - - map = dpy->modifiermap; - /* If any Lock key contains Caps_Lock, then interpret as Caps_Lock, - * else if any contains Shift_Lock, then interpret as Shift_Lock, - * else ignore Lock altogether. - */ - dpy->lock_meaning = NoSymbol; - /* Lock modifiers are in the second row of the matrix */ - n = 2 * map->max_keypermod; - for (i = map->max_keypermod; i < n; i++) { - for (j = 0; j < dpy->keysyms_per_keycode; j++) { - sym = KeyCodetoKeySym(dpy, map->modifiermap[i], j); - if (sym == XK_Caps_Lock) { - dpy->lock_meaning = XK_Caps_Lock; - break; - } else if (sym == XK_Shift_Lock) { - dpy->lock_meaning = XK_Shift_Lock; - } - else if (sym == XK_ISO_Lock) { - dpy->lock_meaning = XK_Caps_Lock; - break; - } - } - } - /* Now find any Mod modifier acting as the Group or Numlock modifier */ - dpy->mode_switch = 0; - dpy->num_lock = 0; - n *= 4; - for (i = 3*map->max_keypermod; i < n; i++) { - for (j = 0; j < dpy->keysyms_per_keycode; j++) { - sym = KeyCodetoKeySym(dpy, map->modifiermap[i], j); - if (sym == XK_Mode_switch) - dpy->mode_switch |= 1 << (i / map->max_keypermod); - if (sym == XK_Num_Lock) - dpy->num_lock |= 1 << (i / map->max_keypermod); - } - } - for (p = dpy->key_bindings; p; p = p->next) - ComputeMaskFromKeytrans(dpy, p); -} - -static int -InitModMap(dpy) - Display *dpy; -{ - register XModifierKeymap *map; - - if (! (map = XGetModifierMapping(dpy))) - return 0; - LockDisplay(dpy); - if (dpy->modifiermap) - XFreeModifiermap(dpy->modifiermap); - dpy->modifiermap = map; - dpy->free_funcs->modifiermap = XFreeModifiermap; - if (dpy->keysyms) - ResetModMap(dpy); - UnlockDisplay(dpy); - return 1; -} - -int -XRefreshKeyboardMapping(event) - register XMappingEvent *event; -{ - - if(event->request == MappingKeyboard) { - /* XXX should really only refresh what is necessary - * for now, make initialize test fail - */ - LockDisplay(event->display); - if (event->display->keysyms) { - Xfree ((char *)event->display->keysyms); - event->display->keysyms = NULL; - } - UnlockDisplay(event->display); - } - if(event->request == MappingModifier) { - LockDisplay(event->display); - if (event->display->modifiermap) { - XFreeModifiermap(event->display->modifiermap); - event->display->modifiermap = NULL; - } - UnlockDisplay(event->display); - /* go ahead and get it now, since initialize test may not fail */ - if (event->display->keysyms) - (void) InitModMap(event->display); - } - return 1; -} - -int -_XKeyInitialize(dpy) - Display *dpy; -{ - int per, n; - KeySym *keysyms; - - /* - * lets go get the keysyms from the server. - */ - if (!dpy->keysyms) { - n = dpy->max_keycode - dpy->min_keycode + 1; - keysyms = XGetKeyboardMapping (dpy, (KeyCode) dpy->min_keycode, - n, &per); - /* keysyms may be NULL */ - if (! keysyms) return 0; - - LockDisplay(dpy); - if (dpy->keysyms) - Xfree ((char *)dpy->keysyms); - dpy->keysyms = keysyms; - dpy->keysyms_per_keycode = per; - if (dpy->modifiermap) - ResetModMap(dpy); - UnlockDisplay(dpy); - } - if (!dpy->modifiermap) - return InitModMap(dpy); - return 1; -} - -#endif /* } */ - -void -XConvertCase(sym, lower, upper) - register KeySym sym; - KeySym *lower; - KeySym *upper; -{ - *lower = sym; - *upper = sym; - switch(sym >> 8) { - case 0: /* Latin 1 */ - if ((sym >= XK_A) && (sym <= XK_Z)) - *lower += (XK_a - XK_A); - else if ((sym >= XK_a) && (sym <= XK_z)) - *upper -= (XK_a - XK_A); - else if ((sym >= XK_Agrave) && (sym <= XK_Odiaeresis)) - *lower += (XK_agrave - XK_Agrave); - else if ((sym >= XK_agrave) && (sym <= XK_odiaeresis)) - *upper -= (XK_agrave - XK_Agrave); - else if ((sym >= XK_Ooblique) && (sym <= XK_Thorn)) - *lower += (XK_oslash - XK_Ooblique); - else if ((sym >= XK_oslash) && (sym <= XK_thorn)) - *upper -= (XK_oslash - XK_Ooblique); - break; - case 1: /* Latin 2 */ - /* Assume the KeySym is a legal value (ignore discontinuities) */ - if (sym == XK_Aogonek) - *lower = XK_aogonek; - else if (sym >= XK_Lstroke && sym <= XK_Sacute) - *lower += (XK_lstroke - XK_Lstroke); - else if (sym >= XK_Scaron && sym <= XK_Zacute) - *lower += (XK_scaron - XK_Scaron); - else if (sym >= XK_Zcaron && sym <= XK_Zabovedot) - *lower += (XK_zcaron - XK_Zcaron); - else if (sym == XK_aogonek) - *upper = XK_Aogonek; - else if (sym >= XK_lstroke && sym <= XK_sacute) - *upper -= (XK_lstroke - XK_Lstroke); - else if (sym >= XK_scaron && sym <= XK_zacute) - *upper -= (XK_scaron - XK_Scaron); - else if (sym >= XK_zcaron && sym <= XK_zabovedot) - *upper -= (XK_zcaron - XK_Zcaron); - else if (sym >= XK_Racute && sym <= XK_Tcedilla) - *lower += (XK_racute - XK_Racute); - else if (sym >= XK_racute && sym <= XK_tcedilla) - *upper -= (XK_racute - XK_Racute); - break; - case 2: /* Latin 3 */ - /* Assume the KeySym is a legal value (ignore discontinuities) */ - if (sym >= XK_Hstroke && sym <= XK_Hcircumflex) - *lower += (XK_hstroke - XK_Hstroke); - else if (sym >= XK_Gbreve && sym <= XK_Jcircumflex) - *lower += (XK_gbreve - XK_Gbreve); - else if (sym >= XK_hstroke && sym <= XK_hcircumflex) - *upper -= (XK_hstroke - XK_Hstroke); - else if (sym >= XK_gbreve && sym <= XK_jcircumflex) - *upper -= (XK_gbreve - XK_Gbreve); - else if (sym >= XK_Cabovedot && sym <= XK_Scircumflex) - *lower += (XK_cabovedot - XK_Cabovedot); - else if (sym >= XK_cabovedot && sym <= XK_scircumflex) - *upper -= (XK_cabovedot - XK_Cabovedot); - break; - case 3: /* Latin 4 */ - /* Assume the KeySym is a legal value (ignore discontinuities) */ - if (sym >= XK_Rcedilla && sym <= XK_Tslash) - *lower += (XK_rcedilla - XK_Rcedilla); - else if (sym >= XK_rcedilla && sym <= XK_tslash) - *upper -= (XK_rcedilla - XK_Rcedilla); - else if (sym == XK_ENG) - *lower = XK_eng; - else if (sym == XK_eng) - *upper = XK_ENG; - else if (sym >= XK_Amacron && sym <= XK_Umacron) - *lower += (XK_amacron - XK_Amacron); - else if (sym >= XK_amacron && sym <= XK_umacron) - *upper -= (XK_amacron - XK_Amacron); - break; - case 6: /* Cyrillic */ - /* Assume the KeySym is a legal value (ignore discontinuities) */ - if (sym >= XK_Serbian_DJE && sym <= XK_Serbian_DZE) - *lower -= (XK_Serbian_DJE - XK_Serbian_dje); - else if (sym >= XK_Serbian_dje && sym <= XK_Serbian_dze) - *upper += (XK_Serbian_DJE - XK_Serbian_dje); - else if (sym >= XK_Cyrillic_YU && sym <= XK_Cyrillic_HARDSIGN) - *lower -= (XK_Cyrillic_YU - XK_Cyrillic_yu); - else if (sym >= XK_Cyrillic_yu && sym <= XK_Cyrillic_hardsign) - *upper += (XK_Cyrillic_YU - XK_Cyrillic_yu); - break; - case 7: /* Greek */ - /* Assume the KeySym is a legal value (ignore discontinuities) */ - if (sym >= XK_Greek_ALPHAaccent && sym <= XK_Greek_OMEGAaccent) - *lower += (XK_Greek_alphaaccent - XK_Greek_ALPHAaccent); - else if (sym >= XK_Greek_alphaaccent && sym <= XK_Greek_omegaaccent && - sym != XK_Greek_iotaaccentdieresis && - sym != XK_Greek_upsilonaccentdieresis) - *upper -= (XK_Greek_alphaaccent - XK_Greek_ALPHAaccent); - else if (sym >= XK_Greek_ALPHA && sym <= XK_Greek_OMEGA) - *lower += (XK_Greek_alpha - XK_Greek_ALPHA); - else if (sym >= XK_Greek_alpha && sym <= XK_Greek_omega && - sym != XK_Greek_finalsmallsigma) - *upper -= (XK_Greek_alpha - XK_Greek_ALPHA); - break; - case 0x14: /* Armenian */ - if (sym >= XK_Armenian_AYB && sym <= XK_Armenian_fe) { - *lower = sym | 1; - *upper = sym & ~1; - } - break; - } -} - -#if __disabled_for_imakeicide__ /* { */ - -int -#if NeedFunctionPrototypes -_XTranslateKey( register Display *dpy, - KeyCode keycode, - register unsigned int modifiers, - unsigned int *modifiers_return, - KeySym *keysym_return) -#else -_XTranslateKey(dpy, keycode, modifiers, modifiers_return, keysym_return) - register Display *dpy; - KeyCode keycode; - register unsigned int modifiers; - unsigned int *modifiers_return; - KeySym *keysym_return; -#endif -{ - int per; - register KeySym *syms; - KeySym sym, lsym, usym; - - if ((! dpy->keysyms) && (! _XKeyInitialize(dpy))) - return 0; - *modifiers_return = ((ShiftMask|LockMask) - | dpy->mode_switch | dpy->num_lock); - if (((int)keycode < dpy->min_keycode) || ((int)keycode > dpy->max_keycode)) - { - *keysym_return = NoSymbol; - return 1; - } - per = dpy->keysyms_per_keycode; - syms = &dpy->keysyms[(keycode - dpy->min_keycode) * per]; - while ((per > 2) && (syms[per - 1] == NoSymbol)) - per--; - if ((per > 2) && (modifiers & dpy->mode_switch)) { - syms += 2; - per -= 2; - } - if ((modifiers & dpy->num_lock) && - (per > 1 && (IsKeypadKey(syms[1]) || IsPrivateKeypadKey(syms[1])))) { - if ((modifiers & ShiftMask) || - ((modifiers & LockMask) && (dpy->lock_meaning == XK_Shift_Lock))) - *keysym_return = syms[0]; - else - *keysym_return = syms[1]; - } else if (!(modifiers & ShiftMask) && - (!(modifiers & LockMask) || (dpy->lock_meaning == NoSymbol))) { - if ((per == 1) || (syms[1] == NoSymbol)) - XConvertCase(syms[0], keysym_return, &usym); - else - *keysym_return = syms[0]; - } else if (!(modifiers & LockMask) || - (dpy->lock_meaning != XK_Caps_Lock)) { - if ((per == 1) || ((usym = syms[1]) == NoSymbol)) - XConvertCase(syms[0], &lsym, &usym); - *keysym_return = usym; - } else { - if ((per == 1) || ((sym = syms[1]) == NoSymbol)) - sym = syms[0]; - XConvertCase(sym, &lsym, &usym); - if (!(modifiers & ShiftMask) && (sym != syms[0]) && - ((sym != usym) || (lsym == usym))) - XConvertCase(syms[0], &lsym, &usym); - *keysym_return = usym; - } - if (*keysym_return == XK_VoidSymbol) - *keysym_return = NoSymbol; - return 1; -} - -int -_XTranslateKeySym(dpy, symbol, modifiers, buffer, nbytes) - Display *dpy; - register KeySym symbol; - unsigned int modifiers; - char *buffer; - int nbytes; -{ - register struct _XKeytrans *p; - int length; - unsigned long hiBytes; - register unsigned char c; - - if (!symbol) - return 0; - /* see if symbol rebound, if so, return that string. */ - for (p = dpy->key_bindings; p; p = p->next) { - if (((modifiers & AllMods) == p->state) && (symbol == p->key)) { - length = p->len; - if (length > nbytes) length = nbytes; - memcpy (buffer, p->string, length); - return length; - } - } - /* try to convert to Latin-1, handling control */ - hiBytes = symbol >> 8; - if (!(nbytes && - ((hiBytes == 0) || - ((hiBytes == 0xFF) && - (((symbol >= XK_BackSpace) && (symbol <= XK_Clear)) || - (symbol == XK_Return) || - (symbol == XK_Escape) || - (symbol == XK_KP_Space) || - (symbol == XK_KP_Tab) || - (symbol == XK_KP_Enter) || - ((symbol >= XK_KP_Multiply) && (symbol <= XK_KP_9)) || - (symbol == XK_KP_Equal) || - (symbol == XK_Delete)))))) - return 0; - - /* if X keysym, convert to ascii by grabbing low 7 bits */ - if (symbol == XK_KP_Space) - c = XK_space & 0x7F; /* patch encoding botch */ - else if (hiBytes == 0xFF) - c = symbol & 0x7F; - else - c = symbol & 0xFF; - /* only apply Control key if it makes sense, else ignore it */ - if (modifiers & ControlMask) { - if ((c >= '@' && c < '\177') || c == ' ') c &= 0x1F; - else if (c == '2') c = '\000'; - else if (c >= '3' && c <= '7') c -= ('3' - '\033'); - else if (c == '8') c = '\177'; - else if (c == '/') c = '_' & 0x1F; - } - buffer[0] = c; - return 1; -} - -/*ARGSUSED*/ -int -XLookupString (event, buffer, nbytes, keysym, status) - register XKeyEvent *event; - char *buffer; /* buffer */ - int nbytes; /* space in buffer for characters */ - KeySym *keysym; - XComposeStatus *status; /* not implemented */ -{ - unsigned int modifiers; - KeySym symbol; - - if (! _XTranslateKey(event->display, event->keycode, event->state, - &modifiers, &symbol)) - return 0; - -#ifdef USE_OWN_COMPOSE - if ( status ) { - static int been_here= 0; - if ( !been_here ) { - XimCompInitTables(); - been_here = 1; - } - if ( !XimCompLegalStatus(status) ) { - status->compose_ptr = NULL; - status->chars_matched = 0; - } - if ( ((status->chars_matched>0)&&(status->compose_ptr!=NULL)) || - XimCompIsComposeKey(symbol,event->keycode,status) ) { - XimCompRtrn rtrn; - switch (XimCompProcessSym(status,symbol,&rtrn)) { - case XIM_COMP_IGNORE: - break; - case XIM_COMP_IN_PROGRESS: - if ( keysym!=NULL ) - *keysym = NoSymbol; - return 0; - case XIM_COMP_FAIL: - { - int n = 0, len= 0; - for (n=len=0;rtrn.sym[n]!=XK_VoidSymbol;n++) { - if ( nbytes-len > 0 ) { - len+= _XTranslateKeySym(event->display,rtrn.sym[n], - event->state, - buffer+len,nbytes-len); - } - } - if ( keysym!=NULL ) { - if ( n==1 ) *keysym = rtrn.sym[0]; - else *keysym = NoSymbol; - } - return len; - } - case XIM_COMP_SUCCEED: - { - int len,n = 0; - - symbol = rtrn.matchSym; - if ( keysym!=NULL ) *keysym = symbol; - if ( rtrn.str[0]!='\0' ) { - strncpy(buffer,rtrn.str,nbytes-1); - buffer[nbytes-1]= '\0'; - len = strlen(buffer); - } - else { - len = _XTranslateKeySym(event->display,symbol, - event->state, - buffer,nbytes); - } - for (n=0;rtrn.sym[n]!=XK_VoidSymbol;n++) { - if ( nbytes-len > 0 ) { - len+= _XTranslateKeySym(event->display,rtrn.sym[n], - event->state, - buffer+len,nbytes-len); - } - } - return len; - } - } - } - } -#endif - - if (keysym) - *keysym = symbol; - /* arguable whether to use (event->state & ~modifiers) here */ - return _XTranslateKeySym(event->display, symbol, event->state, - buffer, nbytes); -} - -static void -_XFreeKeyBindings (dpy) - Display *dpy; -{ - register struct _XKeytrans *p, *np; - - for (p = dpy->key_bindings; p; p = np) { - np = p->next; - Xfree(p->string); - Xfree((char *)p->modifiers); - Xfree((char *)p); - } -} - -int -#if NeedFunctionPrototypes -XRebindKeysym ( - Display *dpy, - KeySym keysym, - KeySym *mlist, - int nm, /* number of modifiers in mlist */ - _Xconst unsigned char *str, - int nbytes) -#else -XRebindKeysym (dpy, keysym, mlist, nm, str, nbytes) - Display *dpy; - KeySym keysym; - KeySym *mlist; - int nm; /* number of modifiers in mlist */ - unsigned char *str; - int nbytes; -#endif -{ - register struct _XKeytrans *tmp, *p; - int nb; - - if ((! dpy->keysyms) && (! _XKeyInitialize(dpy))) - return 0; - LockDisplay(dpy); - tmp = dpy->key_bindings; - nb = sizeof(KeySym) * nm; - - if ((! (p = (struct _XKeytrans *) Xmalloc( sizeof(struct _XKeytrans)))) || - ((! (p->string = (char *) Xmalloc( (unsigned) nbytes))) && - (nbytes > 0)) || - ((! (p->modifiers = (KeySym *) Xmalloc( (unsigned) nb))) && - (nb > 0))) { - if (p) { - if (p->string) Xfree(p->string); - if (p->modifiers) Xfree((char *) p->modifiers); - Xfree((char *) p); - } - UnlockDisplay(dpy); - return 0; - } - - dpy->key_bindings = p; - dpy->free_funcs->key_bindings = _XFreeKeyBindings; - p->next = tmp; /* chain onto list */ - memcpy (p->string, (char *) str, nbytes); - p->len = nbytes; - memcpy ((char *) p->modifiers, (char *) mlist, nb); - p->key = keysym; - p->mlen = nm; - ComputeMaskFromKeytrans(dpy, p); - UnlockDisplay(dpy); - return 0; -} - -unsigned -_XKeysymToModifiers(dpy,ks) - Display *dpy; - KeySym ks; -{ - CARD8 code,mods; - register KeySym *kmax; - register KeySym *k; - register XModifierKeymap *m; - - if ((! dpy->keysyms) && (! _XKeyInitialize(dpy))) - return 0; - kmax = dpy->keysyms + - (dpy->max_keycode - dpy->min_keycode + 1) * dpy->keysyms_per_keycode; - k = dpy->keysyms; - m = dpy->modifiermap; - mods= 0; - while (kmax_keypermod<<3; - - code=(((k-dpy->keysyms)/dpy->keysyms_per_keycode)+dpy->min_keycode); - - while (--j >= 0) { - if (code == m->modifiermap[j]) - mods|= (1<<(j/m->max_keypermod)); - } - } - k++; - } - return mods; -} - -/* - * given a list of modifiers, computes the mask necessary for later matching. - * This routine must lookup the key in the Keymap and then search to see - * what modifier it is bound to, if any. Sets the AnyModifier bit if it - * can't map some keysym to a modifier. - */ -static void -ComputeMaskFromKeytrans(dpy, p) - Display *dpy; - register struct _XKeytrans *p; -{ - register int i; - - p->state = AnyModifier; - for (i = 0; i < p->mlen; i++) { - p->state|= XkbKeysymToModifiers(dpy,p->modifiers[i]); - } - p->state &= AllMods; -} - -#endif /* __disabled_for_imakeicide__ } */ diff --git a/external/mit/xorg/tools/xkbcomp/xkbcomp-stubs.c b/external/mit/xorg/tools/xkbcomp/xkbcomp-stubs.c deleted file mode 100644 index 5691099ce..000000000 --- a/external/mit/xorg/tools/xkbcomp/xkbcomp-stubs.c +++ /dev/null @@ -1,184 +0,0 @@ -/* $NetBSD: xkbcomp-stubs.c,v 1.2 2013/05/30 23:42:20 mrg Exp $ */ - -/*- - * Copyright (c) 2003-2004 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Luke Mewburn. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include - -#include "Xlibint.h" -#include "Xlcint.h" -#include "XKBlibint.h" -#include - -Display * -XOpenDisplay(const char *display) -{ - return NULL; -} - -int -XCloseDisplay(Display *dpy) -{ - return 0; -} - -int (* -XSynchronize(Display *dpy, int onoff))() -{ - return NULL; -} - -XrmMethods -_XrmInitParseInfo(XPointer *state) -{ - return NULL; -} - -int -XGetErrorText(Display *dpy, int code, char *buffer, int nbytes) -{ - return 0; -} - - -char * -XGetAtomName(Display *dpy, Atom atom) -{ - return NULL; -} - -Atom -XInternAtom(Display *dpy, const char *name, Bool onlyIfExists) -{ - return None; -} - -XkbDescPtr -XkbGetMap(Display *dpy,unsigned which,unsigned deviceSpec) -{ - return NULL; -} - -Status -XkbGetIndicatorMap(Display *dpy,unsigned long which,XkbDescPtr xkb) -{ - return BadValue; -} - -Status -XkbGetControls(Display *dpy, unsigned long which, XkbDescPtr xkb) -{ - return BadValue; -} - -Status -XkbGetCompatMap(Display *dpy,unsigned which,XkbDescPtr xkb) -{ - return BadValue; -} - -Status -XkbGetNames(Display *dpy,unsigned which,XkbDescPtr xkb) -{ - return BadValue; -} - -Status -XkbChangeKbdDisplay(Display *newDpy,XkbFileInfo *result) -{ - return BadValue; -} - -Bool -XkbWriteToServer(XkbFileInfo *result) -{ - return False; -} - -void -_XFlush(Display *dpy) -{ -} - -Bool -XkbUseExtension(Display *dpy,int *major_rtrn,int *minor_rtrn) -{ - return False; -} - -Status -_XReply(Display *dpy, xReply *rep, int extra, Bool discard) -{ - return False; -} - -int -_XRead(Display *dpy, char *data, long size) -{ - return 0; -} - -void * -_XGetRequest(Display *dpy, CARD8 type, size_t len) -{ - return NULL; -} - -#if defined(__minix) && defined(XTHREADS) -void (*_XCreateMutex_fn)(LockInfoPtr) = NULL; -void (**_XFreeMutex_fn_p)(LockInfoPtr) = &_XFreeMutex_fn; - -void (*_XFreeMutex_fn)(LockInfoPtr) = NULL; -void (**_XCreateMutex_fn_p)(LockInfoPtr) = &_XCreateMutex_fn; - -LockInfoPtr _Xglobal_lock = NULL; -LockInfoPtr *_Xglobal_lock_p = &_Xglobal_lock; - -void (*_XLockMutex_fn)( - LockInfoPtr /* lock */ -#if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE) - , char * /* file */ - , int /* line */ -#endif - ) = NULL; -void (*_XUnlockMutex_fn)( - LockInfoPtr /* lock */ -#if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE) - , char * /* file */ - , int /* line */ -#endif - ) = NULL; -#endif /* defined(__minix) && defined(XTHREADS) */ diff --git a/external/mit/xorg/tools/xkbcomp/xkbfile-xkbmisc.c b/external/mit/xorg/tools/xkbcomp/xkbfile-xkbmisc.c deleted file mode 100644 index 1547b7c80..000000000 --- a/external/mit/xorg/tools/xkbcomp/xkbfile-xkbmisc.c +++ /dev/null @@ -1,8 +0,0 @@ -/* $NetBSD: xkbfile-xkbmisc.c,v 1.1 2009/02/03 05:08:39 dbj Exp $ */ - -/* This file exists to differentiate between - * lib/xkbfile/xkbmisc.c and lib/X11/XKBMisc.c - * which causes objdir conflicts on case-insensitive filesystems - */ - -#include <../../../libxkbfile/dist/src/xkbmisc.c>