Commit 4c3bece8 authored by Tom Anderson's avatar Tom Anderson Committed by Commit Bot

Add xcbproto to third_party

Bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=1066670

Design doc:
https://docs.google.com/document/d/190l8eBJrtb-8TyJZLzdRiQEH-gW1XvBVH0gWy0zHiNM/edit?usp=sharing

Chrome Eng approval:
https://groups.google.com/a/google.com/g/chrome-eng-review/c/TY2zqz7uICI/m/MwHdJv4HAQAJ

BUG=1066670

Change-Id: I4fdb7c2169a2b116cb57dec4e436aa832112dd3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2267923
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Reviewed-by: default avatarNick Yamane <nickdiego@igalia.com>
Reviewed-by: default avatarAlex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784536}
parent 8f60f41b
src/COPYING
\ No newline at end of file
nickdiego@igalia.com
thomasanderson@chromium.org
Name: xcbproto
Short Name: xcbproto
URL: https://gitlab.freedesktop.org/xorg/proto/xcbproto
Version: 7d58eed95f796fc764741d7549ee2214bbbcc64c
CPEPrefix: unknown
Security Critical: no
License: MIT
License File: NOT_SHIPPED
Description:
XML-XCB protocol descriptions
Updating:
Run third_party/xcbproto/update.sh
7d58eed95f796fc764741d7549ee2214bbbcc64c
aclocal.m4
autom4te.cache
compile
depcomp
install-sh
libtool
ltmain.sh
missing
mkinstalldirs
py-compile
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
configure.lineno
.deps
.dirstamp
.libs
*.lo
*.loT
*.la
Makefile
Makefile.in
stamp-h1
*.o
*.pc
*.tar.bz2
*.tar.gz
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.
Make patches more descriptive
=============================
By default hunk headers of a patch will look like this:
@@ -1227,6 +1227,8 @@ authorization from the authors.
Which is not very usefull as it doesn't give a hint where the change
happened (except for the line number). To make those hunk headers more
descriptive, i.e.:
@@ -1227,6 +1227,8 @@ <struct name="HierarchyChange">
Add these 2 lines to your .git/config file:
[diff "xcb"]
xfuncname = "(<\\b(xcb|enum|event|request|struct|union)\\b.*>)"
For more background on this magic have a look at src/.gitattributes and
the man page gitattributes(5) chapter "Defining a custom hunk-header".
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
Foundation, Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
Basic Installation
==================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. (Caching is
disabled by default to prevent problems with accidental use of stale
cache files.)
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You only need
`configure.ac' if you want to change it or regenerate `configure' using
a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
documentation.
5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. Run `./configure --help'
for details on some of the pertinent environment variables.
You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
*Note Defining Variables::, for more details.
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not support the `VPATH'
variable, you have to compile the package for one architecture at a
time in the source code directory. After you have installed the
package for one architecture, use `make distclean' before reconfiguring
for another architecture.
Installation Names
==================
By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=PATH' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' cannot figure out
automatically, but needs to determine by the type of machine the package
will run on. Usually, assuming the package is built to be run on the
_same_ architectures, `configure' can figure that out, but if it prints
a message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
OS KERNEL-OS
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
use the `--target=TYPE' option to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
will cause the specified gcc to be used as the C compiler (unless it is
overridden in the site shell script).
`configure' Invocation
======================
`configure' recognizes the following options to control how it
operates.
`--help'
`-h'
Print a summary of the options to `configure', and exit.
`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.
`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.
SUBDIRS = src xcbgen
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xcb-proto.pc
EXTRA_DIST=doc xcb-proto.pc.in autogen.sh README.md
This diff is collapsed.
About xcb-proto
===============
xcb-proto provides the XML-XCB protocol descriptions that libxcb uses to
generate the majority of its code and API. We provide them separately
from libxcb to allow reuse by other projects, such as additional
language bindings, protocol dissectors, or documentation generators.
This separation between the XCB transport layer and the
automatically-generated protocol layer also makes it far easier to write
new extensions. With the Xlib infrastructure, client-side support for
new extensions requires significant duplication of effort. With XCB and
the XML-XCB protocol descriptions, client-side support for a new
extension requires only an XML description of the extension, and not a
single line of code.
Python libraries: xcb-proto also contains language-independent Python
libraries that are used to parse an XML description and create objects
used by Python code generators in individual language bindings. These
libraries are installed into $(prefix)/lib/pythonX.X/site-packages. If
this location is not on your system's Python path, scripts that import
them will fail with import errors. In this case you must add the
install location to your Python path by creating a file with a `.pth'
extension in a directory that _is_ on the Python path, and put the
path to the install location in that file. For example, on my system
there is a file named 'local.pth' in /usr/lib/python2.5/site-packages,
which contains '/usr/local/lib/python2.5/site-packages'. Note that
this is only necessary on machines where XCB is being built.
Please report any issues you find to the freedesktop.org bug tracker at:
https://gitlab.freedesktop.org/xorg/proto/xcbproto/issues
Discussion about XCB occurs on the XCB mailing list:
https://lists.freedesktop.org/mailman/listinfo/xcb
You can obtain the latest development versions of xcb-proto using GIT from
the xcbproto code repository at:
https://gitlab.freedesktop.org/xorg/proto/xcbproto
For anonymous checkouts, use:
git clone https://gitlab.freedesktop.org/xorg/proto/xcbproto.git
For developers, use:
git clone git@gitlab.freedesktop.org:xorg/proto/xcbproto.git
Last Updated: 2006-04-27
Extension Status:
X - Present, tested, works.
U - Present, untested.
I - Incomplete.
X BIG-REQUESTS
X COMPOSITE
X DAMAGE
DOUBLE-BUFFER
X DPMS
Extended-Visual-Information
X GLX
LBX
X MIT-SCREEN-SAVER
X MIT-SHM
MIT-SUNDRY-NONSTANDARD
Multi-Buffering
X RANDR
X RECORD
X RENDER
SECURITY
SGI-GLX
X SHAPE
X SYNC
TOG-CUP
X X-Resource
XC-APPGROUP
X XC-MISC
X XEVIE
X XFIXES
XFree86-Bigfont
XFree86-DGA
X XFree86-DRI
XFree86-Misc
XFree86-VidModeExtension
XINERAMA
XInputExtension
XKEYBOARD
I XpExtension (XPRINT)
X XTEST
X XVideo
U XVideo-MotionCompensation
#! /bin/sh
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?
if test -z "$NOCONFIGURE"; then
$srcdir/configure "$@"
fi
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_INIT([XCB Proto],
1.14,
[xcb@lists.freedesktop.org])
AC_CONFIG_SRCDIR([xcb-proto.pc.in])
AM_INIT_AUTOMAKE([foreign dist-xz])
AC_PATH_PROG(XMLLINT, xmllint, no)
AM_CONDITIONAL(HAVE_XMLLINT, test "x$XMLLINT" != "xno")
if test "$XMLLINT" = "no"; then
AC_MSG_WARN([xmllint not found; unable to validate against schema.])
fi
AM_PATH_PYTHON([2.5])
xcbincludedir='${datadir}/xcb'
AC_SUBST(xcbincludedir)
AC_OUTPUT([Makefile src/Makefile xcbgen/Makefile xcb-proto.pc])
This diff is collapsed.
xcbinclude_HEADERS = \
xcb.xsd \
xproto.xml \
bigreq.xml \
composite.xml \
damage.xml \
dpms.xml \
dri2.xml \
dri3.xml \
ge.xml \
glx.xml \
present.xml \
randr.xml \
record.xml \
render.xml \
res.xml \
screensaver.xml \
shape.xml \
shm.xml \
sync.xml \
xc_misc.xml \
xevie.xml \
xf86dri.xml \
xf86vidmode.xml \
xfixes.xml \
xinerama.xml \
xinput.xml \
xkb.xml \
xprint.xml \
xselinux.xml \
xtest.xml \
xv.xml \
xvmc.xml
if HAVE_XMLLINT
check-local:
$(XMLLINT) --noout --schema $(srcdir)/xcb.xsd $(srcdir)/*.xml
endif
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2001-2004 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.
-->
<xcb header="bigreq" extension-xname="BIG-REQUESTS"
extension-name="BigRequests" extension-multiword="true"
major-version="0" minor-version="0">
<request name="Enable" opcode="0">
<reply>
<pad bytes="1" />
<field type="CARD32" name="maximum_request_length" />
</reply>
</request>
</xcb>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2004 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.
-->
<!-- This file describes version 0.3 of COMPOSITE. -->
<xcb header="composite" extension-xname="Composite" extension-name="Composite"
major-version="0" minor-version="4">
<import>xproto</import>
<import>xfixes</import>
<enum name="Redirect">
<item name="Automatic"> <value>0</value> </item>
<item name="Manual"> <value>1</value> </item>
</enum>
<request name="QueryVersion" opcode="0">
<field type="CARD32" name="client_major_version" />
<field type="CARD32" name="client_minor_version" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="major_version" />
<field type="CARD32" name="minor_version" />
<pad bytes="16" />
</reply>
</request>
<request name="RedirectWindow" opcode="1">
<field type="WINDOW" name="window" />
<field type="CARD8" name="update" enum="Redirect" />
<pad bytes="3" />
</request>
<request name="RedirectSubwindows" opcode="2">
<field type="WINDOW" name="window" />
<field type="CARD8" name="update" enum="Redirect" />
<pad bytes="3" />
</request>
<request name="UnredirectWindow" opcode="3">
<field type="WINDOW" name="window" />
<field type="CARD8" name="update" enum="Redirect" />
<pad bytes="3" />
</request>
<request name="UnredirectSubwindows" opcode="4">
<field type="WINDOW" name="window" />
<field type="CARD8" name="update" enum="Redirect" />
<pad bytes="3" />
</request>
<request name="CreateRegionFromBorderClip" opcode="5">
<field type="REGION" name="region" />
<field type="WINDOW" name="window" />
</request>
<request name="NameWindowPixmap" opcode="6">
<field type="WINDOW" name="window" />
<field type="PIXMAP" name="pixmap" />
</request>
<!-- new in version 0.3 -->
<request name="GetOverlayWindow" opcode="7">
<field type="WINDOW" name="window" />
<reply>
<pad bytes="1" />
<field type="WINDOW" name="overlay_win" />
<pad bytes="20" />
</reply>
</request>
<request name="ReleaseOverlayWindow" opcode="8">
<field type="WINDOW" name="window" />
</request>
</xcb>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2004 Josh Triplett
Copyright (C) 2007 Jeremy Kolb
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.
-->
<!-- This file describes version 1.1 of DAMAGE. -->
<xcb header="damage" extension-xname="DAMAGE" extension-name="Damage"
major-version="1" minor-version="1">
<import>xproto</import>
<import>xfixes</import>
<xidtype name="DAMAGE" />
<enum name="ReportLevel">
<item name="RawRectangles"> <value>0</value> </item>
<item name="DeltaRectangles"> <value>1</value> </item>
<item name="BoundingBox"> <value>2</value> </item>
<item name="NonEmpty"> <value>3</value> </item>
</enum>
<error name="BadDamage" number="0" />
<request name="QueryVersion" opcode="0">
<field type="CARD32" name="client_major_version" />
<field type="CARD32" name="client_minor_version" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="major_version" />
<field type="CARD32" name="minor_version" />
<pad bytes="16" />
</reply>
</request>
<request name="Create" opcode="1">
<field type="DAMAGE" name="damage" />
<field type="DRAWABLE" name="drawable" />
<field type="CARD8" name="level" enum="ReportLevel" />
<pad bytes="3" />
</request>
<request name="Destroy" opcode="2">
<field type="DAMAGE" name="damage" />
</request>
<request name="Subtract" opcode="3">
<field type="DAMAGE" name="damage" />
<field type="REGION" name="repair" altenum="Region" />
<field type="REGION" name="parts" altenum="Region" />
</request>
<request name="Add" opcode="4">
<field type="DRAWABLE" name="drawable" />
<field type="REGION" name="region" />
</request>
<event name="Notify" number="0">
<field type="CARD8" name="level" enum="ReportLevel" />
<field type="DRAWABLE" name="drawable" />
<field type="DAMAGE" name="damage" />
<field type="TIMESTAMP" name="timestamp" />
<field type="RECTANGLE" name="area" />
<field type="RECTANGLE" name="geometry" />
</event>
</xcb>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2001-2004 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.
-->
<xcb header="dpms" extension-xname="DPMS" extension-name="DPMS"
major-version="0" minor-version="0">
<request name="GetVersion" opcode="0">
<field type="CARD16" name="client_major_version" />
<field type="CARD16" name="client_minor_version" />
<reply>
<pad bytes="1" />
<field type="CARD16" name="server_major_version" />
<field type="CARD16" name="server_minor_version" />
</reply>
</request>
<request name="Capable" opcode="1">
<reply>
<pad bytes="1" />
<field type="BOOL" name="capable" />
<pad bytes="23" />
</reply>
</request>
<request name="GetTimeouts" opcode="2">
<reply>
<pad bytes="1" />
<field type="CARD16" name="standby_timeout" />
<field type="CARD16" name="suspend_timeout" />
<field type="CARD16" name="off_timeout" />
<pad bytes="18" />
</reply>
</request>
<request name="SetTimeouts" opcode="3">
<field type="CARD16" name="standby_timeout" />
<field type="CARD16" name="suspend_timeout" />
<field type="CARD16" name="off_timeout" />
</request>
<request name="Enable" opcode="4" />
<request name="Disable" opcode="5" />
<enum name="DPMSMode">
<item name="On"> <value>0</value> </item>
<item name="Standby"> <value>1</value> </item>
<item name="Suspend"> <value>2</value> </item>
<item name="Off"> <value>3</value> </item>
</enum>
<request name="ForceLevel" opcode="6">
<field type="CARD16" name="power_level" enum="DPMSMode" />
</request>
<request name="Info" opcode="7">
<reply>
<pad bytes="1" />
<field type="CARD16" name="power_level" enum="DPMSMode" />
<field type="BOOL" name="state" />
<pad bytes="21" />
</reply>
</request>
</xcb>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2005 Jeremy Kolb.
Copyright © 2009 Intel Corporation
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.
-->
<xcb header="dri2" extension-xname="DRI2" extension-name="DRI2"
major-version="1" minor-version="4">
<import>xproto</import>
<enum name="Attachment">
<item name="BufferFrontLeft"> <value>0</value> </item>
<item name="BufferBackLeft"> <value>1</value> </item>
<item name="BufferFrontRight"> <value>2</value> </item>
<item name="BufferBackRight"> <value>3</value> </item>
<item name="BufferDepth"> <value>4</value> </item>
<item name="BufferStencil"> <value>5</value> </item>
<item name="BufferAccum"> <value>6</value> </item>
<item name="BufferFakeFrontLeft"> <value>7</value> </item>
<item name="BufferFakeFrontRight"> <value>8</value> </item>
<item name="BufferDepthStencil"> <value>9</value> </item>
<item name="BufferHiz"> <value>10</value> </item>
</enum>
<enum name="DriverType">
<item name="DRI"> <value>0</value> </item>
<item name="VDPAU"> <value>1</value> </item>
</enum>
<enum name="EventType">
<item name="ExchangeComplete"><value>1</value></item>
<item name="BlitComplete"> <value>2</value></item>
<item name="FlipComplete"> <value>3</value></item>
</enum>
<!-- Types -->
<struct name="DRI2Buffer">
<field type="CARD32" name="attachment" enum="Attachment" />
<field type="CARD32" name="name" />
<field type="CARD32" name="pitch" />
<field type="CARD32" name="cpp" />
<field type="CARD32" name="flags" />
</struct>
<struct name="AttachFormat">
<field type="CARD32" name="attachment" enum="Attachment" />
<field type="CARD32" name="format" />
</struct>
<!-- Requests -->
<request name="QueryVersion" opcode="0">
<field type="CARD32" name="major_version" />
<field type="CARD32" name="minor_version" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="major_version" />
<field type="CARD32" name="minor_version" />
</reply>
</request>
<request name="Connect" opcode="1">
<field type="WINDOW" name="window" />
<field type="CARD32" name="driver_type" enum="DriverType" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="driver_name_length" />
<field type="CARD32" name="device_name_length" />
<pad bytes="16" />
<list type="char" name="driver_name">
<fieldref>driver_name_length</fieldref>
</list>
<list type="void" name="alignment_pad">
<op op="-">
<op op="&amp;">
<op op="+">
<fieldref>driver_name_length</fieldref>
<value>3</value>
</op>
<unop op="~">
<value>3</value>
</unop>
</op>
<fieldref>driver_name_length</fieldref>
</op>
</list>
<list type="char" name="device_name">
<fieldref>device_name_length</fieldref>
</list>
</reply>
</request>
<request name="Authenticate" opcode="2">
<field type="WINDOW" name="window" />
<field type="CARD32" name="magic" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="authenticated" />
</reply>
</request>
<request name="CreateDrawable" opcode="3">
<field type="DRAWABLE" name="drawable" />
</request>
<request name="DestroyDrawable" opcode="4">
<field type="DRAWABLE" name="drawable" />
</request>
<request name="GetBuffers" opcode="5">
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="count" />
<list type="CARD32" name="attachments">
<!-- The length field should be linked but we can't correct it without breaking API -->
<!-- <fieldref>count</fieldref> -->
</list>
<reply>
<pad bytes="1" />
<field type="CARD32" name="width" />
<field type="CARD32" name="height" />
<field type="CARD32" name="count" />
<pad bytes="12" />
<list type="DRI2Buffer" name="buffers">
<fieldref>count</fieldref>
</list>
</reply>
</request>
<request name="CopyRegion" opcode="6">
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="region" />
<field type="CARD32" name="dest" />
<field type="CARD32" name="src" />
<reply>
<pad bytes="1" />
</reply>
</request>
<request name="GetBuffersWithFormat" opcode="7">
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="count" />
<list type="AttachFormat" name="attachments">
<!-- The length field should be linked but we can't correct it without breaking API -->
<!-- <fieldref>count</fieldref> -->
</list>
<reply>
<pad bytes="1" />
<field type="CARD32" name="width" />
<field type="CARD32" name="height" />
<field type="CARD32" name="count" />
<pad bytes="12" />
<list type="DRI2Buffer" name="buffers">
<fieldref>count</fieldref>
</list>
</reply>
</request>
<!-- Version 1.2 -->
<request name="SwapBuffers" opcode="8">
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="target_msc_hi" />
<field type="CARD32" name="target_msc_lo" />
<field type="CARD32" name="divisor_hi" />
<field type="CARD32" name="divisor_lo" />
<field type="CARD32" name="remainder_hi" />
<field type="CARD32" name="remainder_lo" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="swap_hi" />
<field type="CARD32" name="swap_lo" />
</reply>
</request>
<request name="GetMSC" opcode="9">
<field type="DRAWABLE" name="drawable" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="ust_hi" />
<field type="CARD32" name="ust_lo" />
<field type="CARD32" name="msc_hi" />
<field type="CARD32" name="msc_lo" />
<field type="CARD32" name="sbc_hi" />
<field type="CARD32" name="sbc_lo" />
</reply>
</request>
<request name="WaitMSC" opcode="10">
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="target_msc_hi" />
<field type="CARD32" name="target_msc_lo" />
<field type="CARD32" name="divisor_hi" />
<field type="CARD32" name="divisor_lo" />
<field type="CARD32" name="remainder_hi" />
<field type="CARD32" name="remainder_lo" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="ust_hi" />
<field type="CARD32" name="ust_lo" />
<field type="CARD32" name="msc_hi" />
<field type="CARD32" name="msc_lo" />
<field type="CARD32" name="sbc_hi" />
<field type="CARD32" name="sbc_lo" />
</reply>
</request>
<request name="WaitSBC" opcode="11">
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="target_sbc_hi" />
<field type="CARD32" name="target_sbc_lo" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="ust_hi" />
<field type="CARD32" name="ust_lo" />
<field type="CARD32" name="msc_hi" />
<field type="CARD32" name="msc_lo" />
<field type="CARD32" name="sbc_hi" />
<field type="CARD32" name="sbc_lo" />
</reply>
</request>
<request name="SwapInterval" opcode="12">
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="interval" />
</request>
<!-- Version 1.4 -->
<request name="GetParam" opcode="13">
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="param" />
<reply>
<field type="BOOL" name="is_param_recognized" />
<field type="CARD32" name="value_hi" />
<field type="CARD32" name="value_lo" />
</reply>
</request>
<!-- Events -->
<event name="BufferSwapComplete" number="0">
<pad bytes="1" />
<field type="CARD16" name="event_type" enum="EventType" />
<pad bytes="2" />
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="ust_hi" />
<field type="CARD32" name="ust_lo" />
<field type="CARD32" name="msc_hi" />
<field type="CARD32" name="msc_lo" />
<field type="CARD32" name="sbc" />
</event>
<!-- Version 1.3 -->
<event name="InvalidateBuffers" number="1">
<pad bytes="1" />
<field type="DRAWABLE" name="drawable" />
</event>
</xcb>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright © 2013 Keith Packard
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting documentation, and
that the name of the copyright holders not be used in advertising or
publicity pertaining to distribution of the software without specific,
written prior permission. The copyright holders make no representations
about the suitability of this software for any purpose. It is provided "as
is" without express or implied warranty.
THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
OF THIS SOFTWARE.
-->
<xcb header="dri3" extension-xname="DRI3" extension-name="DRI3"
major-version="1" minor-version="2">
<import>xproto</import>
<!-- Types -->
<!-- Requests -->
<request name="QueryVersion" opcode="0">
<field type="CARD32" name="major_version" />
<field type="CARD32" name="minor_version" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="major_version" />
<field type="CARD32" name="minor_version" />
</reply>
</request>
<request name="Open" opcode="1">
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="provider" />
<reply>
<field type="CARD8" name="nfd"/>
<fd name="device_fd" />
<pad bytes="24" />
</reply>
</request>
<request name="PixmapFromBuffer" opcode="2">
<field type="PIXMAP" name="pixmap" />
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="size" />
<field type="CARD16" name="width" />
<field type="CARD16" name="height" />
<field type="CARD16" name="stride" />
<field type="CARD8" name="depth" />
<field type="CARD8" name="bpp" />
<fd name="pixmap_fd" />
</request>
<request name="BufferFromPixmap" opcode="3">
<field type="PIXMAP" name="pixmap" />
<reply>
<field type="CARD8" name="nfd"/>
<field type="CARD32" name="size" />
<field type="CARD16" name="width" />
<field type="CARD16" name="height" />
<field type="CARD16" name="stride" />
<field type="CARD8" name="depth" />
<field type="CARD8" name="bpp" />
<fd name="pixmap_fd" />
<pad bytes="12"/>
</reply>
</request>
<request name="FenceFromFD" opcode="4">
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="fence"/>
<field type="BOOL" name="initially_triggered"/>
<pad bytes="3"/>
<fd name="fence_fd"/>
</request>
<request name="FDFromFence" opcode="5">
<field type="DRAWABLE" name="drawable" />
<field type="CARD32" name="fence"/>
<reply>
<field type="CARD8" name="nfd"/>
<fd name="fence_fd" />
<pad bytes="24"/>
</reply>
</request>
<!-- v1.2 -->
<request name="GetSupportedModifiers" opcode="6">
<field type="CARD32" name="window" />
<field type="CARD8" name="depth"/>
<field type="CARD8" name="bpp"/>
<pad bytes="2"/>
<reply>
<required_start_align align="8" />
<pad bytes="1" />
<field type="CARD32" name="num_window_modifiers" />
<field type="CARD32" name="num_screen_modifiers" />
<pad bytes="16" />
<list type="CARD64" name="window_modifiers">
<fieldref>num_window_modifiers</fieldref>
</list>
<list type="CARD64" name="screen_modifiers">
<fieldref>num_screen_modifiers</fieldref>
</list>
</reply>
</request>
<request name="PixmapFromBuffers" opcode="7">
<required_start_align align="8" />
<field type="PIXMAP" name="pixmap" />
<field type="WINDOW" name="window" />
<field type="CARD8" name="num_buffers" />
<pad bytes="3" />
<field type="CARD16" name="width" />
<field type="CARD16" name="height" />
<field type="CARD32" name="stride0" />
<field type="CARD32" name="offset0" />
<field type="CARD32" name="stride1" />
<field type="CARD32" name="offset1" />
<field type="CARD32" name="stride2" />
<field type="CARD32" name="offset2" />
<field type="CARD32" name="stride3" />
<field type="CARD32" name="offset3" />
<field type="CARD8" name="depth" />
<field type="CARD8" name="bpp" />
<pad bytes="2" />
<field type="CARD64" name="modifier" />
<list type="fd" name="buffers">
<fieldref>num_buffers</fieldref>
</list>
</request>
<request name="BuffersFromPixmap" opcode="8">
<field type="PIXMAP" name="pixmap" />
<reply>
<required_start_align align="8" />
<field type="CARD8" name="nfd"/>
<field type="CARD16" name="width" />
<field type="CARD16" name="height" />
<pad bytes="4"/>
<field type="CARD64" name="modifier" />
<field type="CARD8" name="depth" />
<field type="CARD8" name="bpp" />
<pad bytes="6"/>
<list type="CARD32" name="strides">
<fieldref>nfd</fieldref>
</list>
<list type="CARD32" name="offsets">
<fieldref>nfd</fieldref>
</list>
<list type="fd" name="buffers">
<fieldref>nfd</fieldref>
</list>
</reply>
</request>
</xcb>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2009 Open Text Corporation. 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.
-->
<xcb header="ge" extension-xname="Generic Event Extension" extension-name="GenericEvent"
major-version="1" minor-version="0">
<!-- Version 1 -->
<request name="QueryVersion" opcode="0">
<field type="CARD16" name="client_major_version" />
<field type="CARD16" name="client_minor_version" />
<reply>
<pad bytes="1" />
<field type="CARD16" name="major_version" />
<field type="CARD16" name="minor_version" />
<pad bytes="20" />
</reply>
</request>
</xcb>
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright © 2013 Keith Packard
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting documentation, and
that the name of the copyright holders not be used in advertising or
publicity pertaining to distribution of the software without specific,
written prior permission. The copyright holders make no representations
about the suitability of this software for any purpose. It is provided "as
is" without express or implied warranty.
THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
OF THIS SOFTWARE.
-->
<xcb header="present" extension-xname="Present" extension-name="Present"
major-version="1" minor-version="2">
<import>xproto</import>
<import>randr</import>
<import>xfixes</import>
<import>sync</import>
<!-- Types -->
<enum name="Event">
<item name="ConfigureNotify"><value>0</value></item>
<item name="CompleteNotify"><value>1</value></item>
<item name="IdleNotify"><value>2</value></item>
<item name="RedirectNotify"><value>3</value></item>
</enum>
<enum name="EventMask">
<item name="NoEvent"><value>0</value></item>
<item name="ConfigureNotify"><bit>0</bit></item>
<item name="CompleteNotify"><bit>1</bit></item>
<item name="IdleNotify"><bit>2</bit></item>
<item name="RedirectNotify"><bit>3</bit></item>
</enum>
<enum name="Option">
<item name="None"><value>0</value></item>
<item name="Async"><bit>0</bit></item>
<item name="Copy"><bit>1</bit></item>
<item name="UST"><bit>2</bit></item>
<item name="Suboptimal"><bit>3</bit></item>
</enum>
<enum name="Capability">
<item name="None"><value>0</value></item>
<item name="Async"><bit>0</bit></item>
<item name="Fence"><bit>1</bit></item>
<item name="UST"><bit>2</bit></item>
</enum>
<enum name="CompleteKind">
<item name="Pixmap"><value>0</value></item>
<item name="NotifyMSC"><value>1</value></item>
</enum>
<enum name="CompleteMode">
<item name="Copy"><value>0</value></item>
<item name="Flip"><value>1</value></item>
<item name="Skip"><value>2</value></item>
<item name="SuboptimalCopy"><value>3</value></item>
</enum>
<struct name="Notify">
<field type="WINDOW" name="window" />
<field type="CARD32" name="serial" />
</struct>
<!-- Requests -->
<request name="QueryVersion" opcode="0">
<field type="CARD32" name="major_version" />
<field type="CARD32" name="minor_version" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="major_version" />
<field type="CARD32" name="minor_version" />
</reply>
</request>
<request name="Pixmap" opcode="1">
<required_start_align align="8" />
<field type="WINDOW" name="window" />
<field type="PIXMAP" name="pixmap" />
<field type="CARD32" name="serial" />
<field type="REGION" name="valid" />
<field type="REGION" name="update" />
<field type="INT16" name="x_off" />
<field type="INT16" name="y_off" />
<field type="CRTC" name="target_crtc" />
<field type="FENCE" name="wait_fence" />
<field type="FENCE" name="idle_fence" />
<field type="CARD32" name="options" />
<pad bytes="4"/>
<field type="CARD64" name="target_msc" />
<field type="CARD64" name="divisor" />
<field type="CARD64" name="remainder" />
<list type="Notify" name="notifies"/>
</request>
<request name="NotifyMSC" opcode="2">
<required_start_align align="8" />
<field type="WINDOW" name="window" />
<field type="CARD32" name="serial" />
<pad bytes="4"/>
<field type="CARD64" name="target_msc" />
<field type="CARD64" name="divisor" />
<field type="CARD64" name="remainder" />
</request>
<xidtype name="EVENT"/>
<request name="SelectInput" opcode="3">
<field type="EVENT" name="eid"/>
<field type="WINDOW" name="window" />
<field type="CARD32" name="event_mask" mask="EventMask" />
</request>
<request name="QueryCapabilities" opcode="4">
<field type="CARD32" name="target" />
<reply>
<pad bytes="1" />
<field type="CARD32" name="capabilities" />
</reply>
</request>
<!-- Events -->
<event name="Generic" number="0">
<field type="CARD8" name="extension" />
<field type="CARD32" name="length" />
<field type="CARD16" name="evtype" />
<pad bytes="2" />
<field type="EVENT" name="event" />
</event>
<event name="ConfigureNotify" number="0" xge="true">
<pad bytes="2" />
<field type="EVENT" name="event" />
<field type="WINDOW" name="window" />
<field type="INT16" name="x" />
<field type="INT16" name="y" />
<field type="CARD16" name="width" />
<field type="CARD16" name="height" />
<field type="INT16" name="off_x" />
<field type="INT16" name="off_y" />
<field type="CARD16" name="pixmap_width" />
<field type="CARD16" name="pixmap_height" />
<field type="CARD32" name="pixmap_flags" />
</event>
<event name="CompleteNotify" number="1" xge="true">
<required_start_align align="8" />
<field type="CARD8" name="kind" enum="CompleteKind" />
<field type="CARD8" name="mode" enum="CompleteMode" />
<field type="EVENT" name="event" />
<field type="WINDOW" name="window" />
<field type="CARD32" name="serial" />
<field type="CARD64" name="ust" />
<field type="CARD64" name="msc" />
</event>
<event name="IdleNotify" number="2" xge="true">
<pad bytes="2"/>
<field type="EVENT" name="event" />
<field type="WINDOW" name="window" />
<field type="CARD32" name="serial" />
<field type="PIXMAP" name="pixmap" />
<field type="FENCE" name="idle_fence" />
</event>
<event name="RedirectNotify" number="3" xge="true">
<required_start_align align="8" />
<field type="BOOL" name="update_window"/>
<pad bytes="1"/>
<field type="EVENT" name="event" />
<field type="WINDOW" name="event_window" />
<field type="WINDOW" name="window" />
<field type="PIXMAP" name="pixmap" />
<field type="CARD32" name="serial" />
<field type="REGION" name="valid_region" />
<field type="REGION" name="update_region" />
<field type="RECTANGLE" name="valid_rect" />
<field type="RECTANGLE" name="update_rect" />
<field type="INT16" name="x_off" />
<field type="INT16" name="y_off" />
<field type="CRTC" name="target_crtc" />
<field type="FENCE" name="wait_fence" />
<field type="FENCE" name="idle_fence" />
<field type="CARD32" name="options" />
<pad bytes="4"/>
<field type="CARD64" name="target_msc" />
<field type="CARD64" name="divisor" />
<field type="CARD64" name="remainder" />
<list type="Notify" name="notifies" />
</event>
</xcb>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2001-2004 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.
-->
<xcb header="shm" extension-xname="MIT-SHM" extension-name="Shm"
major-version="1" minor-version="2">
<import>xproto</import>
<xidtype name="SEG" />
<event name="Completion" number="0">
<pad bytes="1" />
<field type="DRAWABLE" name="drawable" />
<field type="CARD16" name="minor_event" />
<field type="BYTE" name="major_event" />
<pad bytes="1" />
<field type="SEG" name="shmseg" />
<field type="CARD32" name="offset" />
</event>
<errorcopy name="BadSeg" number="0" ref="Value" />
<request name="QueryVersion" opcode="0">
<reply>
<field type="BOOL" name="shared_pixmaps" />
<field type="CARD16" name="major_version" />
<field type="CARD16" name="minor_version" />
<field type="CARD16" name="uid" />
<field type="CARD16" name="gid" />
<field type="CARD8" name="pixmap_format" />
<pad bytes="15" />
</reply>
</request>
<request name="Attach" opcode="1">
<field type="SEG" name="shmseg" />
<field type="CARD32" name="shmid" />
<field type="BOOL" name="read_only" />
<pad bytes="3" />
</request>
<request name="Detach" opcode="2">
<field type="SEG" name="shmseg" />
</request>
<request name="PutImage" opcode="3">
<field type="DRAWABLE" name="drawable" />
<field type="GCONTEXT" name="gc" />
<field type="CARD16" name="total_width" />
<field type="CARD16" name="total_height" />
<field type="CARD16" name="src_x" />
<field type="CARD16" name="src_y" />
<field type="CARD16" name="src_width" />
<field type="CARD16" name="src_height" />
<field type="INT16" name="dst_x" />
<field type="INT16" name="dst_y" />
<field type="CARD8" name="depth" />
<field type="CARD8" name="format" />
<field type="BOOL" name="send_event" />
<pad bytes="1" />
<field type="SEG" name="shmseg" />
<field type="CARD32" name="offset" />
</request>
<request name="GetImage" opcode="4">
<field type="DRAWABLE" name="drawable" />
<field type="INT16" name="x" />
<field type="INT16" name="y" />
<field type="CARD16" name="width" />
<field type="CARD16" name="height" />
<field type="CARD32" name="plane_mask" />
<field type="CARD8" name="format" />
<pad bytes="3" />
<field type="SEG" name="shmseg" />
<field type="CARD32" name="offset" />
<reply>
<field type="CARD8" name="depth" />
<field type="VISUALID" name="visual" />
<field type="CARD32" name="size" />
</reply>
</request>
<request name="CreatePixmap" opcode="5">
<field type="PIXMAP" name="pid" />
<field type="DRAWABLE" name="drawable" />
<field type="CARD16" name="width" />
<field type="CARD16" name="height" />
<field type="CARD8" name="depth" />
<pad bytes="3" />
<field type="SEG" name="shmseg" />
<field type="CARD32" name="offset" />
</request>
<request name="AttachFd" opcode="6">
<field type="SEG" name="shmseg" />
<fd name="shm_fd" />
<field type="BOOL" name="read_only" />
<pad bytes="3" />
</request>
<request name="CreateSegment" opcode="7">
<field type="SEG" name="shmseg" />
<field type="CARD32" name="size" />
<field type="BOOL" name="read_only" />
<pad bytes="3" />
<reply>
<field type="CARD8" name="nfd" />
<fd name="shm_fd" />
<pad bytes="24" />
</reply>
</request>
</xcb>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
prefix=@prefix@
exec_prefix=@exec_prefix@
datarootdir=@datarootdir@
datadir=@datadir@
libdir=@libdir@
xcbincludedir=${pc_sysrootdir}@xcbincludedir@
pythondir=${pc_sysrootdir}@pythondir@
Name: XCB Proto
Description: X protocol descriptions for XCB
Version: @PACKAGE_VERSION@
pkgpythondir = $(pythondir)/xcbgen
pkgpython_PYTHON = __init__.py error.py expr.py align.py matcher.py state.py xtypes.py
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment