# PaCkAgE DaTaStReAm xcb 1 9318 # end of header 0707010006ba50000081a40000000000000000000000014f83891d000000f1000000b600010002ffffffffffffffff0000000c00000000xcb/pkginfoPKG=xcb NAME=xcb 1.8 i86pc Solaris 11 VERSION=1.8 PSTAMP=10th April 2012 VENDOR=X.org EMAIL=http://xcb.freedesktop.org/ DESC=X protocol C-language Binding ARCH=i386 CATEGORY=utility CLASSES=none BASEDIR=/ ISTATES=S s 1 2 3 RSTATES=S s 1 2 3 0707010006ba4e000081a40000000000000000000000014f83891d000031f7000000b600010002ffffffffffffffff0000000b00000000xcb/pkgmap: 1 9318 1 d none /usr ? ? ? 1 d none /usr/local ? ? ? 1 d none /usr/local/include 0755 root root 1 d none /usr/local/include/xcb 0755 root root 1 f none /usr/local/include/xcb/bigreq.h 0644 root root 3674 22026 1334020242 1 f none /usr/local/include/xcb/composite.h 0644 root root 23302 29991 1334020242 1 f none /usr/local/include/xcb/damage.h 0644 root root 15271 15355 1334020242 1 f none /usr/local/include/xcb/dpms.h 0644 root root 20199 1302 1334020242 1 f none /usr/local/include/xcb/dri2.h 0644 root root 58809 11507 1334020242 1 f none /usr/local/include/xcb/glx.h 0644 root root 447460 39498 1334020242 1 f none /usr/local/include/xcb/randr.h 0644 root root 169043 43423 1334020242 1 f none /usr/local/include/xcb/record.h 0644 root root 44283 12873 1334020242 1 f none /usr/local/include/xcb/render.h 0644 root root 153127 41921 1334020242 1 f none /usr/local/include/xcb/res.h 0644 root root 20736 1483 1334020242 1 f none /usr/local/include/xcb/screensaver.h 0644 root root 19661 58331 1334020242 1 f none /usr/local/include/xcb/shape.h 0644 root root 34944 23485 1334020242 1 f none /usr/local/include/xcb/shm.h 0644 root root 22790 19930 1334020242 1 f none /usr/local/include/xcb/sync.h 0644 root root 65787 60742 1334020242 1 f none /usr/local/include/xcb/xc_misc.h 0644 root root 12293 10973 1334020242 1 f none /usr/local/include/xcb/xcb.h 0644 root root 17847 12909 1334020242 1 f none /usr/local/include/xcb/xcbext.h 0644 root root 3887 4311 1334020242 1 f none /usr/local/include/xcb/xevie.h 0644 root root 18982 46473 1334020242 1 f none /usr/local/include/xcb/xf86dri.h 0644 root root 50034 56225 1334020242 1 f none /usr/local/include/xcb/xfixes.h 0644 root root 90645 23393 1334020242 1 f none /usr/local/include/xcb/xinerama.h 0644 root root 25089 8246 1334020242 1 f none /usr/local/include/xcb/xinput.h 0644 root root 233981 7430 1334020242 1 f none /usr/local/include/xcb/xkb.h 0644 root root 558285 43907 1334020242 1 f none /usr/local/include/xcb/xprint.h 0644 root root 98665 27385 1334020242 1 f none /usr/local/include/xcb/xproto.h 0644 root root 461305 23768 1334020242 1 f none /usr/local/include/xcb/xselinux.h 0644 root root 101394 11898 1334020242 1 f none /usr/local/include/xcb/xtest.h 0644 root root 12703 6181 1334020242 1 f none /usr/local/include/xcb/xv.h 0644 root root 104216 61317 1334020242 1 f none /usr/local/include/xcb/xvmc.h 0644 root root 44155 31169 1334020242 1 d none /usr/local/lib 0755 root root 1 f none /usr/local/lib/libxcb-composite.a 0644 root root 7188 12278 1334020242 1 f none /usr/local/lib/libxcb-composite.la 0755 root root 1098 31639 1334020240 1 s none /usr/local/lib/libxcb-composite.so=libxcb-composite.so.0.0.0 1 s none /usr/local/lib/libxcb-composite.so.0=libxcb-composite.so.0.0.0 1 f none /usr/local/lib/libxcb-composite.so.0.0.0 0755 root root 11984 10982 1334020240 1 f none /usr/local/lib/libxcb-damage.a 0644 root root 4868 51176 1334020242 1 f none /usr/local/lib/libxcb-damage.la 0755 root root 1077 29035 1334020240 1 s none /usr/local/lib/libxcb-damage.so=libxcb-damage.so.0.0.0 1 s none /usr/local/lib/libxcb-damage.so.0=libxcb-damage.so.0.0.0 1 f none /usr/local/lib/libxcb-damage.so.0.0.0 0755 root root 9128 12798 1334020240 1 f none /usr/local/lib/libxcb-dpms.a 0644 root root 6032 23028 1334020242 1 f none /usr/local/lib/libxcb-dpms.la 0755 root root 1063 27838 1334020240 1 s none /usr/local/lib/libxcb-dpms.so=libxcb-dpms.so.0.0.0 1 s none /usr/local/lib/libxcb-dpms.so.0=libxcb-dpms.so.0.0.0 1 f none /usr/local/lib/libxcb-dpms.so.0.0.0 0755 root root 10484 10030 1334020240 1 f none /usr/local/lib/libxcb-dri2.a 0644 root root 13396 19632 1334020242 1 f none /usr/local/lib/libxcb-dri2.la 0755 root root 1063 27369 1334020241 1 s none /usr/local/lib/libxcb-dri2.so=libxcb-dri2.so.0.0.0 1 s none /usr/local/lib/libxcb-dri2.so.0=libxcb-dri2.so.0.0.0 1 f none /usr/local/lib/libxcb-dri2.so.0.0.0 0755 root root 19496 31847 1334020241 1 f none /usr/local/lib/libxcb-glx.a 0644 root root 102148 15940 1334020242 1 f none /usr/local/lib/libxcb-glx.la 0755 root root 1056 27103 1334020241 1 s none /usr/local/lib/libxcb-glx.so=libxcb-glx.so.0.0.0 1 s none /usr/local/lib/libxcb-glx.so.0=libxcb-glx.so.0.0.0 1 f none /usr/local/lib/libxcb-glx.so.0.0.0 0755 root root 130284 63264 1334020241 1 f none /usr/local/lib/libxcb-randr.a 0644 root root 43916 28369 1334020242 1 f none /usr/local/lib/libxcb-randr.la 0755 root root 1070 28534 1334020241 1 s none /usr/local/lib/libxcb-randr.so=libxcb-randr.so.0.1.0 1 s none /usr/local/lib/libxcb-randr.so.0=libxcb-randr.so.0.1.0 1 f none /usr/local/lib/libxcb-randr.so.0.1.0 0755 root root 57256 38331 1334020241 1 f none /usr/local/lib/libxcb-record.a 0644 root root 12080 43025 1334020242 1 f none /usr/local/lib/libxcb-record.la 0755 root root 1077 29259 1334020241 1 s none /usr/local/lib/libxcb-record.so=libxcb-record.so.0.0.0 1 s none /usr/local/lib/libxcb-record.so.0=libxcb-record.so.0.0.0 1 f none /usr/local/lib/libxcb-record.so.0.0.0 0755 root root 17868 25149 1334020241 1 f none /usr/local/lib/libxcb-render.a 0644 root root 37120 62745 1334020242 1 f none /usr/local/lib/libxcb-render.la 0755 root root 1077 29266 1334020241 1 s none /usr/local/lib/libxcb-render.so=libxcb-render.so.0.0.0 1 s none /usr/local/lib/libxcb-render.so.0=libxcb-render.so.0.0.0 1 f none /usr/local/lib/libxcb-render.so.0.0.0 0755 root root 48740 9179 1334020241 1 f none /usr/local/lib/libxcb-res.a 0644 root root 6516 30904 1334020242 1 f none /usr/local/lib/libxcb-res.la 0755 root root 1056 27096 1334020241 1 s none /usr/local/lib/libxcb-res.so=libxcb-res.so.0.0.0 1 s none /usr/local/lib/libxcb-res.so.0=libxcb-res.so.0.0.0 1 f none /usr/local/lib/libxcb-res.so.0.0.0 0755 root root 10700 51962 1334020241 1 f none /usr/local/lib/libxcb-screensaver.a 0644 root root 6064 43989 1334020242 1 f none /usr/local/lib/libxcb-screensaver.la 0755 root root 1112 33081 1334020241 1 s none /usr/local/lib/libxcb-screensaver.so=libxcb-screensaver.so.0.0.0 1 s none /usr/local/lib/libxcb-screensaver.so.0=libxcb-screensaver.so.0.0.0 1 f none /usr/local/lib/libxcb-screensaver.so.0.0.0 0755 root root 10532 26079 1334020241 1 f none /usr/local/lib/libxcb-shape.a 0644 root root 8700 21335 1334020242 1 f none /usr/local/lib/libxcb-shape.la 0755 root root 1070 28489 1334020241 1 s none /usr/local/lib/libxcb-shape.so=libxcb-shape.so.0.0.0 1 s none /usr/local/lib/libxcb-shape.so.0=libxcb-shape.so.0.0.0 1 f none /usr/local/lib/libxcb-shape.so.0.0.0 0755 root root 13824 37225 1334020241 1 f none /usr/local/lib/libxcb-shm.a 0644 root root 5776 7213 1334020242 1 f none /usr/local/lib/libxcb-shm.la 0755 root root 1056 27082 1334020241 1 s none /usr/local/lib/libxcb-shm.so=libxcb-shm.so.0.0.0 1 s none /usr/local/lib/libxcb-shm.so.0=libxcb-shm.so.0.0.0 1 f none /usr/local/lib/libxcb-shm.so.0.0.0 0755 root root 10164 46878 1334020241 1 f none /usr/local/lib/libxcb-sync.a 0644 root root 16412 27383 1334020242 1 f none /usr/local/lib/libxcb-sync.la 0755 root root 1063 27901 1334020241 1 s none /usr/local/lib/libxcb-sync.so=libxcb-sync.so.0.0.0 1 s none /usr/local/lib/libxcb-sync.so.0=libxcb-sync.so.0.0.0 1 f none /usr/local/lib/libxcb-sync.so.0.0.0 0755 root root 23668 2495 1334020241 1 f none /usr/local/lib/libxcb-xevie.a 0644 root root 5452 49964 1334020242 1 f none /usr/local/lib/libxcb-xevie.la 0755 root root 1070 28601 1334020241 1 s none /usr/local/lib/libxcb-xevie.so=libxcb-xevie.so.0.0.0 1 s none /usr/local/lib/libxcb-xevie.so.0=libxcb-xevie.so.0.0.0 1 f none /usr/local/lib/libxcb-xevie.so.0.0.0 0755 root root 9856 32652 1334020241 1 f none /usr/local/lib/libxcb-xf86dri.a 0644 root root 13304 8815 1334020242 1 f none /usr/local/lib/libxcb-xf86dri.la 0755 root root 1084 29343 1334020242 1 s none /usr/local/lib/libxcb-xf86dri.so=libxcb-xf86dri.so.0.0.0 1 s none /usr/local/lib/libxcb-xf86dri.so.0=libxcb-xf86dri.so.0.0.0 1 f none /usr/local/lib/libxcb-xf86dri.so.0.0.0 0755 root root 19160 20461 1334020242 1 f none /usr/local/lib/libxcb-xfixes.a 0644 root root 23064 63138 1334020242 1 f none /usr/local/lib/libxcb-xfixes.la 0755 root root 1077 29427 1334020242 1 s none /usr/local/lib/libxcb-xfixes.so=libxcb-xfixes.so.0.0.0 1 s none /usr/local/lib/libxcb-xfixes.so.0=libxcb-xfixes.so.0.0.0 1 f none /usr/local/lib/libxcb-xfixes.so.0.0.0 0755 root root 32124 27832 1334020242 1 f none /usr/local/lib/libxcb-xinerama.a 0644 root root 6824 53694 1334020242 1 f none /usr/local/lib/libxcb-xinerama.la 0755 root root 1091 30757 1334020242 1 s none /usr/local/lib/libxcb-xinerama.so=libxcb-xinerama.so.0.0.0 1 s none /usr/local/lib/libxcb-xinerama.so.0=libxcb-xinerama.so.0.0.0 1 f none /usr/local/lib/libxcb-xinerama.so.0.0.0 0755 root root 11216 22837 1334020242 1 f none /usr/local/lib/libxcb-xprint.a 0644 root root 27452 51458 1334020242 1 f none /usr/local/lib/libxcb-xprint.la 0755 root root 1077 29525 1334020242 1 s none /usr/local/lib/libxcb-xprint.so=libxcb-xprint.so.0.0.0 1 s none /usr/local/lib/libxcb-xprint.so.0=libxcb-xprint.so.0.0.0 1 f none /usr/local/lib/libxcb-xprint.so.0.0.0 0755 root root 36988 47839 1334020242 1 f none /usr/local/lib/libxcb-xtest.a 0644 root root 4572 32455 1334020242 1 f none /usr/local/lib/libxcb-xtest.la 0755 root root 1070 28762 1334020242 1 s none /usr/local/lib/libxcb-xtest.so=libxcb-xtest.so.0.0.0 1 s none /usr/local/lib/libxcb-xtest.so.0=libxcb-xtest.so.0.0.0 1 f none /usr/local/lib/libxcb-xtest.so.0.0.0 0755 root root 8584 47033 1334020242 1 f none /usr/local/lib/libxcb-xv.a 0644 root root 24480 65204 1334020242 1 f none /usr/local/lib/libxcb-xv.la 0755 root root 1049 26452 1334020242 1 s none /usr/local/lib/libxcb-xv.so=libxcb-xv.so.0.0.0 1 s none /usr/local/lib/libxcb-xv.so.0=libxcb-xv.so.0.0.0 1 f none /usr/local/lib/libxcb-xv.so.0.0.0 0755 root root 33804 36866 1334020242 1 f none /usr/local/lib/libxcb-xvmc.a 0644 root root 11900 25672 1334020242 1 f none /usr/local/lib/libxcb-xvmc.la 0755 root root 1063 27908 1334020242 1 s none /usr/local/lib/libxcb-xvmc.so=libxcb-xvmc.so.0.0.0 1 s none /usr/local/lib/libxcb-xvmc.so.0=libxcb-xvmc.so.0.0.0 1 f none /usr/local/lib/libxcb-xvmc.so.0.0.0 0755 root root 17324 49867 1334020242 1 f none /usr/local/lib/libxcb.a 0644 root root 158988 27773 1334020242 1 f none /usr/local/lib/libxcb.la 0755 root root 1003 22199 1334020240 1 s none /usr/local/lib/libxcb.so=libxcb.so.1.1.0 1 s none /usr/local/lib/libxcb.so.1=libxcb.so.1.1.0 1 f none /usr/local/lib/libxcb.so.1.1.0 0755 root root 186768 18043 1334020240 1 d none /usr/local/lib/pkgconfig 0755 root root 1 f none /usr/local/lib/pkgconfig/xcb-composite.pc 0644 root root 249 22898 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-damage.pc 0644 root root 240 21782 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-dpms.pc 0644 root root 223 20020 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-dri2.pc 0644 root root 223 19883 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-glx.pc 0644 root root 220 19769 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-randr.pc 0644 root root 226 20445 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-record.pc 0644 root root 229 20821 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-render.pc 0644 root root 229 20824 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-res.pc 0644 root root 227 20569 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-screensaver.pc 0644 root root 244 22459 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-shape.pc 0644 root root 226 20491 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-shm.pc 0644 root root 220 19888 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-sync.pc 0644 root root 223 20239 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xevie.pc 0644 root root 226 20539 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xf86dri.pc 0644 root root 240 21323 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xfixes.pc 0644 root root 250 22786 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xinerama.pc 0644 root root 235 21463 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xprint.pc 0644 root root 229 20935 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xtest.pc 0644 root root 226 20352 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xv.pc 0644 root root 225 20340 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xvmc.pc 0644 root root 230 20746 1334020242 1 f none /usr/local/lib/pkgconfig/xcb.pc 0644 root root 300 26968 1334020242 1 d none /usr/local/share 0755 root root 1 d none /usr/local/share/doc 0755 root root 1 d none /usr/local/share/doc/libxcb 0755 root root 1 d none /usr/local/share/doc/libxcb/tutorial 0755 root root 1 f none /usr/local/share/doc/libxcb/tutorial/index.html 0644 root root 179134 44826 1320935774 1 f none /usr/local/share/doc/libxcb/tutorial/xcb.css 0644 root root 1695 7098 1320935774 1 i checkinstall 790 2505 1334020529 1 i pkginfo 241 18208 1334020381 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!0707010006ba50000081a40000000000000000000000014f83891d000000f1000000b600010002ffffffffffffffff0000000800000000pkginfoPKG=xcb NAME=xcb 1.8 i86pc Solaris 11 VERSION=1.8 PSTAMP=10th April 2012 VENDOR=X.org EMAIL=http://xcb.freedesktop.org/ DESC=X protocol C-language Binding ARCH=i386 CATEGORY=utility CLASSES=none BASEDIR=/ ISTATES=S s 1 2 3 RSTATES=S s 1 2 3 0707010006ba4e000081a40000000000000000000000014f83891d000031f7000000b600010002ffffffffffffffff0000000700000000pkgmap: 1 9318 1 d none /usr ? ? ? 1 d none /usr/local ? ? ? 1 d none /usr/local/include 0755 root root 1 d none /usr/local/include/xcb 0755 root root 1 f none /usr/local/include/xcb/bigreq.h 0644 root root 3674 22026 1334020242 1 f none /usr/local/include/xcb/composite.h 0644 root root 23302 29991 1334020242 1 f none /usr/local/include/xcb/damage.h 0644 root root 15271 15355 1334020242 1 f none /usr/local/include/xcb/dpms.h 0644 root root 20199 1302 1334020242 1 f none /usr/local/include/xcb/dri2.h 0644 root root 58809 11507 1334020242 1 f none /usr/local/include/xcb/glx.h 0644 root root 447460 39498 1334020242 1 f none /usr/local/include/xcb/randr.h 0644 root root 169043 43423 1334020242 1 f none /usr/local/include/xcb/record.h 0644 root root 44283 12873 1334020242 1 f none /usr/local/include/xcb/render.h 0644 root root 153127 41921 1334020242 1 f none /usr/local/include/xcb/res.h 0644 root root 20736 1483 1334020242 1 f none /usr/local/include/xcb/screensaver.h 0644 root root 19661 58331 1334020242 1 f none /usr/local/include/xcb/shape.h 0644 root root 34944 23485 1334020242 1 f none /usr/local/include/xcb/shm.h 0644 root root 22790 19930 1334020242 1 f none /usr/local/include/xcb/sync.h 0644 root root 65787 60742 1334020242 1 f none /usr/local/include/xcb/xc_misc.h 0644 root root 12293 10973 1334020242 1 f none /usr/local/include/xcb/xcb.h 0644 root root 17847 12909 1334020242 1 f none /usr/local/include/xcb/xcbext.h 0644 root root 3887 4311 1334020242 1 f none /usr/local/include/xcb/xevie.h 0644 root root 18982 46473 1334020242 1 f none /usr/local/include/xcb/xf86dri.h 0644 root root 50034 56225 1334020242 1 f none /usr/local/include/xcb/xfixes.h 0644 root root 90645 23393 1334020242 1 f none /usr/local/include/xcb/xinerama.h 0644 root root 25089 8246 1334020242 1 f none /usr/local/include/xcb/xinput.h 0644 root root 233981 7430 1334020242 1 f none /usr/local/include/xcb/xkb.h 0644 root root 558285 43907 1334020242 1 f none /usr/local/include/xcb/xprint.h 0644 root root 98665 27385 1334020242 1 f none /usr/local/include/xcb/xproto.h 0644 root root 461305 23768 1334020242 1 f none /usr/local/include/xcb/xselinux.h 0644 root root 101394 11898 1334020242 1 f none /usr/local/include/xcb/xtest.h 0644 root root 12703 6181 1334020242 1 f none /usr/local/include/xcb/xv.h 0644 root root 104216 61317 1334020242 1 f none /usr/local/include/xcb/xvmc.h 0644 root root 44155 31169 1334020242 1 d none /usr/local/lib 0755 root root 1 f none /usr/local/lib/libxcb-composite.a 0644 root root 7188 12278 1334020242 1 f none /usr/local/lib/libxcb-composite.la 0755 root root 1098 31639 1334020240 1 s none /usr/local/lib/libxcb-composite.so=libxcb-composite.so.0.0.0 1 s none /usr/local/lib/libxcb-composite.so.0=libxcb-composite.so.0.0.0 1 f none /usr/local/lib/libxcb-composite.so.0.0.0 0755 root root 11984 10982 1334020240 1 f none /usr/local/lib/libxcb-damage.a 0644 root root 4868 51176 1334020242 1 f none /usr/local/lib/libxcb-damage.la 0755 root root 1077 29035 1334020240 1 s none /usr/local/lib/libxcb-damage.so=libxcb-damage.so.0.0.0 1 s none /usr/local/lib/libxcb-damage.so.0=libxcb-damage.so.0.0.0 1 f none /usr/local/lib/libxcb-damage.so.0.0.0 0755 root root 9128 12798 1334020240 1 f none /usr/local/lib/libxcb-dpms.a 0644 root root 6032 23028 1334020242 1 f none /usr/local/lib/libxcb-dpms.la 0755 root root 1063 27838 1334020240 1 s none /usr/local/lib/libxcb-dpms.so=libxcb-dpms.so.0.0.0 1 s none /usr/local/lib/libxcb-dpms.so.0=libxcb-dpms.so.0.0.0 1 f none /usr/local/lib/libxcb-dpms.so.0.0.0 0755 root root 10484 10030 1334020240 1 f none /usr/local/lib/libxcb-dri2.a 0644 root root 13396 19632 1334020242 1 f none /usr/local/lib/libxcb-dri2.la 0755 root root 1063 27369 1334020241 1 s none /usr/local/lib/libxcb-dri2.so=libxcb-dri2.so.0.0.0 1 s none /usr/local/lib/libxcb-dri2.so.0=libxcb-dri2.so.0.0.0 1 f none /usr/local/lib/libxcb-dri2.so.0.0.0 0755 root root 19496 31847 1334020241 1 f none /usr/local/lib/libxcb-glx.a 0644 root root 102148 15940 1334020242 1 f none /usr/local/lib/libxcb-glx.la 0755 root root 1056 27103 1334020241 1 s none /usr/local/lib/libxcb-glx.so=libxcb-glx.so.0.0.0 1 s none /usr/local/lib/libxcb-glx.so.0=libxcb-glx.so.0.0.0 1 f none /usr/local/lib/libxcb-glx.so.0.0.0 0755 root root 130284 63264 1334020241 1 f none /usr/local/lib/libxcb-randr.a 0644 root root 43916 28369 1334020242 1 f none /usr/local/lib/libxcb-randr.la 0755 root root 1070 28534 1334020241 1 s none /usr/local/lib/libxcb-randr.so=libxcb-randr.so.0.1.0 1 s none /usr/local/lib/libxcb-randr.so.0=libxcb-randr.so.0.1.0 1 f none /usr/local/lib/libxcb-randr.so.0.1.0 0755 root root 57256 38331 1334020241 1 f none /usr/local/lib/libxcb-record.a 0644 root root 12080 43025 1334020242 1 f none /usr/local/lib/libxcb-record.la 0755 root root 1077 29259 1334020241 1 s none /usr/local/lib/libxcb-record.so=libxcb-record.so.0.0.0 1 s none /usr/local/lib/libxcb-record.so.0=libxcb-record.so.0.0.0 1 f none /usr/local/lib/libxcb-record.so.0.0.0 0755 root root 17868 25149 1334020241 1 f none /usr/local/lib/libxcb-render.a 0644 root root 37120 62745 1334020242 1 f none /usr/local/lib/libxcb-render.la 0755 root root 1077 29266 1334020241 1 s none /usr/local/lib/libxcb-render.so=libxcb-render.so.0.0.0 1 s none /usr/local/lib/libxcb-render.so.0=libxcb-render.so.0.0.0 1 f none /usr/local/lib/libxcb-render.so.0.0.0 0755 root root 48740 9179 1334020241 1 f none /usr/local/lib/libxcb-res.a 0644 root root 6516 30904 1334020242 1 f none /usr/local/lib/libxcb-res.la 0755 root root 1056 27096 1334020241 1 s none /usr/local/lib/libxcb-res.so=libxcb-res.so.0.0.0 1 s none /usr/local/lib/libxcb-res.so.0=libxcb-res.so.0.0.0 1 f none /usr/local/lib/libxcb-res.so.0.0.0 0755 root root 10700 51962 1334020241 1 f none /usr/local/lib/libxcb-screensaver.a 0644 root root 6064 43989 1334020242 1 f none /usr/local/lib/libxcb-screensaver.la 0755 root root 1112 33081 1334020241 1 s none /usr/local/lib/libxcb-screensaver.so=libxcb-screensaver.so.0.0.0 1 s none /usr/local/lib/libxcb-screensaver.so.0=libxcb-screensaver.so.0.0.0 1 f none /usr/local/lib/libxcb-screensaver.so.0.0.0 0755 root root 10532 26079 1334020241 1 f none /usr/local/lib/libxcb-shape.a 0644 root root 8700 21335 1334020242 1 f none /usr/local/lib/libxcb-shape.la 0755 root root 1070 28489 1334020241 1 s none /usr/local/lib/libxcb-shape.so=libxcb-shape.so.0.0.0 1 s none /usr/local/lib/libxcb-shape.so.0=libxcb-shape.so.0.0.0 1 f none /usr/local/lib/libxcb-shape.so.0.0.0 0755 root root 13824 37225 1334020241 1 f none /usr/local/lib/libxcb-shm.a 0644 root root 5776 7213 1334020242 1 f none /usr/local/lib/libxcb-shm.la 0755 root root 1056 27082 1334020241 1 s none /usr/local/lib/libxcb-shm.so=libxcb-shm.so.0.0.0 1 s none /usr/local/lib/libxcb-shm.so.0=libxcb-shm.so.0.0.0 1 f none /usr/local/lib/libxcb-shm.so.0.0.0 0755 root root 10164 46878 1334020241 1 f none /usr/local/lib/libxcb-sync.a 0644 root root 16412 27383 1334020242 1 f none /usr/local/lib/libxcb-sync.la 0755 root root 1063 27901 1334020241 1 s none /usr/local/lib/libxcb-sync.so=libxcb-sync.so.0.0.0 1 s none /usr/local/lib/libxcb-sync.so.0=libxcb-sync.so.0.0.0 1 f none /usr/local/lib/libxcb-sync.so.0.0.0 0755 root root 23668 2495 1334020241 1 f none /usr/local/lib/libxcb-xevie.a 0644 root root 5452 49964 1334020242 1 f none /usr/local/lib/libxcb-xevie.la 0755 root root 1070 28601 1334020241 1 s none /usr/local/lib/libxcb-xevie.so=libxcb-xevie.so.0.0.0 1 s none /usr/local/lib/libxcb-xevie.so.0=libxcb-xevie.so.0.0.0 1 f none /usr/local/lib/libxcb-xevie.so.0.0.0 0755 root root 9856 32652 1334020241 1 f none /usr/local/lib/libxcb-xf86dri.a 0644 root root 13304 8815 1334020242 1 f none /usr/local/lib/libxcb-xf86dri.la 0755 root root 1084 29343 1334020242 1 s none /usr/local/lib/libxcb-xf86dri.so=libxcb-xf86dri.so.0.0.0 1 s none /usr/local/lib/libxcb-xf86dri.so.0=libxcb-xf86dri.so.0.0.0 1 f none /usr/local/lib/libxcb-xf86dri.so.0.0.0 0755 root root 19160 20461 1334020242 1 f none /usr/local/lib/libxcb-xfixes.a 0644 root root 23064 63138 1334020242 1 f none /usr/local/lib/libxcb-xfixes.la 0755 root root 1077 29427 1334020242 1 s none /usr/local/lib/libxcb-xfixes.so=libxcb-xfixes.so.0.0.0 1 s none /usr/local/lib/libxcb-xfixes.so.0=libxcb-xfixes.so.0.0.0 1 f none /usr/local/lib/libxcb-xfixes.so.0.0.0 0755 root root 32124 27832 1334020242 1 f none /usr/local/lib/libxcb-xinerama.a 0644 root root 6824 53694 1334020242 1 f none /usr/local/lib/libxcb-xinerama.la 0755 root root 1091 30757 1334020242 1 s none /usr/local/lib/libxcb-xinerama.so=libxcb-xinerama.so.0.0.0 1 s none /usr/local/lib/libxcb-xinerama.so.0=libxcb-xinerama.so.0.0.0 1 f none /usr/local/lib/libxcb-xinerama.so.0.0.0 0755 root root 11216 22837 1334020242 1 f none /usr/local/lib/libxcb-xprint.a 0644 root root 27452 51458 1334020242 1 f none /usr/local/lib/libxcb-xprint.la 0755 root root 1077 29525 1334020242 1 s none /usr/local/lib/libxcb-xprint.so=libxcb-xprint.so.0.0.0 1 s none /usr/local/lib/libxcb-xprint.so.0=libxcb-xprint.so.0.0.0 1 f none /usr/local/lib/libxcb-xprint.so.0.0.0 0755 root root 36988 47839 1334020242 1 f none /usr/local/lib/libxcb-xtest.a 0644 root root 4572 32455 1334020242 1 f none /usr/local/lib/libxcb-xtest.la 0755 root root 1070 28762 1334020242 1 s none /usr/local/lib/libxcb-xtest.so=libxcb-xtest.so.0.0.0 1 s none /usr/local/lib/libxcb-xtest.so.0=libxcb-xtest.so.0.0.0 1 f none /usr/local/lib/libxcb-xtest.so.0.0.0 0755 root root 8584 47033 1334020242 1 f none /usr/local/lib/libxcb-xv.a 0644 root root 24480 65204 1334020242 1 f none /usr/local/lib/libxcb-xv.la 0755 root root 1049 26452 1334020242 1 s none /usr/local/lib/libxcb-xv.so=libxcb-xv.so.0.0.0 1 s none /usr/local/lib/libxcb-xv.so.0=libxcb-xv.so.0.0.0 1 f none /usr/local/lib/libxcb-xv.so.0.0.0 0755 root root 33804 36866 1334020242 1 f none /usr/local/lib/libxcb-xvmc.a 0644 root root 11900 25672 1334020242 1 f none /usr/local/lib/libxcb-xvmc.la 0755 root root 1063 27908 1334020242 1 s none /usr/local/lib/libxcb-xvmc.so=libxcb-xvmc.so.0.0.0 1 s none /usr/local/lib/libxcb-xvmc.so.0=libxcb-xvmc.so.0.0.0 1 f none /usr/local/lib/libxcb-xvmc.so.0.0.0 0755 root root 17324 49867 1334020242 1 f none /usr/local/lib/libxcb.a 0644 root root 158988 27773 1334020242 1 f none /usr/local/lib/libxcb.la 0755 root root 1003 22199 1334020240 1 s none /usr/local/lib/libxcb.so=libxcb.so.1.1.0 1 s none /usr/local/lib/libxcb.so.1=libxcb.so.1.1.0 1 f none /usr/local/lib/libxcb.so.1.1.0 0755 root root 186768 18043 1334020240 1 d none /usr/local/lib/pkgconfig 0755 root root 1 f none /usr/local/lib/pkgconfig/xcb-composite.pc 0644 root root 249 22898 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-damage.pc 0644 root root 240 21782 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-dpms.pc 0644 root root 223 20020 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-dri2.pc 0644 root root 223 19883 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-glx.pc 0644 root root 220 19769 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-randr.pc 0644 root root 226 20445 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-record.pc 0644 root root 229 20821 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-render.pc 0644 root root 229 20824 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-res.pc 0644 root root 227 20569 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-screensaver.pc 0644 root root 244 22459 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-shape.pc 0644 root root 226 20491 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-shm.pc 0644 root root 220 19888 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-sync.pc 0644 root root 223 20239 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xevie.pc 0644 root root 226 20539 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xf86dri.pc 0644 root root 240 21323 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xfixes.pc 0644 root root 250 22786 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xinerama.pc 0644 root root 235 21463 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xprint.pc 0644 root root 229 20935 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xtest.pc 0644 root root 226 20352 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xv.pc 0644 root root 225 20340 1334020242 1 f none /usr/local/lib/pkgconfig/xcb-xvmc.pc 0644 root root 230 20746 1334020242 1 f none /usr/local/lib/pkgconfig/xcb.pc 0644 root root 300 26968 1334020242 1 d none /usr/local/share 0755 root root 1 d none /usr/local/share/doc 0755 root root 1 d none /usr/local/share/doc/libxcb 0755 root root 1 d none /usr/local/share/doc/libxcb/tutorial 0755 root root 1 f none /usr/local/share/doc/libxcb/tutorial/index.html 0644 root root 179134 44826 1320935774 1 f none /usr/local/share/doc/libxcb/tutorial/xcb.css 0644 root root 1695 7098 1320935774 1 i checkinstall 790 2505 1334020529 1 i pkginfo 241 18208 1334020381 0707010006bada000041ed0000000000000000000000024f83891d00000000000000b600010002ffffffffffffffff0000000800000000install0707010006badb000081ed0000000000000000000000014f8389b100000316000000b600010002ffffffffffffffff0000001500000000install/checkinstall#!/bin/sh # expected_bits="64" expected_release="5.11" expected_platform="i386" # release=`uname -r` platform=`uname -p` bits=`isainfo -b` # if [ ${platform} != ${expected_platform} ]; then echo "\n\n\n\tThis package must be installed on a ${expected_platform} architecture\n" echo "\tAborting installation.\n\n\n" exit 1 fi if [ ${release} != ${expected_release} ]; then echo "\n\n\n\tThis package must be installed on a ${expected_release} machine\n" echo "\tAborting installation.\n\n\n" exit 1 fi #if [ ${bits} != ${expected_bits} ]; then # echo "\n\n\n\tThis package must be installed on a ${expected_bits} bit machine\n" # echo "\tYour machine is running a ${bits} bit O.S. currently\n" # echo "\tAborting installation.\n\n\n" # exit 1 #fi exit 0 0707010006ba51000041ed0000000000000000000000034f83891d00000000000000b600010002ffffffffffffffff0000000500000000root0707010006ba52000041ed0000000000000000000000034f83891d00000000000000b600010002ffffffffffffffff0000000900000000root/usr0707010006ba53000041ed0000000000000000000000054f83891d00000000000000b600010002ffffffffffffffff0000000f00000000root/usr/local0707010006bad4000041ed0000000000000000000000034f83891d00000000000000b600010002ffffffffffffffff0000001500000000root/usr/local/share0707010006bad5000041ed0000000000000000000000034f83891d00000000000000b600010002ffffffffffffffff0000001900000000root/usr/local/share/doc0707010006bad6000041ed0000000000000000000000034f83891d00000000000000b600010002ffffffffffffffff0000002000000000root/usr/local/share/doc/libxcb0707010006bad7000041ed0000000000000000000000024f83891d00000000000000b600010002ffffffffffffffff0000002900000000root/usr/local/share/doc/libxcb/tutorial0707010006bad9000081a40000000000000000000000014ebbe15e0000069f000000b600010002ffffffffffffffff0000003100000000root/usr/local/share/doc/libxcb/tutorial/xcb.cssbody { background-color: #dddddd; color: #000000; padding: 8px; margin: 0px; } div.title { text-align: center; font-weight: bold; font-size: 28px; } div.emph { text-align: left; font-weight: bold; } div.section li.title { font-weight: bold; font-size: 22px; } div.section li.title p { font-weight: normal; font-size: 16px; } div.section li.title ul { font-weight: normal; font-size: 16px; } div.section li.title ol { font-weight: normal; font-size: 16px; } div.section li.subtitle { font-weight: bold; font-size: 18px; } div.section li.subsubtitle { font-weight: bold; font-size: 16px; } div.comp { border: thin solid #000000; color: #000000; background-color: #ffffe0; padding: 14px; } div.comp div.title { font-weight: bold; font-size: 16px; text-align: center; } div.comp div.xlib ul li { font-family: monospace; font-size: 12px; font-weight: bold; position: absolute; width: 49%; margin-left: 0px; margin-top: 10px; } div.comp div.xcb ul li { font-family: monospace; font-size: 12px; font-weight: bold; position: relative; margin-left: 51%; margin-top: 10px; } pre.code { border: thin solid #000000; color: #000000; background-color: #efefef; padding: 4px; text-align: left; font-size: 10px; } pre.text { border: thin solid #000000; color: #000000; background-color: #efefef; padding: 4px; text-align: left; font-size: 10px; } span.code { font-family: monospace; font-size: 12px; } pre.code .type { color: #44bb44; } pre.code .function { color: #449fb7; } pre.code .include { color: #7d93ae; } pre.code .string { color: #ef6e4b; } pre.code .keyword { color: #00bbbb; } 0707010006bad8000081a40000000000000000000000014ebbe15e0002bbbe000000b600010002ffffffffffffffff0000003400000000root/usr/local/share/doc/libxcb/tutorial/index.html Basic Graphics Programming With The XCB Library
Basic Graphics Programming With The XCB Library
  1. Introduction
  2. The client and server model of the X window system
  3. GUI programming: the asynchronous model
  4. Basic XCB notions
    1. The X Connection
    2. Requests and replies: the Xlib killers
    3. The Graphics Context
    4. Object handles
    5. Memory allocation for XCB structures
    6. Events
  5. Using XCB-based programs
    1. Installation of XCB
    2. Compiling XCB-based programs
  6. Opening and closing the connection to an X server
  7. Checking basic information about a connection
  8. Creating a basic window - the "hello world" program
  9. Drawing in a window
    1. Allocating a Graphics Context
    2. Changing the attributes of a Graphics Context
    3. Drawing primitives: point, line, box, circle,...
  10. X Events
    1. Registering for event types using event masks
    2. Receiving events: writing the events loop
    3. Expose events
    4. Getting user input
      1. Mouse button press and release events
      2. Mouse movement events
      3. Mouse pointer enter and leave events
      4. The keyboard focus
      5. Keyboard press and release events
    5. X events: a complete example
  11. Handling text and fonts
    1. The Font structure
    2. Opening a Font
    3. Assigning a Font to a Graphic Context
    4. Drawing text in a drawable
    5. Complete example
  12. Windows hierarchy
    1. Root, parent and child windows
    2. Events propagation
  13. Interacting with the window manager
    1. Window properties
    2. Setting the window name and icon name
    3. Setting preferred window size(s)
    4. Setting miscellaneous window manager hints
    5. Setting an application's icon
    6. Obeying the delete-window protocol
  14. Simple window operations
    1. Mapping and unmapping a window
    2. Configuring a window
    3. Moving a window around the screen
    4. Resizing a window
    5. Changing windows stacking order: raise and lower
    6. Iconifying and de-iconifying a window
    7. Getting informations about a window
  15. Using colors to paint the rainbow
    1. Color maps
    2. Allocating and freeing Color Maps
    3. Allocating and freeing a color entry
    4. Drawing with a color
  16. X Bitmaps and Pixmaps
    1. What is a X Bitmap ? An X Pixmap ?
    2. Loading a bitmap from a file
    3. Drawing a bitmap in a window
    4. Creating a pixmap
    5. Drawing a pixmap in a window
    6. Freeing a pixmap
  17. Messing with the mouse cursor
    1. Creating and destroying a mouse cursor
    2. Setting a window's mouse cursor
    3. Complete example
  18. Translation of basic Xlib functions and macros
    1. Members of the Display structure
      1. ConnectionNumber
      2. DefaultScreen
      3. QLength
      4. ScreenCount
      5. ServerVendor
      6. ProtocolVersion
      7. ProtocolRevision
      8. VendorRelease
      9. DisplayString
      10. BitmapUnit
      11. BitmapBitOrder
      12. BitmapPad
      13. ImageByteOrder
    2. ScreenOfDisplay related functions
      1. ScreenOfDisplay
      2. DefaultScreenOfDisplay
      3. RootWindow / RootWindowOfScreen
      4. DefaultRootWindow
      5. DefaultVisual / DefaultVisualOfScreen
      6. DefaultGC / DefaultGCOfScreen
      7. BlackPixel / BlackPixelOfScreen
      8. WhitePixel / WhitePixelOfScreen
      9. DisplayWidth / WidthOfScreen
      10. DisplayHeight / HeightOfScreen
      11. DisplayWidthMM / WidthMMOfScreen
      12. DisplayHeightMM / HeightMMOfScreen
      13. DisplayPlanes / DefaultDepth / DefaultDepthOfScreen / PlanesOfScreen
      14. DefaultColormap / DefaultColormapOfScreen
      15. MinCmapsOfScreen
      16. MaxCmapsOfScreen
      17. DoesSaveUnders
      18. DoesBackingStore
      19. EventMaskOfScreen
    3. Miscellaneaous macros
      1. DisplayOfScreen
      2. DisplayCells / CellsOfScreen
  1. Introduction

    This tutorial is based on the Xlib Tutorial written by Guy Keren. The author allowed me to take some parts of his text, mainly the text which deals with the X Windows generality.

    This tutorial is intended for people who want to start to program with the XCB library. keep in mind that XCB, like the Xlib library, isn't what most programmers wanting to write X applications are looking for. They should use a much higher level GUI toolkit like Motif, LessTiff, GTK, QT, EWL, ETK, or use Cairo. However, we need to start somewhere. More than this, knowing how things work down below is never a bad idea.

    After reading this tutorial, one should be able to write very simple graphical programs, but not programs with decent user interfaces. For such programs, one of the previously mentioned libraries should be used.

    But what is XCB? Xlib has been the standard C binding for the X Window System protocol for many years now. It is an excellent piece of work, but there are applications for which it is not ideal, for example:

    • Small platforms: Xlib is a large piece of code, and it's difficult to make it smaller
    • Latency hiding: Xlib requests requiring a reply are effectively synchronous: they block until the reply appears, whether the result is needed immediately or not.
    • Direct access to the protocol: Xlib does quite a bit of caching, layering, and similar optimizations. While this is normally a feature, it makes it difficult to simply emit specified X protocol requests and process specific responses.
    • Threaded applications: While Xlib does attempt to support multithreading, the API makes this difficult and error-prone.
    • New extensions: The Xlib infrastructure provides limited support for the new creation of X extension client side code.

    For these reasons, among others, XCB, an X C binding, has been designed to solve the above problems and thus provide a base for

    • Toolkit implementation.
    • Direct protocol-level programming.
    • Lightweight emulation of commonly used portions of the Xlib API.

  2. The client and server model of the X window system

    The X Window System was developed with one major goal: flexibility. The idea was that the way things look is one thing, but the way things work is another matter. Thus, the lower levels provide the tools required to draw windows, handle user input, allow drawing graphics using colors (or black and white screens), etc. To this point, a decision was made to separate the system into two parts. A client that decides what to do, and a server that actually draws on the screen and reads user input in order to send it to the client for processing.

    This model is the complete opposite of what is used to when dealing with clients and servers. In our case, the user sits near the machine controlled by the server, while the client might be running on a remote machine. The server controls the screens, mouse and keyboard. A client may connect to the server, request that it draws a window (or several windows), and ask the server to send it any input the user sends to these windows. Thus, several clients may connect to a single X server (one might be running mail software, one running a WWW browser, etc). When input is sent by the user to some window, the server sends a message to the client controlling this window for processing. The client decides what to do with this input, and sends the server requests for drawing in the window.

    The whole session is carried out using the X message protocol. This protocol was originally carried over the TCP/IP protocol suite, allowing the client to run on any machine connected to the same network that the server is. Later on, the X servers were extended to allow clients running on the local machine with more optimized access to the server (note that an X protocol message may be several hundreds of KB in size), such as using shared memory, or using Unix domain sockets (a method for creating a logical channel on a Unix system between two processes).

  3. GUI programming: the asynchronous model

    Unlike conventional computer programs, that carry some serial nature, a GUI program usually uses an asynchronous programming model, also known as "event-driven programming". This means that that program mostly sits idle, waiting for events sent by the X server, and then acts upon these events. An event may say "The user pressed the 1st button mouse in spot (x,y)", or "The window you control needs to be redrawn". In order for the program to be responsive to the user input, as well as to refresh requests, it needs to handle each event in a rather short period of time (e.g. less that 200 milliseconds, as a rule of thumb).

    This also implies that the program may not perform operations that might take a long time while handling an event (such as opening a network connection to some remote server, or connecting to a database server, or even performing a long file copy operation). Instead, it needs to perform all these operations in an asynchronous manner. This may be done by using various asynchronous models to perform the longish operations, or by performing them in a different process or thread.

    So the way a GUI program looks is something like that:

    1. Perform initialization routines.
    2. Connect to the X server.
    3. Perform X-related initialization.
    4. While not finished:
      1. Receive the next event from the X server.
      2. Handle the event, possibly sending various drawing requests to the X server.
      3. If the event was a quit message, exit the loop.
    5. Close down the connection to the X server.
    6. Perform cleanup operations.

  4. Basic XCB notions

    XCB has been created to eliminate the need for programs to actually implement the X protocol layer. This library gives a program a very low-level access to any X server. Since the protocol is standardized, a client using any implementation of XCB may talk with any X server (the same occurs for Xlib, of course). We now give a brief description of the basic XCB notions. They will be detailed later.

    1. The X Connection

      The major notion of using XCB is the X Connection. This is a structure representing the connection we have open with a given X server. It hides a queue of messages coming from the server, and a queue of pending requests that our client intends to send to the server. In XCB, this structure is named 'xcb_connection_t'. It is analogous to the Xlib Display. When we open a connection to an X server, the library returns a pointer to such a structure. Later, we supply this pointer to any XCB function that should send messages to the X server or receive messages from this server.

    2. Requests and replies: the Xlib killers

      To ask for information from the X server, we have to make a request and ask for a reply. With Xlib, these two tasks are automatically done: Xlib locks the system, sends a request, waits for a reply from the X server and unlocks. This is annoying, especially if one makes a lot of requests to the X server. Indeed, Xlib has to wait for the end of a reply before asking for the next request (because of the locks that Xlib sends). For example, here is a time-line of N=4 requests/replies with Xlib, with a round-trip latency T_round_trip that is 5 times long as the time required to write or read a request/reply (T_write/T_read):

        W-----RW-----RW-----RW-----R
      
      • W: Writing request
      • -: Stalled, waiting for data
      • R: Reading reply

      The total time is N * (T_write + T_round_trip + T_read).

      With XCB, we can suppress most of the round-trips as the requests and the replies are not locked. We usually send a request, then XCB returns to us a cookie, which is an identifier. Then, later, we ask for a reply using this cookie and XCB returns a pointer to that reply. Hence, with XCB, we can send a lot of requests, and later in the program, ask for all the replies when we need them. Here is the time-line for 4 requests/replies when we use this property of XCB:

        WWWW--RRRR
      

      The total time is N * T_write + max (0, T_round_trip - (N-1) * T_write) + N * T_read. Which can be considerably faster than all those Xlib round-trips.

      Here is a program that computes the time to create 500 atoms with Xlib and XCB. It shows the Xlib way, the bad XCB way (which is similar to Xlib) and the good XCB way. On my computer, XCB is 25 times faster than Xlib.

      #include <stdlib.h>
      #include <stdio.h>
      #include <string.h>
      #include <sys/time.h>
      
      #include <xcb/xcb.h>
      
      #include <X11/Xlib.h>
      
      double
      get_time(void)
      {
        struct timeval timev;
      
        gettimeofday(&timev, NULL);
      
        return (double)timev.tv_sec + (((double)timev.tv_usec) / 1000000);
      }
      
      int
      main ()
      {
        xcb_connection_t         *c;
        xcb_atom_t               *atoms;
        xcb_intern_atom_cookie_t *cs;
        char                    **names;
        int                       count;
        int                       i;
        double                    start;
        double                    end;
        double                    diff;
      
        /* Xlib */
        Display *disp;
        Atom    *atoms_x;
        double   diff_x;
      
        c = xcb_connect (NULL, NULL);
      
        count = 500;
        atoms = (xcb_atom_t *)malloc (count * sizeof (atoms));
        names = (char **)malloc (count * sizeof (char *));
      
        /* init names */
        for (i = 0; i < count; ++i) {
          char buf[100];
      
          sprintf (buf, "NAME%d", i);
          names[i] = strdup (buf);
        }
      
        /* bad use */
        start = get_time ();
      
        for (i = 0; i < count; ++i)
          atoms[i] = xcb_intern_atom_reply (c,
                                            xcb_intern_atom (c,
                                                             0,
                                                             strlen(names[i]),
                                                             names[i]),
                                            NULL)->atom;
      
        end = get_time ();
        diff = end - start;
        printf ("bad use time  : %f\n", diff);
      
        /* good use */
        start = get_time ();
      
        cs = (xcb_intern_atom_cookie_t *) malloc (count * sizeof(xcb_intern_atom_cookie_t));
        for(i = 0; i < count; ++i)
          cs[i] = xcb_intern_atom (c, 0, strlen(names[i]), names[i]);
      
        for(i = 0; i < count; ++i) {
          xcb_intern_atom_reply_t *r;
      
          r = xcb_intern_atom_reply(c, cs[i], 0);
          if(r)
            atoms[i] = r->atom;
          free(r);
        }
      
        end = get_time ();
        printf ("good use time : %f\n", end - start);
        printf ("ratio         : %f\n", diff / (end - start));
        diff = end - start;
      
        /* free var */
        free (atoms);
        free (cs);
      
        xcb_disconnect (c);
      
        /* Xlib */
        disp = XOpenDisplay (getenv("DISPLAY"));
      
        atoms_x = (Atom *)malloc (count * sizeof (atoms_x));
      
        start = get_time ();
      
        for (i = 0; i < count; ++i)
          atoms_x[i] = XInternAtom(disp, names[i], 0);
      
        end = get_time ();
        diff_x = end - start;
        printf ("Xlib use time : %f\n", diff_x);
        printf ("ratio         : %f\n", diff_x / diff);
      
        free (atoms_x);
        for (i = 0; i < count; ++i)
          free (names[i]);
        free (names);
      
        XCloseDisplay (disp);
      
        return 0;
      }
      
    3. The Graphic Context

      When we perform various drawing operations (graphics, text, etc), we may specify various options for controlling how the data will be drawn (what foreground and background colors to use, how line edges will be connected, what font to use when drawing some text, etc). In order to avoid the need to supply hundreds of parameters to each drawing function, a graphical context structure is used. We set the various drawing options in this structure, and then we pass a pointer to this structure to any drawing routines. This is rather handy, as we often need to perform several drawing requests with the same options. Thus, we would initialize a graphical context, set the desired options, and pass this structure to all drawing functions.

      Note that graphic contexts have no client-side structure in XCB, they're just XIDs. Xlib has a client-side structure because it caches the GC contents so it can avoid making redundant requests, but of course XCB doesn't do that.

    4. Events

      A structure is used to pass events received from the X server. XCB supports exactly the events specified in the protocol (33 events). This structure contains the type of event received (including a bit for whether it came from the server or another client), as well as the data associated with the event (e.g. position on the screen where the event was generated, mouse button associated with the event, region of the screen associated with a "redraw" event, etc). The way to read the event's data depends on the event type.


  5. Using XCB-based programs
    1. Installation of XCB

      TODO: These instructions are out of date. Just reference the main XCB page so we don't have to maintain these instructions in more than one place.

      To build XCB from source, you need to have installed at least:

      You have to checkout in the git repository the following modules:

      • Xau from xlibs
      • xcb-proto
      • xcb

      Note that xcb-proto exists only to install header files, so typing 'make' or 'make all' will produce the message "Nothing to be done for 'all'". That's normal.

    2. Compiling XCB-based programs

      Compiling XCB-based programs requires linking them with the XCB library. This is easily done thanks to pkgconfig:

      gcc -Wall prog.c -o prog `pkg-config --cflags --libs xcb`
      
  6. Opening and closing the connection to an X server

    An X program first needs to open the connection to the X server. There is a function that opens a connection. It requires the display name, or NULL. In the latter case, the display name will be the one in the environment variable DISPLAY.

    xcb_connection_t *xcb_connect (const char *displayname,
                                   int        *screenp);
    

    The second parameter returns the screen number used for the connection. The returned structure describes an XCB connection and is opaque. Here is how the connection can be opened:

    #include <xcb/xcb.h>
    
    int
    main ()
    {
      xcb_connection_t *c;
    
      /* Open the connection to the X server. Use the DISPLAY environment variable as the default display name */
      c = xcb_connect (NULL, NULL);
    
      return 0;
    }
    

    To close a connection, it suffices to use:

    void xcb_disconnect (xcb_connection_t *c);
    
    Comparison Xlib/XCB
    • XOpenDisplay ()
    • xcb_connect ()
    • XCloseDisplay ()
    • xcb_disconnect ()

  7. Checking basic information about a connection

    Once we have opened a connection to an X server, we should check some basic information about it: what screens it has, what is the size (width and height) of the screen, how many colors it supports (black and white ? grey scale ?, 256 colors ? more ?), and so on. We get such information from the xcb_screen_t structure:

    typedef struct {
        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;
    

    We could retrieve the first screen of the connection by using the following function:

    xcb_screen_iterator_t xcb_setup_roots_iterator (xcb_setup_t *R);
    

    Here is a small program that shows how to use this function:

    #include <stdio.h>
    
    #include <xcb/xcb.h>
    
    int
    main ()
    {
      xcb_connection_t     *c;
      xcb_screen_t         *screen;
      int                   screen_nbr;
      xcb_screen_iterator_t iter;
    
      /* Open the connection to the X server. Use the DISPLAY environment variable */
      c = xcb_connect (NULL, &screen_nbr);
    
      /* Get the screen #screen_nbr */
      iter = xcb_setup_roots_iterator (xcb_get_setup (c));
      for (; iter.rem; --screen_nbr, xcb_screen_next (&iter))
        if (screen_nbr == 0) {
          screen = iter.data;
          break;
        }
    
      printf ("\n");
      printf ("Informations of screen %ld:\n", screen->root);
      printf ("  width.........: %d\n", screen->width_in_pixels);
      printf ("  height........: %d\n", screen->height_in_pixels);
      printf ("  white pixel...: %ld\n", screen->white_pixel);
      printf ("  black pixel...: %ld\n", screen->black_pixel);
      printf ("\n");
    
      return 0;
    }
    
  8. Creating a basic window - the "hello world" program

    After we got some basic information about our screen, we can create our first window. In the X Window System, a window is characterized by an Id. So, in XCB, a window is of type:

    typedef uint32_t xcb_window_t;
    

    We first ask for a new Id for our window, with this function:

    xcb_window_t xcb_generate_id(xcb_connection_t *c);
    

    Then, XCB supplies the following function to create new windows:

    xcb_void_cookie_t xcb_create_window (xcb_connection_t *c,             /* Pointer to the xcb_connection_t structure */
                                         uint8_t           depth,         /* Depth of the screen */
                                         xcb_window_t      wid,           /* Id of the window */
                                         xcb_window_t      parent,        /* Id of an existing window that should be the parent of the new window */
                                         int16_t           x,             /* X position of the top-left corner of the window (in pixels) */
                                         int16_t           y,             /* Y position of the top-left corner of the window (in pixels) */
                                         uint16_t          width,         /* Width of the window (in pixels) */
                                         uint16_t          height,        /* Height of the window (in pixels) */
                                         uint16_t          border_width,  /* Width of the window's border (in pixels) */
                                         uint16_t          _class,
                                         xcb_visualid_t    visual,
                                         uint32_t          value_mask,
                                         const uint32_t   *value_list);
    

    The fact that we created the window does not mean that it will be drawn on screen. By default, newly created windows are not mapped on the screen (they are invisible). In order to make our window visible, we use the function xcb_map_window(), whose prototype is

    xcb_void_cookie_t xcb_map_window (xcb_connection_t *c,
                                      xcb_window_t      window);
    

    Finally, here is a small program to create a window of size 150x150 pixels, positioned at the top-left corner of the screen:

    #include <unistd.h>      /* pause() */
    
    #include <xcb/xcb.h>
    
    int
    main ()
    {
      xcb_connection_t *c;
      xcb_screen_t     *screen;
      xcb_window_t      win;
    
      /* Open the connection to the X server */
      c = xcb_connect (NULL, NULL);
    
      /* Get the first screen */
      screen = xcb_setup_roots_iterator (xcb_get_setup (c)).data;
    
      /* Ask for our window's Id */
      win = xcb_generate_id(c);
    
      /* Create the window */
      xcb_create_window (c,                             /* Connection          */
                         XCB_COPY_FROM_PARENT,          /* depth (same as root)*/
                         win,                           /* window Id           */
                         screen->root,                  /* parent window       */
                         0, 0,                          /* x, y                */
                         150, 150,                      /* width, height       */
                         10,                            /* border_width        */
                         XCB_WINDOW_CLASS_INPUT_OUTPUT, /* class               */
                         screen->root_visual,           /* visual              */
                         0, NULL);                      /* masks, not used yet */
    
      /* Map the window on the screen */
      xcb_map_window (c, win);
    
      /* Make sure commands are sent before we pause, so window is shown */
      xcb_flush (c);
    
      pause ();    /* hold client until Ctrl-C */
    
      return 0;
    }
    

    In this code, you see one more function - xcb_flush(), not explained yet. It is used to flush all the pending requests. More precisely, there are 2 functions that do such things. The first one is xcb_flush():

    int xcb_flush (xcb_connection_t *c);
    

    This function flushes all pending requests to the X server (much like the fflush() function is used to flush standard output). The second function is xcb_aux_sync():

    int xcb_aux_sync (xcb_connection_t *c);
    

    This functions also flushes all pending requests to the X server, and then waits until the X server finishing processing these requests. In a normal program, this will not be necessary (we'll see why when we get to write a normal X program), but for now, we put it there.

    The window that is created by the above code has a non defined background. This one can be set to a specific color, thanks to the two last parameters of xcb_create_window(), which are not described yet. See the subsections Configuring a window or Registering for event types using event masks for examples on how to use these parameters. In addition, as no events are handled, you have to make a Ctrl-C to interrupt the program.

    TODO: one should tell what these functions return and about the generic error

    Comparison Xlib/XCB
    • XCreateWindow ()
    • xcb_generate_id ()
    • xcb_create_window ()

  9. Drawing in a window

    Drawing in a window can be done using various graphical functions (drawing pixels, lines, rectangles, etc). In order to draw in a window, we first need to define various general drawing parameters (what line width to use, which color to draw with, etc). This is done using a graphical context.

    1. Allocating a Graphics Context

      As we said, a graphical context defines several attributes to be used with the various drawing functions. For this, we define a graphical context. We can use more than one graphical context with a single window, in order to draw in multiple styles (different colors, different line widths, etc). In XCB, a Graphics Context is, as a window, characterized by an Id:

      typedef uint32_t xcb_gcontext_t;
      

      We first ask the X server to attribute an Id to our graphic context with this function:

      xcb_gcontext_t xcb_generate_id (xcb_connection_t *c);
      

      Then, we set the attributes of the graphic context with this function:

      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);
      

      We give now an example on how to allocate a graphic context that specifies that each drawing function that uses it will draw in foreground with a black color.

      #include <xcb/xcb.h>
      
      int
      main ()
      {
        xcb_connection_t *c;
        xcb_screen_t     *screen;
        xcb_drawable_t    win;
        xcb_gcontext_t    black;
        uint32_t          mask;
        uint32_t          value[1];
      
        /* Open the connection to the X server and get the first screen */
        c = xcb_connect (NULL, NULL);
        screen = xcb_setup_roots_iterator (xcb_get_setup (c)).data;
      
        /* Create a black graphic context for drawing in the foreground */
        win = screen->root;
        black = xcb_generate_id (c);
        mask = XCB_GC_FOREGROUND;
        value[0] = screen->black_pixel;
        xcb_create_gc (c, black, win, mask, value);
      
        return 0;
      }
      

      Note should be taken regarding the role of "value_mask" and "value_list" in the prototype of xcb_create_gc(). Since a graphic context has many attributes, and since we often just want to define a few of them, we need to be able to tell the xcb_create_gc() which attributes we want to set. This is what the "value_mask" parameter is for. We then use the "value_list" parameter to specify actual values for the attribute we defined in "value_mask". Thus, for each constant used in "value_list", we will use the matching constant in "value_mask". In this case, we define a graphic context with one attribute: when drawing (a point, a line, etc), the foreground color will be black. The rest of the attributes of this graphic context will be set to their default values.

      See the next Subsection for more details.

      Comparison Xlib/XCB
      • XCreateGC ()
      • xcb_generate_id ()
      • xcb_create_gc ()

    2. Changing the attributes of a Graphics Context

      Once we have allocated a Graphic Context, we may need to change its attributes (for example, changing the foreground color we use to draw a line, or changing the attributes of the font we use to display strings. See Subsections Drawing with a color and Assigning a Font to a Graphic Context). This is done by using this function:

      xcb_void_cookie_t xcb_change_gc (xcb_connection_t *c,           /* The XCB Connection */
                                       xcb_gcontext_t    gc,          /* The Graphic Context */
                                       uint32_t          value_mask,  /* Components of the Graphic Context that have to be set */
                                       const uint32_t   *value_list); /* Value as specified by value_mask */
      

      The value_mask parameter could take any combination of these masks from the xcb_gc_t enumeration:

      • XCB_GC_FUNCTION
      • XCB_GC_PLANE_MASK
      • XCB_GC_FOREGROUND
      • XCB_GC_BACKGROUND
      • XCB_GC_LINE_WIDTH
      • XCB_GC_LINE_STYLE
      • XCB_GC_CAP_STYLE
      • XCB_GC_JOIN_STYLE
      • XCB_GC_FILL_STYLE
      • XCB_GC_FILL_RULE
      • XCB_GC_TILE
      • XCB_GC_STIPPLE
      • XCB_GC_TILE_STIPPLE_ORIGIN_X
      • XCB_GC_TILE_STIPPLE_ORIGIN_Y
      • XCB_GC_FONT
      • XCB_GC_SUBWINDOW_MODE
      • XCB_GC_GRAPHICS_EXPOSURES
      • XCB_GC_CLIP_ORIGIN_X
      • XCB_GC_CLIP_ORIGIN_Y
      • XCB_GC_CLIP_MASK
      • XCB_GC_DASH_OFFSET
      • XCB_GC_DASH_LIST
      • XCB_GC_ARC_MODE

      It is possible to set several attributes at the same time (for example setting the attributes of a font and the color which will be used to display a string), by OR'ing these values in value_mask. Then value_list has to be an array which lists the value for the respective attributes. These values must be in the same order as masks listed above. See Subsection Drawing with a color to have an example.

      TODO: set the links of the 3 subsections, once they will be written :)

      TODO: give an example which sets several attributes.

    3. Drawing primitives: point, line, box, circle,...

      After we have created a Graphic Context, we can draw on a window using this Graphic Context, with a set of XCB functions, collectively called "drawing primitives". Let see how they are used.

      To draw a point, or several points, we use

      xcb_void_cookie_t xcb_poly_point (xcb_connection_t  *c,               /* The connection to the X server */
                                        uint8_t            coordinate_mode, /* Coordinate mode, usually set to XCB_COORD_MODE_ORIGIN */
                                        xcb_drawable_t     drawable,        /* The drawable on which we want to draw the point(s) */
                                        xcb_gcontext_t     gc,              /* The Graphic Context we use to draw the point(s) */
                                        uint32_t           points_len,      /* The number of points */
                                        const xcb_point_t *points);         /* An array of points */
      

      The coordinate_mode parameter specifies the coordinate mode. Available values are

      • XCB_COORD_MODE_ORIGIN
      • XCB_COORD_MODE_PREVIOUS

      If XCB_COORD_MODE_PREVIOUS is used, then all points but the first one are relative to the immediately previous point.

      The xcb_point_t type is just a structure with two fields (the coordinates of the point):

      typedef struct {
          int16_t x;
          int16_t y;
      } xcb_point_t;
      

      You could see an example in xpoints.c. TODO Set the link.

      To draw a line, or a polygonal line, we use

      xcb_void_cookie_t xcb_poly_line (xcb_connection_t  *c,               /* The connection to the X server */
                                       uint8_t            coordinate_mode, /* Coordinate mode, usually set to XCB_COORD_MODE_ORIGIN */
                                       xcb_drawable_t     drawable,        /* The drawable on which we want to draw the line(s) */
                                       xcb_gcontext_t     gc,              /* The Graphic Context we use to draw the line(s) */
                                       uint32_t           points_len,      /* The number of points in the polygonal line */
                                       const xcb_point_t *points);         /* An array of points */
      

      This function will draw the line between the first and the second points, then the line between the second and the third points, and so on.

      To draw a segment, or several segments, we use

      xcb_void_cookie_t xcb_poly_segment (xcb_connection_t    *c,              /* The connection to the X server */
                                          xcb_drawable_t       drawable,       /* The drawable on which we want to draw the segment(s) */
                                          xcb_gcontext_t       gc,             /* The Graphic Context we use to draw the segment(s) */
                                          uint32_t             segments_len,   /* The number of segments */
                                          const xcb_segment_t *segments);      /* An array of segments */
      

      The xcb_segment_t type is just a structure with four fields (the coordinates of the two points that define the segment):

      typedef struct {
          int16_t x1;
          int16_t y1;
          int16_t x2;
          int16_t y2;
      } xcb_segment_t;
      

      To draw a rectangle, or several rectangles, we use

      xcb_void_cookie_t xcb_poly_rectangle (xcb_connection_t      *c,              /* The connection to the X server */
                                            xcb_drawable_t         drawable,       /* The drawable on which we want to draw the rectangle(s) */
                                            xcb_gcontext_t         gc,             /* The Graphic Context we use to draw the rectangle(s) */
                                            uint32_t               rectangles_len, /* The number of rectangles */
                                            const xcb_rectangle_t *rectangles);    /* An array of rectangles */
      

      The xcb_rectangle_t type is just a structure with four fields (the coordinates of the top-left corner of the rectangle, and its width and height):

      typedef struct {
          int16_t  x;
          int16_t  y;
          uint16_t width;
          uint16_t height;
      } xcb_rectangle_t;
      

      To draw an elliptical arc, or several elliptical arcs, we use

      xcb_void_cookie_t xcb_poly_arc (xcb_connection_t *c,          /* The connection to the X server */
                                      xcb_drawable_t    drawable,   /* The drawable on which we want to draw the arc(s) */
                                      xcb_gcontext_t    gc,         /* The Graphic Context we use to draw the arc(s) */
                                      uint32_t          arcs_len,   /* The number of arcs */
                                      const xcb_arc_t  *arcs);      /* An array of arcs */
      

      The xcb_arc_t type is a structure with six fields:

      typedef struct {
          int16_t  x;       /* Top left x coordinate of the rectangle surrounding the ellipse */
          int16_t  y;       /* Top left y coordinate of the rectangle surrounding the ellipse */
          uint16_t width;   /* Width of the rectangle surrounding the ellipse */
          uint16_t height;  /* Height of the rectangle surrounding the ellipse */
          int16_t  angle1;  /* Angle at which the arc begins */
          int16_t  angle2;  /* Angle at which the arc ends */
      } xcb_arc_t;
      

      Note: the angles are expressed in units of 1/64 of a degree, so to have an angle of 90 degrees, starting at 0, angle1 = 0 and angle2 = 90 << 6. Positive angles indicate counterclockwise motion, while negative angles indicate clockwise motion.

      The corresponding function which fill inside the geometrical object are listed below, without further explanation, as they are used as the above functions.

      To Fill a polygon defined by the points given as arguments , we use

      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);
      

      The shape parameter specifies a shape that helps the server to improve performance. Available values are

      • XCB_POLY_SHAPE_COMPLEX
      • XCB_POLY_SHAPE_NONCONVEX
      • XCB_POLY_SHAPE_CONVEX

      To fill one or several rectangles, we use

      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);
      

      To fill one or several arcs, we use

      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);
      

      To illustrate these functions, here is an example that draws four points, a polygonal line, two segments, two rectangles and two arcs. Remark that we use events for the first time, as an introduction to the next section.

      TODO: Use screen->root_depth for depth parameter.

      #include <stdlib.h>
      #include <stdio.h>
      
      #include <xcb/xcb.h>
      
      int
      main ()
      {
        xcb_connection_t    *c;
        xcb_screen_t        *screen;
        xcb_drawable_t       win;
        xcb_gcontext_t       foreground;
        xcb_generic_event_t *e;
        uint32_t             mask = 0;
        uint32_t             values[2];
      
        /* geometric objects */
        xcb_point_t          points[] = {
          {10, 10},
          {10, 20},
          {20, 10},
          {20, 20}};
      
        xcb_point_t          polyline[] = {
          {50, 10},
          { 5, 20},     /* rest of points are relative */
          {25,-20},
          {10, 10}};
      
        xcb_segment_t        segments[] = {
          {100, 10, 140, 30},
          {110, 25, 130, 60}};
      
        xcb_rectangle_t      rectangles[] = {
          { 10, 50, 40, 20},
          { 80, 50, 10, 40}};
      
        xcb_arc_t            arcs[] = {
          {10, 100, 60, 40, 0, 90 << 6},
          {90, 100, 55, 40, 0, 270 << 6}};
      
        /* Open the connection to the X server */
        c = xcb_connect (NULL, NULL);
      
        /* Get the first screen */
        screen = xcb_setup_roots_iterator (xcb_get_setup (c)).data;
      
        /* Create black (foreground) graphic context */
        win = screen->root;
      
        foreground = xcb_generate_id (c);
        mask = XCB_GC_FOREGROUND | XCB_GC_GRAPHICS_EXPOSURES;
        values[0] = screen->black_pixel;
        values[1] = 0;
        xcb_create_gc (c, foreground, win, mask, values);
      
        /* Ask for our window's Id */
        win = xcb_generate_id(c);
      
        /* Create the window */
        mask = XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK;
        values[0] = screen->white_pixel;
        values[1] = XCB_EVENT_MASK_EXPOSURE;
        xcb_create_window (c,                             /* Connection          */
                           XCB_COPY_FROM_PARENT,          /* depth               */
                           win,                           /* window Id           */
                           screen->root,                  /* parent window       */
                           0, 0,                          /* x, y                */
                           150, 150,                      /* width, height       */
                           10,                            /* border_width        */
                           XCB_WINDOW_CLASS_INPUT_OUTPUT, /* class               */
                           screen->root_visual,           /* visual              */
                           mask, values);                 /* masks */
      
        /* Map the window on the screen */
        xcb_map_window (c, win);
      
      
        /* We flush the request */
        xcb_flush (c);
      
        while ((e = xcb_wait_for_event (c))) {
          switch (e->response_type & ~0x80) {
          case XCB_EXPOSE: {
            /* We draw the points */
            xcb_poly_point (c, XCB_COORD_MODE_ORIGIN, win, foreground, 4, points);
      
            /* We draw the polygonal line */
            xcb_poly_line (c, XCB_COORD_MODE_PREVIOUS, win, foreground, 4, polyline);
      
            /* We draw the segements */
            xcb_poly_segment (c, win, foreground, 2, segments);
      
            /* We draw the rectangles */
            xcb_poly_rectangle (c, win, foreground, 2, rectangles);
      
            /* We draw the arcs */
            xcb_poly_arc (c, win, foreground, 2, arcs);
      
            /* We flush the request */
            xcb_flush (c);
      
            break;
          }
          default: {
            /* Unknown event type, ignore it */
            break;
          }
          }
          /* Free the Generic Event */
          free (e);
        }
      
        return 0;
      }
      
  10. X Events

    In an X program, everything is driven by events. Event painting on the screen is sometimes done as a response to an event (an Expose event). If part of a program's window that was hidden, gets exposed (e.g. the window was raised above other widows), the X server will send an "expose" event to let the program know it should repaint that part of the window. User input (key presses, mouse movement, etc) is also received as a set of events.

    1. Registering for event types using event masks

      During the creation of a window, you should give it what kind of events it wishes to receive. Thus, you may register for various mouse (also called pointer) events, keyboard events, expose events, and so on. This is done for optimizing the server-to-client connection (i.e. why send a program (that might even be running at the other side of the globe) an event it is not interested in ?)

      In XCB, you use the "value_mask" and "value_list" data in the xcb_create_window() function to register for events. Here is how we register for Expose event when creating a window:

        mask = XCB_CW_EVENT_MASK;
        valwin[0] = XCB_EVENT_MASK_EXPOSURE;
        win = xcb_generate_id (c);
        xcb_create_window (c, depth, win, root->root,
                           0, 0, 150, 150, 10,
                           XCB_WINDOW_CLASS_INPUT_OUTPUT, root->root_visual,
                           mask, valwin);
      

      XCB_EVENT_MASK_EXPOSURE is a constant defined in the xcb_event_mask_t enumeration in the "xproto.h" header file. If we wanted to register for several event types, we can logically "or" them, as follows:

        mask = XCB_CW_EVENT_MASK;
        valwin[0] = XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_BUTTON_PRESS;
        win = xcb_generate_id (c);
        xcb_create_window (c, depth, win, root->root,
                           0, 0, 150, 150, 10,
                           XCB_WINDOW_CLASS_INPUT_OUTPUT, root->root_visual,
                           mask, valwin);
      

      This registers for Expose events as well as for mouse button presses inside the created window. You should note that a mask may represent several event sub-types.

      The values that a mask could take are given by the xcb_cw_t enumeration:

      typedef enum {
          XCB_CW_BACK_PIXMAP       = 1L<<0,
          XCB_CW_BACK_PIXEL        = 1L<<1,
          XCB_CW_BORDER_PIXMAP     = 1L<<2,
          XCB_CW_BORDER_PIXEL      = 1L<<3,
          XCB_CW_BIT_GRAVITY       = 1L<<4,
          XCB_CW_WIN_GRAVITY       = 1L<<5,
          XCB_CW_BACKING_STORE     = 1L<<6,
          XCB_CW_BACKING_PLANES    = 1L<<7,
          XCB_CW_BACKING_PIXEL     = 1L<<8,
          XCB_CW_OVERRIDE_REDIRECT = 1L<<9,
          XCB_CW_SAVE_UNDER        = 1L<<10,
          XCB_CW_EVENT_MASK        = 1L<<11,
          XCB_CW_DONT_PROPAGATE    = 1L<<12,
          XCB_CW_COLORMAP          = 1L<<13,
          XCB_CW_CURSOR            = 1L<<14
      } xcb_cw_t;
      

      Note: we must be careful when setting the values of the valwin parameter, as they have to follow the order the xcb_cw_t enumeration. Here is an example:

        mask = XCB_CW_EVENT_MASK | XCB_CW_BACK_PIXMAP;
        valwin[0] = XCB_NONE;                                              /* for XCB_CW_BACK_PIXMAP (whose value is 1)     */
        valwin[1] = XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_BUTTON_PRESS; /* for XCB_CW_EVENT_MASK, whose value (2048)     */
                                                                           /* is greater than the one of XCB_CW_BACK_PIXMAP */
      

      If the window has already been created, we can use the xcb_change_window_attributes() function to set the events that the window will receive. The subsection Configuring a window shows its prototype. As an example, here is a piece of code that configures the window to receive the Expose and ButtonPress events:

      const static uint32_t values[] = { XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_BUTTON_PRESS };
      
      /* The connection c and the window win are supposed to be defined */
      
      xcb_change_window_attributes (c, win, XCB_CW_EVENT_MASK, values);
      

      Note: A common bug programmers do is adding code to handle new event types in their program, while forgetting to add the masks for these events in the creation of the window. Such a programmer then should sit down for hours debugging his program, wondering "Why doesn't my program notice that I released the button?", only to find that they registered for button press events but not for button release events.

    2. Receiving events: writing the events loop

      After we have registered for the event types we are interested in, we need to enter a loop of receiving events and handling them. There are two ways to receive events: a blocking way and a non-blocking way:

      • xcb_wait_for_event (xcb_connection_t *c) is the blocking way. It waits (so blocks...) until an event is queued in the X server. Then it retrieves it into a newly allocated structure (it dequeues it from the queue) and returns it. This structure has to be freed. The function returns NULL if an error occurs.
      • xcb_poll_for_event (xcb_connection_t *c, int *error) is the non-blocking way. It looks at the event queue and returns (and dequeues too) an existing event into a newly allocated structure. This structure has to be freed. It returns NULL if there is no event. If an error occurs, the parameter error will be filled with the error status.

      There are various ways to write such a loop. We present two ways to write such a loop, with the two functions above. The first one uses xcb_wait_for_event_t, which is similar to an event Xlib loop using only XNextEvent:

        xcb_generic_event_t *e;
      
        while ((e = xcb_wait_for_event (c))) {
          switch (e->response_type & ~0x80) {
          case XCB_EXPOSE: {
            /* Handle the Expose event type */
            xcb_expose_event_t *ev = (xcb_expose_event_t *)e;
      
            /* ... */
      
            break;
          }
          case XCB_BUTTON_PRESS: {
            /* Handle the ButtonPress event type */
            xcb_button_press_event_t *ev = (xcb_button_press_event_t *)e;
      
            /* ... */
      
            break;
          }
          default: {
            /* Unknown event type, ignore it */
            break;
          }
          }
          /* Free the Generic Event */
          free (e);
        }
      

      You will certainly want to use xcb_poll_for_event(xcb_connection_t *c, int *error) if, in Xlib, you use XPending or XCheckMaskEvent:

        while (XPending (display)) {
          XEvent ev;
      
          XNextEvent(d, &ev);
      
          /* Manage your event */
        }
      

      Such a loop in XCB looks like:

        xcb_generic_event_t *ev;
      
        while ((ev = xcb_poll_for_event (conn, 0))) {
          /* Manage your event */
        }
      

      The events are managed in the same way as with xcb_wait_for_event_t. Obviously, we will need to give the user some way of terminating the program. This is usually done by handling a special "quit" event, as we will soon see.

      Comparison Xlib/XCB
      • XNextEvent ()
      • xcb_wait_for_event ()
      • XPending ()
      • XCheckMaskEvent ()
      • xcb_poll_for_event ()

    3. Expose events

      The Expose event is one of the most basic (and most used) events an application may receive. It will be sent to us in one of several cases:

      • A window that covered part of our window has moved away, exposing part (or all) of our window.
      • Our window was raised above other windows.
      • Our window mapped for the first time.
      • Our window was de-iconified.

      You should note the implicit assumption hidden here: the contents of our window is lost when it is being obscured (covered) by either windows. One may wonder why the X server does not save this contents. The answer is: to save memory. After all, the number of windows on a display at a given time may be very large, and storing the contents of all of them might require a lot of memory. Actually, there is a way to tell the X server to store the contents of a window in special cases, as we will see later.

      When we get an Expose event, we should take the event's data from the members of the following structure:

      typedef struct {
          uint8_t      response_type; /* The type of the event, here it is XCB_EXPOSE */
          uint8_t      pad0;
          uint16_t     sequence;
          xcb_window_t window;        /* The Id of the window that receives the event (in case */
                                      /* our application registered for events on several windows */
          uint16_t     x;             /* The x coordinate of the top-left part of the window that needs to be redrawn */
          uint16_t     y;             /* The y coordinate of the top-left part of the window that needs to be redrawn */
          uint16_t     width;         /* The width of the part of the window that needs to be redrawn */
          uint16_t     height;        /* The height of the part of the window that needs to be redrawn */
          uint16_t     count;
      } xcb_expose_event_t;
      
    4. Getting user input

      User input traditionally comes from two sources: the mouse and the keyboard. Various event types exist to notify us of user input (a key being presses on the keyboard, a key being released on the keyboard, the mouse moving over our window, the mouse entering (or leaving) our window, and so on.

      1. Mouse button press and release events

        The first event type we will deal with is a mouse button-press (or button-release) event in our window. In order to register to such an event type, we should add one (or more) of the following masks when we create our window:

        • XCB_EVENT_MASK_BUTTON_PRESS: notify us of any button that was pressed in one of our windows.
        • XCB_EVENT_MASK_BUTTON_RELEASE: notify us of any button that was released in one of our windows.

        The structure to be checked for in our events loop is the same for these two events, and is the following:

        typedef struct {
            uint8_t         response_type; /* The type of the event, here it is xcb_button_press_event_t or xcb_button_release_event_t */
            xcb_button_t    detail;
            uint16_t        sequence;
            xcb_timestamp_t time;          /* Time, in milliseconds the event took place in */
            xcb_window_t    root;
            xcb_window_t    event;
            xcb_window_t    child;
            int16_t         root_x;
            int16_t         root_y;
            int16_t         event_x;       /* The x coordinate where the mouse has been pressed in the window */
            int16_t         event_y;       /* The y coordinate where the mouse has been pressed in the window */
            uint16_t        state;         /* A mask of the buttons (or keys) during the event */
            uint8_t         same_screen;
        } xcb_button_press_event_t;
        
        typedef xcb_button_press_event_t xcb_button_release_event_t;
        

        The time field may be used to calculate "double-click" situations by an application (e.g. if the mouse button was clicked two times in a duration shorter than a given amount of time, assume this was a double click).

        The state field is a mask of the buttons held down during the event. It is a bitwise OR of any of the following (from the xcb_button_mask_t and xcb_mod_mask_t enumerations):

        • XCB_BUTTON_MASK_1
        • XCB_BUTTON_MASK_2
        • XCB_BUTTON_MASK_3
        • XCB_BUTTON_MASK_4
        • XCB_BUTTON_MASK_5
        • XCB_MOD_MASK_SHIFT
        • XCB_MOD_MASK_LOCK
        • XCB_MOD_MASK_CONTROL
        • XCB_MOD_MASK_1
        • XCB_MOD_MASK_2
        • XCB_MOD_MASK_3
        • XCB_MOD_MASK_4
        • XCB_MOD_MASK_5

        Their names are self explanatory, where the first 5 refer to the mouse buttons that are being pressed, while the rest refer to various "special keys" that are being pressed (Mod1 is usually the 'Alt' key or the 'Meta' key).

        TODO: Problem: it seems that the state does not change when clicking with various buttons.

      2. Mouse movement events

        Similar to mouse button press and release events, we also can be notified of various mouse movement events. These can be split into two families. One is of mouse pointer movement while no buttons are pressed, and the second is a mouse pointer motion while one (or more) of the buttons are pressed (this is sometimes called "a mouse drag operation", or just "dragging"). The following event masks may be added during the creation of our window:

        • XCB_EVENT_MASK_POINTER_MOTION: events of the pointer moving in one of the windows controlled by our application, while no mouse button is held pressed.
        • XCB_EVENT_MASK_BUTTON_MOTION: Events of the pointer moving while one or more of the mouse buttons is held pressed.
        • XCB_EVENT_MASK_BUTTON_1_MOTION: same as XCB_EVENT_MASK_BUTTON_MOTION, but only when the 1st mouse button is held pressed.
        • XCB_EVENT_MASK_BUTTON_2_MOTION, XCB_EVENT_MASK_BUTTON_3_MOTION, XCB_EVENT_MASK_BUTTON_4_MOTION, XCB_EVENT_MASK_BUTTON_5_MOTION: same as XCB_EVENT_MASK_BUTTON_1_MOTION, but respectively for 2nd, 3rd, 4th and 5th mouse button.

        The structure to be checked for in our events loop is the same for these events, and is the following:

        typedef struct {
            uint8_t         response_type; /* The type of the event */
            uint8_t         detail;
            uint16_t        sequence;
            xcb_timestamp_t time;          /* Time, in milliseconds the event took place in */
            xcb_window_t    root;
            xcb_window_t    event;
            xcb_window_t    child;
            int16_t         root_x;
            int16_t         root_y;
            int16_t         event_x;       /* The x coordinate of the mouse when the  event was generated */
            int16_t         event_y;       /* The y coordinate of the mouse when the  event was generated */
            uint16_t        state;         /* A mask of the buttons (or keys) during the event */
            uint8_t         same_screen;
        } xcb_motion_notify_event_t;
        
      3. Mouse pointer enter and leave events

        Another type of event that applications might be interested in, is a mouse pointer entering a window the program controls, or leaving such a window. Some programs use these events to show the user that the application is now in focus. In order to register for such an event type, we should add one (or more) of the following masks when we create our window:

        • xcb_event_enter_window_t: notify us when the mouse pointer enters any of our controlled windows.
        • xcb_event_leave_window_t: notify us when the mouse pointer leaves any of our controlled windows.

        The structure to be checked for in our events loop is the same for these two events, and is the following:

        typedef struct {
            uint8_t         response_type; /* The type of the event */
            uint8_t         detail;
            uint16_t        sequence;
            xcb_timestamp_t time;          /* Time, in milliseconds the event took place in */
            xcb_window_t    root;
            xcb_window_t    event;
            xcb_window_t    child;
            int16_t         root_x;
            int16_t         root_y;
            int16_t         event_x;       /* The x coordinate of the mouse when the  event was generated */
            int16_t         event_y;       /* The y coordinate of the mouse when the  event was generated */
            uint16_t        state;         /* A mask of the buttons (or keys) during the event */
            uint8_t         mode;          /* The number of mouse button that was clicked */
            uint8_t         same_screen_focus;
        } xcb_enter_notify_event_t;
        
        typedef xcb_enter_notify_event_t xcb_leave_notify_event_t;
        
      4. The keyboard focus

        There may be many windows on a screen, but only a single keyboard attached to them. How does the X server then know which window should be sent a given keyboard input ? This is done using the keyboard focus. Only a single window on the screen may have the keyboard focus at a given time. There is a XCB function that allows a program to set the keyboard focus to a given window. The user can usually set the keyboard focus using the window manager (often by clicking on the title bar of the desired window). Once our window has the keyboard focus, every key press or key release will cause an event to be sent to our program (if it regsitered for these event types...).

      5. Keyboard press and release events

        If a window controlled by our program currently holds the keyboard focus, it can receive key press and key release events. So, we should add one (or more) of the following masks when we create our window:

        • XCB_EVENT_MASK_KEY_PRESS: notify us when a key was pressed while any of our controlled windows had the keyboard focus.
        • XCB_EVENT_MASK_KEY_RELEASE: notify us when a key was released while any of our controlled windows had the keyboard focus.

        The structure to be checked for in our events loop is the same for these two events, and is the following:

        typedef struct {
            uint8_t         response_type; /* The type of the event */
            xcb_keycode_t   detail;
            uint16_t        sequence;
            xcb_timestamp_t time;          /* Time, in milliseconds the event took place in */
            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;
        } xcb_key_press_event_t;
        
        typedef xcb_key_press_event_t xcb_key_release_event_t;
        

        The detail field refers to the physical key on the keyboard.

        TODO: Talk about getting the ASCII code from the key code.

    5. X events: a complete example

      As an example for handling events, we show a program that creates a window, enters an events loop and checks for all the events described above, and writes on the terminal the relevant characteristics of the event. With this code, it should be easy to add drawing operations, like those which have been described above.

      #include <stdlib.h>
      #include <stdio.h>
      
      #include <xcb/xcb.h>
      
      void
      print_modifiers (uint32_t mask)
      {
        const char **mod, *mods[] = {
          "Shift", "Lock", "Ctrl", "Alt",
          "Mod2", "Mod3", "Mod4", "Mod5",
          "Button1", "Button2", "Button3", "Button4", "Button5"
        };
        printf ("Modifier mask: ");
        for (mod = mods ; mask; mask >>= 1, mod++)
          if (mask & 1)
            printf(*mod);
        putchar ('\n');
      }
      
      int
      main ()
      {
        xcb_connection_t    *c;
        xcb_screen_t        *screen;
        xcb_window_t         win;
        xcb_generic_event_t *e;
        uint32_t             mask = 0;
        uint32_t             values[2];
      
        /* Open the connection to the X server */
        c = xcb_connect (NULL, NULL);
      
        /* Get the first screen */
        screen = xcb_setup_roots_iterator (xcb_get_setup (c)).data;
      
        /* Ask for our window's Id */
        win = xcb_generate_id (c);
      
        /* Create the window */
        mask = XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK;
        values[0] = screen->white_pixel;
        values[1] = XCB_EVENT_MASK_EXPOSURE       | XCB_EVENT_MASK_BUTTON_PRESS   |
                    XCB_EVENT_MASK_BUTTON_RELEASE | XCB_EVENT_MASK_POINTER_MOTION |
                    XCB_EVENT_MASK_ENTER_WINDOW   | XCB_EVENT_MASK_LEAVE_WINDOW   |
                    XCB_EVENT_MASK_KEY_PRESS      | XCB_EVENT_MASK_KEY_RELEASE;
        xcb_create_window (c,                             /* Connection          */
                           0,                             /* depth               */
                           win,                           /* window Id           */
                           screen->root,                  /* parent window       */
                           0, 0,                          /* x, y                */
                           150, 150,                      /* width, height       */
                           10,                            /* border_width        */
                           XCB_WINDOW_CLASS_INPUT_OUTPUT, /* class               */
                           screen->root_visual,           /* visual              */
                           mask, values);                 /* masks */
      
        /* Map the window on the screen */
        xcb_map_window (c, win);
      
        xcb_flush (c);
      
        while ((e = xcb_wait_for_event (c))) {
          switch (e->response_type & ~0x80) {
          case XCB_EXPOSE: {
            xcb_expose_event_t *ev = (xcb_expose_event_t *)e;
      
            printf ("Window %ld exposed. Region to be redrawn at location (%d,%d), with dimension (%d,%d)\n",
                    ev->window, ev->x, ev->y, ev->width, ev->height);
            break;
          }
          case XCB_BUTTON_PRESS: {
            xcb_button_press_event_t *ev = (xcb_button_press_event_t *)e;
            print_modifiers(ev->state);
      
            switch (ev->detail) {
            case 4:
              printf ("Wheel Button up in window %ld, at coordinates (%d,%d)\n",
                      ev->event, ev->event_x, ev->event_y);
              break;
            case 5:
              printf ("Wheel Button down in window %ld, at coordinates (%d,%d)\n",
                      ev->event, ev->event_x, ev->event_y);
              break;
            default:
              printf ("Button %d pressed in window %ld, at coordinates (%d,%d)\n",
                      ev->detail, ev->event, ev->event_x, ev->event_y);
            }
            break;
          }
          case XCB_BUTTON_RELEASE: {
            xcb_button_release_event_t *ev = (xcb_button_release_event_t *)e;
            print_modifiers(ev->state);
      
            printf ("Button %d released in window %ld, at coordinates (%d,%d)\n",
                    ev->detail, ev->event, ev->event_x, ev->event_y);
            break;
          }
          case XCB_MOTION_NOTIFY: {
            xcb_motion_notify_event_t *ev = (xcb_motion_notify_event_t *)e;
      
            printf ("Mouse moved in window %ld, at coordinates (%d,%d)\n",
                    ev->event, ev->event_x, ev->event_y);
            break;
          }
          case XCB_ENTER_NOTIFY: {
            xcb_enter_notify_event_t *ev = (xcb_enter_notify_event_t *)e;
      
            printf ("Mouse entered window %ld, at coordinates (%d,%d)\n",
                    ev->event, ev->event_x, ev->event_y);
            break;
          }
          case XCB_LEAVE_NOTIFY: {
            xcb_leave_notify_event_t *ev = (xcb_leave_notify_event_t *)e;
      
            printf ("Mouse left window %ld, at coordinates (%d,%d)\n",
                    ev->event, ev->event_x, ev->event_y);
            break;
          }
          case XCB_KEY_PRESS: {
            xcb_key_press_event_t *ev = (xcb_key_press_event_t *)e;
            print_modifiers(ev->state);
      
            printf ("Key pressed in window %ld\n",
                    ev->event);
            break;
          }
          case XCB_KEY_RELEASE: {
            xcb_key_release_event_t *ev = (xcb_key_release_event_t *)e;
            print_modifiers(ev->state);
      
            printf ("Key released in window %ld\n",
                    ev->event);
            break;
          }
          default:
            /* Unknown event type, ignore it */
            printf("Unknown event: %d\n", e->response_type);
            break;
          }
          /* Free the Generic Event */
          free (e);
        }
      
        return 0;
      }
      
  11. Handling text and fonts

    Besides drawing graphics on a window, we often want to draw text. Text strings have two major properties: the characters to be drawn and the font with which they are drawn. In order to draw text, we need to first request the X server to load a font. We then assign a font to a Graphic Context, and finally, we draw the text in a window, using the Graphic Context.

    1. The Font structure

      In order to support flexible fonts, a font type is defined. You know what ? It's an Id:

      typedef uint32_t xcb_font_t;
      

      It is used to contain information about a font, and is passed to several functions that handle fonts selection and text drawing. We ask the X server to attribute an Id to our font with the function:

      xcb_font_t xcb_generate_id (xcb_connection_t *c);
      

    2. Opening a Font

      To open a font, we use the following function:

      xcb_void_cookie_t xcb_open_font (xcb_connection_t *c,
                                       xcb_font_t        fid,
                                       uint16_t          name_len,
                                       const char       *name);
      

      The fid parameter is the font Id defined by xcb_generate_id() (see above). The name parameter is the name of the font you want to open. Use the command xlsfonts in a terminal to know which are the fonts available on your computer. The parameter name_len is the length of the name of the font (given by strlen()).

    3. Assigning a Font to a Graphic Context

      Once a font is opened, you have to create a Graphic Context that will contain the informations about the color of the foreground and the background used when you draw a text in a Drawable. Here is an exemple of a Graphic Context that will allow us to draw an opened font with a black foreground and a white background:

        /*
         * c is the connection
         * screen is the screen where the window is displayed
         * window is the window in which we will draw the text
         * font is the opened font
         */
      
        uint32_t             value_list[3];
        xcb_gcontext_t       gc;
        uint32_t             mask;
      
        gc = xcb_generate_id (c);
        mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND | XCB_GC_FONT;
        value_list[0] = screen->black_pixel;
        value_list[1] = screen->white_pixel;
        value_list[2] = font;
        xcb_create_gc (c, gc, window, mask, value_list);
      
        /* The font is not needed anymore, so we close it */
        xcb_close_font (c, font);
      
    4. Drawing text in a drawable

      To draw a text in a drawable, we use the following function:

      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);
      

      The string parameter is the text to draw. The location of the drawing is given by the parameters x and y. The base line of the text is exactly the parameter y.

    5. Complete example

      This example draw a text at 10 pixels (for the base line) of the bottom of a window. Pressing the Esc key exits the program.

      #include <stdlib.h>
      #include <stdio.h>
      #include <string.h>
      
      #include <xcb/xcb.h>
      
      #define WIDTH 300
      #define HEIGHT 100
      
      
      
      static xcb_gc_t gc_font_get (xcb_connection_t *c,
                                   xcb_screen_t     *screen,
                                   xcb_window_t      window,
                                   const char       *font_name);
      
      static void text_draw (xcb_connection_t *c,
                             xcb_screen_t     *screen,
                             xcb_window_t      window,
                             int16_t           x1,
                             int16_t           y1,
                             const char       *label);
      
      static void
      text_draw (xcb_connection_t *c,
                 xcb_screen_t     *screen,
                 xcb_window_t      window,
                 int16_t           x1,
                 int16_t           y1,
                 const char       *label)
      {
        xcb_void_cookie_t    cookie_gc;
        xcb_void_cookie_t    cookie_text;
        xcb_generic_error_t *error;
        xcb_gcontext_t       gc;
        uint8_t              length;
      
        length = strlen (label);
      
        gc = gc_font_get(c, screen, window, "7x13");
      
        cookie_text = xcb_image_text_8_checked (c, length, window, gc,
                                                x1,
                                                y1, label);
        error = xcb_request_check (c, cookie_text);
        if (error) {
          fprintf (stderr, "ERROR: can't paste text : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      
        cookie_gc = xcb_free_gc (c, gc);
        error = xcb_request_check (c, cookie_gc);
        if (error) {
          fprintf (stderr, "ERROR: can't free gc : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      }
      
      static xcb_gc_t
      gc_font_get (xcb_connection_t *c,
                   xcb_screen_t     *screen,
                   xcb_window_t      window,
                   const char       *font_name)
      {
        uint32_t             value_list[3];
        xcb_void_cookie_t    cookie_font;
        xcb_void_cookie_t    cookie_gc;
        xcb_generic_error_t *error;
        xcb_font_t           font;
        xcb_gcontext_t       gc;
        uint32_t             mask;
      
        font = xcb_generate_id (c);
        cookie_font = xcb_open_font_checked (c, font,
                                             strlen (font_name),
                                             font_name);
      
        error = xcb_request_check (c, cookie_font);
        if (error) {
          fprintf (stderr, "ERROR: can't open font : %d\n", error->error_code);
          xcb_disconnect (c);
          return -1;
        }
      
        gc = xcb_generate_id (c);
        mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND | XCB_GC_FONT;
        value_list[0] = screen->black_pixel;
        value_list[1] = screen->white_pixel;
        value_list[2] = font;
        cookie_gc = xcb_create_gc_checked (c, gc, window, mask, value_list);
        error = xcb_request_check (c, cookie_gc);
        if (error) {
          fprintf (stderr, "ERROR: can't create gc : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      
        cookie_font = xcb_close_font_checked (c, font);
        error = xcb_request_check (c, cookie_font);
        if (error) {
          fprintf (stderr, "ERROR: can't close font : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      
        return gc;
      }
      
      int main ()
      {
        xcb_screen_iterator_t screen_iter;
        xcb_connection_t     *c;
        const xcb_setup_t    *setup;
        xcb_screen_t         *screen;
        xcb_generic_event_t  *e;
        xcb_generic_error_t  *error;
        xcb_void_cookie_t     cookie_window;
        xcb_void_cookie_t     cookie_map;
        xcb_window_t          window;
        uint32_t              mask;
        uint32_t              values[2];
        int                   screen_number;
      
        /* getting the connection */
        c = xcb_connect (NULL, &screen_number);
        if (!c) {
          fprintf (stderr, "ERROR: can't connect to an X server\n");
          return -1;
        }
      
        /* getting the current screen */
        setup = xcb_get_setup (c);
      
        screen = NULL;
        screen_iter = xcb_setup_roots_iterator (setup);
        for (; screen_iter.rem != 0; --screen_number, xcb_screen_next (&screen_iter))
          if (screen_number == 0)
            {
              screen = screen_iter.data;
              break;
            }
        if (!screen) {
          fprintf (stderr, "ERROR: can't get the current screen\n");
          xcb_disconnect (c);
          return -1;
        }
      
        /* creating the window */
        window = xcb_generate_id (c);
        mask = XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK;
        values[0] = screen->white_pixel;
        values[1] =
          XCB_EVENT_MASK_KEY_RELEASE |
          XCB_EVENT_MASK_BUTTON_PRESS |
          XCB_EVENT_MASK_EXPOSURE |
          XCB_EVENT_MASK_POINTER_MOTION;
        cookie_window = xcb_create_window_checked (c,
                                                   screen->root_depth,
                                                   window, screen->root,
                                                   20, 200, WIDTH, HEIGHT,
                                                   0, XCB_WINDOW_CLASS_INPUT_OUTPUT,
                                                   screen->root_visual,
                                                   mask, values);
        cookie_map = xcb_map_window_checked (c, window);
      
        /* error managing */
        error = xcb_request_check (c, cookie_window);
        if (error) {
          fprintf (stderr, "ERROR: can't create window : %d\n", error->error_code);
          xcb_disconnect (c);
          return -1;
        }
        error = xcb_request_check (c, cookie_map);
        if (error) {
          fprintf (stderr, "ERROR: can't map window : %d\n", error->error_code);
          xcb_disconnect (c);
          return -1;
        }
      
        xcb_flush(c);
      
        while (1) {
          e = xcb_poll_for_event(c);
          if (e) {
            switch (e->response_type & ~0x80) {
            case XCB_EXPOSE: {
              char *text;
      
              text = "Press ESC key to exit...";
              text_draw (c, screen, window, 10, HEIGHT - 10, text);
              break;
            }
            case XCB_KEY_RELEASE: {
              xcb_key_release_event_t *ev;
      
              ev = (xcb_key_release_event_t *)e;
      
              switch (ev->detail) {
                /* ESC */
              case 9:
                free (e);
                xcb_disconnect (c);
                return 0;
              }
            }
            }
            free (e);
          }
        }
      
        return 0;
      }
      
  12. Interacting with the window manager

    After we have seen how to create windows and draw on them, we take one step back, and look at how our windows are interacting with their environment (the full screen and the other windows). First of all, our application needs to interact with the window manager. The window manager is responsible to decorating drawn windows (i.e. adding a frame, an iconify button, a system menu, a title bar, etc), as well as handling icons shown when windows are being iconified. It also handles ordering of windows on the screen, and other administrative tasks. We need to give it various hints as to how we want it to treat our application's windows.

    1. Window properties

      Many of the parameters communicated to the window manager are passed using data called "properties". These properties are attached by the X server to different windows, and are stored in a format that makes it possible to read them from different machines that may use different architectures (remember that an X client program may run on a remote machine).

      The property and its type (a string, an integer, etc) are Id. Their type are xcb_atom_t:

      typedef uint32_t xcb_atom_t;
      

      To change the property of a window, we use the following function:

      xcb_void_cookie_t xcb_change_property (xcb_connection_t *c,       /* Connection to the X server */
                                             uint8_t          mode,     /* Property mode */
                                             xcb_window_t     window,   /* Window */
                                             xcb_atom_t       property, /* Property to change */
                                             xcb_atom_t       type,     /* Type of the property */
                                             uint8_t          format,   /* Format of the property (8, 16, 32) */
                                             uint32_t         data_len, /* Length of the data parameter */
                                             const void      *data);    /* Data */
      

      The mode parameter coud be one of the following values (defined in enumeration xcb_prop_mode_t in the xproto.h header file):

      • XCB_PROP_MODE_REPLACE
      • XCB_PROP_MODE_PREPEND
      • XCB_PROP_MODE_APPEND

    2. Setting the window name and icon name

      The first thing we want to do would be to set the name for our window. This is done using the xcb_change_property() function. This name may be used by the window manager as the title of the window (in the title bar), in a task list, etc. The property atom to use to set the name of a window is WM_NAME (and WM_ICON_NAME for the iconified window) and its type is STRING. Here is an example of utilization:

      #include <string.h>
      
      #include <xcb/xcb.h>
      #include <xcb/xcb_atom.h>
      
      int
      main ()
      {
        xcb_connection_t *c;
        xcb_screen_t     *screen;
        xcb_window_t      win;
        char             *title = "Hello World !";
        char             *title_icon = "Hello World ! (iconified)";
      
      
      
        /* Open the connection to the X server */
        c = xcb_connect (NULL, NULL);
      
        /* Get the first screen */
        screen = xcb_setup_roots_iterator (xcb_get_setup (c)).data;
      
        /* Ask for our window's Id */
        win = xcb_generate_id (c);
      
        /* Create the window */
        xcb_create_window (c,                             /* Connection          */
                           0,                             /* depth               */
                           win,                           /* window Id           */
                           screen->root,                  /* parent window       */
                           0, 0,                          /* x, y                */
                           250, 150,                      /* width, height       */
                           10,                            /* border_width        */
                           XCB_WINDOW_CLASS_INPUT_OUTPUT, /* class               */
                           screen->root_visual,           /* visual              */
                           0, NULL);                      /* masks, not used     */
      
        /* Set the title of the window */
        xcb_change_property (c, XCB_PROP_MODE_REPLACE, win,
                             WM_NAME, STRING, 8,
                             strlen (title), title);
      
        /* Set the title of the window icon */
        xcb_change_property (c, XCB_PROP_MODE_REPLACE, win,
                             WM_ICON_NAME, STRING, 8,
                             strlen(title_icon), title_icon);
      
        /* Map the window on the screen */
        xcb_map_window (c, win);
      
        xcb_flush (c);
      
        while (1) {}
      
        return 0;
      }
      

      Note: the use of the atoms needs our program to be compiled and linked against xcb_atom, so that we have to use

      gcc prog.c -o prog `pkg-config --cflags --libs xcb_atom`
      

      for the program to compile fine.

  13. Simple window operations

    One more thing we can do to our window is manipulate them on the screen (resize them, move them, raise or lower them, iconify them, and so on). Some window operations functions are supplied by XCB for this purpose.

    1. Mapping and un-mapping a window

      The first pair of operations we can apply on a window is mapping it, or un-mapping it. Mapping a window causes the window to appear on the screen, as we have seen in our simple window program example. Un-mapping it causes it to be removed from the screen (although the window as a logical entity still exists). This gives the effect of making a window hidden (unmapped) and shown again (mapped). For example, if we have a dialog box window in our program, instead of creating it every time the user asks to open it, we can create the window once, in an un-mapped mode, and when the user asks to open it, we simply map the window on the screen. When the user clicked the 'OK' or 'Cancel' button, we simply un-map the window. This is much faster than creating and destroying the window, however, the cost is wasted resources, both on the client side, and on the X server side.

      To map a window, you use the following function:

      xcb_void_cookie_t xcb_map_window (xcb_connection_t *c,
                                        xcb_window_t      window);
      

      To have a simple example, see the example above. The mapping operation will cause an Expose event to be sent to our application, unless the window is completely covered by other windows.

      Un-mapping a window is also simple. You use the function

      xcb_void_cookie_t xcb_unmap_window (xcb_connection_t *c,
                                          xcb_window_t      window);
      

      The utilization of this function is the same as xcb_map_window().

    2. Configuring a window

      As we have seen when we have created our first window, in the X Events subsection, we can set some attributes for the window (that is, the position, the size, the events the window will receive, etc). If we want to modify them, but the window is already created, we can change them by using the following function:

      xcb_void_cookie_t xcb_configure_window (xcb_connection_t *c,            /* The connection to the X server*/
                                              xcb_window_t      window,       /* The window to configure */
                                              uint16_t          value_mask,   /* The mask */
                                              const uint32_t   *value_list);  /* The values to set */
      

      We set the value_mask to one or several mask values that are in the xcb_config_window_t enumeration in the xproto.h header:

      • XCB_CONFIG_WINDOW_X: new x coordinate of the window's top left corner
      • XCB_CONFIG_WINDOW_Y: new y coordinate of the window's top left corner
      • XCB_CONFIG_WINDOW_WIDTH: new width of the window
      • XCB_CONFIG_WINDOW_HEIGHT: new height of the window
      • XCB_CONFIG_WINDOW_BORDER_WIDTH: new width of the border of the window
      • XCB_CONFIG_WINDOW_SIBLING
      • XCB_CONFIG_WINDOW_STACK_MODE: the new stacking order

      We then give to value_mask the new value. We now describe how to use xcb_configure_window_t in some useful situations.

    3. Moving a window around the screen

      An operation we might want to do with windows is to move them to a different location. This can be done like this:

      const static uint32_t values[] = { 10, 20 };
      
      /* The connection c and the window win are supposed to be defined */
      
      /* Move the window to coordinates x = 10 and y = 20 */
      xcb_configure_window (c, win, XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y, values);
      

      Note that when the window is moved, it might get partially exposed or partially hidden by other windows, and thus we might get Expose events due to this operation.

    4. Resizing a window

      Yet another operation we can do is to change the size of a window. This is done using the following code:

      const static uint32_t values[] = { 200, 300 };
      
      /* The connection c and the window win are supposed to be defined */
      
      /* Resize the window to width = 10 and height = 20 */
      xcb_configure_window (c, win, XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT, values);
      

      We can also combine the move and resize operations using one single call to xcb_configure_window_t:

      const static uint32_t values[] = { 10, 20, 200, 300 };
      
      /* The connection c and the window win are supposed to be defined */
      
      /* Move the window to coordinates x = 10 and y = 20 */
      /* and resize the window to width = 10 and height = 20 */
      xcb_configure_window (c, win, XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT, values);
      
    5. Changing windows stacking order: raise and lower

      Until now, we changed properties of a single window. We'll see that there are properties that relate to the window and other windows. One of them is the stacking order. That is, the order in which the windows are layered on top of each other. The front-most window is said to be on the top of the stack, while the back-most window is at the bottom of the stack. Here is how to manipulate our windows stack order:

      const static uint32_t values[] = { XCB_STACK_MODE_ABOVE };
      
      /* The connection c and the window win are supposed to be defined */
      
      /* Move the window on the top of the stack */
      xcb_configure_window (c, win, XCB_CONFIG_WINDOW_STACK_MODE, values);
      
      const static uint32_t values[] = { XCB_STACK_MODE_BELOW };
      
      /* The connection c and the window win are supposed to be defined */
      
      /* Move the window on the bottom of the stack */
      xcb_configure_window (c, win, XCB_CONFIG_WINDOW_STACK_MODE, values);
      
    6. Getting information about a window

      Just like we can set various attributes of our windows, we can also ask the X server supply the current values of these attributes. For example, we can check where a window is located on the screen, what is its current size, whether it is mapped or not, etc. The structure that contains some of this information is

      typedef struct {
          uint8_t      response_type;
          uint8_t      depth;         /* depth of the window */
          uint16_t     sequence;
          uint32_t     length;
          xcb_window_t root;          /* Id of the root window *>
          int16_t      x;             /* X coordinate of the window's location */
          int16_t      y;             /* Y coordinate of the window's location */
          uint16_t     width;         /* Width of the window */
          uint16_t     height;        /* Height of the window */
          uint16_t     border_width;  /* Width of the window's border */
      } xcb_get_geometry_reply_t;
      

      XCB fill this structure with two functions:

      xcb_get_geometry_cookie_t  xcb_get_geometry       (xcb_connection_t         *c,
                                                         xcb_drawable_t            drawable);
      xcb_get_geometry_reply_t  *xcb_get_geometry_reply (xcb_connection_t         *c,
                                                         xcb_get_geometry_cookie_t cookie,
                                                         xcb_generic_error_t     **e);
      

      You use them as follows:

        xcb_connection_t         *c;
        xcb_drawable_t            win;
        xcb_get_geometry_reply_t *geom;
      
        /* You initialize c and win */
      
        geom = xcb_get_geometry_reply (c, xcb_get_geometry (c, win), NULL);
      
        /* Do something with the fields of geom */
      
        free (geom);
      

      Remark that you have to free the structure, as xcb_get_geometry_reply_t allocates a newly one.

      One problem is that the returned location of the window is relative to its parent window. This makes these coordinates rather useless for any window manipulation functions, like moving it on the screen. In order to overcome this problem, we need to take a two-step operation. First, we find out the Id of the parent window of our window. We then translate the above relative coordinates to the screen coordinates.

      To get the Id of the parent window, we need this structure:

      typedef struct {
          uint8_t      response_type;
          uint8_t      pad0;
          uint16_t     sequence;
          uint32_t     length;
          xcb_window_t root;
          xcb_window_t parent;       /* Id of the parent window */
          uint16_t     children_len;
          uint8_t      pad1[14];
      } xcb_query_tree_reply_t;
      

      To fill this structure, we use these two functions:

      xcb_query_tree_cookie_t xcb_query_tree       (xcb_connection_t        *c,
                                                    xcb_window_t             window);
      xcb_query_tree_reply_t *xcb_query_tree_reply (xcb_connection_t        *c,
                                                    xcb_query_tree_cookie_t  cookie,
                                                    xcb_generic_error_t    **e);
      

      The translated coordinates will be found in this structure:

      typedef struct {
          uint8_t      response_type;
          uint8_t      same_screen;
          uint16_t     sequence;
          uint32_t     length;
          xcb_window_t child;
          uint16_t     dst_x;        /* Translated x coordinate */
          uint16_t     dst_y;        /* Translated y coordinate */
      } xcb_translate_coordinates_reply_t;
      

      As usual, we need two functions to fill this structure:

      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);
      xcb_translate_coordinates_reply_t *xcb_translate_coordinates_reply (xcb_connection_t                  *c,
                                                                          xcb_translate_coordinates_cookie_t cookie,
                                                                          xcb_generic_error_t              **e);
      

      We use them as follows:

        xcb_connection_t                  *c;
        xcb_drawable_t                     win;
        xcb_get_geometry_reply_t          *geom;
        xcb_query_tree_reply_t            *tree;
        xcb_translate_coordinates_reply_t *trans;
      
        /* You initialize c and win */
      
        geom  = xcb_get_geometry_reply (c, xcb_get_geometry (c, win), NULL);
        if (!geom)
          return 0;
      
        tree  = xcb_query_tree_reply (c, xcb_query_tree (c, win), NULL);
        if (!tree)
          return 0;
      
        trans = xcb_translate_coordinates_reply (c,
                                                 xcb_translate_coordinates (c,
                                                                            win,
                                                                            tree->parent,
                                                                            geom->x, geom->y),
                                                 NULL);
        if (!trans)
          return 0;
      
        /* the translated coordinates are in trans->dst_x and trans->dst_y */
      
        free (trans);
        free (tree);
        free (geom);
      

      Of course, as for geom, tree and trans have to be freed.

      The work is a bit hard, but XCB is a very low-level library.

      TODO: the utilization of these functions should be a prog, which displays the coordinates of the window.

      There is another structure that gives informations about our window:

      typedef struct {
          uint8_t        response_type;
          uint8_t        backing_store;
          uint16_t       sequence;
          uint32_t       length;
          xcb_visualid_t visual;                /* Visual of the window */
          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;             /* Map state of the window */
          uint8_t        override_redirect;
          xcb_colormap_t colormap;              /* Colormap of the window */
          uint32_t       all_event_masks;
          uint32_t       your_event_mask;
          uint16_t       do_not_propagate_mask;
      } xcb_get_window_attributes_reply_t;
      

      XCB supplies these two functions to fill it:

      xcb_get_window_attributes_cookie_t xcb_get_window_attributes       (xcb_connection_t                  *c,
                                                                          xcb_window_t                       window);
      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);
      

      You use them as follows:

        xcb_connection_t                  *c;
        xcb_drawable_t                     win;
        xcb_get_window_attributes_reply_t *attr;
      
        /* You initialize c and win */
      
        attr = xcb_get_window_attributes_reply (c, xcb_get_window_attributes (c, win), NULL);
      
        if (!attr)
          return 0;
      
        /* Do something with the fields of attr */
      
        free (attr);
      

      As for geom, attr has to be freed.

  14. Using colors to paint the rainbow

    Up until now, all our painting operation were done using black and white. We will (finally) see now how to draw using colors.

    1. Color maps

      In the beginning, there were not enough colors. Screen controllers could only support a limited number of colors simultaneously (initially 2, then 4, 16 and 256). Because of this, an application could not just ask to draw in a "light purple-red" color, and expect that color to be available. Each application allocated the colors it needed, and when all the color entries (4, 16, 256 colors) were in use, the next color allocation would fail.

      Thus, the notion of "a color map" was introduced. A color map is a table whose size is the same as the number of simultaneous colors a given screen controller. Each entry contained the RGB (Red, Green and Blue) values of a different color (all colors can be drawn using some combination of red, green and blue). When an application wants to draw on the screen, it does not specify which color to use. Rather, it specifies which color entry of some color map to be used during this drawing. Change the value in this color map entry and the drawing will use a different color.

      In order to be able to draw using colors that got something to do with what the programmer intended, color map allocation functions are supplied. You could ask to allocate entry for a color with a set of RGB values. If one already existed, you would get its index in the table. If none existed, and the table was not full, a new cell would be allocated to contain the given RGB values, and its index returned. If the table was full, the procedure would fail. You could then ask to get a color map entry with a color that is closest to the one you were asking for. This would mean that the actual drawing on the screen would be done using colors similar to what you wanted, but not the same.

      On today's more modern screens where one runs an X server with support for 16 million colors, this limitation looks a little silly, but remember that there are still older computers with older graphics cards out there. Using color map, support for these screen becomes transparent to you. On a display supporting 16 million colors, any color entry allocation request would succeed. On a display supporting a limited number of colors, some color allocation requests would return similar colors. It won't look as good, but your application would still work.

    2. Allocating and freeing Color Maps

      When you draw using XCB, you can choose to use the standard color map of the screen your window is displayed on, or you can allocate a new color map and apply it to a window. In the latter case, each time the mouse moves onto your window, the screen color map will be replaced by your window's color map, and you'll see all the other windows on screen change their colors into something quite bizzare. In fact, this is the effect you get with X applications that use the "-install" command line option.

      In XCB, a color map is (as often in X) an Id:

      typedef uint32_t xcb_colormap_t;
      

      In order to access the screen's default color map, you just have to retrieve the default_colormap field of the xcb_screen_t structure (see Section Checking basic information about a connection):

      #include <stdio.h>
      
      #include <xcb/xcb.h>
      
      int
      main ()
      {
        xcb_connection_t *c;
        xcb_screen_t     *screen;
        xcb_colormap_t    colormap;
      
        /* Open the connection to the X server and get the first screen */
        c = xcb_connect (NULL, NULL);
        screen = xcb_setup_roots_iterator (xcb_get_setup (c)).data;
      
        colormap = screen->default_colormap;
      
        return 0;
      }
      

      This will return the color map used by default on the first screen (again, remember that an X server may support several different screens, each of which might have its own resources).

      The other option, that of allocating a new colormap, works as follows. We first ask the X server to give an Id to our color map, with this function:

      xcb_colormap_t xcb_generate_id (xcb_connection_t *c);
      

      Then, we create the color map with

      xcb_void_cookie_t xcb_create_colormap (xcb_connection_t *c,       /* Pointer to the xcb_connection_t structure */
                                             uint8_t           alloc,   /* Colormap entries to be allocated (AllocNone or AllocAll) */
                                             xcb_colormap_t    mid,     /* Id of the color map */
                                             xcb_window_t      window,  /* Window on whose screen the colormap will be created */
                                             xcb_visualid_t    visual); /* Id of the visual supported by the screen */
      

      Here is an example of creation of a new color map:

      #include <xcb/xcb.h>
      
      int
      main ()
      {
        xcb_connection_t *c;
        xcb_screen_t     *screen;
        xcb_window_t      win;
        xcb_colormap_t    cmap
      
        /* Open the connection to the X server and get the first screen */
        c = xcb_connect (NULL, NULL);
        screen = xcb_setup_roots_iterator (xcb_get_setup (c)).data;
      
        /* We create the window win here*/
      
        cmap = xcb_generate_id (c);
        xcb_create_colormap (c, XCB_COLORMAP_ALLOC_NONE, cmap, win, screen->root_visual);
      
        return 0;
      }
      

      Note that the window parameter is only used to allow the X server to create the color map for the given screen. We can then use this color map for any window drawn on the same screen.

      To free a color map, it suffices to use this function:

      xcb_void_cookie_t xcb_free_colormap (xcb_connection_t *c,   /* The connection */
                                           xcb_colormap_t cmap);  /* The color map */
      
      Comparison Xlib/XCB
      • XCreateColormap ()
      • xcb_generate_id ()
      • xcb_create_colormap ()
      • XFreeColormap ()
      • xcb_free_colormap ()

    3. Allocating and freeing a color entry

      Once we got access to some color map, we can start allocating colors. The informations related to a color are stored in the following structure:

      typedef struct {
          uint8_t  response_type;
          uint8_t  pad0;
          uint16_t sequence;
          uint32_t length;
          uint16_t red;          /* The red component   */
          uint16_t green;        /* The green component */
          uint16_t blue;         /* The blue component  */
          uint8_t  pad1[2];
          uint32_t pixel;        /* The entry in the color map, supplied by the X server */
      } xcb_alloc_color_reply_t;
      

      XCB supplies these two functions to fill it:

      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);
      xcb_alloc_color_reply_t *xcb_alloc_color_reply (xcb_connection_t        *c,
                                                      xcb_alloc_color_cookie_t cookie,
                                                      xcb_generic_error_t    **e);
      

      The fuction xcb_alloc_color() takes the 3 RGB components as parameters (red, green and blue). Here is an example of using these functions:

      #include <malloc.h>
      
      #include <xcb/xcb.h>
      
      int
      main ()
      {
        xcb_connection_t        *c;
        xcb_screen_t            *screen;
        xcb_window_t             win;
        xcb_colormap_t           cmap;
        xcb_alloc_color_reply_t *rep;
      
        /* Open the connection to the X server and get the first screen */
        c = xcb_connect (NULL, NULL);
        screen = xcb_setup_roots_iterator (xcb_get_setup (c)).data;
      
        /* We create the window win here*/
      
        cmap = xcb_generate_id (c);
        xcb_create_colormap (c, XCB_COLORMAP_ALLOC_NONE, cmap, win, screen->root_visual);
      
        rep = xcb_alloc_color_reply (c, xcb_alloc_color (c, cmap, 65535, 0, 0), NULL);
      
        if (!rep)
          return 0;
      
        /* Do something with r->pixel or the components */
      
        free (rep);
      
        return 0;
      }
      

      As xcb_alloc_color_reply() allocates memory, you have to free rep.

      TODO: Talk about freeing colors.

  15. X Bitmaps and Pixmaps

    One thing many so-called "Multi-Media" applications need to do, is display images. In the X world, this is done using bitmaps and pixmaps. We have already seen some usage of them when setting an icon for our application. Lets study them further, and see how to draw these images inside a window, along side the simple graphics and text we have seen so far.

    One thing to note before delving further, is that XCB (nor Xlib) supplies no means of manipulating popular image formats, such as gif, png, jpeg or tiff. It is up to the programmer (or to higher level graphics libraries) to translate these image formats into formats that the X server is familiar with (x bitmaps and x pixmaps).

    1. What is a X Bitmap? An X Pixmap?

      An X bitmap is a two-color image stored in a format specific to the X window system. When stored in a file, the bitmap data looks like a C source file. It contains variables defining the width and the height of the bitmap, an array containing the bit values of the bitmap (the size of the array is (width+7)/8*height and the bit and byte order are LSB), and an optional hot-spot location (that will be explained later, when discussing mouse cursors).

      An X pixmap is a format used to stored images in the memory of an X server. This format can store both black and white images (such as x bitmaps) as well as color images. It is the only image format supported by the X protocol, and any image to be drawn on screen, should be first translated into this format.

      In actuality, an X pixmap can be thought of as a window that does not appear on the screen. Many graphics operations that work on windows, will also work on pixmaps. Indeed, the type of X pixmap in XCB is an Id like a window:

      typedef uint32_t xcb_pixmap_t;
      

      Like Xlib, there is no difference between a Drawable, a Window or a Pixmap:

      typedef uint32_t xcb_drawable_t;
      

      in order to avoid confusion between a window and a pixmap. The operations that will work the same on a window or a pixmap will require a xcb_drawable_t

      Remark: In Xlib, there is no specific difference between a Drawable, a Pixmap or a Window: all are 32 bit long integer. XCB wraps all these different IDs in structures to provide some measure of type-safety.

    2. Creating a pixmap

      Sometimes we want to create an un-initialized pixmap, so we can later draw into it. This is useful for image drawing programs (creating a new empty canvas will cause the creation of a new pixmap on which the drawing can be stored). It is also useful when reading various image formats: we load the image data into memory, create a pixmap on the server, and then draw the decoded image data onto that pixmap.

      To create a new pixmap, we first ask the X server to give an Id to our pixmap, with this function:

      xcb_pixmap_t xcb_generate_id (xcb_connection_t *c);
      

      Then, XCB supplies the following function to create new pixmaps:

      xcb_void_cookie_t xcb_create_pixmap (xcb_connection_t *c,         /* Pointer to the xcb_connection_t structure */
                                           uint8_t           depth,     /* Depth of the screen */
                                           xcb_pixmap_t      pid,       /* Id of the pixmap */
                                           xcb_drawable_t    drawable,
                                           uint16_t          width,     /* Width of the window (in pixels) */
                                           uint16_t          height);   /* Height of the window (in pixels) */
      

      TODO: Explain the drawable parameter, and give an example (like xpoints.c)

    3. Drawing a pixmap in a window

      Once we got a handle to a pixmap, we can draw it on some window, using the following function:

      xcb_void_cookie_t xcb_copy_area (xcb_connection_t *c,             /* Pointer to the xcb_connection_t structure */
                                       xcb_drawable_t    src_drawable,  /* The Drawable we want to paste */
                                       xcb_drawable_t    dst_drawable,  /* The Drawable on which we copy the previous Drawable */
                                       xcb_gcontext_t    gc,            /* A Graphic Context */
                                       int16_t           src_x,         /* Top left x coordinate of the region we want to copy */
                                       int16_t           src_y,         /* Top left y coordinate of the region we want to copy */
                                       int16_t           dst_x,         /* Top left x coordinate of the region where we want to copy */
                                       int16_t           dst_y,         /* Top left y coordinate of the region where we want to copy */
                                       uint16_t          width,         /* Width of the region we want to copy */
                                       uint16_t          height);       /* Height of the region we want to copy */
      

      As you can see, we could copy the whole pixmap, as well as only a given rectangle of the pixmap. This is useful to optimize the drawing speed: we could copy only what we have modified in the pixmap.

      One important note should be made: it is possible to create pixmaps with different depths on the same screen. When we perform copy operations (a pixmap onto a window, etc), we should make sure that both source and target have the same depth. If they have a different depth, the operation would fail. The exception to this is if we copy a specific bit plane of the source pixmap using the xcb_copy_plane_t function. In such an event, we can copy a specific plane to the target window (in actuality, setting a specific bit in the color of each pixel copied). This can be used to generate strange graphic effects in a window, but that is beyond the scope of this tutorial.

    4. Freeing a pixmap

      Finally, when we are done using a given pixmap, we should free it, in order to free resources of the X server. This is done using this function:

      xcb_void_cookie_t xcb_free_pixmap (xcb_connection_t *c,        /* Pointer to the xcb_connection_t structure */
                                         xcb_pixmap_t      pixmap);  /* A given pixmap */
      

      Of course, after having freed it, we must not try accessing the pixmap again.

      TODO: Give an example, or a link to xpoints.c

  16. Messing with the mouse cursor

    It it possible to modify the shape of the mouse pointer (also called the X pointer) when in certain states, as we otfen see in programs. For example, a busy application would often display the sand clock over its main window, to give the user a visual hint that he should wait. Let's see how we can change the mouse cursor of our windows.

    1. Creating and destroying a mouse cursor

      There are two methods for creating cursors. One of them is by using a set of predefined cursors, that are supplied by the X server, the other is by using a user-supplied bitmap.

      In the first method, we use a special font named "cursor", and the function xcb_create_glyph_cursor:

      xcb_void_cookie_t xcb_create_glyph_cursor (xcb_connection_t *c,
                                                 xcb_cursor_t      cid,
                                                 xcb_font_t        source_font, /* font for the source glyph */
                                                 xcb_font_t        mask_font,   /* font for the mask glyph or XCB_NONE */
                                                 uint16_t          source_char, /* character glyph for the source */
                                                 uint16_t          mask_char,   /* character glyph for the mask */
                                                 uint16_t          fore_red,    /* red value for the foreground of the source */
                                                 uint16_t          fore_green,  /* green value for the foreground of the source */
                                                 uint16_t          fore_blue,   /* blue value for the foreground of the source */
                                                 uint16_t          back_red,    /* red value for the background of the source */
                                                 uint16_t          back_green,  /* green value for the background of the source */
                                                 uint16_t          back_blue)   /* blue value for the background of the source */
      

      TODO: Describe source_char and mask_char, for example by giving an example on how to get the values. There is a list there: X Font Cursors

      So we first open that font (see Loading a Font) and create the new cursor. As for every X ressource, we have to ask for an X id with xcb_generate_id first:

      xcb_font_t           font;
      xcb_cursor_t         cursor;
      
      /* The connection is set */
      
      font = xcb_generate_id (conn);
      xcb_open_font (conn, font, strlen ("cursor"), "cursor");
      
      cursor = xcb_generate_id (conn);
      xcb_create_glyph_cursor (conn, cursor, font, font,
                               58, 58 + 1,
                               0, 0, 0,
                               0, 0, 0);
      

      We have created the cursor "right hand" by specifying 58 to the source_font argument and 58 + 1 to the mask_font.

      The cursor is destroyed by using the function

      xcb_void_cookie_t xcb_free_cursor (xcb_connection_t *c,
                                         xcb_cursor_t      cursor);
      

      In the second method, we create a new cursor by using a pair of pixmaps, with depth of one (that is, two colors pixmaps). One pixmap defines the shape of the cursor, while the other works as a mask, specifying which pixels of the cursor will be actually drawn. The rest of the pixels will be transparent.

      TODO: give an example.

    2. Setting a window's mouse cursor

      Once the cursor is created, we can modify the cursor of our window by using xcb_change_window_attributes and using the XCB_CWCURSOR attribute:

      uint32_t mask;
      uint32_t value_list;
      
      /* The connection and window are set */
      /* The cursor is already created */
      
      mask = XCB_CWCURSOR;
      value_list = cursor;
      xcb_change_window_attributes (conn, window, mask, &value_list);
      

      Of course, the cursor and the font must be freed.

    3. Complete example

      The following example displays a window with a button. When entering the window, the window cursor is changed to an arrow. When clicking once on the button, the cursor is changed to a hand. When clicking again on the button, the cursor window gets back to the arrow. The Esc key exits the application.

      #include <stdlib.h>
      #include <stdio.h>
      #include <string.h>
      
      #include <xcb/xcb.h>
      
      #define WIDTH 300
      #define HEIGHT 150
      
      
      
      static xcb_gc_t gc_font_get (xcb_connection_t *c,
                                   xcb_screen_t     *screen,
                                   xcb_window_t      window,
                                   const char       *font_name);
      
      static void button_draw (xcb_connection_t *c,
                               xcb_screen_t     *screen,
                               xcb_window_t      window,
                               int16_t           x1,
                               int16_t           y1,
                               const char       *label);
      
      static void text_draw (xcb_connection_t *c,
                             xcb_screen_t     *screen,
                             xcb_window_t      window,
                             int16_t           x1,
                             int16_t           y1,
                             const char       *label);
      
      static void cursor_set (xcb_connection_t *c,
                              xcb_screen_t     *screen,
                              xcb_window_t      window,
                              int               cursor_id);
      
      
      static void
      button_draw (xcb_connection_t *c,
                   xcb_screen_t     *screen,
                   xcb_window_t      window,
                   int16_t           x1,
                   int16_t           y1,
                   const char       *label)
      {
        xcb_point_t          points[5];
        xcb_void_cookie_t    cookie_gc;
        xcb_void_cookie_t    cookie_line;
        xcb_void_cookie_t    cookie_text;
        xcb_generic_error_t *error;
        xcb_gcontext_t       gc;
        int16_t              width;
        int16_t              height;
        uint8_t              length;
        int16_t              inset;
      
        length = strlen (label);
        inset = 2;
      
        gc = gc_font_get(c, screen, window, "7x13");
      
        width = 7 * length + 2 * (inset + 1);
        height = 13 + 2 * (inset + 1);
        points[0].x = x1;
        points[0].y = y1;
        points[1].x = x1 + width;
        points[1].y = y1;
        points[2].x = x1 + width;
        points[2].y = y1 - height;
        points[3].x = x1;
        points[3].y = y1 - height;
        points[4].x = x1;
        points[4].y = y1;
        cookie_line = xcb_poly_line_checked (c, XCB_COORD_MODE_ORIGIN,
                                             window, gc, 5, points);
      
        error = xcb_request_check (c, cookie_line);
        if (error) {
          fprintf (stderr, "ERROR: can't draw lines : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      
        cookie_text = xcb_image_text_8_checked (c, length, window, gc,
                                                x1 + inset + 1,
                                                y1 - inset - 1, label);
        error = xcb_request_check (c, cookie_text);
        if (error) {
          fprintf (stderr, "ERROR: can't paste text : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      
        cookie_gc = xcb_free_gc (c, gc);
        error = xcb_request_check (c, cookie_gc);
        if (error) {
          fprintf (stderr, "ERROR: can't free gc : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      }
      
      static void
      text_draw (xcb_connection_t *c,
                 xcb_screen_t     *screen,
                 xcb_window_t      window,
                 int16_t           x1,
                 int16_t           y1,
                 const char       *label)
      {
        xcb_void_cookie_t    cookie_gc;
        xcb_void_cookie_t    cookie_text;
        xcb_generic_error_t *error;
        xcb_gcontext_t       gc;
        uint8_t              length;
      
        length = strlen (label);
      
        gc = gc_font_get(c, screen, window, "7x13");
      
        cookie_text = xcb_image_text_8_checked (c, length, window, gc,
                                                x1,
                                                y1, label);
        error = xcb_request_check (c, cookie_text);
        if (error) {
          fprintf (stderr, "ERROR: can't paste text : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      
        cookie_gc = xcb_free_gc (c, gc);
        error = xcb_request_check (c, cookie_gc);
        if (error) {
          fprintf (stderr, "ERROR: can't free gc : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      }
      
      static xcb_gc_t
      gc_font_get (xcb_connection_t *c,
                   xcb_screen_t     *screen,
                   xcb_window_t      window,
                   const char       *font_name)
      {
        uint32_t             value_list[3];
        xcb_void_cookie_t    cookie_font;
        xcb_void_cookie_t    cookie_gc;
        xcb_generic_error_t *error;
        xcb_font_t           font;
        xcb_gcontext_t       gc;
        uint32_t             mask;
      
        font = xcb_generate_id (c);
        cookie_font = xcb_open_font_checked (c, font,
                                             strlen (font_name),
                                             font_name);
      
        error = xcb_request_check (c, cookie_font);
        if (error) {
          fprintf (stderr, "ERROR: can't open font : %d\n", error->error_code);
          xcb_disconnect (c);
          return -1;
        }
      
        gc = xcb_generate_id (c);
        mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND | XCB_GC_FONT;
        value_list[0] = screen->black_pixel;
        value_list[1] = screen->white_pixel;
        value_list[2] = font;
        cookie_gc = xcb_create_gc_checked (c, gc, window, mask, value_list);
        error = xcb_request_check (c, cookie_gc);
        if (error) {
          fprintf (stderr, "ERROR: can't create gc : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      
        cookie_font = xcb_close_font_checked (c, font);
        error = xcb_request_check (c, cookie_font);
        if (error) {
          fprintf (stderr, "ERROR: can't close font : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      
        return gc;
      }
      
      static void
      cursor_set (xcb_connection_t *c,
                  xcb_screen_t     *screen,
                  xcb_window_t      window,
                  int               cursor_id)
      {
        uint32_t             values_list[3];
        xcb_void_cookie_t    cookie_font;
        xcb_void_cookie_t    cookie_gc;
        xcb_generic_error_t *error;
        xcb_font_t           font;
        xcb_cursor_t         cursor;
        xcb_gcontext_t       gc;
        uint32_t             mask;
        uint32_t             value_list;
      
        font = xcb_generate_id (c);
        cookie_font = xcb_open_font_checked (c, font,
                                             strlen ("cursor"),
                                             "cursor");
        error = xcb_request_check (c, cookie_font);
        if (error) {
          fprintf (stderr, "ERROR: can't open font : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      
        cursor = xcb_generate_id (c);
        xcb_create_glyph_cursor (c, cursor, font, font,
                                 cursor_id, cursor_id + 1,
                                 0, 0, 0,
                                 0, 0, 0);
      
        gc = xcb_generate_id (c);
        mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND | XCB_GC_FONT;
        values_list[0] = screen->black_pixel;
        values_list[1] = screen->white_pixel;
        values_list[2] = font;
        cookie_gc = xcb_create_gc_checked (c, gc, window, mask, values_list);
        error = xcb_request_check (c, cookie_gc);
        if (error) {
          fprintf (stderr, "ERROR: can't create gc : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      
        mask = XCB_CW_CURSOR;
        value_list = cursor;
        xcb_change_window_attributes (c, window, mask, &value_list);
      
        xcb_free_cursor (c, cursor);
      
        cookie_font = xcb_close_font_checked (c, font);
        error = xcb_request_check (c, cookie_font);
        if (error) {
          fprintf (stderr, "ERROR: can't close font : %d\n", error->error_code);
          xcb_disconnect (c);
          exit (-1);
        }
      }
      
      int main ()
      {
        xcb_screen_iterator_t screen_iter;
        xcb_connection_t     *c;
        const xcb_setup_t    *setup;
        xcb_screen_t         *screen;
        xcb_generic_event_t  *e;
        xcb_generic_error_t  *error;
        xcb_void_cookie_t     cookie_window;
        xcb_void_cookie_t     cookie_map;
        xcb_window_t          window;
        uint32_t              mask;
        uint32_t              values[2];
        int                   screen_number;
        uint8_t               is_hand = 0;
      
        /* getting the connection */
        c = xcb_connect (NULL, &screen_number);
        if (!c) {
          fprintf (stderr, "ERROR: can't connect to an X server\n");
          return -1;
        }
      
        /* getting the current screen */
        setup = xcb_get_setup (c);
      
        screen = NULL;
        screen_iter = xcb_setup_roots_iterator (setup);
        for (; screen_iter.rem != 0; --screen_number, xcb_screen_next (&screen_iter))
          if (screen_number == 0)
            {
              screen = screen_iter.data;
              break;
            }
        if (!screen) {
          fprintf (stderr, "ERROR: can't get the current screen\n");
          xcb_disconnect (c);
          return -1;
        }
      
        /* creating the window */
        window = xcb_generate_id (c);
        mask = XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK;
        values[0] = screen->white_pixel;
        values[1] =
          XCB_EVENT_MASK_KEY_RELEASE |
          XCB_EVENT_MASK_BUTTON_PRESS |
          XCB_EVENT_MASK_EXPOSURE |
          XCB_EVENT_MASK_POINTER_MOTION;
        cookie_window = xcb_create_window_checked (c,
                                                   screen->root_depth,
                                                   window, screen->root,
                                                   20, 200, WIDTH, HEIGHT,
                                                   0, XCB_WINDOW_CLASS_INPUT_OUTPUT,
                                                   screen->root_visual,
                                                   mask, values);
        cookie_map = xcb_map_window_checked (c, window);
      
        /* error managing */
        error = xcb_request_check (c, cookie_window);
        if (error) {
          fprintf (stderr, "ERROR: can't create window : %d\n", error->error_code);
          xcb_disconnect (c);
          return -1;
        }
        error = xcb_request_check (c, cookie_map);
        if (error) {
          fprintf (stderr, "ERROR: can't map window : %d\n", error->error_code);
          xcb_disconnect (c);
          return -1;
        }
      
        cursor_set (c, screen, window, 68);
      
        xcb_flush(c);
      
        while (1) {
          e = xcb_poll_for_event(c);
          if (e) {
            switch (e->response_type & ~0x80) {
            case XCB_EXPOSE: {
              char *text;
      
              text = "click here to change cursor";
              button_draw (c, screen, window,
                           (WIDTH - 7 * strlen(text)) / 2,
                           (HEIGHT - 16) / 2, text);
      
              text = "Press ESC key to exit...";
              text_draw (c, screen, window, 10, HEIGHT - 10, text);
              break;
            }
            case XCB_BUTTON_PRESS: {
              xcb_button_press_event_t *ev;
              int                       length;
      
              ev = (xcb_button_press_event_t *)e;
              length = strlen ("click here to change cursor");
      
              if ((ev->event_x >= (WIDTH - 7 * length) / 2) &&
                  (ev->event_x <= ((WIDTH - 7 * length) / 2 + 7 * length + 6)) &&
                  (ev->event_y >= (HEIGHT - 16) / 2 - 19) &&
                  (ev->event_y <= ((HEIGHT - 16) / 2)))
                is_hand = 1 - is_hand;
      
              is_hand ? cursor_set (c, screen, window, 58) : cursor_set (c, screen, window, 68);
            }
            case XCB_KEY_RELEASE: {
              xcb_key_release_event_t *ev;
      
              ev = (xcb_key_release_event_t *)e;
      
              switch (ev->detail) {
                /* ESC */
              case 9:
                free (e);
                xcb_disconnect (c);
                return 0;
              }
            }
            }
            free (e);
          }
        }
      
        return 0;
      }
      
  17. Translation of basic Xlib functions and macros

    The problem when you want to port an Xlib program to XCB is that you don't know if the Xlib function that you want to "translate" is a X Window one or an Xlib macro. In that section, we describe a way to translate the usual functions or macros that Xlib provides. It's usually just a member of a structure.

    1. Members of the Display structure

      In this section, we look at how to translate the macros that return some members of the Display structure. They are obtained by using a function that requires a xcb_connection_t * or a member of the xcb_setup_t structure (via the function xcb_get_setup), or a function that requires that structure.

      1. ConnectionNumber

        This number is the file descriptor that connects the client to the server. You just have to use that function:

        int xcb_get_file_descriptor (xcb_connection_t *c);
        
      2. DefaultScreen

        That number is not stored by XCB. It is returned in the second parameter of the function xcb_connect. Hence, you have to store it yourself if you want to use it. Then, to get the xcb_screen_t structure, you have to iterate on the screens. The equivalent function of the Xlib's ScreenOfDisplay function can be found below. This is also provided in the xcb_aux_t library as xcb_aux_get_screen(). OK, here is the small piece of code to get that number:

        xcb_connection_t *c;
        int               screen_default_nbr;
        
        /* you pass the name of the display you want to xcb_connect_t */
        
        c = xcb_connect (display_name, &screen_default_nbr);
        
        /* screen_default_nbr contains now the number of the default screen */
        
      3. QLength

        Not documented yet.

        However, this points out a basic difference in philosophy between Xlib and XCB. Xlib has several functions for filtering and manipulating the incoming and outgoing X message queues. XCB wishes to hide this as much as possible from the user, which allows for more freedom in implementation strategies.

      4. ScreenCount

        You get the count of screens with the functions xcb_get_setup and xcb_setup_roots_iterator (if you need to iterate):

        xcb_connection_t *c;
        int               screen_count;
        
        /* you init the connection */
        
        screen_count = xcb_setup_roots_iterator (xcb_get_setup (c)).rem;
        
        /* screen_count contains now the count of screens */
        

        If you don't want to iterate over the screens, a better way to get that number is to use xcb_setup_roots_length_t:

        xcb_connection_t *c;
        int               screen_count;
        
        /* you init the connection */
        
        screen_count = xcb_setup_roots_length (xcb_get_setup (c));
        
        /* screen_count contains now the count of screens */
        
      5. ServerVendor

        You get the name of the vendor of the server hardware with the functions xcb_get_setup and xcb_setup_vendor. Beware that, unlike Xlib, the string returned by XCB is not necessarily null-terminaled:

        xcb_connection_t *c;
        char             *vendor = NULL;
        int               length;
        
        /* you init the connection */
        length = xcb_setup_vendor_length (xcb_get_setup (c));
        vendor = (char *)malloc (length + 1);
        if (vendor)
        memcpy (vendor, xcb_setup_vendor (xcb_get_setup (c)), length);
        vendor[length] = '\0';
        
        /* vendor contains now the name of the vendor. Must be freed when not used anymore */
        
      6. ProtocolVersion

        You get the major version of the protocol in the xcb_setup_t structure, with the function xcb_get_setup:

        xcb_connection_t *c;
        uint16_t          protocol_major_version;
        
        /* you init the connection */
        
        protocol_major_version = xcb_get_setup (c)->protocol_major_version;
        
        /* protocol_major_version contains now the major version of the protocol */
        
      7. ProtocolRevision

        You get the minor version of the protocol in the xcb_setup_t structure, with the function xcb_get_setup:

        xcb_connection_t *c;
        uint16_t          protocol_minor_version;
        
        /* you init the connection */
        
        protocol_minor_version = xcb_get_setup (c)->protocol_minor_version;
        
        /* protocol_minor_version contains now the minor version of the protocol */
        
      8. VendorRelease

        You get the number of the release of the server hardware in the xcb_setup_t structure, with the function xcb_get_setup:

        xcb_connection_t *c;
        uint32_t          release_number;
        
        /* you init the connection */
        
        release_number = xcb_get_setup (c)->release_number;
        
        /* release_number contains now the number of the release of the server hardware */
        
      9. DisplayString

        The name of the display is not stored in XCB. You have to store it by yourself.

      10. BitmapUnit

        You get the bitmap scanline unit in the xcb_setup_t structure, with the function xcb_get_setup:

        xcb_connection_t *c;
        uint8_t           bitmap_format_scanline_unit;
        
        /* you init the connection */
        
        bitmap_format_scanline_unit = xcb_get_setup (c)->bitmap_format_scanline_unit;
        
        /* bitmap_format_scanline_unit contains now the bitmap scanline unit */
        
      11. BitmapBitOrder

        You get the bitmap bit order in the xcb_setup_t structure, with the function xcb_get_setup:

        xcb_connection_t *c;
        uint8_t           bitmap_format_bit_order;
        
        /* you init the connection */
        
        bitmap_format_bit_order = xcb_get_setup (c)->bitmap_format_bit_order;
        
        /* bitmap_format_bit_order contains now the bitmap bit order */
        
      12. BitmapPad

        You get the bitmap scanline pad in the xcb_setup_t structure, with the function xcb_get_setup:

        xcb_connection_t *c;
        uint8_t           bitmap_format_scanline_pad;
        
        /* you init the connection */
        
        bitmap_format_scanline_pad = xcb_get_setup (c)->bitmap_format_scanline_pad;
        
        /* bitmap_format_scanline_pad contains now the bitmap scanline pad */
        
      13. ImageByteOrder

        You get the image byte order in the xcb_setup_t structure, with the function xcb_get_setup:

        xcb_connection_t *c;
        uint8_t           image_byte_order;
        
        /* you init the connection */
        
        image_byte_order = xcb_get_setup (c)->image_byte_order;
        
        /* image_byte_order contains now the image byte order */
        
    2. ScreenOfDisplay related functions

      in Xlib, ScreenOfDisplay returns a Screen structure that contains several characteristics of your screen. XCB has a similar structure (xcb_screen_t), but the way to obtain it is a bit different. With Xlib, you just provide the number of the screen and you grab it from an array. With XCB, you iterate over all the screens to obtain the one you want. The complexity of this operation is O(n). So the best is to store this structure if you use it often. See screen_of_display just below.

      Xlib provides generally two functions to obtain the characteristics related to the screen. One with the display and the number of the screen, which calls ScreenOfDisplay, and the other that uses the Screen structure. This might be a bit confusing. As mentioned above, with XCB, it is better to store the xcb_screen_t structure. Then, you have to read the members of this structure. That's why the Xlib functions are put by pairs (or more) as, with XCB, you will use the same code.

      1. ScreenOfDisplay

        This function returns the Xlib Screen structure. With XCB, you iterate over all the screens and once you get the one you want, you return it:

        
        xcb_screen_t *screen_of_display (xcb_connection_t *c,
                                         int               screen)
        {
          xcb_screen_iterator_t iter;
        
          iter = xcb_setup_roots_iterator (xcb_get_setup (c));
          for (; iter.rem; --screen, xcb_screen_next (&iter))
            if (screen == 0)
              return iter.data;
        
          return NULL;
        }
        

        As mentioned above, you might want to store the value returned by this function.

        All the functions below will use the result of that function, as they just grab a specific member of the xcb_screen_t structure.

      2. DefaultScreenOfDisplay

        It is the default screen that you obtain when you connect to the X server. It suffices to call the screen_of_display function above with the connection and the number of the default screen.

        xcb_connection_t *c;
        int               screen_default_nbr;
        xcb_screen_t     *default_screen;  /* the returned default screen */
        
        /* you pass the name of the display you want to xcb_connect_t */
        
        c = xcb_connect (display_name, &screen_default_nbr);
        default_screen = screen_of_display (c, screen_default_nbr);
        
        /* default_screen contains now the default root window, or a NULL window if no screen is found */
        
      3. RootWindow / RootWindowOfScreen
        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        xcb_window_t      root_window = { 0 };  /* the returned window */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          root_window = screen->root;
        
        /* root_window contains now the root window, or a NULL window if no screen is found */
        
      4. DefaultRootWindow

        It is the root window of the default screen. So, you call ScreenOfDisplay with the default screen number and you get the root window as above:

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_default_nbr;
        xcb_window_t      root_window = { 0 };  /* the returned root window */
        
        /* you pass the name of the display you want to xcb_connect_t */
        
        c = xcb_connect (display_name, &screen_default_nbr);
        screen = screen_of_display (c, screen_default_nbr);
        if (screen)
          root_window = screen->root;
        
        /* root_window contains now the default root window, or a NULL window if no screen is found */
        
      5. DefaultVisual / DefaultVisualOfScreen

        While a Visual is, in Xlib, a structure, in XCB, there are two types: xcb_visualid_t, which is the Id of the visual, and xcb_visualtype_t, which corresponds to the Xlib Visual. To get the Id of the visual of a screen, just get the root_visual member of a xcb_screen_t:

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        xcb_visualid_t    root_visual = { 0 };    /* the returned visual Id */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          root_visual = screen->root_visual;
        
        /* root_visual contains now the value of the Id of the visual, or a NULL visual if no screen is found */
        

        To get the xcb_visualtype_t structure, it's a bit less easy. You have to get the xcb_screen_t structure that you want, get its root_visual member, then iterate over the xcb_depth_ts and the xcb_visualtype_ts, and compare the xcb_visualid_t of these xcb_visualtype_ts: with root_visual:

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        xcb_visualid_t    root_visual = { 0 };
        xcb_visualtype_t  *visual_type = NULL;    /* the returned visual type */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen) {
          xcb_depth_iterator_t depth_iter;
        
          depth_iter = xcb_screen_allowed_depths_iterator (screen);
          for (; depth_iter.rem; xcb_depth_next (&depth_iter)) {
            xcb_visualtype_iterator_t visual_iter;
        
            visual_iter = xcb_depth_visuals_iterator (depth_iter.data);
            for (; visual_iter.rem; xcb_visualtype_next (&visual_iter)) {
              if (screen->root_visual == visual_iter.data->visual_id) {
                visual_type = visual_iter.data;
                break;
              }
            }
          }
        }
        
        /* visual_type contains now the visual structure, or a NULL visual structure if no screen is found */
        
      6. DefaultGC / DefaultGCOfScreen

        This default Graphic Context is just a newly created Graphic Context, associated to the root window of a xcb_screen_t, using the black white pixels of that screen:

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        xcb_gcontext_t    gc = { 0 };    /* the returned default graphic context */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen) {
          xcb_drawable_t draw;
          uint32_t       mask;
          uint32_t       values[2];
        
          gc = xcb_generate_id (c);
          draw = screen->root;
          mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND;
          values[0] = screen->black_pixel;
          values[1] = screen->white_pixel;
          xcb_create_gc (c, gc, draw, mask, values);
        }
        
        /* gc contains now the default graphic context */
        
      7. BlackPixel / BlackPixelOfScreen

        It is the Id of the black pixel, which is in the structure of an xcb_screen_t.

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint32_t          black_pixel = 0;    /* the returned black pixel */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          black_pixel = screen->black_pixel;
        
        /* black_pixel contains now the value of the black pixel, or 0 if no screen is found */
        
      8. WhitePixel / WhitePixelOfScreen

        It is the Id of the white pixel, which is in the structure of an xcb_screen_t.

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint32_t          white_pixel = 0;    /* the returned white pixel */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          white_pixel = screen->white_pixel;
        
        /* white_pixel contains now the value of the white pixel, or 0 if no screen is found */
        
      9. DisplayWidth / WidthOfScreen

        It is the width in pixels of the screen that you want, and which is in the structure of the corresponding xcb_screen_t.

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint32_t          width_in_pixels = 0;    /* the returned width in pixels */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          width_in_pixels = screen->width_in_pixels;
        
        /* width_in_pixels contains now the width in pixels, or 0 if no screen is found */
        
      10. DisplayHeight / HeightOfScreen

        It is the height in pixels of the screen that you want, and which is in the structure of the corresponding xcb_screen_t.

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint32_t          height_in_pixels = 0;    /* the returned height in pixels */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          height_in_pixels = screen->height_in_pixels;
        
        /* height_in_pixels contains now the height in pixels, or 0 if no screen is found */
        
      11. DisplayWidthMM / WidthMMOfScreen

        It is the width in millimeters of the screen that you want, and which is in the structure of the corresponding xcb_screen_t.

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint32_t          width_in_millimeters = 0;    /* the returned width in millimeters */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          width_in_millimeters = screen->width_in_millimeters;
        
        /* width_in_millimeters contains now the width in millimeters, or 0 if no screen is found */
        
      12. DisplayHeightMM / HeightMMOfScreen

        It is the height in millimeters of the screen that you want, and which is in the structure of the corresponding xcb_screen_t.

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint32_t          height_in_millimeters = 0;    /* the returned height in millimeters */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          height_in_millimeters = screen->height_in_millimeters;
        
        /* height_in_millimeters contains now the height in millimeters, or 0 if no screen is found */
        
      13. DisplayPlanes / DefaultDepth / DefaultDepthOfScreen / PlanesOfScreen

        It is the depth (in bits) of the root window of the screen. You get it from the xcb_screen_t structure.

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint8_t           root_depth = 0;  /* the returned depth of the root window */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          root_depth = screen->root_depth;
        
        /* root_depth contains now the depth of the root window, or 0 if no screen is found */
        
      14. DefaultColormap / DefaultColormapOfScreen

        This is the default colormap of the screen (and not the (default) colormap of the default screen !). As usual, you get it from the xcb_screen_t structure:

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        xcb_colormap_t    default_colormap = { 0 };  /* the returned default colormap */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          default_colormap = screen->default_colormap;
        
        /* default_colormap contains now the default colormap, or a NULL colormap if no screen is found */
        
      15. MinCmapsOfScreen

        You get the minimum installed colormaps in the xcb_screen_t structure:

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint16_t          min_installed_maps = 0;  /* the returned minimum installed colormaps */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          min_installed_maps = screen->min_installed_maps;
        
        /* min_installed_maps contains now the minimum installed colormaps, or 0 if no screen is found */
        
      16. MaxCmapsOfScreen

        You get the maximum installed colormaps in the xcb_screen_t structure:

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint16_t          max_installed_maps = 0;  /* the returned maximum installed colormaps */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          max_installed_maps = screen->max_installed_maps;
        
        /* max_installed_maps contains now the maximum installed colormaps, or 0 if no screen is found */
        
      17. DoesSaveUnders

        You know if save_unders is set, by looking in the xcb_screen_t structure:

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint8_t           save_unders = 0;  /* the returned value of save_unders */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          save_unders = screen->save_unders;
        
        /* save_unders contains now the value of save_unders, or FALSE if no screen is found */
        
      18. DoesBackingStore

        You know the value of backing_stores, by looking in the xcb_screen_t structure:

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint8_t           backing_stores = 0;  /* the returned value of backing_stores */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          backing_stores = screen->backing_stores;
        
        /* backing_stores contains now the value of backing_stores, or FALSE if no screen is found */
        
      19. EventMaskOfScreen

        To get the current input masks, you look in the xcb_screen_t structure:

        xcb_connection_t *c;
        xcb_screen_t     *screen;
        int               screen_nbr;
        uint32_t          current_input_masks = 0;  /* the returned value of current input masks */
        
        /* you init the connection and screen_nbr */
        
        screen = screen_of_display (c, screen_nbr);
        if (screen)
          current_input_masks = screen->current_input_masks;
        
        /* current_input_masks contains now the value of the current input masks, or FALSE if no screen is found */
        
    3. Miscellaneous macros
      1. DisplayOfScreen

        in Xlib, the Screen structure stores its associated Display structure. This is not the case in the X Window protocol, hence, it's also not the case in XCB. So you have to store it by yourself.

      2. DisplayCells / CellsOfScreen

        To get the colormap entries, you look in the xcb_visualtype_t structure, that you grab like here:

        xcb_connection_t *c;
        xcb_visualtype_t *visual_type;
        uint16_t          colormap_entries = 0;  /* the returned value of the colormap entries */
        
        /* you init the connection and visual_type */
        
        if (visual_type)
          colormap_entries = visual_type->colormap_entries;
        
        /* colormap_entries contains now the value of the colormap entries, or FALSE if no screen is found */
        
0707010006ba54000041ed0000000000000000000000034f83891d00000000000000b600010002ffffffffffffffff0000001700000000root/usr/local/include0707010006ba55000041ed0000000000000000000000024f83891d00000000000000b600010002ffffffffffffffff0000001b00000000root/usr/local/include/xcb0707010006ba65000081a40000000000000000000000014f838892000100fb000000b600010002ffffffffffffffff0000002200000000root/usr/local/include/xcb/sync.h/* * 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, XCB_SYNC_ALARMSTATE_INACTIVE, XCB_SYNC_ALARMSTATE_DESTROYED } 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, XCB_SYNC_TESTTYPE_NEGATIVE_TRANSITION, XCB_SYNC_TESTTYPE_POSITIVE_COMPARISON, XCB_SYNC_TESTTYPE_NEGATIVE_COMPARISON } xcb_sync_testtype_t; typedef enum xcb_sync_valuetype_t { XCB_SYNC_VALUETYPE_ABSOLUTE, XCB_SYNC_VALUETYPE_RELATIVE } 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; /** 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; /** 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 ** ** @param xcb_sync_alarm_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_sync_alarm_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_sync_counter_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_sync_counter_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_sync_fence_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_sync_fence_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_sync_int64_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_sync_int64_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_sync_systemcounter_t *R ** @returns char * ** *****************************************************************************/ char * xcb_sync_systemcounter_name (const xcb_sync_systemcounter_t *R /**< */); /***************************************************************************** ** ** int xcb_sync_systemcounter_name_length ** ** @param const xcb_sync_systemcounter_t *R ** @returns int ** *****************************************************************************/ int xcb_sync_systemcounter_name_length (const xcb_sync_systemcounter_t *R /**< */); /***************************************************************************** ** ** xcb_generic_iterator_t xcb_sync_systemcounter_name_end ** ** @param const xcb_sync_systemcounter_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_sync_systemcounter_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_sync_systemcounter_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_sync_trigger_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_sync_trigger_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_sync_waitcondition_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_sync_waitcondition_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ xcb_generic_iterator_t xcb_sync_waitcondition_end (xcb_sync_waitcondition_iterator_t i /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_sync_initialize_cookie_t xcb_sync_initialize ** ** @param xcb_connection_t *c ** @param uint8_t desired_major_version ** @param uint8_t desired_minor_version ** @returns xcb_sync_initialize_cookie_t ** *****************************************************************************/ xcb_sync_initialize_cookie_t xcb_sync_initialize (xcb_connection_t *c /**< */, uint8_t desired_major_version /**< */, uint8_t desired_minor_version /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint8_t desired_major_version ** @param uint8_t desired_minor_version ** @returns xcb_sync_initialize_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_initialize_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_sync_initialize_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_sync_list_system_counters_cookie_t ** *****************************************************************************/ xcb_sync_list_system_counters_cookie_t xcb_sync_list_system_counters (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_sync_list_system_counters_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_sync_list_system_counters_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_sync_list_system_counters_reply_t *R ** @returns xcb_sync_systemcounter_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_list_system_counters_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_sync_list_system_counters_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_counter_t id ** @param xcb_sync_int64_t initial_value ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_create_counter_checked (xcb_connection_t *c /**< */, xcb_sync_counter_t id /**< */, xcb_sync_int64_t initial_value /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_create_counter ** ** @param xcb_connection_t *c ** @param xcb_sync_counter_t id ** @param xcb_sync_int64_t initial_value ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_create_counter (xcb_connection_t *c /**< */, xcb_sync_counter_t id /**< */, xcb_sync_int64_t initial_value /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_counter_t counter ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_destroy_counter_checked (xcb_connection_t *c /**< */, xcb_sync_counter_t counter /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_destroy_counter ** ** @param xcb_connection_t *c ** @param xcb_sync_counter_t counter ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_destroy_counter (xcb_connection_t *c /**< */, xcb_sync_counter_t counter /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_sync_query_counter_cookie_t xcb_sync_query_counter ** ** @param xcb_connection_t *c ** @param xcb_sync_counter_t counter ** @returns xcb_sync_query_counter_cookie_t ** *****************************************************************************/ xcb_sync_query_counter_cookie_t xcb_sync_query_counter (xcb_connection_t *c /**< */, xcb_sync_counter_t counter /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_counter_t counter ** @returns xcb_sync_query_counter_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_query_counter_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_sync_query_counter_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t wait_list_len ** @param const xcb_sync_waitcondition_t *wait_list ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_await_checked (xcb_connection_t *c /**< */, uint32_t wait_list_len /**< */, const xcb_sync_waitcondition_t *wait_list /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_await ** ** @param xcb_connection_t *c ** @param uint32_t wait_list_len ** @param const xcb_sync_waitcondition_t *wait_list ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_await (xcb_connection_t *c /**< */, uint32_t wait_list_len /**< */, const xcb_sync_waitcondition_t *wait_list /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_counter_t counter ** @param xcb_sync_int64_t amount ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_change_counter_checked (xcb_connection_t *c /**< */, xcb_sync_counter_t counter /**< */, xcb_sync_int64_t amount /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_change_counter ** ** @param xcb_connection_t *c ** @param xcb_sync_counter_t counter ** @param xcb_sync_int64_t amount ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_change_counter (xcb_connection_t *c /**< */, xcb_sync_counter_t counter /**< */, xcb_sync_int64_t amount /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_counter_t counter ** @param xcb_sync_int64_t value ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_set_counter_checked (xcb_connection_t *c /**< */, xcb_sync_counter_t counter /**< */, xcb_sync_int64_t value /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_set_counter ** ** @param xcb_connection_t *c ** @param xcb_sync_counter_t counter ** @param xcb_sync_int64_t value ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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_sizeof (const void *_buffer /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_alarm_t id ** @param uint32_t value_mask ** @param const uint32_t *value_list ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_create_alarm_checked (xcb_connection_t *c /**< */, xcb_sync_alarm_t id /**< */, uint32_t value_mask /**< */, const uint32_t *value_list /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_create_alarm ** ** @param xcb_connection_t *c ** @param xcb_sync_alarm_t id ** @param uint32_t value_mask ** @param const uint32_t *value_list ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_create_alarm (xcb_connection_t *c /**< */, xcb_sync_alarm_t id /**< */, uint32_t value_mask /**< */, const uint32_t *value_list /**< */); int xcb_sync_change_alarm_sizeof (const void *_buffer /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_alarm_t id ** @param uint32_t value_mask ** @param const uint32_t *value_list ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_change_alarm_checked (xcb_connection_t *c /**< */, xcb_sync_alarm_t id /**< */, uint32_t value_mask /**< */, const uint32_t *value_list /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_change_alarm ** ** @param xcb_connection_t *c ** @param xcb_sync_alarm_t id ** @param uint32_t value_mask ** @param const uint32_t *value_list ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_change_alarm (xcb_connection_t *c /**< */, xcb_sync_alarm_t id /**< */, uint32_t value_mask /**< */, const uint32_t *value_list /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_alarm_t alarm ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_destroy_alarm_checked (xcb_connection_t *c /**< */, xcb_sync_alarm_t alarm /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_destroy_alarm ** ** @param xcb_connection_t *c ** @param xcb_sync_alarm_t alarm ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_destroy_alarm (xcb_connection_t *c /**< */, xcb_sync_alarm_t alarm /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_sync_query_alarm_cookie_t xcb_sync_query_alarm ** ** @param xcb_connection_t *c ** @param xcb_sync_alarm_t alarm ** @returns xcb_sync_query_alarm_cookie_t ** *****************************************************************************/ xcb_sync_query_alarm_cookie_t xcb_sync_query_alarm (xcb_connection_t *c /**< */, xcb_sync_alarm_t alarm /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_alarm_t alarm ** @returns xcb_sync_query_alarm_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_query_alarm_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_sync_query_alarm_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t id ** @param int32_t priority ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_set_priority_checked (xcb_connection_t *c /**< */, uint32_t id /**< */, int32_t priority /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_set_priority ** ** @param xcb_connection_t *c ** @param uint32_t id ** @param int32_t priority ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_set_priority (xcb_connection_t *c /**< */, uint32_t id /**< */, int32_t priority /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_sync_get_priority_cookie_t xcb_sync_get_priority ** ** @param xcb_connection_t *c ** @param uint32_t id ** @returns xcb_sync_get_priority_cookie_t ** *****************************************************************************/ xcb_sync_get_priority_cookie_t xcb_sync_get_priority (xcb_connection_t *c /**< */, uint32_t id /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint32_t id ** @returns xcb_sync_get_priority_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_get_priority_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_sync_get_priority_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_drawable_t drawable ** @param xcb_sync_fence_t fence ** @param uint8_t initially_triggered ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_create_fence ** ** @param xcb_connection_t *c ** @param xcb_drawable_t drawable ** @param xcb_sync_fence_t fence ** @param uint8_t initially_triggered ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_fence_t fence ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_trigger_fence_checked (xcb_connection_t *c /**< */, xcb_sync_fence_t fence /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_trigger_fence ** ** @param xcb_connection_t *c ** @param xcb_sync_fence_t fence ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_trigger_fence (xcb_connection_t *c /**< */, xcb_sync_fence_t fence /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_fence_t fence ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_reset_fence_checked (xcb_connection_t *c /**< */, xcb_sync_fence_t fence /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_reset_fence ** ** @param xcb_connection_t *c ** @param xcb_sync_fence_t fence ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_reset_fence (xcb_connection_t *c /**< */, xcb_sync_fence_t fence /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_fence_t fence ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_destroy_fence_checked (xcb_connection_t *c /**< */, xcb_sync_fence_t fence /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_destroy_fence ** ** @param xcb_connection_t *c ** @param xcb_sync_fence_t fence ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_sync_destroy_fence (xcb_connection_t *c /**< */, xcb_sync_fence_t fence /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_sync_query_fence_cookie_t xcb_sync_query_fence ** ** @param xcb_connection_t *c ** @param xcb_sync_fence_t fence ** @returns xcb_sync_query_fence_cookie_t ** *****************************************************************************/ xcb_sync_query_fence_cookie_t xcb_sync_query_fence (xcb_connection_t *c /**< */, xcb_sync_fence_t fence /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_fence_t fence ** @returns xcb_sync_query_fence_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_sync_query_fence_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_sync_query_fence_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t fence_list_len ** @param const xcb_sync_fence_t *fence_list ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_sync_await_fence ** ** @param xcb_connection_t *c ** @param uint32_t fence_list_len ** @param const xcb_sync_fence_t *fence_list ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /** * @} */ 0707010006ba5d000081a40000000000000000000000014f83889200029453000000b600010002ffffffffffffffff0000002300000000root/usr/local/include/xcb/randr.h/* * 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 3 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; /** 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; 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_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, XCB_RANDR_CONNECTION_DISCONNECTED, XCB_RANDR_CONNECTION_UNKNOWN } 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; /** 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; /** 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_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_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_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 ** ** @param xcb_randr_mode_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_randr_mode_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_randr_crtc_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_randr_crtc_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_randr_output_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_randr_output_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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_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 ** ** @param xcb_randr_screen_size_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_randr_screen_size_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_refresh_rates_t *R ** @returns uint16_t * ** *****************************************************************************/ uint16_t * xcb_randr_refresh_rates_rates (const xcb_randr_refresh_rates_t *R /**< */); /***************************************************************************** ** ** int xcb_randr_refresh_rates_rates_length ** ** @param const xcb_randr_refresh_rates_t *R ** @returns int ** *****************************************************************************/ int xcb_randr_refresh_rates_rates_length (const xcb_randr_refresh_rates_t *R /**< */); /***************************************************************************** ** ** xcb_generic_iterator_t xcb_randr_refresh_rates_rates_end ** ** @param const xcb_randr_refresh_rates_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_randr_refresh_rates_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_randr_refresh_rates_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ xcb_generic_iterator_t xcb_randr_refresh_rates_end (xcb_randr_refresh_rates_iterator_t i /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_randr_query_version_cookie_t xcb_randr_query_version ** ** @param xcb_connection_t *c ** @param uint32_t major_version ** @param uint32_t minor_version ** @returns xcb_randr_query_version_cookie_t ** *****************************************************************************/ xcb_randr_query_version_cookie_t xcb_randr_query_version (xcb_connection_t *c /**< */, uint32_t major_version /**< */, uint32_t minor_version /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint32_t major_version ** @param uint32_t minor_version ** @returns xcb_randr_query_version_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_query_version_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_query_version_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_timestamp_t timestamp ** @param xcb_timestamp_t config_timestamp ** @param uint16_t sizeID ** @param uint16_t rotation ** @param uint16_t rate ** @returns xcb_randr_set_screen_config_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_timestamp_t timestamp ** @param xcb_timestamp_t config_timestamp ** @param uint16_t sizeID ** @param uint16_t rotation ** @param uint16_t rate ** @returns xcb_randr_set_screen_config_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_set_screen_config_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_set_screen_config_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint16_t enable ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_randr_select_input_checked (xcb_connection_t *c /**< */, xcb_window_t window /**< */, uint16_t enable /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_randr_select_input ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint16_t enable ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_randr_get_screen_info_cookie_t ** *****************************************************************************/ xcb_randr_get_screen_info_cookie_t xcb_randr_get_screen_info (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_randr_get_screen_info_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_info_reply_t *R ** @returns xcb_randr_screen_size_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_info_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_info_reply_t *R ** @returns xcb_randr_screen_size_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_info_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_info_reply_t *R ** @returns xcb_randr_refresh_rates_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_screen_info_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_screen_info_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_randr_get_screen_size_range_cookie_t ** *****************************************************************************/ xcb_randr_get_screen_size_range_cookie_t xcb_randr_get_screen_size_range (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_randr_get_screen_size_range_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_screen_size_range_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_screen_size_range_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint16_t width ** @param uint16_t height ** @param uint32_t mm_width ** @param uint32_t mm_height ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_randr_set_screen_size ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint16_t width ** @param uint16_t height ** @param uint32_t mm_width ** @param uint32_t mm_height ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_randr_mode_info_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_randr_mode_info_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_randr_get_screen_resources_cookie_t ** *****************************************************************************/ xcb_randr_get_screen_resources_cookie_t xcb_randr_get_screen_resources (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_randr_get_screen_resources_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns xcb_randr_crtc_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns xcb_randr_output_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns xcb_randr_mode_info_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns xcb_randr_mode_info_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns uint8_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_screen_resources_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_screen_resources_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_timestamp_t config_timestamp ** @returns xcb_randr_get_output_info_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_timestamp_t config_timestamp ** @returns xcb_randr_get_output_info_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns xcb_randr_crtc_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns xcb_randr_mode_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns xcb_randr_output_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns uint8_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_info_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_output_info_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_output_info_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @returns xcb_randr_list_output_properties_cookie_t ** *****************************************************************************/ xcb_randr_list_output_properties_cookie_t xcb_randr_list_output_properties (xcb_connection_t *c /**< */, xcb_randr_output_t output /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @returns xcb_randr_list_output_properties_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_list_output_properties_reply_t *R ** @returns xcb_atom_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_list_output_properties_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_list_output_properties_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_list_output_properties_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_list_output_properties_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_atom_t property ** @returns xcb_randr_query_output_property_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_atom_t property ** @returns xcb_randr_query_output_property_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_query_output_property_reply_t *R ** @returns int32_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_query_output_property_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_query_output_property_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_query_output_property_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_query_output_property_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_atom_t property ** @param uint8_t pending ** @param uint8_t range ** @param uint32_t values_len ** @param const int32_t *values ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_randr_configure_output_property ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_atom_t property ** @param uint8_t pending ** @param uint8_t range ** @param uint32_t values_len ** @param const int32_t *values ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_atom_t property ** @param xcb_atom_t type ** @param uint8_t format ** @param uint8_t mode ** @param uint32_t num_units ** @param const void *data ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_randr_change_output_property ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_atom_t property ** @param xcb_atom_t type ** @param uint8_t format ** @param uint8_t mode ** @param uint32_t num_units ** @param const void *data ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_atom_t property ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_randr_delete_output_property_checked (xcb_connection_t *c /**< */, xcb_randr_output_t output /**< */, xcb_atom_t property /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_randr_delete_output_property ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_atom_t property ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_atom_t property ** @param xcb_atom_t type ** @param uint32_t long_offset ** @param uint32_t long_length ** @param uint8_t _delete ** @param uint8_t pending ** @returns xcb_randr_get_output_property_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_atom_t property ** @param xcb_atom_t type ** @param uint32_t long_offset ** @param uint32_t long_length ** @param uint8_t _delete ** @param uint8_t pending ** @returns xcb_randr_get_output_property_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_property_reply_t *R ** @returns uint8_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_property_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_output_property_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_output_property_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_output_property_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_randr_create_mode_cookie_t xcb_randr_create_mode ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_randr_mode_info_t mode_info ** @param uint32_t name_len ** @param const char *name ** @returns xcb_randr_create_mode_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_randr_mode_info_t mode_info ** @param uint32_t name_len ** @param const char *name ** @returns xcb_randr_create_mode_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_create_mode_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_create_mode_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_mode_t mode ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_randr_destroy_mode_checked (xcb_connection_t *c /**< */, xcb_randr_mode_t mode /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_randr_destroy_mode ** ** @param xcb_connection_t *c ** @param xcb_randr_mode_t mode ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_randr_destroy_mode (xcb_connection_t *c /**< */, xcb_randr_mode_t mode /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_randr_mode_t mode ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_randr_add_output_mode_checked (xcb_connection_t *c /**< */, xcb_randr_output_t output /**< */, xcb_randr_mode_t mode /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_randr_add_output_mode ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_randr_mode_t mode ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_randr_add_output_mode (xcb_connection_t *c /**< */, xcb_randr_output_t output /**< */, xcb_randr_mode_t mode /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_randr_mode_t mode ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_randr_delete_output_mode_checked (xcb_connection_t *c /**< */, xcb_randr_output_t output /**< */, xcb_randr_mode_t mode /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_randr_delete_output_mode ** ** @param xcb_connection_t *c ** @param xcb_randr_output_t output ** @param xcb_randr_mode_t mode ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @param xcb_timestamp_t config_timestamp ** @returns xcb_randr_get_crtc_info_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @param xcb_timestamp_t config_timestamp ** @returns xcb_randr_get_crtc_info_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_info_reply_t *R ** @returns xcb_randr_output_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_info_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_info_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_info_reply_t *R ** @returns xcb_randr_output_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_info_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_info_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_crtc_info_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_crtc_info_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @param xcb_timestamp_t timestamp ** @param xcb_timestamp_t config_timestamp ** @param int16_t x ** @param int16_t y ** @param xcb_randr_mode_t mode ** @param uint16_t rotation ** @param uint32_t outputs_len ** @param const xcb_randr_output_t *outputs ** @returns xcb_randr_set_crtc_config_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @param xcb_timestamp_t timestamp ** @param xcb_timestamp_t config_timestamp ** @param int16_t x ** @param int16_t y ** @param xcb_randr_mode_t mode ** @param uint16_t rotation ** @param uint32_t outputs_len ** @param const xcb_randr_output_t *outputs ** @returns xcb_randr_set_crtc_config_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_set_crtc_config_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_set_crtc_config_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @returns xcb_randr_get_crtc_gamma_size_cookie_t ** *****************************************************************************/ xcb_randr_get_crtc_gamma_size_cookie_t xcb_randr_get_crtc_gamma_size (xcb_connection_t *c /**< */, xcb_randr_crtc_t crtc /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @returns xcb_randr_get_crtc_gamma_size_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_crtc_gamma_size_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_crtc_gamma_size_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @returns xcb_randr_get_crtc_gamma_cookie_t ** *****************************************************************************/ xcb_randr_get_crtc_gamma_cookie_t xcb_randr_get_crtc_gamma (xcb_connection_t *c /**< */, xcb_randr_crtc_t crtc /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @returns xcb_randr_get_crtc_gamma_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_gamma_reply_t *R ** @returns uint16_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_gamma_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_gamma_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_gamma_reply_t *R ** @returns uint16_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_gamma_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_gamma_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_gamma_reply_t *R ** @returns uint16_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_gamma_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_gamma_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_crtc_gamma_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_crtc_gamma_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @param uint16_t size ** @param const uint16_t *red ** @param const uint16_t *green ** @param const uint16_t *blue ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_randr_set_crtc_gamma ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @param uint16_t size ** @param const uint16_t *red ** @param const uint16_t *green ** @param const uint16_t *blue ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_randr_get_screen_resources_current_cookie_t ** *****************************************************************************/ xcb_randr_get_screen_resources_current_cookie_t xcb_randr_get_screen_resources_current (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_randr_get_screen_resources_current_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns xcb_randr_crtc_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns xcb_randr_output_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns xcb_randr_mode_info_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns xcb_randr_mode_info_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns uint8_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_screen_resources_current_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_screen_resources_current_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_screen_resources_current_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @param xcb_render_transform_t transform ** @param uint16_t filter_len ** @param const char *filter_name ** @param uint32_t filter_params_len ** @param const xcb_render_fixed_t *filter_params ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_randr_set_crtc_transform ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @param xcb_render_transform_t transform ** @param uint16_t filter_len ** @param const char *filter_name ** @param uint32_t filter_params_len ** @param const xcb_render_fixed_t *filter_params ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @returns xcb_randr_get_crtc_transform_cookie_t ** *****************************************************************************/ xcb_randr_get_crtc_transform_cookie_t xcb_randr_get_crtc_transform (xcb_connection_t *c /**< */, xcb_randr_crtc_t crtc /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @returns xcb_randr_get_crtc_transform_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns char * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns xcb_render_fixed_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns char * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns xcb_render_fixed_t * ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_randr_get_crtc_transform_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_crtc_transform_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_crtc_transform_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_randr_get_panning_cookie_t xcb_randr_get_panning ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @returns xcb_randr_get_panning_cookie_t ** *****************************************************************************/ xcb_randr_get_panning_cookie_t xcb_randr_get_panning (xcb_connection_t *c /**< */, xcb_randr_crtc_t crtc /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @returns xcb_randr_get_panning_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_panning_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_panning_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_randr_set_panning_cookie_t xcb_randr_set_panning ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @param xcb_timestamp_t timestamp ** @param uint16_t left ** @param uint16_t top ** @param uint16_t width ** @param uint16_t height ** @param uint16_t track_left ** @param uint16_t track_top ** @param uint16_t track_width ** @param uint16_t track_height ** @param int16_t border_left ** @param int16_t border_top ** @param int16_t border_right ** @param int16_t border_bottom ** @returns xcb_randr_set_panning_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_crtc_t crtc ** @param xcb_timestamp_t timestamp ** @param uint16_t left ** @param uint16_t top ** @param uint16_t width ** @param uint16_t height ** @param uint16_t track_left ** @param uint16_t track_top ** @param uint16_t track_width ** @param uint16_t track_height ** @param int16_t border_left ** @param int16_t border_top ** @param int16_t border_right ** @param int16_t border_bottom ** @returns xcb_randr_set_panning_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_set_panning_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_set_panning_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_randr_output_t output ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_randr_set_output_primary_checked (xcb_connection_t *c /**< */, xcb_window_t window /**< */, xcb_randr_output_t output /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_randr_set_output_primary ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_randr_output_t output ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_randr_set_output_primary (xcb_connection_t *c /**< */, xcb_window_t window /**< */, xcb_randr_output_t output /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_randr_get_output_primary_cookie_t ** *****************************************************************************/ xcb_randr_get_output_primary_cookie_t xcb_randr_get_output_primary (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_randr_get_output_primary_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_randr_get_output_primary_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_randr_get_output_primary_reply_t * ** *****************************************************************************/ 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 /**< */); /** * 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 ** ** @param xcb_randr_crtc_change_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_randr_crtc_change_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_randr_output_change_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_randr_output_change_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_randr_output_property_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_randr_output_property_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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_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 ** ** @param xcb_randr_notify_data_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_randr_notify_data_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ xcb_generic_iterator_t xcb_randr_notify_data_end (xcb_randr_notify_data_iterator_t i /**< */); #ifdef __cplusplus } #endif #endif /** * @} */ 0707010006ba5a000081a40000000000000000000000014f83889200004ee7000000b600010002ffffffffffffffff0000002200000000root/usr/local/include/xcb/dpms.h/* * 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, XCB_DPMS_DPMS_MODE_STANDBY, XCB_DPMS_DPMS_MODE_SUSPEND, XCB_DPMS_DPMS_MODE_OFF } 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; /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version ** ** @param xcb_connection_t *c ** @param uint16_t client_major_version ** @param uint16_t client_minor_version ** @returns xcb_dpms_get_version_cookie_t ** *****************************************************************************/ xcb_dpms_get_version_cookie_t xcb_dpms_get_version (xcb_connection_t *c /**< */, uint16_t client_major_version /**< */, uint16_t client_minor_version /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint16_t client_major_version ** @param uint16_t client_minor_version ** @returns xcb_dpms_get_version_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_dpms_get_version_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_dpms_get_version_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_dpms_capable_cookie_t xcb_dpms_capable ** ** @param xcb_connection_t *c ** @returns xcb_dpms_capable_cookie_t ** *****************************************************************************/ xcb_dpms_capable_cookie_t xcb_dpms_capable (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_dpms_capable_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_dpms_capable_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_dpms_capable_reply_t * ** *****************************************************************************/ xcb_dpms_capable_reply_t * xcb_dpms_capable_reply (xcb_connection_t *c /**< */, xcb_dpms_capable_cookie_t cookie /**< */, xcb_generic_error_t **e /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts ** ** @param xcb_connection_t *c ** @returns xcb_dpms_get_timeouts_cookie_t ** *****************************************************************************/ xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_dpms_get_timeouts_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_dpms_get_timeouts_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_dpms_get_timeouts_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint16_t standby_timeout ** @param uint16_t suspend_timeout ** @param uint16_t off_timeout ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_dpms_set_timeouts ** ** @param xcb_connection_t *c ** @param uint16_t standby_timeout ** @param uint16_t suspend_timeout ** @param uint16_t off_timeout ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_dpms_set_timeouts (xcb_connection_t *c /**< */, uint16_t standby_timeout /**< */, uint16_t suspend_timeout /**< */, uint16_t off_timeout /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_dpms_enable_checked (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_dpms_enable ** ** @param xcb_connection_t *c ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_dpms_enable (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_dpms_disable_checked (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_dpms_disable ** ** @param xcb_connection_t *c ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_dpms_disable (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint16_t power_level ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_dpms_force_level_checked (xcb_connection_t *c /**< */, uint16_t power_level /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_dpms_force_level ** ** @param xcb_connection_t *c ** @param uint16_t power_level ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_dpms_force_level (xcb_connection_t *c /**< */, uint16_t power_level /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_dpms_info_cookie_t xcb_dpms_info ** ** @param xcb_connection_t *c ** @returns xcb_dpms_info_cookie_t ** *****************************************************************************/ xcb_dpms_info_cookie_t xcb_dpms_info (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_dpms_info_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_dpms_info_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_dpms_info_reply_t * ** *****************************************************************************/ 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 /** * @} */ 0707010006ba67000081a40000000000000000000000014f838892000045b7000000b600010002ffffffffffffffff0000002100000000root/usr/local/include/xcb/xcb.h/* * Copyright (C) 2001-2006 Bart Massey, Jamey Sharp, and Josh Triplett. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * 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 * AUTHORS 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 names of the authors or their * institutions 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 authors. */ #ifndef __XCB_H__ #define __XCB_H__ #include #if defined(__solaris__) #include #else #include #endif #ifndef _WIN32 #include #else #include "xcb_windefs.h" #endif #include #ifdef __cplusplus extern "C" { #endif /** * @file xcb.h */ /** * @defgroup XCB_Core_API XCB Core API * @brief Core API of the XCB library. * * @{ */ /* Pre-defined constants */ /** Current protocol version */ #define X_PROTOCOL 11 /** Current minor version */ #define X_PROTOCOL_REVISION 0 /** X_TCP_PORT + display number = server port for TCP transport */ #define X_TCP_PORT 6000 /** xcb connection errors because of socket, pipe and other stream errors. */ #define XCB_CONN_ERROR 1 /** xcb connection shutdown because of extension not sppported */ #define XCB_CONN_CLOSED_EXT_NOTSUPPORTED 2 /** malloc(), calloc() and realloc() error upon failure, for eg ENOMEM */ #define XCB_CONN_CLOSED_MEM_INSUFFICIENT 3 /** Connection closed, exceeding request length that server accepts. */ #define XCB_CONN_CLOSED_REQ_LEN_EXCEED 4 /** Connection closed, error during parsing display string. */ #define XCB_CONN_CLOSED_PARSE_ERR 5 #define XCB_TYPE_PAD(T,I) (-(I) & (sizeof(T) > 4 ? 3 : sizeof(T) - 1)) /* Opaque structures */ /** * @brief XCB Connection structure. * * A structure that contain all data that XCB needs to communicate with an X server. */ typedef struct xcb_connection_t xcb_connection_t; /**< Opaque structure containing all data that XCB needs to communicate with an X server. */ /* Other types */ /** * @brief Generic iterator. * * A generic iterator structure. */ typedef struct { void *data; /**< Data of the current iterator */ int rem; /**< remaining elements */ int index; /**< index of the current iterator */ } xcb_generic_iterator_t; /** * @brief Generic reply. * * A generic reply structure. */ typedef struct { uint8_t response_type; /**< Type of the response */ uint8_t pad0; /**< Padding */ uint16_t sequence; /**< Sequence number */ uint32_t length; /**< Length of the response */ } xcb_generic_reply_t; /** * @brief Generic event. * * A generic event structure. */ typedef struct { uint8_t response_type; /**< Type of the response */ uint8_t pad0; /**< Padding */ uint16_t sequence; /**< Sequence number */ uint32_t pad[7]; /**< Padding */ uint32_t full_sequence; /**< full sequence */ } xcb_generic_event_t; /** * @brief GE event * * An event as sent by the XGE extension. The length field specifies the * number of 4-byte blocks trailing the struct. */ typedef struct { uint8_t response_type; /**< Type of the response */ uint8_t pad0; /**< Padding */ uint16_t sequence; /**< Sequence number */ uint32_t length; uint16_t event_type; uint16_t pad1; uint32_t pad[5]; /**< Padding */ uint32_t full_sequence; /**< full sequence */ } xcb_ge_event_t; /** * @brief Generic error. * * A generic error structure. */ typedef struct { uint8_t response_type; /**< Type of the response */ uint8_t error_code; /**< Error code */ uint16_t sequence; /**< Sequence number */ uint32_t resource_id; /** < Resource ID for requests with side effects only */ uint16_t minor_code; /** < Minor opcode of the failed request */ uint8_t major_code; /** < Major opcode of the failed request */ uint8_t pad0; uint32_t pad[5]; /**< Padding */ uint32_t full_sequence; /**< full sequence */ } xcb_generic_error_t; /** * @brief Generic cookie. * * A generic cookie structure. */ typedef struct { unsigned int sequence; /**< Sequence number */ } xcb_void_cookie_t; /* Include the generated xproto header. */ #include "xproto.h" /** XCB_NONE is the universal null resource or null atom parameter value for many core X requests */ #define XCB_NONE 0L /** XCB_COPY_FROM_PARENT can be used for many xcb_create_window parameters */ #define XCB_COPY_FROM_PARENT 0L /** XCB_CURRENT_TIME can be used in most requests that take an xcb_timestamp_t */ #define XCB_CURRENT_TIME 0L /** XCB_NO_SYMBOL fills in unused entries in xcb_keysym_t tables */ #define XCB_NO_SYMBOL 0L /* xcb_auth.c */ /** * @brief Container for authorization information. * * A container for authorization information to be sent to the X server. */ typedef struct xcb_auth_info_t { int namelen; /**< Length of the string name (as returned by strlen). */ char *name; /**< String containing the authentication protocol name, such as "MIT-MAGIC-COOKIE-1" or "XDM-AUTHORIZATION-1". */ int datalen; /**< Length of the data member. */ char *data; /**< Data interpreted in a protocol-specific manner. */ } xcb_auth_info_t; /* xcb_out.c */ /** * @brief Forces any buffered output to be written to the server. * @param c: The connection to the X server. * @return > @c 0 on success, <= @c 0 otherwise. * * Forces any buffered output to be written to the server. Blocks * until the write is complete. */ int xcb_flush(xcb_connection_t *c); /** * @brief Returns the maximum request length that this server accepts. * @param c: The connection to the X server. * @return The maximum request length field. * * In the absence of the BIG-REQUESTS extension, returns the * maximum request length field from the connection setup data, which * may be as much as 65535. If the server supports BIG-REQUESTS, then * the maximum request length field from the reply to the * BigRequestsEnable request will be returned instead. * * Note that this length is measured in four-byte units, making the * theoretical maximum lengths roughly 256kB without BIG-REQUESTS and * 16GB with. */ uint32_t xcb_get_maximum_request_length(xcb_connection_t *c); /** * @brief Prefetch the maximum request length without blocking. * @param c: The connection to the X server. * * Without blocking, does as much work as possible toward computing * the maximum request length accepted by the X server. * * Invoking this function may cause a call to xcb_big_requests_enable, * but will not block waiting for the reply. * xcb_get_maximum_request_length will return the prefetched data * after possibly blocking while the reply is retrieved. * * Note that in order for this function to be fully non-blocking, the * application must previously have called * xcb_prefetch_extension_data(c, &xcb_big_requests_id) and the reply * must have already arrived. */ void xcb_prefetch_maximum_request_length(xcb_connection_t *c); /* xcb_in.c */ /** * @brief Returns the next event or error from the server. * @param c: The connection to the X server. * @return The next event from the server. * * Returns the next event or error from the server, or returns null in * the event of an I/O error. Blocks until either an event or error * arrive, or an I/O error occurs. */ xcb_generic_event_t *xcb_wait_for_event(xcb_connection_t *c); /** * @brief Returns the next event or error from the server. * @param c: The connection to the X server. * error status of the operation. * @return The next event from the server. * * Returns the next event or error from the server, if one is * available, or returns @c NULL otherwise. If no event is available, that * might be because an I/O error like connection close occurred while * attempting to read the next event, in which case the connection is * shut down when this function returns. */ xcb_generic_event_t *xcb_poll_for_event(xcb_connection_t *c); /** * @brief Returns the next event without reading from the connection. * @param c: The connection to the X server. * @return The next already queued event from the server. * * This is a version of xcb_poll_for_event that only examines the * event queue for new events. The function doesn't try to read new * events from the connection if no queued events are found. * * This function is useful for callers that know in advance that all * interesting events have already been read from the connection. For * example, callers might use xcb_wait_for_reply and be interested * only of events that preceded a specific reply. */ xcb_generic_event_t *xcb_poll_for_queued_event(xcb_connection_t *c); /** * @brief Return the error for a request, or NULL if none can ever arrive. * @param c: The connection to the X server. * @param cookie: The request cookie. * @return The error for the request, or NULL if none can ever arrive. * * The xcb_void_cookie_t cookie supplied to this function must have resulted * from a call to xcb_[request_name]_checked(). This function will block * until one of two conditions happens. If an error is received, it will be * returned. If a reply to a subsequent request has already arrived, no error * can arrive for this request, so this function will return NULL. * * Note that this function will perform a sync if needed to ensure that the * sequence number will advance beyond that provided in cookie; this is a * convenience to avoid races in determining whether the sync is needed. */ xcb_generic_error_t *xcb_request_check(xcb_connection_t *c, xcb_void_cookie_t cookie); /** * @brief Discards the reply for a request. * @param c: The connection to the X server. * @param sequence: The request sequence number from a cookie. * * Discards the reply for a request. Additionally, any error generated * by the request is also discarded (unless it was an _unchecked request * and the error has already arrived). * * This function will not block even if the reply is not yet available. * * Note that the sequence really does have to come from an xcb cookie; * this function is not designed to operate on socket-handoff replies. */ void xcb_discard_reply(xcb_connection_t *c, unsigned int sequence); /* xcb_ext.c */ /** * @typedef typedef struct xcb_extension_t xcb_extension_t */ typedef struct xcb_extension_t xcb_extension_t; /**< Opaque structure used as key for xcb_get_extension_data_t. */ /** * @brief Caches reply information from QueryExtension requests. * @param c: The connection. * @param ext: The extension data. * @return A pointer to the xcb_query_extension_reply_t for the extension. * * This function is the primary interface to the "extension cache", * which caches reply information from QueryExtension * requests. Invoking this function may cause a call to * xcb_query_extension to retrieve extension information from the * server, and may block until extension data is received from the * server. * * The result must not be freed. This storage is managed by the cache * itself. */ const xcb_query_extension_reply_t *xcb_get_extension_data(xcb_connection_t *c, xcb_extension_t *ext); /** * @brief Prefetch of extension data into the extension cache * @param c: The connection. * @param ext: The extension data. * * This function allows a "prefetch" of extension data into the * extension cache. Invoking the function may cause a call to * xcb_query_extension, but will not block waiting for the * reply. xcb_get_extension_data will return the prefetched data after * possibly blocking while it is retrieved. */ void xcb_prefetch_extension_data(xcb_connection_t *c, xcb_extension_t *ext); /* xcb_conn.c */ /** * @brief Access the data returned by the server. * @param c: The connection. * @return A pointer to an xcb_setup_t structure. * * Accessor for the data returned by the server when the xcb_connection_t * was initialized. This data includes * - the server's required format for images, * - a list of available visuals, * - a list of available screens, * - the server's maximum request length (in the absence of the * BIG-REQUESTS extension), * - and other assorted information. * * See the X protocol specification for more details. * * The result must not be freed. */ const xcb_setup_t *xcb_get_setup(xcb_connection_t *c); /** * @brief Access the file descriptor of the connection. * @param c: The connection. * @return The file descriptor. * * Accessor for the file descriptor that was passed to the * xcb_connect_to_fd call that returned @p c. */ int xcb_get_file_descriptor(xcb_connection_t *c); /** * @brief Test whether the connection has shut down due to a fatal error. * @param c: The connection. * @return > 0 if the connection is in an error state; 0 otherwise. * * Some errors that occur in the context of an xcb_connection_t * are unrecoverable. When such an error occurs, the * connection is shut down and further operations on the * xcb_connection_t have no effect. * * @return XCB_CONN_ERROR, because of socket errors, pipe errors or other stream errors. * @return XCB_CONN_CLOSED_EXT_NOTSUPPORTED, when extension not supported. * @return XCB_CONN_CLOSED_MEM_INSUFFICIENT, when memory not available. * @return XCB_CONN_CLOSED_REQ_LEN_EXCEED, exceeding request length that server accepts. * @return XCB_CONN_CLOSED_PARSE_ERR, error during parsing display string. */ int xcb_connection_has_error(xcb_connection_t *c); /** * @brief Connects to the X server. * @param fd: The file descriptor. * @param auth_info: Authentication data. * @return A newly allocated xcb_connection_t structure. * * Connects to an X server, given the open socket @p fd and the * xcb_auth_info_t @p auth_info. The file descriptor @p fd is * bidirectionally connected to an X server. If the connection * should be unauthenticated, @p auth_info must be @c * NULL. */ xcb_connection_t *xcb_connect_to_fd(int fd, xcb_auth_info_t *auth_info); /** * @brief Closes the connection. * @param c: The connection. * * Closes the file descriptor and frees all memory associated with the * connection @c c. */ void xcb_disconnect(xcb_connection_t *c); /* xcb_util.c */ /** * @brief Parses a display string name in the form documented by X(7x). * @param name: The name of the display. * @param host: A pointer to a malloc'd copy of the hostname. * @param display: A pointer to the display number. * @param screen: A pointer to the screen number. * @return 0 on failure, non 0 otherwise. * * Parses the display string name @p display_name in the form * documented by X(7x). Has no side effects on failure. If * @p displayname is @c NULL or empty, it uses the environment * variable DISPLAY. @p hostp is a pointer to a newly allocated string * that contain the host name. @p displayp is set to the display * number and @p screenp to the preferred screen number. @p screenp * can be @c NULL. If @p displayname does not contain a screen number, * it is set to @c 0. */ int xcb_parse_display(const char *name, char **host, int *display, int *screen); /** * @brief Connects to the X server. * @param displayname: The name of the display. * @param screenp: A pointer to a preferred screen number. * @return A newly allocated xcb_connection_t structure. * * Connects to the X server specified by @p displayname. If @p * displayname is @c NULL, uses the value of the DISPLAY environment * variable. If a particular screen on that server is preferred, the * int pointed to by @p screenp (if not @c NULL) will be set to that * screen; otherwise the screen will be set to 0. */ xcb_connection_t *xcb_connect(const char *displayname, int *screenp); /** * @brief Connects to the X server, using an authorization information. * @param display: The name of the display. * @param auth: The authorization information. * @param screen: A pointer to a preferred screen number. * @return A newly allocated xcb_connection_t structure. * * Connects to the X server specified by @p displayname, using the * authorization @p auth. If a particular screen on that server is * preferred, the int pointed to by @p screenp (if not @c NULL) will * be set to that screen; otherwise @p screenp will be set to 0. */ xcb_connection_t *xcb_connect_to_display_with_auth_info(const char *display, xcb_auth_info_t *auth, int *screen); /* xcb_xid.c */ /** * @brief Allocates an XID for a new object. * @param c: The connection. * @return A newly allocated XID. * * Allocates an XID for a new object. Typically used just prior to * various object creation functions, such as xcb_create_window. */ uint32_t xcb_generate_id(xcb_connection_t *c); /** * @} */ #ifdef __cplusplus } #endif #endif /* __XCB_H__ */ 0707010006ba66000081a40000000000000000000000014f83889200003005000000b600010002ffffffffffffffff0000002500000000root/usr/local/include/xcb/xc_misc.h/* * 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; /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param uint16_t client_major_version ** @param uint16_t client_minor_version ** @returns xcb_xc_misc_get_version_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint16_t client_major_version ** @param uint16_t client_minor_version ** @returns xcb_xc_misc_get_version_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xc_misc_get_version_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xc_misc_get_version_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_xc_misc_get_xid_range_cookie_t ** *****************************************************************************/ xcb_xc_misc_get_xid_range_cookie_t xcb_xc_misc_get_xid_range (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_xc_misc_get_xid_range_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xc_misc_get_xid_range_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xc_misc_get_xid_range_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param uint32_t count ** @returns xcb_xc_misc_get_xid_list_cookie_t ** *****************************************************************************/ xcb_xc_misc_get_xid_list_cookie_t xcb_xc_misc_get_xid_list (xcb_connection_t *c /**< */, uint32_t count /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint32_t count ** @returns xcb_xc_misc_get_xid_list_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_xc_misc_get_xid_list_reply_t *R ** @returns uint32_t * ** *****************************************************************************/ 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 ** ** @param const xcb_xc_misc_get_xid_list_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xc_misc_get_xid_list_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xc_misc_get_xid_list_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xc_misc_get_xid_list_reply_t * ** *****************************************************************************/ 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 /** * @} */ 0707010006ba63000081a40000000000000000000000014f83889200008880000000b600010002ffffffffffffffff0000002300000000root/usr/local/include/xcb/shape.h/* * 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, XCB_SHAPE_SO_UNION, XCB_SHAPE_SO_INTERSECT, XCB_SHAPE_SO_SUBTRACT, XCB_SHAPE_SO_INVERT } xcb_shape_so_t; typedef enum xcb_shape_sk_t { XCB_SHAPE_SK_BOUNDING, XCB_SHAPE_SK_CLIP, XCB_SHAPE_SK_INPUT } 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 ** ** @param xcb_shape_op_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_shape_op_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_shape_kind_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_shape_kind_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ xcb_generic_iterator_t xcb_shape_kind_end (xcb_shape_kind_iterator_t i /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_shape_query_version_cookie_t xcb_shape_query_version ** ** @param xcb_connection_t *c ** @returns xcb_shape_query_version_cookie_t ** *****************************************************************************/ xcb_shape_query_version_cookie_t xcb_shape_query_version (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_shape_query_version_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_shape_query_version_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_shape_query_version_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_shape_op_t operation ** @param xcb_shape_kind_t destination_kind ** @param uint8_t ordering ** @param xcb_window_t destination_window ** @param int16_t x_offset ** @param int16_t y_offset ** @param uint32_t rectangles_len ** @param const xcb_rectangle_t *rectangles ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_shape_rectangles ** ** @param xcb_connection_t *c ** @param xcb_shape_op_t operation ** @param xcb_shape_kind_t destination_kind ** @param uint8_t ordering ** @param xcb_window_t destination_window ** @param int16_t x_offset ** @param int16_t y_offset ** @param uint32_t rectangles_len ** @param const xcb_rectangle_t *rectangles ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_shape_op_t operation ** @param xcb_shape_kind_t destination_kind ** @param xcb_window_t destination_window ** @param int16_t x_offset ** @param int16_t y_offset ** @param xcb_pixmap_t source_bitmap ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_shape_mask ** ** @param xcb_connection_t *c ** @param xcb_shape_op_t operation ** @param xcb_shape_kind_t destination_kind ** @param xcb_window_t destination_window ** @param int16_t x_offset ** @param int16_t y_offset ** @param xcb_pixmap_t source_bitmap ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_shape_op_t operation ** @param xcb_shape_kind_t destination_kind ** @param xcb_shape_kind_t source_kind ** @param xcb_window_t destination_window ** @param int16_t x_offset ** @param int16_t y_offset ** @param xcb_window_t source_window ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_shape_combine ** ** @param xcb_connection_t *c ** @param xcb_shape_op_t operation ** @param xcb_shape_kind_t destination_kind ** @param xcb_shape_kind_t source_kind ** @param xcb_window_t destination_window ** @param int16_t x_offset ** @param int16_t y_offset ** @param xcb_window_t source_window ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_shape_kind_t destination_kind ** @param xcb_window_t destination_window ** @param int16_t x_offset ** @param int16_t y_offset ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_shape_offset ** ** @param xcb_connection_t *c ** @param xcb_shape_kind_t destination_kind ** @param xcb_window_t destination_window ** @param int16_t x_offset ** @param int16_t y_offset ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_shape_query_extents_cookie_t xcb_shape_query_extents ** ** @param xcb_connection_t *c ** @param xcb_window_t destination_window ** @returns xcb_shape_query_extents_cookie_t ** *****************************************************************************/ xcb_shape_query_extents_cookie_t xcb_shape_query_extents (xcb_connection_t *c /**< */, xcb_window_t destination_window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t destination_window ** @returns xcb_shape_query_extents_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_shape_query_extents_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_shape_query_extents_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t destination_window ** @param uint8_t enable ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_shape_select_input_checked (xcb_connection_t *c /**< */, xcb_window_t destination_window /**< */, uint8_t enable /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_shape_select_input ** ** @param xcb_connection_t *c ** @param xcb_window_t destination_window ** @param uint8_t enable ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_shape_select_input (xcb_connection_t *c /**< */, xcb_window_t destination_window /**< */, uint8_t enable /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_shape_input_selected_cookie_t xcb_shape_input_selected ** ** @param xcb_connection_t *c ** @param xcb_window_t destination_window ** @returns xcb_shape_input_selected_cookie_t ** *****************************************************************************/ xcb_shape_input_selected_cookie_t xcb_shape_input_selected (xcb_connection_t *c /**< */, xcb_window_t destination_window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t destination_window ** @returns xcb_shape_input_selected_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_shape_input_selected_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_shape_input_selected_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_shape_kind_t source_kind ** @returns xcb_shape_get_rectangles_cookie_t ** *****************************************************************************/ xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles (xcb_connection_t *c /**< */, xcb_window_t window /**< */, xcb_shape_kind_t source_kind /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_shape_kind_t source_kind ** @returns xcb_shape_get_rectangles_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_shape_get_rectangles_reply_t *R ** @returns xcb_rectangle_t * ** *****************************************************************************/ xcb_rectangle_t * xcb_shape_get_rectangles_rectangles (const xcb_shape_get_rectangles_reply_t *R /**< */); /***************************************************************************** ** ** int xcb_shape_get_rectangles_rectangles_length ** ** @param const xcb_shape_get_rectangles_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_shape_get_rectangles_reply_t *R ** @returns xcb_rectangle_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_shape_get_rectangles_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_shape_get_rectangles_reply_t * ** *****************************************************************************/ 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 /** * @} */ 0707010006ba73000081a40000000000000000000000014f83889200018c12000000b600010002ffffffffffffffff0000002600000000root/usr/local/include/xcb/xselinux.h/* * 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; /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_selinux_query_version_cookie_t xcb_selinux_query_version ** ** @param xcb_connection_t *c ** @param uint8_t client_major ** @param uint8_t client_minor ** @returns xcb_selinux_query_version_cookie_t ** *****************************************************************************/ xcb_selinux_query_version_cookie_t xcb_selinux_query_version (xcb_connection_t *c /**< */, uint8_t client_major /**< */, uint8_t client_minor /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint8_t client_major ** @param uint8_t client_minor ** @returns xcb_selinux_query_version_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_query_version_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_query_version_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_selinux_set_device_create_context_checked (xcb_connection_t *c /**< */, uint32_t context_len /**< */, const char *context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_selinux_set_device_create_context ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_device_create_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_device_create_context_cookie_t xcb_selinux_get_device_create_context (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_device_create_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_device_create_context_reply_t *R ** @returns char * ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_device_create_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_device_create_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_device_create_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_device_create_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t device ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_selinux_set_device_context_checked (xcb_connection_t *c /**< */, uint32_t device /**< */, uint32_t context_len /**< */, const char *context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_selinux_set_device_context ** ** @param xcb_connection_t *c ** @param uint32_t device ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param uint32_t device ** @returns xcb_selinux_get_device_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_device_context_cookie_t xcb_selinux_get_device_context (xcb_connection_t *c /**< */, uint32_t device /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint32_t device ** @returns xcb_selinux_get_device_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_device_context_reply_t *R ** @returns char * ** *****************************************************************************/ char * xcb_selinux_get_device_context_context (const xcb_selinux_get_device_context_reply_t *R /**< */); /***************************************************************************** ** ** int xcb_selinux_get_device_context_context_length ** ** @param const xcb_selinux_get_device_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_device_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_device_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_device_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_selinux_set_window_create_context_checked (xcb_connection_t *c /**< */, uint32_t context_len /**< */, const char *context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_selinux_set_window_create_context ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_window_create_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_window_create_context_cookie_t xcb_selinux_get_window_create_context (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_window_create_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_window_create_context_reply_t *R ** @returns char * ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_window_create_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_window_create_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_window_create_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_window_create_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_selinux_get_window_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_window_context_cookie_t xcb_selinux_get_window_context (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_selinux_get_window_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_window_context_reply_t *R ** @returns char * ** *****************************************************************************/ char * xcb_selinux_get_window_context_context (const xcb_selinux_get_window_context_reply_t *R /**< */); /***************************************************************************** ** ** int xcb_selinux_get_window_context_context_length ** ** @param const xcb_selinux_get_window_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_window_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_window_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_window_context_reply_t * ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_list_item_t *R ** @returns char * ** *****************************************************************************/ char * xcb_selinux_list_item_object_context (const xcb_selinux_list_item_t *R /**< */); /***************************************************************************** ** ** int xcb_selinux_list_item_object_context_length ** ** @param const xcb_selinux_list_item_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_list_item_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_list_item_t *R ** @returns char * ** *****************************************************************************/ char * xcb_selinux_list_item_data_context (const xcb_selinux_list_item_t *R /**< */); /***************************************************************************** ** ** int xcb_selinux_list_item_data_context_length ** ** @param const xcb_selinux_list_item_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_list_item_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_selinux_list_item_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_selinux_list_item_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_selinux_set_property_create_context_checked (xcb_connection_t *c /**< */, uint32_t context_len /**< */, const char *context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_selinux_set_property_create_context ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_property_create_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_property_create_context_cookie_t xcb_selinux_get_property_create_context (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_property_create_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_property_create_context_reply_t *R ** @returns char * ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_property_create_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_property_create_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_property_create_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_property_create_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_selinux_set_property_use_context_checked (xcb_connection_t *c /**< */, uint32_t context_len /**< */, const char *context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_selinux_set_property_use_context ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_property_use_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_property_use_context_cookie_t xcb_selinux_get_property_use_context (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_property_use_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_property_use_context_reply_t *R ** @returns char * ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_property_use_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_property_use_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_property_use_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_property_use_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_atom_t property ** @returns xcb_selinux_get_property_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_property_context_cookie_t xcb_selinux_get_property_context (xcb_connection_t *c /**< */, xcb_window_t window /**< */, xcb_atom_t property /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_atom_t property ** @returns xcb_selinux_get_property_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_property_context_reply_t *R ** @returns char * ** *****************************************************************************/ char * xcb_selinux_get_property_context_context (const xcb_selinux_get_property_context_reply_t *R /**< */); /***************************************************************************** ** ** int xcb_selinux_get_property_context_context_length ** ** @param const xcb_selinux_get_property_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_property_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_property_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_property_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_atom_t property ** @returns xcb_selinux_get_property_data_context_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_atom_t property ** @returns xcb_selinux_get_property_data_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_property_data_context_reply_t *R ** @returns char * ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_property_data_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_property_data_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_property_data_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_property_data_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_selinux_list_properties_cookie_t xcb_selinux_list_properties ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_selinux_list_properties_cookie_t ** *****************************************************************************/ xcb_selinux_list_properties_cookie_t xcb_selinux_list_properties (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_selinux_list_properties_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_list_properties_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_list_properties_reply_t *R ** @returns xcb_selinux_list_item_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_list_properties_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_list_properties_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_selinux_set_selection_create_context_checked (xcb_connection_t *c /**< */, uint32_t context_len /**< */, const char *context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_selinux_set_selection_create_context ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_selection_create_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_selection_create_context_cookie_t xcb_selinux_get_selection_create_context (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_selection_create_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_selection_create_context_reply_t *R ** @returns char * ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_selection_create_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_selection_create_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_selection_create_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_selection_create_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_selinux_set_selection_use_context_checked (xcb_connection_t *c /**< */, uint32_t context_len /**< */, const char *context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_selinux_set_selection_use_context ** ** @param xcb_connection_t *c ** @param uint32_t context_len ** @param const char *context ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_selection_use_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_selection_use_context_cookie_t xcb_selinux_get_selection_use_context (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_get_selection_use_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_selection_use_context_reply_t *R ** @returns char * ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_selection_use_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_selection_use_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_selection_use_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_selection_use_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_atom_t selection ** @returns xcb_selinux_get_selection_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_selection_context_cookie_t xcb_selinux_get_selection_context (xcb_connection_t *c /**< */, xcb_atom_t selection /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_atom_t selection ** @returns xcb_selinux_get_selection_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_selection_context_reply_t *R ** @returns char * ** *****************************************************************************/ char * xcb_selinux_get_selection_context_context (const xcb_selinux_get_selection_context_reply_t *R /**< */); /***************************************************************************** ** ** int xcb_selinux_get_selection_context_context_length ** ** @param const xcb_selinux_get_selection_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_selection_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_selection_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_selection_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_atom_t selection ** @returns xcb_selinux_get_selection_data_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_selection_data_context_cookie_t xcb_selinux_get_selection_data_context (xcb_connection_t *c /**< */, xcb_atom_t selection /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_atom_t selection ** @returns xcb_selinux_get_selection_data_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_selection_data_context_reply_t *R ** @returns char * ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_selection_data_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_selection_data_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_selection_data_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_selection_data_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_selinux_list_selections_cookie_t xcb_selinux_list_selections ** ** @param xcb_connection_t *c ** @returns xcb_selinux_list_selections_cookie_t ** *****************************************************************************/ xcb_selinux_list_selections_cookie_t xcb_selinux_list_selections (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_selinux_list_selections_cookie_t ** *****************************************************************************/ xcb_selinux_list_selections_cookie_t xcb_selinux_list_selections_unchecked (xcb_connection_t *c /**< */); /***************************************************************************** ** ** int xcb_selinux_list_selections_selections_length ** ** @param const xcb_selinux_list_selections_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_list_selections_reply_t *R ** @returns xcb_selinux_list_item_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_list_selections_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_list_selections_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param uint32_t resource ** @returns xcb_selinux_get_client_context_cookie_t ** *****************************************************************************/ xcb_selinux_get_client_context_cookie_t xcb_selinux_get_client_context (xcb_connection_t *c /**< */, uint32_t resource /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint32_t resource ** @returns xcb_selinux_get_client_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_client_context_reply_t *R ** @returns char * ** *****************************************************************************/ char * xcb_selinux_get_client_context_context (const xcb_selinux_get_client_context_reply_t *R /**< */); /***************************************************************************** ** ** int xcb_selinux_get_client_context_context_length ** ** @param const xcb_selinux_get_client_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_selinux_get_client_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_selinux_get_client_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_selinux_get_client_context_reply_t * ** *****************************************************************************/ 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 /** * @} */ 0707010006ba58000081a40000000000000000000000014f83889200005b06000000b600010002ffffffffffffffff0000002700000000root/usr/local/include/xcb/composite.h/* * 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 "render.h" #include "shape.h" #include "xfixes.h" #ifdef __cplusplus extern "C" { #endif #define XCB_COMPOSITE_MAJOR_VERSION 0 #define XCB_COMPOSITE_MINOR_VERSION 3 extern xcb_extension_t xcb_composite_id; typedef enum xcb_composite_redirect_t { XCB_COMPOSITE_REDIRECT_AUTOMATIC, XCB_COMPOSITE_REDIRECT_MANUAL } 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; /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_composite_query_version_cookie_t xcb_composite_query_version ** ** @param xcb_connection_t *c ** @param uint32_t client_major_version ** @param uint32_t client_minor_version ** @returns xcb_composite_query_version_cookie_t ** *****************************************************************************/ xcb_composite_query_version_cookie_t xcb_composite_query_version (xcb_connection_t *c /**< */, uint32_t client_major_version /**< */, uint32_t client_minor_version /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint32_t client_major_version ** @param uint32_t client_minor_version ** @returns xcb_composite_query_version_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_composite_query_version_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_composite_query_version_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint8_t update ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_redirect_window_checked (xcb_connection_t *c /**< */, xcb_window_t window /**< */, uint8_t update /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_composite_redirect_window ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint8_t update ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_redirect_window (xcb_connection_t *c /**< */, xcb_window_t window /**< */, uint8_t update /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint8_t update ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_redirect_subwindows_checked (xcb_connection_t *c /**< */, xcb_window_t window /**< */, uint8_t update /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_composite_redirect_subwindows ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint8_t update ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_redirect_subwindows (xcb_connection_t *c /**< */, xcb_window_t window /**< */, uint8_t update /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint8_t update ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_unredirect_window_checked (xcb_connection_t *c /**< */, xcb_window_t window /**< */, uint8_t update /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_composite_unredirect_window ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint8_t update ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_unredirect_window (xcb_connection_t *c /**< */, xcb_window_t window /**< */, uint8_t update /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint8_t update ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_unredirect_subwindows_checked (xcb_connection_t *c /**< */, xcb_window_t window /**< */, uint8_t update /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_composite_unredirect_subwindows ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint8_t update ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_unredirect_subwindows (xcb_connection_t *c /**< */, xcb_window_t window /**< */, uint8_t update /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param xcb_window_t window ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param xcb_window_t window ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_create_region_from_border_clip (xcb_connection_t *c /**< */, xcb_xfixes_region_t region /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_pixmap_t pixmap ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_name_window_pixmap_checked (xcb_connection_t *c /**< */, xcb_window_t window /**< */, xcb_pixmap_t pixmap /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_composite_name_window_pixmap ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_pixmap_t pixmap ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_name_window_pixmap (xcb_connection_t *c /**< */, xcb_window_t window /**< */, xcb_pixmap_t pixmap /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_composite_get_overlay_window_cookie_t ** *****************************************************************************/ xcb_composite_get_overlay_window_cookie_t xcb_composite_get_overlay_window (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_composite_get_overlay_window_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_composite_get_overlay_window_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_composite_get_overlay_window_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_release_overlay_window_checked (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_composite_release_overlay_window ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_composite_release_overlay_window (xcb_connection_t *c /**< */, xcb_window_t window /**< */); #ifdef __cplusplus } #endif #endif /** * @} */ 0707010006ba75000081a40000000000000000000000014f83889200019718000000b600010002ffffffffffffffff0000002000000000root/usr/local/include/xcb/xv.h/* * 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, XCB_XV_IMAGE_FORMAT_INFO_TYPE_YUV } xcb_xv_image_format_info_type_t; typedef enum xcb_xv_image_format_info_format_t { XCB_XV_IMAGE_FORMAT_INFO_FORMAT_PACKED, XCB_XV_IMAGE_FORMAT_INFO_FORMAT_PLANAR } 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, XCB_XV_VIDEO_NOTIFY_REASON_STOPPED, XCB_XV_VIDEO_NOTIFY_REASON_BUSY, XCB_XV_VIDEO_NOTIFY_REASON_PREEMPTED, XCB_XV_VIDEO_NOTIFY_REASON_HARD_ERROR } xcb_xv_video_notify_reason_t; typedef enum xcb_xv_scanline_order_t { XCB_XV_SCANLINE_ORDER_TOP_TO_BOTTOM, XCB_XV_SCANLINE_ORDER_BOTTOM_TO_TOP } xcb_xv_scanline_order_t; typedef enum xcb_xv_grab_port_status_t { XCB_XV_GRAB_PORT_STATUS_SUCCESS, XCB_XV_GRAB_PORT_STATUS_BAD_EXTENSION, XCB_XV_GRAB_PORT_STATUS_ALREADY_GRABBED, XCB_XV_GRAB_PORT_STATUS_INVALID_TIME, XCB_XV_GRAB_PORT_STATUS_BAD_REPLY, XCB_XV_GRAB_PORT_STATUS_BAD_ALLOC } 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 ** ** @param xcb_xv_port_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_xv_port_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_xv_encoding_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_xv_encoding_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_xv_rational_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_xv_rational_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_xv_format_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_xv_format_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_xv_adaptor_info_t *R ** @returns char * ** *****************************************************************************/ char * xcb_xv_adaptor_info_name (const xcb_xv_adaptor_info_t *R /**< */); /***************************************************************************** ** ** int xcb_xv_adaptor_info_name_length ** ** @param const xcb_xv_adaptor_info_t *R ** @returns int ** *****************************************************************************/ int xcb_xv_adaptor_info_name_length (const xcb_xv_adaptor_info_t *R /**< */); /***************************************************************************** ** ** xcb_generic_iterator_t xcb_xv_adaptor_info_name_end ** ** @param const xcb_xv_adaptor_info_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_xv_adaptor_info_t *R ** @returns xcb_xv_format_t * ** *****************************************************************************/ xcb_xv_format_t * xcb_xv_adaptor_info_formats (const xcb_xv_adaptor_info_t *R /**< */); /***************************************************************************** ** ** int xcb_xv_adaptor_info_formats_length ** ** @param const xcb_xv_adaptor_info_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xv_adaptor_info_t *R ** @returns xcb_xv_format_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_xv_adaptor_info_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_xv_adaptor_info_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_xv_encoding_info_t *R ** @returns char * ** *****************************************************************************/ char * xcb_xv_encoding_info_name (const xcb_xv_encoding_info_t *R /**< */); /***************************************************************************** ** ** int xcb_xv_encoding_info_name_length ** ** @param const xcb_xv_encoding_info_t *R ** @returns int ** *****************************************************************************/ int xcb_xv_encoding_info_name_length (const xcb_xv_encoding_info_t *R /**< */); /***************************************************************************** ** ** xcb_generic_iterator_t xcb_xv_encoding_info_name_end ** ** @param const xcb_xv_encoding_info_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_xv_encoding_info_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_xv_encoding_info_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_xv_image_t *R ** @returns uint32_t * ** *****************************************************************************/ uint32_t * xcb_xv_image_pitches (const xcb_xv_image_t *R /**< */); /***************************************************************************** ** ** int xcb_xv_image_pitches_length ** ** @param const xcb_xv_image_t *R ** @returns int ** *****************************************************************************/ int xcb_xv_image_pitches_length (const xcb_xv_image_t *R /**< */); /***************************************************************************** ** ** xcb_generic_iterator_t xcb_xv_image_pitches_end ** ** @param const xcb_xv_image_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ xcb_generic_iterator_t xcb_xv_image_pitches_end (const xcb_xv_image_t *R /**< */); /***************************************************************************** ** ** uint32_t * xcb_xv_image_offsets ** ** @param const xcb_xv_image_t *R ** @returns uint32_t * ** *****************************************************************************/ uint32_t * xcb_xv_image_offsets (const xcb_xv_image_t *R /**< */); /***************************************************************************** ** ** int xcb_xv_image_offsets_length ** ** @param const xcb_xv_image_t *R ** @returns int ** *****************************************************************************/ int xcb_xv_image_offsets_length (const xcb_xv_image_t *R /**< */); /***************************************************************************** ** ** xcb_generic_iterator_t xcb_xv_image_offsets_end ** ** @param const xcb_xv_image_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ xcb_generic_iterator_t xcb_xv_image_offsets_end (const xcb_xv_image_t *R /**< */); /***************************************************************************** ** ** uint8_t * xcb_xv_image_data ** ** @param const xcb_xv_image_t *R ** @returns uint8_t * ** *****************************************************************************/ uint8_t * xcb_xv_image_data (const xcb_xv_image_t *R /**< */); /***************************************************************************** ** ** int xcb_xv_image_data_length ** ** @param const xcb_xv_image_t *R ** @returns int ** *****************************************************************************/ int xcb_xv_image_data_length (const xcb_xv_image_t *R /**< */); /***************************************************************************** ** ** xcb_generic_iterator_t xcb_xv_image_data_end ** ** @param const xcb_xv_image_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_xv_image_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_xv_image_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_xv_attribute_info_t *R ** @returns char * ** *****************************************************************************/ char * xcb_xv_attribute_info_name (const xcb_xv_attribute_info_t *R /**< */); /***************************************************************************** ** ** int xcb_xv_attribute_info_name_length ** ** @param const xcb_xv_attribute_info_t *R ** @returns int ** *****************************************************************************/ int xcb_xv_attribute_info_name_length (const xcb_xv_attribute_info_t *R /**< */); /***************************************************************************** ** ** xcb_generic_iterator_t xcb_xv_attribute_info_name_end ** ** @param const xcb_xv_attribute_info_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_xv_attribute_info_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_xv_attribute_info_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_xv_image_format_info_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_xv_image_format_info_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ xcb_generic_iterator_t xcb_xv_image_format_info_end (xcb_xv_image_format_info_iterator_t i /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_xv_query_extension_cookie_t xcb_xv_query_extension ** ** @param xcb_connection_t *c ** @returns xcb_xv_query_extension_cookie_t ** *****************************************************************************/ xcb_xv_query_extension_cookie_t xcb_xv_query_extension (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_xv_query_extension_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_query_extension_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xv_query_extension_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_xv_query_adaptors_cookie_t xcb_xv_query_adaptors ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_xv_query_adaptors_cookie_t ** *****************************************************************************/ xcb_xv_query_adaptors_cookie_t xcb_xv_query_adaptors (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_xv_query_adaptors_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_adaptors_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_adaptors_reply_t *R ** @returns xcb_xv_adaptor_info_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_query_adaptors_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xv_query_adaptors_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_xv_query_encodings_cookie_t xcb_xv_query_encodings ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @returns xcb_xv_query_encodings_cookie_t ** *****************************************************************************/ xcb_xv_query_encodings_cookie_t xcb_xv_query_encodings (xcb_connection_t *c /**< */, xcb_xv_port_t port /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @returns xcb_xv_query_encodings_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_encodings_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_encodings_reply_t *R ** @returns xcb_xv_encoding_info_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_query_encodings_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xv_query_encodings_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_xv_grab_port_cookie_t xcb_xv_grab_port ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_timestamp_t time ** @returns xcb_xv_grab_port_cookie_t ** *****************************************************************************/ xcb_xv_grab_port_cookie_t xcb_xv_grab_port (xcb_connection_t *c /**< */, xcb_xv_port_t port /**< */, xcb_timestamp_t time /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_timestamp_t time ** @returns xcb_xv_grab_port_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_grab_port_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xv_grab_port_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_timestamp_t time ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xv_ungrab_port_checked (xcb_connection_t *c /**< */, xcb_xv_port_t port /**< */, xcb_timestamp_t time /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xv_ungrab_port ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_timestamp_t time ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xv_ungrab_port (xcb_connection_t *c /**< */, xcb_xv_port_t port /**< */, xcb_timestamp_t time /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param int16_t vid_x ** @param int16_t vid_y ** @param uint16_t vid_w ** @param uint16_t vid_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xv_put_video ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param int16_t vid_x ** @param int16_t vid_y ** @param uint16_t vid_w ** @param uint16_t vid_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param int16_t vid_x ** @param int16_t vid_y ** @param uint16_t vid_w ** @param uint16_t vid_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xv_put_still ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param int16_t vid_x ** @param int16_t vid_y ** @param uint16_t vid_w ** @param uint16_t vid_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param int16_t vid_x ** @param int16_t vid_y ** @param uint16_t vid_w ** @param uint16_t vid_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xv_get_video ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param int16_t vid_x ** @param int16_t vid_y ** @param uint16_t vid_w ** @param uint16_t vid_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param int16_t vid_x ** @param int16_t vid_y ** @param uint16_t vid_w ** @param uint16_t vid_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xv_get_still ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param int16_t vid_x ** @param int16_t vid_y ** @param uint16_t vid_w ** @param uint16_t vid_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xv_stop_video_checked (xcb_connection_t *c /**< */, xcb_xv_port_t port /**< */, xcb_drawable_t drawable /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xv_stop_video ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xv_stop_video (xcb_connection_t *c /**< */, xcb_xv_port_t port /**< */, xcb_drawable_t drawable /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_drawable_t drawable ** @param uint8_t onoff ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xv_select_video_notify_checked (xcb_connection_t *c /**< */, xcb_drawable_t drawable /**< */, uint8_t onoff /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xv_select_video_notify ** ** @param xcb_connection_t *c ** @param xcb_drawable_t drawable ** @param uint8_t onoff ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xv_select_video_notify (xcb_connection_t *c /**< */, xcb_drawable_t drawable /**< */, uint8_t onoff /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param uint8_t onoff ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xv_select_port_notify_checked (xcb_connection_t *c /**< */, xcb_xv_port_t port /**< */, uint8_t onoff /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xv_select_port_notify ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param uint8_t onoff ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xv_select_port_notify (xcb_connection_t *c /**< */, xcb_xv_port_t port /**< */, uint8_t onoff /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param uint16_t vid_w ** @param uint16_t vid_h ** @param uint16_t drw_w ** @param uint16_t drw_h ** @param uint8_t motion ** @returns xcb_xv_query_best_size_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param uint16_t vid_w ** @param uint16_t vid_h ** @param uint16_t drw_w ** @param uint16_t drw_h ** @param uint8_t motion ** @returns xcb_xv_query_best_size_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_query_best_size_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xv_query_best_size_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_atom_t attribute ** @param int32_t value ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xv_set_port_attribute ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_atom_t attribute ** @param int32_t value ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_atom_t attribute ** @returns xcb_xv_get_port_attribute_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_atom_t attribute ** @returns xcb_xv_get_port_attribute_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_get_port_attribute_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xv_get_port_attribute_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @returns xcb_xv_query_port_attributes_cookie_t ** *****************************************************************************/ xcb_xv_query_port_attributes_cookie_t xcb_xv_query_port_attributes (xcb_connection_t *c /**< */, xcb_xv_port_t port /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @returns xcb_xv_query_port_attributes_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_port_attributes_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_port_attributes_reply_t *R ** @returns xcb_xv_attribute_info_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_query_port_attributes_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xv_query_port_attributes_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @returns xcb_xv_list_image_formats_cookie_t ** *****************************************************************************/ xcb_xv_list_image_formats_cookie_t xcb_xv_list_image_formats (xcb_connection_t *c /**< */, xcb_xv_port_t port /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @returns xcb_xv_list_image_formats_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_xv_list_image_formats_reply_t *R ** @returns xcb_xv_image_format_info_t * ** *****************************************************************************/ 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 ** ** @param const xcb_xv_list_image_formats_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xv_list_image_formats_reply_t *R ** @returns xcb_xv_image_format_info_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_list_image_formats_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xv_list_image_formats_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param uint32_t id ** @param uint16_t width ** @param uint16_t height ** @returns xcb_xv_query_image_attributes_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param uint32_t id ** @param uint16_t width ** @param uint16_t height ** @returns xcb_xv_query_image_attributes_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_image_attributes_reply_t *R ** @returns uint32_t * ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_image_attributes_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_image_attributes_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_image_attributes_reply_t *R ** @returns uint32_t * ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_image_attributes_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xv_query_image_attributes_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_query_image_attributes_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xv_query_image_attributes_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param uint32_t id ** @param int16_t src_x ** @param int16_t src_y ** @param uint16_t src_w ** @param uint16_t src_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @param uint16_t width ** @param uint16_t height ** @param uint32_t data_len ** @param const uint8_t *data ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xv_put_image ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param uint32_t id ** @param int16_t src_x ** @param int16_t src_y ** @param uint16_t src_w ** @param uint16_t src_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @param uint16_t width ** @param uint16_t height ** @param uint32_t data_len ** @param const uint8_t *data ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param xcb_shm_seg_t shmseg ** @param uint32_t id ** @param uint32_t offset ** @param int16_t src_x ** @param int16_t src_y ** @param uint16_t src_w ** @param uint16_t src_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @param uint16_t width ** @param uint16_t height ** @param uint8_t send_event ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xv_shm_put_image ** ** @param xcb_connection_t *c ** @param xcb_xv_port_t port ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param xcb_shm_seg_t shmseg ** @param uint32_t id ** @param uint32_t offset ** @param int16_t src_x ** @param int16_t src_y ** @param uint16_t src_w ** @param uint16_t src_h ** @param int16_t drw_x ** @param int16_t drw_y ** @param uint16_t drw_w ** @param uint16_t drw_h ** @param uint16_t width ** @param uint16_t height ** @param uint8_t send_event ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /** * @} */ 0707010006ba5e000081a40000000000000000000000014f8388920000acfb000000b600010002ffffffffffffffff0000002400000000root/usr/local/include/xcb/record.h/* * 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 ** ** @param xcb_record_context_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_record_context_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_record_range_8_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_record_range_8_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_record_range_16_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_record_range_16_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_record_ext_range_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_record_ext_range_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_record_range_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_record_range_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_record_element_header_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_record_element_header_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_record_client_spec_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_record_client_spec_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_record_client_info_t *R ** @returns xcb_record_range_t * ** *****************************************************************************/ xcb_record_range_t * xcb_record_client_info_ranges (const xcb_record_client_info_t *R /**< */); /***************************************************************************** ** ** int xcb_record_client_info_ranges_length ** ** @param const xcb_record_client_info_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_record_client_info_t *R ** @returns xcb_record_range_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_record_client_info_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_record_client_info_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ xcb_generic_iterator_t xcb_record_client_info_end (xcb_record_client_info_iterator_t i /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_record_query_version_cookie_t xcb_record_query_version ** ** @param xcb_connection_t *c ** @param uint16_t major_version ** @param uint16_t minor_version ** @returns xcb_record_query_version_cookie_t ** *****************************************************************************/ xcb_record_query_version_cookie_t xcb_record_query_version (xcb_connection_t *c /**< */, uint16_t major_version /**< */, uint16_t minor_version /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint16_t major_version ** @param uint16_t minor_version ** @returns xcb_record_query_version_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_record_query_version_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_record_query_version_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @param xcb_record_element_header_t element_header ** @param uint32_t num_client_specs ** @param uint32_t num_ranges ** @param const xcb_record_client_spec_t *client_specs ** @param const xcb_record_range_t *ranges ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_record_create_context ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @param xcb_record_element_header_t element_header ** @param uint32_t num_client_specs ** @param uint32_t num_ranges ** @param const xcb_record_client_spec_t *client_specs ** @param const xcb_record_range_t *ranges ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @param xcb_record_element_header_t element_header ** @param uint32_t num_client_specs ** @param uint32_t num_ranges ** @param const xcb_record_client_spec_t *client_specs ** @param const xcb_record_range_t *ranges ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_record_register_clients ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @param xcb_record_element_header_t element_header ** @param uint32_t num_client_specs ** @param uint32_t num_ranges ** @param const xcb_record_client_spec_t *client_specs ** @param const xcb_record_range_t *ranges ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @param uint32_t num_client_specs ** @param const xcb_record_client_spec_t *client_specs ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_record_unregister_clients ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @param uint32_t num_client_specs ** @param const xcb_record_client_spec_t *client_specs ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_record_get_context_cookie_t xcb_record_get_context ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @returns xcb_record_get_context_cookie_t ** *****************************************************************************/ xcb_record_get_context_cookie_t xcb_record_get_context (xcb_connection_t *c /**< */, xcb_record_context_t context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @returns xcb_record_get_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_record_get_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_record_get_context_reply_t *R ** @returns xcb_record_client_info_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_record_get_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_record_get_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_record_enable_context_cookie_t xcb_record_enable_context ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @returns xcb_record_enable_context_cookie_t ** *****************************************************************************/ xcb_record_enable_context_cookie_t xcb_record_enable_context (xcb_connection_t *c /**< */, xcb_record_context_t context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @returns xcb_record_enable_context_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_record_enable_context_reply_t *R ** @returns uint8_t * ** *****************************************************************************/ uint8_t * xcb_record_enable_context_data (const xcb_record_enable_context_reply_t *R /**< */); /***************************************************************************** ** ** int xcb_record_enable_context_data_length ** ** @param const xcb_record_enable_context_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_record_enable_context_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_record_enable_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_record_enable_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_record_disable_context_checked (xcb_connection_t *c /**< */, xcb_record_context_t context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_record_disable_context ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_record_disable_context (xcb_connection_t *c /**< */, xcb_record_context_t context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_record_free_context_checked (xcb_connection_t *c /**< */, xcb_record_context_t context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_record_free_context ** ** @param xcb_connection_t *c ** @param xcb_record_context_t context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_record_free_context (xcb_connection_t *c /**< */, xcb_record_context_t context /**< */); #ifdef __cplusplus } #endif #endif /** * @} */ 0707010006ba60000081a40000000000000000000000014f83889200005100000000b600010002ffffffffffffffff0000002100000000root/usr/local/include/xcb/res.h/* * 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 0 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; /** * @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; /** * 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 ** ** @param xcb_res_client_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_res_client_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_res_type_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_res_type_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ xcb_generic_iterator_t xcb_res_type_end (xcb_res_type_iterator_t i /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_res_query_version_cookie_t xcb_res_query_version ** ** @param xcb_connection_t *c ** @param uint8_t client_major ** @param uint8_t client_minor ** @returns xcb_res_query_version_cookie_t ** *****************************************************************************/ xcb_res_query_version_cookie_t xcb_res_query_version (xcb_connection_t *c /**< */, uint8_t client_major /**< */, uint8_t client_minor /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint8_t client_major ** @param uint8_t client_minor ** @returns xcb_res_query_version_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_res_query_version_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_res_query_version_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_res_query_clients_cookie_t xcb_res_query_clients ** ** @param xcb_connection_t *c ** @returns xcb_res_query_clients_cookie_t ** *****************************************************************************/ xcb_res_query_clients_cookie_t xcb_res_query_clients (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_res_query_clients_cookie_t ** *****************************************************************************/ xcb_res_query_clients_cookie_t xcb_res_query_clients_unchecked (xcb_connection_t *c /**< */); /***************************************************************************** ** ** xcb_res_client_t * xcb_res_query_clients_clients ** ** @param const xcb_res_query_clients_reply_t *R ** @returns xcb_res_client_t * ** *****************************************************************************/ xcb_res_client_t * xcb_res_query_clients_clients (const xcb_res_query_clients_reply_t *R /**< */); /***************************************************************************** ** ** int xcb_res_query_clients_clients_length ** ** @param const xcb_res_query_clients_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_res_query_clients_reply_t *R ** @returns xcb_res_client_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_res_query_clients_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_res_query_clients_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param uint32_t xid ** @returns xcb_res_query_client_resources_cookie_t ** *****************************************************************************/ xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources (xcb_connection_t *c /**< */, uint32_t xid /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint32_t xid ** @returns xcb_res_query_client_resources_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_res_query_client_resources_reply_t *R ** @returns xcb_res_type_t * ** *****************************************************************************/ 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 ** ** @param const xcb_res_query_client_resources_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_res_query_client_resources_reply_t *R ** @returns xcb_res_type_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_res_query_client_resources_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_res_query_client_resources_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param uint32_t xid ** @returns xcb_res_query_client_pixmap_bytes_cookie_t ** *****************************************************************************/ xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes (xcb_connection_t *c /**< */, uint32_t xid /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint32_t xid ** @returns xcb_res_query_client_pixmap_bytes_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_res_query_client_pixmap_bytes_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_res_query_client_pixmap_bytes_reply_t * ** *****************************************************************************/ 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 /**< */); #ifdef __cplusplus } #endif #endif /** * @} */ 0707010006ba68000081a40000000000000000000000014f83889200000f2f000000b600010002ffffffffffffffff0000002400000000root/usr/local/include/xcb/xcbext.h/* * Copyright (C) 2001-2004 Bart Massey and Jamey Sharp. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * 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 * AUTHORS 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 names of the authors or their * institutions 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 authors. */ #ifndef __XCBEXT_H #define __XCBEXT_H #include "xcb.h" #ifdef __cplusplus extern "C" { #endif /* xcb_ext.c */ struct xcb_extension_t { const char *name; int global_id; }; /* xcb_out.c */ typedef struct { size_t count; xcb_extension_t *ext; uint8_t opcode; uint8_t isvoid; } xcb_protocol_request_t; enum xcb_send_request_flags_t { XCB_REQUEST_CHECKED = 1 << 0, XCB_REQUEST_RAW = 1 << 1, XCB_REQUEST_DISCARD_REPLY = 1 << 2 }; unsigned int xcb_send_request(xcb_connection_t *c, int flags, struct iovec *vector, const xcb_protocol_request_t *request); /* xcb_take_socket allows external code to ask XCB for permission to * take over the write side of the socket and send raw data with * xcb_writev. xcb_take_socket provides the sequence number of the last * request XCB sent. The caller of xcb_take_socket must supply a * callback which XCB can call when it wants the write side of the * socket back to make a request. This callback synchronizes with the * external socket owner and flushes any output queues if appropriate. * If you are sending requests which won't cause a reply, please note the * comment for xcb_writev which explains some sequence number wrap issues. * */ int xcb_take_socket(xcb_connection_t *c, void (*return_socket)(void *closure), void *closure, int flags, uint64_t *sent); /* You must own the write-side of the socket (you've called * xcb_take_socket, and haven't returned from return_socket yet) to call * xcb_writev. Also, the iovec must have at least 1 byte of data in it. * You have to make sure that xcb can detect sequence number wraps correctly. * This means that the first request you send after xcb_take_socket must cause a * reply (e.g. just insert a GetInputFocus request). After every (1 << 16) - 1 * requests without a reply, you have to insert a request which will cause a * reply. You can again use GetInputFocus for this. You do not have to wait for * any of the GetInputFocus replies, but can instead handle them via * xcb_discard_reply(). */ int xcb_writev(xcb_connection_t *c, struct iovec *vector, int count, uint64_t requests); /* xcb_in.c */ void *xcb_wait_for_reply(xcb_connection_t *c, unsigned int request, xcb_generic_error_t **e); int xcb_poll_for_reply(xcb_connection_t *c, unsigned int request, void **reply, xcb_generic_error_t **error); /* xcb_util.c */ int xcb_popcount(uint32_t mask); int xcb_sumof(uint8_t *list, int len); #ifdef __cplusplus } #endif #endif 0707010006ba56000081a40000000000000000000000014f83889200000e5a000000b600010002ffffffffffffffff0000002400000000root/usr/local/include/xcb/bigreq.h/* * 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; /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_big_requests_enable_cookie_t xcb_big_requests_enable ** ** @param xcb_connection_t *c ** @returns xcb_big_requests_enable_cookie_t ** *****************************************************************************/ xcb_big_requests_enable_cookie_t xcb_big_requests_enable (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_big_requests_enable_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_big_requests_enable_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_big_requests_enable_reply_t * ** *****************************************************************************/ 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 /** * @} */ 0707010006ba70000081a40000000000000000000000014f83889200018169000000b600010002ffffffffffffffff0000002400000000root/usr/local/include/xcb/xprint.h/* * 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_string8_t attributes; /**< */ } 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 ** ** @param xcb_x_print_string8_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_x_print_string8_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_printer_t *R ** @returns xcb_x_print_string8_t * ** *****************************************************************************/ xcb_x_print_string8_t * xcb_x_print_printer_name (const xcb_x_print_printer_t *R /**< */); /***************************************************************************** ** ** int xcb_x_print_printer_name_length ** ** @param const xcb_x_print_printer_t *R ** @returns int ** *****************************************************************************/ int xcb_x_print_printer_name_length (const xcb_x_print_printer_t *R /**< */); /***************************************************************************** ** ** xcb_generic_iterator_t xcb_x_print_printer_name_end ** ** @param const xcb_x_print_printer_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_printer_t *R ** @returns xcb_x_print_string8_t * ** *****************************************************************************/ xcb_x_print_string8_t * xcb_x_print_printer_description (const xcb_x_print_printer_t *R /**< */); /***************************************************************************** ** ** int xcb_x_print_printer_description_length ** ** @param const xcb_x_print_printer_t *R ** @returns int ** *****************************************************************************/ int xcb_x_print_printer_description_length (const xcb_x_print_printer_t *R /**< */); /***************************************************************************** ** ** xcb_generic_iterator_t xcb_x_print_printer_description_end ** ** @param const xcb_x_print_printer_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_x_print_printer_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_x_print_printer_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_x_print_pcontext_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_x_print_pcontext_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ xcb_generic_iterator_t xcb_x_print_pcontext_end (xcb_x_print_pcontext_iterator_t i /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_x_print_print_query_version_cookie_t ** *****************************************************************************/ xcb_x_print_print_query_version_cookie_t xcb_x_print_print_query_version (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_x_print_print_query_version_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_query_version_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_query_version_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param uint32_t printerNameLen ** @param uint32_t localeLen ** @param const xcb_x_print_string8_t *printer_name ** @param const xcb_x_print_string8_t *locale ** @returns xcb_x_print_print_get_printer_list_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint32_t printerNameLen ** @param uint32_t localeLen ** @param const xcb_x_print_string8_t *printer_name ** @param const xcb_x_print_string8_t *locale ** @returns xcb_x_print_print_get_printer_list_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_get_printer_list_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_get_printer_list_reply_t *R ** @returns xcb_x_print_printer_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_get_printer_list_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_get_printer_list_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_rehash_printer_list_checked (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t context_id ** @param uint32_t printerNameLen ** @param uint32_t localeLen ** @param const xcb_x_print_string8_t *printerName ** @param const xcb_x_print_string8_t *locale ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_x_print_create_context ** ** @param xcb_connection_t *c ** @param uint32_t context_id ** @param uint32_t printerNameLen ** @param uint32_t localeLen ** @param const xcb_x_print_string8_t *printerName ** @param const xcb_x_print_string8_t *locale ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_set_context_checked (xcb_connection_t *c /**< */, uint32_t context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_x_print_print_set_context ** ** @param xcb_connection_t *c ** @param uint32_t context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_set_context (xcb_connection_t *c /**< */, uint32_t context /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_x_print_print_get_context_cookie_t ** *****************************************************************************/ xcb_x_print_print_get_context_cookie_t xcb_x_print_print_get_context (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_x_print_print_get_context_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_get_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_get_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint32_t context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_destroy_context_checked (xcb_connection_t *c /**< */, uint32_t context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_x_print_print_destroy_context ** ** @param xcb_connection_t *c ** @param uint32_t context ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_destroy_context (xcb_connection_t *c /**< */, uint32_t context /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_x_print_print_get_screen_of_context_cookie_t ** *****************************************************************************/ xcb_x_print_print_get_screen_of_context_cookie_t xcb_x_print_print_get_screen_of_context (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_x_print_print_get_screen_of_context_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_get_screen_of_context_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_get_screen_of_context_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint8_t output_mode ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_start_job_checked (xcb_connection_t *c /**< */, uint8_t output_mode /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_x_print_print_start_job ** ** @param xcb_connection_t *c ** @param uint8_t output_mode ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_start_job (xcb_connection_t *c /**< */, uint8_t output_mode /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint8_t cancel ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_end_job_checked (xcb_connection_t *c /**< */, uint8_t cancel /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_x_print_print_end_job ** ** @param xcb_connection_t *c ** @param uint8_t cancel ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_end_job (xcb_connection_t *c /**< */, uint8_t cancel /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint8_t driver_mode ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_start_doc_checked (xcb_connection_t *c /**< */, uint8_t driver_mode /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_x_print_print_start_doc ** ** @param xcb_connection_t *c ** @param uint8_t driver_mode ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_start_doc (xcb_connection_t *c /**< */, uint8_t driver_mode /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint8_t cancel ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_end_doc_checked (xcb_connection_t *c /**< */, uint8_t cancel /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_x_print_print_end_doc ** ** @param xcb_connection_t *c ** @param uint8_t cancel ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_drawable_t drawable ** @param uint32_t len_data ** @param uint16_t len_fmt ** @param uint16_t len_options ** @param const uint8_t *data ** @param uint32_t doc_format_len ** @param const xcb_x_print_string8_t *doc_format ** @param uint32_t options_len ** @param const xcb_x_print_string8_t *options ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_drawable_t drawable ** @param uint32_t len_data ** @param uint16_t len_fmt ** @param uint16_t len_options ** @param const uint8_t *data ** @param uint32_t doc_format_len ** @param const xcb_x_print_string8_t *doc_format ** @param uint32_t options_len ** @param const xcb_x_print_string8_t *options ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint32_t max_bytes ** @returns xcb_x_print_print_get_document_data_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint32_t max_bytes ** @returns xcb_x_print_print_get_document_data_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_get_document_data_reply_t *R ** @returns uint8_t * ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_get_document_data_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_get_document_data_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_get_document_data_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_get_document_data_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_start_page_checked (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_x_print_print_start_page ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_start_page (xcb_connection_t *c /**< */, xcb_window_t window /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint8_t cancel ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_x_print_print_end_page_checked (xcb_connection_t *c /**< */, uint8_t cancel /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_x_print_print_end_page ** ** @param xcb_connection_t *c ** @param uint8_t cancel ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint32_t event_mask ** @param const uint32_t *event_list ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_x_print_print_select_input ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint32_t event_mask ** @param const uint32_t *event_list ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @returns xcb_x_print_print_input_selected_cookie_t ** *****************************************************************************/ xcb_x_print_print_input_selected_cookie_t xcb_x_print_print_input_selected (xcb_connection_t *c /**< */, xcb_x_print_pcontext_t context /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @returns xcb_x_print_print_input_selected_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_input_selected_reply_t *R ** @returns uint32_t * ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_input_selected_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_input_selected_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_input_selected_reply_t *R ** @returns uint32_t * ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_input_selected_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_input_selected_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_input_selected_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_input_selected_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint8_t pool ** @returns xcb_x_print_print_get_attributes_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint8_t pool ** @returns xcb_x_print_print_get_attributes_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Return the reply * @param c The connection * @param cookie The cookie * @param e The xcb_generic_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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_get_attributes_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_get_attributes_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint32_t nameLen ** @param uint8_t pool ** @param const xcb_x_print_string8_t *name ** @returns xcb_x_print_print_get_one_attributes_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint32_t nameLen ** @param uint8_t pool ** @param const xcb_x_print_string8_t *name ** @returns xcb_x_print_print_get_one_attributes_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_get_one_attributes_reply_t *R ** @returns xcb_x_print_string8_t * ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_get_one_attributes_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_get_one_attributes_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_get_one_attributes_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_get_one_attributes_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint32_t stringLen ** @param uint8_t pool ** @param uint8_t rule ** @param uint32_t attributes_len ** @param const xcb_x_print_string8_t *attributes ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_x_print_print_set_attributes ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint32_t stringLen ** @param uint8_t pool ** @param uint8_t rule ** @param uint32_t attributes_len ** @param const xcb_x_print_string8_t *attributes ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @returns xcb_x_print_print_get_page_dimensions_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @returns xcb_x_print_print_get_page_dimensions_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_get_page_dimensions_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_get_page_dimensions_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_x_print_print_query_screens_cookie_t ** *****************************************************************************/ xcb_x_print_print_query_screens_cookie_t xcb_x_print_print_query_screens (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_x_print_print_query_screens_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_query_screens_reply_t *R ** @returns xcb_window_t * ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_query_screens_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_x_print_print_query_screens_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_query_screens_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_query_screens_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint16_t image_resolution ** @returns xcb_x_print_print_set_image_resolution_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @param uint16_t image_resolution ** @returns xcb_x_print_print_set_image_resolution_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_set_image_resolution_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_set_image_resolution_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @returns xcb_x_print_print_get_image_resolution_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_pcontext_t context ** @returns xcb_x_print_print_get_image_resolution_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_x_print_print_get_image_resolution_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_x_print_print_get_image_resolution_reply_t * ** *****************************************************************************/ 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 /** * @} */ 0707010006ba64000081a40000000000000000000000014f83889200005906000000b600010002ffffffffffffffff0000002100000000root/usr/local/include/xcb/shm.h/* * 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 1 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; /** * 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 ** ** @param xcb_shm_seg_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_shm_seg_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ xcb_generic_iterator_t xcb_shm_seg_end (xcb_shm_seg_iterator_t i /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_shm_query_version_cookie_t xcb_shm_query_version ** ** @param xcb_connection_t *c ** @returns xcb_shm_query_version_cookie_t ** *****************************************************************************/ xcb_shm_query_version_cookie_t xcb_shm_query_version (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_shm_query_version_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_shm_query_version_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_shm_query_version_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_shm_seg_t shmseg ** @param uint32_t shmid ** @param uint8_t read_only ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_shm_attach_checked (xcb_connection_t *c /**< */, xcb_shm_seg_t shmseg /**< */, uint32_t shmid /**< */, uint8_t read_only /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_shm_attach ** ** @param xcb_connection_t *c ** @param xcb_shm_seg_t shmseg ** @param uint32_t shmid ** @param uint8_t read_only ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_shm_attach (xcb_connection_t *c /**< */, xcb_shm_seg_t shmseg /**< */, uint32_t shmid /**< */, uint8_t read_only /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_shm_seg_t shmseg ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_shm_detach_checked (xcb_connection_t *c /**< */, xcb_shm_seg_t shmseg /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_shm_detach ** ** @param xcb_connection_t *c ** @param xcb_shm_seg_t shmseg ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_shm_detach (xcb_connection_t *c /**< */, xcb_shm_seg_t shmseg /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param uint16_t total_width ** @param uint16_t total_height ** @param uint16_t src_x ** @param uint16_t src_y ** @param uint16_t src_width ** @param uint16_t src_height ** @param int16_t dst_x ** @param int16_t dst_y ** @param uint8_t depth ** @param uint8_t format ** @param uint8_t send_event ** @param xcb_shm_seg_t shmseg ** @param uint32_t offset ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_shm_put_image ** ** @param xcb_connection_t *c ** @param xcb_drawable_t drawable ** @param xcb_gcontext_t gc ** @param uint16_t total_width ** @param uint16_t total_height ** @param uint16_t src_x ** @param uint16_t src_y ** @param uint16_t src_width ** @param uint16_t src_height ** @param int16_t dst_x ** @param int16_t dst_y ** @param uint8_t depth ** @param uint8_t format ** @param uint8_t send_event ** @param xcb_shm_seg_t shmseg ** @param uint32_t offset ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_shm_get_image_cookie_t xcb_shm_get_image ** ** @param xcb_connection_t *c ** @param xcb_drawable_t drawable ** @param int16_t x ** @param int16_t y ** @param uint16_t width ** @param uint16_t height ** @param uint32_t plane_mask ** @param uint8_t format ** @param xcb_shm_seg_t shmseg ** @param uint32_t offset ** @returns xcb_shm_get_image_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_drawable_t drawable ** @param int16_t x ** @param int16_t y ** @param uint16_t width ** @param uint16_t height ** @param uint32_t plane_mask ** @param uint8_t format ** @param xcb_shm_seg_t shmseg ** @param uint32_t offset ** @returns xcb_shm_get_image_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_shm_get_image_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_shm_get_image_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_pixmap_t pid ** @param xcb_drawable_t drawable ** @param uint16_t width ** @param uint16_t height ** @param uint8_t depth ** @param xcb_shm_seg_t shmseg ** @param uint32_t offset ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_shm_create_pixmap ** ** @param xcb_connection_t *c ** @param xcb_pixmap_t pid ** @param xcb_drawable_t drawable ** @param uint16_t width ** @param uint16_t height ** @param uint8_t depth ** @param xcb_shm_seg_t shmseg ** @param uint32_t offset ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); #ifdef __cplusplus } #endif #endif /** * @} */ 0707010006ba6b000081a40000000000000000000000014f83889200016215000000b600010002ffffffffffffffff0000002400000000root/usr/local/include/xcb/xfixes.h/* * 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 4 #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, XCB_XFIXES_SAVE_SET_MODE_DELETE } xcb_xfixes_save_set_mode_t; typedef enum xcb_xfixes_save_set_target_t { XCB_XFIXES_SAVE_SET_TARGET_NEAREST, XCB_XFIXES_SAVE_SET_TARGET_ROOT } xcb_xfixes_save_set_target_t; typedef enum xcb_xfixes_save_set_mapping_t { XCB_XFIXES_SAVE_SET_MAPPING_MAP, XCB_XFIXES_SAVE_SET_MAPPING_UNMAP } 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, XCB_XFIXES_SELECTION_EVENT_SELECTION_WINDOW_DESTROY, XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE } 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 } 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 } 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; /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_xfixes_query_version_cookie_t xcb_xfixes_query_version ** ** @param xcb_connection_t *c ** @param uint32_t client_major_version ** @param uint32_t client_minor_version ** @returns xcb_xfixes_query_version_cookie_t ** *****************************************************************************/ xcb_xfixes_query_version_cookie_t xcb_xfixes_query_version (xcb_connection_t *c /**< */, uint32_t client_major_version /**< */, uint32_t client_minor_version /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param uint32_t client_major_version ** @param uint32_t client_minor_version ** @returns xcb_xfixes_query_version_cookie_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_query_version_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xfixes_query_version_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param uint8_t mode ** @param uint8_t target ** @param uint8_t map ** @param xcb_window_t window ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_change_save_set ** ** @param xcb_connection_t *c ** @param uint8_t mode ** @param uint8_t target ** @param uint8_t map ** @param xcb_window_t window ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_atom_t selection ** @param uint32_t event_mask ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_select_selection_input ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param xcb_atom_t selection ** @param uint32_t event_mask ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint32_t event_mask ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_select_cursor_input_checked (xcb_connection_t *c /**< */, xcb_window_t window /**< */, uint32_t event_mask /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_select_cursor_input ** ** @param xcb_connection_t *c ** @param xcb_window_t window ** @param uint32_t event_mask ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_xfixes_get_cursor_image_cookie_t ** *****************************************************************************/ xcb_xfixes_get_cursor_image_cookie_t xcb_xfixes_get_cursor_image (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_xfixes_get_cursor_image_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_get_cursor_image_reply_t *R ** @returns uint32_t * ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_get_cursor_image_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_get_cursor_image_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_get_cursor_image_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xfixes_get_cursor_image_reply_t * ** *****************************************************************************/ 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 ** ** @param xcb_xfixes_region_iterator_t *i ** @returns void ** *****************************************************************************/ 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 ** ** @param xcb_xfixes_region_iterator_t i ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param uint32_t rectangles_len ** @param const xcb_rectangle_t *rectangles ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_create_region ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param uint32_t rectangles_len ** @param const xcb_rectangle_t *rectangles ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param xcb_pixmap_t bitmap ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_create_region_from_bitmap_checked (xcb_connection_t *c /**< */, xcb_xfixes_region_t region /**< */, xcb_pixmap_t bitmap /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_create_region_from_bitmap ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param xcb_pixmap_t bitmap ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_create_region_from_bitmap (xcb_connection_t *c /**< */, xcb_xfixes_region_t region /**< */, xcb_pixmap_t bitmap /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param xcb_window_t window ** @param xcb_shape_kind_t kind ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_create_region_from_window ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param xcb_window_t window ** @param xcb_shape_kind_t kind ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param xcb_gcontext_t gc ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_create_region_from_gc_checked (xcb_connection_t *c /**< */, xcb_xfixes_region_t region /**< */, xcb_gcontext_t gc /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_create_region_from_gc ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param xcb_gcontext_t gc ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_create_region_from_gc (xcb_connection_t *c /**< */, xcb_xfixes_region_t region /**< */, xcb_gcontext_t gc /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param xcb_render_picture_t picture ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_create_region_from_picture ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param xcb_render_picture_t picture ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_create_region_from_picture (xcb_connection_t *c /**< */, xcb_xfixes_region_t region /**< */, xcb_render_picture_t picture /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_destroy_region_checked (xcb_connection_t *c /**< */, xcb_xfixes_region_t region /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_destroy_region ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param uint32_t rectangles_len ** @param const xcb_rectangle_t *rectangles ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_set_region ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param uint32_t rectangles_len ** @param const xcb_rectangle_t *rectangles ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_copy_region_checked (xcb_connection_t *c /**< */, xcb_xfixes_region_t source /**< */, xcb_xfixes_region_t destination /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_copy_region ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_copy_region (xcb_connection_t *c /**< */, xcb_xfixes_region_t source /**< */, xcb_xfixes_region_t destination /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source1 ** @param xcb_xfixes_region_t source2 ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_union_region ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source1 ** @param xcb_xfixes_region_t source2 ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source1 ** @param xcb_xfixes_region_t source2 ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_intersect_region ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source1 ** @param xcb_xfixes_region_t source2 ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source1 ** @param xcb_xfixes_region_t source2 ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_subtract_region ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source1 ** @param xcb_xfixes_region_t source2 ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source ** @param xcb_rectangle_t bounds ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_invert_region ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source ** @param xcb_rectangle_t bounds ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param int16_t dx ** @param int16_t dy ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_translate_region_checked (xcb_connection_t *c /**< */, xcb_xfixes_region_t region /**< */, int16_t dx /**< */, int16_t dy /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_translate_region ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @param int16_t dx ** @param int16_t dy ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_translate_region (xcb_connection_t *c /**< */, xcb_xfixes_region_t region /**< */, int16_t dx /**< */, int16_t dy /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_region_extents_checked (xcb_connection_t *c /**< */, xcb_xfixes_region_t source /**< */, xcb_xfixes_region_t destination /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_region_extents ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source ** @param xcb_xfixes_region_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_xfixes_fetch_region_cookie_t xcb_xfixes_fetch_region ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @returns xcb_xfixes_fetch_region_cookie_t ** *****************************************************************************/ xcb_xfixes_fetch_region_cookie_t xcb_xfixes_fetch_region (xcb_connection_t *c /**< */, xcb_xfixes_region_t region /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t region ** @returns xcb_xfixes_fetch_region_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_fetch_region_reply_t *R ** @returns xcb_rectangle_t * ** *****************************************************************************/ xcb_rectangle_t * xcb_xfixes_fetch_region_rectangles (const xcb_xfixes_fetch_region_reply_t *R /**< */); /***************************************************************************** ** ** int xcb_xfixes_fetch_region_rectangles_length ** ** @param const xcb_xfixes_fetch_region_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_fetch_region_reply_t *R ** @returns xcb_rectangle_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_fetch_region_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xfixes_fetch_region_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_gcontext_t gc ** @param xcb_xfixes_region_t region ** @param int16_t x_origin ** @param int16_t y_origin ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_set_gc_clip_region ** ** @param xcb_connection_t *c ** @param xcb_gcontext_t gc ** @param xcb_xfixes_region_t region ** @param int16_t x_origin ** @param int16_t y_origin ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_window_t dest ** @param xcb_shape_kind_t dest_kind ** @param int16_t x_offset ** @param int16_t y_offset ** @param xcb_xfixes_region_t region ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_set_window_shape_region ** ** @param xcb_connection_t *c ** @param xcb_window_t dest ** @param xcb_shape_kind_t dest_kind ** @param int16_t x_offset ** @param int16_t y_offset ** @param xcb_xfixes_region_t region ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_render_picture_t picture ** @param xcb_xfixes_region_t region ** @param int16_t x_origin ** @param int16_t y_origin ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_set_picture_clip_region ** ** @param xcb_connection_t *c ** @param xcb_render_picture_t picture ** @param xcb_xfixes_region_t region ** @param int16_t x_origin ** @param int16_t y_origin ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_cursor_t cursor ** @param uint16_t nbytes ** @param const char *name ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_set_cursor_name_checked (xcb_connection_t *c /**< */, xcb_cursor_t cursor /**< */, uint16_t nbytes /**< */, const char *name /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_set_cursor_name ** ** @param xcb_connection_t *c ** @param xcb_cursor_t cursor ** @param uint16_t nbytes ** @param const char *name ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @param xcb_cursor_t cursor ** @returns xcb_xfixes_get_cursor_name_cookie_t ** *****************************************************************************/ xcb_xfixes_get_cursor_name_cookie_t xcb_xfixes_get_cursor_name (xcb_connection_t *c /**< */, xcb_cursor_t cursor /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @param xcb_cursor_t cursor ** @returns xcb_xfixes_get_cursor_name_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_get_cursor_name_reply_t *R ** @returns char * ** *****************************************************************************/ char * xcb_xfixes_get_cursor_name_name (const xcb_xfixes_get_cursor_name_reply_t *R /**< */); /***************************************************************************** ** ** int xcb_xfixes_get_cursor_name_name_length ** ** @param const xcb_xfixes_get_cursor_name_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_get_cursor_name_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_get_cursor_name_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xfixes_get_cursor_name_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @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 ** ** @param xcb_connection_t *c ** @returns xcb_xfixes_get_cursor_image_and_name_cookie_t ** *****************************************************************************/ xcb_xfixes_get_cursor_image_and_name_cookie_t xcb_xfixes_get_cursor_image_and_name (xcb_connection_t *c /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can 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 ** ** @param xcb_connection_t *c ** @returns xcb_xfixes_get_cursor_image_and_name_cookie_t ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_get_cursor_image_and_name_reply_t *R ** @returns char * ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_get_cursor_image_and_name_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_get_cursor_image_and_name_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_get_cursor_image_and_name_reply_t *R ** @returns uint32_t * ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_get_cursor_image_and_name_reply_t *R ** @returns int ** *****************************************************************************/ 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 ** ** @param const xcb_xfixes_get_cursor_image_and_name_reply_t *R ** @returns xcb_generic_iterator_t ** *****************************************************************************/ 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_get_cursor_image_and_name_cookie_t cookie ** @param xcb_generic_error_t **e ** @returns xcb_xfixes_get_cursor_image_and_name_reply_t * ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_cursor_t source ** @param xcb_cursor_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_change_cursor_checked (xcb_connection_t *c /**< */, xcb_cursor_t source /**< */, xcb_cursor_t destination /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_change_cursor ** ** @param xcb_connection_t *c ** @param xcb_cursor_t source ** @param xcb_cursor_t destination ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_cursor_t src ** @param uint16_t nbytes ** @param const char *name ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_change_cursor_by_name ** ** @param xcb_connection_t *c ** @param xcb_cursor_t src ** @param uint16_t nbytes ** @param const char *name ** @returns xcb_void_cookie_t ** *****************************************************************************/ xcb_void_cookie_t xcb_xfixes_change_cursor_by_name (xcb_connection_t *c /**< */, xcb_cursor_t src /**< */, uint16_t nbytes /**< */, const char *name /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will 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 ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source ** @param xcb_xfixes_region_t destination ** @param uint16_t left ** @param uint16_t right ** @param uint16_t top ** @param uint16_t bottom ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ /***************************************************************************** ** ** xcb_void_cookie_t xcb_xfixes_expand_region ** ** @param xcb_connection_t *c ** @param xcb_xfixes_region_t source ** @param xcb_xfixes_region_t destination ** @param uint16_t left ** @param uint16_t right ** @param uint16_t top ** @param uint16_t bottom ** @returns xcb_void_cookie_t ** *****************************************************************************/ 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 /**< */); /** * Delivers a request to the X server * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ /***************************************************************************** **